FR 776 then FR 3146 at Barcelona
Venezia → Barcelona → Oujda
Timetable, Barcelona time
17:40FR 776 from Venezia at the gate
13:50FR 3146 to Oujda leaves the gate
20 h 10 apart on the timetable, overnight
FR 3146 leaves 20 h 10 after FR 776 arrives on the timetable: more than half a day, so not a connection we count.