You can prepare the dough with a stand mixer by adding all the ingredients to the bowl and kneading with a dough hook. Alternatively, you can knead by hand (instructions below).
Pour the flour onto a work surface, create a well in the center, sprinkle salt around the edges of the well, and place the soft butter cut into chunks, the egg yolk, and a little water in the center.
Break the egg yolk with a fork and mix it with the water. Gradually bring some of the flour from the edges into the center and start kneading with your hands, adding water little by little and incorporating all the flour until you obtain a soft, not sticky dough. Add one tablespoon of water at a time if the dough feels too dry.
Let the dough rest on the work surface. Melt the butter and sugar in a small saucepan over low heat.
While the sugar mixture is cooling, roll out the dough into a large, thin sheet about 3-4 mm thick. Brush the dough with half of the melted butter and sugar mixture, then fold the dough 4 times: see the photo below the recipe.
Roll out the dough again with a rolling pin and brush it again with the butter and sugar mixture. Fold it into a packet like before, and work the dough with your hands for a few minutes, forming a ball.
Wrap the dough in plastic wrap and let it rest in the fridge for an hour.