FR 3181 then FR 4587 at Barcelona
Rome → Barcelona → Porto
Timetable, Barcelona time
10:25FR 3181 from Rome at the gate
22:55FR 4587 to Porto leaves the gate
12 h 30 apart on the timetable
FR 4587 leaves 12 h 30 after FR 3181 arrives on the timetable: more than half a day, so not a connection we count.