QR 3676 then FR 3009 at Madrid
Firenze → Madrid → Milan
Timetable, Madrid time
14:00QR 3676 from Firenze at the gate
09:15FR 3009 to Milan leaves the gate
19 h 15 apart on the timetable, overnight
FR 3009 leaves 19 h 15 after QR 3676 arrives on the timetable: more than half a day, so not a connection we count.