PU 302 then FR 3831 at Madrid
Lima → Madrid → Bologna
Timetable, Madrid time
15:20PU 302 from Lima at the gate
14:45FR 3831 to Bologna leaves the gate
23 h 25 apart on the timetable, overnight
FR 3831 leaves 23 h 25 after PU 302 arrives on the timetable: more than half a day, so not a connection we count.