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