FR 5316 then A3 1777 at Madrid
Rome → Madrid → Lisbon
Timetable, Madrid time
08:20FR 5316 from Rome at the gate
21:10A3 1777 to Lisbon leaves the gate
12 h 50 apart on the timetable
A3 1777 leaves 12 h 50 after FR 5316 arrives on the timetable: more than half a day, so not a connection we count.