Preheat the oven to 200 °C.
Toss the cubed pumpkin in a splash of olive or chilli oil.
Roast for 20–25 minutes until caramelised at the edges. Set aside.
In a heavy-based pot, heat a splash of olive oil over medium heat.
Sauté the shallots until softened. Add the rice and stir to coat.
Pour in the wine (if using) and let it evaporate.
Begin adding hot stock, ladle by ladle, stirring after each addition until most of the liquid is absorbed.
About halfway through cooking (when rice is still firm), add the roasted pumpkin and thyme.
Stir to integrate so the rice takes on a pale orange hue.
When the rice is al dente and there's still a glossy sauce, remove from the heat.
Stir in half the blue cheese to melt it through. Taste and season with salt and pepper.
Serve topped with the remaining blue cheese and toasted pine nuts.