FR 3181 then FR 2239 at Barcelona
Rome → Barcelona → Marrakesh
Timetable, Barcelona time
12:15FR 3181 from Rome at the gate
10:45FR 2239 to Marrakesh leaves the gate
22 h 30 apart on the timetable, overnight
FR 2239 leaves 22 h 30 after FR 3181 arrives on the timetable: more than half a day, so not a connection we count.