FR 5322 then UX 1083 at Madrid
Milan → Madrid → Venezia
Timetable, Madrid time
19:45FR 5322 from Milan at the gate
15:15UX 1083 to Venezia leaves the gate
19 h 30 apart on the timetable, overnight
UX 1083 leaves 19 h 30 after FR 5322 arrives on the timetable: more than half a day, so not a connection we count.