/* =========================================================
   La Corte di Parco San Paolo — bozza (progetto TORRI HF)
   ========================================================= */

:root {
  /* palette: l'evoluzione del blu e del giallo del sito attuale */
  --ink: #0E1A2B;          /* notte, testo */
  --navy: #1F3557;         /* blu del brand */
  --navy-soft: #3B5680;
  --paper: #F3EFE7;        /* pietra chiara */
  --paper-2: #E9E3D8;
  --stone: #CFC6B6;
  --brass: #D6B062;        /* il giallo, più caldo e meno saturo */
  --brass-soft: #EAD7A6;
  --sage: #7D8C6E;
  --muted: #6C6A63;
  --line: rgba(14, 26, 43, .14);
  --line-light: rgba(243, 239, 231, .22);

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter Tight', system-ui, -apple-system, sans-serif;

  --gutter: clamp(16px, 4.2vw, 64px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
em { font-style: italic; }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }

/* ---------- utility ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 0;
  font-size: .72rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--light { color: rgba(243, 239, 231, .78); }
.eyebrow__line { width: 36px; height: 1px; background: currentColor; opacity: .7; }

.mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.mask > span { display: block; will-change: transform; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out), border-color .4s var(--ease-out);
}
.btn--pill { padding: 17px 28px; border-radius: 999px; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .5s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn--brass { background: var(--brass); color: var(--ink); }
.btn--brass:hover { background: var(--paper); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--navy); }
.btn--ghost-light { color: var(--paper); border: 1px solid var(--line-light); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(14, 26, 43, .12); }
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 0 rgba(214, 176, 98, .6); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(214, 176, 98, .55); }
  70% { box-shadow: 0 0 0 10px rgba(214, 176, 98, 0); }
  100% { box-shadow: 0 0 0 0 rgba(214, 176, 98, 0); }
}

/* =========================================================
   PRELOADER
   ========================================================= */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  color: var(--paper);
  pointer-events: none;
}
.preloader__panel { position: absolute; inset: 0; background: var(--ink); transform-origin: top; }
.preloader__inner { position: relative; display: grid; justify-items: center; gap: 28px; text-align: center; }
.preloader__brand { margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1; }
.preloader__brand em { color: var(--brass-soft); }
.preloader__bar { width: min(240px, 60vw); height: 1px; background: var(--line-light); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; background: var(--brass); transform: scaleX(0); transform-origin: left; }
.preloader__count { margin: 0; font-size: .72rem; letter-spacing: .3em; font-variant-numeric: tabular-nums; opacity: .7; }
.preloader__count sup { font-size: .8em; margin-left: 2px; }

/* =========================================================
   CURSOR
   ========================================================= */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 150;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--brass);
  pointer-events: none;
  display: grid; place-items: center;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background-color .3s;
  mix-blend-mode: normal;
  opacity: 0;
}
.cursor__label { opacity: 0; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); font-weight: 600; transition: opacity .3s; }
.cursor.is-hover { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(214, 176, 98, .25); backdrop-filter: blur(2px); }
.cursor.is-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--brass); }
.cursor.is-label .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 26px var(--gutter);
  color: var(--paper);
  transition: padding .5s var(--ease-out), color .5s, background-color .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.header.is-solid {
  padding-block: 16px;
  color: var(--ink);
  background: rgba(243, 239, 231, .82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-color: var(--line);
}
.header.is-solid .btn--ghost-light { color: var(--ink); border-color: var(--line); background: transparent; }
.header.is-solid .btn--ghost-light:hover { background: var(--ink); color: var(--paper); }
.header.is-hidden { transform: translateY(-100%); }
.header { transition: transform .6s var(--ease-out), padding .5s var(--ease-out), color .5s, background-color .5s, border-color .5s; }

.wordmark { display: inline-flex; flex-direction: column; line-height: 1; justify-self: start; }
.wordmark__main { font-family: var(--serif); font-size: 1.7rem; letter-spacing: .01em; }
.wordmark__sub { margin-top: 6px; font-size: .58rem; letter-spacing: .26em; text-transform: uppercase; opacity: .72; }

.nav { display: flex; gap: 38px; font-size: .82rem; letter-spacing: .02em; }
.nav a { position: relative; padding: 8px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header__right { display: flex; align-items: center; gap: 18px; justify-self: end; }
.header__right .btn--pill { padding: 13px 22px; font-size: .7rem; }
.burger { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-content: center; gap: 6px; }
.header.is-solid .burger { border-color: var(--line); }
.burger span { display: block; width: 18px; height: 1px; background: currentColor; transition: transform .5s var(--ease-out); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
body.menu-open .header { color: var(--paper); background: transparent; border-color: transparent; backdrop-filter: none; }

/* =========================================================
   MENU OVERLAY
   ========================================================= */
.menu {
  position: fixed; inset: 0; z-index: 90;
  display: grid; grid-template-rows: 1fr auto;
  padding: 140px var(--gutter) 40px;
  color: var(--paper);
  visibility: hidden;
}
.menu__bg { position: absolute; inset: 0; background: var(--ink); clip-path: inset(0 0 100% 0); }
.menu__nav { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 22px;
  font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1.05;
  transition: color .4s, padding .5s var(--ease-out);
}
.menu__nav a span { font-family: var(--sans); font-size: .75rem; letter-spacing: .2em; color: var(--brass); }
.menu__nav a:hover { color: var(--brass-soft); padding-left: 18px; }
.menu__foot { position: relative; display: flex; justify-content: space-between; gap: 24px; font-size: .85rem; opacity: .7; }
.menu__foot p { margin: 0; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; height: 560vh; background: var(--ink); }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--paper); }

.hero__media { position: absolute; inset: 0; will-change: clip-path, transform; }
.hero__canvas, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { display: none; }
.hero__media.is-video .hero__video { display: block; }
.hero__media.is-video .hero__canvas { display: none; }

.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 26, 43, .55) 0%, rgba(14, 26, 43, 0) 26%),
    linear-gradient(0deg, rgba(14, 26, 43, .78) 0%, rgba(14, 26, 43, .1) 45%, rgba(14, 26, 43, 0) 60%),
    radial-gradient(120% 90% at 50% 40%, transparent 50%, rgba(14, 26, 43, .45) 100%);
}
.hero__grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07; mix-blend-mode: overlay; pointer-events: none;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -2%); }
  60% { transform: translate(-2%, -4%); } 80% { transform: translate(4%, 2%); } 100% { transform: translate(0, 0); }
}

/* --- scena 0: titolo --- */
.hero__intro {
  position: absolute; inset: 0;
  display: grid; grid-template-rows: 1fr auto auto;
  padding: 0 var(--gutter) clamp(36px, 7vh, 76px);
}
.hero__eyebrow { grid-row: 2; margin-bottom: clamp(10px, 2vh, 24px); }
.hero__title {
  grid-row: 3;
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  line-height: .86; letter-spacing: -.02em;
}
.hero__title-line { display: block; font-size: clamp(4.6rem, 17.5vw, 17rem); }
.hero__title-line--sub { font-size: clamp(1.8rem, 4.6vw, 4.4rem); line-height: 1.1; margin-top: .1em; color: var(--brass-soft); letter-spacing: -.01em; }
.hero__title .char { display: inline-block; will-change: transform; }
.hero__title .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }

.hero__meta {
  position: absolute; right: var(--gutter); bottom: clamp(36px, 7vh, 76px);
  display: grid; justify-items: end; gap: 28px; text-align: right;
}
.hero__lead { margin: 0; font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.9rem); line-height: 1.15; }
.hero__facts { display: flex; gap: 34px; margin: 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line-light); font-size: .92rem; }
.hero__facts li { display: grid; gap: 4px; text-align: left; }
.hero__facts span { font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; opacity: .62; }

/* --- scene centrali --- */
.hero__scene, .hero__outro {
  position: absolute; left: var(--gutter); right: var(--gutter);
  visibility: hidden;
}
.scene-index {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 22px;
  font-size: .7rem; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(243, 239, 231, .75);
}
.scene-index span { color: var(--brass); }
.scene-index::after { content: ''; width: 48px; height: 1px; background: currentColor; opacity: .5; }
.scene-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6.4vw, 6.4rem); line-height: .98; letter-spacing: -.015em; }
.scene-title em { color: var(--brass-soft); }
.scene-title--xl { font-size: clamp(2.8rem, 7.6vw, 7.8rem); }
.scene-copy { max-width: 400px; margin: 26px 0 0; font-size: 1rem; line-height: 1.6; color: rgba(243, 239, 231, .8); }

.hero__scene--place { top: 50%; }

.hero__scene--numbers { bottom: clamp(40px, 9vh, 96px); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-light); }
.stat { display: grid; gap: 14px; padding: 26px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line-light); }
.stat__num { font-family: var(--serif); font-size: clamp(3.4rem, 8vw, 8.4rem); line-height: .9; font-variant-numeric: tabular-nums; }
.stat__num--letter { color: var(--brass-soft); }
.stat__label { font-size: .82rem; line-height: 1.45; color: rgba(243, 239, 231, .72); }

.hero__outro { top: 50%; text-align: center; display: grid; justify-items: center; }
.hero__outro .scene-index { justify-content: center; }
.hero__outro .scene-index::before { content: ''; width: 48px; height: 1px; background: currentColor; opacity: .5; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 44px; }

/* --- HUD --- */
.hud { position: absolute; inset: 0; pointer-events: none; }
.hud__chapters {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: grid; justify-items: end; gap: 16px; margin: 0; padding: 0 22px 0 0; list-style: none;
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
}
.hud__chapters li { display: flex; gap: 10px; opacity: .35; transition: opacity .5s, transform .5s var(--ease-out); }
.hud__chapters li span { color: var(--brass); }
.hud__chapters li.is-active { opacity: 1; transform: translateX(-6px); }
.hud__track { position: absolute; right: var(--gutter); top: 50%; width: 1px; height: 120px; transform: translateY(-50%); background: var(--line-light); }
.hud__fill { position: absolute; inset: 0; background: var(--brass); transform: scaleY(0); transform-origin: top; }

.hud__scroll {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 12px;
  font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; opacity: .8;
}
.hud__scroll-line { position: relative; width: 1px; height: 44px; background: var(--line-light); overflow: hidden; }
.hud__scroll-line::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--paper); animation: scrollLine 2s var(--ease-io) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

.hud__frame {
  position: absolute; left: calc(var(--gutter) / 2); top: 50%; transform: translate(-50%, -50%) rotate(-90deg);
  display: flex; gap: 6px; align-items: center;
  font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; font-variant-numeric: tabular-nums;
  opacity: .55; white-space: nowrap;
}
.hud__frame-label { margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line-light); color: var(--brass-soft); }

/* --- badge rotante --- */
.badge {
  position: absolute; right: var(--gutter); top: 118px;
  width: 116px; height: 116px;
  display: grid; place-items: center;
  color: var(--paper);
}
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge__ring text { font-size: 9.6px; letter-spacing: .22em; text-transform: uppercase; fill: currentColor; font-family: var(--sans); font-weight: 500; }
.badge__core { width: 52px; height: 52px; border-radius: 50%; background: var(--brass); color: var(--ink); display: grid; place-items: center; transition: transform .5s var(--ease-out), background-color .4s; }
.badge__core svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.badge:hover .badge__core { transform: scale(1.12) rotate(45deg); background: var(--paper); }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   VISITA
   ========================================================= */
.visit { position: relative; z-index: 2; background: var(--paper); padding: clamp(110px, 14vw, 200px) var(--gutter); }
.visit__inner { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); max-width: 1440px; margin: 0 auto; }
.visit__title { margin: 22px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 6vw, 5.6rem); line-height: .95; letter-spacing: -.015em; }
.visit__title em { color: var(--navy-soft); }
.visit__copy { max-width: 380px; margin: 28px 0 0; color: var(--muted); line-height: 1.65; }

.visit__form { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 36px; align-content: start; padding-top: 8px; }
.field { position: relative; }
.field input {
  width: 100%; padding: 26px 0 12px;
  font: inherit; font-size: 1.05rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  outline: none; transition: border-color .4s;
}
.field label { position: absolute; left: 0; top: 24px; font-size: .95rem; color: var(--muted); pointer-events: none; transition: transform .45s var(--ease-out), font-size .45s var(--ease-out), color .3s; transform-origin: left; }
.field input:focus { border-color: var(--ink); }
.field input:focus + label, .field input:not(:placeholder-shown) + label { transform: translateY(-22px); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.field::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.field:focus-within::after { transform: scaleX(1); }

.chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; }
.chips legend { width: 100%; margin-bottom: 14px; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; cursor: pointer; transition: all .35s var(--ease-out); }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 3px; }

.visit__submit { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 10px; }
.visit__note { max-width: 300px; margin: 0; font-size: .75rem; color: var(--muted); }

.visit__title .mask > span { padding-bottom: .02em; }
.visit__contacts { margin: 40px 0 0; padding: 0; list-style: none; max-width: 420px; }
.visit__contacts li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.visit__contacts li:last-child { border-bottom: 1px solid var(--line); }
.visit__contacts span { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.visit__contacts a:hover { color: var(--navy-soft); }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: .85rem; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }

/* =========================================================
   COMUNI ALLE SEZIONI
   ========================================================= */
.wrap { max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.section-title {
  margin: 22px 0 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 5.6vw, 5.4rem); line-height: .98; letter-spacing: -.015em;
}
.section-title em { color: var(--navy-soft); }
.section-title--light { color: var(--paper); }
.section-title--light em { color: var(--brass-soft); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 34px;
  font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  padding-bottom: 6px; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .6s var(--ease-out);
}
.link-arrow:hover { background-size: 30% 1px; }
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .5s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }

[data-reveal-img] { overflow: hidden; }
[data-parallax-img] { position: relative; height: 116% !important; top: -8%; }

/* =========================================================
   01 · CONCEPT
   ========================================================= */
.concept { position: relative; z-index: 2; background: var(--paper); padding-top: clamp(110px, 14vw, 200px); }
.manifesto {
  max-width: 1180px; margin: 40px 0 0;
  font-family: var(--serif); font-size: clamp(2rem, 4.3vw, 4.2rem); line-height: 1.1; letter-spacing: -.01em;
}
.manifesto em { color: var(--navy-soft); }
.manifesto .w { display: inline-block; }
.concept__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(60px, 8vw, 110px); padding-top: 30px; border-top: 1px solid var(--line); }
.concept__cols h3 { margin: 10px 0 10px; font-size: 1.05rem; font-weight: 500; }
.concept__cols p { margin: 0; max-width: 320px; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.concept__num { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--brass); }

.concept__media { position: relative; height: 100vh; height: 100svh; margin: clamp(80px, 10vw, 140px) 0 0; }
.concept__frame { position: absolute; inset: 0; overflow: hidden; clip-path: inset(12% 20% 12% 20% round 28px); will-change: clip-path; }
.concept__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); will-change: transform; }
.concept__caption {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px;
  display: flex; justify-content: space-between; gap: 20px;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--paper);
  text-shadow: 0 1px 12px rgba(14, 26, 43, .5);
}

/* =========================================================
   ELEGANZA E COMFORT
   ========================================================= */
.elegance { background: var(--paper); padding: clamp(110px, 14vw, 200px) 0 clamp(120px, 14vw, 200px); }
.elegance__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.elegance__text { position: sticky; top: 140px; }
.elegance__text > p:not(.eyebrow) { max-width: 440px; margin: 28px 0 0; color: var(--muted); line-height: 1.7; }
.elegance__images { position: relative; padding-bottom: 14%; }
.elegance__main { width: 76%; aspect-ratio: 4 / 5; margin: 0 0 0 auto; border-radius: 22px; }
.elegance__main img, .elegance__detail img { width: 100%; height: 100%; object-fit: cover; }
.elegance__detail { position: absolute; left: 0; bottom: 0; width: 38%; aspect-ratio: 3 / 4; margin: 0; border-radius: 16px; outline: 10px solid var(--paper); }
.elegance__tag {
  position: absolute; top: 9%; left: 8%;
  width: 132px; height: 132px; margin: 0; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: var(--brass); color: var(--ink);
  font-family: var(--serif); font-size: 1.15rem; line-height: 1.05;
}
.elegance__tag span { display: block; font-family: var(--sans); font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 6px; }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee { background: var(--paper); padding: 30px 0; border-block: 1px solid var(--line); overflow: hidden; }
.marquee__row { overflow: hidden; }
.marquee__track { display: flex; align-items: center; width: max-content; will-change: transform; }
.marquee__track span { padding: 0 .45em; font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 6rem); line-height: 1.15; white-space: nowrap; }
.marquee__track em { color: var(--navy-soft); }
.marquee__track i { flex: none; width: 14px; height: 14px; background: var(--brass); transform: rotate(45deg); }
.marquee__row--alt span { color: transparent; -webkit-text-stroke: 1px var(--ink); }
.marquee__row--alt em { color: transparent; -webkit-text-stroke: 1px var(--navy-soft); }

/* =========================================================
   02 · DOTAZIONI
   ========================================================= */
.features { background: var(--paper); padding: clamp(110px, 14vw, 200px) 0; }
.features__head { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: end; margin-bottom: clamp(50px, 7vw, 90px); }
.features__head .eyebrow { grid-column: 1 / -1; }
.features__head .section-title { margin: 0; }
.features__lead { max-width: 420px; margin: 0; color: var(--muted); line-height: 1.7; }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; align-content: start; gap: 12px;
  min-height: 300px; padding: 34px 28px 40px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: color .5s var(--ease-out);
}
.feature::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--navy); transform: translateY(101%); transition: transform .7s var(--ease-out); }
.feature:hover { color: var(--paper); }
.feature:hover::before { transform: none; }
.feature__n { position: absolute; top: 28px; right: 28px; font-size: .7rem; letter-spacing: .2em; color: var(--muted); transition: color .5s; }
.feature__icon { width: 40px; height: 40px; margin-bottom: 52px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .5s, transform .7s var(--ease-out); }
.feature h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.05; }
.feature p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--muted); transition: color .5s; }
.feature:hover p, .feature:hover .feature__n { color: rgba(243, 239, 231, .75); }
.feature:hover .feature__icon { stroke: var(--brass); transform: translateY(-6px); }

/* =========================================================
   03 · RESIDENZE (scroll orizzontale)
   ========================================================= */
.residences { background: var(--ink); color: var(--paper); }
.residences__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.residences__track { display: flex; align-items: center; gap: clamp(28px, 4vw, 70px); height: 100%; width: max-content; padding: 0 var(--gutter); will-change: transform; }
.res-panel { flex: none; margin: 0; }
.res-panel--intro { width: min(560px, 84vw); }
.res-big { display: flex; align-items: flex-end; gap: 22px; margin-top: clamp(26px, 5vh, 50px); }
.res-big__num { font-family: var(--serif); font-size: clamp(6rem, 13vw, 12rem); line-height: .78; color: var(--brass-soft); font-variant-numeric: tabular-nums; }
.res-big__label { padding-bottom: 6px; font-size: .82rem; line-height: 1.5; color: rgba(243, 239, 231, .7); }
.res-facts { margin: clamp(26px, 5vh, 46px) 0 0; padding: 0; list-style: none; }
.res-facts li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line-light); font-size: .95rem; }
.res-facts span { color: rgba(243, 239, 231, .6); }
.res-hint { display: flex; align-items: center; gap: 14px; margin: 36px 0 0; font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; opacity: .7; }
.res-hint span { position: relative; width: 60px; height: 1px; background: var(--line-light); overflow: hidden; }
.res-hint span::after { content: ''; position: absolute; inset: 0; width: 40%; background: var(--brass); animation: hint 2s var(--ease-io) infinite; }
@keyframes hint { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

.res-panel--img .res-img { height: 60vh; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 18px; }
.res-panel--tall .res-img { height: 72vh; }
.res-panel--wide .res-img { aspect-ratio: 16 / 10; }
.res-panel--img { width: min-content; }
.res-img img { width: 116%; max-width: none; height: 100%; object-fit: cover; margin-left: -8%; will-change: transform; }
.res-panel figcaption { display: flex; align-items: baseline; gap: 14px; margin-top: 18px; font-family: var(--serif); font-size: 1.5rem; }
.res-panel figcaption span { font-family: var(--sans); font-size: .66rem; letter-spacing: .2em; color: var(--brass); }
.res-panel figcaption em { margin-left: auto; font-family: var(--sans); font-style: normal; font-size: .8rem; color: rgba(243, 239, 231, .55); }

.res-panel--end { width: min(520px, 80vw); padding-right: var(--gutter); }
.res-end__title { margin: 0 0 34px; font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: 1; }
.res-end__title em { color: var(--brass-soft); }

.residences__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 38px; height: 1px; background: var(--line-light); }
.residences__progress span { position: absolute; inset: 0; background: var(--brass); transform: scaleX(0); transform-origin: left; }

/* =========================================================
   04 · UNITÀ
   ========================================================= */
.units { position: relative; background: var(--paper); padding: clamp(110px, 14vw, 200px) 0; }
.units__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(50px, 7vw, 90px); }
.units__lead { max-width: 380px; margin: 0; color: var(--muted); line-height: 1.7; }
.units__labels, .unit__row { display: grid; grid-template-columns: 70px 1fr 200px 200px 52px; align-items: center; gap: 16px; }
.units__labels { padding-bottom: 14px; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.units__labels span:first-child { grid-column: 1 / 3; }
.unit { position: relative; border-top: 1px solid var(--line); }
.unit:last-of-type { border-bottom: 1px solid var(--line); }
.unit::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out); }
.unit:hover::after { transform: scaleX(1); }
.unit__row { width: 100%; padding: clamp(22px, 3vw, 36px) 0; text-align: left; }
.unit__n { font-size: .7rem; letter-spacing: .2em; color: var(--muted); }
.unit__name { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1; transition: transform .7s var(--ease-out), color .4s; }
.unit__name em { font-size: .5em; color: var(--muted); }
.unit__rooms { font-size: .92rem; color: var(--muted); }
.unit__price { font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.9rem); }
.unit__plus { position: relative; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; transition: transform .6s var(--ease-out), background-color .4s, border-color .4s; }
.unit__plus::before, .unit__plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1px; margin: 0 0 0 -7px; background: currentColor; }
.unit__plus::after { transform: rotate(90deg); }
.unit__row:hover .unit__name { transform: translateX(14px); color: var(--navy-soft); }
.unit__row:hover .unit__plus { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.unit__row[aria-expanded="true"] .unit__plus { transform: rotate(45deg); background: var(--brass); border-color: var(--brass); color: var(--ink); }
.unit__panel { height: 0; overflow: hidden; }
.unit__panel-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 0 0 34px 86px; }
.unit__panel-inner p { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.65; }
.units__note { margin: 22px 0 0; font-size: .75rem; color: var(--muted); }

.units__preview {
  position: fixed; top: 0; left: 0; z-index: 40;
  width: 300px; aspect-ratio: 4 / 5; margin: -190px 0 0 -150px;
  pointer-events: none; opacity: 0; transform: scale(.6);
}
.units__preview-inner { position: absolute; inset: 0; overflow: hidden; border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(14, 26, 43, .45); }
.units__preview-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   05 · POSIZIONE
   ========================================================= */
.location { background: var(--navy); color: var(--paper); padding: clamp(110px, 14vw, 200px) 0; }
.location__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.location__text > p:not(.eyebrow) { max-width: 440px; margin: 28px 0 0; color: rgba(243, 239, 231, .75); line-height: 1.7; }
.nearby { margin: 44px 0 0; padding: 0; list-style: none; }
.nearby li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line-light); }
.nearby li:last-child { border-bottom: 1px solid var(--line-light); }
.nearby__cat { font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
.nearby__name { font-family: var(--serif); font-size: 1.55rem; line-height: 1.1; }

.location__map { position: relative; height: min(640px, 76vh); border-radius: 22px; background: var(--ink); }
.location__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05) brightness(.92); transition: filter .6s; }
.location__unlock { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(31, 53, 87, .28); transition: background-color .5s; }
.location__unlock span { padding: 14px 22px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .5s var(--ease-out); }
.location__unlock:hover { background: rgba(31, 53, 87, .12); }
.location__unlock:hover span, .location__unlock:focus-visible span { opacity: 1; transform: none; }
.location__map.is-live .location__unlock { display: none; }
.location__map.is-live iframe { filter: grayscale(.2); }
.location__card {
  position: absolute; left: 20px; bottom: 20px;
  display: flex; align-items: center; gap: 16px;
  padding: 16px 16px 16px 20px; border-radius: 16px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5);
}
.location__card strong { display: block; font-weight: 500; font-size: .95rem; }
.location__card span { font-size: .82rem; color: var(--muted); }
.location__pin { width: 12px; height: 12px; border-radius: 50%; background: var(--brass); animation: pulse 2.4s infinite; flex: none; }
.location__open { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); transition: background-color .4s; }
.location__open:hover { background: var(--brass); color: var(--ink); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; background: var(--ink); color: var(--paper); padding-top: clamp(90px, 12vw, 160px); overflow: hidden; }
.footer__cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-bottom: clamp(50px, 7vw, 90px); border-bottom: 1px solid var(--line-light); }
.footer__cta-title { margin: 0; font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 6rem); line-height: .98; }
.footer__cta-title em { color: var(--brass-soft); }
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr .8fr; gap: 40px; padding: 60px 0 20px; }
.footer__cols h3 { margin: 0 0 16px; font-size: .66rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
.footer__cols p { margin: 0; max-width: 300px; font-size: .92rem; line-height: 1.8; color: rgba(243, 239, 231, .72); }
.footer__cols a:hover { color: var(--paper); }
.footer__giant {
  margin: 0; padding: 0 var(--gutter);
  font-family: var(--serif); font-size: 25.5vw; line-height: .78; letter-spacing: -.035em; text-align: center; white-space: nowrap;
  color: rgba(243, 239, 231, .92);
  -webkit-mask-image: linear-gradient(180deg, #000 15%, transparent 96%); mask-image: linear-gradient(180deg, #000 15%, transparent 96%);
  transform: translateY(8%);
}
.footer__giant .char { display: inline-block; }
.footer__bottom { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 26px 30px; border-top: 1px solid var(--line-light); font-size: .76rem; color: rgba(243, 239, 231, .6); background: var(--ink); }
.footer__bottom p { margin: 0; }
.footer__bottom a:hover { color: var(--paper); }
.footer__top { padding: 10px 18px; border: 1px solid var(--line-light); border-radius: 999px; color: var(--paper); }

/* --- CTA laterale --- */
.side-cta {
  position: fixed; left: 0; top: 50%; z-index: 80;
  padding: 24px 13px;
  background: var(--brass); color: var(--ink);
  writing-mode: vertical-rl; transform: translate(-110%, -50%) rotate(180deg);
  font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  transition: transform .7s var(--ease-out), background-color .4s;
}
.side-cta { border-radius: 12px 0 0 12px; }
.side-cta.is-visible { transform: translate(0, -50%) rotate(180deg); }
.side-cta:hover { background: var(--paper); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .nav { display: none; }
  .header { grid-template-columns: 1fr auto; }
  .hud__chapters, .hud__track { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-light); margin-top: 22px; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .elegance__grid, .location__grid { grid-template-columns: 1fr; }
  .elegance__text { position: static; }
  .units__labels, .unit__row { grid-template-columns: 50px 1fr 150px 48px; }
  .units__labels span:nth-child(2), .unit__rooms { display: none; }
  .unit__panel-inner { padding-left: 66px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .header { padding-block: 18px; }
  .header__right .btn--pill { display: none; }
  .wordmark__main { font-size: 1.45rem; }
  .hero__intro { padding-bottom: 110px; }
  .hero__meta { position: static; justify-items: start; text-align: left; grid-row: 4; margin-top: 22px; gap: 16px; }
  .hero__lead br { display: none; }
  .hero__facts { gap: 22px; font-size: .85rem; }
  .hero__title-line { font-size: clamp(4.2rem, 22vw, 8rem); }
  .hero__title-line--sub { font-size: clamp(1.6rem, 8.4vw, 2.6rem); }
  .hud__frame { display: none; }
  .badge { width: 88px; height: 88px; top: auto; bottom: 110px; }
  .badge__core { width: 40px; height: 40px; }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 12px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat__label { font-size: .74rem; }

  .concept__cols { grid-template-columns: 1fr; gap: 28px; }
  .concept__media { height: 80svh; }
  .concept__caption { flex-direction: column; gap: 6px; }
  .elegance__main { width: 86%; }
  .elegance__detail { width: 44%; }
  .elegance__tag { width: 104px; height: 104px; font-size: .95rem; left: 0; }
  .features__head { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .feature__icon { margin-bottom: 18px; }

  .residences__pin { height: auto; padding: 100px 0 80px; }
  .residences__track { flex-direction: column; align-items: stretch; width: auto; gap: 56px; }
  .res-panel--intro, .res-panel--end { width: auto; padding-right: 0; }
  .res-panel--img .res-img, .res-panel--tall .res-img { height: auto; width: 100%; aspect-ratio: 4 / 5; }
  .res-panel--wide .res-img { aspect-ratio: 4 / 3; }
  .res-panel--img { width: auto; }
  .res-img img { width: 100%; margin-left: 0; }
  .res-panel figcaption { flex-wrap: wrap; }
  .res-panel figcaption em { margin-left: 0; width: 100%; }
  .res-hint, .residences__progress { display: none; }

  .units__head { flex-direction: column; align-items: flex-start; }
  .units__labels { display: none; }
  .units__labels, .unit__row { grid-template-columns: 1fr auto 44px; gap: 12px; }
  .unit__n { display: none; }
  .unit__price { font-size: 1.15rem; }
  .unit__plus { width: 40px; height: 40px; }
  .unit__panel-inner { flex-direction: column; align-items: flex-start; padding-left: 0; }
  .units__preview { display: none; }

  .nearby li { grid-template-columns: 1fr; gap: 4px; }
  .location__map { height: 460px; }
  .location__card { right: 16px; left: 16px; bottom: 16px; }

  .visit__inner { grid-template-columns: 1fr; }
  .visit__form { grid-template-columns: 1fr; gap: 26px; }
  .visit__submit { flex-direction: column-reverse; align-items: stretch; }
  .visit__submit .btn { justify-content: center; }

  .footer__cta { flex-direction: column; align-items: flex-start; }
  .footer__cols { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .menu__foot { flex-direction: column; }

  .side-cta { top: auto; bottom: 16px; left: auto; right: 16px; writing-mode: horizontal-tb; padding: 15px 22px; border-radius: 999px; transform: translateY(160%); box-shadow: 0 14px 30px -12px rgba(14, 26, 43, .5); }
  .side-cta.is-visible { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero__sticky { position: relative; }
  .hero__scene, .hero__outro, .hud { display: none; }
  .badge__ring, .hero__grain, .btn__dot, .hud__scroll-line::after, .res-hint span::after, .location__pin { animation: none; }
  .concept__frame { clip-path: none; }
  .concept__frame img { transform: none; }
}

/* Video drone */
.drone { padding: clamp(64px, 9vw, 128px) 0; background: var(--ink); color: var(--paper); }
.drone__inner { display: grid; grid-template-columns: 1fr minmax(240px, 380px); gap: clamp(32px, 8vw, 120px); align-items: center; }
.drone__copy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 5vw, 76px); line-height: 1.05; margin: 24px 0; }
.drone__copy h2 em { color: var(--brass); }
.drone__copy > p:not(.eyebrow) { max-width: 420px; opacity: .8; }
.drone__play { margin-top: 24px; color: var(--paper); border-color: var(--line-light); cursor: pointer; }
.drone__media { border: 1px solid var(--line-light); border-radius: 8px; overflow: hidden; background: #000; }
.drone__media video { width: 100%; aspect-ratio: 9 / 16; object-fit: contain; }
@media (max-width: 700px) {
  .drone__inner { grid-template-columns: 1fr; }
  .drone__media { width: 100%; max-width: 380px; justify-self: center; }
}

.drone__media { position: relative; }
.drone__play { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; background: var(--brass); color: var(--ink); border: 1px solid rgba(255,255,255,.55); box-shadow: 0 8px 32px rgba(0,0,0,.25); transition: background .2s, scale .2s; }
.drone__play svg { width: 25px; height: 25px; }
.drone__play:hover { background: var(--paper); scale: 1.06; }
.drone__play:focus-visible { outline: 3px solid var(--paper); outline-offset: 6px; }
.drone__play[hidden] { display: none; }
