AZ 58 then FR 5897 at Madrid
Rome → Madrid → Torino
Timetable, Madrid time
10:50AZ 58 from Rome at the gate
07:20FR 5897 to Torino leaves the gate
20 h 30 apart on the timetable, overnight
FR 5897 leaves 20 h 30 after AZ 58 arrives on the timetable: more than half a day, so not a connection we count.