FR 1330 then FR 404 at Madrid
Napoli → Madrid → Palma de Mallorca
Timetable, Madrid time
11:50FR 1330 from Napoli at the gate
07:55FR 404 to Palma de Mallorca leaves the gate
20 h 05 apart on the timetable, overnight
FR 404 leaves 20 h 05 after FR 1330 arrives on the timetable: more than half a day, so not a connection we count.