Hi there! I think this is a pretty good itinerary, and thanks for stating where you're spending the nights, gives us a better idea. So here are my questions - Are you sure you only want to spend 3 days in Rome (with a second stop-over) and so long on the AC? I would add an extra day in Rome & take one from Sorrento, used mostly as a jumping off point for Pompeii (and I'd try to see Herculaneum too, much more compact and fewer tourists) and Capri. Crystal did a great trip report on Sorrento - https://community.ricksteves.com/travel-forum/trip-reports/12-nights-in-italy-jul-aug-2023-trip-report-part-2-sorrento
We booked a car leaving the town of Amalfi with a driver, stopped at Pompeii and delivered us to Naples train station. Many on the Forum have recommended Mondo tours for this area. I LOVED Ravello, though there isn't that much to do there in the evening, I would be delighted to spend 2 nights there. It's a gorgeous little town perched above the Med, visit the Villa Cimbrone overlooking the sea, this town is less busy than the towns along the coast.
Where are you staying on the AC? Personally, I would choose Amalfi, large enough to wander, bus up to Ravello, take the ferry along the coast rather than buses, god forbid. Positano is best viewed from the water, no need to day trip there. Others recommend staying in Salerno, good beach and a real small town with good food. Also use search bar above, just type in something like, 'Salerno Forum'.
Have you booked your flights? You could consider a multi-leg, into Venice & out of Naples, no back tracking to Rome for a second stay, stop there on way. I loved Capri & have been 3x, but haven't been there in decades, lots on the forum using the search bar above about how to spend a day there. Had you considered a stay or at least going into Naples from Sorrento to see the Archeological museum? I still recall the awe and wonder of it's statues, long before i was interested in ancient Roman & Greek art. It will help make your visit to Pompeii come alive.
You won't want to necessarily follow my TR for Rome sights, (although if you want to be nearly alone in an incredible museum, consider the Palazzo Massimo across from Rome Termini station) but we ate at some pretty good restaurants. And the view described out overlooking the Forum from the Capitoline museum was priceless. https://community.ricksteves.com/travel-forum/trip-reports/rome-was-jammed-over-ny-but-still-fun. Good luck and let us know below how the plans progress! Booking accommodations soon would be best.
This is another good thread that might provide other insights - https://community.ricksteves.com/travel-forum/italy/10-day-itinerary-starting-and-ending-in-rome-heading-south