@charset "UTF-8";
/* =====================================================================
   PROVA GRAFICA - home "in movimento" (/anteprima-home)
   Caricato solo dalla variante "motion" del layout, in aggiunta a site.css.
   Colori del sito attuale; i movimenti si ispirano alle scene legate allo
   scroll (apertura a sipario, titoli che vanno a fuoco, scorrimento
   orizzontale a fotogrammi, luce che segue il mouse).
   Gli effetti che nascondono contenuti valgono solo con html.m-on, che
   viene tolta se lo script non parte o se l'utente riduce le animazioni.
   ===================================================================== */

:root {
  /* nuova palette 2026 (solo nella prova): bianco sopra entrambi i colori e colori come testo su bianco >= 4,5:1 */
  --blue: #586F83;
  --blue-title: #4a84c2;      /* azzurro vivo per titoli grandi e icone (tono della barra del menu): 3,9:1 su bianco, 3,45 sull'azzurrino */
  --blue-ink: #2f6fb3;        /* stesso azzurro, un po' piu' profondo, per testi piccoli e link: 5,2:1 su bianco, 4,6 sull'azzurrino */
  --green: #5DA28B;           /* verde acqua (prima #4C825E): piu' chiaro e freddo, con testo scuro --on-green */
  --green-bar: #5DA28B;
  --on-green: #1b2733;        /* testo e icone sul verde: 5,06:1 (il bianco sarebbe 3,0) */
  --navy: #34465a;            /* blu scuro ricavato da --blue: vetri, ombre e testi su foto */
  --tint: #eef1f4;            /* azzurrino chiarissimo per gli sfondi (staff, schede) */
  --line: rgba(88, 111, 131, .28);
  --muted: #5f6b77;           /* grigio per testi secondari: 5,4:1 su bianco */
  --green-text: #417362;      /* verde acqua scuro per testi piccoli su chiaro: 5,4 su bianco */
  --bar: #6E9BCB;                          /* sfondo della barra del menu (azzurro vivo; prima #92A9BF) */
  --bar-ink: #1b2733;                      /* testo sulla barra: 5,2:1 sul fondo, di piu' sulle foglie (piu' chiare) */
  --glass: rgba(52, 70, 90, .76);           /* vetro scuro sopra le foto: il testo bianco resta leggibile */
  --glass-line: rgba(255, 255, 255, .24);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --slow: cubic-bezier(.16, 1, .3, 1);
  --gut: clamp(20px, 4vw, 64px);
  --hh: 90px;                 /* altezza header */
}
@media (min-width: 768px) { :root { --hh: 100px; } }
@media (min-width: 1200px) { :root { --hh: 118px; } }

/* smooth scroll (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

html.motion body { overflow-x: clip; }
.m-wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); }

/* ------------------------------------------------------------ header */
html.motion .site-header { position: fixed; top: 0; left: 0; right: 0; transition: transform .7s var(--ease); }
html.motion .site-header.m-hide { transform: translateY(-105%); }
html.m-on.m-boot .site-header { transform: translateY(-105%); }
html.motion .navbar, html.motion .navbar-brand, html.motion .navbar-brand img, html.motion .nav { transition: height .5s var(--ease), margin .5s var(--ease), padding .5s var(--ease); }
/* logo e voci centrati in altezza: stesso spazio sopra e sotto (anche nella barra compatta) */
@media (min-width: 768px) {
  html.motion .navbar-inner { align-items: center; }
  html.motion .navbar-brand { padding-top: 0; }
}
@media (min-width: 1200px) {
  html.motion .navbar { height: 118px; }
  html.motion .site-header.m-compact .navbar { height: 92px; }
  html.motion .site-header.m-compact .navbar-brand img { height: 58px; }
}
html.motion .site-header.m-compact .navbar { box-shadow: 0 10px 30px rgba(52, 70, 90, .12); }

/* menu: voce attiva e passaggio del mouse come pillola, come gli altri pulsanti */
html.motion .nav a { border-radius: 999px; transition: background-color .3s, color .3s, box-shadow .4s var(--ease), transform .4s var(--ease); }
html.motion .nav a:hover, html.motion .nav a:focus-visible, html.motion .nav a[aria-current="page"] { background-color: var(--green); color: var(--on-green); text-decoration: none; box-shadow: 0 8px 24px rgba(93, 162, 139, .35); }
html.motion .nav a:hover, html.motion .nav a:focus-visible { transform: translateY(-2px); }
html.motion .nav a:focus { background-color: transparent; }
html.motion .nav a:focus-visible, html.motion .nav a[aria-current="page"]:focus { background-color: var(--green); }
html.motion .nav a:focus-visible { outline: 2px solid var(--bar-ink); outline-offset: 2px; }
/* barra azzurro chiaro: voci in blu scuro, anche sulle pillole verdi */
@media (min-width: 768px) {
  html.motion .nav a { color: var(--bar-ink); }
  html.motion .nav a:hover, html.motion .nav a:focus-visible, html.motion .nav a[aria-current="page"] { color: var(--on-green); }
}
@media (max-width: 767.98px) {
  html.motion .nav a { width: fit-content; margin: 4px auto; padding: 10px 26px; }
}
@media (min-width: 768px) {
  html.motion .nav { margin-top: 0; margin-right: 0; gap: 2px; }
  html.motion .nav a { padding: 8px 14px; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  html.motion .nav a { padding: 8px 9px; letter-spacing: 0; } /* tablet in verticale (iPad 810 px): tutte le voci dentro lo schermo */
}
@media (min-width: 768px) and (max-width: 799.98px) {
  html.motion .nav a { font-size: 14px; padding: 8px 8px; } /* iPad piu' vecchi (768 px): stacco dal logo */
}
@media (min-width: 1200px) {
  html.motion .nav { gap: 6px; }
  html.motion .nav a { padding: 10px 20px; }
}

/* header e footer con la nuova palette: motivi ricolorati */
html.motion .navbar { background-color: var(--bar); background-image: url('../img/nuovi-colori/menu-background-azzurro-vivo.webp'); }
/* footer verde acqua con testo scuro: erbe piu' chiare del fondo, il punto meno contrastato e' il
   fondo #5DA28B, 5,06:1 (prima: Background_footer-erbe-scure.webp con testo bianco su #4C825E) */
html.motion .site-footer { background-image: url('../img/nuovi-colori/Background_footer-verde-acqua.webp'); color: var(--on-green); }
html.motion .site-footer a, html.motion .site-footer .footer-title { color: var(--on-green); }
html.motion .site-footer img { filter: brightness(0); opacity: .85; } /* logo bianco -> scuro */
/* barra verde del pronto soccorso: testo e icone scuri (il pulsante blu "Chiama" resta bianco su blu) */
html.motion .infobar, html.motion .infobar a:not(.btn) { color: var(--on-green); }
html.motion .infobar img, html.motion .infobar .infobar-icon-cross { filter: brightness(0); opacity: .85; }
html.motion .site-footer .footer-legal { opacity: 1; }

/* foto della home (clinica dalla strada): su telefono si inquadra l'insegna, poco a destra del centro */
@media (max-width: 767.98px) { .m-hero-media { --hero-x: 63%; } }

/* ------------------------------------------------------- elementi comuni */
.m-tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--green-text); }
.m-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(93, 162, 139, .2); }
.m-h2 { font-size: clamp(36px, 4.6vw, 74px); line-height: 1.02; letter-spacing: -.01em; color: var(--blue-title); }
.m-lede { margin: 26px 0 30px; font-size: 18px; line-height: 1.6; color: var(--text); max-width: 32em; }
.m-lede p { margin: 0; }

.m-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 24px; border-radius: 999px;
  font-size: 15px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; text-decoration: none;
  transition: transform .4s var(--ease), background-color .3s, color .3s, box-shadow .4s var(--ease);
}
.m-btn:hover, .m-btn:focus { text-decoration: none; transform: translateY(-2px); }
.m-nowrap { white-space: nowrap; } /* numeri di telefono: mai spezzati su due righe */
.m-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.m-btn:has(.m-arr) { padding-right: 8px; }
.m-btn-green { background: var(--green); color: var(--on-green); box-shadow: 0 8px 24px rgba(93, 162, 139, .35); }
.m-btn-green:hover, .m-btn-green:focus { color: var(--on-green); background: #6DAB97; box-shadow: 0 12px 30px rgba(93, 162, 139, .45); }
.m-btn-green .m-arr { background: rgba(27, 39, 51, .12); color: var(--on-green); }
/* nell'apertura il pulsante compare in dissolvenza: verde come "immagine" (stesso motivo di .m-hero, aspetto identico) */
.m-hero .m-btn-green { background-image: linear-gradient(var(--green), var(--green)); }
.m-hero .m-btn-green:hover, .m-hero .m-btn-green:focus { background-image: linear-gradient(#6DAB97, #6DAB97); }
.m-btn-glass { background: var(--glass); color: #fff; border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.m-btn-glass:hover, .m-btn-glass:focus { background: #fff; color: var(--navy); }
.m-btn-line { border: 1px solid var(--blue-ink); color: var(--blue-ink); }
.m-btn-line:hover, .m-btn-line:focus { background: var(--blue-ink); color: #fff; }
.m-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* freccia ↗ dentro i bottoni */
.m-arr { position: relative; display: inline-block; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .25); transition: transform .5s var(--ease); flex: none; }
.m-arr::before { content: ""; position: absolute; inset: 8px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M12 5l7 7-7 7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M12 5l7 7-7 7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transform: rotate(-45deg); transition: transform .5s var(--ease); }
.m-btn:hover .m-arr::before, .m-link:hover .m-arr::before { transform: rotate(0deg); }
.m-link { display: inline-flex; align-items: center; gap: 10px; color: var(--blue-ink); text-transform: uppercase; letter-spacing: .06em; font-size: 15px; }
.m-link .m-arr { background: var(--tint); }
.m-link:hover { text-decoration: none; color: var(--navy); }

/* cerchio con freccia → nelle liste */
.m-go { position: relative; display: inline-block; flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); transition: background-color .4s, border-color .4s, transform .5s var(--ease); }
.m-go::before { content: ""; position: absolute; inset: 12px; background: var(--blue-title); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M12 5l7 7-7 7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M12 5l7 7-7 7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: background-color .4s; }

/* --------------------------------------------- comparse all'ingresso */
.m-on [data-r] { opacity: 0; transform: translateY(30px); filter: blur(6px); transition: opacity 1.2s var(--ease), transform 1.3s var(--ease), filter 1.3s var(--ease); transition-delay: calc(var(--d, 0) * .09s); }
.m-on [data-r].in { opacity: 1; transform: none; filter: none; }
/* titoli: ogni parola passa da sfocata a nitida, una dopo l'altra */
.w { display: inline-block; }
.m-on .w { opacity: 0; filter: blur(14px); transform: translateY(.1em) scale(1.05); transition: opacity 1.3s var(--ease), filter 1.5s var(--ease), transform 1.6s var(--ease); transition-delay: calc(var(--i) * .07s + var(--wd, 0s)); will-change: filter, opacity; }
.m-on .in .w, .m-on .in.w { opacity: 1; filter: blur(0); transform: none; }
/* immagine che si "accende" */
.m-exp { overflow: hidden; }
.m-on .m-exp img { transform: scale(1.18); filter: saturate(.2) brightness(1.1); transition: transform 2.6s var(--slow), filter 2s var(--slow); }
.m-on .m-exp.in img { transform: scale(1); filter: none; }

/* ================================================================ HERO */
/* due parti a tutta altezza, ognuna con la sua foto, sovrapposte e ferme mentre si scorre:
   la seconda (orari e chiusure) compare in dissolvenza sulla prima (titolo e testo).
   Soggetti delle foto nella meta' destra, scritte a sinistra su una sfumatura blu;
   sui telefoni foto sopra e scritte sotto. Variabili da motion.js: --k cornice che si
   allarga, --p / --q dissolvenza (0 = prima parte, 1 = seconda), --stick vedi sotto. */
.m-hero-pin { position: relative; }
.m-hero-stack {
  position: relative; --p: 0; --k: 0; --q: 1;
  --ct: calc((var(--hh) + 14px) * (1 - var(--k)));
  --cx: calc(22px * (1 - var(--k)));
  --cb: calc(22px * (1 - var(--k)));
  --cr: calc(22px * (1 - var(--k)));
}
/* --stick: se le parti sono piu' alte dello schermo (telefoni) si fermano quando ne e' visibile il fondo */
.m-on .m-hero-stack { display: grid; position: sticky; top: var(--stick, 0px); --q: 0; }
.m-on .m-hero-stack > section { grid-area: 1 / 1; }
.m-hero-space { display: none; }
.m-on .m-hero-space { display: block; height: 110vh; height: 110svh; }
.m-hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: linear-gradient(#fff, #fff) var(--navy); }
/* Fondi pieni scritti come sfumature (stesso colore): PageSpeed/axe misura il contrasto mentre le
   scritte dell'apertura compaiono ancora, quando la foto non copre il punto o il testo e' a meta'
   dissolvenza. Con uno sfondo "immagine" i testi sopra le foto vanno in "verifica manuale" invece
   che in errore (contrasti misurati a parte sulle foto, vedi PROGETTO.md). Aspetto identico. */

.m-hero-media { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(var(--navy), var(--navy)); clip-path: inset(var(--ct) var(--cx) var(--cb) var(--cx) round var(--cr)); transition: clip-path 1.6s var(--slow); }
.m-hero.is-live .m-hero-media { transition: none; }
.m-on.m-boot .m-hero-media { clip-path: inset(50% 30% 50% 30% round 0); }
.m-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transform: scale(calc(1.04 + var(--p) * .1)); transform-origin: 70% 40%; will-change: transform; transition: filter 2.4s var(--slow); }
.m-on.m-boot .m-hero-media img { filter: brightness(1.3) saturate(.4); }
.m-hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(52, 70, 90, .84) 0%, rgba(52, 70, 90, .68) 30%, rgba(52, 70, 90, .3) 50%, rgba(52, 70, 90, 0) 64%),
  linear-gradient(180deg, rgba(52, 70, 90, .3) 0%, rgba(52, 70, 90, 0) 22%, rgba(52, 70, 90, 0) 78%, rgba(52, 70, 90, .3) 100%); }
.m-hero-dark { position: absolute; inset: 0; background: var(--navy); opacity: calc(var(--p) * .7); pointer-events: none; }

/* apertura: logo, linea, poi la foto si apre dal centro */
.m-intro { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s; }
.m-on.m-boot .m-intro { opacity: 1; visibility: visible; transition: none; }
.m-intro-logo { width: min(260px, 56vw); aspect-ratio: 595 / 599; background: url('../img/logo/logo-cvm-square-full.svg') center / contain no-repeat; opacity: 0; transform: scale(.96); animation: m-logo 1s var(--ease) .1s forwards; }
.m-intro-line { width: min(300px, 60vw); height: 2px; background: var(--tint); position: relative; overflow: hidden; }
.m-intro-line::after { content: ""; position: absolute; inset: 0; background: var(--green); transform: scaleX(0); transform-origin: left; animation: m-line 1s var(--ease) .3s forwards; }
@keyframes m-logo { to { opacity: 1; transform: none; } }
@keyframes m-line { to { transform: scaleX(1); } }
html.m-intro-seen .m-intro-logo, html.m-intro-seen .m-intro-line { display: none; }

/* testo dentro la cornice della foto, solo nella meta' sinistra */
.m-hero-frame { position: absolute; top: var(--ct); bottom: var(--cb); left: var(--cx); right: var(--cx); z-index: 3; }
.m-hero-fade { position: absolute; inset: 0; opacity: calc(1 - var(--p) * 1.6); filter: blur(calc(var(--p) * 10px)); transform: translateY(calc(var(--p) * -50px)); }
.m-hero-inner { position: absolute; inset: 0; display: flex; align-items: center; padding-top: 30px; padding-bottom: 90px; }
.m-hero-col { width: min(44%, 640px); }
.m-hero-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 28px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.m-hero-name { padding: 7px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.m-hero-title { margin: 0; color: #fff; font-size: clamp(40px, 5vw, 84px); line-height: 1; letter-spacing: -.015em; text-shadow: 0 4px 40px rgba(52, 70, 90, .35); --wd: .1s; }
.m-hero-copy { margin-top: 30px; }
.m-hero-text { color: #fff; font-size: 17px; line-height: 1.6; max-width: 34em; margin-bottom: 26px; }
.m-hero-text p { margin: 0; }
.m-hero-text a { color: #fff; text-decoration: underline; }
.m-on .m-fade { opacity: 0; transform: translateY(24px); filter: blur(8px); transition: opacity 1.2s var(--ease), transform 1.3s var(--ease), filter 1.3s var(--ease); }
.m-on .m-hero.is-on .m-fade { opacity: 1; transform: none; filter: none; }
.m-on .m-hero.is-on .m-hero-copy { transition-delay: .55s; }
.m-on .m-hero.is-on .m-hero-eyebrow { transition-delay: .3s; }

/* stato "aperti ora" */
.m-status { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #fff; text-shadow: none; }
.m-status .m-dot { width: 8px; height: 8px; box-shadow: 0 0 0 0 rgba(93, 162, 139, .7); animation: m-pulse 2.2s infinite; }
.m-status.is-closed .m-dot { background: rgba(255, 255, 255, .55); animation: none; box-shadow: none; }
@keyframes m-pulse { 0% { box-shadow: 0 0 0 0 rgba(93, 162, 139, .7); } 70% { box-shadow: 0 0 0 9px rgba(93, 162, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(93, 162, 139, 0); } }

/* riquadro orari (vetro) */
.m-hours { padding: 20px 22px; border-radius: 18px; background: rgba(52, 70, 90, .68); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); color: #fff; }
.m-hours-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 12px; }
.m-hours-head .m-status { background: none; border: 0; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.m-hours-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.m-hours table { width: 100%; border-collapse: collapse; font-size: 15px; }
.m-hours th, .m-hours td { padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .18); font-weight: normal; text-align: left; color: rgba(255, 255, 255, .9); }
.m-hours td { text-align: right; }
.m-hours tr.is-today th, .m-hours tr.is-today td { color: #fff; }
.m-hours tr.is-today th::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--green); }
.m-hours-foot { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 14px; color: #fff; }
.m-hours-foot .m-hours-cross { flex: none; width: 18px; height: 18px; background: url('../img/croce.svg') center / contain no-repeat; filter: brightness(0) invert(1); } /* icona decorativa: sfondo CSS */
.m-hours-foot { flex-wrap: wrap; }
.m-hours-foot a { color: #fff; font-size: 16px; white-space: nowrap; }

/* seconda parte: orari e chiusure su un'altra foto, in dissolvenza sulla prima (stessa cornice) */
.m-hero2 { position: relative; z-index: 2; display: flex; align-items: center; min-height: 100vh; min-height: 100svh; overflow: hidden; color: #fff; }
.m-on .m-hero2 { opacity: var(--q); pointer-events: none; }
.m-on .m-hero2.is-front { pointer-events: auto; }
.m-hero2-media { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(var(--navy), var(--navy)); clip-path: inset(var(--ct) var(--cx) var(--cb) var(--cx) round var(--cr)); }
.m-hero2-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transform: scale(calc(1.1 - var(--q) * .06)); transform-origin: 70% 40%; will-change: transform; }
.m-on .m-hero2-in { transform: translateY(calc((1 - var(--q)) * (30px + var(--d, 0) * 16px))); }
.m-hero2-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(52, 70, 90, .9) 0%, rgba(52, 70, 90, .74) 34%, rgba(52, 70, 90, .3) 52%, rgba(52, 70, 90, 0) 66%),
  linear-gradient(180deg, rgba(52, 70, 90, .35) 0%, rgba(52, 70, 90, 0) 24%); }
.m-hero2-inner { position: relative; z-index: 1; padding-top: 110px; padding-bottom: 60px; }
.m-hero2-col { width: min(46%, 500px); }
.m-hero2 .m-hero2-tag { margin: 0 0 16px; font-size: 14px; line-height: 1.4; font-weight: normal; letter-spacing: .14em; color: #b5d9cd; }
.m-hero2-tag .m-dot { background: #84c2ae; }
.m-hero2-time { margin: 0 0 28px; font-size: clamp(48px, min(6.2vw, 11vh), 112px); line-height: 1; letter-spacing: -.02em; white-space: nowrap; color: #fff; text-shadow: 0 6px 50px rgba(52, 70, 90, .4); }
.m-hero2-time span { color: #84c2ae; }
.m-hero2 .m-hours { background: rgba(52, 70, 90, .62); }

.m-infobar { position: relative; z-index: 2; }

/* ============================================================ SERVIZI */
.m-care { position: relative; padding: 150px 0 140px; overflow: hidden; background: #fff; }
.m-care-bg { position: absolute; inset: 0; pointer-events: none; }
.m-care-bg img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.m-care-bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .97) 40%, rgba(255, 255, 255, .84) 100%),
  linear-gradient(0deg, #fff, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0) 78%, #fff); }
.m-care-grid { position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: 70px; }
.m-care-aside { position: sticky; top: calc(var(--hh) + 30px); align-self: start; }
.m-care-aside .m-h2 + p { margin-top: 38px; } /* pulsante subito dopo il titolo (senza testo introduttivo) */
.m-svc { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.m-svc li { border-top: 1px solid var(--line); }
.m-svc a { position: relative; display: grid; grid-template-columns: 34px 56px 1fr 42px; gap: 22px; align-items: center; padding: 26px 14px 26px 6px; color: var(--text); text-decoration: none; isolation: isolate; }
.m-svc a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--tint), rgba(238, 241, 244, 0)); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.m-svc a:hover::before, .m-svc a:focus-visible::before { transform: scaleX(1); }
.m-svc-n { font-size: 13px; letter-spacing: .1em; color: var(--green-text); }
.m-svc-ico { display: block; width: 56px; height: 56px; background: var(--blue-title); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; transition: transform .7s var(--ease), background-color .4s; }
.m-svc a:hover .m-svc-ico { background: var(--green); }
.m-svc-t strong { display: block; font-weight: normal; font-size: clamp(20px, 1.8vw, 27px); line-height: 1.2; color: var(--blue-ink); transition: transform .6s var(--ease); }
.m-svc-t small { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--muted); max-width: 38em; }
.m-svc a:hover .m-svc-ico { transform: rotate(-8deg) scale(1.1); }
.m-svc a:hover .m-svc-t strong { transform: translateX(6px); }
.m-svc a:hover .m-go, .m-card a:hover .m-go { background: var(--green); border-color: var(--green); transform: rotate(-45deg); }
.m-svc a:hover .m-go::before, .m-card a:hover .m-go::before { background: var(--on-green); }

/* ========================================================= STAFF REEL */
.m-reel { position: relative; background: var(--tint); }
.m-reel-sticky { padding: 110px 0 90px; overflow: hidden; }
.m-track { display: flex; align-items: center; gap: clamp(24px, 3.4vw, 60px); padding: 0 var(--gut); overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.m-on .m-reel-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; display: flex; flex-direction: column; justify-content: center; }
.m-on .m-track { overflow: visible; will-change: transform; scroll-snap-type: none; }
.m-on .m-track { align-items: flex-start; }
.m-on .m-reel-intro { align-self: center; }
.m-reel-intro { flex: none; width: min(34vw, 500px); padding-right: 2vw; }
.m-reel-hint { display: flex; align-items: center; gap: 12px; margin: 40px 0 0; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.m-reel-hint i { width: 60px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.m-reel-hint i::after { content: ""; position: absolute; top: 0; left: 0; height: 1px; width: 40%; background: var(--green); animation: m-slide 2s var(--ease) infinite; }
@keyframes m-slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
html:not(.m-on) .m-reel-hint { display: none; }

.m-frame { --fh: min(64vh, 640px); flex: none; width: calc(var(--fh) * .75); margin: 0; scroll-snap-align: center; }
.m-frame-img { position: relative; height: var(--fh); border-radius: 16px; overflow: hidden; background: #e6eaee; box-shadow: 0 30px 60px -30px rgba(52, 70, 90, .35); }
.m-frame-img img { display: block; width: 120%; max-width: none; height: 100%; object-fit: cover; object-position: 50% 12%; transform: translateX(calc(var(--fx, .5) * -16.66%)); will-change: transform; }
.m-on .m-frame-img img { filter: saturate(0) brightness(1.08); scale: 1.08; transition: filter 1.6s var(--slow), scale 1.8s var(--slow); }
.m-on .m-frame.in .m-frame-img img { filter: none; scale: 1; }
.m-frame-img::after { content: ""; position: absolute; inset: 0; background: radial-gradient(130% 100% at 50% 40%, rgba(52, 70, 90, 0) 60%, rgba(52, 70, 90, .18)); pointer-events: none; }
.m-frame-meta { display: flex; gap: 16px; align-items: baseline; margin-top: 20px; }
/* ogni fotogramma porta alla scheda nella pagina Staff */
.m-frame-link { display: block; color: inherit; text-decoration: none; border-radius: 16px; }
.m-frame-link .m-frame-img img { transition: filter 1.6s var(--slow), scale .9s var(--ease); }
.m-frame-link:hover .m-frame-img img { scale: 1.04; }
.m-frame-link:hover .m-frame-who b { color: var(--green-text); }
.m-frame-link:focus-visible { outline: 3px solid var(--green); outline-offset: 6px; }
.m-frame-n { font-size: 14px; letter-spacing: .1em; color: var(--green-text); }
.m-frame-who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.m-frame-who b { font-weight: normal; font-size: clamp(20px, 1.65vw, 27px); line-height: 1.2; color: var(--blue-ink); }
.m-frame-role { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--green-text); }
.m-frame-spec { font-size: 14px; line-height: 1.45; color: var(--muted); }
.m-on .m-frame-meta { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease) .15s, transform 1.1s var(--ease) .15s; }
.m-on .m-frame.in .m-frame-meta { opacity: 1; transform: none; }

.m-bar { position: absolute; left: var(--gut); right: var(--gut); bottom: 5vh; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; font-size: 13px; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
html:not(.m-on) .m-bar { display: none; }
.m-bar-count b { font-weight: normal; color: var(--blue-ink); }
.m-bar-line { position: relative; height: 1px; background: var(--line); }
.m-bar-fill { position: absolute; left: 0; top: 0; height: 1px; width: calc(var(--sp, 0) * 100%); background: linear-gradient(90deg, rgba(93, 162, 139, .2), var(--green)); }
.m-bar-dot { position: absolute; top: 50%; left: calc(var(--sp, 0) * 100%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(93, 162, 139, .18); }
.m-bar-now { min-width: 210px; text-align: right; font-size: 16px; letter-spacing: 0; color: var(--blue-ink); }

/* =============================================================== NEWS */
.m-news { padding: 140px 0 70px; background: #fff; }
.m-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 56px; }
.m-head p { margin: 0; }
.m-head-center { flex-direction: column; align-items: center; text-align: center; gap: 0; }
.m-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.m-card { position: relative; }
.m-card + .m-card { border-left: 1px solid var(--line); }
.m-card::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); transition-delay: calc(.3s + var(--d, 0) * .12s); }
.m-card.in::before, html:not(.m-on) .m-card::before { transform: scaleX(1); }
.m-card a { position: relative; display: flex; flex-direction: column; gap: 20px; height: 100%; min-height: 300px; padding: 36px 32px; color: var(--text); text-decoration: none; isolation: isolate; }
.m-card a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tint); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease); }
.m-card a:hover::after, .m-card a:focus-visible::after { transform: scaleY(1); }
.m-card time, .m-card-k { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--green-text); }
.m-card h2, .m-card h3 { margin: 0; font-size: clamp(19px, 1.55vw, 24px); line-height: 1.35; color: var(--blue-ink); }
.m-card-more { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* =========================================================== CONSIGLI */
/* scena ferma: le immagini delle categorie si alternano di lato mentre le schede scorrono sopra */
.m-advice { background: #fff; }
.m-advice-head { display: grid; grid-template-columns: 7fr 5fr; gap: 60px; align-items: end; padding-top: 130px; padding-bottom: 70px; }
.m-advice-head .m-lede { margin: 0; }
.m-vpin { position: relative; }
.m-vstage { display: none; }
.m-on .m-vstage { display: block; position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(60% 75% at 28% 52%, #fff 0%, #fff 30%, var(--tint) 100%); }
/* immagini: fondo bianco fuso con lo sfondo (multiply). Con foto vere a tutta altezza: vedi nota in PROGETTO.md */
.m-vstage-img { position: absolute; left: var(--gut); top: calc(var(--hh) * .5); bottom: 12vh; width: 52%; }
.m-vstage-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; mix-blend-mode: multiply; opacity: 0; transform: scale(1.1) translateX(-3%); transition: opacity 1.2s var(--ease), transform 2.4s var(--slow); }
.m-vstage-img img.on { opacity: 1; transform: none; }
.m-vcap { position: absolute; left: var(--gut); bottom: 6vh; z-index: 2; display: flex; align-items: center; gap: 18px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.m-vbars { display: flex; gap: 6px; }
.m-vbars i { position: relative; width: 34px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.m-vbars i::after { content: ""; position: absolute; inset: 0; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.m-vbars i.on::after { transform: scaleX(1); }

.m-vsteps { position: relative; z-index: 2; padding-bottom: 60px; }
.m-on .m-vsteps { margin-top: -100vh; margin-top: -100svh; padding-bottom: 0; }
.m-vstep { padding: 30px 0; }
.m-on .m-vstep { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 0; }
.m-vstep > .m-wrap { display: flex; justify-content: flex-end; }
.m-vcard { width: 100%; max-width: 520px; padding: 36px 36px 38px; border-radius: 22px; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); box-shadow: inset 0 0 0 1px rgba(88, 111, 131, .28), 0 40px 80px -40px rgba(52, 70, 90, .35); }
.m-vcard .m-tag { margin-bottom: 22px; }
.m-vnum { margin-left: 6px; color: var(--muted); letter-spacing: .1em; }
.m-vcard h3 { margin: 0 0 18px; font-size: clamp(30px, 3.1vw, 50px); line-height: 1.04; letter-spacing: -.015em; text-transform: none; color: var(--blue-title); }
.m-vtext { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text); }
.m-vchips { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.m-vchips a { display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 6px 15px 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; line-height: 1.3; color: var(--text); text-decoration: none; transition: background-color .3s, box-shadow .3s; }
.m-vchips a:hover, .m-vchips a:focus { background: var(--tint); box-shadow: inset 0 0 0 1px var(--blue-ink); text-decoration: none; }
.m-vchips i { flex: none; width: 10px; height: 6px; margin-top: -3px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.m-vmore { margin: 28px 0 0; }
/* senza animazioni l'immagine sta dentro la scheda */
.m-vcard-img { display: block; margin: -10px 0 18px; max-width: 260px; }
.m-vcard-img img { display: block; width: 100%; height: auto; }
.m-on .m-vcard-img { display: none; }

/* ================================================== DOMANDE FREQUENTI */
.m-faq { padding: 150px 0 140px; background: #fff; }
.m-faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; }
.m-faq-aside { position: sticky; top: calc(var(--hh) + 30px); align-self: start; }
.m-faq-title { font-size: clamp(40px, 5.4vw, 88px); }
/* argomento delle FAQ (es. "Chirurgia"): a capo, piccolo; il trattino e' nascosto alla vista */
.m-faq-topic { display: block; margin: 18px 0 30px; font-size: clamp(18px, 1.5vw, 24px); line-height: 1.25; letter-spacing: .06em; text-transform: uppercase; color: var(--green-text); }
.m-faq-aside .m-lede { margin: 30px 0 34px; }
.m-faq-links { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin: 0; }
.m-faq-links a { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--blue-ink); font-size: 17px; color: var(--navy); text-decoration: none; transition: color .3s, border-color .3s, gap .4s var(--ease); }
.m-faq-links a:hover, .m-faq-links a:focus { color: var(--green); border-color: var(--green); gap: 16px; text-decoration: none; }
.m-faq-links svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.m-faq-list { border-top: 1px solid var(--line); }
.m-qa { border-bottom: 1px solid var(--line); }
.m-qa-q { margin: 0; font-size: inherit; text-transform: none; }
.m-qa-q button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 28px; padding: 34px 0; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: var(--blue-ink); }
.m-qa-q button span { font-size: clamp(21px, 2.1vw, 32px); line-height: 1.2; letter-spacing: -.01em; transition: color .3s, transform .5s var(--ease); }
.m-qa-q button:hover span { transform: translateX(6px); }
.m-qa-q button:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; border-radius: 6px; }
/* cerchio: + chiuso, x verde aperto */
.m-qa-ico { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .4s, box-shadow .4s, transform .6s var(--ease); }
.m-qa-ico::before, .m-qa-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px; border-radius: 2px; background: var(--blue-ink); transition: background-color .4s; }
.m-qa-ico::after { transform: rotate(90deg); }
.m-qa-q button:hover .m-qa-ico { box-shadow: inset 0 0 0 1px var(--green); }
.m-qa.is-open .m-qa-ico { background: var(--green); box-shadow: 0 10px 24px rgba(93, 162, 139, .35); transform: rotate(135deg); }
.m-qa.is-open .m-qa-ico::before, .m-qa.is-open .m-qa-ico::after { background: var(--on-green); }
/* risposta: si apre in altezza (le chiuse restano fuori dal tab e dai lettori di schermo) */
.m-qa-a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .6s var(--ease); }
.m-qa-a > div { overflow: hidden; }
.m-qa-body { padding: 0 90px 36px 0; font-size: 17.5px; line-height: 1.65; color: var(--muted); opacity: 1; transform: none; transition: opacity .5s var(--ease) .1s, transform .6s var(--ease) .1s; }
.m-qa-body p { margin: 0 0 10px; }
.m-qa-body p:last-child { margin-bottom: 0; }
.m-qa-body a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--blue-ink); text-underline-offset: 3px; }
.m-faq.is-ready .m-qa:not(.is-open) .m-qa-a { grid-template-rows: 0fr; }
.m-faq.is-ready .m-qa:not(.is-open) .m-qa-a > div { visibility: hidden; transition: visibility 0s .6s; }
.m-faq.is-ready .m-qa:not(.is-open) .m-qa-body { opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .3s; }

/* ======================================================= VIENI A TROVARCI */
.m-cta { position: relative; display: flex; align-items: center; min-height: 92vh; padding: 120px 0; overflow: hidden; background: #fff; --mx: 34%; --my: 46%; }
.m-cta-photo { position: absolute; left: 0; top: 0; bottom: 0; width: 64%; }
.m-cta-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.m-cta-photo::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .06) 170px, rgba(255, 255, 255, .86) 500px),
  linear-gradient(90deg, rgba(255, 255, 255, 0) 50%, #fff 100%); }
.m-cta-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr minmax(0, 500px); gap: 40px; }
.m-cta-txt { grid-column: 2; }
.m-cta-txt .m-lede { margin: 26px 0 10px; font-size: 20px; }
.m-cta-hours { margin: 0 0 32px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.m-social { display: flex; align-items: center; gap: 18px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.m-social-label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.m-social ul { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.m-social a { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); color: var(--blue-ink); background: rgba(255, 255, 255, .7); transition: background-color .35s, color .35s, box-shadow .4s var(--ease), transform .4s var(--ease); }
.m-social a:hover, .m-social a:focus-visible { background: var(--green); color: var(--on-green); box-shadow: 0 10px 24px rgba(93, 162, 139, .35); transform: translateY(-3px); }
.m-social a:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.m-social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================== RESPONSIVE */
/* indicatore "Scorri" in basso al centro delle aperture: mouse con rotellina (puntatore
   preciso) o freccia che rimbalza (touch); sparisce appena si scorre (motion.js) */
.m-cue {
  position: absolute; left: 50%; bottom: 22px; z-index: 4; display: flex; align-items: center; gap: 12px;
  margin: 0; padding: 10px 14px 10px 16px; border-radius: 999px; border: 1px solid var(--glass-line);
  background: rgba(52, 70, 90, .5); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  color: #fff; font: inherit; font-size: 12px; line-height: 1; letter-spacing: .3em; text-transform: uppercase; cursor: pointer;
  transform: translateX(-50%); transition: opacity .6s var(--ease), transform .6s var(--ease), background-color .3s, visibility 0s;
}
.m-cue:hover { background: rgba(52, 70, 90, .7); }
.m-cue.is-gone { opacity: 0; visibility: hidden; transform: translate(-50%, 12px); transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s .4s; }
.m-cue-txt { margin-right: -.3em; }
.m-cue-mouse { position: relative; flex: none; width: 18px; height: 27px; border: 2px solid currentColor; border-radius: 10px; }
.m-cue-mouse i { position: absolute; left: 50%; top: 5px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: currentColor; animation: m-cue-wheel 1.9s var(--ease) infinite; }
.m-cue-arrow { display: none; flex: none; width: 10px; height: 10px; margin: -6px 2px 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); animation: m-cue-bob 1.6s ease-in-out infinite; }
@keyframes m-cue-wheel { 0% { opacity: 0; transform: translateY(-2px); } 20% { opacity: 1; } 65%, 100% { opacity: 0; transform: translateY(10px); } }
@keyframes m-cue-bob { 0%, 100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(6px) rotate(45deg); } }
@media (hover: none), (pointer: coarse) { .m-cue-mouse { display: none; } .m-cue-arrow { display: block; } }
html:not(.m-on) .m-cue-mouse i, html:not(.m-on) .m-cue-arrow { animation: none; }
html:not(.m-on) .m-cue-mouse i { opacity: 1; }
/* home: compare dopo l'apertura, insieme al testo */
.m-on .m-hero:not(.is-on) .m-cue:not(.is-gone) { opacity: 0; transform: translate(-50%, 12px); }
.m-on .m-hero.is-on .m-cue:not(.is-gone) { transition-delay: 1.1s; }
/* home, seconda parte (orari): ricompare quando e' ferma del tutto, porta al resto della pagina */
.m-hero2 .m-cue { z-index: 3; }
html:not(.m-on) .m-cue-next { display: none; }
/* pagine interne: dentro la foto di testata, al fondo della parte visibile (top da motion.js) */
.m-cue-fixed { bottom: auto; top: var(--cue-top, calc(100% - 70px)); }
.m-on .m-cue-fixed:not(.is-gone) { animation: m-cue-in .8s var(--ease) 1.2s both; }
@keyframes m-cue-in { from { opacity: 0; transform: translate(-50%, 12px); } }

@media (max-width: 1100px) {
  .m-hero-col { width: 46%; }
  .m-hero-text { font-size: 15px; }
  .m-hero2-col { width: min(48%, 460px); }
  .m-care-grid { gap: 40px; }
}
@media (max-width: 899.98px) {
  .m-hero-stack { --ct: calc((var(--hh) + 8px) * (1 - var(--k))); --cx: calc(10px * (1 - var(--k))); --cb: calc(10px * (1 - var(--k))); --cr: calc(16px * (1 - var(--k))); --img: calc(var(--hh) + 8px + 40svh); }
  /* hero sui telefoni: foto in alto (ritagliata sul soggetto, --fx), scritte sotto su fondo blu */
  .m-hero { height: auto; min-height: 100svh; }
  .m-hero-media img, .m-hero-shade, .m-hero2-media img, .m-hero2-shade { top: calc(var(--hh) + 8px); bottom: auto; height: 40svh; }
  .m-hero-media img, .m-hero2-media img { object-position: var(--fx, 70%) 30%; transform: none; }
  .m-hero-shade, .m-hero2-shade { background: linear-gradient(180deg, rgba(52, 70, 90, 0) 0%, rgba(52, 70, 90, 0) 64%, var(--navy) 100%); }
  /* margini fissi: il testo non si sposta mentre la cornice della foto si allarga */
  .m-hero-frame { position: relative; top: auto; bottom: auto; left: auto; right: auto; min-height: 100svh; padding: calc(var(--img) + 6px) 0 46px; }
  .m-hero-fade, .m-hero-inner { position: relative; inset: auto; }
  .m-hero-fade { filter: none; transform: none; opacity: calc(1 - var(--p) * 2); }
  .m-hero-inner { display: block; padding-top: 0; padding-bottom: 0; }
  .m-hero-col { width: auto; }
  .m-hero-eyebrow { margin-bottom: 16px; font-size: 12px; }
  .m-hero-name { display: none; }
  .m-hero-title { font-size: clamp(36px, 10.5vw, 60px); }
  .m-hero-copy { margin-top: 18px; }
  .m-hero-text { font-size: 15px; margin-bottom: 20px; }
  .m-hero .m-cue { display: none; } /* il testo continua sotto: l'invito a scorrere non serve */
  .m-hero2 { display: block; }
  /* la foto parte dal bordo alto (dietro la barra del menu): quando il menu si nasconde non resta una fascia blu */
  .m-hero2-media img, .m-hero2-shade { top: 0; height: calc(var(--hh) + 8px + 40svh); }
  .m-hero2-inner { padding-top: calc(var(--img) + 6px); padding-bottom: 50px; }
  .m-hero2 .m-cue { display: none; }
  .m-hero2-col { width: auto; }
  .m-hero2-time { font-size: clamp(44px, 13vw, 64px); margin-bottom: 20px; }
  .m-care { padding: 96px 0 80px; }
  .m-care-grid { grid-template-columns: 1fr; gap: 34px; }
  .m-care-aside { position: static; }
  .m-svc a { grid-template-columns: 44px 1fr 42px; gap: 16px; padding: 20px 4px; }
  .m-svc-n { display: none; }
  .m-svc-ico { width: 44px; height: 44px; }
  .m-reel-intro { width: 84vw; }
  /* foto dello staff piu' grandi: altezza = schermo meno nome/specializzazioni, barra e un margine sopra e sotto */
  .m-frame { --fh: calc(100vh - 330px); --fh: calc(100svh - 330px); width: min(82vw, calc(var(--fh) * .75)); }
  .m-bar { left: 20px; right: 20px; bottom: 3.5vh; gap: 14px; }
  .m-bar-now { min-width: 0; font-size: 14px; }
  .m-news { padding: 96px 0 40px; }
  .m-head { flex-direction: column; align-items: flex-start; margin-bottom: 36px; }
  .m-head-center { align-items: center; }
  .m-news-grid { grid-template-columns: 1fr; }
  .m-card + .m-card { border-left: 0; border-top: 1px solid var(--line); }
  .m-card a { min-height: 0; padding: 28px 4px; }
  .m-advice-head { grid-template-columns: 1fr; gap: 24px; padding-top: 90px; padding-bottom: 40px; }
  /* sul telefono niente scena ferma: ogni scheda ha la sua immagine */
  .m-on .m-vstage { display: none; }
  .m-on .m-vsteps { margin-top: 0; padding-bottom: 40px; }
  .m-on .m-vstep { min-height: 0; display: block; padding: 12px 0; }
  .m-on .m-vcard-img, .m-vcard-img { display: block; max-width: 100%; margin: -6px auto 14px; }
  .m-vstep > .m-wrap { justify-content: center; }
  .m-vcard { max-width: 640px; padding: 26px 22px 28px; }
  .m-vtext { font-size: 15.5px; }
  .m-faq { padding: 96px 0 80px; }
  .m-faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .m-faq-aside { position: static; }
  .m-qa-q button { padding: 24px 0; gap: 18px; }
  .m-qa-ico { width: 44px; height: 44px; }
  .m-qa-ico::before, .m-qa-ico::after { width: 14px; margin-left: -7px; }
  .m-qa-body { padding: 0 0 26px; font-size: 16px; }
  .m-cta { flex-direction: column; align-items: stretch; min-height: 0; padding: 0 0 80px; }
  .m-cta-photo { position: relative; width: 100%; height: 56vh; }
  .m-cta-photo::after { background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .08) 120px, rgba(255, 255, 255, .7) 340px),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 50%, #fff 100%); }
  .m-cta-grid { grid-template-columns: 1fr; margin-top: -90px; }
  .m-cta-txt { grid-column: 1; }
}

/* ====================================================== PAGINE INTERNE */
/* intestazione: percorso, grande titolo, foto di testata che si allarga scorrendo */
.m-pintro { padding: calc(var(--hh) + 70px) 0 80px; background: #fff; }
.m-pintro.has-media { padding-bottom: 0; }
.m-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0; padding: 0; list-style: none; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.m-crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line); }
.m-crumbs a { color: var(--blue-ink); }
.m-crumbs a:hover { color: var(--green-text); text-decoration: none; }
.m-crumbs [aria-current] { color: var(--green-text); }
.m-pintro-head { margin-top: 26px; }
.m-pintro-head.has-icon { display: flex; align-items: flex-end; gap: 28px; }
.m-pintro-ico { flex: none; width: clamp(64px, 7vw, 110px); aspect-ratio: 1; background: var(--blue-title); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.m-pintro-title { margin: 0; max-width: 20ch; font-size: clamp(40px, 5.8vw, 96px); line-height: 1.02; letter-spacing: -.015em; color: var(--blue-title); }
.m-pintro-meta { margin-top: 22px; }
.m-pintro-meta .m-tag { margin: 0; }
.m-pintro-lede { margin: 30px 0 0; max-width: 46em; }
.m-pintro-media {
  --k: 0; position: relative; height: min(72vh, 760px); margin-top: 64px; overflow: hidden; background: #e6eaee;
  clip-path: inset(0 calc(var(--gut) * (1 - var(--k))) round calc(24px * (1 - var(--k))));
}
.m-pintro-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.14 - var(--k) * .14)) translateY(calc(var(--k) * 4%)); will-change: transform; }
.m-pintro-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(52, 70, 90, 0) 60%, rgba(52, 70, 90, .25)); pointer-events: none; }
.m-on .m-pintro-media img { filter: saturate(.3) brightness(1.08); transition: filter 1.8s var(--slow); }
.m-on .m-pintro-media.in img { filter: none; }

/* sezioni */
.m-sec { padding: 110px 0; background: #fff; }
.m-sec.is-tint { background: var(--tint); }
.m-sec + .m-sec:not(.is-tint) { padding-top: 40px; }
.m-pintro + .m-infobar + .m-sec { padding-top: 110px; }
.m-wrap.m-narrow { max-width: calc(840px + 2 * var(--gut)); }
.m-h2-sm { font-size: clamp(30px, 3.4vw, 54px); }
.m-split-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 70px; }
.m-split-aside { position: sticky; top: calc(var(--hh) + 30px); align-self: start; }
.m-split-aside .m-ctas { margin-top: 30px; }
.m-figure { margin: 0 0 36px; border-radius: 20px; overflow: hidden; background: #e6eaee; }
.m-figure img { display: block; width: 100%; height: auto; }
.m-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 36px; }
.m-pair .m-figure { margin: 0; }
.m-pair .m-figure img { aspect-ratio: 4 / 3; object-fit: cover; height: 100%; }

/* testo lungo */
.m-rich { font-size: 18px; line-height: 1.75; color: var(--text); }
.m-rich > :first-child { margin-top: 0; }
.m-rich p { margin: 0 0 1.1em; }
.m-rich h2, .m-rich h3, .m-rich h4 { margin: 1.7em 0 .6em; line-height: 1.25; text-transform: none; color: var(--blue-title); }
.m-rich h2 { font-size: 30px; }
.m-rich h3 { font-size: 24px; }
.m-rich h4 { font-size: 20px; }
.m-rich ul, .m-rich ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.m-rich li { margin: .35em 0; }
.m-rich li::marker { color: var(--green); }
.m-rich a { color: var(--blue-ink); text-decoration: underline; text-decoration-color: rgba(47, 111, 179, .4); text-underline-offset: 3px; }
.m-rich a:hover { color: var(--green-text); text-decoration-color: currentColor; }
.m-rich strong, .m-rich b { color: #333; }
.m-rich table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; }
.m-rich th, .m-rich td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.m-rich img { max-width: 100%; height: auto; border-radius: 14px; }
.m-rich-sm { font-size: 16px; line-height: 1.65; }
.m-lede.m-rich { font-size: 19px; }

/* elenco servizi */
.m-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; }
.m-svc-grid > li { display: flex; }
.m-svc-card { position: relative; display: flex; flex-direction: column; gap: 16px; width: 100%; padding: 30px 30px 26px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--text); text-decoration: none; transition: transform .6s var(--ease), box-shadow .6s var(--ease), background-color .4s; }
.m-svc-card:hover, .m-svc-card:focus-visible { text-decoration: none; transform: translateY(-6px); background: var(--tint); box-shadow: inset 0 0 0 1px rgba(88, 111, 131, .18), 0 30px 50px -30px rgba(52, 70, 90, .35); }
.m-svc-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.m-svc-card .m-svc-ico { width: 64px; height: 64px; }
.m-svc-card:hover .m-svc-ico { background: var(--green); transform: rotate(-8deg) scale(1.06); }
.m-svc-card-t { margin: 0; font-size: clamp(21px, 1.7vw, 26px); line-height: 1.2; text-transform: none; color: var(--blue-ink); }
.m-svc-card-x { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.m-svc-card .m-card-more { margin-top: auto; padding-top: 10px; }
.m-svc-card:hover .m-go { background: var(--green); border-color: var(--green); transform: rotate(-45deg); }
.m-svc-card:hover .m-go::before { background: var(--on-green); }

/* staff */
.m-person { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: center; margin-bottom: 130px; }
.m-person, .m-ext-card { scroll-margin-top: 120px; }
.m-person:last-child { margin-bottom: 0; }
.m-person.is-rev .m-person-photo { order: 2; }
.m-person-photo { position: relative; }
.m-person-img { position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: #e6eaee; }
.m-person-img img { position: relative; top: -5%; width: 100%; height: 110%; object-fit: cover; object-position: 50% 12%; translate: 0 var(--py, 0); }
.m-person-n { position: absolute; right: -14px; bottom: -48px; font-size: clamp(80px, 10vw, 170px); line-height: 1; letter-spacing: -.04em; color: rgba(88, 111, 131, .13); pointer-events: none; }
.m-person.is-rev .m-person-n { right: auto; left: -14px; }
.m-person-n::before { content: attr(data-n); } /* numero decorativo disegnato via CSS: non e' testo */
.m-person-body .m-tag { margin-bottom: 16px; }
.m-person-name { margin: 0 0 18px; font-size: 26px; line-height: 1.15; text-transform: none; color: var(--blue-title); }
.m-person-name-lg { font-size: clamp(34px, 4vw, 62px); line-height: 1.04; letter-spacing: -.015em; }
.m-person-role { margin: -8px 0 14px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--green-text); }
.m-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.m-chips li { padding: 7px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; line-height: 1.3; color: var(--text); background: rgba(255, 255, 255, .6); }
.m-ext-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.m-ext-grid > :only-child { max-width: 900px; }
.m-ext-card { padding: 34px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.m-ext-photo { margin: 0 0 22px; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; }
.m-ext-photo img { width: 100%; height: 100%; object-fit: cover; }

/* gallery */
.m-album + .m-album { margin-top: 90px; }
.m-album-head { margin-bottom: 34px; }
.m-album-title { margin: 0 0 10px; font-size: clamp(26px, 2.6vw, 40px); text-transform: none; color: var(--blue-title); }
.m-mosaic { columns: 3; column-gap: 18px; margin: 0; padding: 0; list-style: none; }
.m-tile { break-inside: avoid; margin-bottom: 18px; }
.m-tile a { position: relative; display: block; border-radius: 18px; overflow: hidden; background: #e6eaee; }
.m-tile img { display: block; width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.m-tile a:hover img { transform: scale(1.06); }
.m-tile-zoom { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--glass); color: #fff; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.m-tile-zoom svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.m-tile a:hover .m-tile-zoom, .m-tile a:focus-visible .m-tile-zoom { opacity: 1; transform: none; }
.m-on .m-tile a { clip-path: inset(100% 0 0 0 round 18px); transition: clip-path 1.4s var(--slow); transition-delay: calc(.1s + var(--d, 0) * .1s); }
.m-on .m-tile.in a { clip-path: inset(0 0 0 0 round 18px); }

/* elenco news */
.m-news-grid-full { border: 0; gap: 22px; }
.m-news-grid-full .m-card + .m-card { border-left: 0; }
.m-news-grid-full .m-card { border-radius: 22px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.m-card-x { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.m-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 56px 0 0; padding: 0; list-style: none; }
.m-pager a, .m-pager span { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--blue-ink); font-size: 16px; text-decoration: none; transition: background-color .3s; }
.m-pager a:hover { background: var(--tint); }
.m-pager [aria-current] { background: var(--green); color: var(--on-green); box-shadow: none; }

/* consigli: categorie a pillole, introduzione, righe */
.m-pills ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.m-pills a { display: block; padding: 12px 24px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-ink); text-decoration: none; transition: background-color .3s, color .3s, box-shadow .3s, transform .4s var(--ease); }
.m-pills a:hover { background: var(--tint); transform: translateY(-2px); text-decoration: none; }
.m-pills a[aria-current] { background: var(--green); color: var(--on-green); box-shadow: 0 10px 24px rgba(93, 162, 139, .3); }
.m-advcat { display: grid; grid-template-columns: 5fr 7fr; gap: 60px; align-items: center; margin: 50px 0 60px; padding: 44px; border-radius: 26px; background: var(--tint); }
.m-advcat-img { border-radius: 18px; overflow: hidden; }
.m-advcat-img img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.m-advcat-txt .m-lede { margin-bottom: 0; }
.m-rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.m-rows li { border-bottom: 1px solid var(--line); }
.m-rows a { position: relative; display: grid; grid-template-columns: 40px 1fr 42px; gap: 22px; align-items: center; padding: 28px 10px 28px 6px; color: var(--text); text-decoration: none; isolation: isolate; }
.m-rows a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--tint), rgba(238, 241, 244, 0)); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.m-rows a:hover::before, .m-rows a:focus-visible::before { transform: scaleX(1); }
.m-rows h3 { margin: 0; font-size: clamp(20px, 1.9vw, 27px); line-height: 1.25; text-transform: none; color: var(--blue-ink); transition: transform .6s var(--ease); }
.m-rows small { display: block; margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.m-rows a:hover h3 { transform: translateX(6px); }
.m-rows a:hover .m-go { background: var(--green); border-color: var(--green); transform: rotate(-45deg); }
.m-rows a:hover .m-go::before { background: var(--on-green); }
.m-related .m-rows { background: #fff; border-radius: 22px; padding: 0 20px; border: 0; }
.m-related .m-rows li:last-child { border-bottom: 0; }

/* contatti */
.m-contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: stretch; }
.m-contact-card { padding: 44px; border-radius: 26px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -50px rgba(52, 70, 90, .35); }
.m-contact-name { margin: 0 0 22px; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.15; text-transform: none; color: var(--blue-title); }
.m-cl { margin: 0 0 30px; padding: 0; list-style: none; }
.m-cl li { display: flex; gap: 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.m-cl li:last-child { border-bottom: 1px solid var(--line); }
.m-cl-ico { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--tint); color: var(--blue-ink); }
.m-cl-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.m-cl small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.m-cl a, .m-cl address { font-style: normal; font-size: 18px; color: var(--navy); }
.m-cl a:hover { color: var(--green-text); }
.m-contact-card .m-rich { margin-top: 26px; }
.m-contact-hours { padding: 40px; border-radius: 26px; background: var(--navy); color: #fff; }
.m-contact-hours .m-hours-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 16px; }
.m-contact-hours .m-status { background: rgba(255, 255, 255, .1); }
.m-contact-hours table { width: 100%; border-collapse: collapse; font-size: 16px; }
.m-contact-hours th, .m-contact-hours td { padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, .18); font-weight: normal; text-align: left; color: rgba(255, 255, 255, .9); }
.m-contact-hours td { text-align: right; }
.m-contact-hours tr.is-today th, .m-contact-hours tr.is-today td { color: #fff; }
.m-contact-hours tr.is-today th::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 9px 2px 0; border-radius: 50%; background: #84c2ae; }
.m-contact-note { margin: 18px 0 0; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .9); }
.m-contact-note strong { color: #fff; font-weight: normal; }
.m-contact-hours .m-social { border-top-color: rgba(255, 255, 255, .18); }
.m-contact-hours .m-social-label { color: rgba(255, 255, 255, .85); }

/* mappa */
.m-map-frame { border-radius: 26px; overflow: hidden; box-shadow: 0 40px 80px -50px rgba(52, 70, 90, .45); }
.m-map-frame .m-map, .m-map-frame #map_canvas { height: min(62vh, 580px); }
.m-on .m-map-frame { clip-path: inset(6% 4% 6% 4% round 26px); transition: clip-path 1.6s var(--slow), opacity 1.2s var(--ease), transform 1.3s var(--ease), filter 1.3s var(--ease); }
.m-on .m-map-frame.in { clip-path: inset(0 0 0 0 round 26px); }
.m-mapsec .m-head .m-tag { margin-bottom: 18px; }

/* dettaglio servizio / news / consiglio */
.m-detail-grid { display: grid; grid-template-columns: 8fr 4fr; gap: 80px; }
.m-detail-side { position: sticky; top: calc(var(--hh) + 30px); align-self: start; display: flex; flex-direction: column; gap: 22px; }
.m-book { padding: 34px; border-radius: 24px; background: var(--navy); color: #fff; }
.m-book .m-tag { color: #b5d9cd; }
.m-book .m-dot { background: #84c2ae; }
.m-book-t { margin: 0 0 10px; font-size: 30px; line-height: 1.1; color: #fff; }
.m-book-x { margin: 0 0 24px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .88); }
.m-book .m-btn-line { border-color: rgba(255, 255, 255, .6); color: #fff; }
.m-book .m-btn-line:hover { background: #fff; color: var(--navy); }
.m-side-list { padding: 30px; border-radius: 24px; background: var(--tint); }
.m-side-t { margin: 0 0 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.m-side-list ul { margin: 0; padding: 0; list-style: none; }
.m-side-list a { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--blue-ink); text-decoration: none; transition: color .3s, gap .4s var(--ease); }
.m-side-list li:first-child a { border-top: 0; }
.m-side-list a:hover { color: var(--green-text); gap: 18px; }
.m-svc-ico-sm { width: 30px !important; height: 30px !important; flex: none; }
.m-side-list a:hover .m-svc-ico { background: var(--green); }
.m-back { margin: 56px 0 0; }
.m-arr-back::before { transform: rotate(180deg) !important; }
.m-link:hover .m-arr-back::before { transform: rotate(180deg) translateX(3px) !important; }
.m-error { padding-top: 0; }

/* cookie policy (sezione automatica classica dentro la nuova grafica) */
html.motion .cookie-policy { max-width: calc(840px + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut) 110px; }
html.motion .cookie-policy .container { width: auto; padding: 0; }

@media (max-width: 1100px) {
  .m-svc-grid { grid-template-columns: repeat(2, 1fr); }
  .m-person { gap: 50px; }
  .m-detail-grid { gap: 50px; }
}
@media (max-width: 899.98px) {
  .m-pintro { padding: calc(var(--hh) + 36px) 0 56px; }
  .m-pintro-media { height: 52vh; margin-top: 40px; }
  .m-pintro-head.has-icon { flex-direction: column; align-items: flex-start; gap: 18px; }
  .m-sec { padding: 80px 0; }
  .m-pintro + .m-infobar + .m-sec { padding-top: 70px; }
  .m-split-grid { grid-template-columns: 1fr; gap: 28px; }
  .m-split-aside { position: static; }
  .m-rich { font-size: 17px; }
  .m-person { grid-template-columns: 1fr; gap: 34px; margin-bottom: 90px; }
  .m-person.is-rev .m-person-photo { order: 0; }
  .m-person-img { aspect-ratio: 4 / 4.4; }
  .m-person-n { bottom: -34px; }
  .m-mosaic { columns: 2; column-gap: 12px; }
  .m-tile { margin-bottom: 12px; }
  .m-news-grid-full { grid-template-columns: 1fr; }
  .m-news-grid-full .m-card + .m-card { border-top: 0; }
  .m-advcat { grid-template-columns: 1fr; gap: 26px; padding: 26px; margin: 34px 0 40px; }
  .m-rows a { grid-template-columns: 1fr 42px; gap: 16px; padding: 22px 4px; }
  .m-rows .m-svc-n { display: none; }
  .m-contact-grid { grid-template-columns: 1fr; }
  .m-contact-card, .m-contact-hours { padding: 28px 24px; }
  .m-detail-grid { grid-template-columns: 1fr; }
  .m-detail-side { position: static; }
  .m-map-frame .m-map, .m-map-frame #map_canvas { height: 420px; }
}
@media (max-width: 640px) {
  .m-svc-grid { grid-template-columns: 1fr; }
  .m-pair { grid-template-columns: 1fr; }
}

/* avviso di anteprima (solo per chi sta provando la nuova grafica) */
.m-preview-badge { position: fixed; left: 16px; bottom: 16px; z-index: 2500; display: flex; align-items: center; gap: 12px; margin: 0; padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 13px; letter-spacing: .04em; box-shadow: 0 12px 30px rgba(52, 70, 90, .35); }
.m-preview-badge a { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; text-decoration: none; }
.m-preview-badge a:hover { background: var(--green); color: var(--on-green); text-decoration: none; }
html.m-menu-open .m-preview-badge { display: none; }

/* ---------------------------------------------- lightbox (nuova grafica) */
html.motion .lightbox { background: rgba(34, 48, 61, .95); }
html.motion .lightbox img { padding: 0; background: #e6eaee; border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
html.motion .lightbox figcaption { margin-top: 16px; font-size: 16px; }
html.motion .lightbox button { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); transition: background-color .3s; }
html.motion .lightbox button:hover, html.motion .lightbox button:focus-visible { background: var(--green); color: var(--on-green); }
html.motion .lightbox button svg { width: 26px; height: 26px; }
html.motion .lightbox .lb-close { top: 18px; right: 18px; }
html.motion .lightbox .lb-prev { left: 22px; }
html.motion .lightbox .lb-next { right: 22px; }
@media (hover: none) and (pointer: coarse) {
  html.motion .lightbox button { width: 44px; height: 44px; }
  html.motion .lightbox .lb-prev { left: calc(50% - 56px); bottom: 16px; }
  html.motion .lightbox .lb-next { right: calc(50% - 56px); bottom: 16px; }
  html.motion .lightbox img { border-radius: 10px; }
}

/* ============================================================ MENU MOBILE */
/* pannello a tutto schermo che scende dall'alto (clip-path), voci grandi che arrivano una dopo l'altra */
.m-menu { display: none; }
@media (max-width: 767.98px) {
  html.motion.m-menu-ready #menu-principale { display: none !important; }
  html.motion .navbar-toggle { width: 46px; height: 46px; margin-top: 12px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, .35); display: grid; place-content: center; transition: background-color .3s; }
  html.motion .navbar-toggle:hover, html.motion .navbar-toggle:focus { background: rgba(255, 255, 255, .6); }
  html.motion .navbar-toggle .icon-bar, html.motion .navbar-toggle:hover .icon-bar, html.motion .navbar-toggle:focus .icon-bar { background: var(--bar-ink); }
  html.motion .navbar-toggle .icon-bar + .icon-bar { margin-top: 5px; }
  html.motion .navbar-toggle .icon-bar:nth-of-type(4) { display: none; }

  .m-menu {
    position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
    padding: 15px 20px 30px; overflow-y: auto; overscroll-behavior: contain; color: #fff;
    background: var(--blue) url('../img/nuovi-colori/menu-pattern.webp') repeat center top; background-size: 1280px 144px; /* motivo dell'header a grandezza naturale, ripetuto (copia senza l'ultima riga chiara) */
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .8s var(--slow), visibility 0s .8s;
  }
  .m-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--slow), visibility 0s; }
  html.m-menu-open, html.m-menu-open body { overflow: hidden; }

  .m-menu-top { display: flex; justify-content: space-between; align-items: flex-start; }
  .m-menu-logo img { display: block; width: auto; height: 46px; }
  .m-menu-close { display: grid; place-items: center; width: 46px; height: 46px; margin-top: -3px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; cursor: pointer; transition: background-color .3s, transform .6s var(--ease); }
  .m-menu-close:hover, .m-menu-close:focus-visible { background: var(--green); color: var(--on-green); transform: rotate(90deg); }
  .m-menu-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

  .m-menu-nav ul { list-style: none; margin: 0; padding: 0; }
  .m-menu-nav a { display: inline-block; margin-left: -.32em; padding: .04em .32em; border-radius: 999px; font-size: clamp(34px, 10.5vw, 46px); line-height: 1.12; letter-spacing: -.01em; text-transform: uppercase; color: #fff; text-decoration: none; transition: background-color .3s, box-shadow .4s var(--ease); }
  .m-menu-nav a:hover, .m-menu-nav a:focus-visible, .m-menu-nav a[aria-current="page"] { background: var(--green); color: var(--on-green); box-shadow: 0 10px 24px rgba(52, 70, 90, .18); text-decoration: none; }
  .m-menu-nav a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  /* le voci arrivano una dopo l'altra mentre la tendina scende */
  .m-menu-nav li, .m-menu-foot > * { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity .25s, transform .25s, filter .25s; }
  .m-menu.is-open .m-menu-nav li, .m-menu.is-open .m-menu-foot > * { opacity: 1; transform: none; filter: none; transition: opacity .9s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
  .m-menu.is-open .m-menu-nav li { transition-delay: calc(.18s + var(--i, 0) * .05s); }
  .m-menu.is-open .m-menu-foot > * { transition-delay: .5s; }

  .m-menu-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
  .m-menu-foot .m-btn { font-size: 15px; }
  .m-menu-info { margin: 0; font-size: 14px; line-height: 1.6; color: #fff; }
  .m-menu-info a { color: #fff; }
  .m-menu-social { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
  .m-menu-social a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); color: #fff; transition: background-color .3s, box-shadow .3s; }
  .m-menu-social a:hover, .m-menu-social a:focus-visible { background: var(--green); color: var(--on-green); box-shadow: none; }
  .m-menu-social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
}


/* ===================================================== PUNTATORE A ZAMPINA */
/* solo con il mouse (non su touch); 28 px; verde su link e pulsanti; SVG con bordo bianco: visibile su chiaro e su foto */
@media (hover: hover) and (pointer: fine) {
  html.motion, html.motion body { cursor: url('../img/cursor/paw.svg') 14 11, auto; }
  html.motion a[href], html.motion button, html.motion summary, html.motion label, html.motion [role="button"], html.motion .navbar-toggle {
    cursor: url('../img/cursor/paw-link.svg') 14 11, pointer;
  }
  /* tasto premuto: la zampina si chiude un poco (classe messa da motion.js) */
  html.motion.m-press, html.motion.m-press body { cursor: url('../img/cursor/paw-press.svg') 14 11, auto; }
  html.motion.m-press a[href], html.motion.m-press button, html.motion.m-press summary, html.motion.m-press label, html.motion.m-press [role="button"], html.motion.m-press .navbar-toggle {
    cursor: url('../img/cursor/paw-link-press.svg') 14 11, pointer;
  }
  html.motion input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), html.motion textarea, html.motion select { cursor: text; }
}

/* zampina animata (motion.js): segue il mouse al posto del puntatore di sistema; le dita sono
   ellissi che cambiano posizione, rotazione e proporzioni con una transizione (morphing):
   normale -> aperta su link e pulsanti -> chiusa col tasto premuto. Il cuscinetto non cambia.
   Bordo bianco di spessore costante (non-scaling-stroke). Punto attivo come prima: 14,11. */
@media (hover: hover) and (pointer: fine) {
  html.m-cursor-on, html.m-cursor-on * { cursor: none !important; }
  .m-cursor { position: fixed; left: 0; top: 0; z-index: 2147483000; width: 28px; height: 28px; pointer-events: none; opacity: 0; transition: opacity .2s; will-change: transform; }
  .m-cursor.is-in { opacity: 1; }
  .m-cursor.is-off { opacity: 0; transition: none; }
  .m-cursor svg { display: block; overflow: visible; }
  .m-cursor .m-toe, .m-cursor .m-pad {
    fill: var(--navy); stroke: #fff; stroke-width: 1.8px; stroke-linejoin: round; paint-order: stroke; vector-effect: non-scaling-stroke;
    transform-box: view-box; transform-origin: 0 0;
    transition: transform .34s cubic-bezier(.34, 1.5, .5, 1), fill .25s;
  }
  /* normale */
  .m-cursor .m-toe1 { transform: translate(35px, 20px) scale(10.5, 14); }
  .m-cursor .m-toe2 { transform: translate(65px, 20px) scale(10.5, 14); }
  .m-cursor .m-toe3 { transform: translate(14px, 45px) rotate(-18deg) scale(9.5, 12.5); }
  .m-cursor .m-toe4 { transform: translate(86px, 45px) rotate(18deg) scale(9.5, 12.5); }
  /* su link e pulsanti: verde, dita un po' piu' aperte e lunghe */
  .m-cursor.is-link .m-toe, .m-cursor.is-link .m-pad { fill: var(--green); }
  .m-cursor.is-link .m-toe1 { transform: translate(32.5px, 17px) rotate(-7deg) scale(10.5, 15.5); }
  .m-cursor.is-link .m-toe2 { transform: translate(67.5px, 17px) rotate(7deg) scale(10.5, 15.5); }
  .m-cursor.is-link .m-toe3 { transform: translate(11px, 43px) rotate(-26deg) scale(9.5, 14); }
  .m-cursor.is-link .m-toe4 { transform: translate(89px, 43px) rotate(26deg) scale(9.5, 14); }
  /* tasto premuto: dita raccolte e piu' corte (chiusura piu' rapida dell'apertura) */
  .m-cursor.is-press .m-toe { transition-duration: .14s, .25s; transition-timing-function: cubic-bezier(.3, .7, .4, 1), ease; }
  .m-cursor.is-press .m-toe1 { transform: translate(38.5px, 24px) rotate(-8deg) scale(10, 10.5); }
  .m-cursor.is-press .m-toe2 { transform: translate(61.5px, 24px) rotate(8deg) scale(10, 10.5); }
  .m-cursor.is-press .m-toe3 { transform: translate(20px, 46px) rotate(-28deg) scale(9, 9.5); }
  .m-cursor.is-press .m-toe4 { transform: translate(80px, 46px) rotate(28deg) scale(9, 9.5); }
}

/* senza animazioni (preferenza di sistema): tutto visibile e fermo */
@media (prefers-reduced-motion: reduce) {
  html.motion *, html.motion *::before, html.motion *::after { animation: none !important; transition: none !important; }
}

/* avviso chiusure nei box orari (base in site.css): sui box blu (hero, contatti, servizi) e nel "Vieni a trovarci" */
.m-notice { max-width: none; margin: 14px 0 0; border-color: rgba(255, 211, 138, .55); background: rgba(255, 255, 255, .07); color: #fff; }
.m-notice .hours-notice-head { color: #ffd38a; }
.m-notice li + li { border-top-color: rgba(255, 205, 130, .3); }
.m-notice li strong { font-weight: normal; color: #fff; }
.m-notice .hours-notice-reopen { color: rgba(255, 255, 255, .86); opacity: 1; }
.m-book .m-notice { margin: -8px 0 24px; }
.m-hours .m-notice { padding: 12px 14px; font-size: 13px; }
.m-hours .m-notice li strong { font-size: 14px; }
.m-notice-cta { max-width: 440px; margin: -16px 0 32px; }
.m-notice-cta li strong { font-weight: normal; }
