IB 52 then FR 3831 at Madrid
Málaga → Madrid → Bologna
Timetable, Madrid time
15:30IB 52 from Málaga at the gate
14:45FR 3831 to Bologna leaves the gate
23 h 15 apart on the timetable, overnight
FR 3831 leaves 23 h 15 after IB 52 arrives on the timetable: more than half a day, so not a connection we count.