Preheat your oven to 350°F (175°C) and line a baking sheet with parchment paper.
In a large mixing bowl, whisk together the flour, sugar, baking powder, baking soda, and salt until well combined.
In a separate bowl, beat the eggs, vanilla extract, and almond extract together until the mixture is smooth.
Gradually add the wet ingredients to the dry ingredients, mixing until just combined.
Fold in the dried cranberries and chopped pistachios until evenly distributed throughout the dough.
On a lightly floured surface, divide the dough in half and shape each half into a log about 12 inches long and 2 inches wide.
Place the logs on the prepared baking sheet, spacing them at least 3 inches apart.
Bake in the preheated oven for 25-30 minutes or until golden and slightly firm in the center.
Remove the baking sheet from the oven and let the logs cool for about 10-15 minutes.
Once cooled, use a serrated knife to slice the logs diagonally into 1/2-inch thick biscotti.
Arrange the biscotti cut-side down back on the baking sheet and return them to the oven.
Bake for an additional 10-15 minutes, flipping them halfway through, until they are crisp and golden brown.
Allow the biscotti to cool completely on a wire rack before serving.
Notes
Serve the biscotti on a decorative platter accompanied by a small dish of melted chocolate for dipping or with a cup of tea or coffee for an elegant touch.