QR 3706 then FR 867 at Barcelona
Bari → Barcelona → Venezia
Timetable, Barcelona time
23:25QR 3706 from Bari at the gate
22:50FR 867 to Venezia leaves the gate
23 h 25 apart on the timetable, overnight
FR 867 leaves 23 h 25 after QR 3706 arrives on the timetable: more than half a day, so not a connection we count.