IB 5353 then LA 5749 at Barcelona
Milan → Barcelona → Bari
Timetable, Barcelona time
11:55IB 5353 from Milan at the gate
11:40LA 5749 to Bari leaves the gate
23 h 45 apart on the timetable, overnight
LA 5749 leaves 23 h 45 after IB 5353 arrives on the timetable: more than half a day, so not a connection we count.