I did a loop a few years ago - Venice, Ancona, Split, Trieste, Venice - Trieste to Venice is pretty ordinary - south along the Italian coast ditto - the top end of Croatia around Pula and inland and the little bit of Slovenia I did is quite nice - I read somewhere that it is pretty easy to get a train to Trieste