3O 391 then IB 1241 at Madrid
Tangier → Madrid → Bologna
Timetable, Madrid time
16:403O 391 from Tangier at the gate
16:00IB 1241 to Bologna leaves the gatealso LA 1709, VY 5552, QR 6590
23 h 20 apart on the timetable, overnight
IB 1241 leaves 23 h 20 after 3O 391 arrives on the timetable: more than half a day, so not a connection we count.