AV 2485 then FR 5315 at Madrid
Lisbon → Madrid → Rome
Timetable, Madrid time
17:10AV 2485 from Lisbon at the gate
16:40FR 5315 to Rome leaves the gate
23 h 30 apart on the timetable, overnight
FR 5315 leaves 23 h 30 after AV 2485 arrives on the timetable: more than half a day, so not a connection we count.