The train ride from Ljubljana to Koper goes through some glorious countryside. You run along the valley before climbing onto a ridge -- suddenly the land drops away and you're left with a perfect vista of lush farmland, red-roofed towns, and verdant valleys. All very Italian, honestly.
The bus ride from Koper to Piran also provides bountiful sights for the eyes, particularly along the coast, where the Adriatic stretches before you like a canvas of blue. Stunning.