/* ==========================================================
   La casa dei caprioli — stile
   Palette: avorio, cotto, oliva, limone
   ========================================================== */

:root {
  --ivory: #f6f0e6;
  --ivory-2: #efe5d5;
  --paper: #fffdf9;
  --terracotta: #b0532c;
  --terracotta-dark: #8f4021;
  --olive: #5d6b3a;
  --olive-dark: #2f3520;
  --lemon: #e2b93b;
  --ink: #2b241e;
  --ink-soft: #5e544a;
  --line: rgba(43, 36, 30, .12);

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 40px -22px rgba(43, 36, 30, .45);
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.55rem; }
p  { margin: 0 0 1em; text-wrap: pretty; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 960px; }

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: .9em;
}

:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .9em 1.6em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-small { padding: .6em 1.2em; font-size: .88rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(246, 240, 230, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark svg { width: 28px; height: 28px; }
.brand-mark ellipse { fill: var(--lemon); }
.brand-mark path { fill: #9bab64; }
.is-scrolled .brand-mark path, .menu-open .brand-mark path { fill: var(--olive); }
.brand-text { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
@media (max-width: 480px) { .brand-text { font-size: 1.2rem; } }

.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a {
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch { display: flex; border: 1px solid currentColor; border-radius: 999px; padding: 2px; opacity: .9; }
.lang-switch button {
  border: 0;
  background: transparent;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 4px 9px;
  border-radius: 999px;
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--ivory); }
.site-header:not(.is-scrolled):not(.menu-open) .lang-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); }
/* tre lingue (IT/EN/PL): sui telefoni stringiamo un po' l'header */
@media (max-width: 480px) {
  .header-inner { gap: 10px; }
  .header-actions { gap: 4px; }
  .lang-switch button { padding: 4px 7px; }
}

.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; padding: 0; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  /* backdrop-filter rende l'header il riferimento dei figli "fixed": lo togliamo a menu aperto */
  .site-header.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ivory); }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ivory);
    color: var(--ink);
    padding: 8px var(--gutter) 24px;
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.3);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .menu-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; font-family: var(--font-serif); }
  .main-nav a::after { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  z-index: -2;
  animation: hero-zoom 18s var(--ease) both;
}
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-img { animation: none; } }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(25, 20, 15, .55) 0%, rgba(25, 20, 15, .15) 55%, rgba(25, 20, 15, 0) 75%),
    linear-gradient(180deg, rgba(25, 20, 15, .55) 0%, rgba(25, 20, 15, 0) 28%),
    linear-gradient(0deg, rgba(25, 20, 15, .78) 0%, rgba(25, 20, 15, .25) 55%, rgba(25, 20, 15, 0) 75%);
}
.hero-content { padding-bottom: clamp(72px, 12vh, 130px); padding-top: calc(var(--header-h) + 40px); }
.hero .eyebrow { color: var(--lemon); }
.hero h1, .hero p { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero h1 { max-width: 14ch; margin-bottom: .35em; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 46ch; opacity: .92; margin-bottom: 1.8em; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255,255,255,.7);
  border-radius: 20px;
}
.scroll-hint span {
  position: absolute;
  top: 8px; left: 50%;
  width: 3px; height: 8px;
  margin-left: -1.5px;
  background: #fff;
  border-radius: 2px;
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 600px) { .scroll-hint { display: none; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 11vw, 140px); }
.section-tinted { background: var(--ivory-2); }
.section-dark { background: var(--olive-dark); color: #f3ede2; }
.section-dark .eyebrow { color: var(--lemon); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-lead { color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Split (La casa) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.split-text p { color: var(--ink-soft); }
.section-dark .split-text p { color: rgba(243, 237, 226, .8); }
.split-media { position: relative; margin: 0 0 40px; }
.split-media > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.split-media-inset {
  position: absolute;
  margin: 0;
  width: 34%;
  left: -8%;
  bottom: -40px;
  border: 6px solid var(--ivory);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split-media-inset img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.facts {
  list-style: none;
  padding: 0;
  margin: 2em 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  border-top: 1px solid var(--line);
  padding-top: 1.5em;
}
.facts li { display: flex; flex-direction: column; }
.facts strong { font-family: var(--font-serif); font-size: 2.4rem; line-height: 1; color: var(--terracotta); font-weight: 600; }
.facts span { font-size: .9rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .split-media-inset { left: auto; right: 12px; width: 32%; bottom: -32px; }
}

/* ---------- Spaces ---------- */
.spaces { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.space {
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 0 var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.space:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.space img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.space-body { padding: 22px 24px 26px; }
.space-body h3 { margin-bottom: .3em; }
.space-body p { color: var(--ink-soft); font-size: .97rem; margin: 0; }
@media (max-width: 900px) { .spaces { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .spaces { grid-template-columns: 1fr; } }

/* ---------- Amenities ---------- */
.amenities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.amenities li {
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 26px 22px;
  font-weight: 500;
}
.amenities svg { width: 30px; height: 30px; fill: none; stroke: var(--olive); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .amenities { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .amenities { grid-template-columns: repeat(2, 1fr); } .amenities li { padding: 20px 16px; } }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -20px 0 32px; }
.filter {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: .9rem;
  font-weight: 500;
  transition: background .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

.gallery { columns: 3 280px; column-gap: 14px; }
.gallery-item {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: none;
  border-radius: var(--radius);
  overflow: hidden;
  break-inside: avoid;
  position: relative;
}
.gallery-item img { width: 100%; height: auto; transition: transform .6s var(--ease), filter .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item[hidden] { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 16, 12, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 64px;
  animation: fade .25s var(--ease);
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-height: 100%; }
.lb-figure img { max-width: 100%; max-height: calc(100svh - 140px); object-fit: contain; border-radius: 6px; }
.lb-figure figcaption { color: rgba(255,255,255,.75); font-size: .92rem; text-align: center; }
.lb-btn {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.1);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; translate: 0 -50%; }
.lb-next { right: 14px; top: 50%; translate: 0 -50%; }
@media (max-width: 600px) {
  .lightbox { padding: 56px 8px 80px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; translate: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

/* ---------- Video ---------- */
.video-section { padding-top: 0; background: var(--ivory-2); }
.video-section .section-head { text-align: center; margin-inline: auto; }
.video-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Places ---------- */
.places { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-bottom: 48px; }
.place { border-top: 2px solid var(--terracotta); padding-top: 18px; }
.place h3 { font-size: 1.4rem; }
.place p { color: var(--ink-soft); font-size: .97rem; margin: 0; }
@media (max-width: 900px) { .places { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .places { grid-template-columns: 1fr; } }

.map-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.map-card iframe { width: 100%; height: 380px; border: 0; filter: saturate(.7) sepia(.15); }
.map-note { padding: 18px 24px; margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Il nostro olio ---------- */
.split-oil { grid-template-columns: .9fr 1fr; }
.oil-media > img { aspect-ratio: 4 / 5; }
.oil-media { max-width: 520px; }
.oil-media .oil-bottle { left: auto; right: -12%; bottom: -36px; width: 26%; background: #e9e4dd; }
.oil-media .oil-bottle img { aspect-ratio: 619 / 1010; object-fit: cover; }
.oil-notes { list-style: none; padding: 0; margin: 1.6em 0 2em; display: grid; gap: 10px; }
.oil-notes li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 500; }
.oil-notes li::before { content: ""; width: 10px; height: 14px; flex: none; border-radius: 50%; background: var(--olive); transform: rotate(-30deg); }
@media (max-width: 900px) {
  .split-oil { grid-template-columns: 1fr; }
  .oil-media .oil-bottle { right: 12px; width: 28%; }
}

/* ---------- Contact ---------- */
.split-contact { align-items: start; grid-template-columns: 1fr 1.15fr; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8em; }

.host {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 2.2em;
  padding-top: 1.8em;
  border-top: 1px solid rgba(255,255,255,.14);
}
.host p { margin: 0; }
.host-avatar {
  flex: none;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lemon);
  color: var(--olive-dark);
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
}
.host-label { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.host-name { font-family: var(--font-serif); font-size: 1.5rem; color: #fff; line-height: 1.2; }
.host-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .95rem; }
.host-links a { color: var(--lemon); text-decoration: none; overflow-wrap: anywhere; }
.host-links a:hover { text-decoration: underline; }

.booking-form {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.5vw, 36px);
  display: grid;
  gap: 16px;
}
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; font-size: .85rem; font-weight: 500; letter-spacing: .02em; }
.field span { opacity: .8; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: #fff;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .2s, background .2s;
  color-scheme: dark;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lemon); background: rgba(0,0,0,.28); }
.field textarea { resize: vertical; min-height: 90px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.form-error { color: #ffb4a0; margin: 0; font-size: .92rem; }
.form-note { font-size: .82rem; opacity: .65; margin: 0; }

/* Calendario disponibilità */
.avail { display: grid; gap: 14px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.12); }
.avail[hidden] { display: none; }
.avail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.avail-title { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; margin: 0; }
.avail-nav { display: flex; gap: 8px; }
.avail-nav button {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); background: transparent; color: inherit;
  font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.avail-nav button:hover:not(:disabled) { background: rgba(255,255,255,.1); }
.avail-nav button:disabled { opacity: .3; cursor: default; }
.avail-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.avail-month-title { margin: 0 0 8px; text-align: center; font-weight: 600; text-transform: capitalize; }
.avail-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.avail-wd { text-align: center; font-size: .72rem; text-transform: uppercase; opacity: .55; padding-bottom: 2px; }
.avail-day {
  aspect-ratio: 1; padding: 0; border: 0; border-radius: 8px;
  background: rgba(255,255,255,.1); color: inherit; font: inherit; font-size: .88rem; cursor: pointer;
}
.avail-day:hover:not(:disabled) { background: rgba(255,255,255,.22); }
.avail-day:focus-visible { outline: 2px solid var(--lemon); outline-offset: 1px; }
.avail-day:disabled { cursor: default; }
.avail-day.is-past { background: transparent; opacity: .28; }
.avail-day.is-busy { background: rgba(176,83,44,.3); color: rgba(243,237,226,.5); text-decoration: line-through; }
.avail-day.is-range { background: rgba(226,185,59,.32); opacity: 1; }
.avail-day.is-start, .avail-day.is-end { background: var(--lemon); color: var(--ink); font-weight: 700; opacity: 1; text-decoration: none; }
.avail-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: .82rem; opacity: .8; }
.avail-legend li { display: flex; align-items: center; gap: 7px; }
.avail-legend .sw { width: 14px; height: 14px; border-radius: 4px; }
.sw-free { background: rgba(255,255,255,.2); }
.sw-busy { background: rgba(176,83,44,.55); }
.sw-sel { background: var(--lemon); }
.avail-hint { margin: 0; font-size: .85rem; opacity: .7; }

@media (max-width: 900px) { .split-contact { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form-actions .btn { width: 100%; } .contact-links .btn { flex: 1 1 auto; } }

/* ---------- Footer ---------- */
.site-footer { background: #23281a; color: rgba(243, 237, 226, .7); padding: 40px 0; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer-inner p { margin: 0; }
.footer-brand { font-family: var(--font-serif); font-size: 1.5rem; color: #f3ede2; }
.footer-meta { text-align: right; }
@media (max-width: 600px) { .footer-meta { text-align: left; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.form-note a { color: var(--lemon); }

/* Valori da completare/verificare: evidenziati finché non vengono sostituiti */
mark.todo { background: rgba(226, 185, 59, .35); color: inherit; padding: 0 4px; border-radius: 3px; }

/* ---------- Mappa caricata su richiesta ---------- */
.map-consent {
  height: 380px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(circle at 30% 40%, rgba(93, 107, 58, .18), transparent 55%),
    radial-gradient(circle at 70% 65%, rgba(176, 83, 44, .14), transparent 50%),
    var(--ivory-2);
}
.map-consent p { margin: 0; max-width: 46ch; color: var(--ink-soft); font-size: .92rem; }
.map-consent .btn-ghost { color: var(--ink); }
.map-consent .btn-ghost:hover { background: var(--ink); color: var(--ivory); }

/* ---------- Pagine legali ---------- */
.legal-page .site-header { position: sticky; }
.back-link { font-size: .92rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.back-link:hover { text-decoration: underline; }
.legal-page .header-actions { margin-left: auto; }
@media (max-width: 480px) { .legal-page .brand-text { display: none; } }

.legal { padding-block: clamp(48px, 7vw, 90px); }
.legal article { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.legal h2 { font-size: 1.6rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal strong { color: var(--ink); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }
.legal a { color: var(--terracotta); }
.legal-updated { font-size: .9rem; border-bottom: 1px solid var(--line); padding-bottom: 1.4em; }
.legal-summary { background: var(--paper); border-left: 3px solid var(--olive); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 1.5em 0; }
.legal-summary p { margin: 0; }
.legal-table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .94rem; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal-table th { font-weight: 600; color: var(--ink); background: var(--ivory-2); }
.legal-table td { color: var(--ink-soft); }
.legal code { font-size: .9em; background: var(--ivory-2); padding: 1px 5px; border-radius: 4px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
