AC 2676 then IB 5798 at Barcelona
Lisbon → Barcelona → Cagliari
Timetable, Barcelona time
17:15AC 2676 from Lisbon at the gatealso UA 6887
07:15IB 5798 to Cagliari leaves the gatealso LL 5798, VY 6114
14 h apart on the timetable, overnight
IB 5798 leaves 14 h after AC 2676 arrives on the timetable: more than half a day, so not a connection we count.