FR 2776 then FR 3814 at Madrid
Palma de Mallorca → Madrid → Bologna
Timetable, Madrid time
15:55FR 2776 from Palma de Mallorca at the gate
12:45FR 3814 to Bologna leaves the gate
20 h 50 apart on the timetable, overnight
FR 3814 leaves 20 h 50 after FR 2776 arrives on the timetable: more than half a day, so not a connection we count.