FR 689 then FR 2760 at Madrid
Vienna → Madrid → Bari
Timetable, Madrid time
09:10FR 689 from Vienna at the gate
08:25FR 2760 to Bari leaves the gate
23 h 15 apart on the timetable, overnight
FR 2760 leaves 23 h 15 after FR 689 arrives on the timetable: more than half a day, so not a connection we count.