FR 50 then FR 9004 at Vienna
Treviso → Vienna → Bari
Timetable, Vienna time
23:00FR 50 from Treviso at the gate
11:20FR 9004 to Bari leaves the gate
12 h 20 apart on the timetable, overnight
FR 9004 leaves 12 h 20 after FR 50 arrives on the timetable: more than half a day, so not a connection we count.