Preheat the oven to 400°F / 200°C conventional. Line a shallow 9-inch / 23-cm round tart dish with parchment paper.
Fit the cold puff pastry into the prepared dish, leaving the edges available to fold inward. Prick the base lightly with a fork.
Mix the ricotta, mascarpone, 22 g Parmesan, cinnamon and salt. Spread evenly over the pastry base.
Microwave the butternut squash for 8 minutes covered in plastic wrap on top. This is enough to slice it thinly. Cook the red onions, thinly cut till almost jam and add it to the cheese. Arrange the squash in lightly overlapping circles over the cheese filling, working toward the center. Fold and gently crimp the pastry edges inward.
Sprinkle some thyme on top. Brush the vegetables and exposed pastry border lightly with extra virgin olive oil.
Bake for 30–40 minutes, checking from 25 minutes, until the pastry base and edges are golden and the squash is tender. If the edges brown too quickly, shield them loosely with foil while the center finishes cooking.
Remove from the oven and sprinkle with the extra Parmesan. Rest for 5–10 minutes, then slice and serve warm.