FR 3813 then FR 9430 at Madrid
Bologna → Madrid → Marrakesh
Timetable, Madrid time
12:10FR 3813 from Bologna at the gate
09:30FR 9430 to Marrakesh leaves the gate
21 h 20 apart on the timetable, overnight
FR 9430 leaves 21 h 20 after FR 3813 arrives on the timetable: more than half a day, so not a connection we count.