/* Sportello · CAF e consulenza del lavoro di quartiere · editoriale centrato con striscia di foto (H6) */
@font-face { font-family: 'Sora'; src: url('../_font/sora/sora-var.woff2') format('woff2'); font-weight: 100 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url('../_font/public-sans/public-sans-var.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --p: #146c43;   /* verde sportello */
  --s: #f2f5f1;   /* fondo chiaro */
  --t: #152019;   /* testo */
  --a: #f7d046;   /* giallo segnaletica */
  --f-titoli: 'Sora', system-ui, sans-serif;
  --f-testo: 'Public Sans', system-ui, sans-serif;

  --carta: color-mix(in oklab, var(--s) 55%, #fff);
  --s2: color-mix(in oklab, var(--s) 90%, var(--t));
  --linea: color-mix(in oklab, var(--t) 14%, transparent);
  --tenue: color-mix(in oklab, var(--t) 70%, var(--s));
  --su-p: var(--s);
  --curva: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 3.4vw, 52px);
  --r: 16px;
}

*, *::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.6; -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: 700; line-height: 1.02; letter-spacing: -.035em; }
p { margin: 0; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2.5px solid var(--p); outline-offset: 3px; }
.nascosto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
section[id] { scroll-margin-top: 84px; }

.contenitore { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }
.sez-testa { margin-bottom: clamp(32px, 4vw, 56px); }
.sez-titolo { font-size: clamp(2.3rem, 4.6vw, 4.4rem); max-width: 18ch; }
/* titolo con transizione di colore: il verde scorre sulle lettere quando entra */
.colora { background: linear-gradient(90deg, var(--p) 0 50%, var(--t) 50% 100%); background-size: 200% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .06em; }
.colora.acceso { animation: colora 1.4s var(--curva) forwards; }
@keyframes colora { 0% { background-position: 100% 0; } 55% { background-position: 0 0; } 100% { background-position: 100% 0; } }
.sez-sotto { margin-top: 16px; font-size: 18px; color: var(--tenue); max-width: 50ch; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 12px; border: 0; cursor: pointer; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; transition: transform .4s var(--curva), background .3s, color .3s, box-shadow .3s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-pieno { background: var(--p); color: var(--su-p); box-shadow: 0 4px 0 color-mix(in oklab, var(--p) 60%, #000); }
.btn-pieno:active { box-shadow: 0 1px 0 color-mix(in oklab, var(--p) 60%, #000); transform: translateY(3px); }
.btn-linea { box-shadow: inset 0 0 0 2px var(--t); background: transparent; }
.btn-linea:hover { background: var(--t); color: var(--s); }
.btn-largo { width: 100%; }

/* testata */
.testata { position: fixed; inset: 0 0 auto; z-index: 50; background: color-mix(in oklab, var(--s) 92%, 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: 1360px; margin: 0 auto; padding: 0 var(--gutter); height: 72px; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.logo-segno { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--p); color: var(--su-p); display: grid; place-items: center; font-family: var(--f-titoli); font-weight: 800; font-size: 19px; position: relative; }
.logo-segno::after { content: ""; position: absolute; right: -4px; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--a); box-shadow: 0 0 0 2px var(--s); }
.logo-nome { font-family: var(--f-titoli); font-weight: 700; font-size: 20px; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; background: linear-gradient(var(--a), var(--a)) 0 100% / 0 3px no-repeat; transition: background-size .4s var(--curva); }
.nav a:hover { background-size: 100% 3px; }
.lingue { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--s2); }
.lingue button { border: 0; background: none; border-radius: 8px; min-height: 34px; padding: 0 10px; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--tenue); }
.lingue .attiva { background: var(--carta); color: var(--t); }
.hamburger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 0; background: var(--t); cursor: pointer; position: relative; }
.hamburger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--s); transition: transform .4s var(--curva); }
.hamburger span:first-child { top: 19px; }
.hamburger span:last-child { top: 26px; }
.menu-aperto .hamburger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-aperto .hamburger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.pannello { position: fixed; inset: 0; z-index: 45; background: var(--p); color: var(--su-p); padding: 100px var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s var(--curva), visibility 0s .7s; }
.menu-aperto .pannello { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--curva), visibility 0s; }
.pannello nav { display: flex; flex-direction: column; }
.pannello nav a { font-family: var(--f-titoli); font-weight: 700; font-size: clamp(2rem, 9vw, 2.8rem); letter-spacing: -.035em; text-decoration: none; line-height: 1.25; }
.pannello-tel { font-size: 17px; }
.pannello-tel a { font-weight: 700; font-size: 22px; text-decoration: none; }

/* hero */
.hero { padding-top: calc(72px + clamp(28px, 5vh, 64px)); overflow: clip; }
.hero-testo { text-align: center; display: flex; flex-direction: column; align-items: center; }
.occhiello { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--carta); box-shadow: inset 0 0 0 1px var(--linea); font-weight: 600; font-size: 14.5px; }
.aperto { width: 10px; height: 10px; border-radius: 50%; background: var(--p); box-shadow: 0 0 0 4px color-mix(in oklab, var(--p) 22%, transparent); }
.hero-titolo { font-size: clamp(2.8rem, 7.2vw, 7.4rem); letter-spacing: -.055em; line-height: .95; margin: 22px 0 22px; max-width: 13ch; }
.hero-sotto { font-size: clamp(17px, 1.35vw, 20px); color: var(--tenue); max-width: 46ch; }
.hero-azioni { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.striscia { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 18px); align-items: end; max-width: 1560px; margin: clamp(36px, 5vh, 60px) auto 0; padding: 0 var(--gutter); height: clamp(220px, 30vh, 340px); }
.st { margin: 0; height: 100%; border-radius: var(--r) var(--r) 0 0; overflow: hidden; background: var(--s2); }
.st img { width: 100%; height: 100%; object-fit: cover; }
.st-1, .st-5 { height: 70%; }
.st-2, .st-4 { height: 86%; }

/* pratiche e prezzi */
.pratiche { background: var(--carta); padding: clamp(80px, 9vw, 130px) 0; }
.filtri { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filtri button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; box-shadow: inset 0 0 0 1.5px var(--linea); background: transparent; font-weight: 700; font-size: 15px; cursor: pointer; transition: background .3s, box-shadow .3s; }
.filtri button:hover { box-shadow: inset 0 0 0 1.5px var(--t); }
.filtri .attivo { background: var(--a); box-shadow: none; color: #1b1b12; }
.listino { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 64px); }
.listino li { display: grid; grid-template-columns: 1fr auto; column-gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--linea); }
.l-nome { font-family: var(--f-titoli); font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.l-nota { grid-column: 1; grid-row: 2; font-size: 15px; color: var(--tenue); }
.listino b { grid-row: 1 / span 2; align-self: center; font-family: var(--f-titoli); font-weight: 700; font-size: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.listino b.gratis { background: color-mix(in oklab, var(--p) 14%, var(--carta)); color: var(--p); padding: 4px 12px; border-radius: 8px; font-size: 16px; }

/* prendi il numero */
.numero { padding: clamp(80px, 9vw, 130px) 0; }
.numero-griglia { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 100px); align-items: center; }
.numero-testo .sez-sotto { margin-bottom: 30px; }
.campo { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.campo > span { font-size: 14.5px; font-weight: 700; }
.campo input, .campo textarea { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--linea); background: var(--s); }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--p); }
.chip { display: flex; flex-wrap: wrap; gap: 8px; }
.chip button { min-height: 46px; padding: 0 16px; border-radius: 12px; border: 0; box-shadow: inset 0 0 0 1.5px var(--linea); background: var(--carta); font-weight: 600; font-size: 15px; cursor: pointer; transition: background .3s, color .3s, box-shadow .3s; }
.chip .attivo { background: var(--t); color: var(--s); box-shadow: none; }
.macchina { background: var(--t); color: var(--s); border-radius: 26px; padding: 22px; display: grid; gap: 16px; box-shadow: 0 30px 60px -30px color-mix(in oklab, var(--t) 70%, transparent); }
.display { background: #0b0f0c; border-radius: 16px; padding: 22px 24px; color: #fff; }
.display p:first-child { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: #9fb3a6; }
.display-num { font-family: var(--f-titoli); font-weight: 800; font-size: clamp(4rem, 7vw, 6.4rem); line-height: 1; letter-spacing: -.04em; color: var(--a); font-variant-numeric: tabular-nums; text-shadow: 0 0 22px color-mix(in oklab, var(--a) 45%, transparent); }
.biglietto-num { background: var(--carta); color: var(--t); border-radius: 12px; padding: 18px 22px; position: relative; }
.biglietto-num::before, .biglietto-num::after { content: ""; position: absolute; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--t); }
.biglietto-num::before { left: -10px; }
.biglietto-num::after { right: -10px; }
.biglietto-num p:first-child { font-size: 14px; font-weight: 700; color: var(--tenue); }
.tuo { font-family: var(--f-titoli); font-weight: 800; font-size: clamp(2.6rem, 4vw, 3.4rem); letter-spacing: -.04em; line-height: 1.05; }
.attesa { font-size: 15px; color: var(--tenue); }
.macchina .btn-pieno { background: var(--a); color: #1b1b12; box-shadow: 0 4px 0 color-mix(in oklab, var(--a) 55%, #000); }

/* cosa portare: pila */
.portare { padding: clamp(80px, 9vw, 130px) 0 clamp(60px, 7vw, 100px); background: var(--s2); }
.pila { display: grid; gap: 28px; }
.carta { position: sticky; top: 100px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); min-height: 420px; background: var(--carta); border-radius: 24px; overflow: hidden; box-shadow: 0 -1px 0 var(--linea), 0 24px 50px -30px color-mix(in oklab, var(--t) 50%, transparent); transform-origin: 50% 0; }
.carta:nth-child(2) { top: 118px; }
.carta:nth-child(3) { top: 136px; }
.carta:nth-child(4) { top: 154px; }
.carta figure { margin: 0; position: relative; }
.carta figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carta-corpo { padding: clamp(24px, 3.4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.carta h3 { font-size: clamp(1.8rem, 3vw, 2.8rem); margin-bottom: 22px; }
.lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lista label { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 8px 12px; border-radius: 12px; cursor: pointer; font-size: 17px; transition: background .3s; }
.lista label:hover { background: var(--s); }
.lista input { appearance: none; flex: none; width: 26px; height: 26px; margin: 0; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--linea); background: var(--s); cursor: pointer; display: grid; place-items: center; transition: background .3s, box-shadow .3s; }
.lista input::after { content: ""; width: 7px; height: 12px; border: solid var(--su-p); border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0); margin-top: -3px; transition: transform .3s var(--curva); }
.lista input:checked { background: var(--p); box-shadow: none; }
.lista input:checked::after { transform: rotate(45deg) scale(1); }
.lista input:checked + * , .lista label:has(input:checked) { color: var(--tenue); }
.avanti { margin-top: 18px; font-size: 15px; color: var(--tenue); }
.avanti b { color: var(--p); font-family: var(--f-titoli); }

/* numeri */
.numeri { padding: clamp(64px, 8vw, 110px) 0; }
.numeri-griglia { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.numeri-griglia > div { border-left: 3px solid var(--a); padding-left: 18px; }
.n-cifra { font-family: var(--f-titoli); font-weight: 800; font-size: clamp(2.6rem, 5vw, 4.8rem); letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.numeri-griglia p:last-child { margin-top: 8px; color: var(--tenue); font-size: 15.5px; }

/* persone */
.persone { padding: 0 0 clamp(80px, 9vw, 130px); }
.persone-griglia { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.persona { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; background: var(--carta); border-radius: 20px; padding: 14px; }
.persona img { width: 112px; height: 112px; object-fit: cover; border-radius: 14px; }
.persona h3 { font-size: 20px; letter-spacing: -.02em; }
.persona p { font-size: 15px; color: var(--tenue); margin-top: 4px; }
.persona .lingue-p { display: inline-block; margin-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--t); background: color-mix(in oklab, var(--a) 55%, var(--carta)); padding: 3px 10px; border-radius: 6px; }

/* recensioni */
.recensioni { background: var(--p); color: var(--su-p); padding: clamp(72px, 8vw, 120px) 0; }
.rec-griglia { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.rec-titolo { font-size: clamp(1.8rem, 2.8vw, 2.6rem); margin-bottom: 26px; max-width: 12ch; }
.rec-cifra { font-family: var(--f-titoli); font-weight: 800; font-size: clamp(5rem, 10vw, 9rem); line-height: .85; letter-spacing: -.06em; }
.rec-voto p:last-child { margin-top: 16px; font-weight: 600; }
.stelle { color: var(--a); letter-spacing: .14em; font-size: 20px; }
.rec-lista { display: grid; gap: 0; }
.rec-lista figure { margin: 0; padding: 24px 0; border-top: 1px solid color-mix(in oklab, currentColor 25%, transparent); }
.rec-lista blockquote { margin: 0; font-family: var(--f-titoli); font-weight: 500; font-size: clamp(1.3rem, 1.9vw, 1.75rem); line-height: 1.3; letter-spacing: -.02em; }
.rec-lista figcaption { margin-top: 10px; font-weight: 700; opacity: .8; }

/* contatti */
.contatti { padding: clamp(80px, 9vw, 130px) 0; }
.contatti-griglia { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(32px, 6vw, 100px); align-items: start; }
.orari { margin: 30px 0 0; border-collapse: collapse; width: 100%; max-width: 560px; }
.orari th, .orari td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--linea); font-size: 17px; }
.orari th { font-weight: 700; padding-right: 20px; }
.recapiti { margin: 28px 0 0; display: grid; gap: 18px; }
.recapiti dt { font-size: 14px; font-weight: 700; color: var(--tenue); }
.recapiti dd { margin: 2px 0 0; font-size: 17px; }
.recapiti a { text-decoration: none; }
.modulo { background: var(--carta); border-radius: 22px; padding: clamp(24px, 3vw, 36px); box-shadow: inset 0 0 0 1px var(--linea); }
.modulo h3 { font-size: 26px; }
.modulo > p { color: var(--tenue); margin: 6px 0 20px; }

/* piede */
.piede { background: var(--t); color: color-mix(in oklab, var(--s) 75%, var(--t)); padding: 48px 0 104px; font-size: 14.5px; }
.piede-griglia { display: grid; grid-template-columns: auto 1fr auto; gap: 20px 40px; align-items: center; }
.piede-nome { font-family: var(--f-titoli); font-weight: 700; font-size: 24px; letter-spacing: -.03em; color: var(--s); overflow-wrap: anywhere; }
.piede-link { display: flex; gap: 18px; }
.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: 14px; background: var(--p); color: var(--su-p); text-decoration: none; font-weight: 700; font-size: 15px; box-shadow: 0 14px 30px -12px rgb(0 0 0 / .4); transition: transform .4s var(--curva), opacity .4s; }
.whatsapp svg { width: 24px; height: 24px; }
.whatsapp:hover { transform: translateY(-3px); }
.whatsapp.wa-nascosto { opacity: 0; visibility: hidden; transform: translateY(20px); transition: transform .4s var(--curva), opacity .4s, visibility 0s .4s; }

/* stati iniziali col JS */
.js .hero-testo > * { opacity: 0; }
.js .st { opacity: 0; }

@media (max-width: 1180px) {
  .nav { gap: 16px; }
  .nav a { font-size: 14px; }
  .persone-griglia { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .nav { display: none; }
  .hamburger { display: block; }
}
@media (max-width: 900px) {
  .testata-in { height: 64px; gap: 12px; }
  .hero { padding-top: 96px; }
  .striscia { grid-template-columns: repeat(3, minmax(0, 1fr)); height: 230px; }
  .st-4, .st-5 { display: none; }
  .st-1 { height: 76%; }
  .st-3 { height: 100%; }
  .listino { grid-template-columns: 1fr; }
  .numero-griglia, .rec-griglia, .contatti-griglia { grid-template-columns: 1fr; }
  .carta { grid-template-columns: 1fr; min-height: 0; top: 84px; }
  .carta:nth-child(2) { top: 96px; }
  .carta:nth-child(3) { top: 108px; }
  .carta:nth-child(4) { top: 120px; }
  .carta figure { height: 150px; }
  .numeri-griglia { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .persone-griglia { grid-template-columns: 1fr; }
  .piede-griglia { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .lingue { display: none; }
  .logo-nome { font-size: 18px; }
  .hero-titolo { font-size: clamp(2.5rem, 12.4vw, 3.4rem); }
  .hero-azioni { width: 100%; }
  .hero-azioni .btn { flex: 1 1 100%; }
  .striscia { height: 170px; }
  .sez-titolo { font-size: clamp(2.1rem, 9.6vw, 2.7rem); }
  .l-nome { font-size: 17px; }
  .display-num { font-size: 4.2rem; }
  .carta figure { height: 120px; }
  .carta-corpo { padding: 20px; }
  .lista label { font-size: 16px; }
  .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; }
  .colora { background: none; color: var(--t); -webkit-text-fill-color: currentColor; }
}

/* APERTURA: il numero dell'eliminacode scatta fino al tuo, poi la serranda sale */
.ap-coda { background: var(--t); }
.ap-centro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 0 16px; }
.ap-coda .ap-nome { margin: 0; font-family: var(--f-titoli); font-weight: 700; font-size: clamp(18px, 2.4vw, 24px); color: var(--s); letter-spacing: -.02em; text-align: center; }
.ap-display { display: flex; align-items: baseline; gap: .08em; padding: .1em .3em; border-radius: 22px; background: #0b0f0c; box-shadow: inset 0 0 0 3px #1e2621, 0 30px 60px -20px rgb(0 0 0 / .6); font-family: var(--f-titoli); font-weight: 800; font-size: clamp(88px, 24vw, 220px); line-height: 1.05; letter-spacing: -.04em; color: var(--a); text-shadow: 0 0 30px color-mix(in oklab, var(--a) 55%, transparent); font-variant-numeric: tabular-nums; overflow: hidden; }
.ap-lettera { opacity: .55; }
.ap-num { display: inline-block; }
.ap-avanti { margin: 0; font-family: var(--f-titoli); font-weight: 800; font-size: clamp(26px, 4vw, 42px); color: var(--a); letter-spacing: -.03em; }
.ap-bordo { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--a); }
