01 - Preheat oven to 350°F.
02 - Heat olive oil in a large skillet over medium heat. Sauté onion for 3–4 minutes until translucent, then add garlic and cook for 1 minute.
03 - Add spinach to skillet, stir and cook until wilted and liquid evaporates, about 5 minutes. Remove from heat and cool slightly.
04 - In a mixing bowl, blend feta, ricotta, eggs, dill, parsley, nutmeg, salt, and pepper. Fold in cooled spinach mixture until well incorporated.
05 - Brush a 9-inch pie dish with melted butter.
06 - Place 4 filo sheets in dish, brushing each with melted butter and allowing edges to hang over sides.
07 - Distribute spinach and feta filling evenly over filo layers.
08 - Cover with remaining 4 filo sheets, brushing each with melted butter. Fold overhanging edges over top and brush with additional butter.
09 - Score top filo layer with a sharp knife to allow steam release during baking.
10 - Bake for 35–40 minutes until golden brown and crisp.
11 - Allow pie to cool for 10 minutes before slicing and serving.