XZ 2344 then FR 5316 at Fiumicino
Cagliari → Rome → Madrid
Timetable, Rome time
18:40XZ 2344 from Cagliari at the gate
13:30FR 5316 to Madrid leaves the gate
18 h 50 apart on the timetable, overnight
FR 5316 leaves 18 h 50 after XZ 2344 arrives on the timetable: more than half a day, so not a connection we count.