Spoon the ricotta into a fine-mesh strainer set over a bowl and drain for 20 minutes. Preheat the oven to 375°F with the rack in the center, and line a rimmed baking sheet with parchment.
Bring 5 quarts of water to a boil, add 2 tablespoons salt, and cook 28 shells for 9 to 10 minutes, until they bend without tearing and keep a slight bite.
Drain the shells, toss with the olive oil, and spread on the parchment-lined sheet. Cool 10 minutes, until they stop steaming.
Stir the ricotta, 1 1/2 cups mozzarella, 1/2 cup Parmesan, egg, garlic, parsley, Italian seasoning, 1/2 teaspoon salt, and pepper for about 30 seconds, until thick, speckled, and no egg streaks remain.
Spread 1 cup marinara over the bottom of the 9x13-inch dish, covering the glass with no bare spots.
Pipe or spoon about 2 1/2 tablespoons of filling into each of 24 shells, until it sits in a soft mound just above the opening.
Set the shells open side up in four rows of six, touching lightly so none tip sideways.
Spoon the remaining 2 cups marinara over the shells, top with 1 cup mozzarella and 2 tablespoons Parmesan, and cover with foil.
Bake at 375°F for 25 minutes, until the sauce bubbles at the edges.
Remove the foil and bake 10 to 12 minutes more, until the cheese has golden spots and the center of a middle shell reads 165°F.
Rest 5 minutes, then scatter the basil on top. The sauce should look thicker and stay put when you scoop.