FR 7958 then FR 5710 at Barcelona
Cork → Barcelona → Napoli
Timetable, Barcelona time
22:55FR 7958 from Cork at the gate
20:25FR 5710 to Napoli leaves the gate
21 h 30 apart on the timetable, overnight
FR 5710 leaves 21 h 30 after FR 7958 arrives on the timetable: more than half a day, so not a connection we count.