Heat olive oil in a large pot over medium heat. Add chopped onion and cook for 3-4 minutes until softened.
- Add garlic, carrots, celery, zucchini, and green beans. Sauté for 5-7 minutes until vegetables begin to soften.
- Stir in diced tomatoes with their juice, cooking for 2 minutes. Pour in vegetable broth and bring to a boil. Reduce to a simmer and cook for 10 minutes until vegetables are tender.
- Add kidney beans (or white beans), chickpeas (if using), pasta, oregano, basil, thyme, and salt and pepper. Simmer for another 10-12 minutes until pasta is al dente.
- Stir in spinach or kale (if using) and cook until wilted, 2-3 minutes. Add lemon juice for extra brightness and taste. Adjust seasoning as needed.
- Serve with fresh parsley or Parmesan cheese and a slice of crusty bread.