FR 3977 then EC 4212 at Barcelona
Dublin → Barcelona → Napoli
Timetable, Barcelona time
22:55FR 3977 from Dublin at the gate
17:35EC 4212 to Napoli leaves the gate
18 h 40 apart on the timetable, overnight
EC 4212 leaves 18 h 40 after FR 3977 arrives on the timetable: more than half a day, so not a connection we count.