FR 5898 then AM 6845 at Madrid
Torino → Madrid → Venezia
Timetable, Madrid time
23:10FR 5898 from Torino at the gate
15:15AM 6845 to Venezia leaves the gate
16 h 05 apart on the timetable, overnight
AM 6845 leaves 16 h 05 after FR 5898 arrives on the timetable: more than half a day, so not a connection we count.