AZ 76 then FR 149 at Barcelona
Rome → Barcelona → Berlin
Timetable, Barcelona time
15:55AZ 76 from Rome at the gate
14:20FR 149 to Berlin leaves the gate
22 h 25 apart on the timetable, overnight
FR 149 leaves 22 h 25 after AZ 76 arrives on the timetable: more than half a day, so not a connection we count.