1. Preheat the oven to 400 degrees F. Halve the garlic crosswise to expose the cloves. Wrap the bottom half in foil and roast until very soft, about 20 minutes. Meanwhile, remove the skins from the top half and chop the garlic.
2. Heat 2 tablespoons olive oil in a large Dutch oven or pot over medium heat.
3. Add the onion and sliced fennel and cook, stirring occasionally, about 3 minutes.
4. Add the chopped garlic and red pepper flakes and cook, stirring, until the garlic softens, about 2 more minutes.
5. Add the tomato paste and 1 teaspoon salt. Cook, stirring, until the vegetables are tender, about 3 more minutes.
6. Add the tomatoes and 4 cups water; stir. Increase the heat to medium high and bring to a boil, then reduce the heat to medium low and simmer until the sauce thickens slightly, about 30 minutes.
7. Meanwhile, bring a large pot of salted water to a boil.
8. Add the pasta and cook as the label directs.
9. Drain, rinse under cold water and set aside.
10. Pulse the focaccia in a food processor to make coarse crumbs. Squeeze the roasted garlic from its skin and add to the food processor along with 1/4 cup each parmesan and parsley; pulse a few more times until combined. Set the breadcrumbs aside.
11. Lightly brush a 9-by-13-inch baking dish with olive oil.
12. Add the pasta and sun-dried tomatoes to the sauce along with the fennel fronds, mozzarella, asiago and the remaining 1/4 cup each parmesan and parsley; toss.
13. Transfer to the prepared baking dish. Top with spoonfuls of the ricotta and sprinkle with the breadcrumbs.
14. Cover the dish loosely with foil and bake 30 minutes. Uncover and continue baking until golden and bubbling, about 15 more minutes.
15. Let rest 10 minutes before serving.
16. Photograph by Justin Walker