FR 4065 then FR 6791 at Madrid
Catania → Madrid → Marrakesh
Timetable, Madrid time
15:10FR 4065 from Catania at the gate
06:25FR 6791 to Marrakesh leaves the gate
15 h 15 apart on the timetable, overnight
FR 6791 leaves 15 h 15 after FR 4065 arrives on the timetable: more than half a day, so not a connection we count.