Taxis are safe. There is also Uber in Rome. If you are timid and unsure about finding your way, I think you'd be more comfortable in a taxi or Uber than on a train or bus, regardless of time of day. You should be prepared with a piece of paper with the hotel's name and address to show the driver.