AT 982 then FR 9904 at Lisbon
Casablanca → Lisbon → Rome
Timetable, Lisbon time
16:55AT 982 from Casablanca at the gate
16:40FR 9904 to Rome leaves the gate
23 h 45 apart on the timetable, overnight
FR 9904 leaves 23 h 45 after AT 982 arrives on the timetable: more than half a day, so not a connection we count.