W4 6315 then FR 3166 at Barcelona
Milan → Barcelona → Palermo
Timetable, Barcelona time
12:25W4 6315 from Milan at the gate
09:10FR 3166 to Palermo leaves the gate
20 h 45 apart on the timetable, overnight
FR 3166 leaves 20 h 45 after W4 6315 arrives on the timetable: more than half a day, so not a connection we count.