FR 4065 then FR 188 at Madrid
Catania → Madrid → Edinburgh
Timetable, Madrid time
13:10FR 4065 from Catania at the gate
07:40FR 188 to Edinburgh leaves the gate
18 h 30 apart on the timetable, overnight
FR 188 leaves 18 h 30 after FR 4065 arrives on the timetable: more than half a day, so not a connection we count.