FR 59 then EC 7199 at Barcelona
Napoli → Barcelona → Edinburgh
Timetable, Barcelona time
12:50FR 59 from Napoli at the gate
07:20EC 7199 to Edinburgh leaves the gate
18 h 30 apart on the timetable, overnight
EC 7199 leaves 18 h 30 after FR 59 arrives on the timetable: more than half a day, so not a connection we count.