FR 3181 then FR 1527 at Barcelona
Rome → Barcelona → Valletta
Timetable, Barcelona time
13:40FR 3181 from Rome at the gate
09:45FR 1527 to Valletta leaves the gate
20 h 05 apart on the timetable, overnight
FR 1527 leaves 20 h 05 after FR 3181 arrives on the timetable: more than half a day, so not a connection we count.