UX 7701 then LA 5771 at Barcelona
Madrid → Barcelona → Rome
Timetable, Barcelona time
08:55UX 7701 from Madrid at the gate
07:10LA 5771 to Rome leaves the gate
22 h 15 apart on the timetable, overnight
LA 5771 leaves 22 h 15 after UX 7701 arrives on the timetable: more than half a day, so not a connection we count.