FR 3181 then IB 5112 at Barcelona
Rome → Barcelona → Lisbon
Timetable, Barcelona time
13:40FR 3181 from Rome at the gate
12:15IB 5112 to Lisbon leaves the gate
22 h 35 apart on the timetable, overnight
IB 5112 leaves 22 h 35 after FR 3181 arrives on the timetable: more than half a day, so not a connection we count.