AT 972 then FR 9674 at Madrid
Casablanca → Madrid → Rome
Timetable, Madrid time
12:00AT 972 from Casablanca at the gate
10:25FR 9674 to Rome leaves the gate
22 h 25 apart on the timetable, overnight
FR 9674 leaves 22 h 25 after AT 972 arrives on the timetable: more than half a day, so not a connection we count.