IB 5371 then EC 7151 at Barcelona
Firenze → Barcelona → Milan
Timetable, Barcelona time
11:35IB 5371 from Firenze at the gate
10:30EC 7151 to Milan leaves the gate
22 h 55 apart on the timetable, overnight
EC 7151 leaves 22 h 55 after IB 5371 arrives on the timetable: more than half a day, so not a connection we count.