FR 5316 then FR 725 at Madrid
Rome → Madrid → Palermo
Timetable, Madrid time
08:20FR 5316 from Rome at the gate
21:25FR 725 to Palermo leaves the gate
13 h 05 apart on the timetable
FR 725 leaves 13 h 05 after FR 5316 arrives on the timetable: more than half a day, so not a connection we count.