Peel the onions and cut into cubes. Wash the zucchini, dry and cut into thin slices. Also cut the peppers into small cubes. Cut the Parma ham into strips.
Heat the olive oil in a pan. Sauté the onion, bell pepper, Parma ham and zucchini in the hot fat. Peel the garlic and add it through the press. Mix everything together well and let simmer for about 5 minutes. Then add the tomatoes, the mascarpone and the wine. Season with salt, pepper and the herbs. Then let it simmer for 8-10 minutes.
In the meantime, prepare the gnocchi according to the instructions on the packet.
Mix the cooked gnocchi with the sauce in a baking dish. Cut the mozzarella into slices and place over the casserole. Then bake everything at 180 degrees for 20 minutes.