FR 8196 then IB 1142 at Lisbon
Rome → Lisbon → Madrid
Timetable, Lisbon time
13:00FR 8196 from Rome at the gate
12:30IB 1142 to Madrid leaves the gate
23 h 30 apart on the timetable, overnight
IB 1142 leaves 23 h 30 after FR 8196 arrives on the timetable: more than half a day, so not a connection we count.