EC 7154 then AZ 79 at Barcelona
Milan → Barcelona → Rome
Timetable, Barcelona time
17:25EC 7154 from Milan at the gate
16:50AZ 79 to Rome leaves the gate
23 h 25 apart on the timetable, overnight
AZ 79 leaves 23 h 25 after EC 7154 arrives on the timetable: more than half a day, so not a connection we count.