FR 775 then LA 5782 at Barcelona
Torino → Barcelona → Porto
Timetable, Barcelona time
17:20FR 775 from Torino at the gate
13:00LA 5782 to Porto leaves the gate
19 h 40 apart on the timetable, overnight
LA 5782 leaves 19 h 40 after FR 775 arrives on the timetable: more than half a day, so not a connection we count.