FR 3040 then VY 6018 at Barcelona
Prague → Barcelona → Rome
Timetable, Barcelona time
21:15FR 3040 from Prague at the gate
20:25VY 6018 to Rome leaves the gate
23 h 10 apart on the timetable, overnight
VY 6018 leaves 23 h 10 after FR 3040 arrives on the timetable: more than half a day, so not a connection we count.