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