Take the old tram to Obelisco, get off there and the walking path starts right here. You can walk all the way to Prosecco, about 4 kilometers. Its a beautiful walk with some stunning views. Once at Prosecco take the 42 bus back to Villa Opicina, and then the tram back to Trieste. You wont be disappointed.