Start by boiling water to cook your pasta until it is just barely firm. You will want it to be a couple of minutes short of al dente. This helps it hold its shape in the bake. Overcooking it now could lead to mushiness later, so keep an eye on it.
Heat the butter and olive oil in a pan, letting them sizzle and fill the air with a buttery aroma. Once melted, toss in the onions and garlic until they are soft and translucent. This step adds a rich base flavor, so do not rush it.
Stir in the sliced mushrooms and walnuts, letting them sauté until the mushrooms are tender and start to brown. You will want to see the mushrooms releasing their moisture. If they are too dry, they will not blend well in the bake.
Add in the tomato paste and let it cook until it turns a deep, brick red. You will notice a more intense flavor developing. It might seem trivial, but skipping this can lead to a bland sauce.
Mix in the baby spinach, oregano, salt, black pepper, nutmeg, and crushed red pepper flakes. As the spinach wilts, it will shrink down significantly, so do not worry if it seems like too much at first.
Pour in the vegetable broth and pumpkin purée, stirring everything together until it is a smooth mixture. It should smell comforting and warm. This is where the creamy sauce comes to life, so keep your heat steady.
Stir the cooked pasta into the sauce, letting it soak up all those delicious flavors. It should all feel well-mixed and look like a colorful blend. Just ensure every piece of pasta is coated evenly; otherwise, some bites may taste bland.
Transfer half of the pasta mixture to a baking dish, then sprinkle with half of the fontina cheese. Pour the rest of the pasta on top and finish with the remaining fontina and Parmesan cheese. This melty cheesy layer is key, so spread it evenly.
Pop the dish in the oven and let it bake until the cheese is bubbly and golden brown. You will know it is ready when you see that cheesy top browning slightly. Sometimes folks take it out too early—do not rush this step!
Once it is out, let the pasta bake cool for a bit before serving. The sauce will thicken slightly as it cools, making it easier to serve. Do not skip this step, as it will help everything hold together nicely.