01 - Preheat the oven to 350°F. Grease and line two 8-inch round cake pans with parchment paper.
02 - Process 7 oz shelled pistachios in a food processor until finely ground. Set aside.
03 - Whisk together flour, baking powder, salt, and ground pistachios in a medium bowl until well incorporated.
04 - Beat softened butter and granulated sugar in a large bowl until light and fluffy. Add eggs one at a time, beating thoroughly after each addition.
05 - Mix in vanilla extract and lemon zest until evenly distributed throughout the batter.
06 - Alternately add flour mixture and milk to butter mixture, beginning and ending with flour. Mix until just combined, being careful not to overmix.
07 - Gently fold 7 oz fresh raspberries into the batter to distribute evenly without crushing the fruit.
08 - Divide batter evenly between prepared pans. Smooth tops and bake for 40-45 minutes, or until a toothpick inserted in the center comes out clean.
09 - Let cakes cool in pans for 10 minutes, then remove and transfer to a wire rack to cool completely before frosting.
10 - Beat cream cheese and butter until smooth and creamy. Gradually add powdered sugar and vanilla, continuing to beat until fluffy and spreadable.
11 - Spread a layer of frosting over one completely cooled cake layer. Place second layer on top and frost the top and sides evenly.
12 - Press chopped pistachios into the sides of the frosted cake. Arrange fresh raspberries on top for a vibrant finish.