FR 766 then FR 5816 at Fiumicino
Beauvais → Rome → Bari
Timetable, Rome time
10:40FR 766 from Beauvais at the gate
08:15FR 5816 to Bari leaves the gate
21 h 35 apart on the timetable, overnight
FR 5816 leaves 21 h 35 after FR 766 arrives on the timetable: more than half a day, so not a connection we count.