Sauté vegetables – In a large soup pot, heat olive oil over medium heat. Add onion, carrots, celery, and garlic. Cook for 5–6 minutes until softened.
Build the broth – Stir in zucchini, bell pepper, green beans, diced tomatoes, and broth. Add oregano, basil, thyme, salt, and pepper. Bring to a boil, then reduce to a simmer for 20 minutes.
Add beans and pasta – Stir in cannellini beans, kidney beans, and pasta. Simmer until pasta is tender, about 10 minutes.
Finish with greens – Stir in spinach or kale and let wilt for 2 minutes. Adjust seasoning.
Serve – Ladle into bowls, top with Parmesan if desired, and serve hot with crusty bread.