FR 5930 then FR 3814 at Madrid
Fes → Madrid → Bologna
Timetable, Madrid time
19:45FR 5930 from Fes at the gate
07:50FR 3814 to Bologna leaves the gate
12 h 05 apart on the timetable, overnight
FR 3814 leaves 12 h 05 after FR 5930 arrives on the timetable: more than half a day, so not a connection we count.