FR 3142 then FR 4597 at Barcelona
Milan Bergamo → Barcelona → Porto
Timetable, Barcelona time
21:50FR 3142 from Milan Bergamo at the gate
20:40FR 4597 to Porto leaves the gate
22 h 50 apart on the timetable, overnight
FR 4597 leaves 22 h 50 after FR 3142 arrives on the timetable: more than half a day, so not a connection we count.