.gm-pwa-install {
    position: fixed;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 9999;
    border: 2px solid #fff;
    border-radius: 2rem;
    padding: .75rem 1.25rem;
    background: #17324d;
    color: #fff;
    font: 600 1rem/1.4 system-ui, sans-serif;
    box-shadow: 0 3px 12px #0003;
    cursor: pointer;
}
.gm-pwa-install:focus-visible { outline: 3px solid #2674c8; outline-offset: 3px; }
@media (display-mode: standalone) { .gm-pwa-install { display: none; } }

.gm-pwa-nav { display: none; }
.gm-pwa-standalone body { padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
.gm-pwa-standalone .gm-pwa-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 10000;
    display: flex;
    justify-content: space-evenly;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #e1e5ef;
    box-shadow: 0 -4px 20px #091c4f12;
    font-family: system-ui, sans-serif;
}
.gm-pwa-nav a, .gm-pwa-nav button {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 54px;
    max-width: 150px;
    margin: 0;
    padding: 5px 2px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #3b465f;
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
    font: 500 clamp(9px, 2.5vw, 12px)/1.2 system-ui, sans-serif;
    cursor: pointer;
}
.gm-pwa-nav svg { width: 24px; height: 24px; flex-shrink: 0; }
.gm-pwa-nav a[aria-current="page"] { color: #0b2085; background: #edf0ff; }
.gm-pwa-nav a:hover, .gm-pwa-nav button:hover { color: #0b2085; background: #edf0ff; }
.gm-pwa-nav button:disabled { opacity: .4; cursor: default; }
.gm-pwa-nav [hidden] { display: none; }
.gm-pwa-nav :focus-visible { outline: 3px solid #2674c8; outline-offset: -3px; }
/* Il banner di consenso resta visibile; si sposta solo il pulsante di riapertura. */
.gm-pwa-cookie-integrated .cky-btn-revisit-wrapper,
.gm-pwa-cookie-integrated [data-cky-tag="revisit-consent"],
.gm-pwa-cookie-integrated #cookie-law-info-again { display: none !important; }
