FR 3188 then FR 846 at Barcelona
Fes → Barcelona → Milan Bergamo
Timetable, Barcelona time
20:55FR 3188 from Fes at the gate
20:10FR 846 to Milan Bergamo leaves the gate
23 h 15 apart on the timetable, overnight
FR 846 leaves 23 h 15 after FR 3188 arrives on the timetable: more than half a day, so not a connection we count.