FR 3008 then AT 971 at Madrid
Milan → Madrid → Casablanca
Timetable, Madrid time
19:50FR 3008 from Milan at the gate
19:05AT 971 to Casablanca leaves the gate
23 h 15 apart on the timetable, overnight
AT 971 leaves 23 h 15 after FR 3008 arrives on the timetable: more than half a day, so not a connection we count.