/* ==========================================================================
   Villa Santa Barbara — Eventi
   Stile ispirato a Il Borro: video di sfondo, titoli romani maiuscoli,
   header trasparente, animazioni in dissolvenza
   ========================================================================== */

:root {
  --cream: #f5f2ea;
  --cream-2: #ece7db;
  --ink: #2b2a26;
  --body: #4b4f58;
  --muted: #8a8578;
  --gold: #a98b54;
  --wine: #6e2434;
  --dark: #12100d;
  --line: rgba(43, 42, 38, .16);
  --line-light: rgba(245, 242, 234, .35);
  --display: 'Cinzel', 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--body);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--gold); color: #fff; }

.wrap { width: min(1360px, 100%); margin-inline: auto; padding-inline: var(--pad); }
.center { text-align: center; }

/* ---------- tipografia ---------- */

.h-display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.4vw, 4.4rem);
  line-height: 1.12;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink);
}

.h-display--light { color: #fdfbf6; }

.h-sub {
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.5;
}

.label {
  font-size: .68rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.label--light { color: rgba(253, 251, 246, .85); }

.lead { color: var(--ink); font-size: 1.08rem; letter-spacing: .01em; }

.link-rule {
  display: inline-block;
  margin-top: 2.4rem;
  padding: .35rem 0 .35rem 1.2rem;
  border-left: 1px solid var(--line);
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink);
  transition: border-color .6s var(--ease), color .6s var(--ease), padding-left .6s var(--ease);
}

.link-rule:hover { border-color: var(--gold); color: var(--gold); padding-left: 1.6rem; }

.btn {
  display: inline-block;
  padding: .85rem 2rem;
  border: 1px solid rgba(253, 251, 246, .7);
  color: #fdfbf6;
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}

.btn:hover { background: #fdfbf6; color: var(--dark); border-color: #fdfbf6; }

/* ---------- header ---------- */
.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  transition: background .7s var(--ease), box-shadow .7s var(--ease), padding .7s var(--ease);
  padding: 1.05rem 0;
}
.hdr__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.2rem;
  width: min(1600px, 100%);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.hdr__left { display: flex; align-items: center; gap: 1.05rem; }
.burger {
  display: grid;
  grid-auto-flow: row;
  justify-items: start;
  gap: 9.5px;
  align-content: center;
  padding: .6rem .6rem .6rem 0;
  min-width: 56px;
  min-height: 44px;
}
.burger span {
  display: block;
  width: 48px;
  height: 2px;
  border-radius: 1px;
  background: #fdfbf6;
  transition: background .5s var(--ease), transform .5s var(--ease), opacity .35s var(--ease);
}
.burger:hover span { background: var(--gold); }
.burger[aria-expanded=true] span:nth-child(1) { transform: translateY(12px) rotate(45deg); }
.burger[aria-expanded=true] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded=true] span:nth-child(3) { transform: translateY(-12px) rotate(-45deg); }
.hdr__quick { display: flex; gap: .55rem; }
.hdr__quick a {
  color: rgba(253, 251, 246, .92);
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 44px;
  transition: color .4s var(--ease), transform .4s var(--ease);
}
.hdr__quick a:hover { color: var(--gold); transform: translateY(-2px); }
.langs {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.55;
}
.langs a { color: rgba(253, 251, 246, .62); }
.langs a:hover { color: var(--gold); }
.langs__current { color: #fdfbf6; font-weight: 500; }
.hdr__brand { text-align: center; color: #fdfbf6; transition: color .7s var(--ease); }
.hdr.is-scrolled .hdr__brand { color: var(--ink); }
/* ---------- logo tipografico (solo testo, niente svg) ---------- */
.brand-txt { display: flex; flex-direction: column; align-items: center; gap: .38em; line-height: 1; color: currentColor; }
.brand-txt__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(.74rem, 2.3vw, 1.06rem);
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-txt__sub {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(.5rem, 1.2vw, .58rem);
  letter-spacing: .4em;
  text-transform: uppercase;
  opacity: .78;
  padding-left: .4em; /* compensa lo spaziatura finale */
}
.menu__brand { color: #2e2a24; }
.menu__brand .brand-txt { align-items: flex-start; }
.menu__brand .brand-txt__name { font-size: clamp(1.05rem, 3vw, 1.4rem); }
.menu__brand .brand-txt__sub { font-size: .64rem; opacity: .6; }
.ftr__brand { margin-bottom: .9rem; color: #fdfbf6; }
.ftr__brand .brand-txt { align-items: flex-start; }
.ftr__brand .brand-txt__name { font-size: clamp(1rem, 2.4vw, 1.25rem); }
.ftr__brand .brand-txt__sub { font-size: .62rem; opacity: .7; }
.hdr__right { justify-self: end; }
.hdr__cta {
  display: inline-block;
  text-align: center;
  padding: .8rem 1.7rem;
  border: 1px solid rgba(253, 251, 246, .55);
  color: #fdfbf6;
  font-size: .66rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .6s var(--ease), color .6s var(--ease), border-color .6s var(--ease);
}
.hdr__cta:hover { background: #fdfbf6; color: var(--dark); border-color: #fdfbf6; }
.hdr.is-scrolled { background: rgba(245, 242, 234, .96); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); padding: .7rem 0; }
.hdr.is-scrolled .burger span { background: var(--ink); }
.hdr.is-scrolled .hdr__quick a { color: var(--ink); }
.hdr.is-scrolled .langs a { color: var(--muted); }
.hdr.is-scrolled .langs__current { color: var(--ink); }
.hdr.is-scrolled .hdr__brand { color: var(--ink); }
.hdr.is-scrolled .hdr__cta { color: var(--ink); border-color: var(--line); }
.hdr.is-scrolled .hdr__cta:hover { background: var(--ink); color: var(--cream); }
section[id] { scroll-margin-top: 84px; }
/* ---------- menu laterale ---------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 88;
  background: rgba(14, 12, 10, .55);
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.scrim[hidden] { display: none; }
.scrim.is-on { opacity: 1; }
.menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 90;
  width: min(620px, 94vw);
  display: grid;
  grid-template-columns: 76px 1fr;
  transform: translateX(-103%);
  transition: transform .7s var(--ease), visibility 0s linear .7s;
  visibility: hidden;
}
.menu[hidden] { display: none; }
.menu.is-open {
  transform: none;
  visibility: visible;
  transition: transform .7s var(--ease);
}
.menu__strip { background: #e7dfcc; display: flex; justify-content: center; padding-top: 1.3rem; }
.menu__close {
  display: grid;
  gap: .45rem;
  justify-items: center;
  align-content: start;
  color: #3a352c;
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  min-width: 56px;
  min-height: 56px;
}
.menu__close:hover { color: var(--gold); }
.menu__x { font-size: 2rem; line-height: 1; font-weight: 300; }
.menu__panel {
  background: #faf7ef;
  color: #3a352c;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.7rem clamp(1.7rem, 4vw, 3rem) 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.menu__brand { color: #2e2a24; }
.menu__nav { display: grid; gap: .3rem; margin-top: .5rem; }
.menu__nav a {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.5;
  color: #6e3b3f;
  opacity: 0;
  transform: translateX(-22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), color .4s var(--ease);
}
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu__nav a:hover { color: var(--gold); }
.menu__boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin-top: .4rem; }
.menu__box {
  border: 1px solid #9a6b6f;
  color: #6e3b3f;
  padding: .6rem .55rem;
  min-height: 62px;
  display: grid;
  place-items: center;
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.menu__box:hover, .menu__box:focus-visible { background: #6e3b3f; color: #faf7ef; border-color: #6e3b3f; }
.menu__ico { width: 32px; height: 32px; display: block; }
.menu__mini { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: #8a8578; }
.menu__mini a:hover { color: var(--gold); }
.menu__social { display: flex; gap: .7rem; }
.menu__social a {
  width: 44px;
  height: 44px;
  border: 1px solid #b9b0a0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #6e3b3f;
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.menu__social a:hover { background: #6e3b3f; border-color: #6e3b3f; color: #faf7ef; }
.menu__addr { font-size: .8rem; line-height: 1.9; color: #8a8578; }
.menu__addr a:hover { color: var(--gold); }
.menu__langs { display: none; gap: 1.2rem; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; }
.menu__langs a { color: #8a8578; }
.menu__langs a:hover { color: var(--gold); }
.menu__langs .is-current { color: #6e3b3f; }
/* ---------- hero ---------- */

.hero { position: relative; min-height: 100svh; overflow: hidden; display: grid; align-items: end; }
.hero__media { position: absolute; inset: -6% 0; transform: translateZ(0); }
.hero__video { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transform: translateZ(0); backface-visibility: hidden; will-change: transform; }
.hero__photo { display: none; position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 11, 9, .42) 0%, rgba(12, 11, 9, .12) 42%, rgba(12, 11, 9, .66) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad) clamp(4rem, 10vh, 8rem);
  max-width: 1360px;
  margin-inline: auto;
  width: 100%;
  text-align: center;
}

.hero__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #fdfbf6;
  text-shadow: 0 2px 30px rgba(12, 11, 9, .45);
}

/* ---------- frase firma sotto l'apertura ---------- */

.claim {
  padding: clamp(1.8rem, 3.5vw, 2.8rem) 0;
  text-align: center;
}

.claim__line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 58ch;
  margin-inline: auto;
}

.hero__scroll {
  position: absolute;
  right: var(--pad);
  bottom: 3rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .6rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(253, 251, 246, .8);
}
.hero__scroll span { display: block; width: 46px; height: 1px; background: currentColor; transform-origin: left; animation: scrollLine 2.6s infinite var(--ease); }
@keyframes scrollLine { 0%, 100% { transform: scaleX(.3); opacity: .4; } 50% { transform: scaleX(1); opacity: 1; } }

/* ---------- sezioni ---------- */

.sec { padding: clamp(3.2rem, 7vw, 6rem) 0; }
.sec--tight { padding-top: clamp(2rem, 4vw, 3.6rem); }
.sec--alt { background: var(--cream-2); }

.sec__head { max-width: 780px; margin-bottom: clamp(1.8rem, 3.5vw, 3rem); }
.sec__head--center { margin-inline: auto; text-align: center; }
.sec__head .h-display { margin-bottom: 1.8rem; }
.sec__head p { max-width: 62ch; margin-inline: auto; }
.sec__note { margin-top: clamp(2rem, 4vw, 3rem); font-family: var(--serif); font-size: 1.5rem; font-style: italic; color: var(--muted); }

.duo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.6rem, 4vw, 4rem); align-items: center; }
.duo--rev .duo__text { order: 2; }
.duo--rev .duo__media { order: 1; }
.duo__text .h-display { margin-bottom: 1.2rem; }
.duo__text p + p { margin-top: 1.1rem; }
.duo__media { overflow: hidden; }
.duo__media img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 2s var(--ease); }
.duo__media:hover img { transform: scale(1.04); }
.duo__media--stack { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.8rem, 1.6vw, 1.4rem); align-items: start; }
.duo__media--stack figure { overflow: hidden; }
.duo__media--stack img { aspect-ratio: 3 / 4; }
.duo__media--stack figure:nth-child(2) { margin-top: clamp(1.6rem, 5vw, 4rem); }

.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.6rem, 4vw, 4rem); margin-top: clamp(2.8rem, 6vw, 5rem); padding-top: clamp(2rem, 4vw, 3.4rem); border-top: 1px solid var(--line); }
.cols2 .h-sub { margin-bottom: .8rem; }

.tags { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2rem; }
.tags li { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* ---------- sezioni con immagine di sfondo ---------- */

.bgsection { position: relative; min-height: 78vh; overflow: hidden; display: grid; align-content: center; color: #fdfbf6; }
.bgsection--tall { min-height: 92vh; }
.bgsection__img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.bgsection__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 11, 9, .45), rgba(12, 11, 9, .15) 45%, rgba(12, 11, 9, .5)); }
.bgsection__head { position: relative; z-index: 2; width: min(1360px, 100%); margin-inline: auto; padding: clamp(3rem, 8vw, 7rem) var(--pad); }
.bgsection__head .h-display { max-width: 18ch; }
.bgsection__sub { margin-top: 1.6rem; color: rgba(253, 251, 246, .9); font-size: 1.05rem; max-width: 44ch; }

/* ---------- cards ---------- */

/* ---------- fasce con incisione d'epoca ---------- */

.band {
  position: relative;
  overflow: hidden;
  background: #6b2130;
  color: #f7f4ec;
  padding: clamp(3.2rem, 7vw, 6.4rem) 0 0;
}

.band--verde { background: #3b4a33; }
.band--bruno { background: #4a3625; }
.band--blu { background: #2f4152; }

.band__img {
  position: absolute;
  inset: -10% 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  opacity: .3;
  filter: grayscale(1) contrast(1.08) brightness(1.06);
  mix-blend-mode: screen;
}

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 12, 10, .38) 0%, rgba(14, 12, 10, .05) 45%, rgba(14, 12, 10, .34) 100%);
}

.band__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding-bottom: clamp(2.4rem, 5vw, 4rem);
}

.band__media {
  position: relative;
  z-index: 2;
  width: min(1240px, 86%);
  margin-inline: auto;
  overflow: hidden;
}

.band__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.band__eyebrow {
  font-size: .66rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(247, 244, 236, .75);
  margin-bottom: 1.3rem;
}

.band__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fbf8f1;
  max-width: 18ch;
}

.band__text p { color: rgba(247, 244, 236, .86); font-size: 1rem; line-height: 1.95; }

.link-rule--light { border-color: rgba(247, 244, 236, .45); color: #fbf8f1; }
.link-rule--light:hover { border-color: var(--gold); color: var(--gold); }

.cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 2px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: .2rem;
}
.cards::-webkit-scrollbar { display: none; }
.cards--grid { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
.cards--grid .card { scroll-snap-align: none; }

.card { position: relative; scroll-snap-align: start; overflow: hidden; background: var(--cream-2); }
.card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 3.6; transition: transform 2s var(--ease); }
.card:hover img { transform: scale(1.05); }

.card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.4rem 1.4rem 1.6rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(12, 11, 9, 0), rgba(12, 11, 9, .55));
}
.card__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fdfbf6;
}
.card__meta { margin-top: .45rem; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(253, 251, 246, .8); }

.cards--grid .card__body { position: static; background: none; padding: 1.4rem 0 0; text-align: left; }
.cards--grid .card__title { color: var(--ink); }
.cards--grid .card__meta { color: var(--muted); }
.cards--grid .card { background: none; }
.cards--grid .card img { aspect-ratio: 4 / 3; }
.cards--grid + * { margin-top: 2rem; }

/* ---------- timeline ---------- */

.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.4rem, 3vw, 3rem); }
.timeline__step { padding-top: 2rem; border-top: 1px solid var(--line); }
.timeline__num { display: block; font-family: var(--display); font-size: .85rem; letter-spacing: .3em; color: var(--gold); margin-bottom: .9rem; }
.timeline__step .h-sub { font-size: 1rem; margin-bottom: .7rem; }
.timeline__step p { font-size: .95rem; }

/* ---------- gallery ---------- */

/* ---------- accessibilità ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- come raggiungerci ---------- */

.reach { margin-top: 1.8rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 2.4rem; }
.reach li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--body); }
.reach li span:last-child { color: var(--muted); letter-spacing: .06em; }

/* ---------- domande frequenti ---------- */

.faq { max-width: 900px; margin-inline: auto; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: var(--ink);
  transition: color .5s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-family: var(--display); font-size: 1.3rem; color: var(--gold); line-height: 1; }
.faq__item[open] summary::after { content: "–"; }
.faq__item summary:hover { color: var(--gold); }
.faq__item p { padding: 0 0 1.7rem; color: var(--muted); max-width: 72ch; }

.gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding-inline: 2px; }
.gal__item { padding: 0; overflow: hidden; background: var(--cream-2); }
.gal__item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 2s var(--ease), opacity .6s var(--ease); }
.gal__item:hover img { transform: scale(1.06); opacity: .9; }

/* ---------- contatti ---------- */

.contact { position: relative; overflow: hidden; color: #fdfbf6; padding: clamp(4.5rem, 9vw, 9rem) 0; }
.contact__img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; }
.contact__shade { position: absolute; inset: 0; background: rgba(14, 12, 10, .74); }
.contact__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.4rem, 6vw, 6rem); align-items: start; }
.contact__text .h-display { margin-bottom: 1.6rem; }
.contact__list { margin-top: 2.4rem; display: grid; gap: .9rem; font-size: .95rem; }
.contact__list span { display: block; font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: .15rem; }
.contact__list a:hover { color: var(--gold); }

.form { background: rgba(18, 16, 13, .55); backdrop-filter: blur(6px); border: 1px solid var(--line-light); padding: clamp(1.8rem, 3vw, 2.8rem); display: grid; gap: 1.1rem; }
.form .h-sub { color: #fdfbf6; margin-bottom: .6rem; }
.form label { display: grid; gap: .45rem; font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(253, 251, 246, .7); }
.form input, .form select, .form textarea {
  width: 100%; padding: .8rem .2rem; background: transparent; border: 0; border-bottom: 1px solid var(--line-light);
  color: #fdfbf6; font-family: var(--sans); font-size: 1rem; font-weight: 300; border-radius: 0;
}
.form select { appearance: none; }
.form option { color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.form__note { font-size: .72rem; color: rgba(253, 251, 246, .55); }

/* ---------- footer ---------- */

.ftr { background: var(--dark); color: #fdfbf6; padding: clamp(3rem, 6vw, 5rem) 0; }
.ftr__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: clamp(1.8rem, 5vw, 4rem); }
.ftr__brand { margin-bottom: .9rem; color: #fdfbf6; }
.ftr__muted { color: rgba(253, 251, 246, .6); font-size: .85rem; }
.ftr__nav { display: grid; gap: .5rem; align-content: start; }
.ftr__nav a { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(253, 251, 246, .8); }
.ftr__nav a:hover, .ftr__muted a:hover { color: var(--gold); }
.ftr__legal { display: grid; gap: .45rem; align-content: start; }

/* ---------- lightbox ---------- */

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12, 10, 8, .95); display: grid; place-items: center; padding: 4vw; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox__close { position: absolute; top: 1.2rem; right: 1.6rem; font-size: 2.4rem; line-height: 1; color: #fdfbf6; }

/* ---------- animazioni (stile Elementor) ---------- */

.anim {
  opacity: 0;
  transition: opacity 1.8s var(--ease), transform 1.8s var(--ease), clip-path 1.6s var(--ease), filter 1.4s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
  will-change: opacity, transform;
}
.anim.anim-fadeInUp { transform: translateY(46px); }
.anim.anim-slideInUp { transform: translateY(90px); }
.anim.anim-slideInLeft { transform: translateX(-70px); }
.anim.anim-slideInRight { transform: translateX(70px); }
.anim.anim-fadeIn { transform: none; }
.anim.is-in { opacity: 1; transform: none; }

/* ---------- reveal delle immagini (stile Il Borro) ---------- */
.duo__media.anim,
.band__media.anim,
.duo__media--stack figure.anim,
.card.anim,
.gal__item.anim {
  clip-path: inset(12% 7% 12% 7% round 2px);
}
.duo__media.anim.is-in,
.band__media.anim.is-in,
.duo__media--stack figure.anim.is-in,
.card.anim.is-in,
.gal__item.anim.is-in {
  clip-path: inset(0 0 0 0 round 2px);
}

/* ---------- titoli che si mettono a fuoco entrando ---------- */
.h-display.anim { filter: blur(10px); }
.h-display.anim.is-in { filter: blur(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim { opacity: 1; transform: none; transition: none; clip-path: none; filter: none; }
  .hero__scroll span { animation: none; }
}

/* ---------- responsive ---------- */

/* mobile first: telefoni e tablet */
body {
  -webkit-tap-highlight-color: rgba(169, 139, 84, .25);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.hdr { padding-top: calc(1.1rem + env(safe-area-inset-top)); }
.hdr.is-scrolled { padding-top: calc(.7rem + env(safe-area-inset-top)); }
.hdr__cta, .link-rule, .hdr__quick a { min-height: 44px; display: inline-flex; align-items: center; }
.menu__nav a { padding: .55rem 0; }
.band__media { padding-bottom: env(safe-area-inset-bottom); }

@media (max-width: 1180px) {
  .hdr__quick { display: none; }
  .duo { grid-template-columns: 1fr; }
  .duo--rev .duo__text, .duo--rev .duo__media { order: initial; }
  .cards { grid-auto-columns: minmax(260px, 70vw); }
  .cards--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__grid { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .band__inner { grid-template-columns: 1fr; gap: 1.6rem; }
  .band__title { max-width: none; font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .band__media { width: 88%; }
}

@media (max-width: 720px) {
  .hdr__cta { display: none; }
  .hdr__row { gap: .7rem; }
  .burger { min-width: 46px; gap: 8px; }
  .burger span { width: 42px; }
  .hdr__brand .brand-txt__name { letter-spacing: .1em; }
  .langs { display: none; }
  .menu__langs { display: flex; }
  .cards--grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form__row { grid-template-columns: 1fr; }
  .duo__media--stack { gap: .6rem; }
  .sec__note { font-size: 1.25rem; }
  .bgsection { min-height: 62vh; }
  .sec { padding: 3.6rem 0; }
  .sec--tight { padding-top: 2.4rem; }
  .hero { min-height: 92svh; }
  /* il video ora viene mostrato anche su mobile (versione leggera); la foto resta dietro come fallback */
  .hero__photo { display: block; }
  .hero__inner { padding-bottom: 3.4rem; }
  .hero__title { font-size: clamp(1.85rem, 9.5vw, 2.9rem); letter-spacing: .05em; }
  .hero__scroll { display: none; }
  .cards { grid-auto-columns: minmax(230px, 78vw); }
  .card img { aspect-ratio: 3 / 3.4; }
  .card__body { padding: 2rem 1rem 1.2rem; }
  .bgsection { min-height: 58vh; }
  .bgsection__head { padding: 2.6rem var(--pad); }
  .bgsection__head .h-display { font-size: clamp(1.75rem, 8.5vw, 2.6rem); }
  .contact { padding: 3.4rem 0; }
  .form { padding: 1.4rem; }
  .ftr__grid { grid-template-columns: 1fr; gap: 2rem; }
  .menu__nav a { font-size: clamp(1.35rem, 7vw, 2rem); }
  .menu__close { top: calc(1.2rem + env(safe-area-inset-top)); }
  .band { padding: 3rem 0 0; }
  .band__media { width: 92%; }
  .band__media img { aspect-ratio: 4 / 3; }
  /* contatti: la foto non viene piu stirata su tutta la sezione */
  .contact { background: #14120f; padding-top: 0; }
  .contact__img { inset: 0 0 auto; height: 44vh; min-height: 240px; max-height: 340px; }
  .contact__shade { inset: 0 0 auto; height: 44vh; min-height: 240px; max-height: 340px; background: linear-gradient(180deg, rgba(14, 12, 10, .32) 0%, rgba(20, 18, 15, .92) 100%); }
  .contact__grid { padding-top: clamp(1.8rem, 7vw, 3rem); }

  /* fasce incise: l incisione resta in alto invece di coprire tutta la fascia */
  .band__img { inset: 0 0 auto; height: 300px; }
}

@media (max-width: 420px) {
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .label { letter-spacing: .26em; }
}

/* ==========================================================================
   Avviso cookie + pagine legali (privacy & cookie)
   ========================================================================== */

/* ---------- banner cookie ---------- */

.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  background: rgba(18, 16, 13, .97);
  border-top: 1px solid rgba(169, 139, 84, .45);
  color: #f5f2ea;
  padding: .95rem 0 calc(.95rem + env(safe-area-inset-bottom));
  transform: translateY(110%);
  opacity: 0;
  transition: transform .8s var(--ease), opacity .6s var(--ease);
}
.cookie[hidden] { display: none; }
.cookie.is-visible { transform: none; opacity: 1; }
.cookie__inner {
  width: min(1360px, 100%);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2.6rem);
}
.cookie__text { font-size: .82rem; line-height: 1.7; color: rgba(245, 242, 234, .78); max-width: 76ch; }
.cookie__text strong {
  display: block;
  font-family: var(--display);
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .3rem;
}
.cookie__text a { color: #fdfbf6; border-bottom: 1px solid rgba(169, 139, 84, .55); }
.cookie__text a:hover { color: var(--gold); }
.cookie__actions { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }
.cookie__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .65rem 1.5rem;
  border: 1px solid rgba(245, 242, 234, .35);
  color: #f5f2ea;
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.cookie__btn:hover { border-color: #f5f2ea; background: rgba(245, 242, 234, .08); }
.cookie__btn--solid { background: var(--gold); border-color: var(--gold); color: #191510; font-weight: 500; }
.cookie__btn--solid:hover { background: #c2a26b; border-color: #c2a26b; color: #191510; }

/* ---------- pagine legali ---------- */

body.page-legal { display: flex; flex-direction: column; min-height: 100vh; }
.page-legal .hdr {
  position: sticky;
  top: 0;
  padding: .9rem 0;
  background: rgba(245, 242, 234, .97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.page-legal main { flex: 1 0 auto; }
.page-legal .hdr__brand { text-align: left; }
.page-legal .hdr .hdr__brand-name { color: var(--ink); }
.page-legal .hdr .hdr__brand-place { color: var(--muted); }
.page-legal .hdr .langs a { color: var(--muted); }
.page-legal .hdr .langs a:hover { color: var(--gold); }
.page-legal .hdr .langs__current { color: var(--ink); }
.page-legal .hdr .hdr__cta { color: var(--ink); border-color: var(--line); padding: .7rem 1.3rem; }
.page-legal .hdr .hdr__cta:hover { background: var(--ink); border-color: var(--ink); color: #fdfbf6; }
.page-legal .langs { flex-direction: row; align-items: center; gap: 1rem; }

.legal { padding: clamp(2.4rem, 6vw, 4.6rem) 0 clamp(3rem, 8vw, 5.4rem); }
.legal .wrap { max-width: 900px; }
.legal h1 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1.18;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}
.legal-lead {
  margin-top: 1.3rem;
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
  padding-left: 1.15rem;
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.7;
  color: var(--ink);
}
.legal h2 {
  margin: 2.3rem 0 .85rem;
  font-family: var(--display);
  font-size: clamp(.95rem, 1.5vw, 1.12rem);
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--wine);
}
.legal p, .legal li { font-size: .95rem; line-height: 1.95; }
.legal p + p { margin-top: .85rem; }
.legal ul { display: grid; gap: .5rem; margin-top: .7rem; }
.legal li { position: relative; padding-left: 1.35rem; }
.legal li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .82em;
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}
.legal a { color: var(--wine); border-bottom: 1px solid rgba(110, 36, 52, .3); }
.legal a:hover { color: var(--gold); border-color: var(--gold); }
.legal__note {
  margin-top: 2.4rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--muted);
}
.legal .link-rule { margin-top: 1.6rem; }

@media (max-width: 860px) {
  .cookie__inner { flex-direction: column; align-items: stretch; gap: .75rem; }
  .cookie__text { font-size: .76rem; line-height: 1.62; }
  .cookie__text strong { margin-bottom: .2rem; }
  .cookie__actions { width: 100%; }
  .cookie__btn { flex: 1 1 auto; padding: .6rem .9rem; font-size: .58rem; letter-spacing: .16em; }
}

@media (max-width: 720px) {
  .page-legal .hdr__row { grid-template-columns: 1fr auto; }
  .page-legal .langs { display: flex; }
  .page-legal .hdr__cta { display: none; }
  .legal p, .legal li { font-size: .92rem; }
  .legal ul { gap: .45rem; }
}

@media (max-width: 480px) {
  .cookie__btn--ghost { display: none; }
  .cookie__text { font-size: .74rem; }
}
