AZ 76 then FR 4585 at Barcelona
Rome → Barcelona → Porto
Timetable, Barcelona time
15:55AZ 76 from Rome at the gate
09:35FR 4585 to Porto leaves the gate
17 h 40 apart on the timetable, overnight
FR 4585 leaves 17 h 40 after AZ 76 arrives on the timetable: more than half a day, so not a connection we count.