FR 726 then FR 3814 at Madrid
Palermo → Madrid → Bologna
Timetable, Madrid time
20:50FR 726 from Palermo at the gate
13:00FR 3814 to Bologna leaves the gate
16 h 10 apart on the timetable, overnight
FR 3814 leaves 16 h 10 after FR 726 arrives on the timetable: more than half a day, so not a connection we count.