/* ==========================================================
   Omnia Media — Distinti
   Palette
     ink      #08122E  fondo (navy, vicino al blu Omnia)
     ink-2    #112052  superfici
     omnia    #023878  blu del logo Omnia (sezione clienti)
     panel    #F6F8FC  pannelli chiari (bianco Omnia)
     text     #E9EAF2  testo
     muted    #A3AACB  testo secondario
     fossil   #464B6B  ciò che è "estinto" (sempre barrato)
     blue     #2B3BFF  blu elettrico del marchio
     blue-hi  #6774FF  luce, barrature, link
   Regola: "estinti" compare sempre barrato (.x), dal primo frame.
   ==========================================================

       _             _                _
    __| | __ _ _ __ | | ___ __   ___ | |_ ___
   / _` |/ _` | '_ \| |/ / '_ \ / _ \| __/ _ \
  | (_| | (_| | | | |   <| | | | (_) | ||  __/
   \__,_|\__,_|_| |_|_|\_\_| |_|\___/ \__\___|

   Developed by danknote. Ogni dettaglio e' stato pensato.
   Ti serve un sito cosi'? music@danknote.it
   ========================================================== */

/* Font in locale (Archivo variabile, OFL): nessuna richiesta a Google */
@font-face {
  font-family: "Archivo"; font-style: normal;
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo"; font-style: normal;
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo"; font-style: italic;
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("fonts/archivo-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo"; font-style: italic;
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url("fonts/archivo-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #08122E;
  --ink-2: #112052;
  --omnia: #023878;
  --panel: #F6F8FC;
  --text: #E9EAF2;
  --muted: #A3AACB;
  --fossil: #464B6B;
  --blue: #2B3BFF;
  --blue-hi: #6774FF;
  --paper: #F3F2EE;
  --line: rgba(233, 234, 242, .12);

  --gutter: clamp(16px, 4vw, 64px);
  --max: 1400px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --f: "Archivo", system-ui, sans-serif;
}

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

html { scroll-padding-top: 90px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }

:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 4px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- CURSORE ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .anim .cursor {
    display: grid; place-items: center;
    position: fixed; left: 0; top: 0; z-index: 250;
    width: 10px; height: 10px; margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: var(--text);
    pointer-events: none;
    transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background-color .3s, box-shadow .3s;
  }
  .anim .cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: transparent; box-shadow: inset 0 0 0 1px rgba(233, 234, 242, .7); }
  .anim .cursor.is-big { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--blue); box-shadow: 0 0 40px rgba(43, 59, 255, .6); }
  .cursor-label { font-size: .78rem; font-weight: 600; color: #fff; opacity: 0; transition: opacity .2s; white-space: nowrap; }
  .cursor.is-big .cursor-label { opacity: 1; transition-delay: .1s; }
  body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor [data-cursor] { cursor: none; }
}

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 300;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600;
}
.skip:focus { top: 16px; }

/* ---------- BARRATURA: il cuore del marchio ---------- */

.x {
  position: relative;
  text-decoration: none;
  color: var(--fossil);
  white-space: nowrap;
}
.x::after {
  content: "";
  position: absolute; left: -.04em; right: -.04em; top: 52%;
  height: max(2px, .075em);
  background: var(--blue-hi);
  transform-origin: left center;
}
.anim .x--draw::after { transform: scaleX(var(--sx, 0)); }

/* ---------- LUCE E GRANA ---------- */

.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow {
  position: absolute; border-radius: 50%;
  width: 70vmax; height: 70vmax; left: -35vmax; top: -35vmax;
  will-change: transform;
}
.glow--a { background: radial-gradient(circle, rgba(43, 59, 255, .42) 0%, rgba(43, 59, 255, 0) 62%); transform: translate(60vw, 20vh); }
.glow--b { background: radial-gradient(circle, rgba(103, 116, 255, .22) 0%, rgba(103, 116, 255, 0) 60%); transform: translate(15vw, 85vh); }

.grain {
  position: fixed; inset: -50%; z-index: 200; pointer-events: none;
  opacity: .07;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- NAV A PILLOLA ---------- */

.nav {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 120;
  display: flex; justify-content: center;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  position: relative;
  display: flex; align-items: center; gap: 8px;
  width: min(100%, 940px);
  padding: 7px 7px 7px 20px;
  border-radius: 999px;
  background: rgba(10, 22, 58, .86);
  border: 1px solid rgba(233, 234, 242, .09);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 12px 40px -18px rgba(0, 0, 0, .7);
}
.brand {
  display: inline-flex; align-items: center; gap: 3px; margin-right: auto;
  padding: 4px 0; text-decoration: none;
}
/* Proporzioni del logo originale: pallina 46, pallina 72, distanza 10 su scritta alta 128 */
.brand-dots {
  display: inline-flex; align-items: center; gap: 2.5px;
  transform: translateY(-3.6px); /* centro delle palline = centro di OMNIA */
}
.bd {
  position: relative; display: block; flex: none;
  border-radius: 50%; background: var(--blue-hi);
}
.bd--s { width: 11px; height: 11px; }
.bd--b { width: 17px; height: 17px; }
.bd-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--blue-hi); opacity: 0; pointer-events: none;
}
.brand-word { display: block; height: 30px; width: auto; filter: url(#knock); }
.is-loading .nav .brand { opacity: 0; }

/* ---------- CARICAMENTO ---------- */

.loader { display: none; }
.anim .loader {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: var(--ink);
  /* paracadute: se gli script non partono, il caricamento sparisce da solo */
  animation: loader-failsafe .4s 5s forwards;
}
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }
.loader-logo {
  --ls: 2.4;
  display: inline-flex; align-items: center; gap: 3px; padding: 4px 0;
  transform: scale(var(--ls));
}
/* La pallina piccola nasce dalla grande, si stacca, poi ci rientra */
.loader .bd--s { animation: dot-split 1.5s cubic-bezier(.7, 0, .25, 1) infinite; }
.loader .bd--b { animation: dot-beat 1.5s cubic-bezier(.5, 0, .3, 1) infinite; }
.loader .bd-ring { animation: dot-ring 1.5s ease-out infinite; }
@keyframes dot-split {
  0%, 8%   { transform: translateX(16.5px) scale(.35); }
  48%, 82% { transform: translateX(0) scale(1); }
  100%     { transform: translateX(16.5px) scale(.35); }
}
@keyframes dot-beat {
  0%, 10%, 60%, 100% { transform: scale(1); }
  24% { transform: scale(.88, 1.08); }
}
@keyframes dot-ring {
  0%, 20% { transform: scale(1); opacity: 0; }
  24% { opacity: .7; }
  70%, 100% { transform: scale(2.8); opacity: 0; }
}

.nav-links { display: flex; gap: 2px; }
.nav-links a {
  text-decoration: none; font-size: clamp(.82rem, .55rem + .45vw, .9rem); font-weight: 500;
  padding: 9px clamp(8px, .2rem + .7vw, 14px); border-radius: 999px; white-space: nowrap;
  color: var(--muted);
  transition: color .25s, background-color .25s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); background: rgba(233, 234, 242, .07); }
.nav-cta {
  text-decoration: none; font-size: .9rem; font-weight: 600;
  padding: 10px 18px; border-radius: 999px;
  background: var(--blue); color: #fff;
  transition: background-color .25s;
}
.nav-cta:hover { background: #3D4CFF; }
.nav-cta.is-active { box-shadow: 0 0 0 3px rgba(103, 116, 255, .35); }
.nav-toggle { display: none; }

/* indice di sezione */
/* Strada a punti (sostituisce l'indice numerico) */
.trail { display: none; }
@media (min-width: 1100px) {
  .trail {
    display: block; position: fixed; right: 28px; top: 50%; z-index: 110;
    width: 20px; height: 250px; transform: translateY(-50%);
  }
  .trail ol { position: absolute; inset: 0; }
  /* la strada: puntini piccoli, come la grana del logo */
  .trail-road {
    position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px;
    background: radial-gradient(circle, rgba(139, 144, 173, .5) 1px, transparent 1.4px) 50% 2px / 4px 10px repeat-y;
  }
  .trail li { position: absolute; left: 50%; top: calc(var(--i) * 20%); transform: translate(-50%, -50%); }
  .trail a { position: relative; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; }
  .trail a i {
    display: block; width: 6px; height: 6px; border-radius: 50%;
    background: var(--ink); box-shadow: inset 0 0 0 1.5px var(--fossil);
    transition: background-color .4s, box-shadow .4s, transform .4s var(--ease);
  }
  .trail a.is-past i { background: var(--blue-hi); box-shadow: inset 0 0 0 1.5px var(--blue-hi); }
  .trail a:hover i { transform: scale(1.5); }
  .trail a::after {
    content: attr(data-label);
    position: absolute; right: 28px; top: 50%;
    transform: translate(6px, -50%); opacity: 0;
    padding: 5px 11px; border-radius: 999px; white-space: nowrap;
    font-size: .78rem; font-weight: 500; color: var(--text);
    background: rgba(16, 21, 58, .92); border: 1px solid var(--line);
    pointer-events: none;
    transition: opacity .3s, transform .4s var(--ease);
  }
  .trail a:hover::after, .trail a:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
  .trail a:focus-visible { outline-offset: 0; }
  /* le due palline del logo che percorrono la strada */
  .trail-mark { position: absolute; left: 50%; top: 0; pointer-events: none; }
  .tm { position: absolute; left: 0; top: 0; display: block; border-radius: 50%; background: var(--blue-hi); }
  .tm--s { width: 7px; height: 7px; }
  .tm--b { width: 11px; height: 11px; box-shadow: 0 0 14px rgba(103, 116, 255, .75); }
  html:not(.anim) .trail-mark { display: none; }
}

/* ---------- BOTTONI ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 999px;
  font-size: .95rem; font-weight: 600; text-decoration: none;
  transition: background-color .25s, border-color .25s, color .25s;
}
.btn--solid { background: var(--blue); color: #fff; }
.btn--solid:hover { background: #3D4CFF; }
.btn--ghost { border: 1px solid rgba(233, 234, 242, .22); }
.btn--ghost:hover { background: rgba(233, 234, 242, .07); border-color: rgba(233, 234, 242, .4); }

.label {
  display: flex; align-items: center; gap: 12px;
  font-size: .9rem; font-weight: 500; color: var(--muted);
  margin-bottom: clamp(28px, 5vh, 56px);
}
.label::before { content: ""; width: 28px; height: 1px; background: var(--blue-hi); }

/* ---------- HERO ---------- */

.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-inner {
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 130px var(--gutter) clamp(20px, 4vh, 40px);
}
.hero-kicker {
  display: block; color: var(--muted);
  font-size: .95rem; line-height: 1.4; letter-spacing: 0;
  margin-bottom: clamp(16px, 3vh, 28px);
}
.hero-title { font-weight: 400; margin-bottom: clamp(36px, 7vh, 72px); }
.ht-main {
  --w: 560;
  position: relative;
  display: flex;
  width: fit-content;
  font-size: clamp(4.6rem, 16vw, 16.5rem);
  line-height: .86;
  letter-spacing: -.045em;
  margin-left: -.05em;
  color: var(--text);
  user-select: none;
}
.ht-main .l, .flap-card { display: inline-block; font-variation-settings: "wght" var(--w), "wdth" var(--wd, 100); }
.stem { display: flex; }
.flap { position: relative; display: block; }
.flap-card { white-space: nowrap; }
.flap-e { display: none; }
.flap-e::before { content: attr(data-l); } /* la E non è testo indicizzabile: Google legge solo "Distinti" */
.ht-strike { display: none; }

/* Stato iniziale animato: "Estinti" grigio e già barrato */
.anim .ht-main { --w: 250; color: var(--fossil); cursor: pointer; }
.anim .flap { width: var(--fw, .5em); perspective: 900px; }
.anim .flap-card { position: absolute; left: 0; top: 0; backface-visibility: hidden; transform-origin: 50% 55%; }
.anim .flap-e { display: inline-block; }
.anim .flap-di { opacity: 0; transform: rotateX(90deg); }
.anim .ht-strike {
  display: block;
  position: absolute; left: -.02em; right: -.02em; top: 50%;
  height: max(3px, .045em);
  background: var(--blue-hi);
  transform-origin: right center;
}

/* Fine animazione: "Distinti" torna testo normale (per l'effetto peso al cursore) */
.anim .ht-main.is-done .flap { width: auto; }
.anim .ht-main.is-done .flap-e { display: none; }
.anim .ht-main.is-done .flap-di { position: static; opacity: 1; transform: none; }

.dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-inner { position: relative; z-index: 1; }
.ht-alt {
  display: block;
  margin-top: .32em;
  font-size: clamp(1.8rem, 4.6vw, 4.6rem);
  line-height: 1;
  font-weight: 250;
  letter-spacing: -.02em;
  color: var(--muted);
}
.ht-alt .x::after { height: max(2px, .06em); }

.hero-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px 48px; align-items: end;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.hero-sub { max-width: 46ch; color: var(--muted); font-size: clamp(1rem, 1.2vw, 1.15rem); }
.hero-sub::first-line { color: var(--text); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.scroll-cue { display: none; }
.anim .scroll-cue {
  display: block; position: absolute; left: 50%; bottom: 18px;
  width: 1px; height: 46px; background: var(--line); overflow: hidden;
}
.scroll-cue i { position: absolute; left: 0; width: 1px; height: 40%; background: var(--blue-hi); animation: cue 2s var(--ease) infinite; }
@keyframes cue { from { top: -40%; } to { top: 100%; } }

/* ---------- HERO: muro di foto e due stati ---------- */

.wall {
  position: absolute; top: 0; bottom: 0; right: 0; width: 64%;
  z-index: 0; overflow: hidden; perspective: 1800px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .3) 28%, #000 62%), linear-gradient(0deg, transparent 0%, #000 24%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .3) 28%, #000 62%), linear-gradient(0deg, transparent 0%, #000 24%);
          mask-composite: intersect;
  pointer-events: none;
}
.wall-plane {
  position: absolute; top: -30%; bottom: -30%; left: 4%; right: -12%;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
  transform: rotateX(16deg) rotateY(-20deg) rotateZ(-7deg);
  transform-style: preserve-3d;
}
.wall-col { display: flex; flex-direction: column; gap: 18px; transform-style: preserve-3d; }
.wall-col:nth-child(2) { margin-top: -14%; }
.wall-col:nth-child(3) { margin-top: 9%; }
.tile {
  position: relative; flex: none;
  aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden;
  background: var(--ink-2);
  opacity: .7;
  transition: transform 1.1s var(--ease) var(--d, 0s), box-shadow 1.1s var(--ease) var(--d, 0s), opacity 1.1s var(--ease) var(--d, 0s);
}
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(.6);
  transition: filter 1.1s var(--ease) var(--d, 0s);
}
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(43, 59, 255, .55), rgba(8, 18, 46, .5));
  mix-blend-mode: color;
  transition: opacity 1.1s var(--ease) var(--d, 0s);
}
/* distinti: alcune foto si accendono e vengono avanti */
.hero.is-distinti .tile.is-pick,
html:not(.anim) .hero .tile.is-pick {
  opacity: 1;
  transform: translateZ(70px) scale(1.06);
  box-shadow: 0 0 0 2px var(--blue-hi), 0 40px 90px -20px rgba(43, 59, 255, .65);
}
.hero.is-distinti .tile.is-pick img,
html:not(.anim) .hero .tile.is-pick img { filter: none; }
.hero.is-distinti .tile.is-pick::after,
html:not(.anim) .hero .tile.is-pick::after { opacity: 0; }
/* estinti: tutte uguali, spente, sfocate */
.anim .hero:not(.is-distinti) .tile { opacity: .45; }
.anim .hero:not(.is-distinti) .tile img { filter: grayscale(1) brightness(.4) contrast(.8) blur(1.5px); }

.defs { display: grid; max-width: 50ch; margin-top: clamp(22px, 3.5vh, 36px); }
.def {
  grid-area: 1 / 1;
  font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.5;
  color: var(--muted);
  transition: opacity .6s var(--ease), transform .7s var(--ease), filter .6s var(--ease);
}
.def b, .def .x { font-weight: 600; font-size: 1.08em; }
.def b { color: var(--text); }
.def i { font-style: italic; font-size: .9em; margin: 0 .3em 0 .15em; color: var(--muted); opacity: .8; }
.hero.is-distinti .def--e,
html:not(.anim) .hero .def--e,
.anim .hero:not(.is-distinti) .def--d { opacity: 0; transform: translateY(8px); filter: blur(6px); pointer-events: none; }

.switch {
  display: inline-flex; gap: 4px; padding: 4px;
  margin: clamp(18px, 3vh, 28px) 0 clamp(28px, 5vh, 52px);
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(16, 21, 58, .5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.switch-btn {
  border: 0; background: none; cursor: pointer;
  padding: 9px 18px; border-radius: 999px;
  font-size: .92rem; font-weight: 600; color: var(--muted);
  transition: background-color .3s, color .3s;
}
.switch-btn .x { color: inherit; }
.switch-btn[aria-pressed="true"][data-state="d"] { background: var(--blue); color: #fff; }
.switch-btn[aria-pressed="true"][data-state="e"] { background: rgba(233, 234, 242, .1); color: var(--text); }
.hero-title { margin-bottom: 0; }

/* ---------- FOTO NEL MANIFESTO ---------- */

.pill {
  position: relative; display: inline-block;
  width: 1.9em; height: .78em;
  margin: 0 .06em; vertical-align: -.04em;
  border-radius: 999px; overflow: hidden;
}
.pill img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.8); }
.pill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(43, 59, 255, .6), rgba(8, 18, 46, .4));
  mix-blend-mode: color;
}

/* ---------- ANTEPRIMA NEL METODO ---------- */

.method { position: relative; }
.peek { display: none; }
@media (hover: hover) and (pointer: fine) {
  .anim .peek {
    display: block;
    position: absolute; left: 0; top: 0; z-index: 5;
    width: clamp(220px, 20vw, 300px); aspect-ratio: 4 / 5;
    margin: -60% 0 0 -50%;
    border-radius: 12px; overflow: hidden;
    pointer-events: none;
    opacity: 0; transform: scale(.85) rotate(-4deg);
    transition: opacity .35s, transform .5s var(--ease);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08);
  }
  .anim .peek.is-on { opacity: 1; transform: scale(1) rotate(-4deg); }
  .peek img { width: 100%; height: 100%; object-fit: cover; }
}

/* ---------- FASCIA FOTO A TUTTO SCHERMO ---------- */

.band { padding: 0 0 clamp(40px, 8vh, 100px); }
.band-frame {
  position: relative;
  height: min(92vh, 900px);
  overflow: hidden;
}
.band-frame img {
  position: absolute; left: 0; top: -10%;
  width: 100%; height: 120%; object-fit: cover;
}
.band-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8, 18, 46, .85) 0%, rgba(8, 18, 46, .1) 55%);
}
.band-text {
  position: absolute; z-index: 1;
  left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 6vh, 64px);
  font-size: clamp(2rem, 5vw, 5rem); line-height: 1; font-weight: 500; letter-spacing: -.035em;
}
.band-text span { display: block; }

/* ---------- PANNELLI: sfumature di blu e vetro ---------- */
/* Niente bianco pieno: pannelli in vetro blu, con un riflesso in alto e un bordo di luce.
   Ogni pannello ridefinisce i colori: tutto ciò che usa le variabili si adatta. */
.panel {
  position: relative; isolation: isolate;
  width: calc(100% - 2 * clamp(8px, 1.6vw, 24px));
  margin-left: auto; margin-right: auto;
  border-radius: clamp(24px, 3vw, 44px);
  --text: #F2F5FF;
  --muted: #BAC5EC;
  --line: rgba(255, 255, 255, .14);
  --fossil: rgba(186, 197, 236, .5);
  --blue-hi: #93A4FF;
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 50px 100px -50px rgba(0, 0, 0, .7);
  overflow: clip;
}
/* riflesso "liquid glass": una luce morbida che scivola dall'angolo in alto */
.panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(90% 60% at 12% 0%, rgba(255, 255, 255, .16), transparent 60%),
    radial-gradient(70% 50% at 100% 100%, rgba(43, 59, 255, .28), transparent 70%);
}
/* Cosa ci distingue: vetro cobalto, più luminoso */
.panel--glass {
  background: linear-gradient(155deg, #23419E 0%, #15307C 45%, #0E2160 100%);
}
/* Contatti: vetro blu Omnia */
.panel--glass-omnia {
  background: linear-gradient(160deg, #0B4C9C 0%, #023878 50%, #052A5E 100%);
}
/* Clienti: il blu del logo Omnia, pieno */
.panel--blue {
  background: linear-gradient(180deg, #034392 0%, #023878 55%, #022E66 100%);
  --muted: rgba(255, 255, 255, .8);
  --line: rgba(255, 255, 255, .2);
  --blue-hi: #A9B8FF;
}
/* Clienti → Contatti: niente bordo tra le due parti.
   Il pannello blu sfuma verso il basso e i contatti nascono dalla sua luce. */
.clients.panel {
  padding-bottom: clamp(140px, 22vh, 240px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - clamp(160px, 26vh, 300px)), transparent 100%);
          mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - clamp(160px, 26vh, 300px)), transparent 100%);
}
section.contact { position: relative; isolation: isolate; margin-top: calc(-1 * clamp(70px, 11vh, 130px)); }
section.contact::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: -18%; width: min(1300px, 130vw); height: 80%;
  transform: translateX(-50%);
  /* sfuma su tutti i lati: nessun bordo netto */
  background: radial-gradient(closest-side, rgba(2, 56, 120, .6), rgba(2, 56, 120, .25) 55%, rgba(2, 56, 120, 0));
}
.panel .map { border-color: rgba(255, 255, 255, .18); }
.panel .map-consent {
  background:
    radial-gradient(circle, rgba(255, 255, 255, .14) 1px, transparent 1.6px) 0 0 / 22px 22px,
    radial-gradient(60% 60% at 50% 42%, rgba(147, 164, 255, .22), transparent 70%),
    rgba(4, 22, 66, .55);
}
.panel .btn--ghost { border-color: rgba(255, 255, 255, .3); }
.panel .btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .55); }

/* ---------- CHI SIAMO ---------- */

.about, .method, .work-head, .clients-head {
  max-width: var(--max); margin: 0 auto;
  padding-left: var(--gutter); padding-right: var(--gutter);
}
.about { padding-top: clamp(110px, 18vh, 200px); padding-bottom: clamp(80px, 12vh, 140px); }
.manifesto {
  font-size: clamp(1.9rem, 4.3vw, 4.1rem);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -.025em;
  max-width: 25ch;
}
.w { display: inline; }
.about-foot {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  margin-top: clamp(60px, 10vh, 110px);
  padding-top: 26px; border-top: 1px solid var(--line);
}
.about-body { color: var(--muted); max-width: 32ch; font-size: 1.15rem; }
.about-claim {
  font-size: clamp(1.5rem, 2.6vw, 2.4rem); line-height: 1.15;
  font-weight: 500; letter-spacing: -.02em;
}

/* ---------- COSA CI DISTINGUE ---------- */

.method { padding-top: clamp(60px, 10vh, 120px); padding-bottom: clamp(80px, 14vh, 160px); }
.method.panel { max-width: calc(var(--max) + 2 * var(--gutter)); margin-bottom: clamp(40px, 8vh, 100px); }
.pairs { border-bottom: 1px solid var(--line); }
.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr);
  gap: 16px 40px; align-items: baseline;
  padding: clamp(26px, 4.5vh, 44px) 0;
  border-top: 1px solid var(--line);
}
.pair-old, .pair-new {
  font-size: clamp(1.45rem, 2.7vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.pair-old { font-weight: 300; }
.pair-new { font-weight: 600; }
.pair-text { color: var(--muted); font-size: 1rem; max-width: 36ch; }
.pair .x { white-space: normal; }

/* ---------- COSA FACCIAMO + POLAROID ---------- */

.work { padding-top: clamp(80px, 12vh, 140px); }
.work-head {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 0 clamp(32px, 6vw, 100px); align-items: end;
  padding-bottom: clamp(40px, 8vh, 80px);
}
.work-head .label { grid-column: 1 / -1; }
.work-title {
  font-size: clamp(2.6rem, 6.2vw, 6.2rem);
  line-height: .98; font-weight: 500; letter-spacing: -.035em;
}
[data-lines] > span { display: block; overflow: hidden; padding-bottom: .06em; }
[data-lines] > span > span { display: block; }
.work-body { display: grid; gap: 1em; color: var(--muted); max-width: 46ch; }

.places { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(40px, 8vh, 100px); }
.place {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 80px); align-items: center;
  min-height: min(92vh, 860px);
  border-top: 1px solid var(--line);
}
.place--flip .place-text { order: 2; }
.place-name {
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
  line-height: 1; font-weight: 500; letter-spacing: -.03em;
  margin-bottom: 18px;
}
.place-text p { color: var(--muted); max-width: 30ch; font-size: 1.1rem; }

.stack { position: relative; height: clamp(440px, 66vh, 660px); perspective: 1400px; }
.stage { position: absolute; inset: 0; transform-style: preserve-3d; }
.pola {
  position: absolute; left: var(--x); top: var(--y);
  width: clamp(190px, 21vw, 310px);
  transform-style: preserve-3d;
}
.pola-card {
  background: var(--paper);
  padding: 12px 12px 46px;
  border-radius: 3px;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8), 0 2px 6px rgba(0, 0, 0, .3);
  transform: rotate(var(--r));
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
  cursor: default;
}
.pola-img { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #222; }
.pola-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(.92);
  transition: filter .7s var(--ease), transform .9s var(--ease);
}
/* Filtro unico per tutte le foto: monocromo virato al blu del marchio */
.pola-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(43, 59, 255, .55), rgba(8, 18, 46, .5));
  mix-blend-mode: color;
  transition: opacity .7s var(--ease);
}
.pola figcaption {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  font-size: .85rem; font-weight: 500; color: #23263D;
  letter-spacing: -.005em;
}
/* Al passaggio: la foto si distingue dalle altre */
.pola:hover { z-index: 5; }
.pola:hover .pola-card { transform: rotate(0deg) translateZ(90px) scale(1.04); box-shadow: 0 60px 90px -30px rgba(0, 0, 0, .85); }
.pola:hover .pola-img img { filter: none; transform: scale(1.04); }
.pola:hover .pola-img::after { opacity: 0; }

/* ---------- CLIENTI: muro di loghi ---------- */

.clients { padding: clamp(80px, 13vh, 150px) 0 clamp(60px, 9vh, 110px); overflow: hidden; margin-top: clamp(40px, 8vh, 100px); }
.clients-head { position: relative; z-index: 2; }
.clients-title {
  font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.05;
  font-weight: 500; letter-spacing: -.03em;
  max-width: 18ch; margin-bottom: clamp(24px, 4vh, 48px);
}
/* Elenco vero dei loghi (per Google e lettori di schermo); senza animazioni è la griglia visibile */
.logo-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 56px;
  max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter);
}
.logo { display: flex; align-items: center; height: clamp(56px, 6vw, 88px); }
.logo img { height: calc(var(--h, .6) * 100%); width: auto; filter: brightness(0) invert(1); }
.logo--knock img { filter: url(#knock); }
.anim .logo-list {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; padding: 0; margin: 0;
}

.lw-stage { display: none; }
.anim .lw-stage {
  display: block; position: relative;
  height: clamp(440px, 72vh, 760px);
  perspective: 1500px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.lw-plane { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; }
.lw-item {
  position: absolute; left: 0; top: 0;
  width: var(--tw, 180px); height: var(--th, 96px);
  margin: calc(var(--th, 96px) / -2) 0 0 calc(var(--tw, 180px) / -2);
  display: flex; align-items: center; justify-content: center;
  will-change: transform, opacity;
}
/* la piastrella compare quando la sfera diventa muro */
.lw-item::before {
  content: ""; position: absolute; inset: 0; border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  opacity: var(--m, 0);
}
.lw-item img {
  position: relative; display: block;
  height: calc(var(--h, .6) * 62%); width: auto; max-width: 78%; object-fit: contain;
  filter: brightness(0) invert(1);
}
.lw-item.logo--knock img { filter: url(#knock); }
.lw-count {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  color: var(--muted); font-size: 1rem;
}
.lw-count b { color: var(--text); font-weight: 600; }

/* ---------- CONTATTI ---------- */

.contact {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px); align-items: stretch;
  padding: clamp(60px, 10vh, 120px) var(--gutter) clamp(80px, 12vh, 140px);
}
.contact-text { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.contact-text .label { margin-bottom: 4px; }
.contact-title {
  font-size: clamp(2.8rem, 6vw, 6rem);
  line-height: .95; font-weight: 500; letter-spacing: -.035em;
}
.contact-mail {
  font-size: clamp(1.4rem, 2.6vw, 2.3rem); font-weight: 500;
  text-decoration: none; letter-spacing: -.02em;
  background: linear-gradient(var(--blue-hi), var(--blue-hi)) left bottom / 100% 1px no-repeat;
  padding-bottom: 4px;
  transition: background-size .5s var(--ease), color .3s;
  overflow-wrap: anywhere;
}
.contact-mail:hover { color: #fff; background-size: 0% 1px; background-position: right bottom; }
.contact-info { font-style: normal; color: var(--muted); line-height: 1.7; }
.contact-info strong { color: var(--text); font-weight: 600; }
.piva { font-size: .9rem; }

.map {
  position: relative; min-height: 440px;
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line);
}
.map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: invert(.9) hue-rotate(185deg) saturate(.35) contrast(.92) brightness(.95);
}

/* ---------- FOOTER ---------- */

.footer {
  max-width: var(--max); margin: 0 auto;
  display: grid; gap: clamp(36px, 6vh, 56px);
  padding: clamp(56px, 9vh, 96px) var(--gutter) 28px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: .92rem;
}
.footer a { text-decoration: none; transition: color .25s; }
.footer a:hover { color: var(--text); }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.footer-logo { display: inline-flex; align-items: center; gap: 3px; padding: 4px 0; }
.footer-claim { margin-top: 18px; color: var(--text); font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 500; letter-spacing: -.01em; }
.footer-nav { display: grid; gap: 10px; justify-items: start; }
.footer-contact { font-style: normal; display: grid; gap: 10px; line-height: 1.5; }
.footer-contact a { color: var(--text); }

.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: .8rem; line-height: 1.6;
}
.legal-id { display: flex; flex-wrap: wrap; gap: 2px 18px; max-width: 86ch; }
.legal-id strong { color: var(--text); font-weight: 600; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; }
.legal-nav .link-btn { text-decoration: none; }
.legal-nav .link-btn:hover { color: var(--text); }
/* Campi da completare con i dati della visura: ben visibili finché non ci sono */
.todo { color: #FFD36B; outline: 1px dashed rgba(255, 211, 107, .6); outline-offset: 1px; border-radius: 3px; padding: 0 3px; }

.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; font-size: .8rem; }
.credit b { font-weight: 600; color: var(--text); transition: color .4s, text-shadow .4s; }
/* easter egg: al passaggio danknote prende il suo viola */
.credit:hover b { color: #C39BFF; text-shadow: 0 0 16px rgba(168, 102, 255, .85); }

.link-btn {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color .25s;
}
.link-btn:hover { color: var(--text); }

/* ---------- STRISCIA DI POLAROID NELL'HERO ---------- */

.reel {
  position: relative; z-index: 1;
  height: clamp(250px, 34vh, 360px);
  margin-bottom: clamp(18px, 3vh, 34px);
  overflow-x: clip; overflow-y: visible; /* ai lati sfumano, in alto possono uscire mentre svaniscono */
}
.reel-pola {
  position: absolute; left: var(--x); top: calc((1.15 - var(--d)) * 46%);
  width: calc(var(--d) * clamp(128px, 12.5vw, 196px));
  z-index: calc(var(--d) * 10);
  /* più lontana = più scura e un filo sfocata */
  filter: brightness(calc(.42 + var(--d) * .5)) blur(calc(max(0, .85 - var(--d)) * 4px));
  transition: filter .6s var(--ease);
}
.anim .reel-pola { left: 0; will-change: transform, opacity; }
.reel-pola .pola-card { padding: 7px 7px 30px; border-radius: 2px; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .85), 0 2px 6px rgba(0, 0, 0, .3); }
.reel-pola figcaption {
  position: absolute; left: 9px; right: 9px; bottom: 8px;
  font-size: .72rem; font-weight: 500; color: #23263D; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reel-pola:hover { filter: none; z-index: 40; }
.reel-pola:hover .pola-card { transform: rotate(0deg) scale(1.07); }
.reel-pola:hover .pola-img img { filter: none; transform: scale(1.04); }
.reel-pola:hover .pola-img::after { opacity: 0; }

/* ---------- MAPPA: CONSENSO ---------- */

.map-consent {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 12px;
  padding: 32px; text-align: center;
  background:
    radial-gradient(circle, rgba(103, 116, 255, .16) 1px, transparent 1.6px) 0 0 / 22px 22px,
    radial-gradient(60% 60% at 50% 42%, rgba(43, 59, 255, .2), transparent 70%),
    var(--ink-2);
}
.map.is-loaded .map-consent { display: none; }
.map-pin { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.map-pin i { display: block; border-radius: 50%; background: var(--blue-hi); }
.map-pin i:first-child { width: 12px; height: 12px; }
.map-pin i:last-child { width: 20px; height: 20px; animation: pin-pulse 2.4s ease-out infinite; }
@keyframes pin-pulse { 0% { box-shadow: 0 0 0 0 rgba(103, 116, 255, .55); } 70%, 100% { box-shadow: 0 0 0 22px rgba(103, 116, 255, 0); } }
.map-consent-title { color: var(--text); font-weight: 600; font-size: 1.1rem; }
.map-consent-text { max-width: 36ch; color: var(--muted); margin-bottom: 6px; }
.map-consent-note { font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* ---------- PREFERENZE COOKIE ---------- */

.prefs {
  margin: auto; width: min(520px, calc(100vw - 32px));
  padding: 28px; border-radius: 20px;
  border: 1px solid var(--line);
  background: #10153A; color: var(--text);
  font-family: var(--f);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
}
.prefs::backdrop { background: rgba(8, 18, 46, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.prefs h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: 10px; }
.prefs p { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.prefs p a { color: var(--blue-hi); }
.prefs-list { margin: 20px 0 22px; }
.prefs-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.prefs-row:last-child { border-bottom: 1px solid var(--line); }
.prefs-row b { display: block; font-weight: 600; font-size: .95rem; }
.prefs-row span { display: block; color: var(--muted); font-size: .82rem; line-height: 1.5; margin-top: 2px; }
.toggle {
  -webkit-appearance: none; appearance: none; flex: none;
  position: relative; width: 46px; height: 26px; border-radius: 999px;
  background: rgba(233, 234, 242, .16); cursor: pointer;
  transition: background-color .3s;
}
.toggle::before {
  content: ""; position: absolute; left: 3px; top: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  transition: transform .35s var(--ease);
}
.toggle:checked { background: var(--blue); }
.toggle:checked::before { transform: translateX(20px); }
.toggle:disabled { opacity: .55; cursor: default; }
.toggle:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; }
.prefs-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.prefs-actions .btn { flex: 1 1 auto; justify-content: center; }

/* ---------- PAGINE LEGALI ---------- */

.legal-head {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 24px var(--gutter);
}
.legal-head .footer-logo { text-decoration: none; }
.legal-head .back { color: var(--muted); text-decoration: none; font-size: .92rem; }
.legal-head .back:hover { color: var(--text); }
.legal { max-width: 74ch; margin: 0 auto; padding: clamp(40px, 8vh, 80px) var(--gutter) clamp(70px, 12vh, 120px); }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 600; letter-spacing: -.035em; line-height: 1; margin-bottom: 14px; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 44px; }
.legal h2 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; margin: 44px 0 12px; color: var(--text); }
.legal p, .legal li { color: #C3C6D9; line-height: 1.7; }
.legal p { margin-bottom: 12px; }
.legal ul { padding-left: 1.2em; margin-bottom: 12px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--blue-hi); }
.legal strong { color: var(--text); font-weight: 600; }
.legal .table-wrap { overflow-x: auto; margin: 8px 0 16px; }
.legal table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 520px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); color: #C3C6D9; }
.legal th { color: var(--text); font-weight: 600; }

/* ---------- RESPONSIVE ---------- */

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .hero::after {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(8, 18, 46, .2) 0%, rgba(8, 18, 46, .72) 38%, rgba(8, 18, 46, .9) 100%);
  }
  .hero-foot, .about-foot, .work-head, .contact { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; gap: 6px; }
  .pair-text { margin-top: 6px; }

  .wall {
    width: 100%; opacity: .34;
    -webkit-mask-image: linear-gradient(0deg, transparent 30%, #000 70%, transparent 100%);
            mask-image: linear-gradient(0deg, transparent 30%, #000 70%, transparent 100%);
  }
  .wall-plane { left: -20%; right: -30%; gap: 10px; }
  .wall-col { gap: 10px; }
  .band-frame { height: 70vh; }

  .place { grid-template-columns: 1fr; min-height: 0; padding: 56px 0 24px; gap: 8px; }
  .place--flip .place-text { order: 0; }
  /* altezza calcolata sulla foto più bassa: niente sovrapposizioni con la scheda dopo */
  .stack { --pw: min(46vw, 300px); height: calc(var(--pw) * 1.45 + 60px); }
  .pola { width: var(--pw); top: calc(var(--y) * .55); }
  .map { min-height: 340px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 140px; }
  .nav-pill { padding: 6px 6px 6px 16px; }
  .nav-cta { padding: 11px 18px; }
  /* Sottobarra: una pillola più stretta, centrata sotto la barra principale */
  .nav-links {
    position: absolute; top: calc(100% + 6px); left: 50%;
    transform: translateX(-50%);
    width: max-content; max-width: calc(100% - 20px);
    gap: 2px; padding: 4px;
    border-radius: 999px;
    background: rgba(16, 21, 58, .9);
    border: 1px solid rgba(233, 234, 242, .09);
    box-shadow: 0 10px 30px -16px rgba(0, 0, 0, .8);
    overflow-x: auto; scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: .78rem; padding: 7px 11px; }
  .hero-inner { padding-top: 160px; }
}

@media (max-width: 400px) {
  .nav-links a { padding: 7px 8px; font-size: .76rem; }
}

@media (max-width: 520px) {
  .ht-main { font-size: 27vw; }
  .reel { height: 220px; }
  .reel-pola { width: calc(var(--d) * 118px); }
  .loader-logo { --ls: 2; }
  .nav-pill { padding-left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* I .btn usati come <button> */
button.btn { border: 0; cursor: pointer; }
button.btn.btn--ghost { background: none; border: 1px solid rgba(233, 234, 242, .22); }
button.btn.btn--ghost:hover { background: rgba(233, 234, 242, .07); }
.legal ul { list-style: disc; }
