/* La Vecchia Pineta · Eventi privati
   One full-screen section per scroll; the scroll itself draws each entrance (see main.js), forwards and backwards. */

@font-face { font-family: "Country Club"; src: url("../fonts/country-club.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Country Club"; src: url("../fonts/country-club-italic.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Country Club Script"; src: url("../fonts/country-club-script.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Futura PT"; src: url("../fonts/futura-pt-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ink: #0f1820;
  --ink-2: #16222d;
  --ivory: #f6f1e8;
  --ivory-2: #ede5d6;
  --sand: #e2d5bf;
  --gold: #b8955c;
  --gold-soft: #d7bd8f;
  --text-dark: #1d2329;
  --muted-dark: #6b665c;

  --serif: "Country Club", "Didot", "Bodoni 72", serif;
  --script: "Country Club Script", "Country Club", cursive;
  --futura: "Futura PT", "Futura", "Century Gothic", sans-serif;

  --fs-title: clamp(42px, min(5.2vw, 9.4vh), 104px);
  --fs-h3: clamp(26px, min(2.5vw, 4.5vh), 48px);
  --fs-p: clamp(20px, min(1.45vw, 2.7vh) + 6px, 34px);
  --fs-eyebrow: clamp(12px, 0.8vw + 4px, 16px);

  --pad-x: clamp(22px, 6vw, 120px);
  --pad-top: clamp(96px, 14vh, 150px);
  --pad-bottom: clamp(36px, 8vh, 90px);

  --dur: 1.35s;
  --ease-panel: cubic-bezier(0.77, 0, 0.175, 1);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  background: var(--ink); color: var(--ivory);
  font-family: var(--serif); font-size: var(--fs-p); line-height: 1.35;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* ---------- shared type ---------- */
.eyebrow {
  font-size: var(--fs-eyebrow); letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 1.1em;
}
.eyebrow::before { content: ""; width: 3.2em; height: 1px; background: currentColor; opacity: 0.7; }
.title { font-weight: 400; font-size: var(--fs-title); line-height: 1; letter-spacing: -0.005em; }
.title em, .modal-title em { font-family: var(--serif); font-style: normal; color: var(--gold); }

/* Country Club has no accented letters: accents are drawn over the base letter (see main.js) */
.acc-run, .acc {
  display: inline !important; font: inherit !important; color: inherit !important; margin: 0 !important; padding: 0 !important;
  letter-spacing: inherit !important; text-transform: inherit !important; background: none !important; border: 0 !important;
}
.acc { position: relative; }
.acc::after {
  content: ""; position: absolute; left: 50%; top: 0.15em; width: 0.05em; min-width: 1px; height: 0.17em;
  background: currentColor; border-radius: 0.05em; transform: translateX(-50%) rotate(-38deg);
  clip-path: polygon(15% 0, 85% 0, 62% 100%, 38% 100%);
}
.acc--acute::after { transform: translateX(-50%) rotate(38deg); }
.acc--up::after { top: -0.02em; height: 0.15em; }
.acc--i::after { top: 0.06em; height: 0.14em; }
.acc--it::after { margin-left: 0.07em; }
.acc--script::after { top: 0.24em; margin-left: 0.06em; }
.sep { display: inline-block; width: 0.2em; height: 0.2em; border-radius: 50%; background: currentColor; vertical-align: 0.22em; margin: 0 0.6em; opacity: 0.8; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: clamp(72px, 10vh, 104px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--pad-x);
  color: var(--ivory); transition: color 0.6s var(--ease);
  pointer-events: none;
}
.top > * { pointer-events: auto; }
body[data-tone="light"] .top { color: var(--ink); }
body.menu-open .top { color: var(--ivory); }

.burger { justify-self: start; display: inline-flex; align-items: center; gap: 16px; padding: 10px 0; }
.burger-lines { position: relative; width: 38px; height: 12px; }
.burger-lines i { position: absolute; left: 0; height: 1px; background: currentColor; transition: transform 0.6s var(--ease-out), width 0.6s var(--ease-out), top 0.6s var(--ease-out); }
.burger-lines i:first-child { top: 0; width: 100%; }
.burger-lines i:last-child { top: 11px; width: 64%; }
.burger:hover .burger-lines i:last-child { width: 100%; }
.burger-label { font-size: var(--fs-eyebrow); letter-spacing: 0.3em; text-transform: uppercase; }
body.menu-open .burger-lines i:first-child { top: 6px; transform: rotate(45deg); }
body.menu-open .burger-lines i:last-child { top: 6px; width: 100%; transform: rotate(-45deg); }

.top-mark {
  font-family: var(--futura); font-weight: 500; text-transform: uppercase; letter-spacing: 0.24em;
  font-size: clamp(13px, 1vw + 4px, 18px); white-space: nowrap;
  opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
body.on-hero .top-mark { opacity: 0; transform: translateY(-8px); pointer-events: none; }

.top-cta {
  justify-self: end; position: relative; overflow: hidden;
  font-size: clamp(14px, 0.7vw + 8px, 19px); letter-spacing: 0.26em; text-transform: uppercase;
  padding: 1.15em 2.1em; border: 1px solid currentColor; isolation: isolate;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.top-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease-out);
}
.top-cta:hover { color: var(--ink); border-color: var(--gold); }
.top-cta:hover::before { transform: scaleY(1); }

/* ---------- menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ink);
  display: grid; grid-template-rows: 1fr auto; padding: calc(var(--pad-top) + 10px) var(--pad-x) var(--pad-bottom);
  clip-path: circle(0% at 4% 4%); visibility: hidden;
  transition: clip-path 1s var(--ease-panel), visibility 0s 1s;
}
body.menu-open .menu { clip-path: circle(150% at 4% 4%); visibility: visible; transition: clip-path 1.1s var(--ease-panel), visibility 0s; }
.menu-nav { align-self: center; }
.menu-nav li { overflow: hidden; }
.menu-nav a {
  display: inline-flex; align-items: baseline; gap: 0.7em; font-size: clamp(40px, min(6vw, 9vh), 96px); line-height: 1.12;
  transform: translateY(110%); transition: transform 0.9s var(--ease-out), color 0.4s var(--ease);
}
.menu-nav a span { font-size: var(--fs-eyebrow); letter-spacing: 0.2em; color: var(--gold); }
.menu-nav a:hover { color: var(--gold-soft); }
body.menu-open .menu-nav a { transform: none; transition-delay: calc(0.35s + var(--i, 0) * 0.07s); }
.menu-nav li:nth-child(1) a { --i: 0; } .menu-nav li:nth-child(2) a { --i: 1; } .menu-nav li:nth-child(3) a { --i: 2; }
.menu-nav li:nth-child(4) a { --i: 3; } .menu-nav li:nth-child(5) a { --i: 4; }
.menu-foot {
  display: flex; flex-wrap: wrap; gap: 14px 48px; font-size: var(--fs-eyebrow); letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(246, 241, 232, 0.7); border-top: 1px solid rgba(246, 241, 232, 0.16); padding-top: 26px;
  opacity: 0; transition: opacity 0.6s var(--ease);
}
.menu-foot a:hover { color: var(--gold-soft); }
body.menu-open .menu-foot { opacity: 1; transition-delay: 0.8s; }

/* ---------- pager ---------- */
.pager {
  position: fixed; right: calc(var(--pad-x) * 0.45); top: 50%; transform: translateY(-50%); z-index: 50;
  display: flex; flex-direction: column; align-items: center; gap: 18px; color: var(--ivory); transition: color 0.6s var(--ease), opacity 0.6s;
}
body[data-tone="light"] .pager { color: var(--ink); }
body.menu-open .pager { opacity: 0; }
.pager-num { font-size: 12px; letter-spacing: 0.18em; writing-mode: vertical-rl; opacity: 0.75; }
.pager-num b { font-weight: 400; color: var(--gold); }
.pager ol { display: flex; flex-direction: column; gap: 4px; }
.pager button { display: block; width: 18px; height: 16px; position: relative; }
.pager button::after {
  content: ""; position: absolute; right: 0; top: 50%; height: 1px; width: 8px; background: currentColor; opacity: 0.5;
  transition: width 0.6s var(--ease-out), opacity 0.6s, background 0.6s;
}
.pager button:hover::after { opacity: 1; }
.pager button.is-on::after { width: 18px; opacity: 1; background: var(--gold); }

/* ---------- deck & panels ---------- */
.deck { position: fixed; inset: 0; }
/* the reveal itself (clip-path) and --in / --under are set by main.js from the scroll position */
.panel { position: absolute; inset: 0; overflow: hidden; background: var(--ink); }
.panel::after {
  content: ""; position: absolute; inset: 0; background: #05080b; pointer-events: none;
  opacity: calc(var(--under, 0) * 0.7);
}
.panel:nth-child(1) { z-index: 1; } .panel:nth-child(2) { z-index: 2; } .panel:nth-child(3) { z-index: 3; }
.panel:nth-child(4) { z-index: 4; } .panel:nth-child(5) { z-index: 5; } .panel:nth-child(6) { z-index: 6; }

/* the arriving panel glides up a little; the one underneath sinks back and darkens */
.stage {
  position: absolute; inset: 0; transform-origin: 50% 40%;
  transform: translateY(calc(var(--in, 0) * 10%)) scale(calc(1 - var(--under, 0) * 0.08));
}
.scrollable { overflow-y: auto; overflow-x: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scrollable::-webkit-scrollbar { display: none; }

/* ---------- reveal helpers (play when a panel is seen, reset when it leaves for good) ---------- */
.panel:not(.is-seen) .a-fade, .panel:not(.is-seen) .a-mask .inner, .panel:not(.is-seen) .a-words .w { transition: none !important; }
.a-fade { opacity: 0; transform: translateY(16px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease-out); transition-delay: 0.25s; }
.is-seen .a-fade { opacity: 1; transform: none; }
.a-mask > span { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.a-mask > span > .acc-run, .a-mask > span > .inner { display: inline-block !important; }
.a-mask .inner { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease-out); }
.a-mask > span:nth-of-type(1) .inner { transition-delay: 0.1s; }
.a-mask > span:nth-of-type(2) .inner { transition-delay: 0.22s; }
.is-seen .a-mask .inner { transform: none; }
.a-words .w { display: inline-block; opacity: 0; transform: perspective(600px) rotateX(-70deg) translateY(0.3em); transform-origin: 50% 100%;
  transition: opacity 1s var(--ease), transform 1.2s var(--ease-out); transition-delay: calc(0.15s + var(--w) * 0.07s); }
.is-seen .a-words .w { opacity: 1; transform: none; }

/* ---------- 01 hero ---------- */
.panel--hero { background: #000; }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 7s cubic-bezier(0.2, 0.6, 0.2, 1); }
body.is-ready .hero-media video { transform: scale(1); }
.hero-shade {
  background:
    radial-gradient(ellipse 70% 55% at 50% 52%, rgba(8, 12, 16, 0.42), rgba(8, 12, 16, 0) 70%),
    linear-gradient(180deg, rgba(8, 12, 16, 0.55) 0%, rgba(8, 12, 16, 0.12) 30%, rgba(8, 12, 16, 0.18) 65%, rgba(8, 12, 16, 0.7) 100%);
}
.hero-center {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 var(--pad-x); gap: clamp(18px, 3.2vh, 34px);
}
.hero-logo {
  font-family: var(--futura); font-weight: 500; text-transform: uppercase; line-height: 1;
  font-size: clamp(30px, min(6.2vw, 11vh), 118px); letter-spacing: 0.2em; margin-right: -0.2em;
  color: var(--ivory); white-space: nowrap; text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25);
}
.hero-logo .l {
  display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(0.25em) scale(1.08);
  transition: opacity 1.6s var(--ease), filter 1.6s var(--ease), transform 1.8s var(--ease-out);
  transition-delay: calc(0.35s + var(--l) * 0.055s);
}
.hero-logo .gap { display: inline-block; width: 0.42em; }
body.is-ready .hero-logo .l { opacity: 1; filter: none; transform: none; }
.hero-sub {
  font-size: clamp(15px, 0.9vw + 8px, 22px); letter-spacing: 0.4em; text-transform: uppercase; color: rgba(246, 241, 232, 0.9);
  display: flex; align-items: center; gap: 1.4em; margin-right: -0.4em;
}
.hero-sub::before, .hero-sub::after {
  content: ""; height: 1px; width: 0; background: var(--gold-soft); transition: width 1.6s var(--ease-out) 1.4s;
}
body.is-ready .hero-sub::before, body.is-ready .hero-sub::after { width: clamp(36px, 5vw, 90px); }
.hero-sub span { opacity: 0; transition: opacity 1.4s var(--ease) 1.6s; }
body.is-ready .hero-sub span { opacity: 1; }
.hero-cue {
  position: absolute; left: 50%; bottom: clamp(34px, 7vh, 70px); transform: translateX(-50%);
  font-size: clamp(16px, 0.8vw + 10px, 22px); letter-spacing: 0.5em; text-transform: uppercase; padding: 12px 0 12px 0.5em;
  opacity: 0; transition: opacity 1.2s var(--ease) 2.4s;
}
body.is-ready .hero-cue { opacity: 1; }
/* a band of light runs across the word, which breathes with a soft glow */
.hero-cue span {
  display: inline-block; color: transparent;
  background: linear-gradient(100deg, rgba(246, 241, 232, 0.5) 0%, rgba(246, 241, 232, 0.5) 38%, #fff8ea 50%, rgba(246, 241, 232, 0.5) 62%, rgba(246, 241, 232, 0.5) 100%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text;
  animation: cue-shine 3.6s ease-in-out infinite, cue-glow 3.6s ease-in-out infinite, cue-float 3.6s ease-in-out infinite;
}
@keyframes cue-shine { 0% { background-position: 110% 0; } 60%, 100% { background-position: -40% 0; } }
@keyframes cue-glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 236, 200, 0)); } 45% { filter: drop-shadow(0 0 10px rgba(255, 236, 200, 0.75)); } }
@keyframes cue-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- 02 perché da noi ---------- */
.panel--forza { background: var(--ink); }
.forza-bg, .forza-shade { position: absolute; inset: 0; margin: 0; }
.forza-bg { overflow: hidden; }
.forza-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; transform: scale(1.22); transition: transform 3.2s var(--ease-out) 0.2s; }
.is-seen .forza-bg img { transform: scale(1); }
.forza-shade { background: linear-gradient(90deg, rgba(8, 12, 16, 0.9) 0%, rgba(8, 12, 16, 0.72) 45%, rgba(8, 12, 16, 0.25) 100%); }
.forza {
  position: relative; min-height: 100%; display: flex; align-items: center;
  padding: var(--pad-top) calc(var(--pad-x) + 30px) var(--pad-bottom) var(--pad-x);
}
.forza-text { width: min(820px, 100%); }
.forza-text .title { margin: 0 0 clamp(24px, 4.5vh, 50px); }
.forza-list li {
  position: relative; display: grid; grid-template-columns: 3.2em 1fr; gap: 0.6em; padding: clamp(12px, 2vh, 22px) 0;
}
.forza-list li::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(246, 241, 232, 0.24);
  transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease-out); transition-delay: calc(0.3s + var(--i) * 0.12s);
}
.is-seen .forza-list li::before { transform: scaleX(1); }
.forza-n, .forza-list li > div { opacity: 0; transform: translateX(28px); transition: opacity 1s var(--ease), transform 1.2s var(--ease-out); transition-delay: calc(0.4s + var(--i) * 0.12s); }
.is-seen .forza-n, .is-seen .forza-list li > div { opacity: 1; transform: none; }
.forza-n { color: var(--gold); font-size: var(--fs-h3); line-height: 1.1; }
.forza-list h3 { font-weight: 400; font-size: var(--fs-h3); line-height: 1.1; }
.forza-list p { color: rgba(246, 241, 232, 0.8); margin-top: 0.25em; }
.panel:not(.is-seen) .forza-bg img, .panel:not(.is-seen) .forza-list li::before, .panel:not(.is-seen) .forza-n,
.panel:not(.is-seen) .forza-list li > div { transition: none; }

/* ---------- 03 eventi ---------- */
.panel--eventi { background: var(--ivory); color: var(--text-dark); }
.eventi {
  min-height: 100%; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 120px);
  align-items: center; padding: var(--pad-top) calc(var(--pad-x) + 30px) var(--pad-bottom) var(--pad-x);
}
.eventi-head .title { margin: 0; }
.eventi-list { border-top: 1px solid rgba(29, 35, 41, 0.16); }
.eventi-list li { border-bottom: 1px solid rgba(29, 35, 41, 0.16); overflow: hidden; }
.ev {
  width: 100%; display: grid; grid-template-columns: 3.2em 1fr auto 2.2em; align-items: center; gap: 0.6em; text-align: left;
  padding: clamp(10px, 1.85vh, 20px) 0; position: relative;
  transform: translateY(105%); opacity: 0;
  transition: transform 1.1s var(--ease-out), opacity 1s var(--ease); transition-delay: calc(0.2s + var(--i) * 0.06s);
}
.panel:not(.is-seen) .ev { transition: none; }
.is-seen .ev { transform: none; opacity: 1; }
.ev-n { font-size: var(--fs-eyebrow); letter-spacing: 0.2em; color: var(--gold); }
.ev-t { font-size: clamp(26px, min(3.2vw, 5.8vh), 62px); line-height: 1.05; transition: transform 0.7s var(--ease-out), color 0.5s var(--ease); }
.ev-s { font-size: var(--fs-eyebrow); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted-dark); white-space: nowrap; }
.ev-plus { justify-self: end; position: relative; width: 22px; height: 22px; }
.ev-plus::before, .ev-plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: currentColor; transition: transform 0.6s var(--ease-out), background 0.4s; }
.ev-plus::after { transform: rotate(90deg); }
.ev::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease-out); }
.ev:hover .ev-t, .ev:focus-visible .ev-t { transform: translateX(0.4em); color: #8a6a37; }
.ev:hover .ev-plus::after { transform: rotate(180deg); }
.ev:hover .ev-plus::before, .ev:hover .ev-plus::after { background: var(--gold); }
.ev:hover::after { transform: scaleX(1); }
.ev-peek {
  position: fixed; left: 0; top: 0; width: clamp(180px, 16vw, 280px); aspect-ratio: 3 / 4; pointer-events: none; z-index: 8; overflow: hidden;
  opacity: 0; clip-path: inset(50% 50% 50% 50%); transition: opacity 0.4s var(--ease), clip-path 0.7s var(--ease-out);
}
.ev-peek.is-on { opacity: 1; clip-path: inset(0 0 0 0); }
.ev-peek img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.2s var(--ease-out); }
.ev-peek.is-on img { transform: scale(1); }

/* ---------- 04 spazi ---------- */
.panel--spazi { background: #000; }
.spazi-bgs, .spazi-shade { position: absolute; inset: 0; }
.spazi-bg { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 0 0 100%); z-index: 0; }
.spazi-bg.was-on { clip-path: inset(0 0 0 0); z-index: 1; }
.spazi-bg.is-on { clip-path: inset(0 0 0 0); z-index: 2; transition: clip-path 1.3s var(--ease-panel); }
.spazi-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }
.spazi-bg.is-on img { transform: scale(1); transition: transform 9s cubic-bezier(0.2, 0.6, 0.2, 1); }
.panel--spazi:not(.is-seen) .spazi-bg img { transform: scale(1.35); transition: none; }
.spazi-shade { background: linear-gradient(90deg, rgba(8, 12, 16, 0.86) 0%, rgba(8, 12, 16, 0.55) 48%, rgba(8, 12, 16, 0.5) 100%), linear-gradient(0deg, rgba(8, 12, 16, 0.7), rgba(8, 12, 16, 0) 55%); z-index: 3; }
.spazi {
  position: absolute; inset: 0; z-index: 4; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(30px, 5vw, 90px);
  align-items: end; padding: var(--pad-top) calc(var(--pad-x) + 30px) var(--pad-bottom) var(--pad-x);
}
.spazi-copy .title { margin: 0 0 clamp(24px, 5vh, 56px); }
.spazi-items { display: grid; }
.spazi-item { grid-area: 1 / 1; max-width: 30em; opacity: 0; transform: translateY(24px); pointer-events: none; transition: opacity 0.6s var(--ease), transform 0.8s var(--ease-out); }
.spazi-item.is-on { opacity: 1; transform: none; pointer-events: auto; transition: opacity 1s var(--ease) 0.35s, transform 1.1s var(--ease-out) 0.35s; }
.panel--spazi:not(.is-seen) .spazi-item.is-on { opacity: 0; transform: translateY(24px); transition: none; }
.spazi-tag { font-size: var(--fs-eyebrow); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-soft); }
.spazi-item h3 { font-weight: 400; font-size: var(--fs-h3); margin: 0.35em 0 0.3em; }
.spazi-item p:not(.spazi-tag) { color: rgba(246, 241, 232, 0.82); }
.link-cta {
  margin-top: clamp(16px, 3vh, 30px); font-size: var(--fs-eyebrow); letter-spacing: 0.3em; text-transform: uppercase; color: var(--ivory);
  display: inline-flex; align-items: center; gap: 1em; padding-bottom: 8px; position: relative;
}
.link-cta::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--gold); transform-origin: left; transition: transform 0.7s var(--ease-out); }
.link-cta:hover::after { transform: scaleX(0.4); }
.spazi-tabs { display: flex; flex-direction: column; align-self: end; border-top: 1px solid rgba(246, 241, 232, 0.22); }
.spazi-tabs button {
  display: flex; align-items: baseline; gap: 1em; text-align: left; padding: clamp(10px, 1.8vh, 18px) 0;
  border-bottom: 1px solid rgba(246, 241, 232, 0.22); font-size: clamp(22px, min(2.2vw, 4vh), 42px); color: rgba(246, 241, 232, 0.6);
  position: relative; opacity: 0; transform: translateX(40px);
  transition: color 0.5s var(--ease), opacity 1s var(--ease), transform 1.1s var(--ease-out); transition-delay: 0s, calc(0.3s + var(--i) * 0.07s), calc(0.3s + var(--i) * 0.07s);
}
.panel--spazi:not(.is-seen) .spazi-tabs button { transition: none; }
.is-seen .spazi-tabs button { opacity: 1; transform: none; }
.spazi-tabs button span { font-size: var(--fs-eyebrow); letter-spacing: 0.2em; color: var(--gold-soft); }
.spazi-tabs button::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.spazi-tabs button:hover { color: var(--ivory); }
.spazi-tabs button.is-on { color: var(--ivory); }
.spazi-tabs button.is-on::after { transform: scaleX(1); transition: transform 6.5s linear; }
.spazi.is-manual .spazi-tabs button.is-on::after { transition: transform 0.8s var(--ease-out); }

/* ---------- 05 add-on ---------- */
.panel--addon { background: var(--sand); color: var(--text-dark); }
.addon {
  min-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr) minmax(0, 1.1fr);
  grid-template-areas: "head media list"; gap: clamp(28px, 4.5vw, 84px); align-items: center;
  padding: var(--pad-top) calc(var(--pad-x) + 30px) var(--pad-bottom) var(--pad-x);
}
.addon-head { grid-area: head; align-self: center; }
.addon-head .title { margin: 0; }
.addon-media { grid-area: media; position: relative; height: min(66vh, 680px); overflow: hidden;
  opacity: 0; transform: scale(0.86); filter: blur(10px); transition: opacity 1.4s var(--ease) 0.15s, transform 1.8s var(--ease-out) 0.15s, filter 1.4s var(--ease) 0.15s; }
.is-seen .addon-media { opacity: 1; transform: none; filter: none; }
.panel:not(.is-seen) .addon-media { transition: none; }
.addon-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 0.9s var(--ease), transform 2.4s var(--ease-out); }
.addon-media img.is-on { opacity: 1; transform: scale(1); }
.addon-list { grid-area: list; border-top: 1px solid rgba(29, 35, 41, 0.18); }
.addon-list li {
  border-bottom: 1px solid rgba(29, 35, 41, 0.18);
  opacity: 0; filter: blur(8px); transform: translateY(14px);
  transition: opacity 1s var(--ease), filter 1s var(--ease), transform 1.1s var(--ease-out); transition-delay: calc(0.3s + var(--i) * 0.07s);
}
.panel:not(.is-seen) .addon-list li { transition: none; }
.is-seen .addon-list li { opacity: 1; filter: none; transform: none; }
.addon-list button { width: 100%; display: flex; align-items: baseline; gap: 1em; text-align: left; padding: clamp(8px, 1.5vh, 15px) 0; }
.addon-n { font-size: var(--fs-eyebrow); letter-spacing: 0.2em; color: #8a6a37; }
.addon-t { font-size: clamp(24px, min(2.5vw, 4.6vh), 50px); line-height: 1.05; transition: color 0.4s var(--ease), transform 0.6s var(--ease-out); }
.addon-list li:not(.is-on) .addon-t { color: rgba(29, 35, 41, 0.5); }
.addon-list li:not(.is-on) button:hover .addon-t { color: var(--text-dark); transform: translateX(0.3em); }
.addon-list p {
  display: grid; color: rgba(29, 35, 41, 0.78); font-size: clamp(18px, min(1.3vw, 2.5vh) + 5px, 30px); line-height: 1.3;
  max-height: 0; overflow: hidden; opacity: 0; padding-left: calc(var(--fs-eyebrow) * 2.4 + 1em);
  transition: max-height 0.7s var(--ease-out), opacity 0.5s var(--ease), padding 0.7s var(--ease-out);
}
.addon-list li.is-on p { max-height: 5em; opacity: 1; padding-bottom: clamp(10px, 1.8vh, 18px); transition-delay: 0.1s; }

/* ---------- 06 form ---------- */
/* sits above the form, out of view; pulling down over the form reveals it and goes back a section */
.pull-back {
  height: clamp(110px, 16vh, 160px); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px;
  padding-bottom: 16px; font-size: var(--fs-eyebrow); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-soft);
  opacity: calc(var(--pull, 0) * 1.3); transform: translateY(calc((1 - var(--pull, 0)) * 20px));
}
.pull-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.panel--form { background: var(--ink-2); }
.form {
  min-height: 100%; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 110px);
  align-items: center; padding: var(--pad-top) calc(var(--pad-x) + 30px) clamp(56px, 10vh, 100px) var(--pad-x);
}
.form-copy { align-self: center; }
.form-copy .title { margin: 0 0 clamp(18px, 3.4vh, 34px); }
.form-lead { color: rgba(246, 241, 232, 0.78); transition-delay: 0.5s; }
.form-contacts {
  display: flex; flex-direction: column; gap: 10px; margin-top: clamp(24px, 5vh, 56px); padding-top: clamp(18px, 3vh, 28px);
  border-top: 1px solid rgba(246, 241, 232, 0.16); font-size: var(--fs-eyebrow); letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(246, 241, 232, 0.7); transition-delay: 0.65s;
}
.form-contacts a { color: var(--ivory); width: fit-content; border-bottom: 1px solid transparent; transition: border-color 0.4s, color 0.4s; }
.form-contacts a:hover { color: var(--gold-soft); border-color: var(--gold-soft); }
.form-contacts span { line-height: 1.8; }
.form-box {
  position: relative; background: rgba(246, 241, 232, 0.035); border: 1px solid rgba(246, 241, 232, 0.12);
  padding: clamp(14px, 2.4vw, 36px); clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease-panel) 0.3s;
}
.is-seen .form-box { clip-path: inset(0 0 0 0); }
.panel:not(.is-seen) .form-box { transition: none; }
.form-box iframe { display: block; width: 100%; border: 0; transition: height 0.5s var(--ease); }
.form-foot {
  position: absolute; left: var(--pad-x); right: var(--pad-x); bottom: clamp(14px, 2.4vh, 26px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.colophon, .credit { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(246, 241, 232, 0.45); }
/* left column, under the copyright, so the WhatsApp button on the right never covers it */
.colophon { grid-column: 1; grid-row: 1; }
.credit { grid-column: 1; grid-row: 2; margin-top: 6px; }
.credit a { color: var(--gold-soft); border-bottom: 1px solid rgba(215, 189, 143, 0.4); transition: color 0.4s var(--ease), border-color 0.4s var(--ease); }
.credit a:hover { color: var(--ivory); border-color: var(--ivory); }
.to-top {
  grid-column: 2; grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(246, 241, 232, 0.35);
  display: grid; place-items: center; color: var(--ivory); transition: border-color 0.5s var(--ease), background 0.5s var(--ease), color 0.5s var(--ease);
}
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.2; animation: to-top-nudge 2.6s var(--ease) infinite; }
.to-top:hover { border-color: var(--gold); background: var(--gold); color: var(--ink); }
@keyframes to-top-nudge { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-3px); } }

/* ---------- WhatsApp ---------- */
.wa-float {
  position: fixed; right: clamp(16px, 2.4vw, 40px); bottom: clamp(16px, 3vh, 36px); z-index: 52;
  width: clamp(56px, 4.2vw, 66px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: rgba(15, 24, 32, 0.82); border: 1px solid var(--gold); color: var(--gold-soft);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0; transform: translateY(14px) scale(0.9);
  transition: opacity 1s var(--ease) 2.6s, transform 1s var(--ease-out) 2.6s, background 0.5s var(--ease), color 0.5s var(--ease);
}
body.is-ready .wa-float { opacity: 1; transform: none; }
.wa-float::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--gold);
  animation: wa-ring 3.2s var(--ease) infinite 3.4s; opacity: 0;
}
@keyframes wa-ring { 0% { transform: scale(1); opacity: 0.7; } 70%, 100% { transform: scale(1.45); opacity: 0; } }
.wa-float svg { width: 46%; height: 46%; }
.wa-float .wa-bubble { fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linejoin: round; }
.wa-float .wa-phone { fill: currentColor; }
.wa-float:hover { background: var(--gold); color: var(--ink); }
body.menu-open .wa-float { opacity: 0; pointer-events: none; transition-delay: 0s; }

/* ---------- cookie consent ---------- */
.consent {
  position: fixed; left: clamp(16px, 2.4vw, 40px); bottom: clamp(16px, 3vh, 36px); z-index: 70; width: min(520px, calc(100% - 32px - 80px));
  background: rgba(15, 24, 32, 0.94); border: 1px solid rgba(215, 189, 143, 0.45); color: var(--ivory);
  padding: 20px 22px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease-out);
}
.consent.is-on { opacity: 1; transform: none; }
.consent p { font-size: clamp(16px, 0.5vw + 12px, 19px); line-height: 1.35; color: rgba(246, 241, 232, 0.85); }
.consent p a { color: var(--gold-soft); border-bottom: 1px solid rgba(215, 189, 143, 0.5); }
.consent-actions { display: flex; gap: 10px; margin-top: 16px; }
.consent-actions button {
  font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; padding: 0.95em 1.4em 0.95em 1.64em;
  border: 1px solid rgba(246, 241, 232, 0.4); transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.consent-actions button:hover { border-color: var(--ivory); }
.consent-actions .consent-yes { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.consent-actions .consent-yes:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

/* ---------- modal ---------- */
.modal { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; color: var(--text-dark); overflow: hidden; }
.modal::backdrop { background: rgba(8, 12, 16, 0); backdrop-filter: blur(0); transition: background 0.6s var(--ease), backdrop-filter 0.6s var(--ease); }
.modal.is-open::backdrop { background: rgba(8, 12, 16, 0.62); backdrop-filter: blur(6px); }
.modal-card {
  position: absolute; left: 50%; top: 50%; width: min(1180px, calc(100% - 2 * var(--pad-x))); height: min(720px, calc(100% - 140px));
  transform: translate(-50%, -50%); background: var(--ivory); display: grid; grid-template-columns: 0.9fr 1.1fr; overflow: hidden;
  clip-path: inset(50% 0 50% 0); transition: clip-path 0.9s var(--ease-panel);
}
.modal.is-open .modal-card { clip-path: inset(0 0 0 0); }
.modal-media { position: relative; overflow: hidden; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); transition: transform 2s var(--ease-out); }
.modal.is-open .modal-media img { transform: scale(1); }
.modal-body { padding: clamp(28px, 4vw, 64px); overflow-y: auto; display: flex; flex-direction: column; }
.modal-body > * { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 1s var(--ease-out); }
.modal.is-open .modal-body > * { opacity: 1; transform: none; }
.modal.is-open .modal-body > :nth-child(1) { transition-delay: 0.45s; } .modal.is-open .modal-body > :nth-child(2) { transition-delay: 0.52s; }
.modal.is-open .modal-body > :nth-child(3) { transition-delay: 0.6s; } .modal.is-open .modal-body > :nth-child(4) { transition-delay: 0.68s; }
.modal.is-open .modal-body > :nth-child(5) { transition-delay: 0.76s; }
.modal-n { font-size: var(--fs-eyebrow); letter-spacing: 0.3em; text-transform: uppercase; color: #8a6a37; }
.modal-title { font-weight: 400; font-size: clamp(36px, min(3.6vw, 6.4vh), 66px); line-height: 1.02; margin: 0.35em 0 0.4em; }
.modal-text { color: rgba(29, 35, 41, 0.8); }
.modal-specs { margin: clamp(20px, 3.4vh, 36px) 0; border-top: 1px solid rgba(29, 35, 41, 0.14); }
.modal-specs div { display: grid; grid-template-columns: 11em 1fr; gap: 1em; padding: 0.7em 0; border-bottom: 1px solid rgba(29, 35, 41, 0.14); align-items: baseline; }
.modal-specs dt { font-size: var(--fs-eyebrow); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-dark); }
.modal-specs dd { font-size: clamp(18px, min(1.2vw, 2.3vh) + 4px, 26px); line-height: 1.25; }
.modal-close { position: absolute; right: 22px; top: 22px; width: 44px; height: 44px; z-index: 2; border-radius: 50%; background: var(--ivory); }
.modal-close i { position: absolute; left: 12px; top: 50%; width: 20px; height: 1px; background: var(--ink); transform: rotate(45deg); transition: transform 0.5s var(--ease-out); }
.modal-close i + i { transform: rotate(-45deg); }
.modal-close:hover i { transform: rotate(135deg); } .modal-close:hover i + i { transform: rotate(45deg); }
.btn-gold {
  align-self: flex-start; margin-top: auto; background: var(--ink); color: var(--ivory); font-size: var(--fs-eyebrow); letter-spacing: 0.3em;
  text-transform: uppercase; padding: 1.3em 2.4em 1.3em calc(2.4em + 0.3em); position: relative; overflow: hidden; isolation: isolate; transition: color 0.5s var(--ease);
  display: inline-flex; justify-content: center; align-items: center; text-align: center;
}
.btn-gold::before { content: ""; position: absolute; inset: 0; background: var(--gold); z-index: -1; transform: scaleX(0); transform-origin: right; transition: transform 0.7s var(--ease-out); }
.btn-gold:hover { color: var(--ink); }
.btn-gold:hover::before { transform: scaleX(1); transform-origin: left; }

/* ---------- tablet & phone ---------- */
@media (max-width: 1080px) {
  .addon { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); grid-template-areas: "head head" "media list"; align-content: center; }
  .addon-media { height: min(52vh, 560px); }
}

@media (max-width: 820px) {
  :root {
    --pad-x: 20px; --pad-top: 92px; --pad-bottom: 36px;
    --fs-title: clamp(38px, 10.5vw, 56px);
    --fs-h3: clamp(23px, 6.2vw, 30px);
    --fs-p: clamp(20px, 5.4vw, 23px);
    --fs-eyebrow: 14px;
  }
  .top { grid-template-columns: auto 1fr auto; height: 76px; }
  .top-mark { justify-self: center; font-size: 12px; letter-spacing: 0.2em; }
  .burger-label { display: none; }
  .burger-lines { width: 30px; }
  .top-cta { padding: 0.9em 1.15em 0.9em 1.35em; font-size: 14px; letter-spacing: 0.2em; }
  .pager { display: none; }

  .hero-logo { font-size: 7.4vw; letter-spacing: 0.1em; margin-right: -0.1em; }
  .hero-sub { font-size: 14px; letter-spacing: 0.34em; }

  .forza { padding-right: var(--pad-x); }
  .forza-shade { background: linear-gradient(180deg, rgba(8, 12, 16, 0.55) 0%, rgba(8, 12, 16, 0.72) 40%, rgba(8, 12, 16, 0.82) 100%); }
  .forza-bg img { object-position: 22% 50%; }
  .forza-text .title { margin: 0 0 18px; }
  .forza-list li { grid-template-columns: 2.4em 1fr; padding: 12px 0; }

  .eventi { grid-template-columns: 1fr; gap: 26px; padding-right: var(--pad-x); align-content: center; }
  .ev { grid-template-columns: 2.4em 1fr 1.4em; padding: 13px 0; }
  .ev-s { display: none; }
  .ev-t { font-size: clamp(22px, 6.2vw, 30px); }
  .ev-plus { width: 16px; height: 16px; }
  .ev-peek { display: none; }

  .spazi { grid-template-columns: 1fr; align-content: end; gap: 20px; padding-right: var(--pad-x); }
  .spazi-shade { background: linear-gradient(0deg, rgba(8, 12, 16, 0.9) 0%, rgba(8, 12, 16, 0.55) 55%, rgba(8, 12, 16, 0.25) 100%); }
  .spazi-copy .title { margin: 12px 0 18px; }
  .spazi-item h3 { font-size: 30px; }
  .spazi-item p:not(.spazi-tag) { font-size: 22px; line-height: 1.3; }
  .spazi-tag, .link-cta { letter-spacing: 0.2em; }
  .spazi-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 10px; border-top: 0; margin: 0 calc(-1 * var(--pad-x)); padding: 2px var(--pad-x) 4px; }
  .spazi-tabs::-webkit-scrollbar { display: none; }
  .spazi-tabs button {
    flex: none; font-size: 22px; white-space: nowrap; padding: 11px 18px; border: 1px solid rgba(246, 241, 232, 0.45);
    color: rgba(246, 241, 232, 0.85); background: rgba(8, 12, 16, 0.35); backdrop-filter: blur(6px);
  }
  .spazi-tabs button.is-on { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
  .spazi-tabs button::after, .spazi-tabs button span { display: none; }

  .addon { grid-template-columns: 1fr; grid-template-areas: "head" "media" "list"; gap: 18px; padding-right: var(--pad-x); align-content: center; }
  .addon-media { height: 16vh; }
  .addon-t { font-size: clamp(21px, 5.8vw, 28px); }
  .addon-list p { font-size: 21px; padding-left: 0; }

  .form { grid-template-columns: 1fr; gap: 18px; padding-right: var(--pad-x); padding-bottom: 50px; align-content: start; }
  .form-copy .title { margin-bottom: 12px; }
  .form-lead { display: none; }
  .form-contacts { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; margin-top: 0; padding-top: 12px; font-size: 13px; }
  .form-contacts span { display: none; }
  .form-box { padding: 4px 10px; }
  .form-foot { position: static; padding: 6px var(--pad-x) 96px; grid-template-columns: 1fr; justify-items: center; gap: 16px; }
  .to-top, .colophon, .credit { grid-column: auto; grid-row: auto; }
  .colophon { order: 1; text-align: center; }
  .credit { order: 2; margin-top: -8px; justify-self: center; text-align: center; font-size: 12px; letter-spacing: 0.16em; line-height: 1.7; }

  /* the whole pop-up fits on screen: no scrolling inside */
  .modal-card { width: calc(100% - 24px); height: auto; max-height: calc(100% - 24px); grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .modal-media { height: 17vh; height: 17dvh; }
  .modal-body { padding: 16px 20px 20px; overflow: hidden; }
  .modal-n { font-size: 13px; letter-spacing: 0.2em; }
  .modal-title { font-size: clamp(30px, 8.6vw, 36px); margin: 0.2em 0 0.25em; }
  .modal-text { font-size: 20px; line-height: 1.25; }
  .modal-specs { margin: 10px 0 14px; }
  .modal-specs div { grid-template-columns: 1fr; gap: 1px; padding: 0.38em 0; }
  .modal-specs dt { font-size: 13px; letter-spacing: 0.16em; }
  .modal-specs dd { font-size: 20px; line-height: 1.2; }
  .modal-close { right: 12px; top: 12px; width: 40px; height: 40px; }
  .modal-close i { left: 10px; }
  .btn-gold { margin-top: 0; width: 100%; font-size: 15px; letter-spacing: 0.2em; padding: 1.15em 1em 1.15em 1.2em; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0.45s; }
  *, *::before, *::after { transition-delay: 0s !important; animation: none !important; }
}
