Get taxi from the harbour to the train station and get the train from there to Rome, the rail return ticket is 9 euro on slow local trains, you might also get the BRIG as suggested.
Otherways once in rome you can get a day pass for underground and buses for 5 euros.
M