FR 1207 then FR 5931 at Madrid
Venezia → Madrid → Fes
Timetable, Madrid time
19:00FR 1207 from Venezia at the gate
14:45FR 5931 to Fes leaves the gate
19 h 45 apart on the timetable, overnight
FR 5931 leaves 19 h 45 after FR 1207 arrives on the timetable: more than half a day, so not a connection we count.