FR 5061 then FR 808 at Dublin
Cagliari → Dublin → Edinburgh
Timetable, Dublin time
12:55FR 5061 from Cagliari at the gate
11:15FR 808 to Edinburgh leaves the gate
22 h 20 apart on the timetable, overnight
FR 808 leaves 22 h 20 after FR 5061 arrives on the timetable: more than half a day, so not a connection we count.