FR 6722 then FR 3814 at Madrid
Marrakesh → Madrid → Bologna
Timetable, Madrid time
21:00FR 6722 from Marrakesh at the gate
13:00FR 3814 to Bologna leaves the gate
16 h apart on the timetable, overnight
FR 3814 leaves 16 h after FR 6722 arrives on the timetable: more than half a day, so not a connection we count.