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