FR 8630 then QR 3623 at Barcelona
Tangier → Barcelona → Salerno
Timetable, Barcelona time
15:10FR 8630 from Tangier at the gate
07:10QR 3623 to Salerno leaves the gate
16 h apart on the timetable, overnight
QR 3623 leaves 16 h after FR 8630 arrives on the timetable: more than half a day, so not a connection we count.