Heat 1 tablespoon olive oil in a large skillet over medium heat. Add the spinach in batches and cook until just wilted, about 3 to 4 minutes per batch.
Transfer the spinach to a colander and let it cool. Squeeze out as much water as possible with your hands, then chop it finely.
In a large bowl, combine the spinach, feta, ricotta, spring onions, dill, parsley, garlic, eggs, salt, pepper and nutmeg. Mix until evenly combined.
Preheat the oven to 180 C (350 F). Brush a 9x13 inch baking dish with melted butter.
Lay one phyllo sheet in the dish and brush it lightly with butter. Repeat with 7 more sheets to form the base layer.
Spread the spinach filling evenly over the base. Smooth the top with a spoon.
Layer the remaining phyllo sheets on top, brushing each one with butter. Tuck any overhanging edges into the sides.
Score the top into 8 portions with a sharp knife, cutting through the top layers only. Sprinkle with sesame seeds if using.
Bake for 40 to 45 minutes until the top is deep golden and crisp.
Rest for 10 minutes before cutting along the scored lines and serving warm.