FR 7538 then FR 6305 at Barcelona
Milan → Barcelona → Milan Bergamo
Timetable, Barcelona time
08:05FR 7538 from Milan at the gate
05:45FR 6305 to Milan Bergamo leaves the gate
21 h 40 apart on the timetable, overnight
FR 6305 leaves 21 h 40 after FR 7538 arrives on the timetable: more than half a day, so not a connection we count.