/* ==========================================================================
   The Liminal Game — landing page
   Design system ricavato dalla copertina: avorio, espresso, oro tramonto.
   ========================================================================== */

:root {
  --cream: #faf7f2;
  --cream-2: #fffdf9;
  --sand: #f2ebe1;
  --sand-2: #ebe1d4;
  --line: #e0d2c3;
  --line-soft: #ece2d6;
  --ink: #2c2520;
  --ink-soft: #453a31;
  --brown: #4a382c;
  --accent: #7d6250;
  --gold: #e3ae5e;
  --gold-deep: #b9832f;
  --gold-ink: #8f5f1e;
  --gold-soft: #f0d5a8;
  --olive: #5c6446;

  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --gutter: clamp(1.15rem, 4.5vw, 4rem);
  --maxw: 1240px;
  --header-h: 86px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input,
textarea,
select { -webkit-user-select: text; user-select: text; }

img,
svg { max-width: 100%; display: block; }

img { height: auto; }

a { color: inherit; text-decoration: none; }
.nowrap { white-space: nowrap; }

button { font: inherit; color: inherit; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }

ul, ol { padding: 0; list-style: none; }

::selection { background: var(--gold-soft); color: var(--ink); }

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

.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;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

/* --------------------------------------------------------------- typography */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; }

h2 {
  font-size: clamp(2rem, 4.3vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 24ch;
}

h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.2; }

p { max-width: 66ch; }

.lead {
  font-size: clamp(1.02rem, 1.15vw, 1.1rem);
  line-height: 1.75;
  color: var(--ink-soft);
}

strong { font-weight: 500; }

em { font-style: italic; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-ink);
  line-height: 1.4;
}

.eyebrow__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--gold-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow__num::after {
  content: "";
  display: block;
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.eyebrow--light { color: var(--gold); }
.eyebrow--light .eyebrow__num { color: var(--gold); }

/* --------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.02rem 1.9rem;
  border: 1px solid transparent;
  border-radius: 1px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn--gold {
  --btn-bg: var(--gold);
  --btn-fg: #241c16;
  box-shadow: 0 12px 30px -18px rgba(227, 174, 94, 0.9);
}
.btn--gold:hover { --btn-bg: #efc27c; transform: translateY(-2px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  border-color: rgba(250, 247, 242, 0.45);
}
.btn--ghost:hover {
  border-color: var(--cream);
  background: rgba(250, 247, 242, 0.08);
  transform: translateY(-2px);
}

.btn--sm { padding: 0.72rem 1.35rem; font-size: 0.65rem; letter-spacing: 0.16em; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--brown);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.2rem;
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}
.link-arrow::after { content: "→"; color: var(--gold-ink); }
.link-arrow:hover { color: var(--gold-ink); gap: 0.85rem; }

/* --------------------------------------------------------------- header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  color: var(--cream);
  transition: background 0.45s var(--ease), color 0.45s var(--ease),
    box-shadow 0.45s var(--ease), backdrop-filter 0.45s var(--ease);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0.9rem var(--gutter);
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 0.9rem; flex: 0 0 auto; }

.brand__marks { display: flex; align-items: center; gap: 0.55rem; }
.brand__mark {
  display: inline-flex;
  align-items: center;
  border-radius: 50%;
  transition: transform 0.35s var(--ease);
}
.brand__mark:hover { transform: translateY(-2px); }

.brand__crest,
.brand__vgt {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(250, 247, 242, 0.94);
  padding: 3px;
  box-shadow: 0 4px 14px -8px rgba(20, 15, 12, 0.8);
  transition: width 0.35s var(--ease), height 0.35s var(--ease);
}

.brand__divider {
  width: 1px;
  height: 26px;
  background: currentColor;
  opacity: 0.3;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.1; color: inherit; }

.brand__name {
  font-family: var(--serif);
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand__claim {
  max-width: 16.5rem;
  font-size: 0.53rem;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.68;
  margin-top: 0.28rem;
}

.nav { display: flex; align-items: center; gap: 2rem; flex: 0 0 auto; }

.nav__list { display: flex; align-items: center; gap: clamp(0.9rem, 1.6vw, 1.7rem); }

.nav__link {
  position: relative;
  white-space: nowrap;
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-block: 0.4rem;
  opacity: 0.82;
  transition: opacity 0.3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }
.nav__link.is-active { opacity: 1; }

.nav__aside { display: none; }
.nav__brand { display: none; }

.header-actions { display: flex; align-items: center; gap: 0.9rem; flex: 0 0 auto; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(250, 247, 242, 0.35);
  border-radius: 1px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), top 0.35s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 26px; }

body.nav-open { overflow: hidden; }

body.nav-open .burger span:nth-child(1) { top: 21px; transform: translateX(-50%) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { top: 21px; transform: translateX(-50%) rotate(-45deg); }

.site-header.is-stuck {
  background: rgba(250, 247, 242, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(224, 210, 195, 0.9), 0 18px 40px -34px rgba(44, 37, 32, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header.is-stuck .brand__crest,
.site-header.is-stuck .brand__vgt { box-shadow: 0 4px 14px -10px rgba(20, 15, 12, 0.6); }
.site-header.is-stuck .burger { border-color: rgba(44, 37, 32, 0.3); }
.site-header.is-stuck .brand__vgt { background: #fff; }

/* --------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: clamp(7rem, 12vw, 10rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media picture,
.hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 58% 52%; }

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(24, 18, 14, 0.93) 0%, rgba(28, 21, 16, 0.86) 32%, rgba(32, 24, 18, 0.52) 58%, rgba(32, 24, 18, 0.12) 82%, rgba(32, 24, 18, 0.28) 100%),
    linear-gradient(to top, rgba(24, 18, 14, 0.9) 0%, rgba(24, 18, 14, 0.15) 34%, rgba(24, 18, 14, 0) 60%),
    linear-gradient(to bottom, rgba(24, 18, 14, 0.55) 0%, rgba(24, 18, 14, 0) 26%);
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero__content { max-width: 720px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(227, 174, 94, 0.55);
  border-radius: 999px;
  background: rgba(227, 174, 94, 0.14);
  color: #f6e7cd;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(227, 174, 94, 0.22);
}

.hero .eyebrow {
  color: var(--gold-soft);
  margin-bottom: 1.1rem;
  font-size: 0.61rem;
  letter-spacing: 0.22em;
  white-space: nowrap;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 8.6vw, 6.9rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
  color: #fbf6ec;
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.hero__subtitle {
  margin-top: 1.4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.3vw, 1.85rem);
  line-height: 1.3;
  color: rgba(251, 246, 236, 0.92);
}

.hero__text {
  margin-top: 1.5rem;
  max-width: 560px;
  font-size: 1.01rem;
  line-height: 1.72;
  color: rgba(250, 247, 242, 0.8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.1rem;
}

.hero__direction {
  margin-top: 2.6rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--gold);
  max-width: 560px;
}

.hero__direction-label {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.hero__names {
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.45;
  color: #fbf6ec;
}

.hero__comitato {
  margin-top: 0.35rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(250, 247, 242, 0.7);
}

.hero__side {
  position: absolute;
  right: -2.2rem;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.5);
  max-height: 46vh;
  overflow: hidden;
}

.hero__scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.6);
}
.hero__scroll-line {
  width: 42px;
  height: 1px;
  background: rgba(227, 174, 94, 0.7);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-100%);
  animation: scrollLine 2.6s var(--ease) infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}

/* --------------------------------------------------------------- brief strip */
.brief {
  position: relative;
  z-index: 5;
  margin-top: clamp(-110px, -8vw, -72px);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.brief__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--cream-2);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -46px rgba(44, 37, 32, 0.6);
}

.brief__item {
  padding: 1.65rem 1.6rem;
  border-bottom: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
}
.brief__item:nth-child(3n) { border-right: 0; }
.brief__item:nth-child(n + 4) { border-bottom: 0; }

.brief__label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.brief__value {
  display: block;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--ink);
}

/* --------------------------------------------------------------- sections */
.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
  scroll-margin-top: 84px;
  position: relative;
}

.section-head { margin-bottom: clamp(2.6rem, 5vw, 4rem); }
.section-head--narrow { max-width: 780px; }
.section-head--narrow p { max-width: 68ch; }
.section-head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center h2 { margin-inline: auto; }
.section-head--center .lead { margin-inline: auto; }
.section-head .lead { margin-top: 1.3rem; }
.section-head p + p { margin-top: 1rem; }
.section-head--narrow p { color: var(--ink-soft); }

.section--retreat { background: var(--cream); }

.split {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.split__body h2 { margin-bottom: 1.6rem; }
.split__body p + p { margin-top: 1.1rem; }
.split__body .lead { color: var(--ink-soft); }

.split__media {
  position: relative;
  margin: 0;
  isolation: isolate;
}
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(0.97) contrast(1.02);
}
.split__media::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid rgba(227, 174, 94, 0.45);
  z-index: -1;
}
.split__media figcaption,
.principle__media figcaption,
.doppio__media figcaption {
  margin-top: 1.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.principle {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--sand);
  border-top: 1px solid var(--gold);
}
.principle h3 { margin-bottom: 1.1rem; max-width: 24ch; }
.principle p { font-size: 0.98rem; color: var(--ink-soft); }
.principle p + p { margin-top: 1rem; }
.principle__note {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brown) !important;
  font-size: 1rem !important;
}
.principle__media { margin: 0; }
.principle__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid rgba(224, 210, 195, 0.9);
}
.principle__media figcaption { color: var(--accent); }

/* --------------------------------------------------------------- worlds */
.section--worlds { background: var(--cream-2); border-block: 1px solid var(--line-soft); }

.worlds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.world {
  padding: 2.4rem 1.9rem 2.2rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background 0.45s var(--ease), transform 0.45s var(--ease);
}
.world:last-child { border-right: 0; }
.world:hover { background: var(--cream); transform: translateY(-3px); }

.world__icon {
  display: block;
  width: 38px;
  height: 38px;
  margin-bottom: 1.4rem;
  color: var(--gold-ink);
}
.world__icon svg { width: 100%; height: 100%; }

.world__title {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}

.world p { font-size: 0.9rem; line-height: 1.68; color: var(--ink-soft); }

/* --------------------------------------------------------------- states */
.section--states { background: var(--cream); }

.states {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.state {
  display: flex;
  flex-direction: column;
  padding: 1.9rem 1.5rem 1.7rem;
  background: var(--cream-2);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.state:hover {
  background: #fff;
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -40px rgba(44, 37, 32, 0.7);
  z-index: 2;
}

.state__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.state__icon { width: 32px; height: 32px; color: var(--gold-ink); }
.state__icon svg { width: 100%; height: 100%; }

.state__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--accent);
}

.state__label {
  display: inline-block;
  margin-left: 0.35rem;
  font-family: var(--sans);
  font-size: 0.46rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
  vertical-align: middle;
  white-space: nowrap;
}

@media (min-width: 1025px) {
  .state__title { min-height: 2.4em; }
}

.state__title {
  font-family: var(--serif);
  font-size: 1.28rem;
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
}

.state > p { font-size: 0.86rem; line-height: 1.62; color: var(--ink-soft); }

.state__retreat {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.86rem !important;
  color: var(--brown) !important;
}
.state__retreat span {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

/* --------------------------------------------------------------- doppio registro */
.section--dark {
  background: #2c2520;
  color: var(--cream);
  background-image:
    radial-gradient(ellipse at 12% 8%, rgba(227, 174, 94, 0.14), transparent 55%),
    radial-gradient(ellipse at 88% 92%, rgba(125, 98, 80, 0.35), transparent 60%);
}

.doppio__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 5.5vw, 5rem);
  align-items: start;
}

.doppio__media { margin: 0; position: sticky; top: 110px; }
.doppio__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(227, 174, 94, 0.35);
  filter: saturate(0.95) brightness(0.95);
}
.doppio__media figcaption { color: rgba(250, 247, 242, 0.5); }

.doppio h2 { color: #fbf6ec; max-width: 20ch; margin-bottom: 1.8rem; }

.doppio__quote {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.55rem, 2.9vw, 2.5rem);
  line-height: 1.22;
  color: var(--gold-soft);
}

.doppio__body p {
  color: rgba(250, 247, 242, 0.78);
  font-size: 0.99rem;
  line-height: 1.75;
  max-width: 62ch;
}
.doppio__body p + p { margin-top: 1.05rem; }

.doppio__points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2.4rem;
  border-top: 1px solid rgba(227, 174, 94, 0.28);
}

.doppio__points li h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: #fbf6ec;
  margin: 0.7rem 0 0.5rem;
}
.doppio__points li p { font-size: 0.9rem; color: rgba(250, 247, 242, 0.65); line-height: 1.65; }

.doppio__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--gold);
}

/* --------------------------------------------------------------- analog */
.section--analog { background: var(--cream-2); }

.wide-media { margin: 0 0 clamp(2.5rem, 5vw, 3.5rem); }
.wide-media img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: 50% 45%;
  border: 1px solid var(--line);
}

.table-wrap { width: 100%; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

.data-table thead th {
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 0.57rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.data-table tbody th,
.data-table tbody td {
  padding: 1.35rem 1.2rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-weight: 300;
}

.data-table tbody th {
  width: 23%;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
}

.data-table tbody td { color: var(--ink-soft); line-height: 1.6; }

.data-table__axis {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--sans);
  font-size: 0.54rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.data-table tbody tr { transition: background 0.3s var(--ease); }
.data-table tbody tr:hover td { background: rgba(242, 235, 225, 0.55); }

.data-table--sleep tbody th { font-size: 1.02rem; }
.data-table--sleep tbody td a {
  border-bottom: 1px solid rgba(185, 131, 47, 0.45);
  white-space: nowrap;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.data-table--sleep tbody td a:hover { color: var(--gold-ink); border-color: var(--gold-ink); }

.table-note {
  margin-top: 1.5rem;
  max-width: 88ch;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--accent);
}

/* --------------------------------------------------------------- gaming */
.section--gaming { background: var(--cream); }

.gaming {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.gaming__title { margin-bottom: 1.4rem; max-width: 20ch; }
.gaming__body .lead { color: var(--ink-soft); }

.note-box {
  margin-top: 1.8rem;
  padding: 1.15rem 1.4rem;
  background: var(--sand);
  border-left: 2px solid var(--gold);
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.note-box p { max-width: 52ch; }

.gaming__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
.gaming__media figure { margin: 0; }
.gaming__media figure:nth-child(2) { margin-top: 3rem; }
.gaming__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
}

/* --------------------------------------------------------------- programma */
.section--program { background: var(--cream-2); border-block: 1px solid var(--line-soft); }

.program {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.program__head { margin-bottom: 1.6rem; }

.program__figure { margin: 0 0 1.4rem; overflow: hidden; }
.program__figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.03);
}

.program__kicker {
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 0.4rem;
}

.program__head h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }

.program__sub {
  margin-top: 0.35rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent);
}

.timeline li {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line-soft);
}

.timeline__time {
  font-family: var(--serif);
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--gold-ink);
  padding-top: 0.1rem;
  letter-spacing: 0.01em;
}

.timeline__body h4 {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 0.3rem;
  color: var(--ink);
}
.timeline__label {
  margin-left: 0.5rem;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
  vertical-align: middle;
  white-space: nowrap;
}
.timeline__body p { font-size: 0.85rem; line-height: 1.6; color: var(--accent); max-width: 48ch; }

/* --------------------------------------------------------------- tenuta + gallery */
.section--tenuta { background: var(--cream); }

.tenuta__head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.tenuta__intro p { color: var(--ink-soft); font-size: 0.98rem; }

.tenuta__logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.tenuta__logo-link { display: inline-flex; align-items: center; transition: transform 0.35s var(--ease); }
.tenuta__logo-link:hover { transform: translateY(-2px); }
.tenuta__logo img { width: 64px; height: 64px; object-fit: contain; }
.tenuta__logo span {
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--brown);
}
.tenuta__logo em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.7rem, 1.4vw, 1.1rem);
}

.gallery__item {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: var(--sand);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 3 / 4;
}
.gallery__item:nth-child(3n + 2) { transform: translateY(1.8rem); }

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(227, 174, 94, 0.12), rgba(74, 56, 44, 0.16));
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.5s var(--ease);
}
.gallery__item:hover::after { opacity: 0.45; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.8) contrast(1.03) sepia(0.15) brightness(1.02);
}
.gallery__item:hover img { transform: scale(1.045); filter: saturate(1.02) sepia(0.02) brightness(1.03); }

.gallery__cap {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.6rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(24, 18, 14, 0.82), rgba(24, 18, 14, 0));
  color: var(--cream);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.gallery__item:hover .gallery__cap,
.gallery__item:focus-visible .gallery__cap { opacity: 1; transform: none; }

.gallery__hint {
  margin-top: 3rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --------------------------------------------------------------- quote band */
.quote-band {
  position: relative;
  min-height: clamp(380px, 62vh, 620px);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.quote-band__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  z-index: -2;
}
.quote-band__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right, rgba(24, 18, 14, 0.9), rgba(24, 18, 14, 0.68) 55%, rgba(24, 18, 14, 0.42));
}
.quote-band__inner {
  max-width: 900px;
  padding: clamp(3rem, 7vw, 5rem) var(--gutter);
  text-align: center;
}
.quote-band .eyebrow { justify-content: center; margin-bottom: 1.2rem; }
.quote-band blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.35rem);
  line-height: 1.3;
  color: #fbf6ec;
}
.quote-band__note {
  margin-top: 1.4rem;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.6);
  margin-inline: auto;
}

/* --------------------------------------------------------------- quota */
.section--quota { background: var(--cream); }

.quota {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--cream-2);
  border: 1px solid var(--line);
}
.quota::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(227, 174, 94, 0.35);
  pointer-events: none;
}

.quota__main h2 { margin-bottom: 1.6rem; }

.quota__price {
  display: block;
  margin-bottom: 0.5rem;
}
.quota__price strong {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 4.4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.quota__price span {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.quota__price--late {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.quota__price--late strong {
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  color: var(--brown);
}

.quota__vat {
  margin: 1rem 0 0.25rem;
  font-size: 0.76rem;
  color: var(--accent);
}

.quota__spots {
  margin-top: 0.45rem;
  margin-bottom: 1.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.quota__block + .quota__block { margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.quota__block h3 {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 1rem;
}

.list-check li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.list-check li + li { margin-top: 0.55rem; }
.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

.quota__block--muted p { font-size: 0.9rem; color: var(--accent); }

/* --------------------------------------------------------------- dove dormire */
.section--sleep { background: var(--cream-2); border-block: 1px solid var(--line-soft); }

/* --------------------------------------------------------------- informazioni utili */
.section--info { background: var(--sand); }

.info {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.info__head h2 { margin-bottom: 1rem; }
.info__head .lead { font-size: 0.98rem; line-height: 1.75; color: var(--ink-soft); }

.info__list { border-top: 1px solid var(--line); }
.info__list li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.info__num {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold-ink);
}
.info__list p {
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--ink-soft);
}
.info__list strong { font-weight: 500; color: var(--brown); }
.info__note {
  margin-top: 1.3rem;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--accent);
}
.info__note a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------- scienza */
.section--science { background: var(--cream); }

.science {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.science__body h2 { margin-bottom: 1.6rem; }
.science__body p { color: var(--ink-soft); }
.science__body p + p { margin-top: 1.1rem; }
.science__link { margin-top: 1.8rem; }

.science__aside {
  padding: 2.2rem;
  background: var(--sand);
  border-top: 2px solid var(--gold);
}

.science__label {
  font-size: 0.57rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 0.9rem;
}

.science__names { margin-bottom: 0.9rem; }
.science__names li {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.75;
  color: var(--ink);
  padding-left: 1rem;
  position: relative;
}
.science__names li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 5px;
  height: 1px;
  background: var(--gold-deep);
}

.science__comitato {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--accent);
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(224, 210, 195, 0.9);
}

.science__logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
}
.science__logo img { width: 62px; height: 62px; object-fit: contain; }
.science__logo span {
  font-family: var(--serif);
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--brown);
}
.science__logo em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--accent);
}

/* --------------------------------------------------------------- team */
.section--team { background: var(--cream-2); border-top: 1px solid var(--line-soft); }

.team { border-top: 1px solid var(--line); }

.person {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2rem, 4vw, 3.2rem) 0;
  border-bottom: 1px solid var(--line);
}

.person__media { position: relative; isolation: isolate; align-self: start; }
.person__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(0.94) contrast(1.02);
}
.person__media::after {
  content: "";
  position: absolute;
  inset: 10px -10px -10px 10px;
  border: 1px solid rgba(227, 174, 94, 0.4);
  z-index: -1;
}

.person__name { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 0.5rem; }

.person__role {
  margin-bottom: 1.3rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--gold);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.65;
  color: var(--accent);
  max-width: 62ch;
}

.person__body p { font-size: 0.94rem; line-height: 1.72; color: var(--ink-soft); max-width: 64ch; }
.person__body p + p { margin-top: 0.85rem; }

.team__comitato {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1.9rem;
  background: var(--sand);
  text-align: center;
}
.team__comitato-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--brown);
  margin: 0 auto 0.7rem;
}
.team__comitato-names {
  margin-inline: auto;
  max-width: none;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.9;
  color: var(--accent);
}
.team__comitato-names span + span::before { content: " · "; }

/* --------------------------------------------------------------- contatti */
.section--contact {
  background: #2c2520;
  color: var(--cream);
  background-image:
    radial-gradient(ellipse at 8% 0%, rgba(227, 174, 94, 0.16), transparent 55%),
    radial-gradient(ellipse at 92% 100%, rgba(125, 98, 80, 0.4), transparent 60%);
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.contact__intro h2 { color: #fbf6ec; margin-bottom: 1.4rem; }
.contact__intro > p { color: rgba(250, 247, 242, 0.76); max-width: 46ch; }

.contact__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem 1.5rem;
  margin-top: 2.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(227, 174, 94, 0.3);
}
.contact__facts li {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.4;
  color: #fbf6ec;
}
.contact__facts span {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--sans);
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact__wa {
  margin-top: 1.8rem;
  font-size: 0.82rem;
  color: rgba(250, 247, 242, 0.6);
}
.contact__wa a {
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(227, 174, 94, 0.5);
  white-space: nowrap;
}

.contact__form-wrap {
  background: var(--cream-2);
  color: var(--ink);
  padding: clamp(1.5rem, 3.5vw, 2.8rem);
  border-top: 2px solid var(--gold);
  box-shadow: 0 40px 80px -60px rgba(0, 0, 0, 0.8);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.2rem;
}

.field { margin-bottom: 1.15rem; display: flex; flex-direction: column; }

.field label {
  margin-bottom: 0.4rem;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.field label span { color: var(--gold-ink); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #dccfbf;
  border-radius: 1px;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 300;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 70px; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(227, 174, 94, 0.18);
}

.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 1.3rem;
}
.field--check input {
  margin-top: 0.28rem;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--gold-ink);
  cursor: pointer;
}
.field--check label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.55;
  color: var(--ink-soft);
}
.field--check label a { border-bottom: 1px solid var(--gold); color: var(--brown); }

.form__honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form__submit { width: 100%; margin-top: 0.4rem; }
.form__submit[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.form__note {
  margin-top: 0.9rem;
  font-size: 0.72rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--accent);
}

.form__status {
  min-height: 1.4rem;
  margin-top: 0.9rem;
  font-size: 0.82rem;
  line-height: 1.55;
  max-width: none;
}
.form__status.is-success { color: #47603a; }
.form__status.is-error { color: #a33a2a; }

/* --------------------------------------------------------------- footer */
.site-footer {
  background: #241c16;
  color: rgba(250, 247, 242, 0.72);
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.8rem;
  font-size: 0.86rem;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 0.75fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid rgba(227, 174, 94, 0.18);
}

.footer__marks { display: flex; align-items: center; gap: 0.9rem; }
.footer__mark {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  padding: 5px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.35s var(--ease);
}
.footer__mark:hover { transform: translateY(-2px); }
.footer__mark img { width: 100%; height: 100%; object-fit: contain; }
.footer__marks-join {
  width: 1px;
  height: 34px;
  background: rgba(250, 247, 242, 0.25);
}

.footer__claim {
  margin-top: 1.2rem;
  max-width: 34ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(250, 247, 242, 0.75);
}

.footer__date {
  margin-top: 0.9rem;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.64);
  line-height: 1.9;
}

.footer__nav h3,
.footer__comitato h3 {
  margin-bottom: 1rem;
  font-family: var(--sans);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer__nav li + li { margin-top: 0.45rem; }
.footer__nav a {
  font-size: 0.84rem;
  color: rgba(250, 247, 242, 0.68);
  transition: color 0.3s var(--ease);
}
.footer__nav a:hover { color: var(--gold-soft); }

.footer__comitato p {
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.85;
  color: rgba(250, 247, 242, 0.85);
}
.footer__site {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(227, 174, 94, 0.45);
}

.footer__crest-link { display: inline-flex; align-items: center; transition: transform 0.35s var(--ease); }
.footer__crest-link:hover { transform: translateY(-2px); }

.footer__crest {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid rgba(227, 174, 94, 0.18);
}
.footer__crest img { width: 92px; height: 92px; object-fit: contain; opacity: 0.95; }
.footer__crest span {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.4;
  color: rgba(250, 247, 242, 0.8);
}
.footer__crest em {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.64);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.55);
}
.footer__bottom p { max-width: none; }
.footer__legal { display: flex; gap: 0.7rem; align-items: center; }
.footer__legal a { border-bottom: 1px solid transparent; }
.footer__legal a:hover { color: var(--gold-soft); border-color: rgba(227, 174, 94, 0.5); }
.footer__home { color: rgba(250, 247, 242, 0.7); }
.footer__home:hover { color: var(--gold-soft); }

/* --------------------------------------------------------------- to top */
.to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 40px;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px -18px rgba(20, 15, 12, 0.7);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s, background 0.3s var(--ease);
}
.to-top svg { width: 14px; height: 14px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); border-color: var(--gold); }

/* --------------------------------------------------------------- lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: rgba(18, 13, 10, 0.97);
  backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.lightbox__figure img {
  max-width: 100%;
  filter: saturate(0.9) sepia(0.06);
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid rgba(227, 174, 94, 0.25);
}
.lightbox__figure figcaption {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.7);
  text-align: center;
  max-width: 60ch;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(250, 247, 242, 0.3);
  background: transparent;
  color: var(--cream);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__nav {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(250, 247, 242, 0.3);
  background: transparent;
  color: var(--cream);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.lightbox__nav:hover,
.lightbox__close:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.lightbox__counter {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  color: rgba(250, 247, 242, 0.5);
}

/* --------------------------------------------------------------- reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1320px) {
  .nav {
    position: fixed;
    inset: 0;
    z-index: 95;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    padding: 6rem var(--gutter) 3rem;
    background: #241c16;
    color: var(--cream);
    transform: translateX(100%);
    transition: transform 0.55s var(--ease);
    overflow-y: auto;
    visibility: hidden;
  }
  body.nav-open .nav { transform: none; visibility: visible; }

  .nav__list { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .nav__link {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 5vw, 2rem);
    letter-spacing: 0;
    text-transform: none;
    opacity: 1;
    padding-block: 0.55rem;
  }
  .nav__link::after { display: none; }

  .nav__brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.5rem;
  }
  .nav__brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(250, 247, 242, 0.95);
    padding: 3px;
  }
  .nav__brand-rule {
    width: 1px;
    height: 26px;
    background: rgba(250, 247, 242, 0.3);
  }

  .nav__aside { display: block; }
  .nav__aside .btn {
    padding: 1rem 2.2rem;
    font-size: 0.68rem;
  }
  .nav__note {
    margin-top: 1rem;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    line-height: 1.9;
    color: rgba(250, 247, 242, 0.45);
  }

  .burger { display: block; position: relative; z-index: 100; }
  .site-header.is-stuck .burger { color: var(--ink); }
  body.nav-open .site-header { color: var(--cream); }
  body.nav-open .site-header .brand__crest,
  body.nav-open .site-header .brand__vgt { background: var(--cream); }
  body.nav-open .burger { border-color: rgba(250, 247, 242, 0.35); }
  body.nav-open .site-header.is-stuck { background: transparent; box-shadow: none; backdrop-filter: none; }

  .hero__side { display: none; }
}

@media (max-width: 1024px) {
  .split,
  .gaming,
  .program,
  .quota,
  .science,
  .contact,
  .tenuta__head { grid-template-columns: 1fr; }

  .split__media { order: -1; }
  .split__media img { aspect-ratio: 16 / 10; }

  .principle { grid-template-columns: 1fr; }
  .principle__media { order: -1; }
  .principle__media img { aspect-ratio: 16 / 9; }

  .worlds { grid-template-columns: 1fr 1fr; }
  .world:nth-child(2n) { border-right: 0; }
  .world:nth-child(3) { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .world:nth-child(3) p { max-width: 70ch; }

  .states { grid-template-columns: 1fr 1fr; }

  .info { grid-template-columns: 1fr; }

  .doppio__grid { grid-template-columns: 1fr; }
  .doppio__media { position: static; }
  .doppio__media img { aspect-ratio: 16 / 10; }

  .gaming__media { order: -1; }
  .gaming__media figure:nth-child(2) { margin-top: 2rem; }

  .person { grid-template-columns: 180px 1fr; }

  .footer__top { grid-template-columns: 1fr 1fr; }

  .quota__price strong { font-size: 3.4rem; }
}

.header-claim { display: none; }

@media (max-width: 600px) {
  :root { --header-h: 90px; }
  .site-header__inner {
    flex-wrap: wrap;
    row-gap: 0.3rem;
    padding-bottom: 0.85rem;
  }
  .brand__claim { display: none; }
  .header-claim {
    display: block;
    flex: 0 0 100%;
    margin-top: 0.15rem;
    font-size: 0.5rem;
    letter-spacing: 0.09em;
    line-height: 1.35;
    text-transform: uppercase;
    opacity: 0.72;
  }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  :root { --header-h: 74px; }
  .team__comitato-names span { display: block; }
  .team__comitato-names span + span::before { content: none; }

  .brand__crest { width: 36px; height: 36px; }
  .brand__divider { display: none; }
  .brand__vgt { width: 36px; height: 36px; }
  .brand__name { font-size: 0.92rem; }
  .brand__claim { max-width: 16.5rem; font-size: 0.46rem; letter-spacing: 0.1em; }
  .header-cta { display: none; }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + 3rem); padding-bottom: 9rem; }
  .hero__media img { object-position: 62% 50%; }
  .hero__veil {
    background:
      linear-gradient(to top, rgba(24, 18, 14, 0.96) 0%, rgba(24, 18, 14, 0.8) 42%, rgba(24, 18, 14, 0.42) 70%, rgba(24, 18, 14, 0.5) 100%);
  }
  .hero__content { max-width: none; }
  .hero .eyebrow { white-space: normal; letter-spacing: 0.14em; font-size: 0.55rem; line-height: 1.9; }
  .hero__title { font-size: clamp(2.9rem, 13vw, 4.2rem); }
  .hero__text { font-size: 0.95rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__scroll { display: none; }

  .brief { margin-top: -64px; }
  .brief__grid { grid-template-columns: 1fr 1fr; }
  .brief__item:nth-child(3n) { border-right: 1px solid var(--line-soft); }
  .brief__item:nth-child(2n) { border-right: 0; }
  .brief__item:nth-child(n + 4) { border-bottom: 1px solid var(--line-soft); }
  .brief__item:nth-child(n + 5) { border-bottom: 0; }
  .brief__item { padding: 1.2rem 1.1rem; }
  .brief__value { font-size: 0.94rem; }

  .states { grid-template-columns: 1fr; }
  .state__retreat { margin-top: 1.1rem; }

  .doppio__points { grid-template-columns: 1fr; gap: 1.6rem; }

  .wide-media img { aspect-ratio: 4 / 3; }

  .data-table thead { display: none; }
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td { display: block; width: 100%; }

  .data-table tr {
    margin-bottom: 1rem;
    padding: 1.15rem 1.2rem;
    background: var(--cream-2);
    border: 1px solid var(--line);
  }
  .data-table tbody th {
    padding: 0 0 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1.08rem;
  }
  .data-table tbody td { padding: 0.45rem 0; border: 0; font-size: 0.88rem; }
  .data-table tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.1rem;
    font-size: 0.52rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-ink);
  }

  .timeline li { grid-template-columns: 84px 1fr; gap: 1rem; }
  .timeline__time { font-size: 0.8rem; }
  .timeline__body h4 { font-size: 0.94rem; }

  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__item:nth-child(3n + 2) { transform: none; }
  .gallery__item:nth-child(even) { transform: translateY(1.2rem); }
  .gallery__cap { opacity: 1; transform: none; font-size: 0.52rem; padding: 2rem 0.7rem 0.7rem; }

  .quota { padding: 1.8rem 1.4rem; }
  .quota::before { inset: 7px; }
  .quota__price strong { font-size: 3rem; }

  .person { grid-template-columns: 1fr; gap: 1.4rem; }
  .person__media { max-width: 200px; }

  .form__row { grid-template-columns: 1fr; gap: 0; }

  .contact__facts { grid-template-columns: 1fr 1fr; }

  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .footer__crest img { width: 72px; height: 72px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 0.8rem; }

  .lightbox { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .lightbox__nav { position: absolute; bottom: 1rem; width: 42px; height: 42px; }
  .lightbox__nav--prev { left: 1rem; }
  .lightbox__nav--next { right: 1rem; }
  .lightbox__figure img { max-height: 68vh; }
  .lightbox__counter { bottom: 4.4rem; }

  .to-top { right: 1rem; bottom: 1rem; height: 38px; padding: 0 0.85rem; }
}

@media (max-width: 480px) {
  .brief__grid { grid-template-columns: 1fr; }
  .brief__item { border-right: 0 !important; border-bottom: 1px solid var(--line-soft) !important; }
  .brief__item:last-child { border-bottom: 0 !important; }
  .worlds { grid-template-columns: 1fr; }
  .world { border-right: 0; }
  .world:nth-child(3) { grid-column: auto; border-bottom: 1px solid var(--line); }
  .world:last-child { border-bottom: 0; }
  .contact__facts { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item:nth-child(even) { transform: none; }
  .gallery__item { aspect-ratio: 4 / 3; }
  .timeline li { grid-template-columns: 1fr; gap: 0.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .to-top, .hero__scroll, .lightbox { display: none; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
}
