FR 775 then FR 3166 at Barcelona
Torino → Barcelona → Palermo
Timetable, Barcelona time
09:20FR 775 from Torino at the gate
08:30FR 3166 to Palermo leaves the gate
23 h 10 apart on the timetable, overnight
FR 3166 leaves 23 h 10 after FR 775 arrives on the timetable: more than half a day, so not a connection we count.