AA 8710 then FR 5321 at Madrid
Marrakesh → Madrid → Milan
Timetable, Madrid time
16:40AA 8710 from Marrakesh at the gate
13:20FR 5321 to Milan leaves the gate
20 h 40 apart on the timetable, overnight
FR 5321 leaves 20 h 40 after AA 8710 arrives on the timetable: more than half a day, so not a connection we count.