FR 5020 then FR 276 at Dublin
Pisa → Dublin → Glasgow
Timetable, Dublin time
15:40FR 5020 from Pisa at the gate
08:30FR 276 to Glasgow leaves the gate
16 h 50 apart on the timetable, overnight
FR 276 leaves 16 h 50 after FR 5020 arrives on the timetable: more than half a day, so not a connection we count.