/* Header e schede su schermi stretti o con testo/zoom grandi: niente sovrapposizioni */
@media (max-width:480px){
  html:not(.fav-native) header .wrap.head{flex-wrap:wrap!important;gap:6px 6px!important;padding-block:6px}
  html:not(.fav-native) header .head .brand{min-width:6.4em!important;flex:1 1 6.4em!important;gap:8px}
  html:not(.fav-native) header .head .brand>span:last-child{min-width:0!important;font-size:.92rem;line-height:1.12}
  html:not(.fav-native) header .head .brand small{display:none}
  html:not(.fav-native) header .head .head-social{margin-left:auto!important;gap:6px;flex:0 0 auto}
  html:not(.fav-native) header .head .soc,html:not(.fav-native) header .head .soc img{width:32px;height:32px}
  html:not(.fav-native) header .head .soc.fb{font-size:18px}
  html:not(.fav-native) header .head .langsel{margin-inline-start:0}
}
.spage .wrap.summary-card{padding-bottom:26px}
.spage .heritage-links{margin-bottom:4px}
.scaffale .stabs{grid-template-columns:repeat(3,1fr)!important}
/*JEWEL-START*/
html .scaffale .stabs .stab[data-i="0"]{--a:#9a2244;--b2:#6d1530}
html .spage[data-top="0"]{--l:#9a2244!important;--b:#6d1530!important;--d:#6d1530!important}
html .scaffale .stabs .stab[data-i="1"]{--a:#22755a;--b2:#134a38}
html .spage[data-top="1"]{--l:#22755a!important;--b:#134a38!important;--d:#134a38!important}
html .scaffale .stabs .stab[data-i="2"]{--a:#6a7a24;--b2:#444f14}
html .spage[data-top="2"]{--l:#6a7a24!important;--b:#444f14!important;--d:#444f14!important}
html .scaffale .stabs .stab[data-i="3"]{--a:#2558a0;--b2:#163a6e}
html .spage[data-top="3"]{--l:#2558a0!important;--b:#163a6e!important;--d:#163a6e!important}
html .scaffale .stabs .stab[data-i="4"]{--a:#b04e36;--b2:#7c3222}
html .spage[data-top="4"]{--l:#b04e36!important;--b:#7c3222!important;--d:#7c3222!important}
html .scaffale .stabs .stab[data-i="5"]{--a:#6442a0;--b2:#432a70}
html .spage[data-top="5"]{--l:#6442a0!important;--b:#432a70!important;--d:#432a70!important}
html .scaffale .stabs .stab[data-i="6"]{--a:#a06824;--b2:#6e4514}
html .spage[data-top="6"]{--l:#a06824!important;--b:#6e4514!important;--d:#6e4514!important}
html .scaffale .stabs .stab[data-i="7"]{--a:#237a7e;--b2:#145053}
html .spage[data-top="7"]{--l:#237a7e!important;--b:#145053!important;--d:#145053!important}
html .scaffale .stabs .stab[data-i="8"]{--a:#9a7620;--b2:#6b5012}
html .spage[data-top="8"]{--l:#9a7620!important;--b:#6b5012!important;--d:#6b5012!important}
html .scaffale .stabs .stab{background:linear-gradient(170deg,var(--a),var(--b2))!important;color:#fbf3df!important;text-shadow:none!important;box-shadow:inset 0 1px 0 #e9c97a!important;border-radius:16px 16px 0 0!important;height:86px!important;gap:5px!important}
html .scaffale .stabs .stab[aria-selected=true]{height:96px!important;filter:none!important;background:linear-gradient(170deg,var(--a),var(--b2))!important;box-shadow:inset 0 4px 0 #e9c97a,0 8px 14px rgba(0,0,0,.25)!important}
html .scaffale .stabs .stab .stab-pic{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:transparent;color:#f0d08a;filter:none!important;box-shadow:inset 0 0 0 1.5px #e9c97a;font-size:0}
html .scaffale .stabs .stab[data-i="5"] .stab-pic svg{width:34px;height:30px}
html .spage .cover{background:linear-gradient(135deg,var(--l),var(--b))!important}
html .spage .cover h2,html .spage .cover p{color:#fbf3df!important}
html .spage .cover-kicker{color:#f0d08a!important}
/*JEWEL-END*/
/*HOME-V04*/
main#contenuto:has(>#scaffale){display:flex;flex-direction:column}
main#contenuto:has(>#scaffale)>*{order:5}
main#contenuto:has(>#scaffale)>.hero{order:1}
main#contenuto:has(>#scaffale)>#scaffale{order:2}
main#contenuto:has(>#scaffale)>.xb-wrap{margin-top:22px}
html.xmas-off .xb-wrap,html.xmas-off #xmas{display:none!important}
html.dvot-off .promo-dvot{display:none!important}
.hero h1{font-size:clamp(2.1rem,4.2vw,3.7rem);line-height:1.04}
.hero h1 em{display:block;font-size:.5em;letter-spacing:0;line-height:1.3;margin-top:.35em}
.hero-slogan{margin:0 0 14px;font-size:1.45rem;font-weight:750;letter-spacing:-.01em;color:var(--green,#1d6657)}
.actions.hero-cta{margin-top:22px}
.actions.hero-cta .btn{flex:1 1 200px;min-height:56px;font-size:1.05rem;background:var(--forest,#123d36);color:#fff}
.actions.hero-cta .btn.hero-b2{background:#d9b46b;color:#123d36;border-color:#d9b46b}
.actions.hero-min{margin-top:12px}
.actions.hero-min .btn{min-height:40px;padding:8px 14px;font-size:.9rem}
@media (max-width:700px){
  .hero{padding:16px 0 20px!important}
  .hero .eyebrow,.hero .lead,.hero .photo-caption{display:none}
  .hero h1{font-size:1.85rem;margin:10px 0 8px}
  .hero-slogan{font-size:1.1rem;margin-bottom:4px}
  .hero .orari-oggi{margin-bottom:6px;padding:10px 12px}
  .actions.hero-cta{margin-top:14px;gap:10px}
  .actions.hero-cta .btn{flex:1 1 140px;min-height:54px;font-size:.98rem;padding:10px 12px}
  .hero-grid{gap:16px!important}
  .hero-media{padding:0!important}
  .hero-media:before{display:none}
  .hero-photo{aspect-ratio:2.3!important;border-radius:18px}
}

/* OVERFLOW-FIX 15 nov 2026: parole lunghe (tedesco, ucraino) non allargano la pagina su telefono */
h1,h2,h3{overflow-wrap:break-word;hyphens:auto}

/* 18 nov: testo dei pulsanti sempre centrato anche su due righe (caratteri grandi del telefono) */
.actions .btn,.hero-cta .btn{text-align:center;line-height:1.2}
/* 18 nov: nell'app installata (PWA) niente inviti a installare l'app */
@media (display-mode: standalone){a[href$="installa-app.html"],[data-pwa-install]{display:none!important}}
html.fav-da-app a[href$="installa-app.html"],html.fav-da-app [data-pwa-install]{display:none!important}

/* 19 nov 2026 (collaudo n.01): "Contatti" nel menu sempre bianco su verde, anche al passaggio e al focus */
nav a.nav-cta,nav a.nav-cta:visited,nav a.nav-cta:hover,nav a.nav-cta:focus,nav a.nav-cta:focus-visible,nav#menu-principale>a.nav-cta,nav#menu-principale>a.nav-cta:hover,nav#menu-principale>a.nav-cta:focus{color:#fff!important;background:#1d6657!important}
nav a.nav-cta:focus-visible{outline:3px solid #d9b46b;outline-offset:2px}
/* 19 nov 2026 (collaudo n.02): sui telefoni stretti il nome della farmacia non deve toccare WhatsApp: Facebook resta nel footer */
@media (max-width:430px){.head-social .soc.fb{display:none!important}.brand{min-width:0;overflow-wrap:anywhere}}
/* 19 nov 2026 (collaudo n.05): con zoom alto o schermo basso il pulsante WhatsApp diventa piccolo e non copre i contenuti */
@media (max-height:480px){#wa-fab{padding:8px!important;gap:0!important;font-size:0!important;bottom:8px!important}#wa-fab svg,#wa-fab img{width:26px!important;height:26px!important}}
/* audit M08 (21 nov 2026, rendering approvato da SalvoQ): bordo dei campi piu' visibile (#6F837A, 4:1 su bianco)
   e contorno di focus oro scuro #87651F sui fondi chiari; sui fondi verde foresta resta l'oro #d9b46b. */
form input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=range]),form select,form textarea{border-color:#6F837A!important}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #87651F!important;outline-offset:2px}
a:focus-visible,button:focus-visible,summary:focus-visible{outline-color:#87651F!important}
.head a:focus-visible,.head button:focus-visible,.head summary:focus-visible,footer a:focus-visible,footer button:focus-visible,.vacc-box a:focus-visible,.vacc-box button:focus-visible,.contact-section a:focus-visible,.contact-section button:focus-visible,.rc-tab:focus-visible,.stab:focus-visible,nav a.nav-cta:focus-visible,.wa-fab:focus-visible,#scopri-servizi a:focus-visible{outline-color:#d9b46b!important}
/* audit M09 (approvato): WhatsApp #0F7A5F (5,3:1 col bianco), linguetta Consulenze bianco su #6C572E,
   linguetta scelta riconoscibile anche senza colore (riga oro sotto + testo sottolineato). */
.wa-fab{background:#0F7A5F!important}
.rc-tabs .rc-tab[data-i="3"]{background:#6C572E!important;background-image:none!important;color:#fff!important}
.rc-tabs .rc-tab[aria-selected="true"]{box-shadow:inset 0 -4px 0 #d9b46b!important;text-decoration:underline;text-underline-offset:4px}
/* audit M10 (approvato): linguette di Servizi piu' grandi sul telefono (circa 15 px, due righe) */
@media(max-width:620px){.rc-tabs .rc-tab{font-size:.9375rem!important;line-height:1.3!important;min-height:60px}.rc-tabs .rc-tab .ic{font-size:1.2rem}}
