Preheat oven to 375°F (190°C) and lightly butter a small baking dish.
If using fresh spinach, sauté briefly until wilted. Place spinach in a kitchen towel and squeeze until completely dry.
In a skillet over medium heat, melt butter with olive oil.
Add onion/shallot and cook until soft, about 3 minutes.
Stir in garlic and chopped shrimp. Cook for 2 minutes until shrimp is just pink.
Reduce heat to low. Stir in cream cheese and heavy cream until smooth.
Season with nutmeg, salt, and pepper.
Fold in the dried spinach until fully coated.
Gently fold in the lump crab meat, keeping the lumps intact.
Transfer mixture to the prepared baking dish.
Sprinkle mozzarella and Parmesan evenly over the top.
Bake for 20–25 minutes until bubbly and lightly golden.
Let rest for 5 minutes before serving.