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