AZ 641 then FR 5316 at Fiumicino
San Francisco → Rome → Madrid
Timetable, Rome time
12:15AZ 641 from San Francisco at the gate
05:45FR 5316 to Madrid leaves the gate
17 h 30 apart on the timetable, overnight
FR 5316 leaves 17 h 30 after AZ 641 arrives on the timetable: more than half a day, so not a connection we count.