FR 9471 then FR 2753 at Madrid
Pisa → Madrid → Milan
Timetable, Madrid time
17:30FR 9471 from Pisa at the gate
16:55FR 2753 to Milan leaves the gate
23 h 25 apart on the timetable, overnight
FR 2753 leaves 23 h 25 after FR 9471 arrives on the timetable: more than half a day, so not a connection we count.