FR 270 then FR 3166 at Barcelona
Milan → Barcelona → Palermo
Timetable, Barcelona time
17:55FR 270 from Milan at the gate
08:30FR 3166 to Palermo leaves the gate
14 h 35 apart on the timetable, overnight
FR 3166 leaves 14 h 35 after FR 270 arrives on the timetable: more than half a day, so not a connection we count.