FR 59 then FR 3166 at Barcelona
Napoli → Barcelona → Palermo
Timetable, Barcelona time
12:50FR 59 from Napoli at the gate
11:30FR 3166 to Palermo leaves the gate
22 h 40 apart on the timetable, overnight
FR 3166 leaves 22 h 40 after FR 59 arrives on the timetable: more than half a day, so not a connection we count.