FR 3040 then LA 5758 at Barcelona
Prague → Barcelona → Rome
Timetable, Barcelona time
21:15FR 3040 from Prague at the gate
14:40LA 5758 to Rome leaves the gate
17 h 25 apart on the timetable, overnight
LA 5758 leaves 17 h 25 after FR 3040 arrives on the timetable: more than half a day, so not a connection we count.