Ljubljana is a must visit, IMO. A beautiful city, well worth any time there that you can spare.
When we disembarked in Trieste, we took the Oceania provided transfer to the Venice airport. Then, a relatively inexpensive bus ticket from the airport to the Main Bus Station in Venice (across the bridge), where it is easy to find a vaporetto to anywhere in the city.