FR 3181 then FR 878 at Barcelona
Rome → Barcelona → Venezia
Timetable, Barcelona time
10:25FR 3181 from Rome at the gate
08:30FR 878 to Venezia leaves the gate
22 h 05 apart on the timetable, overnight
FR 878 leaves 22 h 05 after FR 3181 arrives on the timetable: more than half a day, so not a connection we count.