FR 59 then FR 2239 at Barcelona
Napoli → Barcelona → Marrakesh
Timetable, Barcelona time
12:50FR 59 from Napoli at the gate
06:45FR 2239 to Marrakesh leaves the gate
17 h 55 apart on the timetable, overnight
FR 2239 leaves 17 h 55 after FR 59 arrives on the timetable: more than half a day, so not a connection we count.