Wash the spinach thoroughly and remove excess water.
In a blender, blend spinach, basil, olive oil, pine nuts, Parmesan cheese, garlic, salt, and pepper until smooth.
Finely chop the onion.
Heat olive oil in a pan and sauté the chopped onion.
Add rice and stir-fry until the grains become translucent.
Pour in white wine and let the alcohol evaporate.
Gradually add broth while stirring until the rice is cooked.
When the rice is almost done, add the spinach pesto and mix well.
Finish by adding Parmesan cheese.