EC 7152 then AT 965 at Barcelona
Milan → Barcelona → Casablanca
Timetable, Barcelona time
14:25EC 7152 from Milan at the gate
12:45AT 965 to Casablanca leaves the gate
22 h 20 apart on the timetable, overnight
AT 965 leaves 22 h 20 after EC 7152 arrives on the timetable: more than half a day, so not a connection we count.