/* App installata, proposta A "Pulsanti grandi" (25 nov 2026). Attiva solo con html.fav-app (js/m-app.js) e fino a 760 px. */
#ahome,#ah-nav{display:none}
@media (max-width:760px){
html.fav-app body{padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))}
html.fav-app #wa-fab{display:none!important}
html.fav-app #fv-cookie,html.fav-app #pwa-offline-note{bottom:calc(86px + env(safe-area-inset-bottom,0px))!important}

/* home: al posto della home da telefono */
html.fav-app main#contenuto>#mhome{display:none!important}
html.fav-app #ahome{display:block;padding:0;margin:0;background:#f6f4ee;color:#13302b;font-size:16px;line-height:1.45}
#ahome .ah-top{background:#123d36;color:#fff;padding:22px 20px 20px;display:flex;flex-direction:column;gap:10px}
#ahome .ah-title{margin:0;font-size:30px;line-height:1.1;font-weight:800;color:#fff;letter-spacing:-.01em}
#ahome .ah-ind{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:#cfe3dc;text-decoration:none;font-size:15px;font-weight:600}
#ahome .ah-ind u{text-underline-offset:4px}
#ahome .ah-stato{align-self:flex-start;margin:0;display:flex;align-items:center;gap:8px;background:#fff;color:#123d36;border-radius:999px;padding:8px 14px;font-size:15px;font-weight:700;min-height:0}
#ahome .ah-stato:empty{display:none}
#ahome .ah-stato::before{content:"";flex:none;width:10px;height:10px;border-radius:50%;background:#b8482b}
#ahome .ah-stato.ah-aperto::before{background:#1f8a4c}
#ahome .ah-body{padding:18px 16px 16px;display:flex;flex-direction:column;gap:12px}
#ahome .ah-q{margin:0 4px;font-size:17px;font-weight:600}
#ahome .ah-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#ahome .ah-tile{min-height:128px;border-radius:22px;padding:16px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;gap:10px;text-align:start;text-decoration:none;font:inherit;font-size:19px;font-weight:700;line-height:1.2;cursor:pointer;border:1.5px solid #d6e1db;background:#fff;color:#13302b;overflow-wrap:anywhere}
#ahome .ah-tile.ah-verde{background:#123d36;border-color:#123d36;color:#fff}
#ahome .ah-tile.ah-oro{background:#d9b46b;border-color:#d9b46b;color:#123d36}
#ahome .ah-chiama{min-height:64px;border-radius:22px;background:#fff;border:1.5px solid #123d36;color:#123d36;display:flex;align-items:center;justify-content:center;gap:10px;font:inherit;font-size:19px;font-weight:700;cursor:pointer;width:100%}
#ahome .ah-tile:focus-visible,#ahome .ah-chiama:focus-visible,#ah-nav a:focus-visible{outline:3px solid #87651F;outline-offset:3px}

/* barra in basso */
html.fav-app #ah-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;left:0;right:0;bottom:0;z-index:95;background:#fff;border-top:1px solid #e3e8e4;padding:6px 4px calc(10px + env(safe-area-inset-bottom,0px))}
#ah-nav a{min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-decoration:none;color:#4d615c;font-size:13px;font-weight:600;text-align:center;line-height:1.15}
#ah-nav a[aria-current="page"]{color:#123d36;font-weight:800}
#ah-nav a.ah-wa{color:#1a7f4b;font-weight:700}
}
@media print{#ah-nav,#ahome{display:none!important}html.fav-app body{padding-bottom:0!important}}
