01 - Set the oven temperature to 350°F (180°C) to prepare for baking.
02 - Boil salted water in a large pot and cook the pasta shells until just tender, about 2 minutes less than package instructions. Drain and lay shells on a towel to cool.
03 - Wilt fresh spinach in a dry skillet over medium heat for 2 to 3 minutes. Allow to cool, then squeeze out excess moisture and chop finely.
04 - In a mixing bowl, combine chopped spinach, ricotta, Parmesan, egg, minced garlic, ground nutmeg, salt, and black pepper until thoroughly blended.
05 - Heat olive oil in a saucepan over medium heat. Sauté chopped onion until softened, approximately 5 minutes. Add garlic and cook for 1 minute more. Stir in passata, dried oregano, sugar, salt, and pepper. Simmer gently for 10 minutes, stirring occasionally.
06 - Spread half of the tomato sauce evenly in the bottom of a large baking dish. Fill each pasta shell with the ricotta-spinach mixture using a spoon or piping bag and arrange them in the dish.
07 - Pour the remaining tomato sauce over the filled shells. Sprinkle grated mozzarella and additional Parmesan evenly on top.
08 - Cover the dish loosely with foil and bake in the preheated oven for 25 minutes.
09 - Remove the foil and continue baking for an additional 10 minutes until the cheese is golden and bubbly.
10 - Garnish with fresh basil leaves, if desired, before serving.