IB 5355 then IB 5388 at Barcelona
Milan → Barcelona → Bari
Timetable, Barcelona time
14:55IB 5355 from Milan at the gatealso LL 5355, VY 6043
13:25IB 5388 to Bari leaves the gatealso LL 5388, VY 6112
22 h 30 apart on the timetable, overnight
IB 5388 leaves 22 h 30 after IB 5355 arrives on the timetable: more than half a day, so not a connection we count.