OS 772 then FR 9004 at Vienna
Sofia → Vienna → Bari
Timetable, Vienna time
13:10OS 772 from Sofia at the gate
11:20FR 9004 to Bari leaves the gate
22 h 10 apart on the timetable, overnight
FR 9004 leaves 22 h 10 after OS 772 arrives on the timetable: more than half a day, so not a connection we count.