QR 3671 then IB 5952 at Barcelona
Rome → Barcelona → Salerno
Timetable, Barcelona time
01:25QR 3671 from Rome at the gatealso LA 5745
19:40IB 5952 to Salerno leaves the gatealso LL 5952, VY 8358
18 h 15 apart on the timetable
IB 5952 leaves 18 h 15 after QR 3671 arrives on the timetable: more than half a day, so not a connection we count.