EC 4211 then FR 8631 at Barcelona
Napoli → Barcelona → Tangier
Timetable, Barcelona time
17:00EC 4211 from Napoli at the gate
11:00FR 8631 to Tangier leaves the gate
18 h apart on the timetable, overnight
FR 8631 leaves 18 h after EC 4211 arrives on the timetable: more than half a day, so not a connection we count.