FR 6723 then FR 9472 at Madrid
Marrakesh → Madrid → Pisa
Timetable, Madrid time
22:15FR 6723 from Marrakesh at the gate
13:00FR 9472 to Pisa leaves the gate
14 h 45 apart on the timetable, overnight
FR 9472 leaves 14 h 45 after FR 6723 arrives on the timetable: more than half a day, so not a connection we count.