/* M 3.5 — pagine del sito dentro l'app installata (html.m35-app35, messo da components/app-guscio solo in modalità app) */
.gu-alto, .gu-barra { display: none; }
html.m35-app35 .m35-tabbar, html.m35-app35 .m35-installa { display: none !important; }
html.m35-app35:not(.m35-app35-sito) .m35-testata,
html.m35-app35:not(.m35-app35-sito) .m35-content-wrap > footer,
html.m35-app35:not(.m35-app35-sito) .ac-footer,
html.m35-app35:not(.m35-app35-sito) #background-animation-canvas { display: none !important; }
html.m35-app35:not(.m35-app35-sito) { --m35-testata-h: 0px; }
html.m35-app35 body:not(.lg-pagina) { padding-top: calc(60px + env(safe-area-inset-top, 0px)); padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
html.m35-app35 body:not(.lg-pagina) .gu-alto {
    position: fixed; inset: 0 0 auto; z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: calc(6px + env(safe-area-inset-top, 0px)) 8px 6px; background: rgba(8, 16, 20, 0.96); color: #eef4f3; font: 700 17px "Outfit", "Inter", system-ui, sans-serif;
}
.gu-alto button, .gu-alto i { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; position: relative; }
.gu-alto a { display: flex; align-items: center; gap: 10px; min-height: 48px; color: inherit; text-decoration: none; }
.gu-alto img { border-radius: 10px; }
.gu-alto [data-detto]::after { content: attr(data-detto); position: absolute; right: 0; top: 52px; padding: 10px 14px; border-radius: 14px; background: #eef4f3; color: #0c1b1c; font-size: 14px; white-space: nowrap; }
html.m35-app35 body:not(.lg-pagina) .gu-barra {
    position: fixed; z-index: 90; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); height: 76px; max-width: 520px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0 8px; border-radius: 38px; background: #1a2a31; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}
.gu-barra a { display: grid; place-content: center; justify-items: center; gap: 3px; color: #c9d6d5; text-decoration: none; font: 500 13px "Outfit", "Inter", system-ui, sans-serif; }
.gu-alto :focus-visible, .gu-barra :focus-visible { outline: 3px solid #00e08f; outline-offset: -3px; }
/* Durante un gioco a tutto schermo la barra non copre i comandi */
html.m35-app35:has(dialog[open]) .gu-barra, html.m35-app35.m35-sheet-attivo .gu-barra { display: none; }
@media (max-width: 339px) { .gu-barra a { font-size: 12px; } }
@media print { .gu-alto, .gu-barra { display: none !important; } }
html.m35-app35 .gu-via, html.m35-app35 .h-bf-fondo, html.m35-app35.m35-gioco-pieno .gu-barra, html.m35-app35.m35-gioco-pieno .gu-alto { display: none !important; }
html.m35-app35.m35-gioco-pieno body { padding: 0 !important; }

.gu-ds, .gu-torna { display: none; }
html.m35-app35 body:is(.admin-body, .pa-pagina, .lettura, .offerta, .modulo) .gu-ds { display: block; width: calc(100% - 32px); color: var(--testo); font-family: "Outfit", system-ui, sans-serif; }
html.m35-desktop .gu-torna { display: block; position: fixed; z-index: 99999; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); min-height: 120px; padding: 0 56px; border: 0; border-radius: 99px; background: #00d185; color: #04140e; font: 800 40px "Outfit", "Inter", system-ui, sans-serif; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4); cursor: pointer; }
html.m35-desktop .m35-tabbar, html.m35-desktop .m35-installa { display: none !important; }

/* Versione desktop */
.gu-ds { max-width: 520px; margin: 22px auto 0; padding: 16px; border-radius: 24px; border: 2px dashed var(--filo); text-align: center; }
.gu-ds strong { display: block; margin-bottom: 10px; font-size: 16px; font-weight: 700; } .gu-ds > div { display: flex; gap: 8px; }
.gu-ds button { flex: 1; min-width: 0; min-height: 48px; padding: 8px 10px; border: 0; border-radius: 99px; background: var(--carta); color: var(--testo); font: 700 15px "Outfit", system-ui, sans-serif; cursor: pointer; overflow-wrap: anywhere; }
