/* Sigillo · studio legale · lusso scuro con colonna d'immagine (H7) */
@font-face { font-family: 'Cormorant Garamond'; src: url('../_font/cormorant-garamond/cormorant-garamond-var.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../_font/cormorant-garamond/cormorant-garamond-var-italic.woff2') format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../_font/manrope/manrope-var.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --p: #c3a26e;   /* ottone smorzato: bottoni, accenti */
  --s: #131517;   /* grafite: sfondo */
  --t: #ede7db;   /* avorio: testo */
  --a: #8fa79a;   /* salvia: dettagli */
  --f-titoli: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --f-testo: 'Manrope', system-ui, sans-serif;

  --s2: color-mix(in oklab, var(--s) 92%, var(--t));
  --s3: color-mix(in oklab, var(--s) 84%, var(--t));
  --linea: color-mix(in oklab, var(--t) 16%, var(--s));
  --tenue: color-mix(in oklab, var(--t) 68%, var(--s));
  --curva: cubic-bezier(.22, 1, .36, 1);
  --largo: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
}

*, *::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: 500; line-height: 1.02; letter-spacing: -.01em; }
p { margin: 0; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--p); outline-offset: 3px; }
::selection { background: var(--p); color: var(--s); }

.salta { position: absolute; left: -999px; top: 8px; background: var(--p); color: var(--s); padding: 10px 16px; z-index: 100; }
.salta:focus { left: 8px; }

.contenitore { width: 100%; max-width: var(--largo); margin: 0 auto; padding: 0 var(--gutter); }
.occhiello { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--p); font-weight: 600; }
.sez-titolo { font-size: clamp(2.6rem, 4.8vw, 4.9rem); }
.sez-sotto { color: var(--tenue); max-width: 46ch; margin-top: 18px; font-size: 18px; }
.sez-testa { margin-bottom: clamp(40px, 6vw, 80px); }

/* bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 12px 0 28px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 15px; letter-spacing: .02em; white-space: nowrap; cursor: pointer; border: 0;
  transition: background .5s var(--curva), color .5s var(--curva), transform .4s var(--curva);
}
.btn:active { transform: scale(.98); }
.btn-pieno { background: var(--p); color: var(--s); }
.btn-pieno:hover { background: color-mix(in oklab, var(--p) 82%, var(--t)); }
.btn-linea { border: 1px solid color-mix(in oklab, var(--p) 70%, transparent); color: var(--t); padding: 0 22px; }
.btn-linea:hover { background: var(--p); color: var(--s); }
.btn-piccolo { min-height: 44px; font-size: 14px; }
.btn-largo { width: 100%; padding: 0 24px; }
.btn-freccia {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in oklab, var(--s) 16%, transparent); font-size: 18px;
  transition: transform .5s var(--curva);
}
.btn:hover .btn-freccia { transform: translateX(3px) rotate(-45deg); }
.link-sottile {
  text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .02em; padding: 12px 0;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 100% 1px no-repeat;
  transition: background-size .5s var(--curva);
}
.link-sottile:hover { background-size: 40% 1px; }

/* testata */
.testata { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .5s var(--curva), transform .5s var(--curva); }
.testata.scorsa { background: color-mix(in oklab, var(--s) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--linea); }
.testata.nascosta { transform: translateY(-100%); }
.testata-in { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); height: 76px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; margin-right: auto; }
.logo-sigillo {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center;
  border: 1px solid var(--p); color: var(--p); font-family: var(--f-titoli); font-size: 22px; line-height: 1;
  box-shadow: inset 0 0 0 3px var(--s), inset 0 0 0 4px color-mix(in oklab, var(--p) 45%, transparent);
}
.logo-nome { font-family: var(--f-titoli); font-size: 23px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30ch; }
.nav { display: flex; gap: 30px; }
.nav a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--tenue); position: relative; padding: 8px 0; transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--p); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--curva); }
.nav a:hover { color: var(--t); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.testata-azioni { display: flex; align-items: center; gap: 18px; }
.lingue { display: flex; border: 1px solid var(--linea); border-radius: 999px; padding: 3px; }
.lingue button { background: none; border: 0; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; padding: 6px 10px; cursor: pointer; color: var(--tenue); min-height: 32px; }
.lingue .attiva { background: var(--s3); color: var(--t); }
.hamburger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--linea); background: none; cursor: pointer; position: relative; }
.hamburger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--t); transition: transform .5s var(--curva), top .5s var(--curva); }
.hamburger span:first-child { top: 18px; }
.hamburger span:last-child { top: 26px; }
.menu-aperto .hamburger span:first-child { top: 22px; transform: rotate(45deg); }
.menu-aperto .hamburger span:last-child { top: 22px; transform: rotate(-45deg); }

.pannello {
  position: fixed; inset: 0; z-index: 45; background: var(--s2); padding: 110px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .8s var(--curva), visibility 0s .8s;
}
.menu-aperto .pannello { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--curva), visibility 0s; }
.pannello-nav { display: flex; flex-direction: column; }
.pannello-nav a { font-family: var(--f-titoli); font-size: clamp(2.4rem, 9vw, 3.6rem); text-decoration: none; line-height: 1.15; padding: 6px 0; border-bottom: 1px solid var(--linea); display: flex; align-items: baseline; gap: 18px; }
.pannello-nav a span { font-family: var(--f-testo); font-size: 13px; color: var(--p); width: 2.2em; letter-spacing: .1em; }
.pannello-piede { display: flex; flex-direction: column; gap: 6px; color: var(--tenue); }
.pannello-piede a { text-decoration: none; }

/* hero */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: stretch; padding-top: 76px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 18% 60%, color-mix(in oklab, var(--p) 10%, transparent), transparent 70%);
}
.hero-in { position: relative; width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 110px); align-items: end; }
.hero-testo { align-self: center; padding: clamp(40px, 6vh, 80px) 0 clamp(48px, 8vh, 96px); }
.hero-occhiello { margin-bottom: 30px; display: flex; align-items: center; gap: 16px; }
.hero-occhiello::before { content: ""; width: 44px; height: 1px; background: var(--p); }
.hero-titolo { font-size: clamp(3.3rem, 6.6vw, 6rem); line-height: .98; letter-spacing: -.02em; }
.hero-titolo em { display: block; font-style: italic; font-weight: 400; color: var(--p); padding-bottom: .08em; }
.hero-sotto { margin-top: 34px; max-width: 44ch; font-size: 19px; color: var(--tenue); }
.hero-azioni { display: flex; align-items: center; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-colonna { margin: 0; align-self: stretch; padding: 24px 0 0; display: flex; }
.hero-cornice {
  position: relative; flex: 1; min-height: 520px; overflow: hidden;
}
.hero-cornice::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgb(255 255 255 / .42); pointer-events: none; }
.hero-cornice img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; object-position: 26% 50%; filter: saturate(.8) contrast(1.05); }

/* materie */
.materie { position: relative; padding: clamp(96px, 13vw, 180px) 0 clamp(80px, 10vw, 140px); }
.elenco-materie { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); }
.materia a {
  position: relative; display: grid; grid-template-columns: 70px minmax(0, 1.25fr) minmax(0, 1fr) 48px; gap: 28px; align-items: center;
  padding: 34px 0; text-decoration: none; border-bottom: 1px solid var(--linea); overflow: hidden;
}
.materia a::before { content: ""; position: absolute; inset: 0; background: var(--s2); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--curva); z-index: -1; }
.materia a:hover::before { transform: scaleY(1); }
.materia-num { font-family: var(--f-titoli); font-style: italic; font-size: 22px; color: var(--p); padding-left: 6px; }
.materia-mini { display: none; }
.materia-nome { font-family: var(--f-titoli); font-size: clamp(2rem, 3.6vw, 3.5rem); line-height: 1.05; transition: transform .6s var(--curva), color .4s; }
.materia-descr { color: var(--tenue); font-size: 16px; max-width: 42ch; }
.materia-freccia { justify-self: end; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--linea); display: grid; place-items: center; font-size: 18px; transition: background .5s var(--curva), color .5s, border-color .5s, transform .5s var(--curva); }
.materia a:hover .materia-nome { transform: translateX(14px); }
.materia a:hover .materia-freccia { background: var(--p); color: var(--s); border-color: var(--p); transform: rotate(45deg); }
.elenco-materie:hover .materia a:not(:hover) .materia-nome { color: var(--tenue); }

.anteprima-cursore { position: fixed; left: 0; top: 0; width: 270px; height: 340px; pointer-events: none; z-index: 40; opacity: 0; visibility: hidden; }
.anteprima-dentro { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 round 2px); }
.anteprima-dentro img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* studio */
.studio { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 9vw, 130px); }
.studio-griglia { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 130px); align-items: center; }
.studio-foto { margin: 0; }
.studio-foto-in { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.studio-foto-in img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; }
.studio-testo .sez-titolo { max-width: 12ch; }
.studio-lead { font-family: var(--f-titoli); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.3; margin: 32px 0 20px; }
.studio-testo > p:not(.studio-lead) { color: var(--tenue); max-width: 48ch; }
.fatti { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(28px, 4vw, 64px); margin: 48px 0 0; padding-top: 32px; border-top: 1px solid var(--linea); }
.fatti dt { font-family: var(--f-titoli); font-size: clamp(2.6rem, 4vw, 3.8rem); line-height: 1; color: var(--p); }
.fatti dd { margin: 8px 0 0; font-size: 14px; color: var(--tenue); }

/* primo incontro */
.incontro { background: var(--s2); padding: clamp(96px, 12vw, 170px) 0; position: relative; }
.incontro-griglia { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(48px, 7vw, 120px); align-items: start; }
.prezzo { display: flex; align-items: flex-end; gap: 28px; margin: 36px 0 56px; }
.prezzo-cifra { font-family: var(--f-titoli); font-size: clamp(4.4rem, 8vw, 7.4rem); line-height: .82; color: var(--p); white-space: nowrap; }
.prezzo-nota { color: var(--tenue); max-width: 30ch; font-size: 16px; }
.passi { list-style: none; margin: 0; padding: 0; }
.passi li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--linea); }
.passo-num { font-family: var(--f-titoli); font-size: 30px; font-style: italic; color: var(--p); line-height: 1; }
.passi h3 { font-size: 28px; margin-bottom: 6px; }
.passi p { color: var(--tenue); font-size: 16px; }

.agenda { position: sticky; top: 110px; padding: 8px; border-radius: 28px; background: color-mix(in oklab, var(--t) 5%, transparent); border: 1px solid var(--linea); }
.agenda-in { background: var(--s); border-radius: 22px; padding: clamp(24px, 3vw, 40px); box-shadow: inset 0 1px 0 color-mix(in oklab, var(--t) 8%, transparent); }
.agenda-testa { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.agenda h3 { font-size: 30px; }
.modo { display: flex; background: var(--s2); border-radius: 999px; padding: 4px; }
.modo button { border: 0; background: none; border-radius: 999px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--tenue); min-height: 36px; transition: background .4s var(--curva), color .4s; }
.modo .attivo { background: var(--t); color: var(--s); }
.agenda-mese { margin: 26px 0 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--tenue); font-weight: 600; }
.giorni { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.giorni button, .orari button {
  border: 1px solid var(--linea); background: none; border-radius: 14px; cursor: pointer; min-height: 48px;
  transition: background .35s var(--curva), color .35s, border-color .35s;
}
.giorni button { padding: 10px 0; font-family: var(--f-titoli); font-size: 26px; line-height: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.giorni span { font-family: var(--f-testo); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--tenue); }
.orari { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 24px; }
.orari button { padding: 0 16px; font-size: 15px; font-weight: 600; }
.giorni button:hover:not(:disabled), .orari button:hover:not(:disabled) { border-color: var(--p); }
.giorni .attivo, .orari .attivo { background: var(--p); border-color: var(--p); color: var(--s); }
.giorni .attivo span { color: var(--s); }
.giorni button:disabled, .orari button:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.campo { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.campo > span { font-size: 13.5px; font-weight: 600; color: var(--tenue); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--linea);
  background: var(--s2); color: var(--t); transition: border-color .3s;
}
.campo select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--tenue) 50%), linear-gradient(-45deg, transparent 50%, var(--tenue) 50%); background-position: calc(100% - 22px) 22px, calc(100% - 17px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.campo textarea { resize: vertical; min-height: 110px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--p); }
.agenda-nota { margin-top: 14px; font-size: 14px; color: var(--tenue); text-align: center; }

/* avvocati */
.avvocati { padding: clamp(96px, 13vw, 180px) 0 clamp(80px, 10vw, 140px); }
.avvocati-griglia { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.avvocato:nth-child(2) { margin-top: clamp(40px, 8vw, 120px); }
.avvocato:nth-child(3) { margin-top: clamp(20px, 4vw, 60px); }
.avvocato-foto { position: relative; aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 22px; background: var(--s2); }
.avvocato-foto img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transform: scale(1.02); transition: transform 1.2s var(--curva), filter 1.2s var(--curva); }
.avvocato:hover .avvocato-foto img { transform: scale(1.07); filter: grayscale(.6) contrast(1.05); }
.avvocato h3 { font-size: clamp(1.8rem, 2.4vw, 2.3rem); }
.ruolo { margin-top: 6px; color: var(--t); font-weight: 500; }
.lingue-parlate { margin-top: 4px; font-size: 14.5px; color: var(--tenue); }

/* recensioni */
.recensioni { padding: clamp(80px, 10vw, 150px) 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.recensioni-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.voto { font-size: 15px; color: var(--tenue); font-weight: 500; }
.stelle { color: var(--p); letter-spacing: .15em; margin-right: 8px; }
.citazioni { display: grid; margin: 40px 0 36px; max-width: 980px; width: 100%; }
.citazione { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .35s ease-out, transform .35s ease-out, visibility 0s .35s; }
.citazione.attiva { opacity: 1; visibility: visible; transform: none; transition: opacity .9s var(--curva) .4s, transform .9s var(--curva) .4s, visibility 0s; }
.citazione blockquote { margin: 0; font-family: var(--f-titoli); font-style: italic; font-size: clamp(1.8rem, 3.4vw, 3.1rem); line-height: 1.18; }
.citazione figcaption { margin-top: 26px; font-weight: 600; }
.citazione figcaption span { display: block; font-weight: 400; color: var(--tenue); font-size: 14.5px; margin-top: 2px; }
.citazioni-comandi { display: flex; align-items: center; gap: 22px; }
.citazioni-comandi button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--linea); background: none; cursor: pointer; display: grid; place-items: center; font-size: 20px; transition: background .4s var(--curva), color .4s, border-color .4s; }
.citazioni-comandi button:hover { background: var(--p); color: var(--s); border-color: var(--p); }
.cit-contatore { font-size: 14px; color: var(--tenue); min-width: 3.5em; }
.cit-contatore b { color: var(--t); }

/* articoli */
.articoli { padding: clamp(96px, 12vw, 170px) 0; }
.articoli-testa { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.articoli-griglia { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 0 clamp(32px, 5vw, 80px); }
.articolo { display: flex; flex-direction: column; gap: 14px; padding: 30px 0; text-decoration: none; border-top: 1px solid var(--linea); }
.articolo-grande { grid-row: span 2; padding-right: 20px; }
.articolo h3 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); line-height: 1.12; transition: color .4s; }
.articolo-grande h3 { font-size: clamp(2.3rem, 3.8vw, 3.6rem); }
.articolo:hover h3 { color: var(--p); }
.articolo-data { font-size: 14px; color: var(--tenue); }
.articolo-materia { margin-top: auto; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in oklab, var(--a) 70%, var(--t)); }

/* contatti */
.contatti { position: relative; padding-bottom: clamp(96px, 12vw, 160px); }
.contatti-foto { margin: 0; height: clamp(320px, 52vw, 620px); overflow: hidden; position: relative; }
.contatti-foto img { width: 100%; height: 100%; object-fit: cover; }
.contatti-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, var(--s)); }
.contatti-griglia { position: relative; margin-top: clamp(-160px, -12vw, -60px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(40px, 7vw, 110px); align-items: start; }
.contatti-info .sez-titolo { max-width: 14ch; }
.recapiti { margin: 44px 0 0; display: grid; gap: 0; }
.recapiti div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--linea); }
.recapiti dt { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--tenue); font-weight: 600; padding-top: 3px; }
.recapiti dd { margin: 0; font-size: 17px; }
.recapiti a { text-decoration: none; }
.recapiti a:hover { color: var(--p); }
.modulo { padding: 8px; border-radius: 28px; background: color-mix(in oklab, var(--t) 5%, transparent); border: 1px solid var(--linea); }
.modulo-in { background: var(--s2); border-radius: 22px; padding: clamp(24px, 3vw, 40px); }
.modulo h3 { font-size: 30px; margin-bottom: 24px; }
.modulo .campo input, .modulo .campo textarea { background: var(--s); }
.spunta { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--tenue); margin: 4px 0 22px; cursor: pointer; }
.spunta input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--p); flex: none; }

/* piede */
.piede { border-top: 1px solid var(--linea); padding: 56px 0 40px; }
.piede-nome { font-family: var(--f-titoli); font-size: clamp(2rem, 4vw, 3.4rem); display: flex; align-items: center; gap: 18px; line-height: 1.1; overflow-wrap: anywhere; }
.piede-nome .logo-sigillo { width: 52px; height: 52px; font-size: 30px; }
.piede-griglia { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 28px; margin-top: 40px; font-size: 14.5px; color: var(--tenue); }
.piede-link { display: flex; gap: 22px; align-items: flex-start; }
.piede-link a { text-decoration: none; }
.piede-link a:hover { color: var(--t); }

/* whatsapp */
.whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 44; display: flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px 0 18px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px;
  background: var(--t); color: var(--s); box-shadow: 0 14px 36px rgb(0 0 0 / .32);
  transition: transform .5s var(--curva);
}
.whatsapp svg { width: 24px; height: 24px; stroke-width: 1.7; }
.whatsapp:hover { transform: translateY(-3px); }

/* stati iniziali (solo con JS attivo, messi da html.js) */
.js .hero-occhiello, .js .hero-sotto, .js .hero-azioni { opacity: 0; }
.js .hero-titolo { visibility: hidden; }
.js .hero-cornice { clip-path: inset(100% 0 0 0); }

/* responsive */
@media (max-width: 1180px) {
  .nav { gap: 22px; }
  .testata-azioni .btn-piccolo { display: none; }
}
@media (max-width: 900px) {
  .nav, .testata-azioni .btn-piccolo { display: none; }
  .hamburger { display: block; }
  .testata-in { height: 68px; gap: 14px; }
  .logo-nome { font-size: 19px; line-height: 1.1; white-space: normal; max-width: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .logo-sigillo { width: 34px; height: 34px; font-size: 19px; }
  .hero { padding-top: 68px; min-height: 0; }
  .hero-in { grid-template-columns: 1fr; gap: 0; }
  .hero-testo { padding: 48px 0 40px; }
  .hero-colonna { padding: 0 0 12px; }
  .hero-cornice { min-height: 0; aspect-ratio: 4 / 3.4; }
  .materia a { grid-template-columns: 76px 1fr; grid-template-rows: auto auto; gap: 6px 18px; padding: 22px 0; align-items: start; }
  .materia-num { display: none; }
  .materia-mini { display: block; grid-row: span 2; width: 76px; height: 96px; object-fit: cover; }
  .materia-nome { font-size: 1.85rem; align-self: end; }
  .materia-descr { font-size: 15.5px; }
  .materia-freccia { display: none; }
  .studio-griglia { grid-template-columns: 1fr; }
  .studio-foto-in { aspect-ratio: 4 / 3.6; }
  .agenda { position: static; }
  .avvocati-griglia { grid-template-columns: 1fr 1fr; }
  .avvocato:nth-child(2) { margin-top: 48px; }
  .avvocato:nth-child(3) { margin-top: 0; }
  .articoli-griglia { grid-template-columns: 1fr; }
  .articolo-grande { grid-row: auto; }
  .contatti-griglia { grid-template-columns: 1fr; }
  .piede-griglia { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-titolo { font-size: clamp(3rem, 14vw, 4.2rem); }
  .hero-sotto { font-size: 17px; margin-top: 24px; }
  .hero-azioni { gap: 20px; margin-top: 30px; }
  .sez-titolo { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .sez-sotto { font-size: 16.5px; }
  .lingue { display: none; }
  .prezzo { flex-direction: column; align-items: flex-start; gap: 16px; }
  .giorni { gap: 6px; }
  .giorni button { font-size: 22px; }
  .avvocati-griglia { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .avvocati-griglia::-webkit-scrollbar { display: none; }
  .avvocato { scroll-snap-align: start; }
  .avvocato:nth-child(2) { margin-top: 0; }
  .recapiti div { grid-template-columns: 1fr; gap: 4px; }
  .fatti { grid-template-columns: repeat(3, auto); gap: 22px; }
  .fatti dt { font-size: 2.3rem; }
  .whatsapp { right: 16px; bottom: 16px; width: 56px; padding: 0; justify-content: center; }
  .whatsapp span { display: none; }
  .piede-nome .logo-sigillo { width: 42px; height: 42px; font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
section[id] { scroll-margin-top: 84px; }

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

/* APERTURA: sigillo di ceralacca che si rompe, poi le ante si aprono */
.ap-anta { position: absolute; top: 0; bottom: 0; width: 50.2%; background: var(--s); }
.ap-anta-sx { left: 0; box-shadow: inset -1px 0 0 color-mix(in oklab, var(--p) 35%, transparent); }
.ap-anta-dx { right: 0; }
.ap-centro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 0 20px; }
.ap-cera { position: relative; width: clamp(130px, 34vw, 200px); aspect-ratio: 1; filter: drop-shadow(0 14px 18px rgb(0 0 0 / .5)); }
.ap-mezzo { position: absolute; inset: 0; }
.ap-mezzo svg { width: 100%; height: 100%; display: block; }
.ap-mezzo-sx { clip-path: polygon(0 0, 53% 0, 47% 20%, 56% 38%, 46% 58%, 55% 77%, 49% 100%, 0 100%); }
.ap-mezzo-dx { clip-path: polygon(53% 0, 100% 0, 100% 100%, 49% 100%, 55% 77%, 46% 58%, 56% 38%, 47% 20%); }
.c-cera { fill: var(--p); }
.c-anello { fill: none; stroke: color-mix(in oklab, var(--p) 62%, #000); stroke-width: 4; }
.c-segno { font-family: var(--f-titoli); font-size: 100px; fill: color-mix(in oklab, var(--p) 55%, #000); }
.ap-sigillo .ap-nome { margin: 0; font-family: var(--f-titoli); font-size: clamp(22px, 3vw, 32px); color: var(--t); text-align: center; letter-spacing: .02em; }
