Visit Dubrovnik then fly to Rome and continue to Venice by train.
From web hierarchy
Suggested Itinerary Includes:
Hotel for 2 nights in Dubrovnik Flight - Dubrovnik to Rome Hotel for 2 nights in Rome Eurostar Italia train - Rome to Venice Hotel for 2 nights in Venice Daily breakfast (if stated in hotel info)