FR 3181 then FR 3928 at Barcelona
Rome → Barcelona → Trieste
Timetable, Barcelona time
15:05FR 3181 from Rome at the gate
06:30FR 3928 to Trieste leaves the gate
15 h 25 apart on the timetable, overnight
FR 3928 leaves 15 h 25 after FR 3181 arrives on the timetable: more than half a day, so not a connection we count.