LA 5798 then IB 5340 at Barcelona
Lisbon → Barcelona → Rome
Timetable, Barcelona time
23:55LA 5798 from Lisbon at the gate
12:55IB 5340 to Rome leaves the gatealso LL 5340, LA 5839
13 h apart on the timetable, overnight
IB 5340 leaves 13 h after LA 5798 arrives on the timetable: more than half a day, so not a connection we count.