for the mixture: unite the 2 flours, add the eggs and knead tough. Let rest in the fridge for 1 hour.
The filling: sift the ricotta and add the cheese, the herbs, salt, pepper and amalgamate everything until you get a homogeneous mass.
Caramelized apples: put the sugar in a sauce pan over a medium heat. Leave it until the sugar crystals have all transrformed into a liquid. Then add cinnamon and the peeled and slieced apples. Wet all in white wine and bake it for 5 minutes.