The two published rules differ slightly, and the stricter one is the safe guide. The Museums bar only shorts above the knee, but the basilica asks men for long trousers, so a man in knee-length shorts risks being stopped at St. Peter's. Neither rule mentions sandals or jeans, so neither is excluded as the rules are written. A sleeveless dress meets the rule once the shoulders are covered, and a light scarf or shawl in the bag solves most problems; pilgrims commonly report that a shawl over the shoulders is accepted, though that is experience, not a published allowance. The basilica's wording covers all visitors, with no exception stated for children, so dress older children by the same standard. The Museums add that visible tattoos or objects that could offend Catholic morality or common decency fall under the same requirement.
The published rules name the buildings and the gardens. A papal audience or Mass in St. Peter's Square is outdoors, but those present at a papal liturgy are at Mass, and most people go into the basilica afterward, so dress for the basilica from the start of the day. A sun hat is sensible in the square in summer and comes off indoors.
Good to know before you go: dress is checked on the way in, after the wait, so being turned back costs the whole line. If it happens, cover up and rejoin; visitors commonly report that shops and street vendors around the square sell scarves. In hot weather, loose linen or cotton trousers and a short-sleeved shirt are cooler than they sound and work for churches all over Rome.
