Hi Julie and welcome to our community! There is still a mandate in place to wear an FFP2 mask on all forms of public transport, including trains and ferries (with the exception of airplanes), until September 30, 2022. The FFP2 mask is equivalent to the N95 mask.
Hope you have a wonderful time in Italy! Thanks for being a member of our community.