@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --notte: #14213a;
  --notte-2: #1c2d4d;
  --inchiostro: #1d2433;
  --testo: #3d4555;
  --tenue: #6b7385;
  --avorio: #f7f4ee;
  --carta: #fffdf9;
  --linea: #e4ddd0;
  --ottone: #b08d57;
  --ottone-chiaro: #d9bf8f;
  --ottone-testo: #85642f;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --raggio: 4px;
  --larghezza: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--carta);
  color: var(--testo);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); color: var(--inchiostro); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }
em { font-style: italic; color: var(--ottone); }

.contenitore { width: min(100% - 32px, var(--larghezza)); margin-inline: auto; }
.tenue { color: var(--tenue); }

.salta { position: absolute; left: -999px; top: 8px; background: var(--notte); color: #fff; padding: 8px 14px; z-index: 100; }
.salta:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ottone); outline-offset: 3px; }

.occhiello {
  font: 600 .78rem/1.4 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ottone-testo);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: .75rem;
}
.occhiello::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* Bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.6rem;
  background: var(--notte); color: #fff;
  border: 1px solid var(--notte); border-radius: var(--raggio);
  font: 500 .95rem/1 var(--sans); text-decoration: none; letter-spacing: .01em;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--notte-2); transform: translateY(-1px); }
.btn--linea { background: transparent; color: var(--notte); }
.btn--linea:hover { background: var(--notte); color: #fff; }
.btn--piccolo { padding: .65rem 1.1rem; font-size: .88rem; }

/* Testata */
.testata {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 249, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.testata.scorrimento { border-color: var(--linea); box-shadow: 0 6px 24px -18px rgba(20, 33, 58, .5); }
.testata__riga { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.marchio { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.marchio__sigla {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--ottone); color: var(--notte);
  font: 600 1.6rem/1 var(--serif);
}
.marchio__testo { display: flex; flex-direction: column; line-height: 1.15; }
.marchio__nome { font: 600 1.3rem/1.1 var(--serif); color: var(--inchiostro); }
.marchio__sotto { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tenue); }

.menu { display: flex; align-items: center; gap: 2rem; }
.menu a:not(.btn) { text-decoration: none; font-size: .95rem; color: var(--inchiostro); position: relative; padding: .3rem 0; }
.menu a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--ottone); transition: right .25s; }
.menu a:not(.btn):hover::after { right: 0; }

.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--notte); margin: 5px 0; transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Eroe */
.eroe {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 85% 20%, rgba(176, 141, 87, .12), transparent 70%),
    linear-gradient(180deg, var(--carta), var(--avorio));
  border-bottom: 1px solid var(--linea);
}
.eroe::after {
  content: "§"; position: absolute; right: -2rem; bottom: -9rem;
  font: 600 32rem/1 var(--serif); color: rgba(20, 33, 58, .035);
  pointer-events: none;
}
.eroe__griglia { display: grid; grid-template-columns: 1.5fr 1fr; gap: 4rem; align-items: center; padding: 6.5rem 0 7rem; position: relative; z-index: 1; }
.eroe__intro { font-size: 1.15rem; max-width: 36em; color: var(--testo); }
.eroe__azioni { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.eroe__scheda {
  background: var(--notte); color: #dfe4ee;
  padding: 2.4rem 2.2rem; border-radius: var(--raggio);
  box-shadow: 0 30px 60px -30px rgba(20, 33, 58, .6);
  position: relative;
}
.eroe__scheda::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(217, 191, 143, .3); pointer-events: none; }
.eroe__scheda-titolo { font: 500 1.6rem/1.2 var(--serif); color: var(--ottone-chiaro); font-style: italic; }
.eroe__scheda ul { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.eroe__scheda li { padding: .85rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: .97rem; }
.eroe__scheda strong { color: #fff; font-weight: 500; display: block; }
.eroe__tel { font: 600 1.9rem/1 var(--serif); color: #fff; text-decoration: none; letter-spacing: .02em; }
.eroe__tel:hover { color: var(--ottone-chiaro); }

/* Sezioni */
.sezione { padding: 6.5rem 0; }
.sezione--chiara { background: var(--avorio); border-block: 1px solid var(--linea); }
.sezione--scura { background: var(--notte); color: #c9d0dc; }
.sezione--scura h2, .sezione--scura h3 { color: #fff; }
.titolo-sezione { max-width: 40rem; margin-bottom: 3.5rem; }

/* Studio */
.studio { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: center; }
.studio__foto { margin: 0; }
.studio__cornice {
  aspect-ratio: 4 / 5; position: relative;
  background:
    linear-gradient(135deg, rgba(176, 141, 87, .25), transparent 60%),
    var(--notte);
  display: grid; place-items: center;
  border-radius: var(--raggio);
}
.studio__cornice::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(217, 191, 143, .35); }
.studio__cornice::after { content: ""; position: absolute; left: -18px; bottom: -18px; width: 45%; height: 45%; border-left: 1px solid var(--ottone); border-bottom: 1px solid var(--ottone); }
.studio__cornice span { font: 500 6rem/1 var(--serif); color: var(--ottone-chiaro); font-style: italic; }
.studio__testo p { font-size: 1.07rem; }

/* Aree */
.aree { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.4rem; }
.area {
  grid-column: span 2;
  background: var(--carta); padding: 2.2rem 2rem; border: 1px solid var(--linea); border-radius: var(--raggio);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.area:nth-child(4) { grid-column: 2 / span 2; }
.area:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(20, 33, 58, .45); border-color: var(--ottone-chiaro); }
.area__icona { width: 34px; height: 34px; fill: none; stroke: var(--ottone); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.2rem; }
.area p { margin: 0; font-size: .98rem; }

/* Passi */
.passi { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; counter-reset: none; }
.passi li { border-top: 1px solid var(--linea); padding-top: 1.6rem; }
.passi__num { display: block; font: 500 3rem/1 var(--serif); color: var(--ottone); margin-bottom: 1rem; font-style: italic; }

/* Articoli */
.articoli { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1); }
.articolo { background: var(--notte); padding: 2rem 2rem 2.2rem; display: flex; flex-direction: column; min-height: 170px; transition: background .3s; }
.articolo:hover { background: var(--notte-2); }
.articolo__tipo { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ottone-chiaro); }
.articolo h3 { font-size: 1.5rem; flex: 1; }
.articolo__leggi { font-size: .9rem; color: var(--ottone-chiaro); }

/* Contatti */
.contatti { display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem; align-items: start; }
.contatti__intro { font-size: 1.12rem; }
.contatti__dati { margin: 0; background: var(--avorio); border: 1px solid var(--linea); border-radius: var(--raggio); padding: 1rem 2.2rem; }
.contatti__dati div { padding: 1.2rem 0; border-bottom: 1px solid var(--linea); }
.contatti__dati div:last-child { border-bottom: 0; }
.contatti__dati dt { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ottone-testo); margin-bottom: .3rem; }
.contatti__dati dd { margin: 0; color: var(--inchiostro); word-break: break-word; }
.contatti__dati a { color: var(--notte); text-decoration-color: var(--ottone); text-underline-offset: 3px; }

/* Piede */
.piede { background: #0e182b; color: #9aa4b6; font-size: .92rem; padding-top: 4rem; }
.piede a { color: #dfe4ee; text-decoration: underline; text-decoration-color: rgba(217, 191, 143, .5); text-underline-offset: 3px; }
.piede a:hover { color: var(--ottone-chiaro); }
.piede__griglia { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; }
.piede__nome { font: 600 1.4rem/1.2 var(--serif); color: #fff; margin-bottom: .5rem; }
.piede__fondo { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; border-top: 1px solid rgba(255, 255, 255, .08); padding: 1.4rem 0; font-size: .84rem; }
.piede__fondo p { margin: 0; }

/* Link con freccia */
.link-freccia { display: inline-flex; gap: .4rem; align-items: center; margin-top: .6rem; color: var(--notte); font-weight: 500; font-size: .95rem; text-decoration: none; }
.link-freccia span { transition: transform .25s; }
a:hover > .link-freccia span, .link-freccia:hover span { transform: translateX(4px); }
.link-freccia--chiaro { color: var(--ottone-chiaro); }
.titolo-sezione--riga { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }

/* Schede cliccabili in home */
a.area { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
a.area p { flex: 1; }
a.articolo { text-decoration: none; color: inherit; }

/* Intestazione delle pagine interne */
.testa-pagina { background: var(--notte); color: #c9d0dc; padding: 3.5rem 0 3.8rem; position: relative; overflow: hidden; }
.testa-pagina::after { content: "§"; position: absolute; right: 4%; top: -4rem; font: 600 20rem/1 var(--serif); color: rgba(255, 255, 255, .03); pointer-events: none; }
.testa-pagina h1 { color: #fff; margin: 0; max-width: 22em; position: relative; }
.testa-pagina--articolo h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
.testa-pagina__sotto { font: italic 500 1.45rem/1.3 var(--serif); color: var(--ottone-chiaro); margin: .8rem 0 0; }
.testa-pagina__autore { margin: 1.4rem 0 0; font-size: .92rem; }
.testa-pagina__icona { width: 40px; height: 40px; fill: none; stroke: var(--ottone-chiaro); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; display: block; }
.briciole { font-size: .84rem; margin-bottom: 1.6rem; color: #8f9ab0; }
.briciole a { color: #c9d0dc; text-decoration: none; }
.briciole a:hover { color: var(--ottone-chiaro); }
.occhiello--chiaro { color: var(--ottone-chiaro); }
.tenue-chiaro { color: #9aa4b6; }
.contenitore--stretto { width: min(100% - 32px, 780px); }

/* Testo lungo (aree, articoli) */
.testo { font-size: 1.08rem; line-height: 1.8; color: #333b4a; }
.testo h2 { font-size: clamp(1.6rem, 2.6vw, 2.05rem); margin: 2.4em 0 .7em; }
.testo h2:first-child { margin-top: 0; }
.testo h3 { font-size: 1.4rem; margin: 1.8em 0 .5em; }
.testo p { margin: 0 0 1.15em; }
.testo ul, .testo ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.testo li { margin-bottom: .55em; padding-left: .3em; }
.testo ul li::marker { color: var(--ottone); }
.testo ol li::marker { color: var(--ottone); font-weight: 600; }
.testo strong { color: var(--inchiostro); font-weight: 600; }
.testo--articolo > p:first-of-type { font-size: 1.18rem; color: var(--inchiostro); }

.pagina-due { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 4.5rem; padding: 4.5rem 0 5.5rem; align-items: start; }
.laterale { position: sticky; top: 100px; display: grid; gap: 1.4rem; }
.laterale__box { border: 1px solid var(--linea); background: var(--avorio); padding: 1.8rem; border-radius: var(--raggio); }
.laterale__box--scuro { background: var(--notte); border-color: var(--notte); color: #dfe4ee; }
.laterale__box--scuro .eroe__tel { font-size: 1.6rem; display: inline-block; margin: .2rem 0 .6rem; }
.laterale__titolo { font: 600 .74rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ottone-testo); }
.laterale__box--scuro .laterale__titolo { color: var(--ottone-chiaro); }
.laterale__email { margin: 0; font-size: .9rem; word-break: break-word; }
.laterale__email a { color: #dfe4ee; }
.laterale__lista { list-style: none; margin: 0; padding: 0; }
.laterale__lista li { border-top: 1px solid var(--linea); }
.laterale__lista a { display: block; padding: .75rem 0; text-decoration: none; color: var(--inchiostro); }
.laterale__lista a:hover { color: var(--ottone); }
.studio__cornice--piccola span { font-size: 4.5rem; }

/* Articolo */
.copertina { margin: -2rem 0 3rem; position: relative; z-index: 1; }
.copertina img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--raggio); box-shadow: 0 30px 50px -30px rgba(20, 33, 58, .5); }
.testa-pagina--articolo { padding-bottom: 5rem; }
.firma { display: flex; gap: 1rem; align-items: center; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); padding: 1.6rem 0; margin: 3rem 0 2rem; }
.firma p { margin: 0; font-size: .92rem; }
.firma__nome { font: 600 1.25rem/1.2 var(--serif) !important; color: var(--inchiostro); }
.firma a { color: var(--notte); }
.prec-succ { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-bottom: 5rem; }
.prec-succ a { display: block; text-decoration: none; color: var(--inchiostro); font: 600 1.2rem/1.3 var(--serif); padding: 1.2rem 1.4rem; border: 1px solid var(--linea); border-radius: var(--raggio); transition: border-color .2s; }
.prec-succ a:hover { border-color: var(--ottone); }
.prec-succ a span { display: block; font: 500 .8rem/1.4 var(--sans); color: var(--ottone-testo); margin-bottom: .3rem; }
.prec-succ__succ { text-align: right; }

/* Elenco articoli */
.elenco-articoli { padding: 4rem 0 5.5rem; }
.elenco-articoli section + section { margin-top: 4rem; }
.elenco-articoli__gruppo { font-size: 2rem; padding-bottom: .8rem; border-bottom: 1px solid var(--linea); margin-bottom: 2rem; }
.schede { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.scheda { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--carta); border: 1px solid var(--linea); border-radius: var(--raggio); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.scheda:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(20, 33, 58, .45); }
.scheda img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.scheda__corpo { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.scheda__corpo .articolo__tipo { color: var(--ottone-testo); }
.scheda h3 { font-size: 1.45rem; }
.scheda__corpo p:not(.articolo__tipo) { font-size: .95rem; flex: 1; }

.testa-pagina + .contenitore--stretto > .testo--articolo { padding-top: 2.5rem; }
.vuoto { padding: 4rem 0 6rem; }
.testa-pagina + .contenitore--stretto > .testo--articolo:last-child { padding-bottom: 5rem; }

/* Comparsa allo scorrimento */
.js .rivela { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .rivela.visto { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rivela { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* Tablet */
@media (max-width: 980px) {
  .eroe__griglia { grid-template-columns: 1fr; gap: 3rem; padding: 4.5rem 0 5rem; }
  .eroe__scheda { max-width: 480px; }
  .studio, .contatti { grid-template-columns: 1fr; gap: 3rem; }
  .studio__foto { max-width: 380px; }
  .aree { grid-template-columns: 1fr 1fr; }
  .area, .area:nth-child(4) { grid-column: auto; }
  .area:last-child { grid-column: 1 / -1; }
  .articoli { grid-template-columns: 1fr 1fr; }
  .passi { gap: 2rem; }
  .pagina-due { grid-template-columns: 1fr; gap: 3rem; padding: 3.5rem 0 4.5rem; }
  .laterale { position: static; grid-template-columns: 1fr 1fr; }
  .studio__cornice--piccola { display: none; }
  .schede { grid-template-columns: 1fr 1fr; }
}

/* Telefono */
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .testata__riga { height: 66px; }
  html { scroll-padding-top: 76px; }
  .marchio__sigla { width: 38px; height: 38px; font-size: 1.4rem; }
  .marchio__nome { font-size: 1.12rem; }
  .marchio__sotto { font-size: .68rem; }
  .menu-btn { display: block; }
  .menu {
    position: fixed; inset: 66px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--carta); border-bottom: 1px solid var(--linea);
    padding: .5rem 16px 1.5rem;
    box-shadow: 0 20px 30px -20px rgba(20, 33, 58, .4);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu.aperto { transform: none; opacity: 1; visibility: visible; }
  .menu a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--linea); font-size: 1.05rem; }
  .menu a:not(.btn)::after { display: none; }
  .menu .btn { margin-top: 1.2rem; }
  .eroe::after { font-size: 20rem; bottom: -6rem; right: -3rem; }
  .eroe__griglia { padding: 3.2rem 0 3.6rem; }
  .eroe__azioni .btn { flex: 1 1 auto; }
  .eroe__scheda { padding: 2rem 1.6rem; }
  .sezione { padding: 4.5rem 0; }
  .titolo-sezione { margin-bottom: 2.4rem; }
  .aree, .articoli, .passi { grid-template-columns: 1fr; }
  .area:last-child { grid-column: auto; }
  .articolo { min-height: 0; }
  .contatti__dati { padding: .5rem 1.4rem; }
  .testa-pagina { padding: 2.6rem 0 2.8rem; }
  .testa-pagina--articolo { padding-bottom: 4rem; }
  .testo { font-size: 1.02rem; line-height: 1.75; }
  .laterale { grid-template-columns: 1fr; }
  .schede { grid-template-columns: 1fr; }
  .prec-succ { grid-template-columns: 1fr; }
  .prec-succ__succ { text-align: left; }
  .copertina { margin: -2rem 0 2rem; }
  .titolo-sezione--riga { align-items: start; flex-direction: column; }
  .piede__griglia { grid-template-columns: 1fr; }
}

/* Video con caricamento al clic */
.video { margin: 0 0 2.6rem; }
.video__avvia, .video__frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--raggio); overflow: hidden; background: var(--notte); }
.video__avvia { position: relative; padding: 0; cursor: pointer; }
.video__avvia img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .4s; filter: saturate(.9); }
.video__avvia:hover img { transform: scale(1.02); filter: saturate(1); }
.video__play { position: absolute; left: 22%; top: 38%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 33, 58, .88); color: #fff; box-shadow: 0 0 0 6px rgba(217, 191, 143, .35); transition: background .2s, transform .2s; }
.video__avvia:hover .video__play { background: var(--ottone); transform: translate(-50%, -50%) scale(1.06); }
.video figcaption { font-size: .95rem; line-height: 1.6; color: var(--testo); margin-top: 1rem; padding-left: 1rem; border-left: 2px solid var(--ottone); }
.video figcaption strong { display: block; font: 600 1.25rem/1.3 var(--serif); color: var(--inchiostro); margin-bottom: .3rem; }
.video__nota { display: block; font-size: .8rem; color: var(--tenue); margin-top: .4rem; }

/* Foto dell'avvocato */
.studio__cornice--foto { overflow: visible; background: var(--notte); }
.studio__cornice--foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--raggio); }
.studio__cornice--foto::before { z-index: 1; border-color: rgba(217, 191, 143, .55); }
.firma__foto { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ottone-chiaro); flex: none; }
@media (max-width: 980px) { .studio__cornice--foto.studio__cornice--piccola { display: block; max-width: 320px; } .pagina-due > .laterale:has(.studio__cornice--foto) { order: -1; } }

/* ===== Home, versione 2 ===== */
.eroe::after { display: none; }
.eroe__griglia { grid-template-columns: 1.25fr .9fr; padding: 5rem 0 5.5rem; }
.eroe__foto { margin: 0; position: relative; justify-self: end; width: min(100%, 420px); }
.eroe__foto img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--raggio); box-shadow: 0 40px 70px -40px rgba(20, 33, 58, .55); position: relative; z-index: 1; }
.eroe__foto::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--ottone); border-radius: var(--raggio); }
.eroe__foto figcaption { position: absolute; z-index: 2; left: -1.6rem; bottom: 2rem; background: var(--notte); color: #fff; font: 500 1.15rem/1 var(--serif); padding: .9rem 1.3rem; border-radius: var(--raggio); box-shadow: 0 16px 30px -18px rgba(20, 33, 58, .7); }

.fascia { background: var(--notte); color: #c9d0dc; }
.fascia__lista { list-style: none; margin-block: 0; padding: 1.6rem 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.fascia__lista li { display: flex; gap: .9rem; align-items: flex-start; font-size: .93rem; line-height: 1.5; }
.fascia__lista svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--ottone-chiaro); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.fascia__lista strong { display: block; color: #fff; font-weight: 500; }

.citazione { max-width: 900px; }
.citazione blockquote { margin: 0 0 2rem; }
.citazione blockquote p { font: italic 500 clamp(1.7rem, 3.2vw, 2.5rem)/1.3 var(--serif); color: var(--inchiostro); margin: 0; }
.citazione blockquote p::before { content: "“"; color: var(--ottone); margin-right: .1em; }
.citazione blockquote p::after { content: "”"; color: var(--ottone); }
.citazione__testo { max-width: 680px; border-left: 2px solid var(--ottone); padding-left: 1.5rem; }

.evidenza { background: var(--notte); color: #c9d0dc; }
.evidenza h2 { color: #fff; }
.evidenza__griglia { display: grid; grid-template-columns: 1.15fr 1fr; gap: 4rem; align-items: center; }
.evidenza__video { display: block; position: relative; border-radius: var(--raggio); overflow: hidden; box-shadow: 0 0 0 1px rgba(217, 191, 143, .35), 0 30px 60px -30px rgba(0, 0, 0, .7); }
.evidenza__video img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s; }
.evidenza__video:hover img { transform: scale(1.03); }
.evidenza__video:hover .video__play { background: var(--ottone); }

.elenco-home { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); }
.elenco-home li { border-bottom: 1px solid var(--linea); }
.elenco-home a { display: grid; grid-template-columns: 11rem 1fr auto; gap: 1.5rem; align-items: baseline; padding: 1.3rem .4rem; text-decoration: none; color: var(--inchiostro); transition: background .2s, padding .2s; }
.elenco-home a:hover { background: var(--avorio); padding-left: 1rem; }
.elenco-home__tipo { font: 600 .74rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ottone-testo); }
.elenco-home__titolo { font: 600 1.35rem/1.3 var(--serif); }
.elenco-home__freccia { color: var(--ottone); transition: transform .2s; }
.elenco-home a:hover .elenco-home__freccia { transform: translateX(4px); }

@media (max-width: 980px) {
  .eroe__griglia { grid-template-columns: 1fr; gap: 3.5rem; padding: 3.5rem 0 4.5rem; }
  .eroe__foto { justify-self: start; width: min(78%, 360px); }
  .evidenza__griglia { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 760px) {
  .fascia__lista { grid-template-columns: 1fr; gap: 1.1rem; padding: 1.4rem 0; }
  .eroe__foto { width: calc(100% - 22px); }
  .eroe__foto figcaption { left: auto; right: -.4rem; bottom: 1.2rem; font-size: 1rem; }
  .elenco-home a { grid-template-columns: 1fr auto; gap: .3rem 1rem; padding: 1.1rem .2rem; }
  .elenco-home__tipo { grid-column: 1 / -1; }
  .elenco-home__titolo { font-size: 1.2rem; }
  .citazione__testo { padding-left: 1.1rem; }
}

/* Pulsante WhatsApp fisso */
.whatsapp { position: fixed; right: max(1.1rem, env(safe-area-inset-right)); bottom: max(1.1rem, env(safe-area-inset-bottom)); z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 24px -6px rgba(20, 33, 58, .45); transition: transform .2s, box-shadow .2s; }
.whatsapp:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -6px rgba(20, 33, 58, .55); }
.whatsapp:focus-visible { outline: 3px solid var(--ottone); outline-offset: 3px; }
@media (max-width: 760px) { .piede__fondo { padding-bottom: 5rem; } }
@media print { .whatsapp { display: none; } }
