LL 5029 then LA 5749 at Barcelona
Berlin → Barcelona → Bari
Timetable, Barcelona time
13:05LL 5029 from Berlin at the gate
11:40LA 5749 to Bari leaves the gate
22 h 35 apart on the timetable, overnight
LA 5749 leaves 22 h 35 after LL 5029 arrives on the timetable: more than half a day, so not a connection we count.