01 - Preheat oven to 350°F. Grease and line two 8-inch round cake pans with parchment paper.
02 - Finely grind pistachios in a food processor until fine meal forms. Set aside.
03 - Whisk together flour, baking powder, salt, and ground pistachios in a medium bowl.
04 - Beat butter and sugar in a large bowl until light and fluffy, approximately 3-4 minutes.
05 - Add eggs one at a time, beating well after each addition until fully incorporated.
06 - Mix in vanilla extract and lemon zest until evenly distributed.
07 - Alternate adding flour mixture and milk to butter mixture, beginning and ending with flour. Mix until just combined.
08 - Gently fold raspberries into batter, taking care not to crush them.
09 - Divide batter evenly between prepared pans. Bake for 40-45 minutes until a toothpick inserted in center comes out clean.
10 - Cool in pans for 10 minutes, then turn out onto wire rack to cool completely.
11 - Beat cream cheese and butter until smooth. Gradually add powdered sugar and vanilla, beating until fluffy.
12 - Spread frosting layer over one cooled cake. Top with second layer and frost top and sides evenly.
13 - Press chopped pistachios around base and arrange fresh raspberries on top.