01 - Preheat oven to 400°F (200°C).
02 - Heat olive oil in a large skillet over medium heat. Add onion and garlic; sauté until soft and translucent, about 4 minutes.
03 - Add shredded chicken to the skillet and stir until heated through. Remove from heat.
04 - In a large bowl, combine ricotta, heavy cream, parsley, thyme, rosemary, salt, pepper, and lemon zest. Mix well.
05 - Add the chicken mixture to the ricotta mixture and stir until evenly combined.
06 - Line a 9-inch pie dish with one sheet of puff pastry, pressing gently to fit and trimming excess.
07 - Spoon the filling evenly into the pastry-lined dish.
08 - Cover with the second sheet of puff pastry. Trim, pinch edges to seal, and cut a few small slits in the top for steam to escape.
09 - Brush the top with beaten egg for a golden finish.
10 - Bake for 40–45 minutes, or until the pastry is golden brown and crisp.
11 - Let the pie cool for 10 minutes before slicing and serving.