FR 5817 then FR 3074 at Fiumicino
Bari → Rome → Brindisi
Timetable, Rome time
07:40FR 5817 from Bari at the gate
05:50FR 3074 to Brindisi leaves the gate
22 h 10 apart on the timetable, overnight
FR 3074 leaves 22 h 10 after FR 5817 arrives on the timetable: more than half a day, so not a connection we count.