Whisk 3 1/2 cups of flour, 2 teaspoons of baking powder, 1/2 teaspoon of baking soda and 3/4 teaspoon of fine sea salt in a medium bowl for 20 seconds and set aside.
Beat 1 cup of softened butter with 1 1/4 cups of granulated sugar on medium speed for 2 to 3 minutes, until pale and fluffy.
Beat in 1 1/2 cups of drained ricotta, 1 tablespoon of lemon zest, 1 1/2 teaspoons of vanilla extract and 1 teaspoon of almond extract until smooth. Mix in 2 large eggs, one at a time. On the lowest speed, add the flour mixture a little at a time, mixing just until no streaks of flour remain.
Cover and chill for at least 1 hour, or up to overnight. Heat the oven to 350°F (175°C) and line two baking sheets with parchment paper. Scoop with a 1-tablespoon cookie scoop, roll lightly into balls, and set 2 inches apart, 24 per sheet.
Bake one sheet at a time for 12 to 14 minutes, until puffed and set but still soft to the touch, with lightly golden bottoms. Rest on the sheet for 5 minutes, then move to a wire rack to cool completely.
Whisk 2 cups of sifted powdered sugar with 3 tablespoons of milk, 1 teaspoon of vanilla and 1/4 teaspoon of salt until smooth, adding milk a teaspoon at a time until the glaze falls in a thick ribbon. Dip the top of each cooled cookie, hold upside down for a few seconds so the excess drips back, set on the rack and sprinkle immediately. Let the glaze set for 15 minutes before stacking or packing.