/* ============================================================
   viaposillipo.it · Pausilypon S.r.l.
   Stile editoriale mediterraneo · panna + petrolio + terracotta
   ============================================================ */

:root {
  /* ─── Palette base — toni di intonaco, sabbia, mare ─── */
  --bone:         #faf5ec;     /* panna principale (background) */
  --bone-warm:    #fefbf4;     /* bianco caldo per card */
  --bone-soft:    #efe6d4;     /* sabbia per sezioni alternate */
  --bone-deep:    #e3d6bd;     /* sabbia più calda per dettagli */
  --line:         rgba(57, 81, 99, 0.12);
  --line-strong:  rgba(57, 81, 99, 0.22);

  /* ─── Inchiostro: blu petrolio polveroso ─── */
  --ink:          #39516c;     /* testo principale */
  --ink-soft:     #5e7488;     /* testo secondario */
  --ink-mute:     rgba(57, 81, 99, 0.66);
  --ink-faint:    rgba(57, 81, 99, 0.42);

  /* ─── Accent caldo: terracotta mediterranea ─── */
  --terra:        #c97f5f;     /* CTA, accent forte */
  --terra-soft:   #d99c7e;     /* hover, highlight */
  --terra-deep:   #b06b4f;     /* contrasto su pannelli */
  --terra-glow:   rgba(217, 156, 126, 0.22);

  /* ─── Mare: azzurro polveroso ─── */
  --sea:          #88a8b5;
  --sea-deep:     #5e8595;
  --sea-mist:     #c8d5db;

  /* ─── Verde salvia (opzionale) ─── */
  --sage:         #a8b89c;

  /* ─── Oro caldo (dettagli premium minimi) ─── */
  --gold:         #c9a76a;
  --gold-soft:    #d8b985;

  /* ─── Stati ─── */
  --warn:         #b65a4a;
  --ok:           #7c9f7e;
  --info:         #6f93a3;

  /* ─── Tipografia ─── */
  --ff-display:   'Cormorant', 'Cormorant Garamond', Georgia, serif;
  --ff-body:      'Manrope', system-ui, -apple-system, Segoe UI, sans-serif;

  /* ─── Layout ─── */
  --container:    72rem;
  --gutter:       clamp(1.25rem, 4vw, 2.5rem);
  --radius:       2px;
  --shadow-sm:    0 4px 14px -4px rgba(57, 81, 99, 0.10);
  --shadow-md:    0 12px 40px -16px rgba(57, 81, 99, 0.18);
  --shadow-lg:    0 30px 80px -30px rgba(57, 81, 99, 0.28);
}

/* ─────────────────────────── Reset essenziale ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--terra-deep); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ink); }
button { font: inherit; cursor: pointer; }
ul, ol { padding-left: 1.1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* Skip link & a11y */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--terra); color: var(--bone-warm);
  padding: 8px 16px; z-index: 999; font-weight: 600;
}
.skip-link:focus { top: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

::selection { background: var(--terra-soft); color: var(--bone-warm); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─────────────────────────── Header ─────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 245, 236, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--terra) 0%, var(--terra-soft) 100%);
  color: var(--bone-warm);
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  border-radius: 50%;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 14px -4px var(--terra-glow);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.brand__sub {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 2px;
}
.site-nav {
  display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.75rem);
  font-size: 14px; letter-spacing: 0.04em;
}
.site-nav a { color: var(--ink-soft); }
.site-nav a:hover { color: var(--terra-deep); }
.site-nav__cta {
  color: var(--bone-warm) !important;
  background: var(--terra);
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background .2s, transform .2s;
}
.site-nav__cta:hover { background: var(--terra-deep); transform: translateY(-1px); }
@media (max-width: 640px) {
  .brand__sub { display: none; }
  .site-nav a:not(.site-nav__cta) { display: none; }
}

/* ─────────────────────────── Hero ─────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(620px, 92vh, 880px);
  padding: clamp(4rem, 10vh, 7rem) 0 clamp(3rem, 8vh, 5rem);
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--bone);
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.hero__gradient {
  position: absolute; inset: 0;
  background:
    /* sole caldo in alto a destra */
    radial-gradient(ellipse 90% 70% at 85% 10%, rgba(217, 156, 126, 0.32) 0%, transparent 55%),
    /* riflesso mare in basso a sinistra */
    radial-gradient(ellipse 70% 50% at 15% 95%, rgba(136, 168, 181, 0.22) 0%, transparent 60%),
    /* base panna sfumata */
    linear-gradient(170deg, #fefbf4 0%, #faf5ec 50%, #efe6d4 100%);
}
.hero__grain {
  position: absolute; inset: 0;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.3  0 0 0 0 0.4  0 0 0 0 0.5  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero__inner {
  position: relative; z-index: 1;
  max-width: 60rem;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 clamp(1.5rem, 4vh, 2.5rem);
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--terra-deep);
  font-weight: 600;
}
.hero__eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--terra);
  box-shadow: 0 0 0 4px var(--terra-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--terra-glow); }
  50%      { box-shadow: 0 0 0 9px rgba(217, 156, 126, 0); }
}
.hero__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(1.5rem, 4vh, 2.25rem);
  color: var(--ink);
}
.hero__title em {
  font-style: italic;
  color: var(--terra-deep);
  font-weight: 300;
}
.hero__lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  max-width: 38rem;
  color: var(--ink-soft);
  margin: 0 0 clamp(2rem, 5vh, 3rem);
}
.hero__lede strong { color: var(--ink); font-weight: 600; }
.hero__counter { margin-bottom: clamp(2rem, 5vh, 3rem); }
.counter-card {
  display: inline-flex; align-items: center; gap: 1.25rem;
  padding: 18px 28px;
  background: var(--bone-warm);
  border: 1px solid var(--line);
  border-left: 3px solid var(--terra);
  font-family: var(--ff-display);
  box-shadow: var(--shadow-sm);
}
.counter-card__num {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 400;
  color: var(--terra-deep);
  line-height: 1;
  font-feature-settings: "lnum" 1;
  font-style: italic;
}
.counter-card__label {
  font-family: var(--ff-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.55;
  font-weight: 500;
  border-left: 1px solid var(--line);
  padding-left: 1.25rem;
}
.counter-card__label strong {
  color: var(--ink);
  font-weight: 600;
}
.hero__cta {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: clamp(1.5rem, 4vh, 2rem);
}
.hero__meta {
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin: 0;
}
.hero__scroll {
  position: absolute;
  bottom: clamp(1rem, 4vh, 2rem); right: var(--gutter);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--ink-mute);
}
.hero__scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(180deg, var(--terra), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; }
  50%      { transform: scaleY(1); transform-origin: top; }
}
@media (max-width: 640px) { .hero__scroll { display: none; } }

/* ─────────────────────────── Buttons ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn--gold {
  background: var(--terra);
  color: var(--bone-warm);
  border-color: var(--terra);
  box-shadow: 0 4px 14px -4px var(--terra-glow);
}
.btn--gold:hover {
  background: var(--terra-deep);
  color: var(--bone-warm);
  border-color: var(--terra-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(176, 107, 79, 0.45);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--terra);
  color: var(--terra-deep);
  transform: translateY(-2px);
}
.btn--block { width: 100%; justify-content: center; }
.btn__arrow { transition: transform .25s; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ─────────────────────────── Section heads ─────────────────────────── */
.section-head { max-width: 44rem; margin: 0 0 clamp(2.5rem, 6vh, 4rem); }
.section-head__kicker {
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--terra-deep); margin: 0 0 1rem;
  font-weight: 600;
}
.section-head__title {
  font-family: var(--ff-display); font-weight: 400;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 1.25rem;
  color: var(--ink);
}
.section-head__title em { font-style: italic; color: var(--terra-deep); font-weight: 300; }
.section-head__sub {
  font-size: 17px; line-height: 1.6; color: var(--ink-soft);
  margin: 0; max-width: 36rem;
}

/* ─────────────────────────── Details / Features ─────────────────────────── */
.details {
  padding: clamp(4rem, 10vh, 7rem) 0;
  border-top: 1px solid var(--line);
  background: var(--bone);
  position: relative;
}
.features {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.feature {
  position: relative;
  padding: 2.5rem 1.75rem 2.25rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background .35s ease;
}
.feature:hover { background: var(--bone-warm); }
.feature__num {
  display: block;
  font-family: var(--ff-display); font-style: italic;
  color: var(--terra);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  font-weight: 400;
}
.feature__title {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1.15;
  margin: 0 0 0.85rem;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.feature__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
@media (min-width: 880px) {
  .feature:nth-child(3n) { border-right: none; }
}
@media (min-width: 560px) and (max-width: 879px) {
  .feature:nth-child(2n) { border-right: none; }
}
@media (max-width: 559px) {
  .feature { border-right: none; }
}

/* ─────────────────────────── Location ─────────────────────────── */
.location {
  padding: clamp(4rem, 10vh, 7rem) 0;
  background:
    radial-gradient(ellipse 70% 60% at 90% 0%, rgba(136, 168, 181, 0.22) 0%, transparent 55%),
    var(--bone-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.location__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 880px) {
  .location__grid { grid-template-columns: 1fr; }
}
.location__data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2rem;
  margin: 2.5rem 0 0;
  padding: 2rem 0 0;
  border-top: 1px solid var(--line);
}
.location__data > div { margin: 0; }
.location__data dt {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--terra-deep);
  margin: 0 0 0.6rem;
  font-weight: 600;
}
.location__data dd {
  margin: 0;
  font-family: var(--ff-display);
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 400;
}
.location__map {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-strong);
  background: var(--bone-warm);
  box-shadow: var(--shadow-md);
}
.location__map svg { width: 100%; height: auto; display: block; }
.location__map figcaption {
  padding: 12px 16px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  font-weight: 500;
}

/* ─────────────────────────── Waitlist ─────────────────────────── */
.waitlist {
  padding: clamp(4rem, 10vh, 7rem) 0;
  background: var(--bone);
}
.waitlist__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 880px) {
  .waitlist__grid { grid-template-columns: 1fr; }
}
.waitlist__bullets {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: flex; flex-direction: column; gap: 0.85rem;
}
.waitlist__bullets li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 15px;
  color: var(--ink-soft);
}
.waitlist__bullets li::before {
  content: ''; position: absolute;
  left: 0; top: 0.7em;
  width: 18px; height: 1px;
  background: var(--terra);
}

/* Form */
.waitlist__form-wrap {
  background: var(--bone-warm);
  border: 1px solid var(--line);
  border-top: 3px solid var(--terra);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
}
.form { display: flex; flex-direction: column; gap: 1.5rem; }
.form__row { display: flex; flex-direction: column; gap: 1.25rem; }
.form__row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 560px) { .form__row--2 { grid-template-columns: 1fr; } }
.form__field { display: flex; flex-direction: column; gap: 0.5rem; }
.form__field label {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}
.form__field label small {
  text-transform: none; letter-spacing: 0.02em;
  color: var(--ink-faint);
  font-weight: 400;
}
.form__field label span[aria-hidden="true"] { color: var(--terra); }
.form__field input,
.form__field select,
.form__field textarea {
  font: inherit;
  font-size: 16px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 10px 0;
  border-radius: 0;
  transition: border-color .2s;
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-bottom-color: var(--terra);
}
.form__field input[aria-invalid="true"],
.form__field textarea[aria-invalid="true"] {
  border-bottom-color: var(--warn);
}
.form__field input::placeholder,
.form__field textarea::placeholder { color: var(--ink-faint); }
.form__field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-mute) 50%),
                    linear-gradient(135deg, var(--ink-mute) 50%, transparent 50%);
  background-position: calc(100% - 14px) center, calc(100% - 9px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
}
.form__field textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.form__field .err {
  color: var(--warn);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
}
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* Consensi */
.form__consents {
  border: 0; padding: 0; margin: 0.5rem 0 0;
  display: flex; flex-direction: column; gap: 1rem;
}
.checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  cursor: pointer;
}
.checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  margin-top: 2px;
  border: 1px solid var(--line-strong);
  background: var(--bone-warm);
  cursor: pointer;
  position: relative;
  border-radius: var(--radius);
  transition: border-color .2s, background .2s;
  flex-shrink: 0;
}
.checkbox input[type="checkbox"]:checked {
  background: var(--terra);
  border-color: var(--terra);
}
.checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid var(--bone-warm);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 2px;
}
.checkbox a { color: var(--terra-deep); text-decoration: underline; text-underline-offset: 2px; }
.checkbox a:hover { color: var(--ink); }
.checkbox .req { color: var(--terra); font-weight: 600; }
.checkbox.is-invalid input[type="checkbox"] { border-color: var(--warn); }

.form__legal {
  font-size: 11.5px;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  margin: 0.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  border-left: 3px solid;
  font-size: 14px;
  background: var(--bone-warm);
}
.alert__title {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 0.35rem;
  color: var(--ink);
}
.alert--success { border-color: var(--ok);   background: rgba(124, 159, 126, 0.08); }
.alert--error   { border-color: var(--warn); background: rgba(182, 90, 74, 0.08); }
.alert--info    { border-color: var(--info); background: rgba(111, 147, 163, 0.10); }

/* ─────────────────────────── Footer ─────────────────────────── */
.site-footer {
  padding: clamp(3rem, 8vh, 5rem) 0 2rem;
  border-top: 1px solid var(--line);
  background: var(--bone-soft);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 2rem;
  align-items: start;
  font-size: 14px;
  color: var(--ink-soft);
}
@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__col--meta { grid-column: 1 / -1; padding-top: 1rem; border-top: 1px solid var(--line); }
}
.site-footer__brand {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.5rem;
  letter-spacing: 0.01em;
}
.site-footer__addr { margin: 0; line-height: 1.6; font-size: 13px; }
.site-footer__heading {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--terra-deep);
  margin: 0 0 0.85rem;
  font-weight: 600;
}
.site-footer__col p { margin: 0; line-height: 1.7; }
.site-footer__col a { color: var(--ink-soft); }
.site-footer__col a:hover { color: var(--terra-deep); }
.site-footer__year {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  margin: 0;
}

/* ─────────────────────────── Cookie banner ─────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 1rem; left: 1rem; right: 1rem;
  z-index: 80;
  background: var(--bone-warm);
  border: 1px solid var(--line);
  border-left: 3px solid var(--terra);
  box-shadow: var(--shadow-md);
  max-width: 520px;
  margin-left: auto;
  border-radius: var(--radius);
}
.cookie-banner__inner {
  padding: 1.1rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.85rem;
}
.cookie-banner__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.cookie-banner__btn {
  align-self: flex-start;
  background: var(--terra);
  color: var(--bone-warm);
  border: 0;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: background .2s;
}
.cookie-banner__btn:hover { background: var(--terra-deep); }

/* ─────────────────────────── Reveal on scroll ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────── Pagine legali ─────────────────────────── */
.legal {
  padding: clamp(4rem, 10vh, 6rem) 0;
  border-top: 1px solid var(--line);
  background: var(--bone);
}
.legal__inner { max-width: 48rem; margin: 0 auto; }
.legal__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  line-height: 1.05;
  margin: 0.5rem 0 1.25rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.legal__lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 0.5rem;
}
.legal__updated {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra-deep);
  margin: 0 0 2.5rem;
  font-weight: 600;
}
.legal h2 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 1.7rem;
  margin: 2.5rem 0 0.85rem;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.legal h3 {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra-deep);
  margin: 1.75rem 0 0.5rem;
}
.legal p, .legal ul, .legal ol { color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; }
.legal strong { color: var(--ink); }
.legal__back {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

/* ─────────────────────────── Email offuscate ─────────────────────────── */
/* Pre-decodifica JS: rendering del fallback con '@'/'.' come entity numeriche */
.mail__fallback {
  color: inherit;
  font-style: normal;
}
/* Post-decodifica JS: link mailto reale, eredita color/underline dai genitori */
.mail__link {
  color: var(--terra-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.mail__link:hover {
  color: var(--ink);
  border-bottom-color: currentColor;
}
/* Nei contesti footer/legal usa il colore del contesto */
.site-footer__col .mail__link { color: var(--ink-soft); }
.site-footer__col .mail__link:hover { color: var(--terra-deep); }
.legal .mail__link { color: var(--terra-deep); }

/* ─────────────────────────── Print ─────────────────────────── */
@media print {
  .site-header, .cookie-banner, .hero__scroll, .form__consents, .btn { display: none !important; }
  body { background: white; color: black; }
}

/* ─────────────────────────── Reduced motion ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
