01 - Preheat oven to 350°F. Grease two 8-inch round cake pans and line 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 thoroughly 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, being careful not to crush fruit.
09 - Divide batter evenly between prepared pans. Bake 40-45 minutes until toothpick inserted in center comes out clean. Cool in pans 10 minutes, then transfer to wire rack.
10 - Beat cream cheese and butter until smooth. Gradually add powdered sugar and vanilla, beating until fluffy.
11 - Spread frosting layer over one cooled cake, place second layer on top, then frost top and sides. Garnish with chopped pistachios and fresh raspberries.