Make the pâte brisée by mixing the butter (60 g) with the flour and salt.
Leave it to cool wrapped in plastic wrap or a covered container.
Mix the rest of the butter with the sugar (panela) in a pot until it's dissolved, be careful not to burn the sugar.
Add the butter and sugar mixture to the baking dish.
Put the apples, cut in fourths, on the base of your baking dish, on top of the caramel.
Squeeze in the thin slices of pumpkin.
Use a rolling pin (if you have one, not like me 😅) to make a thin layer with your pâte brisée.
Bake in the oven at 200ºC for 15 minutes.
If it's not golden brown yet, bake for another 15 minutes at 250ºC. If it's a bit golden, leave the temperature at 200ºC and bake until golden brown.
If yu don't have a rolling pin, a cylinder like a glass will help you.
This recipe can be easily made vegan by using coconut oil. If you don't like it to have that coconut flavour, there's options like vegan butter and some coconut oils that aren't raw.