AZ 76 then FR 8394 at Barcelona
Rome → Barcelona → Budapest
Timetable, Barcelona time
15:55AZ 76 from Rome at the gate
06:10FR 8394 to Budapest leaves the gate
14 h 15 apart on the timetable, overnight
FR 8394 leaves 14 h 15 after AZ 76 arrives on the timetable: more than half a day, so not a connection we count.