FR 1644 then FR 9004 at Vienna
Rome → Vienna → Bari
Timetable, Vienna time
20:00FR 1644 from Rome at the gate
19:10FR 9004 to Bari leaves the gate
23 h 10 apart on the timetable, overnight
FR 9004 leaves 23 h 10 after FR 1644 arrives on the timetable: more than half a day, so not a connection we count.