/* ==========================================================================
   Gaetano Leone — Real Estate Advisor
   Palette: Antracite #1C1C1D · Blu notte #1B2A44 · Avorio #F2EDE4 · Sabbia #E2D9C9 · Pietra #8E897F
   Font: Inter (variabile, self-hosted). Breakpoint: 480 · 640 · 768 · 1024 · 1180 · 1440 · 1920
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1C1C1D;
  --night: #1B2A44;
  --ivory: #F2EDE4;
  --sand: #E2D9C9;
  --stone: #8E897F;
  --stone-dk: #6A665D;         /* Pietra scurita per etichette su fondi chiari (contrasto AA) */
  --line-d: rgba(242, 237, 228, .22);
  --line-l: rgba(28, 28, 29, .2);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --gut: clamp(1.25rem, 5vw, 5rem);
  --max: 78rem;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sec-y: clamp(4.5rem, 10vw, 9.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html.menu-open, html.cc-lock { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
mark.todo { background: #ffe27a; color: #1C1C1D; padding: 0 .3em; border-radius: 3px; font-weight: 500; }

:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; border-radius: 2px; }
.s-light :focus-visible { outline-color: var(--night); }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 200; background: var(--ivory); color: var(--ink); padding: .7rem 1rem; border-radius: 4px; transition: top .2s; }
.skip:focus { top: 1rem; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.section { position: relative; padding-block: var(--sec-y); overflow: clip; }
.s-dark  { background: var(--ink);   color: var(--ivory); }
.s-night { background: var(--night); color: var(--ivory); }
.s-light { background: var(--ivory); color: var(--ink); }

.sec-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-bottom: 1.1rem; margin-bottom: clamp(2.2rem, 5vw, 4.5rem);
  border-bottom: 1.5px solid var(--line-d);
  font-size: clamp(.7rem, .66rem + .15vw, .8rem); font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
}
.s-light .sec-head { border-color: var(--line-l); }
.sec-label { display: inline-flex; align-items: center; gap: .8rem; color: var(--stone); }
.s-light .sec-label, .s-light .sec-num { color: var(--stone-dk); }
.sec-label svg { width: 1.7rem; height: auto; color: currentColor; }
.sec-num { color: var(--stone); text-align: right; }

h2 {
  font-size: clamp(2.1rem, 1.2rem + 4.6vw, 4.75rem);
  line-height: 1.02; letter-spacing: -.03em; font-weight: 400; text-wrap: balance; max-width: 17ch;
}
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 500; }
.lead { font-size: clamp(1.1rem, 1rem + .55vw, 1.45rem); line-height: 1.45; letter-spacing: -.01em; max-width: 36ch; text-wrap: pretty; }
p { max-width: 62ch; text-wrap: pretty; }
.s-dark p, .s-night p { color: rgba(242, 237, 228, .78); }
.s-dark .lead, .s-night .lead, .s-dark h2, .s-night h2 { color: var(--ivory); }
.s-light p { color: rgba(28, 28, 29, .76); }
.s-light .lead { color: var(--ink); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.1rem; padding: .8rem 1.6rem; border-radius: 999px;
  border: 1.5px solid var(--ivory); background: transparent; color: var(--ivory);
  font-weight: 500; font-size: 1rem; letter-spacing: -.005em; cursor: pointer; white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--ivory); color: var(--ink); }
.btn-solid:hover { background: var(--sand); border-color: var(--sand); }
.btn-line:hover { background: rgba(242, 237, 228, .12); }
.btn-sm { min-height: 2.5rem; padding: .5rem 1.15rem; font-size: .9375rem; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background-color .4s var(--ease), backdrop-filter .4s, border-color .4s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(28, 28, 29, .78); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line-d); }
.header-in { width: min(100% - 2 * var(--gut), 96rem); margin-inline: auto; height: 4.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ivory); }
.brand-mark { width: 2.1rem; height: auto; }
.brand-name { font-weight: 500; letter-spacing: -.02em; font-size: 1.05rem; }
.nav ul { display: flex; gap: clamp(1.2rem, 2.4vw, 2.4rem); }
.nav a { position: relative; font-size: .9375rem; color: rgba(242, 237, 228, .85); padding: .4rem 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .1rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav a:hover, .nav a:focus-visible { color: var(--ivory); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: .6rem; }
.menu-btn { display: none; width: 2.75rem; height: 2.75rem; border: 1.5px solid var(--line-d); border-radius: 50%; background: transparent; position: relative; cursor: pointer; }
.menu-btn span { position: absolute; left: 50%; top: 50%; width: 1.05rem; height: 1.5px; background: var(--ivory); transition: transform .4s var(--ease); }
.menu-btn span:first-child { transform: translate(-50%, -4px); }
.menu-btn span:last-child  { transform: translate(-50%, 3px); }
.menu-open .menu-btn span:first-child { transform: translate(-50%, 0) rotate(45deg); }
.menu-open .menu-btn span:last-child  { transform: translate(-50%, 0) rotate(-45deg); }

@media (max-width: 959px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1; background: var(--ink);
    display: flex; align-items: center; padding: 6rem var(--gut) 3rem;
    opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .site-header { background: var(--ink); }
  .nav ul { flex-direction: column; gap: .4rem; width: 100%; }
  .nav a { display: block; font-size: clamp(2rem, 9vw, 3.2rem); letter-spacing: -.03em; line-height: 1.15; padding: .35rem 0; color: var(--ivory); }
  .nav a::after { display: none; }
  .nav li { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .menu-open .nav li { opacity: 1; transform: none; }
  .menu-open .nav li:nth-child(2) { transition-delay: .05s; } .menu-open .nav li:nth-child(3) { transition-delay: .1s; }
  .menu-open .nav li:nth-child(4) { transition-delay: .15s; } .menu-open .nav li:nth-child(5) { transition-delay: .2s; }
}
.brand-name { white-space: nowrap; }
@media (max-width: 430px) { .site-header .brand-name { display: none; } }

/* ==========================================================================
   HERO — nome grande dietro la figura
   ========================================================================== */
.hero {
  --hh: max(100vh, 600px);
  --H: min(calc(var(--hh) * .88), 155vw, 880px);        /* altezza della figura */
  --front: 9.2rem;                                       /* ingombro di tagline + bottoni */
  position: relative; isolation: isolate; overflow: clip; background: var(--ink); color: var(--ivory);
  height: var(--hh); --p: 0;
}
@supports (height: 100svh) { .hero { --hh: max(100svh, 600px); } }

.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(55% 48% at 50% 46%, rgba(27, 42, 68, .9), rgba(27, 42, 68, 0) 72%),
    linear-gradient(180deg, rgba(28, 28, 29, .55), rgba(28, 28, 29, .1) 40%, rgba(28, 28, 29, .95) 100%),
    url("../img/scanalature-scura.webp") center / cover no-repeat;
  opacity: 1;
}
.hero h1 { position: static; font-size: 1rem; font-weight: 400; }

.hero-name {
  position: absolute; z-index: 1; left: 50%; bottom: calc(var(--H) * .8); width: 100vw;
  text-align: center; white-space: nowrap;
  font-size: min(12.6vw, 15.5rem); line-height: .86; font-weight: 480; letter-spacing: -.05em;
  transform: translate3d(-50%, calc(var(--p) * -9vh), 0);
  pointer-events: none; user-select: none;
  padding-bottom: .08em;
}
.hero-name .w { display: inline-block; padding-inline: .02em; color: transparent;
  background: linear-gradient(180deg, #F2EDE4 8%, rgba(226, 217, 201, .62) 100%); -webkit-background-clip: text; background-clip: text;
  animation: rise 1.1s var(--ease) both; }
.hero-name .w:nth-child(2) { animation-delay: .1s; }

.hero-stage {
  position: absolute; z-index: 2; left: 50%; bottom: 0; height: var(--H); aspect-ratio: 941 / 1434;
  transform: translate3d(-50%, calc(var(--p) * 5vh), 0) scale(calc(1 + var(--p) * .06)); transform-origin: 50% 100%;
  pointer-events: none;
}
.hero-img {
  width: 100%; height: 100%; object-fit: contain; object-position: bottom;
  -webkit-mask-image: linear-gradient(180deg, #000 58%, rgba(0, 0, 0, .55) 80%, transparent 99%);
  mask-image: linear-gradient(180deg, #000 58%, rgba(0, 0, 0, .55) 80%, transparent 99%);
  animation: figure 1.2s var(--ease) both;
}

.hero-role {
  position: absolute; z-index: 4; left: var(--gut); bottom: calc(var(--front) + 1.6rem + var(--gut) * .35);
  font-size: clamp(1.5rem, 1rem + 1.5vw, 2.3rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 400; color: var(--ivory);
  opacity: calc(1 - var(--p) * 1.8);
  animation: fade 1.2s var(--ease) .5s both;
}
.hero-front {
  position: absolute; z-index: 4; left: var(--gut); bottom: calc(var(--gut) * .35 + 1.2rem); max-width: 24rem;
  opacity: calc(1 - var(--p) * 1.8);
  animation: fade 1.2s var(--ease) .65s both;
}
.hero-tag { color: rgba(242, 237, 228, .8); font-size: clamp(1rem, .95rem + .25vw, 1.15rem); line-height: 1.4; margin-bottom: 1.2rem; max-width: 22rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-scroll {
  position: absolute; z-index: 4; right: var(--gut); bottom: calc(var(--gut) * .35 + 1.2rem);
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--stone);
  opacity: calc(1 - var(--p) * 2.4); animation: fade 1.2s var(--ease) .9s both;
}
.hero-scroll i { display: block; width: 1px; height: 3.4rem; background: linear-gradient(var(--stone), transparent); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 100%; background: var(--ivory); animation: drip 2.4s var(--ease) infinite; }

@keyframes rise   { from { opacity: 0; transform: translateY(.35em); filter: blur(14px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes figure { from { opacity: 0; transform: translateY(2.5%) scale(1.03); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes fade   { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drip   { 0% { top: -100%; } 60%, 100% { top: 100%; } }

/* Hero: sotto 1180px la colonna di testo passa al centro in basso */
@media (max-width: 1179px) {
  .hero { --front: 8.6rem; }
  .hero-role { left: 0; right: 0; text-align: center; bottom: calc(var(--front) + 1.4rem + env(safe-area-inset-bottom, 0px)); font-size: clamp(1.25rem, .9rem + 1.6vw, 1.8rem); }
  .hero-front { left: 0; right: 0; max-width: none; text-align: center; padding-inline: var(--gut); bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px)); }
  .hero-tag { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-scroll { display: none; }
  .hero::after { content: ""; position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: calc(var(--front) + 7rem); pointer-events: none;
    background: linear-gradient(180deg, rgba(28, 28, 29, 0), rgba(28, 28, 29, .82) 58%, var(--ink) 100%); }
  .hero-bg { background:
      radial-gradient(70% 45% at 50% 50%, rgba(27, 42, 68, .9), rgba(27, 42, 68, 0) 75%),
      linear-gradient(180deg, rgba(28, 28, 29, .55), rgba(28, 28, 29, .1) 40%, rgba(28, 28, 29, .95) 100%),
      url("../img/scanalature-scura.webp") center / cover no-repeat; }
}
/* Hero: tablet in verticale — il nome sale per restare leggibile */
@media (min-width: 720px) and (max-width: 1179px) and (orientation: portrait) {
  .hero-name { bottom: calc(var(--H) * .93); }
}
/* Hero: telefoni — il nome va su due righe */
@media (max-width: 719px) {
  .hero { --H: min(calc(var(--hh) * .82), 150vw); --front: 8.4rem; }
  .hero-name { font-size: 21.5vw; line-height: .84; bottom: calc(var(--H) * .95); white-space: normal; }
  .hero-name .w { display: block; }
  .hero-role br { display: none; }
  .btn { padding-inline: 1.35rem; }
}
@media (max-width: 479px) {
  .hero-actions .btn { flex: 1 1 0; padding-inline: 1rem; }
}
/* telefoni con schermo basso (es. 360x640, 375x667): figura più piccola, nome sotto l'header */
@media (max-width: 719px) and (max-height: 720px) {
  .hero { --H: min(calc(var(--hh) * .72), 150vw); --front: 7.6rem; }
  .hero-name { font-size: 17.5vw; bottom: calc(var(--H) * .97); }
  .hero-tag { margin-bottom: .9rem; }
}
/* Hero: schermi bassi (telefono in orizzontale, finestre basse) */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { --hh: 560px; }
}
@media (min-width: 1920px) { .hero-name { font-size: 15.5rem; } }
/* Hero desktop: il nome occupa tutta la larghezza tra i margini (come pulsanti e header) e sta più in basso, sotto l'header */
@media (min-width: 1180px) {
  .hero { container-type: inline-size; }
  .hero-name {
    --fs: calc((100vw - 2 * var(--gut)) / var(--name-em, 6.55));
    font-size: var(--fs);
    bottom: auto;
    transform: translate3d(calc(-50% - .031em), calc(var(--p) * -9vh), 0);   /* compensa il bearing del glifo: margini ottici uguali a sx e dx */
    top: max(calc(4.25rem + clamp(2rem, 6vh, 4rem)), calc(var(--hh) - var(--H) * .74 - var(--fs) * .94));
  }
  @supports (width: 1cqw) { .hero-name { --fs: calc((100cqw - 2 * var(--gut)) / var(--name-em, 6.55)); } }
}

/* ==========================================================================
   CHI SONO
   ========================================================================== */
.about { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: end; }
.about-text { display: grid; gap: 1.4rem; align-content: start; }
.about-text h2 { margin-bottom: .6rem; max-width: 14ch; }
.values { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: .8rem; padding-top: 1.4rem; border-top: 1.5px solid var(--line-d); max-width: 34rem;
  font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); }
.about-photo { position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 34rem; margin-inline: auto; overflow: hidden;
  background: #232324 url("../img/scanalature-scura.webp") center / cover no-repeat; }
.about-img { position: absolute; right: 3%; bottom: 0; height: 93%; width: auto;
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 100%); mask-image: linear-gradient(180deg, #000 74%, transparent 100%); }
.about-sign { position: absolute; left: 4%; bottom: 7%; width: 66%; height: auto; opacity: .96; }
@media (min-width: 900px) {
  .about { grid-template-columns: 1.05fr .95fr; }
  .about-photo { margin-inline: 0 0; justify-self: end; }
}

/* ==========================================================================
   COSA FACCIO
   ========================================================================== */
.split { display: grid; gap: 1.6rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.split h2 { max-width: 12ch; }
.split .lead { max-width: 34ch; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; align-items: end; gap: 4rem; } .split .lead { justify-self: end; } }

.pillars { display: grid; gap: 0; border-top: 1.5px solid var(--line-l); }
.pillar { padding: 1.8rem 0 2rem; border-bottom: 1.5px solid var(--line-l); display: grid; gap: .6rem; }
.pillar-n, .aud-n { font-size: .78rem; font-weight: 500; letter-spacing: .2em; color: var(--stone-dk); }
@media (min-width: 768px) {
  .pillars { grid-template-columns: repeat(3, 1fr); border-bottom: 1.5px solid var(--line-l); }
  .pillar { border-bottom: 0; padding: 2.2rem 2rem 2.4rem 0; }
  .pillar + .pillar { padding-left: 2rem; border-left: 1.5px solid var(--line-l); }
}

.services { display: grid; gap: clamp(1.2rem, 3vw, 2rem); margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.service { background: var(--sand); padding: clamp(1.6rem, 3.4vw, 2.8rem); display: grid; gap: 1.3rem; align-content: start; }
.service h3 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem); letter-spacing: -.03em; font-weight: 400; }
.service ul { display: grid; gap: 0; }
.service li { padding: .85rem 0 .85rem 1.7rem; border-top: 1px solid var(--line-l); position: relative; color: var(--ink); }
.service li::before { content: ""; position: absolute; left: 0; top: 1.5rem; width: .8rem; height: 1.5px; background: var(--night); }
@media (min-width: 768px) { .services { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   ESPERIENZA / PARTNER
   ========================================================================== */
.exp { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.exp-text { display: grid; gap: 1.5rem; align-content: start; }
.exp-text h2 { max-width: 14ch; margin-bottom: .4rem; }
.ticks { display: grid; margin-top: .6rem; max-width: 34rem; }
.ticks li { padding: 1rem 0 1rem 1.9rem; border-top: 1.5px solid var(--line-d); position: relative; color: rgba(242, 237, 228, .9); }
.ticks li:last-child { border-bottom: 1.5px solid var(--line-d); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.05rem + .75rem; top: 1.75rem; width: .9rem; height: 1.5px; background: var(--sand); }
.partner {
  position: relative; padding: clamp(1.8rem, 4vw, 3rem); display: grid; gap: 1.6rem; align-content: end; min-height: clamp(20rem, 38vw, 30rem);
  background: linear-gradient(180deg, rgba(27, 42, 68, .3), rgba(27, 42, 68, .88)), url("../img/solai.webp") center / cover no-repeat; border: 1.5px solid var(--line-d);
}
.partner-label { font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--sand); }
.partner-logo { background: var(--ivory); padding: 1.2rem 1.6rem; width: min(100%, 18rem); height: auto; }
.partner-note { font-size: .95rem; color: rgba(242, 237, 228, .9) !important; max-width: 34ch; }
@media (min-width: 900px) { .exp { grid-template-columns: 1.1fr .9fr; } }

/* ==========================================================================
   A CHI MI RIVOLGO
   ========================================================================== */
.audience { display: grid; gap: 1rem; }
.aud { position: relative; padding: clamp(1.6rem, 3vw, 2.4rem); border: 1.5px solid var(--line-l); display: grid; gap: .9rem; align-content: start; min-height: 13rem;
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease); }
.aud:hover { background: var(--ink); border-color: var(--ink); }
.aud:hover h3, .aud:hover p, .aud:hover .aud-n { color: var(--ivory); }
.aud h3 { font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.9rem); letter-spacing: -.03em; font-weight: 400; transition: color .5s var(--ease); }
.aud p, .aud .aud-n { transition: color .5s var(--ease); }
@media (min-width: 720px) { .audience { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1180px) { .audience { grid-template-columns: repeat(4, 1fr); } .aud { min-height: 20rem; } }

/* ==========================================================================
   RECENSIONI
   ========================================================================== */
#recensioni h2 { margin-bottom: clamp(2rem, 5vw, 4rem); max-width: 14ch; }
.reviews { display: grid; gap: 1rem; }
.review { padding: clamp(1.6rem, 3vw, 2.5rem); border: 1.5px solid var(--line-d); display: grid; gap: 1.8rem; align-content: space-between; position: relative; }
.review blockquote p { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); line-height: 1.45; letter-spacing: -.01em; color: var(--ivory); max-width: 44ch; }
.review figcaption { display: grid; gap: .15rem; padding-top: 1.2rem; border-top: 1px solid var(--line-d); }
.review figcaption strong { font-weight: 500; letter-spacing: -.01em; }
.review figcaption span { font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); }
@media (min-width: 768px) { .reviews { grid-template-columns: 1fr 1fr; } }
/* telefoni: le recensioni scorrono in orizzontale */
@media (max-width: 639px) {
  .reviews { display: flex; overflow-x: auto; gap: .9rem; scroll-snap-type: x mandatory; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); padding-bottom: 1rem; scrollbar-width: none; }
  .reviews::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 86%; scroll-snap-align: center; }
}

/* ==========================================================================
   CONTATTI
   ========================================================================== */
.contact .wrap { position: relative; z-index: 1; }
.contact h2 { margin-bottom: 1.6rem; max-width: 16ch; }
.seal { position: absolute; right: -6rem; bottom: -5rem; width: clamp(16rem, 38vw, 34rem); height: auto; opacity: .12; animation: spin 90s linear infinite; pointer-events: none; }
.contact-links { display: grid; gap: 0; margin-top: clamp(2.2rem, 5vw, 3.6rem); border-top: 1.5px solid var(--line-d); }
.big-link { display: flex; flex-direction: column; gap: .35rem; padding: 1.4rem 0; border-bottom: 1.5px solid var(--line-d); transition: padding-left .5s var(--ease), color .3s; }
.big-link small { font-size: .75rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--stone); }
.big-link { container-type: inline-size; }
.big-link span { font-size: clamp(1.6rem, .9rem + 2.4vw, 2.75rem); line-height: 1.1; letter-spacing: -.03em; overflow-wrap: anywhere; }
.big-link span { font-size: min(clamp(1.6rem, .9rem + 2.4vw, 2.75rem), 100cqw / 9.2); }   /* l'email sta sempre su una riga */
.big-link:hover { padding-left: 1rem; color: var(--sand); }
.contact-actions { margin-top: 2.2rem; }
@media (min-width: 900px) { .contact-links { grid-template-columns: 1fr 1fr; border-bottom: 1.5px solid var(--line-d); } .big-link { border-bottom: 0; } .big-link + .big-link { padding-left: 2.4rem; border-left: 1.5px solid var(--line-d); } .big-link:hover { padding-left: 1rem; } .big-link + .big-link:hover { padding-left: 3.4rem; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--ink); color: var(--ivory); padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; border-top: 1.5px solid var(--line-d); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.2rem; padding-bottom: 2rem; }
.footer-role { color: var(--stone); font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line-d); font-size: .875rem; color: var(--stone); }
.footer-bottom p { color: var(--stone); max-width: none; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.footer-bottom a, .linklike { color: var(--stone); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(142, 137, 127, .5); transition: color .3s; }
.footer-bottom a:hover, .linklike:hover { color: var(--ivory); }

/* ==========================================================================
   Animazioni allo scroll (solo con JS attivo)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translate3d(0, 1.6rem, 0); filter: blur(7px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
.curtain { position: relative; }
.js .curtain::after { content: ""; position: absolute; inset: -1px; z-index: 6; background: var(--cur, var(--ink)); transform-origin: 50% 0; transition: transform 1.5s var(--ease); pointer-events: none; }
.js .curtain.in::after { transform: scaleY(0); }
.partner.curtain { --cur: var(--night); }
.js .curtain .about-img { transform: scale(1.08); transition: transform 2.2s var(--ease); }
.js .curtain.in .about-img { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .js .curtain::after { display: none; }
  .hero { --p: 0 !important; }
}

/* ==========================================================================
   Pagine legali / 404
   ========================================================================== */
.page-legal { background: var(--ivory); color: var(--ink); }
.legal-head { background: var(--ink); color: var(--ivory); padding: 8rem 0 3.5rem; }
.legal-head h1 { font-size: clamp(2.2rem, 1.2rem + 4.4vw, 4.2rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 400; max-width: 16ch; }
.legal-head p { color: var(--stone); margin-top: 1rem; font-size: .9rem; }
.legal { padding-block: clamp(2.5rem, 6vw, 5rem); }
.legal .wrap { max-width: 52rem; }
.legal h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); letter-spacing: -.025em; line-height: 1.15; max-width: none; margin: 2.6rem 0 .8rem; color: var(--ink); }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: rgba(28, 28, 29, .85); max-width: none; }
.legal p + p { margin-top: .9rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; margin-top: .7rem; display: grid; gap: .35rem; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--night); }
.table-wrap { overflow-x: auto; margin-top: 1rem; border: 1px solid var(--line-l); }
.legal table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 38rem; }
.legal th, .legal td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line-l); vertical-align: top; }
.legal th { background: var(--sand); font-weight: 500; }
.page-legal .site-header { background: rgba(28, 28, 29, .92); }
.back-home { display: inline-flex; margin-top: 2rem; }
.page-legal .footer { margin-top: 0; }

.nf { min-height: 100svh; display: grid; place-content: center; text-align: center; gap: 1.2rem; padding: 2rem var(--gut); background: var(--ink); }
.nf h1 { font-size: clamp(4rem, 2rem + 14vw, 11rem); line-height: .9; letter-spacing: -.05em; font-weight: 450; }
.nf p { margin-inline: auto; color: rgba(242, 237, 228, .78); }
.nf .btn { justify-self: center; margin-top: .6rem; }

/* ==========================================================================
   Cookie banner e preferenze (iniettati da consent.js)
   ========================================================================== */
.cc { position: fixed; z-index: 120; left: 1rem; bottom: 1rem; width: min(27rem, calc(100% - 2rem)); background: var(--ink); color: var(--ivory);
  border: 1px solid rgba(242, 237, 228, .28); border-radius: 14px; padding: 1.4rem; box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  animation: fade .7s var(--ease) both; }
.cc[hidden], .cc-modal[hidden] { display: none; }
.cc h2 { font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.2; font-weight: 500; margin-bottom: .6rem; max-width: none; color: var(--ivory); }
.cc p { font-size: .875rem; line-height: 1.5; color: rgba(242, 237, 228, .8); max-width: none; }
.cc p a, .cc-modal p a { text-decoration: underline; text-underline-offset: 3px; }
.cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.1rem; }
.cc-actions .btn { min-height: 2.8rem; padding: .6rem 1rem; font-size: .9375rem; }
.cc-actions .cc-custom { grid-column: 1 / -1; }
.cc .btn-solid, .cc-modal .btn-solid { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.cc-modal { position: fixed; inset: 0; z-index: 130; background: rgba(10, 10, 11, .66); display: grid; place-items: center; padding: 1rem; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cc-box { background: var(--ink); color: var(--ivory); border: 1px solid rgba(242, 237, 228, .28); border-radius: 14px; width: min(36rem, 100%); max-height: calc(100svh - 2rem); overflow: auto; padding: clamp(1.3rem, 3vw, 2rem); }
.cc-box h2 { font-size: 1.4rem; letter-spacing: -.025em; font-weight: 500; margin-bottom: .6rem; max-width: none; line-height: 1.15; }
.cc-box p { font-size: .9rem; color: rgba(242, 237, 228, .8); max-width: none; }
.cc-cat { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; padding: 1rem 0; border-top: 1px solid var(--line-d); align-items: start; }
.cc-cat:first-of-type { margin-top: 1.2rem; }
.cc-cat strong { font-weight: 500; }
.cc-cat p { grid-column: 1; font-size: .84rem; }
.cc-switch { position: relative; width: 2.9rem; height: 1.7rem; grid-column: 2; grid-row: 1 / span 2; }
.cc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.cc-switch i { position: absolute; inset: 0; border-radius: 999px; background: #3a3a3c; border: 1.5px solid rgba(242, 237, 228, .35); transition: background-color .3s; }
.cc-switch i::after { content: ""; position: absolute; left: .18rem; top: .18rem; width: 1.04rem; height: 1.04rem; border-radius: 50%; background: var(--ivory); transition: transform .3s var(--ease); }
.cc-switch input:checked + i { background: #5b7aa8; border-color: #5b7aa8; }
.cc-switch input:checked + i::after { transform: translateX(1.2rem); }
.cc-switch input:disabled { cursor: not-allowed; }
.cc-switch input:disabled + i { opacity: .55; }
.cc-switch input:focus-visible + i { outline: 2px solid var(--sand); outline-offset: 3px; }
.cc-box .cc-actions { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); margin-top: 1.2rem; }
@media (max-width: 479px) { .cc { left: .6rem; right: .6rem; bottom: .6rem; width: auto; padding: 1.1rem; } }

/* Dato di esperienza */
.stat { display: flex; align-items: center; gap: 1.2rem; max-width: none; }
.stat strong { font-size: clamp(4.5rem, 3rem + 7vw, 8.5rem); line-height: .85; letter-spacing: -.06em; font-weight: 400; color: var(--ivory); }
.stat span { font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--sand); line-height: 1.7; }
