01 - Preheat oven to 390°F. Line a 9-inch pie dish with baking paper.
02 - Heat olive oil in a large skillet over medium heat. Add onion and sauté until soft, about 4 minutes.
03 - Add garlic and cook for 1 minute. Stir in diced chicken, salt, pepper, thyme, and oregano. Cook until chicken is just cooked through, about 8 minutes. Remove from heat.
04 - Stir in parsley, basil, ricotta, spinach, lemon zest, and the beaten egg. Mix until well combined. Allow filling to cool for 10 minutes.
05 - Fit one sheet of puff pastry into the prepared pie dish, gently pressing into the sides. Trim excess if needed.
06 - Spoon the chicken ricotta filling evenly into the pastry shell.
07 - Cover with the second sheet of puff pastry. Trim and crimp the edges to seal. Cut a few small slits in the top to allow steam to escape.
08 - Brush the surface with beaten egg.
09 - Bake for 35-40 minutes, or until the pastry is golden and crisp.
10 - Rest for 10 minutes before slicing and serving.