Precook the pasta in salted water for about 5 minutes. Drain on kitchen paper. Peel onion and garlic, dice finely. Steam in 20 g fat. Add spinach and fry briefly. Deglaze with 100 ml stock and cook for about 15 minutes.
Melt the remaining fat. Sweat flour in it. Deglaze with remaining stock and milk. Simmer for 5 minutes. Crumble the gorgonzola, melt in it. Season with salt and pepper. Season spinach with salt, pepper and nutmeg.
Cut the ham into strips. Layer the ingredients in a greased ovenproof dish. Pour sauce over each layer. Bake in the preheated oven (electric oven: 200 °C/ gas: level 3) for about 30 minutes.
After 15 minutes sprinkle with Emmental cheese.