FR 4586 then AT 965 at Barcelona
Porto → Barcelona → Casablanca
Timetable, Barcelona time
19:45FR 4586 from Porto at the gate
12:45AT 965 to Casablanca leaves the gate
17 h apart on the timetable, overnight
AT 965 leaves 17 h after FR 4586 arrives on the timetable: more than half a day, so not a connection we count.