QR 3716 then FR 3166 at Barcelona
Rome → Barcelona → Palermo
Timetable, Barcelona time
14:25QR 3716 from Rome at the gate
11:30FR 3166 to Palermo leaves the gate
21 h 05 apart on the timetable, overnight
FR 3166 leaves 21 h 05 after QR 3716 arrives on the timetable: more than half a day, so not a connection we count.