QR 4769 then AT 5304 at Madrid
Firenze → Madrid → Marrakesh
Timetable, Madrid time
20:00QR 4769 from Firenze at the gatealso IB 5786, VY 6036, AA 8866
19:30AT 5304 to Marrakesh leaves the gatealso VY 5477, BA 7165
23 h 30 apart on the timetable, overnight
AT 5304 leaves 23 h 30 after QR 4769 arrives on the timetable: more than half a day, so not a connection we count.