I have visited Italy in June many times (including in 2022). I have never had problems entering churches with bare legs and summer sandals. Only shoulders and knees need to be covered. If they banned sandals, even Franciscan friars wouldn't be allowed in churches.