FR 2761 then UX 1047 at Madrid
Bari → Madrid → Rome
Timetable, Madrid time
15:15FR 2761 from Bari at the gate
15:00UX 1047 to Rome leaves the gate
23 h 45 apart on the timetable, overnight
UX 1047 leaves 23 h 45 after FR 2761 arrives on the timetable: more than half a day, so not a connection we count.