/* Quadrante · studio commercialista · griglia svizzera con numeri (H11) */
@font-face { font-family: 'Archivo'; src: url('../_font/archivo/archivo-var.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('../_font/instrument-sans/instrument-sans-var.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --p: #2446d0;   /* cobalto */
  --s: #f1f2ee;   /* carta fredda */
  --t: #121419;   /* inchiostro */
  --a: #f1d24b;   /* evidenziatore */
  --f-titoli: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --f-testo: 'Instrument Sans', system-ui, sans-serif;

  --carta: color-mix(in oklab, var(--s) 80%, #fff);
  --s2: color-mix(in oklab, var(--s) 93%, var(--t));
  --linea: color-mix(in oklab, var(--t) 16%, var(--s));
  --linea-forte: color-mix(in oklab, var(--t) 70%, var(--s));
  --tenue: color-mix(in oklab, var(--t) 66%, var(--s));
  --curva: cubic-bezier(.19, 1, .22, 1);
  --gutter: clamp(20px, 3.4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--s); color: var(--t); font-family: var(--f-testo); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-titoli); font-weight: 800; line-height: .95; letter-spacing: -.035em; }
p { margin: 0; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; }
:focus-visible { outline: 2px solid var(--p); outline-offset: 3px; }
.nascosto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
section[id] { scroll-margin-top: 72px; }

.contenitore { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.occhiello { font-size: 14px; font-weight: 600; letter-spacing: .02em; display: flex; align-items: center; gap: 10px; }
.occhiello::before { content: ""; width: 10px; height: 10px; background: var(--p); }
.sez-testa { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 20px; padding-top: 28px; border-top: 2px solid var(--t); margin-bottom: clamp(40px, 5vw, 72px); position: relative; }
.sez-testa .sez-titolo { grid-column: 1 / span 7; }
.sez-testa .sez-sotto { grid-column: 1 / span 6; }
.sez-titolo { font-size: clamp(2.6rem, 5.4vw, 5.6rem); }
.sez-sotto { color: var(--tenue); font-size: 18px; max-width: 52ch; }
.evidenzia { background: linear-gradient(var(--a), var(--a)) 0 88% / 100% .32em no-repeat; padding: 0 .04em; }

/* bottoni: angoli vivi */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px; border-radius: 2px; border: 0; cursor: pointer; font-weight: 600; font-size: 15.5px; text-decoration: none; white-space: nowrap; transition: background .4s var(--curva), color .4s var(--curva), transform .3s var(--curva); }
.btn:active { transform: translateY(1px); }
.btn svg { font-size: 18px; transition: transform .4s var(--curva); }
.btn:hover svg { transform: translateX(4px); }
.btn-pieno { background: var(--p); color: var(--s); }
.btn-pieno:hover { background: var(--t); color: var(--s); }
.btn-scuro { background: var(--t); color: var(--s); }
.btn-scuro:hover { background: var(--p); color: var(--s); }
.btn-linea { box-shadow: inset 0 0 0 1.5px var(--t); color: var(--t); background: transparent; }
.btn-linea:hover { background: var(--t); color: var(--s); }
.btn-largo { width: 100%; }
.link-freccia { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border-bottom: 1.5px solid currentColor; }
.link-freccia::after { content: "\2192"; transition: transform .4s var(--curva); }
.link-freccia:hover::after { transform: translateX(4px); }

/* testata */
.testata { position: fixed; inset: 0 0 auto; z-index: 50; background: color-mix(in oklab, var(--s) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: box-shadow .4s; }
.testata.scorsa { box-shadow: 0 1px 0 var(--linea); }
.testata-in { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); height: 72px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-width: 0; }
.logo-segno { flex: none; width: 26px; height: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.logo-segno i { background: var(--t); }
.logo-segno i:nth-child(2) { background: var(--p); }
.logo-nome { font-family: var(--f-titoli); font-weight: 750; font-size: 19px; letter-spacing: -.02em; line-height: 1.1; }
.nav { display: flex; gap: 26px; }
.nav a { font-size: 15px; font-weight: 500; text-decoration: none; padding: 6px 0; background: linear-gradient(var(--p), var(--p)) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--curva); }
.nav a:hover { background-size: 100% 2px; }
.btn-nav { min-height: 44px; padding: 0 18px; font-size: 14.5px; }
.hamburger { display: none; width: 46px; height: 46px; border: 0; background: var(--t); border-radius: 2px; position: relative; cursor: pointer; }
.hamburger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--s); transition: transform .45s var(--curva), opacity .3s; }
.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 22px; }
.hamburger span:nth-child(3) { top: 28px; }
.menu-aperto .hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-aperto .hamburger span:nth-child(2) { opacity: 0; }
.menu-aperto .hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.pannello { position: fixed; inset: 0; z-index: 45; background: var(--s); padding: 100px var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between; transform: translateY(-100%); visibility: hidden; transition: transform .7s var(--curva), visibility 0s .7s; }
.menu-aperto .pannello { transform: none; visibility: visible; transition: transform .7s var(--curva), visibility 0s; }
.pannello nav { display: flex; flex-direction: column; border-top: 2px solid var(--t); }
.pannello nav a { font-family: var(--f-titoli); font-weight: 800; font-size: clamp(2rem, 9vw, 3rem); letter-spacing: -.03em; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--linea); }

/* hero */
.hero { position: relative; padding-top: 72px; min-height: min(100svh, 980px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.hero-linee { position: absolute; inset: 0; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 24px; pointer-events: none; }
.hero-linee i { border-left: 1px solid color-mix(in oklab, var(--t) 8%, var(--s)); transform-origin: top; }
.hero-griglia { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; padding-top: clamp(24px, 4vh, 48px); flex: 1; }
.hero-testo { grid-column: 1 / span 8; padding-bottom: clamp(24px, 4vh, 48px); }
.hero-titolo { font-size: clamp(3.4rem, 8.4vw, 7.6rem); line-height: .9; letter-spacing: -.05em; margin: 22px 0 28px; }
.hero-sotto { font-size: clamp(17px, 1.35vw, 20px); max-width: 44ch; color: var(--tenue); }
.hero-azioni { display: flex; align-items: center; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero-foto { grid-column: 10 / span 3; margin: 0; padding-bottom: clamp(24px, 4vh, 48px); }
.hero-foto-in { aspect-ratio: 4 / 5; overflow: hidden; background: var(--s2); }
.hero-foto-in img { width: 100%; height: 100%; object-fit: cover; }
.hero-foto figcaption { font-size: 14px; color: var(--tenue); margin-top: 10px; }
.numeri { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 24px; margin: 0; border-top: 2px solid var(--t); }
.numeri div { padding: 20px 0 30px; }
.numeri dt { font-family: var(--f-titoli); font-weight: 800; font-size: clamp(2.4rem, 4.4vw, 4.6rem); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.numeri dd { margin: 8px 0 0; font-size: 15px; color: var(--tenue); max-width: 22ch; }

/* per chi */
.per-chi { padding: clamp(96px, 11vw, 160px) 0 clamp(80px, 9vw, 130px); }
.schede { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 24px; margin-bottom: 36px; }
.schede button { text-align: left; background: none; border: 0; border-top: 1px solid var(--linea); padding: 18px 0 8px; cursor: pointer; font-family: var(--f-titoli); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.8rem); letter-spacing: -.03em; color: var(--tenue); position: relative; display: flex; align-items: baseline; gap: 14px; min-height: 48px; transition: color .4s; }
.schede button span { font-family: var(--f-testo); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.schede button::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 4px; background: var(--p); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--curva); }
.schede button.attiva { color: var(--t); }
.schede button.attiva::before { transform: scaleX(1); }
.schede button:hover { color: var(--t); }
.pannello-scheda { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.scheda-foto { grid-column: 1 / span 5; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--s2); }
.scheda-foto img { width: 100%; height: 100%; object-fit: cover; }
.scheda-testo { grid-column: 7 / span 6; }
.scheda-lead { font-family: var(--f-titoli); font-weight: 600; font-size: clamp(1.5rem, 2.2vw, 2.1rem); letter-spacing: -.02em; line-height: 1.15; margin-bottom: 28px; }
.voci { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--t); }
.voci li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--linea); }
.voci b { font-family: var(--f-titoli); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* calcolatore */
.calcolo { background: var(--p); color: var(--s); padding: clamp(80px, 10vw, 140px) 0; }
.calcolo .sez-sotto { color: color-mix(in oklab, var(--s) 80%, var(--p)); }
.calcolo-griglia { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; align-items: end; }
.calcolo-testo { grid-column: 1 / span 6; }
.calcolo-testo .sez-titolo { font-size: clamp(2.6rem, 4.8vw, 5rem); }
.calcolo-form { margin-top: 44px; display: grid; gap: 26px; }
.calcolo .campo > span { color: var(--s); }
.calcolo output { font-family: var(--f-titoli); font-weight: 800; font-size: 20px; margin-left: auto; font-variant-numeric: tabular-nums; }
.calcolo input[type=range] { width: 100%; accent-color: var(--a); height: 32px; cursor: pointer; }
.calcolo .campo select { background-color: color-mix(in oklab, var(--p) 70%, var(--t)); border-color: color-mix(in oklab, var(--s) 30%, var(--p)); color: var(--s); }
.calcolo .scelta button { box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--s) 45%, var(--p)); color: var(--s); }
.calcolo .scelta .attiva { background: var(--carta); color: var(--p); box-shadow: none; }
.calcolo-esito { grid-column: 8 / span 5; background: var(--carta); color: var(--t); padding: clamp(24px, 3vw, 40px); }
.esito-etichetta { font-weight: 600; font-size: 16px; }
.esito-cifra { font-family: var(--f-titoli); font-weight: 800; font-size: clamp(3.4rem, 6vw, 6.2rem); letter-spacing: -.05em; line-height: 1; margin: 6px 0 22px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.esito-cifra span { background: linear-gradient(var(--a), var(--a)) 0 86% / 100% .28em no-repeat; }
.esito-righe { margin: 0; border-top: 2px solid var(--t); }
.esito-righe div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--linea); }
.esito-righe dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.esito-nota { margin-top: 16px; font-size: 14px; color: var(--tenue); }

/* campi */
.campo { display: flex; flex-direction: column; gap: 8px; }
.campo > span { font-size: 14.5px; font-weight: 600; display: flex; align-items: baseline; gap: 12px; }
.campo input:not([type=range]), .campo select, .campo textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--linea); border-radius: 2px; background: var(--carta); transition: border-color .3s; }
.campo select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(-45deg, transparent 50%, currentColor 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--p); }
.scelta, .slot { display: flex; flex-wrap: wrap; gap: 8px; }
.scelta button, .slot button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 2px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--linea); cursor: pointer; font-weight: 600; font-size: 15px; transition: background .3s, color .3s, box-shadow .3s; }
.scelta .attiva, .slot .attiva { background: var(--t); color: var(--s); box-shadow: none; }

/* scadenze */
.scadenze { padding: clamp(96px, 11vw, 160px) 0 clamp(64px, 7vw, 100px); }
.scadenze-griglia { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: start; }
.calendario { grid-column: 1 / span 8; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
.calendario:only-child, .scadenze-griglia > .calendario:has(+ [hidden]) { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
.calendario li { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 22px 0 28px; border-top: 2px solid var(--t); }
.giorno { grid-row: span 3; font-family: var(--f-titoli); font-weight: 800; font-size: clamp(4rem, 6.6vw, 6.4rem); line-height: .8; letter-spacing: -.06em; font-variant-numeric: tabular-nums; min-width: 1.15em; }
.mese { font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 13.5px; color: var(--p); }
.calendario b { font-family: var(--f-titoli); font-weight: 700; font-size: 20px; letter-spacing: -.01em; line-height: 1.15; margin: 4px 0 6px; }
.calendario small { font-size: 15px; color: var(--tenue); }
.calendario em { position: absolute; right: 0; top: 18px; font-style: normal; font-size: 13px; font-weight: 700; background: var(--a); color: var(--t); padding: 3px 8px; }
.area { grid-column: 10 / span 3; background: var(--t); color: var(--s); padding: 28px; }
.area h3 { font-size: 30px; letter-spacing: -.03em; }
.area > p { margin: 10px 0 22px; font-size: 15.5px; color: color-mix(in oklab, var(--s) 75%, var(--t)); }
.area-form { display: grid; gap: 14px; }
.area .campo input { background: color-mix(in oklab, var(--t) 85%, var(--s)); border-color: color-mix(in oklab, var(--s) 25%, var(--t)); color: var(--s); }
.area .btn-scuro { background: var(--s); color: var(--t); }
.area .btn-scuro:hover { background: var(--a); }
.notizie { margin-top: clamp(40px, 5vw, 64px); display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; padding: 26px 28px; background: var(--carta); box-shadow: inset 0 0 0 1px var(--linea); }
.notizie p { font-size: 17px; max-width: 52ch; }
.notizie-campo { display: flex; gap: 8px; flex: 1 1 380px; max-width: 520px; }
.notizie-campo input { flex: 1; min-width: 0; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--linea); border-radius: 2px; background: var(--s); }
.notizie-campo input::placeholder { color: var(--tenue); }

/* prezzi */
.prezzi { padding: clamp(64px, 7vw, 100px) 0 clamp(96px, 11vw, 160px); }
.listino { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px; align-items: stretch; }
.piano { position: relative; display: flex; flex-direction: column; padding: 28px 0 0; border-top: 2px solid var(--t); }
.piano h3 { font-size: clamp(1.6rem, 2.2vw, 2.1rem); letter-spacing: -.03em; line-height: 1.05; }
.piano-prezzo { font-family: var(--f-titoli); font-weight: 800; font-size: clamp(3.6rem, 6vw, 6rem); letter-spacing: -.05em; line-height: 1; margin: 24px 0 22px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.piano-prezzo small { font-size: .26em; font-weight: 600; letter-spacing: 0; color: var(--tenue); margin-left: 4px; }
.piano ul { list-style: none; margin: 0 0 28px; padding: 0; flex: 1; }
.piano li { padding: 10px 0 10px 24px; border-bottom: 1px solid var(--linea); position: relative; font-size: 16px; }
.piano li::before { content: ""; position: absolute; left: 0; top: 18px; width: 10px; height: 2px; background: var(--p); }
.piano-in-vista { background: var(--carta); padding: 28px 24px 24px; border-top-color: var(--p); margin-top: -28px; }
.piano-nota { position: absolute; top: 0; right: 24px; transform: translateY(-50%); background: var(--a); font-size: 13px; font-weight: 700; padding: 4px 10px; }

/* persone */
.persone { padding: 0 0 clamp(96px, 11vw, 160px); }
.persone-griglia { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; row-gap: 44px; }
.persona img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 18px; filter: grayscale(.25); transition: filter .6s var(--curva); }
.persona:hover img { filter: none; }
.persona h3 { font-size: 24px; letter-spacing: -.02em; }
.persona p { font-size: 15.5px; color: var(--tenue); margin: 6px 0 10px; }
.persona a { font-size: 14.5px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--linea); word-break: break-all; }
.persona a:hover { color: var(--p); border-color: var(--p); }

/* recensioni */
.recensioni { background: var(--s2); padding: clamp(80px, 10vw, 140px) 0; }
.rec-testa { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-top: 28px; border-top: 2px solid var(--t); margin-bottom: 48px; }
.rec-voto { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--tenue); line-height: 1.3; }
.rec-voto b { font-family: var(--f-titoli); font-weight: 800; font-size: clamp(3rem, 5vw, 4.6rem); color: var(--t); letter-spacing: -.05em; line-height: 1; }
.rec-griglia { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; }
.rec-griglia figure { margin: 0; padding-top: 22px; border-top: 1px solid var(--linea-forte); display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.rec-griglia blockquote { margin: 0; font-family: var(--f-titoli); font-weight: 500; font-size: clamp(1.25rem, 1.6vw, 1.55rem); line-height: 1.3; letter-spacing: -.015em; }
.rec-griglia figcaption { font-weight: 700; }
.rec-griglia figcaption span { display: block; font-weight: 400; color: var(--tenue); font-size: 14.5px; }

/* contatti */
.contatti { padding: clamp(96px, 11vw, 160px) 0; }
.contatti-griglia { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px; align-items: start; }
.contatti-info { grid-column: 1 / span 6; }
.mappa { position: relative; margin: 36px 0 28px; height: 220px; background: var(--carta); box-shadow: inset 0 0 0 1px var(--linea); overflow: hidden; }
.mappa svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.m-strada { stroke: color-mix(in oklab, var(--t) 22%, var(--s)); stroke-width: 14; stroke-linecap: butt; }
.m-piccola { stroke-width: 6; stroke: color-mix(in oklab, var(--t) 12%, var(--s)); }
.m-punto { position: absolute; left: 52%; top: 50%; width: 22px; height: 22px; background: var(--p); transform: translate(-50%, -50%); box-shadow: 0 0 0 8px color-mix(in oklab, var(--p) 22%, transparent); }
.m-via { position: absolute; left: 14px; bottom: 12px; font-size: 13px; font-weight: 700; background: var(--s); padding: 3px 8px; }
.recapiti { margin: 0; border-top: 2px solid var(--t); }
.recapiti div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--linea); }
.recapiti dt { font-size: 14px; color: var(--tenue); }
.recapiti dd { margin: 0; font-weight: 500; }
.recapiti a { text-decoration: none; }
.modulo { grid-column: 8 / span 5; background: var(--carta); padding: clamp(24px, 3vw, 40px); display: grid; gap: 20px; box-shadow: inset 0 4px 0 var(--p); }
.modulo h3 { font-size: 30px; letter-spacing: -.03em; }

/* piede */
.piede { background: var(--t); color: var(--s); padding: 56px 0 44px; }
.piede-griglia { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px; font-size: 14.5px; color: color-mix(in oklab, var(--s) 72%, var(--t)); }
.piede-nome { grid-column: 1 / -1; font-family: var(--f-titoli); font-weight: 800; font-size: clamp(2.2rem, 6vw, 5.4rem); letter-spacing: -.05em; line-height: .95; color: var(--s); margin-bottom: 24px; overflow-wrap: anywhere; }
.piede-griglia > p:nth-child(2) { grid-column: 1 / span 4; }
.piede-griglia > p:nth-child(3) { grid-column: 5 / span 4; }
.piede-link { grid-column: 9 / span 4; display: flex; gap: 20px; justify-content: flex-end; }
.piede-link a { text-decoration: none; }

/* whatsapp */
.whatsapp { position: fixed; right: 20px; bottom: 20px; z-index: 44; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px; border-radius: 2px; background: var(--t); color: var(--s); text-decoration: none; font-weight: 600; font-size: 15px; box-shadow: 0 12px 30px rgb(0 0 0 / .22); transition: transform .4s var(--curva), background .3s; }
.whatsapp svg { width: 24px; height: 24px; stroke-linecap: round; stroke-linejoin: round; }
.whatsapp:hover { transform: translateY(-3px); background: var(--p); }

/* stati iniziali solo con JS */
.js .hero-titolo, .js .hero-sotto, .js .hero-azioni, .js .occhiello { opacity: 0; }
.js .hero-foto-in { clip-path: inset(0 0 100% 0); }

/* responsive */
@media (max-width: 1180px) {
  .nav { gap: 18px; }
  .nav a { font-size: 14px; }
  .hero-testo { grid-column: 1 / span 8; }
  .hero-foto { grid-column: 9 / span 4; }
  .area { grid-column: 9 / span 4; }
  .persone-griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav, .btn-nav { display: none; }
  .hamburger { display: block; }
  .testata-in { height: 64px; }
  .hero { padding-top: 64px; min-height: 0; }
  .hero-linee { display: none; }
  .hero-griglia { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-testo, .hero-foto { grid-column: 1; }
  .hero-foto { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
  .hero-foto-in { aspect-ratio: 1; }
  .numeri { grid-template-columns: 1fr 1fr; }
  .sez-testa .sez-titolo, .sez-testa .sez-sotto { grid-column: 1 / -1; }
  .schede { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 20px; overflow-x: auto; }
  .pannello-scheda { grid-template-columns: 1fr; row-gap: 28px; }
  .scheda-foto, .scheda-testo { grid-column: 1; }
  .calcolo-griglia { grid-template-columns: 1fr; }
  .calcolo-testo, .calcolo-esito { grid-column: 1; }
  .scadenze-griglia { grid-template-columns: 1fr; }
  .calendario, .area { grid-column: 1; }
  .calendario:only-child, .scadenze-griglia > .calendario:has(+ [hidden]) { grid-template-columns: repeat(2, 1fr); }
  .listino { grid-template-columns: 1fr; row-gap: 48px; }
  .piano-in-vista { margin-top: 0; }
  .rec-griglia { grid-template-columns: 1fr; }
  .contatti-griglia { grid-template-columns: 1fr; }
  .contatti-info, .modulo { grid-column: 1; }
  .piede-griglia > p { grid-column: 1 / -1 !important; }
  .piede-link { justify-content: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .logo-nome { font-size: 16.5px; }
  .hero-titolo { font-size: clamp(3.1rem, 15.5vw, 4.4rem); margin: 18px 0 20px; }
  .hero-azioni { gap: 18px; margin-top: 26px; }
  .numeri dt { font-size: 2.5rem; }
  .numeri div { padding: 16px 0 20px; }
  .sez-titolo { font-size: clamp(2.3rem, 11vw, 3rem); }
  .sez-sotto { font-size: 16.5px; }
  .schede button { font-size: 1.45rem; }
  .schede button span { display: none; }
  .calendario, .calendario:only-child, .scadenze-griglia > .calendario:has(+ [hidden]) { grid-template-columns: 1fr; }
  .giorno { font-size: 4.2rem; }
  .persone-griglia { grid-template-columns: 1fr 1fr; column-gap: 14px; }
  .persona h3 { font-size: 19px; }
  .persona p { font-size: 14.5px; }
  .persona a { font-size: 13px; }
  .recapiti div { grid-template-columns: 1fr; gap: 2px; }
  .notizie { padding: 22px 18px; }
  .notizie-campo { flex-direction: column; flex-basis: 100%; }
  .whatsapp { width: 54px; padding: 0; justify-content: center; right: 14px; bottom: 14px; }
  .whatsapp span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.calcolo .sez-sotto { margin-top: 20px; }

/* spazio per il tasto WhatsApp in fondo alla pagina: non copre i link del piede */
.piede { padding-bottom: 104px; }

/* APERTURA: le righe di un registro si tracciano, il totale conta, poi le righe scorrono via */
.ap-righe { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(10, 1fr); }
.ap-riga { display: block; position: relative; background: var(--s); }
.ap-riga b { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: color-mix(in oklab, var(--t) 22%, var(--s)); transform-origin: 0 50%; }
.ap-riga:nth-child(3) b, .ap-riga:nth-child(8) b { height: 2px; background: var(--t); }
.ap-centro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 20px; }
.ap-cifra { position: relative; margin: 0; font-family: var(--f-titoli); font-weight: 800; font-size: clamp(72px, 19vw, 220px); letter-spacing: -.05em; line-height: 1; color: var(--t); font-variant-numeric: tabular-nums; }
.ap-val { position: relative; }
.ap-evid { position: absolute; left: -.04em; right: -.04em; bottom: .08em; height: .26em; background: var(--a); transform-origin: 0 50%; }
.ap-registro .ap-nome { margin: 0; font-family: var(--f-titoli); font-weight: 700; font-size: clamp(16px, 2vw, 22px); color: var(--p); letter-spacing: -.01em; text-align: center; }
