FR 8991 then FR 188 at Madrid
Verona → Madrid → Edinburgh
Timetable, Madrid time
15:15FR 8991 from Verona at the gate
07:40FR 188 to Edinburgh leaves the gate
16 h 25 apart on the timetable, overnight
FR 188 leaves 16 h 25 after FR 8991 arrives on the timetable: more than half a day, so not a connection we count.