FR 5219 then FR 6341 at Barcelona
Bologna → Barcelona → Rome
Timetable, Barcelona time
14:30FR 5219 from Bologna at the gate
13:10FR 6341 to Rome leaves the gate
22 h 40 apart on the timetable, overnight
FR 6341 leaves 22 h 40 after FR 5219 arrives on the timetable: more than half a day, so not a connection we count.