Let’s cut it down to a 3-hour ride.
If you want sun and sand, you can give Santos a try. It’s a half and an hour drive and it has great beaches, coffee museums, and seafront restaurants. You can just chill by the beach on your towel and hit the road when the sun sets.
For historical town, you can go to Viação Vale do Tietê. It’s an hour away by bus and everything here is big. They have oversized postcards, pencils, telephone booth, and more.
If you want to taste some good local wines, you can head up to Jundia. It’s also an hour away and famous for its grape production.