Add all the ingredients for the dough in a food processor and mix until a rough and crumbly dough is formed.
Transfer the mixture to a clean surface and gather it into a sphere, to form a firm dough.
Wrap the obtained dough in a plastic wrap and put it in the refrigerator.
Drain the spinach of excess water and chop it.
Heat a pan on medium heat with a little bit of oil, add the chopped spinach and ricotta. Cook, stirring on medium heat, until the excess liquid evaporates and the mixture becomes creamier. Add salt, mix and remove from heat.
Add the Parmesan cheese and let the mixture cool to room temperature, then add the beaten egg and mix.
Leave the filling aside and roll out the dough.
Heat the oven to 180C (360 ºF).
Divide the dough in two and spread it with a rolling pin until you get two round disks. Transfer one onto the pie form, add the filling.
With the help of a spoon, make indentations in the filling and crack an egg into each of the indentations.
Cover with the remaining top, catch the edges of the pie and with a knife, cut a few lines in the top layer, so that the dough does not swell when baked.
Put the pie in the oven and leave it to bake for 35 minutes, or until it turns brown.