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