FR 6841 then FR 495 at Dublin
Napoli → Dublin → Madrid
Timetable, Dublin time
16:40FR 6841 from Napoli at the gate
10:00FR 495 to Madrid leaves the gate
17 h 20 apart on the timetable, overnight
FR 495 leaves 17 h 20 after FR 6841 arrives on the timetable: more than half a day, so not a connection we count.