For the majority of places, such as museums, beaches, and stores, there are no restrictions on what you can wear. Many tourists and locals will wear shorts to these places when the weather is hot. At churches and the Vatican, you can only enter if your knees and shoulders are covered and you aren't wearing a hat.