/* ============================================================
   BIO-PISCINE IN PIETRA NATURALE — Design System (restyle 2026)
   Tema: acqua / pietra. Demo per Fabrizio Piccini (PF Smart System)
   Stack: HTML5 + CSS3 + Vanilla JS — zero dipendenze
   Font: Cormorant Garamond (serif) + Manrope (sans), via Google Fonts
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Palette acqua/pietra */
  --bg:        #F2EEE6;   /* crema freddo */
  --bg-alt:    #E4EAE6;   /* verde-pietra chiaro (sezioni alternate) */
  --ink:       #10211D;   /* verde acqua profondo / footer */
  --text:      #1C201E;   /* testo principale */
  --text-2:    #56544E;   /* testo secondario */
  --text-3:    #36342E;   /* testo liste */
  --accent:    #1E544C;   /* verde acqua */
  --eyebrow:   #3E7A6F;   /* acqua tenue / pietra */
  --cta:       #B5912F;   /* oro */
  --cta-2:     #C9A748;   /* oro chiaro (hover / accenti) */
  --cream:     #F2EEE6;   /* bianco caldo su fondi scuri */

  /* Bordi e superfici */
  --border:    1px solid rgba(28,32,30,0.12);
  --shadow:    0 18px 50px rgba(16,33,29,0.16);
  --shadow-lg: 0 30px 70px rgba(16,33,29,0.22);
  --radius-sm: 5px;
  --radius:    6px;

  /* Tipografia */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Manrope', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  /* Scala tipografica fluida */
  --t-13: 0.72rem;
  --t-17: 1.0625rem;
  --t-21: clamp(1.15rem, 1.6vw, 1.3rem);
  --t-28: clamp(1.5rem, 2.5vw, 1.95rem);
  --t-38: clamp(2.1rem, 3.8vw, 3.2rem);
  --t-52: clamp(2.4rem, 5vw, 4rem);
  --t-72: clamp(2.7rem, 6.6vw, 5.6rem);

  /* Spacing 8px system */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-6: 48px;
  --s-8: 64px;
  --s-12: clamp(88px, 11vw, 150px);
  --s-16: 128px;

  --maxw: 1280px;
  --nav-h: 84px;
  --nav-h-solid: 70px;

  /* Alias retro-compatibili (usati dagli stili inline del configuratore realizza.html) */
  --white:    var(--cream);
  --accent-2: var(--eyebrow);
  --cta-dark: #9C7F0A;
  --slate:    #6B7280;
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 var(--s-3);
  letter-spacing: -0.012em;
}
h1 { font-size: var(--t-72); line-height: 1.04; }
h2 { font-size: var(--t-38); }
h3 { font-size: var(--t-21); }

p { margin: 0 0 var(--s-2); max-width: 64ch; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--eyebrow); }

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

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

/* Label piccole maiuscole */
.eyebrow {
  display: inline-block;
  font-size: var(--t-13);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--eyebrow);
  font-weight: 700;
  margin-bottom: 20px;
}

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 40px;
}

.section { padding-block: var(--s-12); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: var(--s-8); }

.lead { font-size: var(--t-21); color: var(--text-2); }

/* ---------- 4. Accessibilità: focus & skip ---------- */
:focus-visible {
  outline: 3px solid var(--cta);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--cream);
  padding: var(--s-1) var(--s-2);
  z-index: 1000;
}
.skip-link:focus { left: var(--s-2); top: var(--s-2); color: var(--cream); }

/* ---------- 5. Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 16px 36px;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .4s cubic-bezier(.16,.7,.3,1), background-color .3s ease, color .3s ease, box-shadow .4s ease;
  text-align: center;
}

.btn--cta {
  background: var(--cta);
  color: var(--text);
  border-color: var(--cta);
  box-shadow: 0 14px 40px rgba(120,92,20,.4);
}
.btn--cta:hover {
  background: var(--cta-2);
  color: var(--text);
  transform: translateY(-3px);
  box-shadow: 0 20px 52px rgba(120,92,20,.5);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(28,32,30,0.28);
}
.btn--ghost:hover { background: var(--text); color: var(--bg); transform: translateY(-3px); }

.btn--light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(242,238,230,0.55);
}
.btn--light:hover { background: var(--cream); color: var(--text); transform: translateY(-3px); }

.btn--wa {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
  font-size: .95rem;
  padding: 13px 22px;
}
.btn--wa:hover { background: #1FB457; color: #fff; }

.btn--lg { min-height: 56px; padding: 19px 44px; font-size: 1.02rem; }

/* ---------- 6. Navbar (trasparente su hero -> solida allo scroll) ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.16);
  transition: background .4s ease, border-color .4s ease, height .4s ease, backdrop-filter .4s ease;
}
.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.75rem;
  letter-spacing: 0.005em;
  color: var(--cream);
  white-space: nowrap;
  transition: color .4s ease;
}
.brand__mark {
  flex: none;
  width: 1.55em;
  height: 1.55em;
  background: currentColor;
  -webkit-mask: url(/immagini/logo/logo-icon.svg) center / contain no-repeat;
          mask: url(/immagini/logo/logo-icon.svg) center / contain no-repeat;
}
.brand .b1 { font-weight: 500; }
.brand .b2 { color: var(--cta-2); transition: color .4s ease; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav__links a {
  font-size: var(--t-13);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cream);
  white-space: nowrap;
  transition: color .4s ease, opacity .25s ease;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { opacity: .62; color: var(--cream); }
.nav__links .nav__cross a { color: var(--cta-2); font-weight: 700; }
.nav__links .nav__cross a:hover { opacity: .7; color: var(--cta-2); }

.nav.is-solid {
  background: rgba(242,238,230,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(28,32,30,0.1);
  height: var(--nav-h-solid);
}
.nav.is-solid .brand,
.nav.is-solid .nav__links a { color: var(--text); }
.nav.is-solid .brand .b2 { color: var(--accent); }
.nav.is-solid .nav__links a:hover,
.nav.is-solid .nav__links a[aria-current="page"] { color: var(--accent); opacity: 1; }
.nav.is-solid .nav__links .nav__cross a { color: var(--eyebrow); }

/* Pagine senza hero scuro: nav solida fin da subito (classe sul body) */
.nav-light .nav { position: sticky; }
.nav-light .nav:not(.is-solid) {
  background: rgba(242,238,230,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(28,32,30,0.1);
}
.nav-light .brand,
.nav-light .nav__links a { color: var(--text); }
.nav-light .brand .b2 { color: var(--accent); }
.nav-light .nav__links a:hover,
.nav-light .nav__links a[aria-current="page"] { color: var(--accent); opacity: 1; }
.nav-light .nav__links .nav__cross a { color: var(--eyebrow); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--cream);
  position: relative;
  transition: transform .2s ease, opacity .2s ease, background .4s ease;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute; left: 0;
  width: 24px; height: 2px;
  background: var(--cream);
  transition: transform .2s ease, background .4s ease;
}
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after  { top: 7px; }
.nav.is-solid .nav__toggle span,
.nav.is-solid .nav__toggle span::before,
.nav.is-solid .nav__toggle span::after,
.nav-light .nav__toggle span,
.nav-light .nav__toggle span::before,
.nav-light .nav__toggle span::after { background: var(--text); }
.nav__toggle[aria-expanded="true"] span { background: transparent !important; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 7b. Hero scroll-driven (frame sequence) ---------- */
.hero-scroll { position: relative; height: 320vh; background: var(--ink); }
.hero-scroll__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hero-scroll__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  background: var(--ink); }
.hero-scroll__overlay { position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 50% 52%, rgba(10,24,21,0) 42%, rgba(10,24,21,.42) 100%),
    linear-gradient(180deg, rgba(10,24,21,.46) 0%, rgba(10,24,21,.2) 38%, rgba(10,24,21,.64) 100%); }
.hero-scroll__content { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--cream); text-align: center; padding-inline: 32px; }
.hero-scroll__content .hero-line {
  width: 54px; height: 1px; background: var(--cta-2); margin: 0 auto 30px;
}
.hero-scroll__content h1 {
  color: var(--cream); max-width: 1000px; margin: 0 auto;
  text-shadow: 0 2px 40px rgba(0,0,0,.3);
}
.hero-scroll__content .hero__sub {
  max-width: 44ch; margin: 30px auto 0;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.6;
  color: rgba(242,238,230,0.9);
}
.hero-scroll__content .btn { margin-top: 42px; }
.hero-scroll__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hero-cue {
  position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(242,238,230,0.7);
}
.hero-cue span {
  font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 600;
}
.hero-cue svg { animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: translateY(0); opacity:.5; } 50% { transform: translateY(7px); opacity:1; } }

@media (prefers-reduced-motion: reduce) {
  .hero-scroll { height: 100vh; }
}

/* ---------- 8. Sezioni 2 colonne ---------- */
.split {
  display: grid;
  /* min(340px,100%): desktop identico, ma su telefono la colonna cappa alla
     larghezza del container invece di forzare 340px (niente overflow). */
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}
.split--reverse .split__media { order: -1; }

.media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.media img { width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.16,.7,.3,1); }
.media:hover img { transform: scale(1.05); }

.media--framed::after {
  content: "";
  position: absolute; right: -14px; top: -14px;
  width: 120px; height: 120px;
  border-right: 1px solid rgba(62,122,111,0.55);
  border-top: 1px solid rgba(62,122,111,0.55);
  pointer-events: none;
}

/* ---------- 9. Liste punti (check acqua) ---------- */
.checklist { list-style: none; margin: var(--s-4) 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 16px; }
.checklist li {
  position: relative;
  padding-left: 34px;
  font-size: 1.05rem;
  color: var(--text-3);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231E544C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- 10. Griglia features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-3);
  margin-top: 56px;
}
.feature {
  background: var(--accent);
  color: var(--cream);
  border: none;
  border-radius: var(--radius-sm);
  padding: 40px 34px;
  transition: transform .5s cubic-bezier(.16,.7,.3,1), box-shadow .5s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: 0 28px 60px rgba(16,33,29,0.3); }
.feature__icon {
  width: 34px; height: 34px;
  color: var(--cta-2);
  margin-bottom: 22px;
}
.feature h3 { color: var(--cream); font-size: 1.6rem; margin: 0 0 10px; }
.feature p  { font-size: 1rem; color: rgba(242,238,230,0.82); margin: 0; line-height: 1.6; }

/* ---------- 11. Banda full-width (lead gen / cross-sell) ---------- */
.band {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  text-align: center;
  background: var(--accent);
}
.band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.band__overlay { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,52,47,.78), rgba(10,24,21,.82)); }
.band__content { position: relative; z-index: 2; padding-block: var(--s-12);
  max-width: 820px; margin-inline: auto; padding-inline: 32px; }
.band h2 { color: var(--cream); font-size: var(--t-52); margin: 0 auto; }
.band p  { color: rgba(242,238,230,0.86); margin: 24px auto 0; font-size: 1.18rem; max-width: 50ch; }
.band .btn { margin-top: 38px; }

.band--cross .band__overlay { background: linear-gradient(180deg, rgba(10,24,21,.62), rgba(10,24,21,.76)); }

/* Lead-gen: lentissimo Ken Burns sullo sfondo (non su band--cross). Niente
   background-attachment:fixed (rotto su iOS). Fermo dalla regola globale reduced-motion. */
@keyframes bandKenBurns { from { transform: scale(1); } to { transform: scale(1.06); } }
.band:not(.band--cross) .band__bg {
  animation: bandKenBurns 14s ease-in-out infinite alternate;
  will-change: transform;
}

/* ---------- 12. Citazione ---------- */
.quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-28);
  line-height: 1.4;
  color: var(--accent);
  border-left: 2px solid var(--cta);
  padding-left: 26px;
  margin: 36px 0 0;
  max-width: 46ch;
}

/* ---------- 13. Galleria scroll-snap ---------- */
.gallery-wrap { position: relative; }
.gallery {
  display: flex; gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* Lo swipe della galleria non deve innescare il back-swipe del browser su iOS. */
  overscroll-behavior-x: contain;
  padding: 6px 2px 14px;
}
/* Contatore posizione "3 / 6" sotto la strip (aggiornato dal JS, rAF-throttled). */
.gallery-counter { display: none; }
@media (hover:none){
  .gallery-counter {
    display: block; text-align: center; margin-top: 10px;
    font-size: var(--t-13); letter-spacing: .14em; color: var(--text-2);
    font-variant-numeric: tabular-nums;
  }
  .gallery-counter b { color: var(--accent); font-weight: 700; }
}
.gallery::-webkit-scrollbar { height: 0; }
.gallery__item {
  flex: 0 0 clamp(280px, 42vw, 560px);
  margin: 0;
  scroll-snap-align: center;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(16,33,29,0.18);
  background: linear-gradient(135deg, #4A5568 0%, #1A3A3A 100%);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: none; cursor: pointer; z-index: 5;
  background: rgba(255,255,255,0.92); color: var(--accent);
  box-shadow: 0 8px 24px rgba(16,33,29,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; line-height: 1;
  transition: background-color .25s ease, transform .25s ease;
}
.gallery__btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.gallery__btn--prev { left: 10px; }
.gallery__btn--next { right: 10px; }

/* ---------- 14. Valori (chi siamo) ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.value {
  background: var(--accent);
  color: var(--cream);
  border-radius: var(--radius-sm);
  padding: 44px 24px;
  text-align: center;
}
.value h3 { color: var(--cream); font-size: 1.7rem; margin: 0; }

.philosophy {
  font-family: var(--serif);
  font-size: var(--t-28);
  line-height: 1.5;
  text-align: center;
  max-width: 24ch;
  margin: 0 auto;
  color: var(--text);
}

.prose { max-width: none; }
.prose.split p { max-width: 60ch; }

/* ---------- 15. Blog ---------- */
.page-hero {
  padding-block: calc(var(--nav-h) + var(--s-8)) var(--s-6);
  text-align: center;
}
.page-hero--img {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  text-align: center;
  background: var(--ink);
  overflow: hidden;
}
.page-hero--img .band__bg { z-index: 0; }
.page-hero--img .band__overlay {
  background: linear-gradient(180deg, rgba(10,24,21,.46) 0%, rgba(10,24,21,.62) 100%); }
.page-hero--img .page-hero__inner { position: relative; z-index: 2; padding: 32px; }
.page-hero--img h1 { position: relative; z-index: 2; color: var(--cream); }
.page-hero--img p { color: rgba(242,238,230,0.88); margin-inline: auto; }

.posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 34px;
}
.post {
  background: var(--cream);
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .5s cubic-bezier(.16,.7,.3,1), box-shadow .5s ease;
}
.post:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(16,33,29,0.16); }
.post__thumb { aspect-ratio: 16 / 10; overflow: hidden; flex: none; }
.post__thumb img { width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s cubic-bezier(.16,.7,.3,1); }
.post:hover .post__thumb img { transform: scale(1.06); }
.post__body { padding: 28px 28px 32px; }
.post__date { font-size: var(--t-13); letter-spacing: 0.16em; text-transform: uppercase; color: var(--eyebrow); font-weight: 700; }
.post h3 { font-size: 1.62rem; margin: 10px 0 12px; }
.post p { font-size: 1rem; color: var(--text-2); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 16. Contatti ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-3);
  margin: var(--s-6) auto;
  max-width: 820px;
}
.contact-meta { margin-top: var(--s-4); color: var(--text-2); text-align: center; }

/* contatti — layout centrato (no form) */
.contact-section { padding-block: clamp(96px, 13vw, 170px); }
.contact-wrap {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.contact-intro { display: flex; flex-direction: column; align-items: center; }
.contact-intro h1 { margin: 0 0 16px; }
.contact-intro .lead { max-width: 480px; font-size: 1.2rem; }
.contact-divider { width: 48px; height: 1px; background: rgba(28,32,30,0.2); margin: 40px 0; }
.contact-actions {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: center; width: 100%;
}
.contact-actions .btn { padding: 20px 32px; font-size: 1.08rem; }
.contact-actions .btn--wa { box-shadow: 0 12px 32px rgba(37,211,102,.25); }
.contact-where { margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.contact-where .eyebrow { margin-bottom: 4px; }
.contact-where__name { margin: 0; font-size: 1.05rem; color: var(--text-3); font-weight: 600; }
.contact-where__addr { margin: 0; font-size: 1rem; color: var(--text-2); }

/* form legacy (compatibilità con il configuratore) */
.form {
  background: var(--cream);
  border: var(--border);
  border-radius: var(--radius-sm);
  padding: var(--s-6);
  max-width: 640px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: var(--s-3); }
.field label {
  display: block;
  font-size: var(--t-13);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: var(--s-1);
  color: var(--text);
}
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 1.0625rem;
  color: var(--text);
  background: var(--bg);
  border: var(--border);
  border-radius: var(--radius-sm);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field textarea:focus { outline: 3px solid var(--cta); outline-offset: 1px; border-color: var(--accent); }
.req { color: var(--eyebrow); }

/* ---------- 17. Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(242,238,230,0.66);
  padding-block: clamp(28px, 4vw, 44px) 24px;
  font-size: 0.94rem;
}
.footer a { color: rgba(242,238,230,0.66); transition: color .25s ease; }
.footer a:hover { color: var(--cream); }
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-6);
}
.footer h4 {
  font-family: var(--sans);
  font-size: var(--t-13);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 700;
  margin: 0 12px 0 0;
  display: inline;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: row; flex-wrap: wrap; gap: 16px; align-items: center; }
.footer__logo {
  display: block;
  width: auto;
  height: 44px;
  margin-top: 28px;
  opacity: .95;
}
.footer__logo + .footer__legal { margin-top: 12px; }
.footer__legal {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(242,238,230,0.12);
  font-size: .82rem;
  color: rgba(242,238,230,0.5);
  letter-spacing: 0.02em;
}

/* ---------- 18. Placeholder immagini mancanti ---------- */
.img-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 220px;
  padding: var(--s-3);
  text-align: center;
  color: rgba(242,238,230,0.92);
  font-family: var(--sans);
  font-size: var(--t-13);
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #4A5568 0%, #1A3A3A 100%);
}

/* ---------- 19. Scroll-reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(.16,.7,.3,1), transform 1s cubic-bezier(.16,.7,.3,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 20. Responsive ---------- */
@media (max-width: 900px) {
  .nav__inner { padding-inline: 24px; }
  .container { padding-inline: 24px; }
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(242,238,230,0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(28,32,30,0.1);
    padding: var(--s-2) 24px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 14px 0; width: 100%; color: var(--text); }
  .nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--accent); opacity: 1; }
  .nav__links .nav__cross a { color: var(--eyebrow); }
  .values { grid-template-columns: 1fr 1fr; }
}
/* Frecce ‹ › solo dove c'è un mouse: su touch l'interfaccia è lo swipe. */
@media (hover:none){ .gallery__btn { display: none; } }

@media (max-width: 600px) {
  .container { padding-inline: 20px; }
  .values { grid-template-columns: 1fr; }
  .band__content, .hero-scroll__content { padding-inline: 24px; }
  /* Peek: la foto successiva sbircia dal bordo → è l'affordance dello swipe. */
  .gallery__item { flex-basis: 85%; }

  /* Densità: ritmo verticale da telefono, non desktop. */
  .section { padding-block: var(--s-8); }
  /* Band lead-gen: CTA "pieno" sotto il pollice invece di padding enorme. */
  .band .btn { width: min(100%, 340px); }
  .band__content { padding-block: var(--s-8); }
}

/* ===== Mobile hero interim: statico su nero, nessun frame scaricato ===== */
@media (max-width: 768px){
  .hero-scroll { height: 100vh; height: 100svh; background: var(--ink); }
  /* Sticky child a svh come il parent, altrimenti la parte bassa sovrasta la
     sezione dopo e taglia "Scopri" con la barra indirizzi aperta. */
  .hero-scroll__sticky { position: static; height: 100vh; height: 100svh; }
  .hero-scroll__canvas { display: none; }
  .hero-scroll__overlay { display: none; }
  .hero-cue { bottom: calc(24px + env(safe-area-inset-bottom)); }

  /* Checklist: reveal a stagger per riga (transform/opacity, Safari-safe).
     La classe .is-revealed la mette l'IntersectionObserver in main.js. */
  .checklist li {
    opacity: 0; transform: translateY(14px);
    transition: opacity .5s cubic-bezier(.16,.7,.3,1), transform .5s cubic-bezier(.16,.7,.3,1);
  }
  .checklist.is-revealed li { opacity: 1; transform: none; }
  .checklist.is-revealed li:nth-child(1) { transition-delay: 0ms; }
  .checklist.is-revealed li:nth-child(2) { transition-delay: 80ms; }
  .checklist.is-revealed li:nth-child(3) { transition-delay: 160ms; }
  .checklist.is-revealed li:nth-child(4) { transition-delay: 240ms; }
  .checklist.is-revealed li:nth-child(5) { transition-delay: 320ms; }
}

/* ---------- 21. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .checklist li { opacity: 1 !important; transform: none !important; }
  .gallery { scroll-behavior: auto; }
}

/* ============================================================
   Cookie consent banner
============================================================ */
.cc-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; padding: 14px; transform: translateY(130%); transition: transform .35s ease; }
.cc-banner.is-in { transform: translateY(0); }
.cc-inner { max-width: 960px; margin: 0 auto; background: var(--white, #fff); color: var(--text, #211C16); border: 1px solid rgba(0,0,0,.08); border-radius: var(--radius, 12px); box-shadow: var(--shadow-lg, 0 20px 50px rgba(0,0,0,.25)); padding: 16px 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.cc-text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2, #5E564C); flex: 1 1 320px; }
.cc-text a { color: var(--cta, #B5912F); text-decoration: underline; }
.cc-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cc-btn { font-family: inherit; font-weight: 700; font-size: 14px; letter-spacing: .02em; padding: 11px 20px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.cc-btn--accept { background: var(--cta, #B5912F); color: #fff; }
.cc-btn--accept:hover { background: var(--cta-dark, #9a7a26); transform: translateY(-1px); }
.cc-btn--ghost { background: transparent; color: var(--text, #211C16); border-color: rgba(0,0,0,.22); }
.cc-btn--ghost:hover { border-color: var(--text, #211C16); }
.cc-links a { color: inherit; text-decoration: underline; opacity: .85; }
@media (max-width: 540px) {
  .cc-inner { flex-direction: column; align-items: stretch; text-align: left; }
  .cc-actions { justify-content: stretch; }
  .cc-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .cc-banner { transition: none; } }
