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