IB 804 then FR 2760 at Madrid
Milan → Madrid → Bari
Timetable, Madrid time
08:45IB 804 from Milan at the gatealso AA 8500
08:25FR 2760 to Bari leaves the gate
23 h 40 apart on the timetable, overnight
FR 2760 leaves 23 h 40 after IB 804 arrives on the timetable: more than half a day, so not a connection we count.