FR 8240 then FR 1206 at Madrid
Porto → Madrid → Venezia
Timetable, Madrid time
16:30FR 8240 from Porto at the gate
10:20FR 1206 to Venezia leaves the gate
17 h 50 apart on the timetable, overnight
FR 1206 leaves 17 h 50 after FR 8240 arrives on the timetable: more than half a day, so not a connection we count.