I've only travelled once on Italian Railways three or four years ago. That time I had to buy a ticket at the station - you then Verify it by putting it in a machine at the station which time-stamps it. For the return journey you Verify the ticket at a machine at the station before you travel. There are ticket inspectors on the trains which check that you have Verified the ticket.