FR 59 then FR 12 at Barcelona
Napoli → Barcelona → Vienna
Timetable, Barcelona time
12:50FR 59 from Napoli at the gate
10:55FR 12 to Vienna leaves the gate
22 h 05 apart on the timetable, overnight
FR 12 leaves 22 h 05 after FR 59 arrives on the timetable: more than half a day, so not a connection we count.