/* Gruppo Veltrano — concept sito di rappresentanza (ZEROLAB Creative)
   Un'unica "ripresa": si entra nel mondo del gruppo attraverso un'apertura ad arco,
   e la pagina passa dal buio alla luce man mano che si scende. */

:root {
  --ink: #0f0f0e;
  --ivory: #ece6da;
  --brass: #c9a872;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(16px, 5vw, 64px);
}

/* Temi: ogni sezione dichiara il proprio "momento della giornata"; il body li attraversa */
[data-theme="dark"]   { --bg: #0f0f0e; --fg: #ece6da; --muted: #a7a196; --line: rgba(236,230,218,.14); --accent: #c9a872; --card: #181816; }
[data-theme="dusk"]   { --bg: #1c1914; --fg: #ece6da; --muted: #b0a898; --line: rgba(236,230,218,.14); --accent: #d1b07a; --card: #26221b; }
[data-theme="sand"]   { --bg: #d9cdb7; --fg: #1b1a17; --muted: #4c473e; --line: rgba(27,26,23,.18); --accent: #6a4f27; --card: #e2d7c3; }
[data-theme="light"]  { --bg: #ece6da; --fg: #1b1a17; --muted: #555047; --line: rgba(27,26,23,.15); --accent: #765729; --card: #f5f1e9; }
[data-theme="bright"] { --bg: #f6f3ec; --fg: #1b1a17; --muted: #57524a; --line: rgba(27,26,23,.13); --accent: #765729; --card: #ffffff; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 1.1s var(--ease), color 1.1s var(--ease);
}
@supports (overflow: clip) { body { overflow-x: clip; } }
section[data-theme] { color: var(--fg); }
html:not(.js) section[data-theme], html:not(.js) .footer { background: var(--bg); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 200; background: var(--ivory); color: var(--ink); padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font: 600 12px/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}
.dash { width: 34px; height: 1px; background: currentColor; display: inline-block; }
.h2 { font: 400 clamp(2.5rem, 6vw, 5.4rem)/1 var(--serif); letter-spacing: -.01em; }
.h2 em, .cta__title em, .quote em { color: var(--accent); }

/* ---------- Bottoni ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 28px; border-radius: 999px;
  font: 600 14px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--brass); transform: translateY(101%); transition: transform .6s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn--solid { background: var(--ivory); color: var(--ink); }
.btn--big { min-height: 72px; padding: 0 44px; font-size: 15px; color: var(--fg); background: transparent; border-color: var(--accent); margin-top: 44px; }
.btn--big:hover, .btn--big:focus-visible { color: var(--ink); border-color: var(--brass); }
.btn .arrow { transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(6px); }
.magnetic span { pointer-events: none; }

/* ---------- Intro (sipario) ---------- */
.intro { display: none; }
.js:not(.reduced) .intro {
  position: fixed; inset: 0; z-index: 150; background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  animation: introOut 1s var(--ease-io) 1.4s forwards; pointer-events: none;
}
.intro__mark { width: 64px; height: 64px; fill: none; stroke: var(--brass); stroke-width: 1.6; }
.intro__mark path { stroke-dasharray: 90; stroke-dashoffset: 90; animation: draw 1.1s var(--ease) .1s forwards; }
.intro__mark path + path { animation-delay: .35s; }
.intro__word { font: 400 15px/1 var(--sans); letter-spacing: .5em; padding-left: .5em; text-transform: uppercase; color: var(--ivory); opacity: 0; animation: fadeUp .9s var(--ease) .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes introOut { to { transform: translateY(-100%); visibility: hidden; } }

/* ---------- Progresso + cursore ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 90; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--brass); transform-origin: 0 50%; transform: scaleX(0); }
.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 120; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--brass); }
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid var(--fg); opacity: .7;
  display: flex; align-items: center; justify-content: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .45s var(--ease), border-color .45s, opacity .45s;
}
.cursor__label { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--ink); opacity: 0; transition: opacity .3s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--brass); opacity: 1; }
.cursor.is-label .cursor__ring { width: 104px; height: 104px; margin: -52px 0 0 -52px; background: var(--ivory); border-color: var(--ivory); opacity: 1; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }

/* ---------- Header minimale ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 80; height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-inline: var(--gutter);
  color: var(--fg); transition: transform .6s var(--ease), color 1.1s var(--ease);
}
.header.is-hidden { transform: translateY(-100%); }
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg); opacity: 0; transition: opacity .5s, background-color 1.1s; }
.header.is-solid::before { opacity: .86; }
@supports (backdrop-filter: blur(1px)) { .header.is-solid::before { opacity: .7; } .header.is-solid { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); } }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand__mark { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 2.6; transition: stroke 1.1s; }
.brand__name { font: 500 13px/1 var(--sans); letter-spacing: .42em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-right: -12px; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: 13px; font-weight: 500; letter-spacing: .04em; text-decoration: none;
}
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 10px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 380px) { .brand__name { letter-spacing: .3em; } .nav a { padding: 0 9px; } }

/* ---------- Pillola CTA fissa ---------- */
.pill {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 85;
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 24px 0 20px; border-radius: 999px;
  background: var(--fg); color: var(--bg); text-decoration: none;
  font: 600 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transform: translate(-50%, 0); transition: transform .7s var(--ease), background-color 1.1s, color 1.1s, opacity .5s;
}
.pill:hover { background: var(--brass); color: var(--ink); }
.pill__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }
.pill__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--brass); animation: ping 2.4s var(--ease) infinite; }
.pill:hover .pill__dot { background: var(--ink); }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 80%, 100% { transform: scale(1.8); opacity: 0; } }
.js:not(.reduced) .pill:not(.is-on), .pill.is-hidden { transform: translate(-50%, 160%); opacity: 0; }

/* ---------- Testo diviso & comparse ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; }
.js:not(.reduced) [data-split] .w > span { transform: translateY(110%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
.js:not(.reduced) [data-split].is-in .w > span { transform: none; }
.js:not(.reduced) .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js:not(.reduced) .reveal.is-in { opacity: 1; transform: none; }
.js:not(.reduced) .reveal-clip { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-io); }
.js:not(.reduced) .reveal-clip.is-in { clip-path: inset(0 0 0 0); }

/* ---------- Viaggio (hero fissato) ---------- */
.journey { position: relative; height: 420vh; color: var(--ivory); }
html:not(.js) .journey { height: auto; }
html:not(.js) .journey__captions { display: none; }
.journey__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); }
.journey__wall { position: absolute; inset: 0; will-change: transform, opacity; }
.journey__wall img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) brightness(.34) contrast(1.1); }
.journey__wall::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 44%, rgba(15,15,14,.15), rgba(15,15,14,.8)), linear-gradient(180deg, transparent 55%, rgba(15,15,14,.85)); }
html:not(.js) .journey__wall, .reduced .journey__wall { display: none; }
.journey__world { position: absolute; inset: 0; will-change: clip-path; }
.scene { position: absolute; inset: 0; will-change: transform, opacity; }
.scene img { width: 100%; height: 100%; object-fit: cover; }
.scene--1 { transform: scale(1.35); transform-origin: 28% 72%; }
.scene--1 img { object-position: 38% 70%; filter: brightness(.95) contrast(1.05); }
.scene--2, .scene--3 { opacity: 0; }
.journey__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 50% 45%, rgba(15,15,14,.25), rgba(15,15,14,.7)), linear-gradient(180deg, rgba(15,15,14,.35), transparent 30%, transparent 60%, rgba(15,15,14,.75));
}

.journey__frame {
  position: absolute; left: 50%; top: 47%; width: 26vw; height: 62vh; transform: translate(-50%, -50%);
  border: 1px solid rgba(201, 168, 114, .75); border-radius: 999px 999px 0 0; pointer-events: none;
}
.js:not(.reduced) .journey__frame { left: 0; top: 0; transform: none; }
.mullion { position: absolute; background: rgba(201, 168, 114, .55); }
.mullion--v { left: 50%; top: 0; bottom: 0; width: 1px; }
.mullion--h { left: 0; right: 0; top: 40%; height: 1px; }

.journey__intro { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(48px, 9vh, 96px); max-width: 760px; will-change: transform, opacity; }
.journey__eyebrow { margin-bottom: 22px; color: var(--brass); }
.hero__title { font: 400 clamp(3rem, 5.6vw, 6rem)/.95 var(--serif); letter-spacing: -.02em; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero__title em { color: var(--brass); display: block; }
.journey__sub { margin-top: 22px; font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: rgba(236,230,218,.8); }
.journey__hint { position: absolute; right: var(--gutter); bottom: clamp(48px, 9vh, 96px); display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: rgba(236,230,218,.8); }
.journey__hint-line { position: relative; width: 1px; height: 48px; background: rgba(236,230,218,.25); overflow: hidden; }
.journey__hint-line::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--brass); animation: scrollLine 2.2s var(--ease-io) infinite; }
@keyframes scrollLine { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
.js:not(.reduced) .journey__eyebrow, .js:not(.reduced) .journey__sub, .js:not(.reduced) .journey__hint { opacity: 0; transition: opacity 1.4s var(--ease) .5s; }
.js:not(.reduced) .journey.is-in .journey__eyebrow, .js:not(.reduced) .journey.is-in .journey__sub, .js:not(.reduced) .journey.is-in .journey__hint { opacity: 1; }

.journey__captions { position: absolute; inset: 0; pointer-events: none; isolation: isolate; }
.caption {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; opacity: 0; will-change: transform, opacity;
}
.caption::before { content: ""; position: absolute; inset: -40% -5%; z-index: -1; background: radial-gradient(closest-side, rgba(15,15,14,.7), rgba(15,15,14,0)); }
.caption .eyebrow { color: var(--brass); text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.caption__line { font: 400 clamp(2.6rem, 7.4vw, 7rem)/1 var(--serif); letter-spacing: -.015em; text-shadow: 0 4px 40px rgba(0,0,0,.45); }
.caption__line em { color: #e4c995; }

@media (max-width: 699px) {
  .journey { height: 300vh; }
  .journey__frame { top: 36%; width: 52vw; height: 40vh; }
  .journey__intro { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .hero__title { font-size: clamp(2.8rem, 13.5vw, 4.4rem); }
  .journey__hint { display: none; }
}

/* ---------- Manifesto (parole che si accendono) ---------- */
.manifesto { position: relative; height: 240vh; }
.manifesto__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: 36px;
  max-width: 1360px; margin: 0 auto; padding-inline: var(--gutter);
}
.manifesto__text { font: 500 clamp(1.55rem, 3.6vw, 3.4rem)/1.22 var(--sans); letter-spacing: -.025em; max-width: 24em; }
.manifesto__text i { font-style: normal; color: var(--accent); }
.mw { transition: opacity .45s var(--ease); }
.js:not(.reduced) .mw { opacity: .18; }
.js:not(.reduced) .mw.on { opacity: 1; }

/* ---------- Intestazioni sezione ---------- */
.section-head { display: grid; gap: 26px; max-width: 880px; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head__lead { max-width: 36em; color: var(--muted); font-size: 17px; }

/* ---------- Aree ---------- */
.aree { padding: clamp(110px, 16vw, 200px) 0 clamp(96px, 14vw, 180px); }
.cards { display: flex; gap: 14px; height: min(78vh, 760px); min-height: 560px; }
.card {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 18px; color: var(--ivory); background: var(--card);
  transition: flex-grow 1s var(--ease), opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.card.is-active { flex-grow: 2.3; }
.card__media { position: absolute; inset: 0; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease), filter 1s; filter: saturate(.75) brightness(.8); }
.card.is-active .card__media img { transform: scale(1.02); filter: saturate(.95) brightness(.9); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,15,14,.2) 0%, rgba(15,15,14,.1) 40%, rgba(15,15,14,.9) 100%); }
.card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(22px, 2.6vw, 40px); display: grid; gap: 14px; }
.card__num { font: 600 12px/1 var(--sans); letter-spacing: .2em; color: var(--brass); }
.card__title { font: 400 clamp(2rem, 2.9vw, 3rem)/1 var(--serif); }
.card__text { color: rgba(236,230,218,.86); font-size: 15px; max-width: 30em; }
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.card__tags li { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border: 1px solid rgba(236,230,218,.3); border-radius: 999px; }
.card__link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--brass); width: fit-content; }
.card__link .arrow { transition: transform .5s var(--ease); }
.card__link:hover .arrow { transform: translateX(6px); }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: 2px solid var(--brass); outline-offset: 4px; }
@media (min-width: 900px) {
  .card__text, .card__tags, .card__link { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .8s var(--ease); min-width: 22em; }
  .card.is-active .card__text, .card.is-active .card__tags, .card.is-active .card__link { opacity: 1; transform: none; transition-delay: .25s; }
}
@media (max-width: 899px) {
  .cards { flex-direction: column; height: auto; min-height: 0; gap: 16px; }
  .card { flex: none; height: min(132vw, 600px); }
  .card__media::after { background: linear-gradient(180deg, rgba(15,15,14,.1) 0%, rgba(15,15,14,.5) 38%, rgba(15,15,14,.94) 72%); }
}

/* ---------- Valori / marquee ---------- */
.values { padding: clamp(80px, 11vw, 150px) 0; overflow: hidden; }
.marquee { overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; will-change: transform; }
.marquee span { display: inline-flex; align-items: center; font: 400 clamp(3.2rem, 10vw, 9.5rem)/1.05 var(--serif); padding-right: .5em; }
.marquee span::after { content: ""; width: .12em; height: .12em; border-radius: 50%; background: var(--accent); margin-left: .5em; }
.marquee .o { color: transparent; -webkit-text-stroke: 1px var(--fg); font-style: italic; opacity: .75; }
.marquee--small { margin-top: 18px; }
.marquee--small span { font: 600 clamp(12px, 1.2vw, 14px)/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); padding-right: 2.4em; }
.marquee--small span::after { display: none; }

/* ---------- Storia ---------- */
.storia { padding: clamp(96px, 14vw, 180px) 0; }
.timeline { position: relative; }
.timeline__line { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--line); }
.timeline__line span { position: absolute; inset: 0; background: var(--accent); transform-origin: 50% 0; transform: scaleY(0); }
.reduced .timeline__line span, html:not(.js) .timeline__line span { transform: scaleY(1); }
.phases { display: grid; gap: clamp(72px, 10vw, 140px); }
.phase { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 128px); align-items: center; }
.phase::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--accent); transition: background-color .6s, transform .6s var(--ease);
}
.phase.is-lit::before { background: var(--accent); transform: scale(1.25); }
.phase:nth-child(even) .phase__media { order: 2; }
.phase__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: var(--card); }
.phase__media img { width: 100%; height: 118%; object-fit: cover; margin-top: -9%; will-change: transform; }
.phase__body { max-width: 30em; }
.phase__tag { display: inline-block; font: italic 400 22px/1 var(--serif); color: var(--accent); margin-bottom: 18px; }
.phase__title { font: 400 clamp(2.2rem, 4vw, 3.6rem)/1 var(--serif); margin-bottom: 20px; }
.phase__body p { color: var(--muted); font-size: 17px; }
.phase--next { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-top: 48px; }
.phase--next::before { top: 0; }
@media (max-width: 899px) {
  .timeline__line { left: 6px; }
  .phase, .phase--next { grid-template-columns: 1fr; gap: 28px; padding-left: 36px; justify-items: start; text-align: left; }
  .phase::before { left: 6px; top: 0; }
  .phase:nth-child(even) .phase__media { order: 0; }
  .phase--next { padding-top: 0; }
}

/* ---------- La guida ---------- */
.guida { position: relative; }
.guida__sticky { padding: clamp(96px, 14vw, 160px) var(--gutter); }
.guida__head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end; max-width: calc(1360px - 2 * var(--gutter)); margin: 0 auto clamp(48px, 6vw, 72px); }
.guida__head .eyebrow { grid-column: 1 / -1; }
.guida__lead { color: var(--muted); font-size: 17px; max-width: 30em; }
.guida__meter { grid-column: 1 / -1; height: 1px; background: var(--line); margin-top: 16px; display: none; }
.guida__meter span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.guida__track { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; max-width: calc(1360px - 2 * var(--gutter)); margin: 0 auto; }
.principle {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(28px, 3vw, 44px); min-height: 340px;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 14px;
  background: var(--card); transition: border-color .5s, box-shadow .6s var(--ease);
}
.principle::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(201,168,114,.22), transparent 60%); }
.principle:hover { border-color: var(--accent); box-shadow: 0 24px 60px rgba(27,26,23,.08); }
.principle:hover::before { opacity: 1; }
.principle__n { align-self: flex-end; margin: -8px -4px auto 0; padding-bottom: 16px; font: italic 400 clamp(4.5rem, 7vw, 7rem)/1 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--accent); opacity: .7; transition: transform 1s var(--ease); }
.principle:hover .principle__n { transform: translateY(-6px) rotate(-3deg); }
.principle h3 { position: relative; font: 400 clamp(1.8rem, 2.4vw, 2.4rem)/1.05 var(--serif); max-width: 12em; }
.principle p { position: relative; color: var(--muted); font-size: 15px; }
@media (min-width: 900px) {
  .js:not(.reduced) .guida.is-pinned .guida__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-block: 72px 48px; }
  .js:not(.reduced) .guida.is-pinned .guida__head { width: 100%; margin-bottom: 44px; }
  .js:not(.reduced) .guida.is-pinned .guida__meter { display: block; }
  .js:not(.reduced) .guida.is-pinned .guida__track { display: flex; gap: 20px; max-width: none; margin: 0; width: max-content; will-change: transform; padding-left: max(0px, calc((100vw - 1360px) / 2)); }
  .js:not(.reduced) .guida.is-pinned .guida__head { max-width: calc(1360px - 2 * var(--gutter)); }
  .js:not(.reduced) .guida.is-pinned .principle { width: clamp(340px, 30vw, 440px); min-height: min(46vh, 420px); flex: none; }
}
@media (max-width: 899px) {
  .guida__head { grid-template-columns: 1fr; }
  .principle { min-height: 280px; }
}

/* ---------- Citazione ---------- */
.quote { position: relative; min-height: 92vh; min-height: 92svh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 120px var(--gutter); text-align: center; }
.quote__bg { position: absolute; inset: 0; }
.quote__bg img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; filter: contrast(1.35) brightness(.92) sepia(.15); will-change: transform; }
.quote__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 50%, rgba(246,243,236,.82), rgba(246,243,236,.25)); }
.quote__fig { position: relative; margin: 0; max-width: 1100px; }
.quote blockquote { margin: 0; }
.quote blockquote p { font: 400 clamp(2.2rem, 5.6vw, 5.2rem)/1.05 var(--serif); letter-spacing: -.01em; }
.quote figcaption { margin-top: 36px; font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(120px, 18vw, 220px) var(--gutter); display: flex; flex-direction: column; align-items: center; }
.cta__orb { position: absolute; left: 50%; top: 50%; width: min(90vw, 760px); aspect-ratio: 1; margin: calc(min(90vw, 760px) / -2) 0 0 calc(min(90vw, 760px) / -2); border-radius: 50%; background: radial-gradient(circle, rgba(201,168,114,.3), rgba(201,168,114,0) 62%); pointer-events: none; will-change: transform; }
.cta .eyebrow { position: relative; margin-bottom: 32px; }
.cta__title { position: relative; font: 400 clamp(3rem, 10vw, 9.6rem)/.95 var(--serif); letter-spacing: -.02em; max-width: 12em; }
.cta__lead { position: relative; margin-top: 32px; color: var(--muted); max-width: 34em; font-size: 17px; }
.cta .btn { position: relative; }

/* ---------- Dialog ---------- */
.note { width: min(92vw, 520px); padding: clamp(28px, 5vw, 44px); border: 1px solid rgba(236,230,218,.14); border-radius: 20px; background: #181816; color: var(--ivory); }
.note .eyebrow { color: var(--brass); }
.note::backdrop { background: rgba(15,15,14,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.note[open] { animation: fadeUp .6s var(--ease); }
.note h2 { font: 400 clamp(2rem, 6vw, 2.8rem)/1.05 var(--serif); margin: 18px 0 14px; }
.note p:not(.eyebrow) { color: #b0a898; }
.note form { margin-top: 28px; }

/* ---------- Footer ---------- */
.footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px;
  padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.footer__brand { font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--fg); font-size: 13px; }
.footer a { color: var(--fg); text-underline-offset: 4px; text-decoration-color: var(--accent); display: inline-block; padding: 12px 0; }
.footer a:hover { color: var(--accent); }

/* ---------- Movimento ridotto: stato finale, statico ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .journey { height: auto; }
  .journey__stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; }
  .scene--1 { transform: none; }
  .journey__frame, .journey__captions, .journey__hint { display: none; }
  .manifesto { height: auto; }
  .manifesto__sticky { position: relative; height: auto; padding-block: 120px; }
  .marquee { white-space: normal; }
  .marquee__track { flex-wrap: wrap; transform: none !important; }
  .marquee__track [aria-hidden="true"] { display: none; }
  .marquee--small { display: none; }
  .pill__dot::after { display: none; }
}

/* iPhone: niente vuoto a destra scorrendo di lato */
@supports (overflow:clip){html,body{overflow-x:clip}}
