/* ============================================================
   IconiCO — Iconic Collection, Pure Passion.
   Foglio di stile condiviso — lusso mediterraneo / Salento
   Pietra leccese, mare turchese, tramonto terracotta.
   ============================================================ */

/* ---------- Variabili ---------- */
:root {
  --c-bg:        #fbf6ec;   /* pietra leccese chiara */
  --c-bg-alt:    #f5ebd8;   /* sabbia assolata, sezioni alterne */
  --c-bg-img:    #ecdfc4;   /* sfondo neutro placeholder immagini */
  --c-ink:       #0f2a2a;   /* blu-teal notte, quasi nero */
  --c-ink-soft:  #3d5654;   /* testo secondario, teal spento */
  --c-muted:     #8b9791;   /* testo tenue / didascalie */
  --c-line:      #e6d8ba;   /* linee sottili, sabbia */

  --c-gold:      #bd8c3c;   /* oro mediterraneo */
  --c-gold-dk:   #96692a;
  --c-turq:      #6b7a4a;   /* verde ulivo salentino */
  --c-turq-dk:   #4f5c36;
  --c-terra:     #c9683f;   /* tramonto / terracotta */
  --c-terra-dk:  #a24f2d;

  --grad-sunset: linear-gradient(115deg, var(--c-gold) 0%, var(--c-terra) 52%, var(--c-gold) 100%);
  --grad-gold:   linear-gradient(120deg, var(--c-gold) 0%, var(--c-terra) 100%);

  --glow-gold:   rgba(189,140,60,.35);
  --glow-turq:   rgba(107,122,74,.24);
  --glow-terra:  rgba(201,104,63,.28);

  --radius:    16px;
  --radius-sm: 10px;

  --ff-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --ff-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1200px;
  --gut:  clamp(20px, 5vw, 64px);
}

/* ---------- Reset di base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--ff-sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

/* Scrollbar personalizzata */
html { scrollbar-color: var(--c-gold) var(--c-bg-alt); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--c-bg-alt); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--c-turq), var(--c-gold));
  border-radius: 8px; border: 3px solid var(--c-bg-alt);
}

:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; }

/* ---------- Grana pellicola (texture di lusso, decorativa) ---------- */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Barra di avanzamento scroll ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad-sunset); z-index: 200;
  transition: width .08s linear;
}

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 .4em;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
p  { margin: 0 0 1.1em; color: var(--c-ink-soft); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--ff-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  background: var(--grad-sunset);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 7s linear infinite;
  margin: 0 0 1.2rem;
  display: inline-block;
}
.lead { font-size: 1.2rem; color: var(--c-ink-soft); }

@keyframes shine {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Titoli hero: shimmer riservato solo ai grandi titoli decorativi */
.hero-text h1, .hero--page h1 {
  background: linear-gradient(100deg, var(--c-ink) 30%, var(--c-terra-dk) 45%, var(--c-gold-dk) 52%, var(--c-ink) 65%);
  background-size: 260% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 9s ease-in-out infinite;
}
.cta-band h2 {
  background: linear-gradient(100deg, #fff 35%, #f6d9a8 50%, #fff 65%);
  background-size: 260% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow, .hero-text h1, .hero--page h1, .cta-band h2 { animation: none; background-position: 0 0; }
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); position: relative; z-index: 1; }
.section { padding: clamp(64px, 10vw, 130px) 0; }
.section--alt { background: var(--c-bg-alt); }
.section--tight { padding: clamp(48px, 7vw, 90px) 0; }
.center { text-align: center; }
.narrow { max-width: 760px; margin-inline: auto; }

.divider { height: 1px; background: var(--c-line); border: 0; margin: 0; }

/* ---------- Blob d'atmosfera (decorativi, dietro al contenuto) ---------- */
.hero, .hero--page, .cta-band, .site-footer {
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after,
.hero--page::before, .hero--page::after,
.cta-band::before, .cta-band::after,
.site-footer::before, .site-footer::after {
  content: ""; position: absolute; z-index: 0; border-radius: 50%;
  filter: blur(70px); pointer-events: none;
  animation: drift 26s ease-in-out infinite alternate;
}
.hero::before, .hero--page::before { width: 46vw; height: 46vw; top: -18%; left: -12%; background: var(--glow-gold); }
.hero::after,  .hero--page::after  { width: 40vw; height: 40vw; bottom: -22%; right: -10%; background: var(--glow-terra); animation-duration: 32s; animation-direction: alternate-reverse; }
.cta-band::before { width: 42vw; height: 42vw; top: -20%; left: -8%; background: rgba(189,140,60,.22); }
.cta-band::after  { width: 38vw; height: 38vw; bottom: -24%; right: -6%; background: rgba(201,104,63,.22); animation-duration: 30s; }
.site-footer::before { width: 34vw; height: 34vw; top: -18%; right: 4%; background: rgba(189,140,60,.16); }
.site-footer::after  { width: 30vw; height: 30vw; bottom: -20%; left: -6%; background: rgba(201,104,63,.14); animation-duration: 34s; }

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(3%, 4%) scale(1.08); }
  100% { transform: translate(-2%, -3%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .hero--page::before, .hero--page::after,
  .cta-band::before, .cta-band::after, .site-footer::before, .site-footer::after { animation: none; }
}
@media (max-width: 760px) {
  .hero::before, .hero::after, .hero--page::before, .hero--page::after,
  .cta-band::before, .cta-band::after, .site-footer::before, .site-footer::after { filter: blur(46px); }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,246,236,.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.is-scrolled {
  background: rgba(251,246,236,.92);
  box-shadow: 0 12px 32px -18px rgba(15,42,42,.35);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 74px;
}
.brand {
  font-family: var(--ff-serif);
  font-size: 1.6rem; font-weight: 600; letter-spacing: .04em;
  line-height: 1; white-space: nowrap;
  display: inline-flex; align-items: center;
}
.brand-mark { display: block; height: 40px; width: auto; object-fit: contain; flex-shrink: 0; margin-right: 12px; }
.brand-text { display: inline-block; }
.site-footer .brand-mark { filter: invert(1) brightness(1.6); }
.brand b { font-weight: 600; }
.brand .ico {
  background: var(--grad-sunset); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 7s linear infinite;
}
.brand small {
  display: block; font-family: var(--ff-sans);
  font-size: .55rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--c-muted); margin-top: 4px; font-weight: 500;
}
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 500; color: var(--c-ink-soft); padding: 6px 0; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--grad-gold); transition: width .3s ease; border-radius: 2px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--c-ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.nav-toggle {
  display: none; background: none; border: 0; width: 40px; height: 40px;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 8px; width: 24px; height: 1.5px;
  background: var(--c-ink); transition: transform .3s, opacity .3s;
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Bottoni ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--ff-sans); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 15px 30px; border: 1px solid var(--c-ink); background: var(--c-ink);
  border-radius: var(--radius-sm);
  color: #fff; transition: all .25s ease, box-shadow .3s ease, transform .2s ease; cursor: pointer;
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; translate: -130% 0;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
  transition: translate .6s ease;
}
.btn:hover::before { translate: 130% 0; }
.btn:hover { background: transparent; color: var(--c-ink); box-shadow: 0 10px 30px -10px var(--glow-turq); }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn--ghost:hover { background: var(--c-ink); color: #fff; }
.btn--gold { background: var(--grad-gold); border-color: var(--c-gold); color: #fff; }
.btn--gold:hover { background: transparent; color: var(--c-gold-dk); border-color: var(--c-gold); box-shadow: 0 10px 34px -10px var(--glow-gold); }
.btn--light { background: #fff; color: var(--c-ink); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-row.center { justify-content: center; }

.textlink {
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  color: var(--c-ink); border-bottom: 1px solid var(--c-gold); padding-bottom: 3px;
  display: inline-block; transition: color .2s, border-color .2s, letter-spacing .2s;
}
.textlink:hover { color: var(--c-turq-dk); border-color: var(--c-turq); letter-spacing: .16em; }
.textlink::after { content: " \2192"; }

/* ---------- Placeholder immagini ---------- */
.ph { margin: 0; }
.ph-img {
  background: var(--c-bg-img);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border: 1px solid var(--c-line);
  border-radius: var(--radius);
  position: relative;
}
.ph-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.ph-img.ratio-16-9 { aspect-ratio: 16 / 9; }
.ph-img.ratio-4-3  { aspect-ratio: 4 / 3; }
.ph-img.ratio-3-2  { aspect-ratio: 3 / 2; }
.ph-img.ratio-1-1  { aspect-ratio: 1 / 1; }
.ph-img.tall       { aspect-ratio: 3 / 4; }

/* ---------- Hero ---------- */
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch;
  min-height: clamp(440px, 72vh, 760px);
}
.hero-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 7vw, 96px) var(--gut);
}
.hero-text h1 { margin-bottom: .25em; }
.hero-text .lead { max-width: 30ch; }
.hero-media { position: relative; background: var(--c-bg-img); z-index: 1; }
.hero-media .ph { height: 100%; }
.hero-media .ph .ph-img { height: 100%; border: 0; border-left: 1px solid var(--c-line); border-radius: 0; }

.hero--page { padding: clamp(70px, 11vw, 150px) 0 clamp(40px, 6vw, 70px); }

/* ---------- Griglie generiche ---------- */
.grid { display: grid; gap: clamp(24px, 4vw, 48px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2-1 { grid-template-columns: 1fr 1fr; align-items: center; }

/* ---------- Card veicolo ---------- */
.car-card {
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease;
  transform: perspective(900px) rotateX(var(--ry, 0)) rotateY(var(--rx, 0)) translateY(var(--lift, 0px));
  will-change: transform;
  cursor: pointer;
}
.car-card:hover {
  --lift: -6px;
  box-shadow: 0 26px 60px -24px rgba(15,42,42,.45), 0 0 0 1px var(--c-line);
  border-color: var(--c-gold);
}
.car-card:hover .ph-img img { transform: scale(1.06); }
.car-card .ph-img { border: 0; border-bottom: 1px solid var(--c-line); border-radius: var(--radius) var(--radius) 0 0; }
.car-body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.car-foot .textlink::before { content: ""; position: absolute; inset: 0; z-index: 2; }
.car-status {
  align-self: flex-start; font-size: .66rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; padding: 5px 12px; border: 1px solid var(--c-line);
  border-radius: 999px;
  color: var(--c-ink-soft); margin-bottom: 16px;
}
.car-status.is-available { color: #0a6d68; border-color: #a9d8d2; background: #eef8f6; }
.car-status.is-coming    { color: var(--c-gold-dk); border-color: #e6d3a3; background: #fbf3e2; }
.car-status.is-reserved  { color: var(--c-terra-dk); border-color: #e9c1a9; background: #fbede4; }
.car-status.is-sold      { color: var(--c-muted); }
.car-card h3 { margin-bottom: .1em; }
.car-specs { font-size: .85rem; color: var(--c-muted); letter-spacing: .04em; margin-bottom: 14px; }
.car-desc  { font-size: .96rem; flex: 1; }
.car-foot  { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.car-price { font-family: var(--ff-serif); font-size: 1.35rem; color: var(--c-ink); }

/* ---------- Blocchi "La cura" (icone/colonne) ---------- */
.feature { transition: transform .3s ease; }
.feature:hover { transform: translateY(-3px); }
.feature .num {
  font-family: var(--ff-serif); font-size: 1.6rem;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 10px;
}
.feature h3 { font-size: 1.4rem; margin-bottom: .3em; }
.feature p { font-size: .96rem; }

/* ---------- Statement / citazioni ---------- */
.statement { text-align: center; }
.statement p {
  font-family: var(--ff-serif); font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.25; color: var(--c-ink); margin: 0;
}
.statement .sub { font-family: var(--ff-sans); font-size: 1rem; color: var(--c-muted); margin-top: 1.5rem; letter-spacing: .02em; }

.manifesto-body p { font-family: var(--ff-serif); font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.5; color: var(--c-ink); }
.manifesto-body .signoff { margin-top: 2rem; }

/* ---------- Tabella specifiche ---------- */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
  text-align: left; padding: 14px 4px; border-bottom: 1px solid var(--c-line); font-size: .95rem;
  transition: background .2s ease;
}
.spec-table tr:hover th, .spec-table tr:hover td { background: var(--c-bg-alt); }
.spec-table th {
  font-family: var(--ff-sans); font-weight: 500; color: var(--c-muted);
  letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; width: 42%;
  border-left: 2px solid transparent; transition: border-color .2s ease, background .2s ease;
}
.spec-table tr:hover th { border-left-color: var(--c-gold); }
.spec-table td { color: var(--c-ink); }

/* ---------- Galleria ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery .ph { overflow: hidden; }
.gallery .ph-img { cursor: default; }
.gallery .ph:hover .ph-img img { transform: scale(1.08); }

/* ---------- Calendario dei campi data ---------- */
.data-wrap { position: relative; }
.data-campo { cursor: pointer; background: #fff; }
.data-campo::placeholder { color: var(--c-muted); }
/* la piccola icona a destra ricorda che il campo apre un calendario */
.data-wrap::after {
  content: ""; position: absolute; right: 13px; top: 50%; width: 17px; height: 17px;
  transform: translateY(-50%); pointer-events: none; opacity: .55;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2a2a' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
}

.cal-pannello {
  position: absolute; z-index: 60; top: calc(100% + 6px); left: 0;
  width: 290px; max-width: 92vw; padding: 12px;
  background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius); box-shadow: 0 18px 44px rgba(15, 42, 42, .18);
}
.cal-testa { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-titolo {
  font-family: var(--ff-sans); font-size: .82rem; font-weight: 600;
  letter-spacing: .06em; text-transform: capitalize; color: var(--c-ink);
}
.cal-nav {
  width: 30px; height: 30px; padding: 0; line-height: 1;
  border: 1px solid var(--c-line); border-radius: 50%;
  background: transparent; color: var(--c-ink); font-size: 1.1rem;
  transition: background .18s ease, border-color .18s ease;
}
.cal-nav:hover { background: var(--c-bg-alt); border-color: var(--c-gold); }

.cal-griglia { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-intestazione {
  font-family: var(--ff-sans); font-size: .62rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted);
  text-align: center; padding-bottom: 6px;
}
.cal-giorno {
  aspect-ratio: 1 / 1; padding: 0; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--c-ink);
  font-family: var(--ff-sans); font-size: .82rem;
  transition: background .15s ease, color .15s ease;
}
.cal-giorno:hover:not(:disabled) { background: var(--c-bg-alt); }
.cal-giorno.is-oggi { box-shadow: inset 0 0 0 1px var(--c-gold); }
.cal-giorno.is-scelto { background: var(--c-ink); color: #fff; }
.cal-giorno.is-scelto:hover { background: var(--c-ink); }
/* giorni non selezionabili: spenti e inerti, così si vede subito */
.cal-giorno.is-spento {
  color: var(--c-muted); opacity: .28; cursor: not-allowed;
  background: repeating-linear-gradient(-45deg, transparent 0 4px, rgba(15,42,42,.06) 4px 8px);
}
.cal-giorno.is-spento:hover { background: repeating-linear-gradient(-45deg, transparent 0 4px, rgba(15,42,42,.06) 4px 8px); }

/* ---------- Foto ingrandita (lightbox) ---------- */
.gallery .ph-img.is-zoomable { cursor: zoom-in; }
.gallery .ph-img.is-zoomable:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; }
/* piccola lente in alto a destra, per far capire che la foto si apre */
.gallery .ph-img.is-zoomable::after {
  content: ""; position: absolute; top: 10px; right: 10px; width: 30px; height: 30px;
  border-radius: 50%; background: rgba(15, 42, 42, .55) center / 15px 15px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E");
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.gallery .ph:hover .ph-img.is-zoomable::after,
.gallery .ph-img.is-zoomable:focus-visible::after { opacity: 1; }

body.lb-open { overflow: hidden; }
.lb {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(9, 26, 26, .96);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s ease;
}
.lb.is-open { opacity: 1; }
.lb-stage {
  margin: 0; max-width: 94vw; max-height: 92vh;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.lb-img {
  max-width: 94vw; max-height: 80vh; width: auto; height: auto;
  border-radius: var(--radius); box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
  background: var(--c-ink);
}
.lb-cap {
  font-family: var(--ff-sans); font-size: .8rem; line-height: 1.5; text-align: center;
  color: rgba(255, 255, 255, .78); max-width: 60ch; padding: 0 12px;
}
.lb-count {
  display: block; color: var(--c-gold); font-weight: 600;
  letter-spacing: .14em; font-size: .68rem; margin-bottom: 5px;
}
.lb-btn {
  position: absolute; z-index: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0; line-height: 1;
  color: #fff; background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%;
  font-family: var(--ff-sans); font-size: 1.6rem;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.lb-btn:hover { background: rgba(189, 140, 60, .85); border-color: var(--c-gold); }
.lb-btn:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; }
.lb-close { top: 18px; right: 18px; font-size: 1.9rem; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.06); }
.lb-next:hover { transform: translateY(-50%) scale(1.06); }

@media (max-width: 760px) {
  .lb-img { max-height: 70vh; }
  .lb-btn { width: 40px; height: 40px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-close { top: 10px; right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .lb { transition: none; }
  .gallery .ph-img.is-zoomable::after { transition: none; }
}

/* ---------- Video ---------- */
.video-figure { max-width: 900px; margin: 0 auto; }
.video-player {
  display: block; width: 100%; height: auto; aspect-ratio: 848 / 478;
  background: var(--c-ink); border-radius: var(--radius);
}

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
/* casella del consenso privacy: etichetta discorsiva accanto al segno di spunta,
   non in maiuscoletto come le altre etichette dei campi */
.field.consenso label {
  flex-direction: row; align-items: flex-start; gap: 10px; cursor: pointer;
  font-size: .82rem; font-weight: 400; letter-spacing: 0; text-transform: none;
  line-height: 1.5; color: var(--c-ink-soft);
}
.consenso input[type="checkbox"] {
  flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px;
  accent-color: var(--c-gold); cursor: pointer;
}
.consenso input[type="checkbox"].invalid { outline: 2px solid var(--c-terra); outline-offset: 2px; }
.consenso a { text-decoration: underline; text-underline-offset: 2px; }
.field label {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600; color: var(--c-ink-soft);
}
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--c-ink);
  padding: 13px 14px; border: 1px solid var(--c-line); background: #fff;
  border-radius: var(--radius-sm); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--c-turq); box-shadow: 0 0 0 3px var(--glow-turq);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input.invalid, .field textarea.invalid, .field select.invalid {
  border-color: var(--c-terra); box-shadow: 0 0 0 3px rgba(201, 104, 63, .18);
}
/* honeypot anti-spam: invisibile agli umani, i bot lo compilano */
.form-grid .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-status {
  font-family: var(--ff-sans); font-size: .9rem; line-height: 1.5; margin-top: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid;
}
.form-status.ok  { color: var(--c-turq-dk); background: rgba(107, 121, 89, .1);  border-color: var(--c-turq); }
.form-status.err { color: var(--c-terra);   background: rgba(201, 104, 63, .08); border-color: var(--c-terra); }

/* ---------- Lista contatti ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.contact-list .k { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); display: block; margin-bottom: 3px; }
.contact-list .v { font-size: 1.1rem; color: var(--c-ink); }

/* colonne affiancate con righe allineate: le intestazioni condividono la prima
   riga del grid, così le liste sotto partono alla stessa altezza anche se un
   titolo va a capo (usato in experience.html, sezione Info & prenotazioni) */
.info-cols { align-items: start; }
@supports (grid-template-rows: subgrid) {
  @media (min-width: 761px) {
    .info-cols { row-gap: 0; }
    .info-cols > .info-col { display: grid; grid-template-rows: subgrid; grid-row: span 2; }
  }
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--c-ink); color: #fff; text-align: center; }
.cta-band p { color: rgba(255,255,255,.72); }
.cta-band .eyebrow { background: linear-gradient(120deg, var(--c-gold) 0%, #f6d9a8 52%, var(--c-terra) 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 1.4rem; }
.crumb a:hover { color: var(--c-gold-dk); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-ink); color: rgba(255,255,255,.7); padding: 70px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: rgba(255,255,255,.5); }
.footer-tag { margin-top: 18px; max-width: 36ch; font-size: .95rem; color: rgba(255,255,255,.6); }
.footer-col h4 { font-family: var(--ff-sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); font-weight: 600; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: .95rem; color: rgba(255,255,255,.78); transition: color .2s; }
.footer-col a:hover { color: var(--c-gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 26px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .8rem; color: rgba(255,255,255,.5); letter-spacing: .03em;
}

/* ---------- Animazione comparsa ---------- */
.reveal { opacity: 0; transform: translateY(28px) scale(.985); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: 320px; order: -1; }
  .hero-media .ph .ph-img { border-left: 0; border-bottom: 1px solid var(--c-line); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--c-line); padding: 10px 0;
    border-radius: 0 0 var(--radius) var(--radius);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .nav-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-links a::after { display: none; }
  .grid-2, .grid-3, .grid-2-1, .form-grid, .gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  body { font-size: 16px; }
}
