AZ 863 then FR 9601 at Fiumicino
Tunis → Rome → Madrid
Timetable, Rome time
12:50AZ 863 from Tunis at the gate
06:00FR 9601 to Madrid leaves the gate
17 h 10 apart on the timetable, overnight
FR 9601 leaves 17 h 10 after AZ 863 arrives on the timetable: more than half a day, so not a connection we count.