/* =========================================================================
   MDC — Michele Di Cristofaro
   Palette: blu notte, blu scuro, blu acceso, bianchi ghiaccio, tocchi d'oro
   ========================================================================= */

@font-face { font-family: 'Unbounded'; src: url('../fonts/unbounded-latin-wght-normal.woff2') format('woff2-variations'); font-weight: 200 900; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-latin-wght-normal.woff2') format('woff2-variations'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces-latin-wght-italic.woff2') format('woff2-variations'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations'); font-weight: 100 800; font-display: swap; }

:root {
  --abisso: #02040e;
  --notte: #050b22;
  --notte-2: #071233;
  --scuro: #0a1a44;
  --profondo: #12307a;
  --blu: #2f5bff;
  --blu-vivo: #4f7dff;
  --cielo: #8db1ff;
  --ghiaccio: #d3e1ff;
  --latte: #eef3ff;
  --bianco: #ffffff;
  --oro: #d8b465;
  --oro-chiaro: #f1dca2;
  --oro-scuro: #a07c30;

  --testo: var(--latte);
  --testo-2: rgba(211, 225, 255, 0.74);
  --testo-3: rgba(211, 225, 255, 0.5);
  --linea: rgba(141, 177, 255, 0.16);
  --linea-forte: rgba(141, 177, 255, 0.32);
  --vetro: rgba(10, 26, 68, 0.46);
  --vetro-chiaro: rgba(141, 177, 255, 0.07);

  --f-display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --f-testo: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-corsivo: 'Fraunces', Georgia, serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  --margine: clamp(16px, 4.2vw, 64px);
  --raggio: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --oro-sfumato: linear-gradient(120deg, var(--oro-chiaro), var(--oro) 45%, var(--oro-scuro));
  --blu-sfumato: linear-gradient(135deg, var(--blu-vivo), var(--profondo));
}

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 900px at 78% -10%, rgba(47, 91, 255, 0.22), transparent 60%),
    radial-gradient(900px 700px at -10% 110%, rgba(18, 48, 122, 0.55), transparent 60%),
    linear-gradient(180deg, var(--notte) 0%, var(--abisso) 100%);
  background-attachment: fixed;
  color: var(--testo);
  font-family: var(--f-testo);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  font-weight: 450;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.cursore-attivo, body.cursore-attivo a, body.cursore-attivo button { cursor: none; }
::selection { background: var(--oro); color: var(--notte); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-family: var(--f-corsivo); font-style: italic; font-weight: 400; color: var(--oro-chiaro); letter-spacing: -0.01em; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 4px; border-radius: 6px; }

.mono { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.oro { color: var(--oro); font-weight: inherit; }
.visivamente-nascosto, .js .visivamente-nascosto-js {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- strati fissi ---------- */
.aurora, .campo { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
.velo {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(2, 4, 14, 0.7) 100%);
}
.grana {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  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");
  animation: grana 0.9s steps(4) infinite;
}
@keyframes grana { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, -1%); } }

main, .piede { position: relative; z-index: 1; }

/* ---------- ingresso ---------- */
/* ingresso cinematografico: la pagina resta nascosta, le particelle sono il film */
.ingresso { display: none; }
.in-ingresso .ingresso { display: block; position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.in-ingresso main, .in-ingresso .testata, .in-ingresso .piede, .in-ingresso .avanzamento { opacity: 0; visibility: hidden; }
.in-ingresso, .in-ingresso body { overflow: hidden; }
.ingresso__didascalia {
  position: absolute; left: var(--margine); bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 12px; color: var(--testo-3);
  transition: opacity .5s;
}
.ingresso__didascalia i { width: 46px; height: 1px; background: var(--oro); }
.ingresso__n { color: var(--oro-chiaro); }
.ingresso__salta {
  position: absolute; right: var(--margine); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); pointer-events: auto;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--linea-forte); color: var(--testo-2);
  transition: color .3s, border-color .3s, opacity .5s;
}
.ingresso__salta:hover { color: var(--oro-chiaro); border-color: var(--oro); }
.ingresso.apri .ingresso__didascalia, .ingresso.apri .ingresso__salta { opacity: 0; }

/* ---------- cursore ---------- */
/* solo sul computer con il mouse: su telefono resta nascosto (prima restava fermo nell'angolo) */
.cursore, .cursore-punto { display: none; }
.cursore-attivo .cursore { display: grid; place-items: center; }
.cursore-attivo .cursore-punto { display: block; }
.cursore {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  border: 1px solid rgba(238, 243, 255, 0.55);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s, border-color .35s;
}
.cursore.sopra { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--oro); background: rgba(216, 180, 101, 0.08); }
.cursore.con-testo { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--oro); border-color: var(--oro); }
.cursore__testo { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--notte); opacity: 0; transition: opacity .2s; }
.cursore.con-testo .cursore__testo { opacity: 1; }
.cursore-punto { position: fixed; left: 0; top: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--oro-chiaro); z-index: 91; pointer-events: none; }

.avanzamento { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 80; pointer-events: none; }
.avanzamento i { display: block; height: 100%; background: linear-gradient(90deg, var(--blu-vivo), var(--oro)); transform: scaleX(0); transform-origin: left; }

/* ---------- freccia per tornare su (con anello di avanzamento) ---------- */
.torna-su {
  position: fixed; right: var(--margine); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 75;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(5, 11, 34, 0.62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px -14px rgba(0, 0, 0, 0.8);
  opacity: 0; transform: translateY(18px) scale(0.9); pointer-events: none;
  transition: opacity .5s var(--ease), transform .6s var(--ease), background-color .3s;
}
.torna-su.visibile { opacity: 1; transform: none; pointer-events: auto; }
.torna-su svg { width: 100%; height: 100%; overflow: visible; }
.torna-su circle { fill: none; stroke-width: 1.5; }
.torna-su__traccia { stroke: var(--linea-forte); }
.torna-su__anello { stroke: var(--oro); stroke-linecap: round; stroke-dasharray: 138.23; stroke-dashoffset: 138.23; transform: rotate(-90deg); transform-origin: 24px 24px; }
.torna-su__freccia { fill: none; stroke: var(--latte); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease), stroke .3s; }
.torna-su:hover { background: rgba(18, 48, 122, 0.75); }
.torna-su:hover .torna-su__freccia { transform: translateY(-3px); stroke: var(--oro-chiaro); }
.in-ingresso .torna-su { display: none; }

/* ---------- testata ---------- */
.testata {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--margine);
  transition: transform .6s var(--ease), background-color .4s, backdrop-filter .4s;
}
.testata.compatta { background: rgba(5, 11, 34, 0.55); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--linea); }
.testata.nascosta { transform: translateY(-110%); }
.testata__logo { display: block; margin-right: auto; color: var(--latte); transition: color .3s; }
.testata__logo span {
  display: block; width: 74px; aspect-ratio: 480 / 213; background: currentColor;
  -webkit-mask: url('../img/firma-mdc.png') center / contain no-repeat; mask: url('../img/firma-mdc.png') center / contain no-repeat;
}
.testata__logo:hover { color: var(--oro); }
.testata__nav { display: flex; gap: 6px; }
.testata__nav a {
  position: relative; padding: 8px 14px; font-size: 0.86rem; font-weight: 600; color: var(--testo-2);
  border-radius: 999px; transition: color .3s, background-color .3s;
}
.testata__nav a:hover, .testata__nav a.attivo { color: var(--latte); background: var(--vetro-chiaro); }
.testata__nav a.attivo::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--oro); }
.testata__menu { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--linea-forte); position: relative; }
.testata__menu span:not(.visivamente-nascosto) { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--latte); transition: transform .4s var(--ease); }
.testata__menu span:nth-child(1) { top: 17px; }
.testata__menu span:nth-child(2) { top: 25px; }
.testata__menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.testata__menu[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.menu-mobile {
  position: fixed; inset: 0; z-index: 65; display: grid; align-items: center;
  padding: 100px var(--margine) 40px;
  background: rgba(2, 4, 14, 0.92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.menu-mobile[hidden] { display: none; }
.menu-mobile nav { display: grid; gap: 6px; }
.menu-mobile a { font-family: var(--f-display); font-size: clamp(1.9rem, 9vw, 3rem); font-weight: 500; letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 14px; padding: 6px 0; border-bottom: 1px solid var(--linea); }
.menu-mobile small { font-family: var(--f-mono); font-size: 0.75rem; color: var(--oro); }

/* ---------- bottoni ---------- */
.bottone {
  --sfondo: var(--latte); --colore: var(--notte);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--sfondo); color: var(--colore);
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), box-shadow .45s var(--ease);
  will-change: transform;
}
.bottone::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--oro-sfumato); transform: translateY(101%); transition: transform .55s var(--ease);
}
.bottone:hover::before { transform: translateY(0); }
.bottone:hover { box-shadow: 0 12px 40px -10px rgba(216, 180, 101, 0.55); }
.bottone span { position: relative; pointer-events: none; }
.bottone--vuoto { --sfondo: transparent; --colore: var(--latte); box-shadow: inset 0 0 0 1px var(--linea-forte); }
.bottone--vuoto:hover { color: var(--notte); }
.bottone--piccolo { min-height: 42px; padding: 0 20px; font-size: 0.85rem; }
.bottone--pieno { width: 100%; --sfondo: var(--blu); --colore: var(--bianco); }
.bottone--pieno:hover { color: var(--notte); }

/* ---------- elementi comuni ---------- */
.etichetta { color: var(--oro); margin-bottom: 22px; }
.occhiello { display: inline-flex; align-items: center; gap: 12px; font-size: 0.92rem; color: var(--testo-2); font-weight: 600; }
.pallino { width: 8px; height: 8px; border-radius: 50%; background: var(--oro); box-shadow: 0 0 0 0 rgba(216, 180, 101, .6); animation: pulsa 2.4s infinite; }
@keyframes pulsa { 70% { box-shadow: 0 0 0 12px rgba(216, 180, 101, 0); } 100% { box-shadow: 0 0 0 0 rgba(216, 180, 101, 0); } }

.titolo-sezione {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2.3rem, 6.2vw, 6.4rem); line-height: 0.98; letter-spacing: -0.045em;
}
.titolo-sezione em { font-size: 1.08em; letter-spacing: -0.03em; }
.sezione-testa { padding: 0 var(--margine); margin-bottom: clamp(48px, 7vw, 100px); max-width: 1500px; }
.sezione-sotto { margin-top: 26px; max-width: 520px; color: var(--testo-2); font-size: 1.08rem; }

.riga-mask { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.riga-mask > span { display: block; }

/* ---------- decoder acronimo ---------- */
.decoder { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.05em; line-height: 0.92; display: grid; }
.decoder__riga { display: block; white-space: nowrap; }
.decoder b {
  font-weight: 700; display: inline-block;
  background: var(--oro-sfumato); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;
}
.decoder__resto { color: var(--latte); }
.decoder__resto .glifo { color: var(--cielo); opacity: 0.7; }

/* =============================== HERO =============================== */
.eroe {
  position: relative; min-height: 100svh; display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: 1fr auto;
  align-items: end; gap: 40px 6vw;
  padding: 120px var(--margine) clamp(36px, 6vh, 72px);
}
.eroe__testo { grid-column: 1; grid-row: 1; align-self: center; }
.eroe .occhiello { margin-bottom: clamp(18px, 3vh, 34px); }
.eroe .decoder { font-size: clamp(2.5rem, 7.2vw, 8.6rem); }
.eroe__ambito { margin-top: clamp(18px, 3vh, 32px); color: var(--testo-2); display: flex; gap: 10px; align-items: center; }
.eroe__freccia { color: var(--oro); }
.eroe__lato { grid-column: 2; grid-row: 1; align-self: end; display: grid; gap: 28px; max-width: 470px; justify-self: end; }
.eroe__sotto { font-size: clamp(1.05rem, 1.35vw, 1.28rem); color: var(--testo-2); line-height: 1.55; }
.eroe__azioni { display: flex; flex-wrap: wrap; gap: 12px; }
.eroe__scorri { grid-column: 1; grid-row: 2; display: flex; align-items: center; gap: 14px; color: var(--testo-3); }
.eroe__scorri i { position: relative; width: 70px; height: 1px; background: var(--linea-forte); overflow: hidden; }
.eroe__scorri i::after { content: ''; position: absolute; inset: 0; background: var(--oro); animation: scorri 2.2s var(--ease) infinite; }
@keyframes scorri { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.eroe__coord { grid-column: 2; grid-row: 2; justify-self: end; list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; color: var(--testo-3); }

/* ============================== CHI SONO ============================== */
.presentazione { padding: clamp(110px, 18vh, 200px) var(--margine) 0; max-width: 1500px; margin: 0 auto; }
.presentazione__griglia { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px 5vw; align-items: end; }
.presentazione__nome {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(2.4rem, 4.6vw, 5.6rem);
  line-height: 0.95; letter-spacing: -0.05em;
}
/* sul computer «Di Cristofaro» resta su una riga sola */
@media (min-width: 901px) { .presentazione__cognome { white-space: nowrap; } }
.presentazione__testo { display: grid; gap: 18px; padding-bottom: 0.4em; border-left: 1px solid var(--linea-forte); padding-left: clamp(18px, 2.4vw, 36px); }
.presentazione__ruolo { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.1rem, 1.6vw, 1.45rem); letter-spacing: -0.025em; line-height: 1.3; }
.presentazione__ruolo em { display: block; margin-top: 4px; font-size: 1.05em; }
.presentazione__testo p:not(.presentazione__ruolo) { color: var(--testo-2); font-size: clamp(1rem, 1.15vw, 1.1rem); max-width: 560px; }

/* ============================= MANIFESTO ============================= */
.manifesto { padding: clamp(120px, 22vh, 260px) var(--margine); max-width: 1500px; margin: 0 auto; }
.manifesto__testo {
  font-family: var(--f-display); font-weight: 400; letter-spacing: -0.035em;
  font-size: clamp(1.9rem, 4.4vw, 4.6rem); line-height: 1.08;
}
.manifesto__testo em { font-size: 1.06em; }
.manifesto__testo .parola { opacity: 0.14; transition: none; }

/* ============================= NASTRO ============================= */
.nastro { position: relative; padding: 30px 0; overflow: hidden; border-block: 1px solid var(--linea); background: linear-gradient(90deg, rgba(5, 11, 34, .6), rgba(10, 26, 68, .35), rgba(5, 11, 34, .6)); }
.nastro__riga { display: flex; width: max-content; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.6rem, 4.4vw, 4rem); letter-spacing: -0.03em; white-space: nowrap; line-height: 1.15; will-change: transform; }
.nastro__riga span { padding-right: 0.3em; }
.nastro__riga--inversa { font-family: var(--f-corsivo); font-style: italic; font-weight: 300; color: var(--oro-chiaro); font-size: clamp(1.3rem, 3.2vw, 3rem); letter-spacing: -0.01em; opacity: 0.9; }

/* ============================ SIGNIFICATI ============================ */
.significati { position: relative; }
.significati__pin {
  position: relative; min-height: 100svh; display: grid;
  grid-template-rows: auto 1fr auto; padding: 110px var(--margine) 44px;
}
.significati__testa { display: flex; justify-content: flex-end; align-items: baseline; }
.significati__conta { color: var(--testo-3); }
.significati__n { color: var(--oro-chiaro); }
.significati__corpo { align-self: center; max-width: min(780px, 58vw); }
.significati__ambito { font-family: var(--f-corsivo); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 2rem); color: var(--oro-chiaro); margin-bottom: 18px; }
.decoder--grande { font-size: clamp(2.4rem, 6.4vw, 7.4rem); }
.significati__desc { margin-top: 30px; font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: var(--testo-2); max-width: 540px; }
.significati__tag { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.significati__tag li, .stack li {
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--linea-forte); color: var(--ghiaccio);
  background: rgba(5, 11, 34, 0.5);
}
.significati__punti { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.significati__punti li { width: 34px; height: 3px; border-radius: 3px; background: var(--linea-forte); transition: background-color .4s, width .5s var(--ease); }
.significati__punti li.attivo { background: var(--oro); width: 60px; }
.no-js .significati__pin { display: none; }

/* =============================== OPERE =============================== */
.opere { position: relative; padding-top: clamp(80px, 14vh, 160px); }
.opere__testa { padding: 0 var(--margine); display: grid; grid-template-columns: 1fr minmax(0, 420px); align-items: end; gap: 20px 6vw; margin-bottom: clamp(30px, 6vh, 60px); }
.opere__testa .etichetta { grid-column: 1 / -1; margin-bottom: 0; }
.opere__intro { color: var(--testo-2); }
.opere__pin { position: relative; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.opere__hud { position: absolute; left: var(--margine); right: var(--margine); bottom: 28px; display: flex; align-items: center; gap: 16px; color: var(--testo-3); z-index: 3; }
.opere__indice { color: var(--oro-chiaro); }
.opere__linea { flex: 1; height: 1px; background: var(--linea); overflow: hidden; }
.opere__linea i { display: block; height: 100%; background: var(--oro); transform: scaleX(0); transform-origin: left; }
.opere__binario { display: flex; gap: 5vw; padding: 0 12vw; will-change: transform; align-items: center; }

.opera { flex: 0 0 auto; width: min(1180px, 76vw); perspective: 1600px; }
.opera__corpo {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(22px, 3vw, 48px); align-items: center;
  padding: clamp(18px, 2.2vw, 30px);
  border-radius: calc(var(--raggio) + 8px);
  background: linear-gradient(160deg, rgba(18, 48, 122, 0.42), rgba(5, 11, 34, 0.78) 60%);
  border: 1px solid var(--linea);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
.opera__visuale { position: relative; transform-style: preserve-3d; }
.schermo {
  position: relative; border-radius: 14px; overflow: hidden; background: var(--abisso);
  border: 1px solid var(--linea-forte);
  box-shadow: 0 30px 80px -30px rgba(47, 91, 255, 0.5);
  transform: translateZ(30px);
}
.schermo__barra { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: rgba(10, 26, 68, 0.9); border-bottom: 1px solid var(--linea); }
.schermo__barra i { width: 9px; height: 9px; border-radius: 50%; background: var(--linea-forte); }
.schermo__barra i:first-child { background: var(--oro); }
.schermo__barra span { margin-left: 10px; font-family: var(--f-mono); font-size: 0.68rem; color: var(--testo-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schermo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.opera__fluttua {
  position: absolute; z-index: 2; border-radius: 12px; border: 1px solid var(--linea-forte);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  transform: translateZ(90px);
}
.opera__fluttua--largo { width: 46%; right: -6%; bottom: -12%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.opera__fluttua--ritaglio { width: 34%; right: -6%; bottom: -14%; border: 0; box-shadow: none; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .6)); }
.opera__info { display: grid; gap: 12px; align-content: center; transform: translateZ(50px); }
.opera__meta { color: var(--testo-3); }
.opera__meta span { color: var(--oro); margin-right: 8px; }
.opera__titolo { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.8rem, 3.2vw, 3.3rem); letter-spacing: -0.045em; line-height: 1; }
.opera__motto { font-family: var(--f-corsivo); font-style: italic; color: var(--oro-chiaro); font-size: clamp(1.05rem, 1.4vw, 1.3rem); }
.opera__desc { color: var(--testo-2); font-size: 0.95rem; line-height: 1.55; }

.stack { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.stack li { padding: 5px 10px; font-size: 0.66rem; }
.opera__link {
  justify-self: start; margin-top: 6px; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--latte); padding-bottom: 4px;
  background: linear-gradient(var(--oro), var(--oro)) left bottom / 100% 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
  word-break: break-all;
}
.opera__link:hover { color: var(--oro-chiaro); background-size: 30% 1px; }
.opera__link--stato { font-family: var(--f-mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--testo-3); background: none; }


/* ============================ LABORATORIO ============================ */
.laboratorio { padding: clamp(120px, 20vh, 220px) 0 clamp(80px, 12vh, 140px); }
.lab-griglia {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 1.6vw, 24px);
  padding: 0 var(--margine);
}
.lab {
  grid-column: span 6; position: relative; display: grid; gap: 10px; align-content: start;
  padding: 14px 14px 22px; border-radius: var(--raggio);
  background: linear-gradient(170deg, rgba(18, 48, 122, 0.32), rgba(5, 11, 34, 0.72));
  border: 1px solid var(--linea);
  transform-style: preserve-3d; will-change: transform;
  transition: border-color .4s;
}
.lab:hover { border-color: rgba(216, 180, 101, 0.45); }
.lab__img { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--abisso); margin-bottom: 10px; transform: translateZ(26px); }
.lab__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.lab:hover .lab__img img:not(.riflesso-img) { transform: scale(1.05); }
.lab__img--verticale img { object-position: top; }
.lab h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.25rem, 1.7vw, 1.6rem); letter-spacing: -0.04em; padding: 0 6px; transform: translateZ(20px); }
.lab p:not(.lab__stato) { color: var(--testo-2); font-size: 0.93rem; padding: 0 6px; }
.lab__stato { color: var(--cielo); padding: 0 6px; }
.lab__stato--oro { color: var(--oro); }

/* ============================== METODO ============================== */
.metodo { padding: clamp(100px, 16vh, 200px) 0; }
.passi { list-style: none; margin: 0; padding: 0 var(--margine); display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 24px); counter-reset: passo; }
.passo {
  position: relative; padding: 30px 26px 34px; border-radius: var(--raggio);
  border: 1px solid var(--linea); background: linear-gradient(180deg, rgba(10, 26, 68, 0.55), rgba(2, 4, 14, 0.4));
  overflow: hidden;
}
.passo::before { content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--blu-vivo), transparent); transform: scaleX(var(--linea-p, 0)); transform-origin: left; }
.passo__n { display: block; font-family: var(--f-display); font-weight: 700; font-size: clamp(3.5rem, 6vw, 6rem); line-height: 1; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px var(--cielo); margin-bottom: 26px; }
.passo--oro .passo__n { -webkit-text-stroke: 0; background: var(--oro-sfumato); -webkit-background-clip: text; background-clip: text; }
.passo h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.03em; margin-bottom: 12px; }
.passo p { color: var(--testo-2); font-size: 0.94rem; }
.passo--oro { border-color: rgba(216, 180, 101, 0.4); background: linear-gradient(180deg, rgba(216, 180, 101, 0.1), rgba(2, 4, 14, 0.4)); }

/* ============================ PREVENTIVO ============================ */
.preventivo { padding: clamp(100px, 16vh, 180px) 0; }
.config { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: clamp(20px, 3vw, 48px); padding: 0 var(--margine); align-items: start; }
.gruppo { border: 0; margin: 0 0 42px; padding: 0; min-width: 0; }
.gruppo legend { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.2rem, 1.8vw, 1.6rem); letter-spacing: -0.03em; margin-bottom: 18px; display: flex; align-items: center; gap: 14px; padding: 0; }
.gruppo legend .mono { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--oro); color: var(--oro); font-size: 0.75rem; }
.scelte { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.scelte--tre { grid-template-columns: repeat(3, 1fr); }
.gruppo__aiuto { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--testo-3); font-weight: 400; margin-left: 4px; }
.scelta { position: relative; display: block; cursor: pointer; }
.scelta input { position: absolute; opacity: 0; pointer-events: none; }
.scelta__box {
  display: grid; gap: 4px; height: 100%; padding: 16px 18px; border-radius: 16px;
  border: 1px solid var(--linea); background: rgba(5, 11, 34, 0.55);
  transition: border-color .3s, background-color .3s, transform .4s var(--ease), box-shadow .4s;
}
.scelta:hover .scelta__box { border-color: var(--linea-forte); transform: translateY(-2px); }
.scelta input:checked + .scelta__box { border-color: var(--oro); background: linear-gradient(160deg, rgba(216, 180, 101, 0.16), rgba(18, 48, 122, 0.4)); box-shadow: 0 14px 40px -18px rgba(216, 180, 101, 0.5); }
.scelta input:focus-visible + .scelta__box { outline: 2px solid var(--oro); outline-offset: 3px; }
.scelta__nome { font-weight: 700; font-size: 0.98rem; display: flex; justify-content: space-between; gap: 10px; }
.scelta__nome::after { content: ''; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--linea-forte); transition: all .3s; }
.scelta--multi .scelta__nome::after { border-radius: 6px; }
.scelta input:checked + .scelta__box .scelta__nome::after { background: var(--oro) radial-gradient(circle, var(--notte) 30%, transparent 32%); border-color: var(--oro); }
.scelta--multi input:checked + .scelta__box .scelta__nome::after { background: var(--oro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23050b22' stroke-width='2'/%3E%3C/svg%3E") center / 12px no-repeat; }
.scelta__nota { color: var(--testo-3); font-size: 0.82rem; }
.scelta__prezzo { font-family: var(--f-mono); font-size: 0.72rem; color: var(--cielo); margin-top: 4px; }

.campi { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.campo-testo { display: grid; gap: 6px; }
.campo-testo--largo { grid-column: 1 / -1; }
.campo-testo span { font-size: 0.82rem; color: var(--testo-3); font-weight: 600; }
.campo-testo input, .campo-testo textarea {
  width: 100%; font: inherit; color: var(--latte); background: rgba(5, 11, 34, 0.6);
  border: 1px solid var(--linea); border-radius: 14px; padding: 14px 16px; resize: vertical;
  transition: border-color .3s, background-color .3s;
}
.campo-testo input:focus, .campo-testo textarea:focus { outline: none; border-color: var(--oro); background: rgba(10, 26, 68, 0.7); }
.campo-testo.errore input { border-color: #ff7a7a; }

.riepilogo {
  position: sticky; top: 96px; display: grid; gap: 16px; padding: 28px;
  border-radius: calc(var(--raggio) + 6px);
  background: linear-gradient(165deg, rgba(47, 91, 255, 0.24), rgba(5, 11, 34, 0.85) 55%);
  border: 1px solid var(--linea-forte);
  box-shadow: 0 40px 100px -40px rgba(47, 91, 255, 0.55);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.riepilogo__etichetta { color: var(--oro); }
.riepilogo__titolo { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -0.04em; line-height: 1.1; }
.riepilogo__barra { height: 3px; border-radius: 3px; background: var(--linea); overflow: hidden; }
.riepilogo__barra i { display: block; height: 100%; background: linear-gradient(90deg, var(--blu-vivo), var(--oro)); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.riepilogo__privacy { font-size: 0.74rem; color: var(--testo-3); line-height: 1.5; }
.riepilogo__voci { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--linea); display: grid; gap: 8px; font-size: 0.88rem; color: var(--testo-2); max-height: 220px; overflow: auto; }
.riepilogo__voci li { display: flex; justify-content: space-between; gap: 12px; }
.riepilogo__voci li span:first-child { color: var(--testo-3); flex: 0 0 auto; }
.riepilogo__voci li span:last-child { color: var(--ghiaccio); text-align: right; }
.riepilogo__vuoto { color: var(--testo-3); }
.riepilogo__nota { font-size: 0.78rem; color: var(--testo-3); line-height: 1.5; }
.riepilogo__esito { font-size: 0.86rem; color: var(--oro-chiaro); min-height: 1.3em; }
.riepilogo__esito.errore { color: #ff9a9a; }

/* ===================== PROVA TUTULAB (pop-up) ===================== */
.prova {
  width: min(640px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; border: 0; background: transparent; color: var(--testo);
  overflow: auto; overscroll-behavior: contain; scrollbar-width: thin;
}
.prova::backdrop { background: rgba(2, 4, 14, 0.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.prova[open] { animation: prova-entra .55s var(--ease); }
.prova[open]::backdrop { animation: prova-sfondo .4s ease-out; }
@keyframes prova-entra { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes prova-sfondo { from { opacity: 0; } }
body.cursore-attivo .prova, body.cursore-attivo .prova a, body.cursore-attivo .prova button, body.cursore-attivo .prova .scelta { cursor: pointer; }
body.cursore-attivo .prova { cursor: auto; }
body.cursore-attivo .prova input, body.cursore-attivo .prova textarea { cursor: text; }
.dialogo-aperto .cursore, .dialogo-aperto .cursore-punto { visibility: hidden; }
.prova__modulo {
  position: relative; display: grid; gap: 18px; padding: clamp(26px, 4vw, 40px);
  border-radius: calc(var(--raggio) + 6px);
  background: linear-gradient(165deg, rgba(47, 91, 255, 0.26), rgba(5, 11, 34, 0.96) 55%), var(--notte);
  border: 1px solid var(--linea-forte);
  box-shadow: 0 40px 120px -30px rgba(47, 91, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.prova__chiudi {
  position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--linea-forte); transition: background-color .3s, transform .5s var(--ease);
}
.prova__chiudi svg { width: 18px; height: 18px; fill: none; stroke: var(--latte); stroke-width: 1.8; stroke-linecap: round; }
.prova__chiudi:hover { background: rgba(141, 177, 255, 0.12); transform: rotate(90deg); }
.prova__etichetta { color: var(--oro); padding-right: 52px; }
.prova__titolo { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.8rem, 4.4vw, 2.6rem); line-height: 1; letter-spacing: -0.045em; }
.prova__testo { color: var(--testo-2); font-size: 0.95rem; line-height: 1.55; }
.prova__gruppo { border: 0; margin: 4px 0 0; padding: 0; min-width: 0; }
.prova__gruppo legend { padding: 0; margin-bottom: 12px; font-weight: 700; font-size: 0.95rem; }
.scelte--quattro { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.scelte--quattro .scelta__box { padding: 13px 14px; border-radius: 14px; }
.prova .bottone--pieno { margin-top: 4px; }
.prova__esito { font-size: 0.86rem; color: var(--oro-chiaro); min-height: 1.3em; }
.prova__esito.errore { color: #ff9a9a; }
.prova__privacy { font-size: 0.74rem; color: var(--testo-3); line-height: 1.5; margin-top: -8px; }
@media (max-width: 640px) {
  .prova { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .scelte--quattro { grid-template-columns: repeat(2, 1fr); }
  .prova .campi { grid-template-columns: 1fr; }
}

/* ============================== COOKIE ============================== */
.consenso {
  position: fixed; left: var(--margine); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 85;
  width: min(440px, calc(100vw - 2 * var(--margine)));
  max-height: calc(100dvh - 44px); overflow-y: auto; overscroll-behavior: contain;
  padding: 26px 26px 22px; border-radius: var(--raggio);
  background: linear-gradient(160deg, rgba(18, 48, 122, 0.72), rgba(5, 11, 34, 0.94) 62%);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--linea-forte);
  box-shadow: 0 30px 90px -26px rgba(0, 0, 0, 0.9), 0 0 60px -30px rgba(47, 91, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0; transform: translateY(26px) scale(0.98); visibility: hidden; pointer-events: none;
  transition: opacity .5s var(--ease), transform .7s var(--ease), visibility 0s linear .7s;
}
.consenso.visibile { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .5s var(--ease), transform .7s var(--ease), visibility 0s; }
.consenso::before {
  content: ''; position: absolute; left: 26px; right: 26px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--oro), transparent); opacity: 0.7;
}
.consenso__etichetta { display: flex; align-items: center; gap: 10px; color: var(--oro); margin-bottom: 12px; }
.consenso__etichetta::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--oro); box-shadow: 0 0 12px 2px rgba(216, 180, 101, 0.55); }
.consenso__titolo { font-family: var(--f-display); font-weight: 500; font-size: 1.45rem; line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 12px; }
.consenso__testo { font-size: 0.88rem; line-height: 1.55; color: var(--testo-2); }
.consenso__testo a { color: var(--oro-chiaro); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(241, 220, 162, 0.4); white-space: nowrap; }
.consenso__testo a:hover { text-decoration-color: var(--oro-chiaro); }
.consenso__scelte { display: grid; gap: 10px; margin-top: 18px; }
.consenso__scelte[hidden] { display: none; }
.consenso__voce {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; border-radius: 14px; background: var(--vetro-chiaro); border: 1px solid var(--linea);
}
.consenso__nome { font-weight: 700; font-size: 0.92rem; }
.consenso__desc { margin-top: 3px; font-size: 0.8rem; line-height: 1.5; color: var(--testo-3); }
.consenso__sempre { flex: none; font-size: 0.64rem; color: var(--oro); }
.consenso__azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.consenso__azioni .bottone { flex: 1 1 0; padding: 0 16px; }
.consenso__azioni .consenso__salva { flex-basis: 100%; }
.consenso__azioni [hidden] { display: none; }
.consenso__personalizza {
  flex-basis: 100%; min-height: 36px; font-size: 0.84rem; font-weight: 600; color: var(--testo-2);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--linea-forte);
  transition: color .3s;
}
.consenso__personalizza:hover { color: var(--oro-chiaro); }

.interruttore { position: relative; flex: none; display: inline-flex; }
.interruttore input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
body.cursore-attivo .interruttore input { cursor: none; }
.interruttore__binario {
  position: relative; width: 48px; height: 28px; border-radius: 999px;
  background: rgba(141, 177, 255, 0.12); box-shadow: inset 0 0 0 1px var(--linea-forte); transition: background-color .35s;
}
.interruttore__binario i {
  position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ghiaccio); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); transition: transform .45s var(--ease), background-color .3s;
}
.interruttore input:checked + .interruttore__binario { background: var(--blu); box-shadow: inset 0 0 0 1px var(--blu-vivo), 0 0 18px -4px rgba(79, 125, 255, 0.8); }
.interruttore input:checked + .interruttore__binario i { transform: translateX(20px); background: var(--bianco); }
.interruttore input:focus-visible + .interruttore__binario { outline: 2px solid var(--oro); outline-offset: 3px; }

.piede__cookie { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.piede__cookie a, .piede__cookie button { color: var(--testo-3); font-size: inherit; transition: color .3s; }
.piede__cookie a:hover, .piede__cookie button:hover { color: var(--oro-chiaro); }

@media (max-width: 640px) {
  .consenso { left: 12px; right: 12px; width: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 24px); padding: 22px 20px 18px; }
  .consenso__titolo { font-size: 1.3rem; }
}

/* ============================= CONTATTI ============================= */
.contatti { padding: clamp(120px, 20vh, 240px) var(--margine) clamp(80px, 12vh, 140px); text-align: center; display: grid; justify-items: center; }
.contatti__titolo { font-family: var(--f-display); font-weight: 600; font-size: clamp(3rem, 10vw, 11rem); line-height: 0.92; letter-spacing: -0.06em; }
.contatti__titolo em { font-weight: 300; }
.contatti__sotto { margin-top: 28px; color: var(--testo-2); font-size: 1.1rem; }
.contatti__email { margin-top: clamp(40px, 6vh, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.contatti__link {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(1.1rem, 2.6vw, 2.2rem); letter-spacing: -0.03em;
  padding-bottom: 6px; background: linear-gradient(90deg, var(--blu-vivo), var(--oro)) left bottom / 100% 2px no-repeat;
  word-break: break-all; transition: color .3s;
}
.contatti__link:hover { color: var(--oro-chiaro); }
.contatti__telefono { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.contatti__wa { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--linea-forte); color: var(--testo-2); display: inline-flex; align-items: center; gap: 8px; transition: all .3s; }
.contatti__wa::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--oro); }
.contatti__wa:hover { border-color: var(--oro); color: var(--oro-chiaro); }
.copia-email { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--linea-forte); color: var(--testo-2); transition: all .3s; }
.copia-email:hover { border-color: var(--oro); color: var(--oro-chiaro); }

.costellazione { margin-top: clamp(70px, 10vh, 120px); width: min(900px, 100%); text-align: left; }
.costellazione__titolo { color: var(--testo-3); margin-bottom: 16px; }
.costellazione ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); }
.costellazione a {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 18px;
  padding: 22px 6px; border-bottom: 1px solid var(--linea); transition: padding .5s var(--ease), background-color .4s;
}
.costellazione a:hover { padding-left: 22px; background: linear-gradient(90deg, rgba(216, 180, 101, 0.1), transparent); }
.costellazione b { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.1rem, 2vw, 1.6rem); letter-spacing: -0.03em; }
.costellazione small { font-family: var(--f-mono); color: var(--testo-3); font-size: 0.74rem; }
.costellazione i { font-style: normal; color: var(--oro); transition: transform .4s var(--ease); }
.costellazione a:hover i { transform: translate(4px, -4px); }
.stella { width: 10px; height: 10px; border-radius: 50%; background: var(--oro); box-shadow: 0 0 14px 2px rgba(216, 180, 101, 0.6); }

/* =============================== PIEDE =============================== */
.piede { padding: 0 var(--margine); overflow: hidden; border-top: 1px solid var(--linea); }
.piede__gigante {
  /* deve stare tutta nel suo spazio: se è più larga, il browser la fa uscire solo a destra */
  font-family: var(--f-display); font-weight: 800; font-size: min(25vw, 30rem); line-height: 0.82; letter-spacing: -0.04em;
  text-align: center; white-space: nowrap; margin: 4vw 0 0;
  padding-right: 0.075em; /* compensa la spaziatura negativa dopo l'ultima lettera: così il disegno è al centro */
  color: transparent; -webkit-text-stroke: 1px rgba(141, 177, 255, 0.35);
  background: linear-gradient(180deg, rgba(141, 177, 255, 0.18), transparent 75%); -webkit-background-clip: text; background-clip: text;
  user-select: none;
}
.piede__riga { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; padding: 26px 0; border-top: 1px solid var(--linea); font-size: 0.84rem; color: var(--testo-3); }
.piede__su:hover { color: var(--oro-chiaro); }

.firma-mdc { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 0 34px; color: rgba(211, 225, 255, 0.5); user-select: none; }
.firma-mdc__by { font-family: var(--f-corsivo); font-style: italic; font-size: 0.95rem; line-height: 1; }
.firma-mdc__logo {
  display: block; width: 66px; aspect-ratio: 480 / 213; background: currentColor;
  -webkit-mask: url('../img/firma-mdc.png') center / contain no-repeat; mask: url('../img/firma-mdc.png') center / contain no-repeat;
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1100px) {
  .testata__nav { display: none; }
  .testata__menu { display: block; }
  .opera { width: 84vw; }
  .opera__corpo { grid-template-columns: 1fr; }
  .opera__info { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .opera__info > :is(.opera__meta, .opera__titolo, .opera__motto, .opera__desc, .stack, .opera__link) { grid-column: 1 / -1; }
  .passi { grid-template-columns: 1fr 1fr; }
  .lab, .lab:nth-child(1), .lab:nth-child(2) { grid-column: span 6; }
}

@media (max-width: 900px) {
  .eroe { grid-template-columns: 1fr; grid-template-rows: auto auto auto; padding-top: 46svh; gap: 28px; align-items: start; }
  .eroe__testo, .eroe__lato, .eroe__scorri, .eroe__coord { grid-column: 1; grid-row: auto; justify-self: start; }
  .eroe__coord { display: none; }
  .significati__pin { padding-top: 92px; }
  .significati__corpo { max-width: 100%; align-self: end; margin-bottom: 30px; }
  .opere__testa { grid-template-columns: 1fr; }
  .presentazione__griglia { grid-template-columns: 1fr; }
  .opere__pin { height: auto; overflow: visible; display: block; }
  .opere__hud { display: none; }
  .opere__binario { flex-direction: column; padding: 0 var(--margine); gap: 28px; }
  .opera { width: 100%; }
  .opera__info { grid-template-columns: 1fr; }
  .opera__fluttua--largo { width: 52%; right: -3%; bottom: -10%; }
  .opera__fluttua--ritaglio { right: -2%; }
  .config { grid-template-columns: 1fr; }
  .riepilogo { position: relative; top: 0; }
  .scelte--tre { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .lab, .lab:nth-child(1), .lab:nth-child(2) { grid-column: 1 / -1; }
  .passi { grid-template-columns: 1fr; }
  .campi { grid-template-columns: 1fr; }
  .eroe__azioni .bottone { flex: 1 1 auto; }
  .costellazione a { grid-template-columns: auto 1fr auto; }
  .costellazione small { grid-column: 2; grid-row: 2; }
  .costellazione i { grid-row: 1 / span 2; grid-column: 3; }
  .piede__riga { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .grana { display: none; }
  .manifesto__testo .parola { opacity: 1; }
}
