As of 1st of July 2020, Italy has set a new law that prohibits payments of over 2'000 EUR made by cash, which means that any payment over 2'000 EUR must be paid electronically, such as via a credit card. Carrying that in mind, if you are going out to the city for a day, you can withdraw some cash in case you walk into stores that don't yet accept cards, however, large payments for things like hotel bills should be paid by card.