FR 9673 then FR 445 at Madrid
Rome → Madrid → Palermo
Timetable, Madrid time
23:30FR 9673 from Rome at the gate
22:35FR 445 to Palermo leaves the gate
23 h 05 apart on the timetable, overnight
FR 445 leaves 23 h 05 after FR 9673 arrives on the timetable: more than half a day, so not a connection we count.