FR 9005 then FR 182 at Vienna
Bari → Vienna → Sofia
Timetable, Vienna time
14:55FR 9005 from Bari at the gate
11:40FR 182 to Sofia leaves the gate
20 h 45 apart on the timetable, overnight
FR 182 leaves 20 h 45 after FR 9005 arrives on the timetable: more than half a day, so not a connection we count.