/* =========================================================
   Villa Anna – Ristorante La Teleferica
   ========================================================= */

:root {
  --avorio: #FAF6EE;
  --pietra: #EAE2D2;
  --pietra-scura: #D9CDB6;
  --oliva: #4F5733;
  --oliva-scura: #2F3520;
  --bordeaux: #7B1F2C;
  --bordeaux-scuro: #5F1621;
  --oro: #A8854A;
  --oro-chiaro: #CFB27A;
  --inchiostro: #2A2A22;
  --testo: #45443A;

  --f-script: "Great Vibes", cursive;
  --f-serif: "Libre Caslon Display", "Didot", Georgia, serif;
  --f-sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1240px;
  --header-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--avorio);
  color: var(--testo);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; color: var(--inchiostro); }
p { margin: 0; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--bordeaux);
  color: var(--avorio);
}
.skip:focus { top: 1rem; }

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

/* ---------- Tipografia comune ---------- */

.title {
  font-family: var(--f-serif);
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.title--light { color: var(--avorio); }

.intro {
  margin-top: 1.25rem;
  max-width: 34em;
  font-size: 1.125rem;
}
.intro--light { color: rgba(250, 246, 238, .82); }

.note {
  margin-top: 1.5rem;
  font-size: .98rem;
}
.note a { color: var(--bordeaux); font-weight: 500; text-underline-offset: 3px; }

/* ---------- Pulsanti ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 500 1rem/1.2 var(--f-sans);
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--small { min-height: 40px; padding: .5rem 1.1rem; font-size: .95rem; }
.btn--block { width: 100%; }

.btn--bordeaux { background: var(--bordeaux); color: var(--avorio); }
.btn--bordeaux:hover { background: var(--bordeaux-scuro); }

.btn--light { background: rgba(250, 246, 238, .1); color: var(--avorio); border-color: rgba(250, 246, 238, .75); backdrop-filter: blur(2px); }
.btn--light:hover { background: var(--avorio); color: var(--inchiostro); }

/* "Contattaci": bordo oro con un riflesso che scorre lentamente */
@property --giro {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.btn--contattaci {
  min-height: 42px;
  padding: .5rem 1.25rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(var(--bordeaux), var(--bordeaux)) padding-box,
    conic-gradient(from var(--giro), #A8854A 0deg, #A8854A 220deg, #E8D3A0 270deg, #FFF6DC 290deg, #E8D3A0 310deg, #A8854A 360deg) border-box;
  color: var(--avorio);
  letter-spacing: .04em;
  box-shadow: 0 0 0 0 rgba(207, 178, 122, 0), 0 6px 18px -8px rgba(0, 0, 0, .45);
  animation: giro 6s linear infinite;
  transition: box-shadow .4s var(--ease), transform .3s var(--ease);
}
.btn--contattaci:hover {
  background:
    linear-gradient(var(--bordeaux-scuro), var(--bordeaux-scuro)) padding-box,
    conic-gradient(from var(--giro), #A8854A 0deg, #A8854A 220deg, #E8D3A0 270deg, #FFF6DC 290deg, #E8D3A0 310deg, #A8854A 360deg) border-box;
  box-shadow: 0 0 18px -2px rgba(207, 178, 122, .45), 0 6px 18px -8px rgba(0, 0, 0, .45);
}
@keyframes giro { to { --giro: 360deg; } }

.btn--hero {
  min-height: 58px;
  padding: 1rem 2.1rem;
  font-size: 1.08rem;
  letter-spacing: .03em;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn--hero-main {
  background: var(--bordeaux);
  color: var(--avorio);
  border-color: rgba(207, 178, 122, .55);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
}
.btn--hero-main:hover {
  background: var(--bordeaux-scuro);
  border-color: var(--oro-chiaro);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .7);
}
.btn--hero-alt {
  background: rgba(24, 26, 15, .35);
  color: var(--avorio);
  border: 1.5px solid rgba(250, 246, 238, .85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn--hero-alt:hover {
  background: var(--avorio);
  color: var(--inchiostro);
  border-color: var(--avorio);
  transform: translateY(-2px);
}

.btn--gold { background: transparent; color: var(--oro-chiaro); border-color: var(--oro); }
.btn--gold:hover { background: var(--oro); color: var(--oliva-scura); }

/* WhatsApp: verde oliva del sito, riconoscibile dall'icona */
.btn--wa { background: var(--oliva); color: var(--avorio); border-color: rgba(207, 178, 122, .45); }
.btn--wa:hover { background: #434A2B; border-color: var(--oro-chiaro); }

.ico-wa { fill: currentColor; }
.ico-tel { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.btn .ico-wa,
.btn .ico-tel { width: 20px; height: 20px; flex: none; }

.btn--outline { background: transparent; color: var(--inchiostro); border-color: var(--pietra-scura); }
.btn--outline:hover { border-color: var(--inchiostro); }

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  color: var(--avorio);
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.header.is-solid {
  background: rgba(250, 246, 238, .96);
  color: var(--inchiostro);
  box-shadow: 0 1px 0 var(--pietra-scura);
}
@supports (backdrop-filter: blur(8px)) {
  .header.is-solid { background: rgba(250, 246, 238, .88); backdrop-filter: blur(8px); }
}
.header.menu-open { background: transparent; color: var(--avorio); box-shadow: none; backdrop-filter: none; }

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
}
.logo__script {
  font-family: var(--f-script);
  font-size: 2.1rem;
  line-height: .95;
}
.header.is-solid:not(.menu-open) .logo__script { color: var(--bordeaux); }
.logo__sub {
  margin-top: .1rem;
  font-family: var(--f-serif);
  font-size: .72rem;
  font-variant: small-caps;
  letter-spacing: .14em;
  text-transform: lowercase;
}

.header__actions { display: flex; align-items: center; gap: .75rem; }

.burger {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform .35s var(--ease), opacity .2s var(--ease), top .35s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21.5px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Menu a schermo intero ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
  background: var(--oliva-scura);
  color: var(--avorio);
  overflow-y: auto;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }

.menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
}
.menu__list li { border-bottom: 1px solid rgba(207, 178, 122, .25); }
.menu__list a {
  display: block;
  padding: .7rem 0;
  font-family: var(--f-serif);
  font-size: clamp(1.75rem, 6vw, 2.6rem);
  line-height: 1.2;
  text-decoration: none;
  transform: translateY(10px);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease), color .2s;
}
.menu.is-open .menu__list a { transform: none; opacity: 1; }
.menu.is-open .menu__list li:nth-child(2) a { transition-delay: .04s; }
.menu.is-open .menu__list li:nth-child(3) a { transition-delay: .08s; }
.menu.is-open .menu__list li:nth-child(4) a { transition-delay: .12s; }
.menu.is-open .menu__list li:nth-child(5) a { transition-delay: .16s; }
.menu__list a:hover { color: var(--oro-chiaro); }

.menu__foot {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  color: rgba(250, 246, 238, .7);
  font-size: .95rem;
}
.menu__tel {
  display: inline-block;
  margin-bottom: .25rem;
  color: var(--oro-chiaro);
  font-size: 1.25rem;
  text-decoration: none;
}
.menu__wa {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: fit-content;
  min-height: 44px;
  margin-bottom: .5rem;
  color: var(--avorio);
  font-size: 1.05rem;
  text-decoration: none;
}
.menu__wa .ico-wa { width: 20px; height: 20px; flex: none; color: var(--oro-chiaro); }
.menu__wa:hover { color: var(--oro-chiaro); }

/* ---------- Hero ---------- */

.hero {
  --hero-fade: clamp(110px, 20vh, 200px);
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--oliva-scura);
  color: var(--avorio);
}
.hero__media {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.hero__poster,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 55%;
}
/* il video compare sopra il poster solo quando parte davvero */
.hero__video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__media.is-playing .hero__video { opacity: 1; }
/* sfumatura che fonde la foto con l'avorio della sezione successiva */
.hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--hero-fade);
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(250, 246, 238, 0) 0%,
    rgba(250, 246, 238, .06) 18%,
    rgba(250, 246, 238, .2) 36%,
    rgba(250, 246, 238, .42) 54%,
    rgba(250, 246, 238, .68) 72%,
    rgba(250, 246, 238, .9) 88%,
    var(--avorio) 100%);
}
/* si scurisce mentre si scorre (opacità guidata da script.js) */
.hero__shade {
  position: absolute;
  inset: 0;
  background: #181A0F;
  opacity: 0;
  pointer-events: none;
}
/* sfumatura scura più leggera: piena solo in basso, dove ci sono testo e pulsanti */
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(24, 26, 15, .86) 0%, rgba(24, 26, 15, .55) 30%, rgba(24, 26, 15, .16) 58%, rgba(24, 26, 15, 0) 80%),
    linear-gradient(to right, rgba(24, 26, 15, .42) 0%, rgba(24, 26, 15, 0) 55%),
    linear-gradient(to bottom, rgba(24, 26, 15, .42), rgba(24, 26, 15, 0) 18%);
}
.hero__content {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 7rem var(--gutter) calc(var(--hero-fade) + 1rem);
}
.hero__title {
  max-width: 13em;
  font-family: var(--f-serif);
  font-size: clamp(2.5rem, 7.4vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -.01em;
  color: var(--avorio);
  text-wrap: balance;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 2px 26px rgba(0, 0, 0, .4);
}
.hero__lead {
  max-width: 30em;
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(250, 246, 238, .92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}
/* Badge Google */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  padding: .45rem 1rem .45rem .85rem;
  border: 1px solid rgba(207, 178, 122, .55);
  border-radius: 999px;
  font-size: .95rem;
  text-decoration: none;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.badge strong { font-weight: 500; }
.badge__stars { letter-spacing: .1em; font-size: .85rem; line-height: 1; }
.badge--hero {
  margin-top: 1.75rem;
  background: rgba(30, 33, 18, .45);
  color: var(--avorio);
}
.badge--hero .badge__stars { color: var(--oro-chiaro); }
.badge--hero:hover { border-color: var(--oro-chiaro); background: rgba(30, 33, 18, .7); }
.badge--light {
  margin-top: 1.5rem;
  border-color: var(--pietra-scura);
  background: #FFFDF8;
  color: var(--inchiostro);
}
.badge--light .badge__stars { color: #8A6A2F; }
.badge--light:hover { border-color: var(--oro); }

/* Indicatore di scroll */
.scroll-hint {
  position: absolute;
  right: var(--gutter);
  bottom: calc(var(--hero-fade) + 1rem);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  padding: .5rem;
  color: rgba(250, 246, 238, .85);
  font-size: .8rem;
  letter-spacing: .08em;
  text-decoration: none;
}
.scroll-hint__line {
  position: relative;
  width: 1px;
  height: 56px;
  overflow: hidden;
  background: rgba(250, 246, 238, .3);
}
.scroll-hint__line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 40%;
  background: var(--oro-chiaro);
  animation: scroll-line 2.2s var(--ease) infinite;
}
@keyframes scroll-line {
  0% { transform: translateY(-100%); }
  70%, 100% { transform: translateY(260%); }
}

/* Sequenza d'ingresso dell'hero: il titolo sale parola per parola */
/* solo una dissolvenza breve: nessun filtro che ammorbidisca il video */
.js .hero__poster { animation: hero-in-media .8s var(--ease) both; }
.hero__title .w {
  display: inline-block;
  overflow: hidden;
  padding-bottom: .12em;
  margin-bottom: -.12em;
  vertical-align: top;
}
.hero__title .w > span { display: inline-block; }
.js .hero__title .w > span {
  animation: word-up 1.1s var(--ease) both;
  animation-delay: calc(.2s + var(--i) * .07s);
}
.js .hero__lead,
.js .hero__ctas,
.js .badge--hero,
.js .scroll-hint { animation: hero-in 1s var(--ease) both; }
.js .hero__lead { animation-delay: .75s; }
.js .hero__ctas { animation-delay: .9s; }
.js .badge--hero { animation-delay: 1.05s; }
.js .scroll-hint { animation-delay: 1.3s; }

@keyframes hero-in-media { from { opacity: 0; } to { opacity: 1; } }
@keyframes word-up { from { transform: translateY(110%); } to { transform: none; } }
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 959px) {
  /* su telefono il testo occupa metà foto: velo più deciso in basso */
  .hero__veil {
    background:
      linear-gradient(to top, rgba(24, 26, 15, .9) 0%, rgba(24, 26, 15, .72) 34%, rgba(24, 26, 15, .3) 56%, rgba(24, 26, 15, 0) 76%),
      linear-gradient(to bottom, rgba(24, 26, 15, .45), rgba(24, 26, 15, 0) 18%);
  }
  .hero { --hero-fade: 96px; }
  .hero__content { padding-bottom: calc(var(--hero-fade) + 3.5rem); }
  .scroll-hint { right: 50%; transform: translateX(50%); bottom: calc(var(--hero-fade) - .5rem); flex-direction: row; }
  .js .scroll-hint { animation-name: hero-in-x; }
  .scroll-hint__text { display: none; }
  .scroll-hint__line { height: 44px; }
}
@keyframes hero-in-x { from { opacity: 0; transform: translate(50%, 18px); } to { opacity: 1; transform: translateX(50%); } }

/* ---------- Sezioni ---------- */

.section { padding-block: clamp(4.5rem, 10vw, 8rem); overflow-x: clip; }

/* Cornice ad arco: richiama il colonnato del giardino */
.arch {
  padding: 10px;
  border: 1px solid var(--oro);
  border-radius: 999px 999px 3px 3px;
}
.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px 999px 2px 2px;
}
.arch--tall { aspect-ratio: 4 / 5; }
.arch--wide { border-radius: 50% 50% 3px 3px / 26% 26% 3px 3px; }
.arch--wide img { border-radius: 50% 50% 2px 2px / 25% 25% 2px 2px; aspect-ratio: 4 / 3; }

/* Il ristorante */
.ristorante__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3.5rem;
}
.facts {
  margin: 2rem 0 0;
  max-width: 30rem;
  border-top: 1px solid var(--pietra-scura);
}
.facts__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--pietra-scura);
}
.facts dt { color: var(--testo); font-size: .98rem; }
.facts dd {
  margin: 0;
  font-family: var(--f-serif);
  font-size: 1.3rem;
  color: var(--inchiostro);
  text-align: right;
}

.ristorante__media { position: relative; }
.ristorante__media .arch { max-width: 460px; margin-inline: auto; }
.ristorante__arco img { object-position: 40% 50%; }
.ristorante__tavola { margin-top: 1.5rem; }
.ristorante__tavola img { width: 100%; border-radius: 2px; }
.ristorante__tavola figcaption {
  margin-top: .6rem;
  font-size: .9rem;
  font-style: italic;
}

/* La piscina */
.piscina { background: var(--pietra); }
.piscina__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.piscina .arch { border-color: var(--oro); }
.piscina__tramonto img { object-position: 50% 62%; }
.momenti {
  list-style: none;
  max-width: 30rem;
  margin: 1.75rem 0 0;
  padding: 0;
  border-top: 1px solid var(--pietra-scura);
}
.momenti li {
  position: relative;
  padding: .95rem 0 .95rem 1.6rem;
  border-bottom: 1px solid var(--pietra-scura);
}
.momenti li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.45rem;
  width: 7px;
  height: 7px;
  border: 1px solid var(--oro);
  transform: rotate(45deg);
}
.momenti h3 {
  font-family: var(--f-serif);
  font-size: 1.3rem;
  line-height: 1.25;
}
.momenti p { margin-top: .2rem; }
.piscina__altre { margin-top: 2.5rem; }
.piscina__foto figcaption {
  margin-top: .6rem;
  font-size: .9rem;
  font-style: italic;
}

/* Carosello su telefono: si scorre di lato senza allungare la pagina */
.carosello {
  --h: clamp(230px, 68vw, 380px);
  display: flex;
  gap: 10px;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carosello::-webkit-scrollbar { display: none; }
.carosello > * { flex: none; width: min-content; scroll-snap-align: start; }
.carosello img,
.carosello .gallery__item img {
  width: auto;
  max-width: 84vw;
  height: var(--h);
  object-fit: cover;
  border-radius: 2px;
}

/* Caroselli di carte e foto: si scorrono con il dito, puntini e frecce li aggiunge script.js */
.scorre {
  display: flex;
  gap: 12px;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.scorre::-webkit-scrollbar { display: none; }
.scorre > * { flex: none; scroll-snap-align: start; }
@media (max-width: 959px) {
  .scorre-telefono {
    display: flex;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .scorre-telefono::-webkit-scrollbar { display: none; }
  .scorre-telefono > * { scroll-snap-align: start; }
}

.scorre-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 1rem;
  color: var(--oro);
}
.scorre-nav[hidden] { display: none; }
.scorre-nav__punti { display: flex; }
.scorre-nav__punto {
  position: relative;
  width: 22px;
  height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.scorre-nav__punto::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: currentColor;
  opacity: .35;
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease), opacity .3s var(--ease);
}
.scorre-nav__punto.is-active::before { width: 18px; opacity: 1; }
.scorre-nav__freccia {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: opacity .2s var(--ease), background-color .2s var(--ease);
}
.scorre-nav__freccia:hover:not(:disabled) { background: rgba(207, 178, 122, .14); }
.scorre-nav__freccia:disabled { opacity: .3; cursor: default; }
.scorre-nav__freccia::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}
.scorre-nav__freccia--prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.scorre-nav__freccia--next::before { transform: translate(-65%, -50%) rotate(45deg); }
.eventi .scorre-nav { color: var(--oro-chiaro); }

/* Eventi */
.eventi {
  background: var(--oliva-scura);
  color: rgba(250, 246, 238, .82);
}
.eventi .arch { border-color: rgba(207, 178, 122, .6); }

/* Schede degli eventi */
.occasioni {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}
/* su telefono e tablet: carte da scorrere, la successiva si intravede */
.occasione {
  flex: 0 0 min(80%, 320px);
  padding: 1.5rem 1.35rem 1.6rem;
  border: 1px solid rgba(207, 178, 122, .32);
  border-radius: 2px;
  background: rgba(250, 246, 238, .035);
  transition: background-color .3s var(--ease);
}
.occasione:hover { background: #353B25; }
.occasione__icon {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--oro-chiaro);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.occasione h3 {
  margin-top: 1rem;
  font-family: var(--f-serif);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--avorio);
  text-wrap: balance;
}
.occasione p { margin-top: .5rem; }

/* Punti forti */
.forti {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  margin-top: clamp(3.5rem, 8vw, 6rem);
}
.forti__title {
  font-family: var(--f-serif);
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  line-height: 1.1;
  color: var(--avorio);
}
.forti__list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.forti__list li {
  position: relative;
  padding: 1rem 0 1rem 1.6rem;
  border-bottom: 1px solid rgba(207, 178, 122, .25);
}
.forti__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.55rem;
  width: 7px;
  height: 7px;
  border: 1px solid var(--oro-chiaro);
  transform: rotate(45deg);
}
.forti__list h4 {
  margin: 0;
  font-family: var(--f-serif);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--avorio);
}
.forti__list p { margin-top: .25rem; }


/* Come organizziamo */
.passi__head { max-width: 40rem; }
.passi__list {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 3rem 0 0;
  padding: 0;
}
.passo {
  position: relative;
  padding: 0 0 2.25rem 4.5rem;
}
/* filo che unisce i passaggi */
.passo::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 1px;
  background: var(--pietra-scura);
}
.passo:last-child { padding-bottom: 0; }
.passo:last-child::before { display: none; }
.passo__n {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  border: 1px solid var(--oro);
  border-radius: 50%;
  background: var(--avorio);
  font-family: var(--f-serif);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--bordeaux);
}
.passo h3 {
  padding-top: .7rem;
  font-family: var(--f-serif);
  font-size: 1.45rem;
  line-height: 1.2;
  text-wrap: balance;
}
.passo p { margin-top: .45rem; max-width: 30em; }
.passi__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 3rem;
}

/* Giardino */
.giardino { background: var(--pietra); }
.giardino__head { max-width: 40rem; }

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 2.75rem;
}
.gallery__col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.gallery__pair { display: flex; align-items: flex-start; gap: 12px; }

.gallery__item {
  display: block;
  min-width: 0;
  position: relative;
  padding: 0;
  border: 0;
  background: var(--pietra-scura);
  overflow: hidden;
  cursor: zoom-in;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), filter .4s var(--ease);
}
.gallery__item:hover img { transform: scale(1.03); }

.g-fontana { aspect-ratio: 4 / 5; }
.g-fontana img { object-position: 50% 45%; }
.g-archi { aspect-ratio: 16 / 9; }
/* le due foto piccole restano nelle loro proporzioni (logo stampato negli angoli) */
.g-alto { flex: 1.333 1 0; aspect-ratio: 640 / 480; }
.g-rose { flex: 1.506 1 0; aspect-ratio: 720 / 478; }

/* Galleria: carosello su telefono, griglia su computer */
.galleria { background: var(--oliva-scura); color: rgba(250, 246, 238, .82); }
.galleria__head { max-width: 40rem; }
.galleria__grid { margin-top: 2.5rem; }
.galleria__foto { background: rgba(250, 246, 238, .06); }
.galleria__progress {
  height: 1px;
  margin-top: 1.25rem;
  background: rgba(207, 178, 122, .25);
  overflow: hidden;
}
.galleria__progress span {
  display: block;
  height: 100%;
  background: var(--oro-chiaro);
  transform: scaleX(.08);
  transform-origin: left;
}
.galleria__azioni { margin-top: 1.75rem; }

/* Richiesta */
.richiesta__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.richiesta__box {
  background: #FFFDF8;
  border: 1px solid var(--pietra-scura);
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.form {
  display: grid;
  gap: 1.1rem 1.25rem;
}
.field { display: flex; flex-direction: column; min-width: 0; }
.field label {
  margin-bottom: .35rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--inchiostro);
}
.field__opt { font-weight: 400; color: var(--testo); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .85rem;
  border: 1px solid var(--pietra-scura);
  border-radius: 2px;
  background: var(--avorio);
  color: var(--inchiostro);
  font: 400 1rem/1.4 var(--f-sans);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .2s;
}
.field select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237B1F2C' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
}
.field input[type="date"] { min-height: 48px; }
.field input::-webkit-date-and-time-value { text-align: left; }
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--oliva); outline: none; box-shadow: 0 0 0 3px rgba(79, 87, 51, .18); }
.field.has-error input,
.field.has-error select { border-color: var(--bordeaux); }
.field__error {
  min-height: 0;
  margin-top: .3rem;
  font-size: .88rem;
  color: var(--bordeaux);
}
.field__error:empty { display: none; }
.field__hint { margin-top: .3rem; font-size: .88rem; color: var(--testo); }
.req { color: var(--bordeaux); }
.richiesta__wa {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--pietra-scura);
}
.richiesta__wa-testo {
  margin-bottom: .75rem;
  font-family: var(--f-serif);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--oliva);
}
.form__legend { grid-column: 1 / -1; font-size: .9rem; }
.form__summary { margin-top: .75rem; font-size: .92rem; color: var(--bordeaux); }
.form__summary:empty { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Scelta giardino / sala */
.choice { margin: 0; padding: 0; border: 0; }
.choice legend {
  margin-bottom: .5rem;
  padding: 0;
  font-size: .95rem;
  font-weight: 500;
  color: var(--inchiostro);
}
.choice__opts { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.choice__opt { position: relative; display: block; cursor: pointer; }
.choice__opt input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.choice__opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .55rem .75rem;
  border: 1px solid var(--pietra-scura);
  border-radius: 2px;
  background: var(--avorio);
  color: var(--inchiostro);
  font-size: .95rem;
  text-align: center;
  transition: border-color .2s, background-color .2s, color .2s;
}
.choice__opt:hover span { border-color: var(--oliva); }
.choice__opt input:checked + span {
  border-color: var(--oliva);
  background: var(--oliva);
  color: var(--avorio);
}
.choice__opt input:focus-visible + span { outline: 2px solid var(--oro); outline-offset: 2px; }

.form[hidden],
.conferma[hidden] { display: none; }
.conferma:focus { outline: none; }
.conferma__title {
  font-family: var(--f-serif);
  font-size: 2rem;
  color: var(--oliva);
}
.conferma > p { margin-top: .5rem; }
.conferma__list {
  margin: 1.25rem 0;
  border-top: 1px solid var(--pietra-scura);
}
.conferma__list div {
  display: grid;
  grid-template-columns: minmax(7rem, 35%) 1fr;
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--pietra-scura);
}
.conferma__list dt { font-size: .92rem; }
.conferma__list dd { margin: 0; color: var(--inchiostro); overflow-wrap: anywhere; white-space: pre-line; }
.conferma__nota {
  margin: 0 0 1.5rem;
  padding: .85rem 1rem;
  border-left: 2px solid var(--oro);
  background: var(--avorio);
  font-size: .95rem;
}
.conferma__nota a,
.form__summary a { color: var(--bordeaux); font-weight: 500; text-underline-offset: 3px; }
.form .btn[disabled] { opacity: .7; cursor: progress; }
.js .conferma:not([hidden]) { animation: hero-in .6s var(--ease) both; }

/* Dove siamo */
.dove__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.dove__sub {
  margin-top: 2.5rem;
  font-family: var(--f-serif);
  font-size: 1.6rem;
  line-height: 1.2;
}
.dove__addr {
  margin-top: .6rem;
  font-style: normal;
  font-family: var(--f-serif);
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--inchiostro);
}
.dove__tel { margin-top: .75rem; }
.dove__tel a {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--bordeaux);
  text-decoration: none;
}
.dove .note { margin-top: .35rem; }
.dove__btns {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.75rem;
}
.dove__map {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--pietra-scura);
  background: var(--pietra);
}
.dove__map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Matrimonio */
.nozze {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin-top: clamp(3.5rem, 8vw, 6rem);
}
.nozze__title {
  font-family: var(--f-serif);
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  line-height: 1.1;
  color: var(--avorio);
}
.nozze__text p { margin-top: 1rem; max-width: 30em; }
/* carosello di foto verticali, tutte nella stessa proporzione */
.nozze__foto > figure { flex: 0 0 60%; min-width: 0; }
.nozze__foto img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; }
.nozze > .scorre-nav { margin-top: -1rem; }
.nozze__foto figcaption {
  margin-top: .6rem;
  font-size: .9rem;
  font-style: italic;
  color: rgba(250, 246, 238, .75);
}

/* La cucina e i buffet */
.cucina { background: var(--pietra); }
.cucina__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.cucina__more { margin-top: 1rem; max-width: 34em; }
/* foto quadrate da 414px: solo riquadri piccoli */
.piatti {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 860px;
}
.piatto { aspect-ratio: 1 / 1; }
.piatto--grande { grid-column: span 2; grid-row: span 2; }
.piatto--largo { grid-column: span 2; aspect-ratio: 2 / 1; }

/* Fasce fotografiche a tutta larghezza */
.band {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(360px, 62vh, 520px);
  padding: 4rem var(--gutter);
  overflow: hidden;
  background: var(--oliva-scura);
  isolation: isolate;
}
.band__media {
  position: absolute;
  inset: -14% 0;
  z-index: -2;
  will-change: transform;
}
.band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) brightness(.5) saturate(.9);
  transform: scale(1.06);
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(24, 26, 15, .15) 0%, rgba(24, 26, 15, .55) 100%);
}
.band__text {
  max-width: 14em;
  font-family: var(--f-serif);
  font-size: clamp(2.2rem, 7vw, 5.4rem);
  line-height: 1.08;
  text-align: center;
  text-wrap: balance;
  color: var(--avorio);
  text-shadow: 0 2px 30px rgba(0, 0, 0, .45);
}
.band__text::before {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  margin: 0 auto 1.5rem;
  background: var(--oro-chiaro);
}
.js .band__text {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition: opacity 1.4s var(--ease), transform 1.4s var(--ease), filter 1.4s var(--ease);
}
.js .band.is-visible .band__text { opacity: 1; transform: none; filter: none; }

/* Fascia finale: foto nitida al centro, sfumata in alto e in basso */
.band--welcome { background: var(--avorio); }
.band--welcome .band__media img { filter: none; transform: none; }
.band--welcome .band__soft {
  position: absolute;
  inset: 0;
  filter: blur(10px) brightness(.8) !important;
  transform: scale(1.08) !important;
}
/* mai più grande dell'originale (960x638) */
.band--welcome .band__sharp {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(100%, 960px);
  height: min(100%, 638px);
  object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
}
.band--welcome::after {
  background:
    linear-gradient(to bottom, var(--avorio) 0%, rgba(250, 246, 238, 0) 22%, rgba(250, 246, 238, 0) 78%, var(--avorio) 100%),
    radial-gradient(ellipse 60% 45% at 50% 50%, rgba(24, 26, 15, .5) 0%, rgba(24, 26, 15, .2) 100%);
}
.band--welcome .band__text { text-shadow: 0 2px 24px rgba(0, 0, 0, .55), 0 0 2px rgba(0, 0, 0, .35); }

/* Blocco telefono */
.chiama {
  margin-top: 2rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--pietra-scura);
  border-left: 2px solid var(--oro);
  background: #FFFDF8;
}
.chiama__invite {
  font-family: var(--f-serif);
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  line-height: 1.3;
  color: var(--oliva);
}
.chiama__numero {
  display: inline-block;
  margin-top: .5rem;
  font-family: var(--f-serif);
  font-size: clamp(2.3rem, 6.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: .03em;
  white-space: nowrap;
  color: var(--bordeaux);
  text-decoration: none;
}
.chiama__numero:hover { color: var(--bordeaux-scuro); }
.chiama__azioni {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.25rem;
}
.chiama__azioni .btn { border-radius: 999px; }
.chiama__azioni svg,
.btn--facebook svg,
.footer__social svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.chiama__azioni svg:not(.ico-wa) {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}
.btn--facebook svg,
.footer__social svg { fill: currentColor; }
.chiama__btn {
  position: relative;
  min-height: 56px;
  padding: 0 2rem;
  gap: .65rem;
  background: var(--bordeaux);
  color: var(--avorio);
  font-size: 1.1rem;
  letter-spacing: .03em;
  box-shadow: 0 12px 26px -14px rgba(123, 31, 44, .8);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.chiama__btn:hover { background: var(--bordeaux-scuro); transform: translateY(-2px); }
/* alone che pulsa lentamente */
.chiama__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(123, 31, 44, .45);
  animation: alone 2.8s ease-out infinite;
  pointer-events: none;
}
@keyframes alone {
  0% { box-shadow: 0 0 0 0 rgba(123, 31, 44, .45); }
  70%, 100% { box-shadow: 0 0 0 16px rgba(123, 31, 44, 0); }
}
.chiama__wa { min-height: 56px; padding: 0 1.75rem; gap: .6rem; font-size: 1.05rem; }
.chiama__copia { min-height: 56px; padding: 0 1.5rem; gap: .55rem; background: #FFFDF8; }
.chiama__note { margin-top: 1rem; font-size: .98rem; }
.chiama__note a { color: var(--bordeaux); font-weight: 500; text-underline-offset: 3px; white-space: nowrap; }

/* Domande frequenti */
.faq { background: var(--avorio); }
.faq .intro a { color: var(--bordeaux); font-weight: 500; text-underline-offset: 3px; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.faq__list { border-top: 1px solid var(--pietra-scura); }
.faq__item { border-bottom: 1px solid var(--pietra-scura); }
.faq__item summary {
  position: relative;
  display: block;
  padding: 1.15rem 3rem 1.15rem 0;
  font-family: var(--f-serif);
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--inchiostro);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before,
.faq__item summary::after {
  content: "";
  position: absolute;
  right: .6rem;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--bordeaux);
  transition: transform .3s var(--ease);
}
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0deg); }
.faq__item summary:hover { color: var(--bordeaux); }
.faq__answer { padding: 0 3rem 1.35rem 0; max-width: 40em; }
.faq__answer a { color: var(--bordeaux); font-weight: 500; text-underline-offset: 3px; }
.js .faq__item[open] .faq__answer { animation: hero-in .45s var(--ease) both; }

/* Barra contatti su telefono */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
  background: var(--oliva-scura);
  box-shadow: 0 -8px 30px rgba(30, 33, 18, .25);
  transform: translate3d(0, 0, 0);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.callbar.is-visible { opacity: 1; visibility: visible; transition: opacity .3s var(--ease), visibility 0s; }
.callbar .btn { min-height: 50px; padding-inline: .75rem; }
.callbar .ico-wa,
.callbar .ico-tel { width: 18px; height: 18px; }
.btn--light-solid { background: var(--avorio); color: var(--inchiostro); }
.btn--light-solid:hover { background: #fff; }

/* Footer */
.footer {
  padding: 4rem 0 2rem;
  background: var(--oliva-scura);
  color: rgba(250, 246, 238, .78);
  font-size: .98rem;
}
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; color: var(--avorio); }
.footer__brand .logo__script { font-size: 2.8rem; }
.footer__brand .logo__sub { font-size: .85rem; color: var(--oro-chiaro); }
.footer__contacts p + p { margin-top: .25rem; }
.footer__contacts a { color: var(--avorio); text-decoration: none; font-weight: 500; }
.footer__links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.footer__social {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding: .4rem 1.1rem .4rem .8rem;
  border: 1px solid rgba(207, 178, 122, .5);
  border-radius: 999px;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.footer__social:hover { border-color: var(--oro-chiaro); background: rgba(250, 246, 238, .06); }
.footer__credit {
  max-width: var(--max);
  margin: 3rem auto 0;
  padding: 1.5rem var(--gutter) 0;
  border-top: 1px solid rgba(207, 178, 122, .2);
  font-size: .82rem;
  color: rgba(250, 246, 238, .66);
}
.footer__credit a { color: inherit; text-underline-offset: 3px; }
.footer__credit a:hover { color: var(--avorio); }

/* Pagina privacy */
.privacy { padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)); }
.privacy .wrap { max-width: 50rem; }
.privacy h2 {
  margin-top: 2.25rem;
  font-family: var(--f-serif);
  font-size: 1.6rem;
  color: var(--oliva);
}
.privacy p, .privacy ul { margin-top: .75rem; }
.privacy ul { padding-left: 1.25rem; }
.privacy a { color: var(--bordeaux); font-weight: 500; text-underline-offset: 3px; }
.privacy__back { margin-top: 3rem; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 26, 15, .96);
  opacity: 0;
  transition: opacity .3s var(--ease);
  touch-action: pinch-zoom;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox__figure {
  transition: transform .3s var(--ease), opacity .3s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: calc(100vw - 2rem);
  padding: 4.5rem 0 2.75rem;
}
/* nessuna dimensione forzata: le foto piccole non vengono mai ingrandite oltre l'originale */
.lightbox__img {
  max-width: min(100%, 1400px);
  max-height: calc(100vh - 9rem);
  max-height: calc(100svh - 9rem);
  width: auto;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity .25s var(--ease);
}
.lightbox__img.is-loading { opacity: 0; }
.lightbox__frame { display: flex; justify-content: center; }
.lightbox__img { box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.lightbox__dots {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  display: flex;
  gap: .5rem;
  transform: translateX(-50%);
}
.lightbox__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(250, 246, 238, .3);
  transition: background-color .25s, transform .25s;
}
.lightbox__dots span.is-active { background: var(--oro-chiaro); transform: scale(1.3); }
.lightbox__cap {
  display: flex;
  gap: 1rem;
  margin-top: .9rem;
  max-width: 40rem;
  color: rgba(250, 246, 238, .82);
  font-size: .92rem;
  text-align: center;
}
#lb-count { color: var(--oro-chiaro); white-space: nowrap; }

.lightbox__close,
.lightbox__nav {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(250, 246, 238, .3);
  border-radius: 50%;
  background: rgba(24, 26, 15, .5);
  color: var(--avorio);
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.lightbox__close:hover,
.lightbox__nav:hover { border-color: var(--oro-chiaro); background: rgba(24, 26, 15, .8); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__close::before,
.lightbox__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: currentColor;
}
.lightbox__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.lightbox__close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox__nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}
.lightbox__nav--prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.lightbox__nav--next::before { transform: translate(-65%, -50%) rotate(45deg); }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 90;
  padding: .75rem 1.25rem;
  background: var(--oliva-scura);
  color: var(--avorio);
  font-size: .95rem;
  border-radius: 2px;
  box-shadow: 0 8px 30px rgba(30, 33, 18, .25);
  transform: translate(-50%, 1rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Immagini: entrata laterale alternata ---------- */

.js .slide {
  opacity: 0;
  transform: translate3d(var(--dx, 56px), 0, 0);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .slide.is-in { opacity: 1; transform: none; }
@media (max-width: 599px) {
  .js .slide { transform: translate3d(calc(var(--dx, 56px) * .85), 0, 0); }
  .js .slide.is-in { transform: none; }
}

/* ---------- Comparsa allo scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Tablet e desktop ---------- */

@media (max-width: 959px) {
  /* spazio per la barra contatti */
  .footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
  body.callbar-on .toast { bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}

@media (max-width: 959px) {
  .occasione__icon { width: 40px; height: 40px; }
  .occasione h3 { font-size: 1.35rem; }
  /* "Cosa trovate": carte da scorrere; il gazebo compare nel carosello del matrimonio */
  .forti__gazebo { display: none; }
  .forti__list { margin-top: 1.25rem; }
  .forti__list li {
    flex: 0 0 min(72%, 290px);
    padding: 1.2rem 1.2rem 1.3rem 2.6rem;
    border: 1px solid rgba(207, 178, 122, .3);
    border-radius: 2px;
    background: rgba(250, 246, 238, .035);
  }
  .forti__list li::before { left: 1.15rem; top: 1.75rem; }
}

@media (max-width: 599px) {
  .chiama__azioni .btn { width: 100%; }
}

@media (max-width: 959px) {
  .band { min-height: clamp(320px, 56vh, 440px); }
  .band__media img { filter: blur(2px) brightness(.5) saturate(.9); }
}

@media (min-width: 600px) {
  .nozze__foto > figure { flex-basis: 40%; }
  .piatti { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .piatto--largo { grid-column: auto; aspect-ratio: 1 / 1; }
  .choice__opts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .header .btn--small { padding-inline: .9rem; }
  .logo__script { font-size: 1.85rem; }
  .hero__ctas .btn { flex: 1 1 0; padding-inline: 1rem; }
  .dove__btns .btn { flex: 1 1 auto; }
}

@media (min-width: 720px) {
  .form { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; align-items: end; }
}

@media (min-width: 960px) {
  :root { --header-h: 80px; }
  .logo__script { font-size: 2.4rem; }

  .ristorante__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
  }
  .ristorante__media { padding-bottom: 5rem; }
  .ristorante__media .arch { margin-inline: auto 0; margin-right: 6%; }
  .ristorante__tavola {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 52%;
    margin: 0;
    padding: 10px;
    background: var(--avorio);
    box-shadow: 0 18px 40px -20px rgba(47, 53, 32, .35);
  }

  .eventi__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; align-items: end; }
  .eventi__head .intro { margin-top: 0; }
  /* sul computer la griglia 3x2: tutte le carte a colpo d'occhio */
  .occasioni {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 3rem;
    border: 1px solid rgba(207, 178, 122, .3);
    background: rgba(207, 178, 122, .3);
  }
  .occasione { padding: 2.25rem 2rem 2.4rem; border: 0; border-radius: 0; background: var(--oliva-scura); }
  .forti {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 4.5rem;
    align-items: center;
  }

  .passi__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; }
  .passo { padding: 5rem 0 0; }
  .passo:last-child { padding-bottom: 0; }
  .passo::before { left: 56px; right: -2.5rem; top: 27px; bottom: auto; width: auto; height: 1px; }
  .passo h3 { padding-top: 0; }
  .passi__cta { justify-content: flex-start; }

  .nozze {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 4rem;
    align-items: center;
  }
  /* due foto alla volta, le altre con le frecce (sotto le foto) */
  .nozze { row-gap: 1.25rem; }
  .nozze > .scorre-nav { grid-column: 2; margin-top: 0; }
  .nozze__foto { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .nozze__foto > figure { flex-basis: calc((100% - 12px) / 2); }
  .solo-telefono { display: none; }
  .cucina__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 5rem;
    align-items: center;
  }

  .piscina__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 4.5rem;
    align-items: center;
  }
  .piscina__tramonto { order: -1; }
  /* tre foto alla stessa altezza, nelle loro proporzioni */
  .piscina__altre {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 3.5rem 0 0;
    padding: 0;
    overflow: visible;
  }
  .piscina__foto { width: auto; min-width: 0; }
  .piscina__foto--l { flex: 1.5 1 0; }
  .piscina__foto--p { flex: .75 1 0; }
  .piscina__foto img { width: 100%; max-width: none; height: auto; }

  /* griglia su 12 colonne: righe di una orizzontale e due verticali, l'ultima di tre orizzontali */
  .galleria__head { max-width: none; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; align-items: end; }
  .galleria__head .intro { margin-top: 0; }
  .galleria__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
    margin: 3rem 0 0;
    padding: 0;
    overflow: visible;
  }
  .galleria__foto { width: auto; grid-column: span 3; }
  .galleria__foto.g-l { grid-column: span 6; aspect-ratio: 3 / 2; }
  .galleria__foto.g-t { grid-column: span 4; aspect-ratio: 3 / 2; }
  .galleria__grid .galleria__foto img { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; border-radius: 0; }
  .galleria__grid .is-extra { display: none; }
  .galleria__grid.is-open .is-extra { display: block; animation: hero-in .7s var(--ease) both; animation-delay: calc(var(--n, 0) * 70ms); }
  .galleria__progress { display: none; }
  .galleria__azioni { margin-top: 2.25rem; text-align: center; }
  .band { min-height: clamp(420px, 70vh, 640px); }

  .faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 5rem; align-items: start; }
  .faq__head { position: sticky; top: calc(var(--header-h) + 2rem); }

  .callbar { display: none; }

  .gallery { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; }
  .gallery__col, .gallery__pair { gap: 16px; }
  .gallery { align-items: start; }
  .g-fontana { aspect-ratio: auto; align-self: stretch; }
  .g-fontana img { position: absolute; inset: 0; }

  .richiesta__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 5rem; align-items: start; }
  .richiesta__text { position: sticky; top: calc(var(--header-h) + 2rem); }

  .dove__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 4.5rem; align-items: start; }
  .dove__map { position: sticky; top: calc(var(--header-h) + 2rem); aspect-ratio: 4 / 5; }
}

/* ---------- Movimento ridotto ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .slide { opacity: 1; transform: none; }
  .scroll-hint__line::after { display: none; }
  .chiama__btn::before { animation: none; display: none; }
  .btn--contattaci { animation: none; }
  .js .band__text { opacity: 1; transform: none; filter: none; }
  .js .hero__poster { animation: none; }
  .hero__video { display: none; }
}
