/* ============================================================
   ANIME & ALI — Agriturismo Maneggio
   Stylesheet principale — 100% locale, zero cookie, zero CDN
   ============================================================ */

/* ─── RESET & BASE ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* ── Palette esclusivamente dai colori del logo ── */
  /* Navy blu  →  rimpiazza il verde come colore base */
  --verde:       #1E3D70;   /* navy medio  (logo) */
  --verde-scuro: #0F2040;   /* navy scuro  (logo) */
  --verde-light: #2E5EA8;   /* navy chiaro (logo) */
  /* Teal →  accento principale */
  --terra:       #004D62;   /* teal scuro  (logo) */
  --oro:         #006080;   /* teal        (logo) */
  --oro-light:   #007EA0;   /* teal chiaro (logo) */
  /* Wine/borgogna →  accento secondario */
  --wine:        #7A1D5A;   /* wine scuro  (logo) */
  --wine-light:  #A02870;   /* wine chiaro (logo) */

  --crema:       #F7F1E4;   /* beige caldo principale */
  --crema-dark:  #EDE5D0;   /* beige scuro per sezioni alternate */
  --bianco:      #FFFFFF;
  --grigio:      #6B5E4E;   /* grigio-bruno, in armonia col beige */
  --scuro:       #1A1208;   /* quasi-nero caldo */

  --font-serif:  Georgia, 'Times New Roman', 'Palatino Linotype', serif;
  --font-sans:   -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --ombra-sm:    0 2px 8px rgba(0,0,0,0.12);
  --ombra-md:    0 6px 24px rgba(0,0,0,0.16);
  --ombra-lg:    0 12px 48px rgba(0,0,0,0.20);

  --raggio:      8px;
  --raggio-lg:   16px;

  --transizione: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px; /* Compensa navbar fissa su tutti i browser */
}

/* Offset per navbar fissa: sezioni non si nascondono sotto il menu */
section[id] {
  scroll-margin-top: 80px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--crema);
  color: var(--scuro);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transizione);
}

/* ─── TIPOGRAFIA ─── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.3;
  color: var(--verde-scuro);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin-bottom: 0.6rem; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.55rem); }
h4 { font-size: 1rem; font-weight: 700; }

p {
  margin-bottom: 1.1rem;
  color: #3A3A3A;
  font-size: 1.02rem;
  line-height: 1.8;
}
p:last-child { margin-bottom: 0; }

/* Sottotitoli sezione più grandi e leggibili */
.section-header .sottotitolo {
  font-size: 1.1rem !important;
  color: #555 !important;
  line-height: 1.7;
  max-width: 640px;
  margin: 0.6rem auto 0;
}

.section--dark p { color: rgba(255,255,255,0.82); }
.section--dark .sottotitolo { color: rgba(255,255,255,0.68) !important; }

/* ─── UTILITY ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 4.5rem 0;
}

.section--dark {
  background-color: var(--verde-scuro);
  color: var(--crema);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--oro-light);
}

.section--crema {
  background-color: var(--crema-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header .sottotitolo {
  font-size: 1.05rem;
  color: var(--grigio);
  max-width: 640px;
  margin: 0 auto;
}

.section--dark .section-header .sottotitolo {
  color: rgba(255,255,255,0.65);
}

.linea-decorativa {
  width: 60px;
  height: 3px;
  /* Teal → wine: usa entrambi i colori del logo */
  background: linear-gradient(90deg, #006080, #7A1D5A);
  margin: 1.2rem auto 0;
  border-radius: 2px;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transizione);
  border: 2px solid transparent;
}

.btn--primario {
  background: var(--oro);
  color: var(--bianco);
  border-color: var(--oro);
}

.btn--primario:hover {
  background: var(--terra);
  border-color: var(--terra);
  transform: translateY(-2px);
  box-shadow: var(--ombra-md);
}

.btn--bordato {
  background: transparent;
  color: var(--bianco);
  border-color: var(--bianco);
}

.btn--bordato:hover {
  background: var(--bianco);
  color: var(--verde-scuro);
  transform: translateY(-2px);
}

/* ─── NAVBAR ─── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: all var(--transizione);
}

#navbar.scrolled {
  background: rgba(0, 72, 92, 0.91);   /* teal brand — leggibile ma non opaco */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 0.7rem 0;
  box-shadow: 0 4px 28px rgba(0, 60, 80, 0.28);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--bianco);
}

.navbar-logo img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #7A1D5A; /* wine dal logo */
  object-fit: cover;
  transition: transform var(--transizione);
}

.navbar-logo:hover img {
  transform: rotate(5deg) scale(1.05);
}

.navbar-logo-testo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.navbar-logo-testo strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.navbar-logo-testo span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oro-light);
}

.navbar-location {
  font-size: 0.62rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45) !important;
  margin-top: 1px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.2rem;
}

.navbar-nav a {
  color: rgba(255,255,255,0.88);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all var(--transizione);
}

.navbar-nav a:hover {
  color: var(--oro-light);
  background: rgba(255,255,255,0.08);
}

.navbar-destra {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  background: rgba(255,255,255,0.12);
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
}

.lang-switcher button {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.75);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all var(--transizione);
}

.lang-switcher button.attivo {
  background: var(--oro);
  color: var(--bianco);
  border-radius: 50px;
}

.lang-switcher button:hover:not(.attivo) {
  color: var(--bianco);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--bianco);
  border-radius: 2px;
  transition: all var(--transizione);
}

.hamburger.aperto span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.aperto span:nth-child(2) {
  opacity: 0;
}
.hamburger.aperto span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── HERO SLIDER ─── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  /* Taglio obliquo sul fondo */
  clip-path: polygon(0 0, 100% 0, 100% 91%, 0 100%);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  /* Oversized per dare spazio al pan senza mostrare i bordi */
  inset: -5% -3%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2.5s ease-in-out;
  /* Pan diagonale invece di zoom: evita il blur da upscale */
  animation: none;
}

.hero-slide.attivo {
  opacity: 1;
  animation: panDiag 6s ease-in-out forwards;
}

.hero-slide.attivo.pan-inv {
  animation: panDiagInv 6s ease-in-out forwards;
}

@keyframes panDiag {
  0%   { transform: translate(0%,   0%); }
  100% { transform: translate(-3%, -2%); }
}

@keyframes panDiagInv {
  0%   { transform: translate(-3%, -2%); }
  100% { transform: translate(0%,   0%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Sfumatura leggera: solo a sinistra per leggere il testo */
  background:
    linear-gradient(
      to right,
      rgba(0,0,0,0.48) 0%,
      rgba(0,0,0,0.22) 50%,
      rgba(0,0,0,0.05) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.10) 0%,
      transparent 35%,
      rgba(0,0,0,0.18) 100%
    );
}

.hero-contenuto {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-testo {
  max-width: 680px;
  color: var(--bianco);
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-etichetta {
  display: inline-block;
  background: rgba(196, 146, 42, 0.25);
  border: 1px solid var(--oro);
  color: var(--oro-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-location {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-top: -0.4rem;
  margin-bottom: 1.2rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.hero-location svg {
  opacity: 0.7;
  flex-shrink: 0;
}

.hero-testo h1 {
  color: var(--bianco);
  margin-bottom: 1.2rem;
  text-shadow:
    0 2px 8px rgba(0,0,0,0.7),
    0 4px 24px rgba(0,0,0,0.5);
}

.hero-testo p {
  font-size: 1.15rem;
  opacity: 1;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 8px rgba(0,0,0,0.75);
  margin-bottom: 2.2rem;
  max-width: 520px;
}

.hero-azioni {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Dots navigator — sopra la zona tagliata dal clip-path */
.hero-dots {
  position: absolute;
  bottom: 13%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.6rem;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all var(--transizione);
  border: none;
}

.hero-dot.attivo {
  background: var(--oro);
  transform: scale(1.4);
}

/* Scroll indicator — sopra la zona tagliata dal clip-path */
.scroll-indicator {
  position: absolute;
  bottom: 13%;
  right: 2.5rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-indicator::after {
  content: '';
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,0.8);
  border-bottom: 2px solid rgba(255,255,255,0.8);
  transform: rotate(45deg);
  animation: scorrimento 1.4s ease-in-out infinite;
  margin-top: 4px;
}

.scroll-indicator:hover {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
}

/* ─── CHI SIAMO ─── */
#chi-siamo .chi-grid {
  display: block;
}

.chi-testo {
  display: block; /* non flex — così il testo scorre intorno al float */
}

/* Clearfix sul chi-testo */
.chi-testo::after {
  content: '';
  display: table;
  clear: both;
}

/* Spaziatura tra gli elementi figli (ex gap di flex) */
.chi-testo > * + * { margin-top: 1rem; }
.chi-testo > h2   { margin-top: 0.4rem; }

/* La foto flotta dentro chi-testo — il testo la incornicia naturalmente */
.chi-immagine {
  float: left;
  width: 320px;
  margin: 0 3rem 1.5rem 0;
  position: relative; /* per il bordo decorativo ::before */
}

.chi-immagine img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--raggio-lg);
  box-shadow: var(--ombra-lg);
}

.chi-immagine::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 2px solid var(--oro);
  border-radius: var(--raggio-lg);
  z-index: -1;
  opacity: 0.4;
}

.chi-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--verde-light) 0%, var(--verde-scuro) 100%);
  border-radius: var(--raggio-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--bianco);
  gap: 1rem;
}

.chi-placeholder svg {
  opacity: 0.5;
}

.chi-placeholder p {
  font-size: 0.9rem;
  opacity: 0.6;
  text-align: center;
  padding: 0 1.5rem;
}

/* .chi-testo — stile spostato nella sezione CHI SIAMO sopra */

.chi-testo .etichetta-sezione {
  display: inline-block;
  color: var(--oro);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chi-testo blockquote {
  border-left: 3px solid var(--oro);
  padding-left: 1.2rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--verde);
  margin: 0.5rem 0;
}

/* ─── BIO ERICA ─── */
.bio-wrap { display: flex; flex-direction: column; gap: 0; }
.bio-wrap > p { margin-bottom: 0.9rem; }

.bio-nome {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--verde-scuro);
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--crema-dark);
}

.bio-extra {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.bio-extra.aperto { max-height: 4000px; }
.bio-extra p { margin-bottom: 0.85rem; }

.bio-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oro);
  margin-top: 0.6rem !important;
  margin-bottom: 0.3rem !important;
}

.bio-lista {
  margin: 0.3rem 0 0.9rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.bio-lista li { font-size: 0.92rem; color: var(--grigio); line-height: 1.6; }

.bio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid var(--oro);
  color: var(--oro);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 0.6rem;
  margin-bottom: 0.3rem;
  transition: all 0.2s;
  font-family: var(--font-sans);
  align-self: flex-start;
}
.bio-toggle:hover { background: var(--oro); color: var(--bianco); }
.bio-toggle svg { transition: transform 0.3s; }
.bio-toggle.aperto svg { transform: rotate(180deg); }

/* ─── DESCRIZIONE STRUTTURA ─── */
.struttura-desc {
  max-width: 100%;
  margin: 0 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.struttura-desc > p { margin-bottom: 0.85rem; color: var(--grigio); font-size: 0.97rem; line-height: 1.75; }

.struttura-desc-extra {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.struttura-desc-extra.aperto { max-height: 2000px; }
.struttura-desc-extra p { margin-bottom: 0.85rem; color: var(--grigio); font-size: 0.97rem; line-height: 1.75; }

/* ─── STRUTTURA ─── */
#struttura .galleria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}

.galleria-item {
  overflow: hidden;
  border-radius: var(--raggio);
  cursor: pointer;
  position: relative;
}

.galleria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.galleria-item:hover img {
  transform: scale(1.06);
}

.galleria-item--grande {
  grid-column: span 2;
  grid-row: span 2;
  height: 440px;
}

.galleria-item--normale {
  height: 210px;
}

.galleria-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,32,64,0.65) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--transizione);
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
}

.galleria-item:hover .galleria-overlay {
  opacity: 1;
}

.galleria-overlay span {
  color: var(--bianco);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Info struttura */
.struttura-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

/* ── CARD MINI-SLIDER ── */
.card-mini-slider {
  position: relative;
  width: calc(100% + 3.6rem);
  margin: -2rem -1.8rem 1.2rem -1.8rem;
  height: 175px;
  overflow: hidden;
  border-radius: var(--raggio) var(--raggio) 0 0;
  background: var(--crema-dark);
}

.cms-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cms-slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.cms-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cms-slide--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--crema-dark), var(--crema));
  color: var(--grigio);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.cms-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.32);
  color: #fff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background var(--transizione);
}

.cms-btn:hover { background: rgba(0,0,0,0.55); }
.cms-prev { left: 0.5rem; }
.cms-next { right: 0.5rem; }

.cms-dots {
  position: absolute;
  bottom: 0.45rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}

.cms-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: background 0.3s;
  cursor: pointer;
}

.cms-dot.attivo { background: #fff; }

/* Corpo testo card (dopo slider) */
.info-card-body {
  padding-top: 0.3rem;
}

/* "Gli Amici" centrata sotto le 4 card */
.info-card--centrata {
  grid-column: 1 / -1;
  max-width: 280px;
  margin: 0 auto;
  width: 100%;
}

.info-card {
  background: #FFFDF7;   /* bianco caldo, quasi crema */
  border-radius: var(--raggio);
  padding: 2rem 1.5rem;
  text-align: center;
  /* Effetto rustico: bordo caldo + ombra calda + linea bassa */
  border: 1px solid #D4C9A8;
  border-bottom: 4px solid var(--oro);
  box-shadow: 0 3px 0 #C5B98A, var(--ombra-sm);
  /* Statici: nessun movimento */
  position: relative;
  overflow: hidden;
}

/* Angolo piegato decorativo */
.info-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, transparent 50%, var(--crema-dark) 50%);
}

.info-card .icona {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.info-card h4 {
  color: var(--verde);
  margin-bottom: 0.5rem;
}

.info-card p {
  font-size: 0.9rem;
  color: var(--grigio);
  margin: 0;
}

/* ─── SERVIZI ─── */
#servizi {
  background: var(--crema-dark);
}

.servizi-griglia {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  /* align-items: stretch (default) — le card in ogni riga hanno la stessa altezza,
     nessuno spazio vuoto. Lo sfalzamento colonna-colonna è già eliminato
     dalla griglia fissa 2 col invece di auto-fit */
}

.servizio-card {
  background: #FFFDF7;
  border-radius: var(--raggio-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(100,80,30,0.13);
  transition: all var(--transizione);
  display: flex;
  flex-direction: row; /* ← orizzontale: icona | contenuto */
}

.servizio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombra-lg);
}

/* ─── Foto laterale della card servizio ─── */
.servizio-card-foto {
  width: 210px;
  min-width: 210px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.servizio-card-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.servizio-icona-wrap {
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-light) 100%);
  min-width: 76px;
  width: 76px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-size: 2rem;
  padding: 1.6rem 0.5rem;
}

.servizio-corpo {
  padding: 1.2rem 1.5rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.servizio-corpo h3 {
  color: var(--verde-scuro);
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.servizio-extra {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.servizio-extra.aperto { max-height: 2000px; }
.servizio-extra-xl.aperto { max-height: 9000px; }
.servizio-extra p { margin-bottom: 0.75rem; }

/* ─── Stage sub-sections ─── */
.stage-sezione { margin-top: 1.2rem; border-top: 1px solid var(--crema-dark); padding-top: 1rem; }
.stage-sezione h4 { color: var(--verde-scuro); font-size: 1rem; margin: 0 0 0.4rem; }
.stage-sub-extra { max-height: 0; overflow: hidden; transition: max-height 0.55s cubic-bezier(0.4,0,0.2,1); }
.stage-sub-extra.aperto { max-height: 4000px; }
.stage-toggle { display: inline-flex; align-items: center; gap: 0.35rem; background: none; border: 1px solid var(--oro); color: var(--oro); font-size: 0.8rem; padding: 0.3rem 0.85rem; border-radius: 4px; cursor: pointer; margin: 0.45rem 0 0; font-family: var(--font-sans); transition: all 0.2s; }
.stage-toggle:hover { background: var(--oro); color: var(--bianco); }
.stage-toggle svg { transition: transform 0.3s; }
.stage-toggle.aperto svg { transform: rotate(180deg); }

.servizio-corpo p {
  color: var(--grigio);
  font-size: 0.92rem;
  line-height: 1.6;
}

.servizio-prezzo {
  margin-top: auto;   /* spinge il badge sempre in fondo */
  padding-top: 1.2rem;
  border-top: 1px solid var(--crema-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prezzo-valore {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--verde);
  font-weight: bold;
}

.prezzo-etichetta {
  font-size: 0.78rem;
  color: var(--grigio);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-presto {
  display: inline-block;
  background: var(--oro);
  color: var(--bianco);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
}

/* Servizi senza prezzo */
.servizio-card--secondario .servizio-icona-wrap {
  background: linear-gradient(135deg, var(--terra) 0%, var(--oro) 100%);
}

/* ─── CAVALLI CAROUSEL ─── */
#cavalli {
  /* Sfondo muto: teal scuro → navy */
  background: linear-gradient(150deg, #0F2040 0%, #003A50 100%);
  color: var(--crema);
}

/* Barra progresso auto-scroll */
.carousel-progress {
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  margin-top: 1.2rem;
  overflow: hidden;
}
.carousel-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--oro), var(--oro-light));
  border-radius: 2px;
  width: 0%;
  transition: width linear;
}

.cavalli-categorie {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.cat-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transizione);
}

.cat-btn.attivo,
.cat-btn:hover {
  background: var(--oro);
  border-color: var(--oro);
  color: var(--bianco);
}

.cavalli-track-wrapper {
  overflow: hidden;
  position: relative;
}

.cavalli-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cavallo-card {
  min-width: 240px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--raggio-lg);
  overflow: hidden;
  transition: all var(--transizione);
  flex-shrink: 0;
}

.cavallo-card:hover {
  background: rgba(255,255,255,0.10);
  transform: translateY(-5px);
  border-color: rgba(0,126,160,0.6);
}

.cavallo-foto {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.cavallo-foto-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, rgba(30,61,112,0.45), rgba(15,32,64,0.75));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  opacity: 0.9;
}

.cavallo-info {
  padding: 1.2rem;
  background: var(--crema);
}

.cavallo-info h4 {
  color: var(--verde-scuro);
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.cavallo-info .cavallo-desc {
  font-size: 0.82rem;
  color: var(--grigio);
  margin: 0;
}

.cavallo-badge {
  display: inline-block;
  background: rgba(0,96,128,0.10);
  border: 1px solid var(--oro);
  color: var(--oro);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  margin-bottom: 0.6rem;
}

/* Frecce carousel */
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  background: transparent;
  color: var(--bianco);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transizione);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--oro);
  border-color: var(--oro);
}

/* ─── CONTATTI ─── */
#contatti {
  background: var(--bianco);
}

.contatti-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contatti-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contatto-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.contatto-icona {
  width: 48px;
  height: 48px;
  background: var(--crema-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  color: var(--verde);
}

.contatto-testo h4 {
  color: var(--verde-scuro);
  margin-bottom: 0.2rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contatto-testo p, .contatto-testo a {
  color: var(--scuro);
  font-size: 1rem;
}

.contatto-testo a:hover {
  color: var(--verde);
}

/* Badge chiusura */
.chiusura-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFF3E0;
  border: 1px solid #FFCC80;
  color: #BF360C;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Testo descrizione social */
.social-desc {
  font-size: 0.9rem;
  color: var(--grigio);
  font-style: italic;
  margin-bottom: 1rem;
}

/* Social links */
.social-wrap {
  margin-top: 2rem;
}

.social-wrap h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grigio);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transizione);
  border: 2px solid;
}

.social-link--instagram {
  border-color: #C13584;
  color: #C13584;
}

.social-link--instagram:hover {
  background: #C13584;
  color: var(--bianco);
  transform: translateY(-3px);
}

.social-link--facebook {
  border-color: #1877F2;
  color: #1877F2;
}

.social-link--facebook:hover {
  background: #1877F2;
  color: var(--bianco);
  transform: translateY(-3px);
}

/* Mappa lazy load */
.mappa-box {
  background: var(--crema-dark);
  border-radius: var(--raggio-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.07);
}

.mappa-placeholder {
  flex: 1;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8e0d0 0%, #ddd5c2 100%);
}

.mappa-placeholder-inner {
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.mappa-placeholder-icon { font-size: 2.8rem; }

.mappa-placeholder-titolo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--verde-scuro);
  font-weight: 700;
  margin: 0;
}

.mappa-placeholder-addr {
  font-size: 0.9rem;
  color: var(--grigio);
  margin: 0;
}

.mappa-placeholder-nota {
  font-size: 0.8rem;
  color: var(--grigio);
  margin: 0;
  line-height: 1.5;
}

.mappa-iframe {
  width: 100%;
  flex: 1;
  min-height: 300px;
  border: none;
  display: block;
}

.mappa-info-strip {
  padding: 1.4rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  background: var(--crema-dark);
}

.mappa-info-strip h3 {
  color: var(--verde-scuro);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.mappa-info-strip p {
  color: var(--grigio);
  font-size: 0.83rem;
  margin: 0;
  line-height: 1.55;
}

.mappa-box address {
  font-style: normal;
  font-size: 1.05rem;
  color: var(--scuro);
  line-height: 1.8;
}

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.aperto {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--raggio);
  box-shadow: var(--ombra-lg);
}

.lightbox-chiudi {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--bianco);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all var(--transizione);
}

.lightbox-chiudi:hover {
  background: var(--oro);
}

/* ─── FOOTER ─── */
footer {
  background: var(--scuro);
  color: rgba(255,255,255,0.65);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--oro);
  object-fit: cover;
}

.footer-logo span {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--bianco);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.footer-col h5 {
  color: var(--bianco);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transizione);
}

.footer-col ul a:hover {
  color: var(--oro-light);
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transizione);
}

.footer-bottom a:hover {
  color: var(--oro-light);
}

/* ─── ANIMAZIONI ─── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scorrimento {
  0%, 100% { transform: rotate(45deg) translateY(0);   opacity: 0.8; }
  50%       { transform: rotate(45deg) translateY(5px); opacity: 0.4; }
}

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visibile {
  opacity: 1;
  transform: translateY(0);
}

/* ─── MENU MOBILE ─── */
@media (max-width: 900px) {
  /* Struttura: 2 colonne su tablet */
  .struttura-info {
    grid-template-columns: repeat(2, 1fr);
  }
  .info-card--centrata {
    grid-column: 1 / -1;
    max-width: 280px;
  }

  .hamburger {
    display: flex;
  }

  .navbar-nav {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--verde-scuro);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 2rem;
    gap: 0.3rem;
    transition: right var(--transizione);
    box-shadow: -8px 0 32px rgba(0,0,0,0.3);
  }


  .navbar-nav.aperto {
    right: 0;
  }

  .navbar-nav a {
    font-size: 1.1rem;
    padding: 0.7rem 0.5rem;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  #chi-siamo .chi-grid {
    display: block;
  }
  .chi-immagine {
    float: none;
    width: 100%;
    margin: 0 0 2rem 0;
  }

  .servizi-griglia {
    grid-template-columns: 1fr; /* 1 colonna su tablet, card restano orizzontali */
  }

  .galleria {
    grid-template-columns: 1fr 1fr !important;
  }

  .galleria-item--grande {
    grid-column: span 2;
    height: 260px !important;
  }

  .galleria-item--normale {
    height: 160px !important;
  }

  .contatti-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 4rem 0;
  }

  /* Struttura: 1 colonna su mobile */
  .struttura-info {
    grid-template-columns: 1fr;
  }
  .info-card--centrata {
    grid-column: 1;
    max-width: 100%;
  }

  .servizi-griglia {
    grid-template-columns: 1fr;
  }

  /* Card torna verticale su mobile */
  .servizio-card {
    flex-direction: column;
  }
  .servizio-icona-wrap {
    width: 100%;
    min-width: unset;
    padding: 1.4rem;
    font-size: 2.4rem;
    align-items: center;
  }
  /* Foto card: appare sopra su mobile */
  .servizio-card-foto {
    width: 100%;
    min-width: unset;
    height: 200px;
    order: -1;
  }

  .galleria {
    grid-template-columns: 1fr !important;
  }

  .galleria-item--grande {
    grid-column: 1 !important;
    height: 220px !important;
  }

  .hero-azioni {
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: 1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* ─── PRIVACY PAGE ─── */
.privacy-hero {
  background: linear-gradient(135deg, var(--verde-scuro) 0%, var(--verde) 100%);
  color: var(--bianco);
  padding: 8rem 0 4rem;
  text-align: center;
}

.privacy-hero h1 {
  color: var(--bianco);
  margin-bottom: 0.5rem;
}

.privacy-hero p {
  color: rgba(255,255,255,0.65);
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.privacy-contenuto {
  padding: 4rem 0 6rem;
  max-width: 760px;
  margin: 0 auto;
}

.privacy-contenuto h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  color: var(--verde-scuro);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--crema-dark);
}

.privacy-contenuto h2:first-of-type {
  margin-top: 0;
}

.privacy-contenuto p,
.privacy-contenuto li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--grigio);
}

.privacy-contenuto a {
  color: var(--oro);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-contenuto a:hover {
  color: var(--verde);
}

.privacy-contenuto ul {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--grigio);
}

.privacy-note-finale {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--crema-dark);
  font-size: 0.85rem;
  color: var(--grigio);
  opacity: 0.75;
}

.badge-no-cookie {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 96, 128, 0.08);
  border: 1px solid var(--oro);
  color: var(--oro);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

/* ════════════════════════════════════════════
   SPLASH SCREEN
════════════════════════════════════════════ */
#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--verde-scuro);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#splash-screen.splash--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-contenuto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: splashEntrata 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes splashEntrata {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.splash-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 3px var(--oro),
    0 0 40px rgba(0, 96, 128, 0.45);
  margin-bottom: 1.4rem;
  animation: splashLogoGlow 2s ease-in-out 0.9s infinite alternate;
}

@keyframes splashLogoGlow {
  from { box-shadow: 0 0 0 3px var(--oro), 0 0 30px rgba(0, 96, 128, 0.35); }
  to   { box-shadow: 0 0 0 3px var(--oro), 0 0 55px rgba(0, 96, 128, 0.65); }
}

.splash-nome {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--bianco);
  letter-spacing: 0.06em;
  animation: splashFadeUp 0.7s ease 0.4s both;
}

.splash-nome span {
  color: var(--oro-light);
}

.splash-linea {
  width: 0;
  height: 1px;
  background: var(--oro);
  margin: 0.9rem auto;
  animation: splashLinea 0.8s ease 0.7s forwards;
}

@keyframes splashLinea {
  to { width: 160px; }
}

.splash-sub {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0;
  animation: splashFadeUp 0.7s ease 0.9s both;
}

@keyframes splashFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--crema); }
::-webkit-scrollbar-thumb { background: var(--verde-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--verde); }


/* ════════════════════════════════════════════
   COOKIE CONSENT BANNER
════════════════════════════════════════════ */

/* ── Banner fisso in fondo ── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--verde-scuro);
  border-top: 2px solid var(--oro);
  padding: 1.1rem 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#cookie-banner.ckb--visible {
  transform: translateY(0);
}

.ckb-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.ckb-text { flex: 1; min-width: 0; }

.ckb-title {
  display: block;
  color: var(--bianco);
  font-family: var(--font-serif);
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.ckb-desc {
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0;
}

.ckb-link {
  color: var(--oro-light);
  text-decoration: underline;
}

.ckb-actions {
  display: flex;
  gap: 0.65rem;
  flex-shrink: 0;
  align-items: center;
}

/* ── Bottoni cookie ── */
.ck-btn {
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: var(--font-sans);
  line-height: 1;
}

.ck-btn--primary {
  background: var(--oro);
  color: var(--bianco);
  border-color: var(--oro);
}
.ck-btn--primary:hover { background: var(--oro-light); border-color: var(--oro-light); }

.ck-btn--secondary {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.35);
}
.ck-btn--secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.65); }

.ck-btn--ghost {
  background: transparent;
  color: var(--oro-light);
  border-color: transparent;
  text-decoration: underline;
  padding-inline: 0.4rem;
}
.ck-btn--ghost:hover { color: var(--bianco); }

.ck-btn--wide { padding: 0.65rem 2rem; font-size: 0.9rem; }

/* ── Overlay modale ── */
#cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 32, 64, 0.72);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}
#cookie-overlay.ck-overlay--visible { opacity: 1; }

/* ── Modale preferenze ── */
.ck-modal {
  background: var(--crema);
  border-radius: var(--raggio-lg);
  padding: 2.2rem 2.4rem;
  max-width: 520px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.ck-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--grigio);
  line-height: 1;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}
.ck-modal-close:hover { color: var(--scuro); background: var(--crema-dark); }

.ck-modal-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--verde-scuro);
  margin-bottom: 1.4rem;
  padding-right: 2rem;
}

.ck-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--crema-dark);
}
.ck-row:last-of-type { border-bottom: none; }

.ck-row-info strong {
  display: block;
  color: var(--scuro);
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}
.ck-row-info p {
  color: var(--grigio);
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.5;
}

.ck-always-on {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--oro);
  white-space: nowrap;
  margin-top: 0.2rem;
  flex-shrink: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Toggle switch ── */
.ck-toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.ck-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }

.ck-toggle-slider {
  position: absolute;
  inset: 0;
  background: #c8c0b4;
  border-radius: 26px;
  cursor: pointer;
  transition: background 0.25s;
}
.ck-toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--bianco);
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.ck-toggle input:checked + .ck-toggle-slider { background: var(--oro); }
.ck-toggle input:checked + .ck-toggle-slider::before { transform: translateX(20px); }
.ck-toggle input:focus-visible + .ck-toggle-slider {
  box-shadow: 0 0 0 3px rgba(0, 96, 128, 0.3);
}

.ck-modal-footer {
  margin-top: 1.4rem;
  display: flex;
  justify-content: flex-end;
}

/* ── Cookie table (privacy page) ── */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 1rem 0 1.5rem;
}
.cookie-table th {
  background: var(--crema-dark);
  color: var(--verde-scuro);
  padding: 0.6rem 0.8rem;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--crema-dark);
}
.cookie-table td {
  padding: 0.55rem 0.8rem;
  color: var(--grigio);
  border-bottom: 1px solid var(--crema-dark);
  vertical-align: top;
}
.cookie-table tr:last-child td { border-bottom: none; }

/* ── Link gestisci consenso (footer) ── */
.cookie-manage-btn {
  background: none;
  border: none;
  color: var(--oro-light);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-family: var(--font-sans);
}
.cookie-manage-btn:hover { color: var(--bianco); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .ckb-inner { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .ckb-actions { width: 100%; flex-wrap: wrap; }
  .ck-btn--primary,
  .ck-btn--secondary { flex: 1; text-align: center; justify-content: center; }
  .ck-modal { padding: 1.6rem 1.4rem; }
}

/* ══════════════════════════════════════════
   PROSSIMI APPUNTAMENTI — Locandine
══════════════════════════════════════════ */
.appuntamenti-griglia {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.locandina-wrap {
  border-radius: var(--raggio-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.locandina-wrap:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}

/* Badge evento passato */
.locandina-passato {
  position: relative;
}
.locandina-passato .locandina-img {
  filter: grayscale(45%) brightness(0.82);
}
.locandina-passato::after {
  content: '✓ Evento concluso';
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  pointer-events: none;
}

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

@media (max-width: 900px) {
  .appuntamenti-griglia {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .appuntamenti-griglia {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 1rem auto 0;
  }
}

/* ── Nota attenzione mappa ── */
.mappa-attenzione {
  background: #fff8e1;
  border: 1px solid #f9a825;
  border-left: 4px solid #f9a825;
  border-radius: 6px;
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  color: #5d4037;
  margin-top: 0.6rem;
  line-height: 1.5;
}

/* ── Telefoni molto piccoli (≤400px): padding ridotto ── */
@media (max-width: 400px) {
  .container {
    padding: 0 1.25rem;
  }
  .hero-testo h1 {
    font-size: 2rem;
  }
}

/* ── Card testuale appuntamento (senza locandina immagine) ── */
.locandina-testo-card {
  background: linear-gradient(135deg, var(--verde-scuro) 0%, var(--verde) 70%, #1a5070 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 2.5rem 2rem;
}
.loc-inner {
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}
.loc-data {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--oro-light);
  display: block;
}
.loc-titolo {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: #fff;
  margin: 0.35rem 0 0.15rem;
  line-height: 1.15;
}
.loc-istruttore {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.92);
  margin: 0;
}
.loc-sottotitolo {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.58);
  letter-spacing: 0.06em;
  margin: 0 0 0.6rem;
}
.loc-tag {
  display: inline-block;
  background: var(--oro);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1.3rem;
  border-radius: 50px;
  margin-top: 0.3rem;
}

/* ── Overlay menu mobile ── */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 98;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.menu-overlay.aperto { display: block; }

/* ══════════════════════════════════════════
   FIX MOBILE — Cavalli & Privacy
══════════════════════════════════════════ */
@media (max-width: 600px) {
  /* Carousel cavalli: card quasi full-width su mobile */
  .cavallo-card {
    min-width: calc(85vw);
    max-width: calc(85vw);
  }

  /* Frecce carousel più piccole e ravvicinate */
  .carousel-nav {
    gap: 0.6rem;
  }
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  /* Filtri cavalli: scorri orizzontalmente se non ci stanno */
  .cavalli-categorie {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cavalli-categorie::-webkit-scrollbar { display: none; }

  /* Privacy page: padding laterale su mobile */
  .privacy-contenuto {
    padding: 2.5rem 1.4rem 4rem;
  }
  .privacy-hero {
    padding: 6rem 1.4rem 3rem;
  }

  /* Mappa info strip: colonna su mobile */
  .mappa-info-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  /* ── FIX 1: Nascondi dots e scroll indicator (non utili su touch) ── */
  .hero-dots,
  .scroll-indicator {
    display: none !important;
  }

  /* ── FIX 2: Hero text centrato ma dentro la clip-zone ── */
  .hero-contenuto {
    align-items: center;
    padding-top: 5rem;    /* ~80px: spazio sotto il navbar logo */
    padding-bottom: 14%;  /* lascia spazio alla clip-path diagonale */
  }

  /* ── FIX 3: Menu full-width su mobile (niente striscia a sinistra) ── */
  .navbar-nav {
    width: 100%;
  }

  /* ── FIX 4: Rimuove backdrop-blur dal navbar quando il menu è aperto ── */
  #navbar.menu-aperto,
  #navbar.menu-aperto.scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--verde-scuro) !important;
  }
}
