FR 5817 then FR 4437 at Fiumicino
Bari → Rome → Riga
Timetable, Rome time
07:40FR 5817 from Bari at the gate
06:00FR 4437 to Riga leaves the gate
22 h 20 apart on the timetable, overnight
FR 4437 leaves 22 h 20 after FR 5817 arrives on the timetable: more than half a day, so not a connection we count.