In a large mixing bowl, combine the flour, granulated sugar, and salt.
Cut in the softened butter until the mixture resembles coarse crumbs.
Add the egg, almond extract, and vanilla extract. Mix until the dough comes together.
Form the dough into a ball, wrap it in plastic wrap, and refrigerate for at least 30 minutes.
In a separate bowl, mix together the almond meal, powdered sugar, egg white, and almond extract until smooth and well combined.
Preheat your oven to 350°F (175°C).
On a lightly floured surface, roll out the dough to about 1/8-inch thickness.
Cut the dough into squares or circles, about 2 inches in size.
Place a small spoonful of the almond filling in the center of each piece of dough.
Fold the dough over the filling to create a pocket or seal the edges with a fork to make a shape like a turnover.
Transfer the assembled cookies to a baking sheet lined with parchment paper.
Bake in the preheated oven for about 12-15 minutes, or until the edges are lightly golden.
Allow the cookies to cool on the baking sheet for a few minutes before transferring them to a wire rack to cool completely.
In a small bowl, whisk together the powdered sugar, milk, and almond extract (if using) until smooth.
Drizzle the glaze over the cooled cookies and sprinkle with sliced almonds if desired.
Enjoy your Croatian Rafioli!
Enjoy your meal!