FR 5120 then AM 6845 at Madrid
Milan Bergamo → Madrid → Venezia
Timetable, Madrid time
17:35FR 5120 from Milan Bergamo at the gate
15:15AM 6845 to Venezia leaves the gate
21 h 40 apart on the timetable, overnight
AM 6845 leaves 21 h 40 after FR 5120 arrives on the timetable: more than half a day, so not a connection we count.