LA 5798 then FR 6973 at Barcelona
Lisbon → Barcelona → Rome
Timetable, Barcelona time
23:55LA 5798 from Lisbon at the gate
23:00FR 6973 to Rome leaves the gate
23 h 05 apart on the timetable, overnight
FR 6973 leaves 23 h 05 after LA 5798 arrives on the timetable: more than half a day, so not a connection we count.