FR 482 then FR 6305 at Barcelona
Málaga → Barcelona → Milan Bergamo
Timetable, Barcelona time
09:30FR 482 from Málaga at the gate
05:45FR 6305 to Milan Bergamo leaves the gate
20 h 15 apart on the timetable, overnight
FR 6305 leaves 20 h 15 after FR 482 arrives on the timetable: more than half a day, so not a connection we count.