AA 52 then FR 5316 at Fiumicino
Miami → Rome → Madrid
Timetable, Rome time
10:55AA 52 from Miami at the gate
05:45FR 5316 to Madrid leaves the gate
18 h 50 apart on the timetable, overnight
FR 5316 leaves 18 h 50 after AA 52 arrives on the timetable: more than half a day, so not a connection we count.