FR 866 then FR 3189 at Barcelona
Venezia → Barcelona → Fes
Timetable, Barcelona time
22:15FR 866 from Venezia at the gate
21:30FR 3189 to Fes leaves the gate
23 h 15 apart on the timetable, overnight
FR 3189 leaves 23 h 15 after FR 866 arrives on the timetable: more than half a day, so not a connection we count.