EW 7520 then W4 6022 at Barcelona
Hamburg → Barcelona → Rome
Timetable, Barcelona time
18:45EW 7520 from Hamburg at the gate
15:15W4 6022 to Rome leaves the gate
20 h 30 apart on the timetable, overnight
W4 6022 leaves 20 h 30 after EW 7520 arrives on the timetable: more than half a day, so not a connection we count.