FR 2761 then FR 348 at Madrid
Bari → Madrid → London Stansted
Timetable, Madrid time
15:15FR 2761 from Bari at the gate
14:30FR 348 to London Stansted leaves the gate
23 h 15 apart on the timetable, overnight
FR 348 leaves 23 h 15 after FR 2761 arrives on the timetable: more than half a day, so not a connection we count.