/* =========================================================================
   Casa Momi — foglio di stile unico
   Font di sistema: nessuna richiesta esterna, nessun cookie, caricamento
   istantaneo (e nessun problema GDPR con i font ospitati da terzi).
   ========================================================================= */

:root {
  --bg: #fbf8f3;
  --bg-alt: #f3ece2;
  --surface: #ffffff;
  --ink: #22201d;
  --ink-soft: #5d574e;
  --line: #e4dacb;
  --accent: #2f6b62;
  --accent-dark: #23514a;
  --accent-soft: #e6efeb;
  --gold: #a97f47;

  --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --header-h: 76px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(34, 32, 29, 0.04), 0 12px 32px -12px rgba(34, 32, 29, 0.16);
  --shadow-lg: 0 2px 4px rgba(34, 32, 29, 0.05), 0 28px 60px -24px rgba(34, 32, 29, 0.28);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ------------------------------------------------------------------ reset */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 1.3rem + 3.4vw, 3.85rem); }
h2 { font-size: clamp(1.65rem, 1.15rem + 2vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; }

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

::selection { background: var(--accent); color: #fff; }

/* ------------------------------------------------------------ primitives */

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

.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-lead { margin-top: 0.9rem; color: var(--ink-soft); font-size: 1.08rem; }

.kicker {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker-light { color: rgba(255, 255, 255, 0.85); }

.lead { max-width: 62ch; margin-top: 1.1rem; font-size: 1.15rem; color: var(--ink-soft); }

.center { text-align: center; }

.stack > * + * { margin-top: 1.1rem; }
.stack > .section-head + * { margin-top: 0; }

.icon { width: 1.4em; height: 1.4em; flex: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.8rem 1.2rem;
  background: var(--accent);
  color: #fff;
}
.skip-link:focus { left: 0.6rem; top: 0.6rem; }

/* ------------------------------------------------------------------ bottoni */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }

.btn-outline { border-color: var(--line); background: transparent; color: var(--ink); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); border-color: #fff; }

.btn-light { background: #fff; color: var(--accent-dark); }
.btn-light:hover { background: var(--bg-alt); }

.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
.btn-block { display: flex; width: 100%; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.link-arrow .icon { width: 1.15em; height: 1.15em; transition: transform 0.25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ------------------------------------------------------------------ header */

/* Lo stato dell'header è deciso da site.js, che aggiunge o toglie
   .is-transparent: succede solo sulla home, in cima alla pagina e con il menu
   chiuso. Così le voci del menu mobile non ereditano mai il testo bianco. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
body:not(.page-home) main { padding-top: var(--header-h); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark { width: 34px; height: 34px; color: var(--accent); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  letter-spacing: 0.015em;
}
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.18rem;
}

.site-nav { display: flex; align-items: center; gap: 2rem; }
.nav-list { display: flex; align-items: center; gap: 1.75rem; }
.nav-list a {
  position: relative;
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
  padding-block: 0.4rem;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }

.nav-side { display: flex; align-items: center; gap: 1.1rem; }

.lang-switch { display: flex; align-items: center; gap: 0.15rem; }
.lang-link {
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-decoration: none;
}
.lang-link:hover { background: var(--accent-soft); color: var(--accent-dark); }
.lang-link.is-current { color: var(--ink); background: var(--bg-alt); }

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Header trasparente sopra la foto dell'hero */
.site-header.is-transparent {
  background: transparent;
  border-bottom-color: transparent;
}
.site-header.is-transparent .brand,
.site-header.is-transparent .brand-mark,
.site-header.is-transparent .nav-list a,
.site-header.is-transparent .nav-toggle { color: #fff; }
.site-header.is-transparent .brand-sub { color: rgba(255, 255, 255, 0.72); }
.site-header.is-transparent .nav-toggle { border-color: rgba(255, 255, 255, 0.45); }
.site-header.is-transparent .lang-link { color: rgba(255, 255, 255, 0.75); }
.site-header.is-transparent .lang-link.is-current {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

/* --------------------------------------------------------------------- hero */

.hero { position: relative; }

.hero-frame {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 26, 24, 0.55) 0%,
    rgba(20, 26, 24, 0.18) 34%,
    rgba(20, 26, 24, 0.62) 78%,
    rgba(20, 26, 24, 0.78) 100%
  );
}

.hero-body {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: clamp(3rem, 8vw, 5.5rem);
  color: #fff;
}
.hero-body h1 { max-width: 16ch; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25); }
.hero-lead {
  max-width: 52ch;
  margin: 1.25rem 0 2rem;
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
}

.hero-badges { background: var(--accent); color: #fff; }
.hero-badges ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem clamp(1.2rem, 4vw, 3rem);
  padding-block: 1.05rem;
}
.hero-badges li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.hero-badges .icon { width: 1.05em; height: 1.05em; opacity: 0.75; }

/* ------------------------------------------------------------------ griglie */

.grid-2 {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-2-media { grid-template-columns: 1.05fr 0.95fr; }
  .grid-2-text { grid-template-columns: 1.35fr 0.65fr; align-items: start; }
}

.media-frame {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.media-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 899px) {
  .grid-2-reverse .media-frame { order: 2; }
}

/* -------------------------------------------------------------- caratteristiche */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}
.feature {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.97rem;
  font-weight: 500;
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.feature:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature-icon { display: grid; place-items: center; color: var(--accent); }
.feature-icon .icon { width: 1.55rem; height: 1.55rem; }

/* ------------------------------------------------------------------ distanze */

.distance-list { border-top: 1px solid var(--line); }
.distance-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.78rem 0;
  border-bottom: 1px solid var(--line);
}
.distance-label { color: var(--ink-soft); }
.distance-value { font-weight: 600; white-space: nowrap; }
.distance-list-full li { padding: 0.95rem 0; }

/* ------------------------------------------------------------------- schede */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-media { display: block; overflow: hidden; }
.card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.card:hover .card-media img { transform: scale(1.04); }

/* Quando c'è un solo appartamento la scheda diventa orizzontale */
@media (min-width: 820px) {
  .card-grid > .card:only-child { flex-direction: row; align-items: stretch; }
  .card-grid > .card:only-child .card-media { flex: 0 0 48%; }
  .card-grid > .card:only-child .card-media img { height: 100%; aspect-ratio: auto; }
  .card-grid > .card:only-child .card-body { justify-content: center; }
}

.card-body { display: flex; flex-direction: column; gap: 0.9rem; padding: clamp(1.4rem, 3vw, 2rem); flex: 1; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card-tagline { margin: -0.5rem 0 0; color: var(--gold); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.03em; }
.card-text { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}

.facts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.15rem; margin: 0; }
.facts li { display: flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; color: var(--ink-soft); }
.facts .icon { width: 1.15rem; height: 1.15rem; color: var(--accent); }

.price { margin: 0; font-family: var(--font-display); font-size: 1.22rem; color: var(--ink); }

/* ------------------------------------------------------------------ galleria */

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 0.75rem;
}
.gallery-strip-item { display: block; border-radius: var(--radius); overflow: hidden; }
.gallery-strip-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-strip-item:hover img { transform: scale(1.05); }
.gallery-strip + .center { margin-top: 2rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 0.85rem;
}
.gallery-item {
  padding: 0;
  border: 0;
  background: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }

/* La prima foto fa da mosaico: 2 colonne x 2 righe */
@media (min-width: 700px) {
  .gallery-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}

/* ----------------------------------------------------------------- lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(18, 20, 19, 0.94);
}
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; text-align: center; }
.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  margin-inline: auto;
  border-radius: 8px;
  object-fit: contain;
}
.lightbox figcaption { margin-top: 1rem; color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }
.lightbox-nav, .lightbox-close {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}
.lightbox-nav:hover, .lightbox-close:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox-close { position: absolute; top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }

/* -------------------------------------------------------------- intestazioni */

.page-head {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
body:not(.page-home) main:has(> .page-head:first-child) { padding-top: 0; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.back-link:hover { color: var(--accent); }
.back-link .icon { width: 1.1em; height: 1.1em; }

.page-head-apartment .facts { margin-top: 1.5rem; gap: 0.6rem 1.6rem; }
.page-head-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ------------------------------------------------------------------ servizi */

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}
.amenity-group h3 {
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.amenity-list { display: grid; gap: 0.7rem; }
.amenity-list li { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.97rem; }
.amenity-list .icon { width: 1.3rem; height: 1.3rem; margin-top: 0.15rem; color: var(--accent); }

/* -------------------------------------------------------------------- regole */

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.15rem;
}
.rule {
  display: flex;
  gap: 1rem;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.rule-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.rule-icon .icon { width: 1.4rem; height: 1.4rem; }
.rule h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.rule p { margin: 0; font-size: 0.94rem; color: var(--ink-soft); }

/* ------------------------------------------------------------- card laterale */

.side-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.side-card > * + * { margin-top: 1rem; }
.side-card h2 { font-size: 1.45rem; }
.side-card p { color: var(--ink-soft); font-size: 0.95rem; }
.side-contacts { display: grid; gap: 0.6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.side-contacts li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.94rem; }
.side-contacts .icon { width: 1.2rem; height: 1.2rem; color: var(--accent); }
.side-contacts a { text-decoration: none; }
.side-contacts a:hover { color: var(--accent); }
@media (min-width: 900px) { .side-card { position: sticky; top: calc(var(--header-h) + 1.5rem); } }

/* ----------------------------------------------------------------- contatti */

.contact-list { display: grid; gap: 1.25rem; }
.contact-list li { display: flex; gap: 1rem; }
.contact-icon {
  display: grid;
  place-items: center;
  width: 2.7rem; height: 2.7rem;
  flex: none;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.contact-icon .icon { width: 1.35rem; height: 1.35rem; }
.contact-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.15rem;
}
.contact-list a { text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--accent); }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.map-frame iframe { width: 100%; height: clamp(300px, 42vw, 420px); border: 0; }

.here-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.15rem;
}
.here-card {
  padding: clamp(1.4rem, 3vw, 1.9rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.here-icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; margin-bottom: 1rem; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.here-icon .icon { width: 1.5rem; height: 1.5rem; }
.here-card h3 { margin-bottom: 0.5rem; }
.here-card p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

/* --------------------------------------------------------- pagine di testo */

.prose-updated {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.prose-section + .prose-section { margin-top: clamp(2.25rem, 4vw, 3rem); }
.prose h2 {
  font-size: clamp(1.3rem, 1.15rem + 0.7vw, 1.65rem);
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); }

.prose-list { display: grid; gap: 0.85rem; margin-top: 1.1rem; }
.prose-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-soft);
}
.prose-list li::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ------------------------------------------------------------------ cta band */

.cta-band { background: var(--accent); color: #fff; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-block: clamp(2.75rem, 6vw, 4.25rem);
}
.cta-inner h2 { max-width: 20ch; }
.cta-inner p { margin: 0.7rem 0 0; color: rgba(255, 255, 255, 0.82); max-width: 46ch; }

/* --------------------------------------------------------- pulsante WhatsApp

   È un semplice collegamento a wa.me: nessuno script di terze parti, nessun
   cookie, quindi nessun consenso da chiedere.

   Il verde è più scuro del #25D366 del marchio: su quello il testo bianco
   avrebbe un contrasto di 1,98:1, illeggibile. Questo arriva a 5,2:1 e si
   accorda anche meglio con il verde ottanio del sito.                       */

:root {
  --whatsapp: #0b7d45;
  --whatsapp-dark: #096539;
}

.whatsapp-fab {
  position: fixed;
  z-index: 40;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 60, 35, 0.28), 0 1px 3px rgba(15, 60, 35, 0.2);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background-color 0.22s var(--ease);
}
.whatsapp-fab .icon { width: 1.5rem; height: 1.5rem; }
.whatsapp-fab:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 60, 35, 0.32), 0 1px 3px rgba(15, 60, 35, 0.2);
}
.whatsapp-fab:active { transform: translateY(0); }

/* Su schermi stretti resta il solo simbolo, per non coprire i contenuti */
@media (max-width: 560px) {
  .whatsapp-fab { padding: 0.9rem; }
  .whatsapp-fab-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

.side-contacts .is-whatsapp, .contact-icon.is-whatsapp { color: var(--whatsapp); }
.contact-icon.is-whatsapp { background: #e6f6ec; }

/* ------------------------------------------------------------------- footer */

.site-footer { background: #211f1c; color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.footer-brand p { margin-top: 1rem; max-width: 34ch; }
.brand-footer { color: #fff; }
.brand-footer .brand-mark { color: #fff; }
.footer-col h2 {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.1rem;
}
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-col .btn-outline { margin-top: 1rem; border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.footer-col .btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }
.footer-langs { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 1.4rem; font-size: 0.85rem; }
.footer-langs a { text-decoration: none; }
.footer-langs .is-current { color: #fff; font-weight: 600; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  flex-wrap: wrap;
  /* spazio in basso perché il pulsante WhatsApp non copra il link alla privacy */
  padding-block: 1.4rem clamp(4.5rem, 6vw, 5.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 1.2rem; }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: #fff; }

/* ------------------------------------------------------------------- mobile */

@media (max-width: 899px) {
  .nav-toggle { display: grid; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.25rem var(--gutter) 2rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .site-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
    color: var(--ink);
  }
  .nav-list a::after { display: none; }

  .nav-side { flex-direction: column-reverse; align-items: stretch; gap: 1.25rem; margin-top: 1.5rem; }
  .nav-side .btn { width: 100%; }
  .lang-switch { justify-content: center; }
  .lang-link { font-size: 0.85rem; padding: 0.4rem 0.7rem; }

  .hero-frame { min-height: min(82vh, 640px); }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .brand-sub { display: none; }
}

/* --------------------------------------------------------- preferenze utente */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header, .cta-band, .lightbox, .hero-badges { display: none; }
  body { background: #fff; }
}
