FR 10 then W4 7991 at Madrid
Dublin → Madrid → Pisa
Timetable, Madrid time
23:55FR 10 from Dublin at the gate
13:55W4 7991 to Pisa leaves the gate
14 h apart on the timetable, overnight
W4 7991 leaves 14 h after FR 10 arrives on the timetable: more than half a day, so not a connection we count.