U2 2984 then FR 5816 at Fiumicino
Berlin → Rome → Bari
Timetable, Rome time
16:55U2 2984 from Berlin at the gate
16:20FR 5816 to Bari leaves the gate
23 h 25 apart on the timetable, overnight
FR 5816 leaves 23 h 25 after U2 2984 arrives on the timetable: more than half a day, so not a connection we count.