Preheat the oven to 180°C (350°F).
Blanch the spinach in boiling water for 2 minutes, then drain and squeeze out excess water. Chop finely.
In a large bowl, mix the chopped spinach, ricotta, Parmesan, and 2 raw eggs until well combined. Season with salt and pepper.
Roll out half of the puff pastry and line a greased 9-inch pie tin, ensuring it covers the sides.
Fill the pastry base with the spinach and ricotta mixture. Make 6 evenly spaced indentations in the filling and place a hard-boiled egg in each.
Cover the pie with the remaining rolled-out pastry, sealing the edges. Brush with olive oil.
Bake in the preheated oven for about 1 hour, or until the pastry is golden brown.
Allow the pie to cool slightly before serving.