/* MeYou: la factory al buio. Inter (-4%) per tutto, Instrument Serif corsivo in glacier come seconda voce. */
:root {
  --nero: #000000;
  --nero-2: #0A0A0B;
  --nero-3: #141416;
  --bianco: #FFFFFF;
  --ice: #eef5ff;
  --grigio: #A1A1A8;
  --grey: #9aa6b4;
  --grey-dim: #5f6a77;
  --linea: rgb(255 255 255 / .14);
  --line: rgba(238, 245, 255, 0.14);
  --glacier: #81C4FB;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --risposta: cubic-bezier(0.22, 1, 0.36, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --entrata: cubic-bezier(0.16, 1, 0.3, 1);
  --forma: cubic-bezier(0.76, 0, 0.24, 1);
  --content-max: 1120px;
  --margine: max(clamp(1.25rem, 5vw, 3.75rem), calc((100% - var(--content-max)) / 2));
  --gutter: clamp(1rem, 4vw, 3.5rem);

  /* Splice Rush branding */
  --sr-sky-deep: #241869;
  --sr-sky: #4b33c9;
  --sr-violet: #7b5cff;
  --sr-lavender: #b9a8ff;
  --sr-pink: #fd2297;
  --sr-pink-aa: #d9147e;
  --sr-pink-dark: #c80f6f;
  --sr-gold: #fdda22;
  --sr-ink: #16121f;
  --sr-night: #141432;
  --sr-night-2: #1d1d48;
  --sr-text-dim: #d6cffc;
  --sr-display: "Londrina Solid", "Lilita One", var(--sans);
  --sr-ui: "Lilita One", "Londrina Solid", var(--sans);
  --sr-body: "Bricolage Grotesque", var(--sans);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--nero); color-scheme: dark; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--nero);
  color: var(--bianco);
  font: 400 1.0625rem/1.6 var(--sans);
  letter-spacing: -0.04em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--sans); font-weight: 600; line-height: .98; letter-spacing: -0.04em; }
/* la seconda voce: Instrument Serif corsivo, glacier */
em, .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--glacier); }
:focus-visible { outline: 2px solid var(--glacier); outline-offset: 3px; border-radius: 2px; }
/* le sezioni ricevono il fuoco solo per accompagnare il salto da un link: niente contorno attorno a tutta la sezione */
[id][tabindex="-1"]:focus { outline: none; }
::selection { background: var(--glacier); color: var(--nero); }
/* testi lunghi con due versioni intere (informativa privacy): si vede quella della lingua attiva */
html[data-lingua="en"] .solo-it, html:not([data-lingua="en"]) .solo-en { display: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.salta { position: fixed; left: 1rem; top: -4rem; z-index: 60; background: var(--bianco); color: var(--nero); padding: .6rem 1rem; border-radius: 999px; font-size: .85rem; text-decoration: none; }
.salta:focus { top: 1rem; }

#prodotti, #gioco, #manifesto, #servizi, #contatti, #domande { scroll-margin-top: 5.5rem; }

/* ── Header (meyou-company-v2) ─────────────────────────────────────────── */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding-top: 1.5rem;
  padding-left: var(--margine);
  padding-right: var(--margine);
  width: 100%;
  pointer-events: none;
  letter-spacing: normal;
}

.nav-wrapper::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(6.5rem, 15vh, 9.5rem);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.94) 0%,
    rgba(0, 0, 0, 0.78) 28%,
    rgba(0, 0, 0, 0.42) 60%,
    rgba(0, 0, 0, 0.12) 82%,
    transparent 100%
  );
  pointer-events: none;
  z-index: -1;
}

.nav-bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  border-radius: 9999px;
  padding-left: 1.75rem;
  padding-right: 0.5rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 45%, rgba(129, 196, 251, 0.08) 100%),
    rgba(10, 13, 18, 0.65);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  box-shadow:
    0 16px 40px -8px rgba(0, 0, 0, 0.65),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.2),
    0 0 24px 0 rgba(129, 196, 251, 0.06);
  transition:
    background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-bar--scrolled {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 45%, rgba(129, 196, 251, 0.1) 100%),
    rgba(7, 9, 13, 0.82);
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  box-shadow:
    0 24px 56px -8px rgba(0, 0, 0, 0.8),
    inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.48),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.25),
    0 0 32px 0 rgba(129, 196, 251, 0.1);
}

@supports not (backdrop-filter: blur(1px)) {
  .nav-bar {
    background: rgba(15, 18, 22, 0.88);
  }
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.nav__logo-img {
  height: 24px;
  width: 95px;
  object-fit: contain;
  cursor: pointer;
  transform: translateY(2px);
  display: block;
}

.nav__nav {
  display: flex;
  align-items: center;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.2rem, 1.15vw, 1.1rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem clamp(0.48rem, 0.72vw, 0.75rem);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  color: var(--grey);
  border-radius: 9999px;
  transition:
    color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__link:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.06);
}

.nav__link--active,
.nav__link[aria-current="true"],
.nav__link[aria-current="page"] {
  color: #fff;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.nav__contact-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: #000;
  background-color: #fff;
  border-radius: 9999px;
  padding: 0.625rem 1.5rem;
  text-decoration: none;
  line-height: 1.25;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 0.22s ease-out, transform 0.24s ease-out, box-shadow 0.26s ease-out;
  transition: background-color 0.22s ease-out, transform 0.34s linear(0, 0.45 18%, 1.07 44%, 0.98 70%, 1), box-shadow 0.26s ease-out;
}

.nav__contact-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 18%, rgba(129, 196, 251, 0.5) 50%, transparent 82%);
  transform: translateX(-130%) skewX(-18deg);
  transition: transform 0.55s ease-out;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .nav__contact-btn:hover {
    background-color: #eef7ff;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 0 0 2px rgba(129, 196, 251, 0.85), 0 8px 24px rgba(129, 196, 251, 0.36);
  }
  .nav__contact-btn:hover::before {
    transform: translateX(135%) skewX(-18deg);
  }
}

.nav__contact-btn:active {
  transform: scale(0.96);
  box-shadow: 0 0 0 2px var(--glacier), 0 2px 10px rgba(129, 196, 251, 0.28);
}

.nav__contact-btn:focus-visible {
  outline: 2px solid var(--glacier);
  outline-offset: 3px;
}

.nav__contact-btn--active {
  background-color: #ffffff;
  box-shadow: 0 0 0 2px var(--glacier), 0 4px 20px rgba(129, 196, 251, 0.48);
}

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  position: relative;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: #fff;
  transition: background-color 0.2s ease;
}

.nav__hamburger:hover,
.nav__hamburger:focus-visible {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav__hamburger-line {
  display: block;
  width: 20px;
  height: 1.5px;
  background-color: #ffffff;
  border-radius: 1px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.nav__hamburger--open .nav__hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__hamburger--open .nav__hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav__hamburger--open .nav__hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Mobile Navigation Drawer ──────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1001;
  pointer-events: none;
  visibility: hidden;
  letter-spacing: normal;
  transition: visibility 0.35s ease;
}

.mobile-menu--open {
  pointer-events: auto;
  visibility: visible;
}

/* Menu mobile: la stessa lastra di vetro dell'header che si allunga verso il basso, non un foglio nero a tutto schermo */
.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mobile-menu--open .mobile-menu__backdrop {
  opacity: 1;
}

.mobile-menu__panel {
  position: absolute;
  top: max(0.85rem, env(safe-area-inset-top, 0.85rem));
  left: 0.85rem;
  right: 0.85rem;
  max-height: calc(100svh - max(0.85rem, env(safe-area-inset-top, 0.85rem)) - 0.85rem);
  display: flex;
  flex-direction: column;
  padding: 0.35rem 0.4rem 1.25rem;
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.03) 40%, rgba(129, 196, 251, 0.08) 100%),
    rgba(8, 10, 15, 0.8);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  box-shadow:
    0 24px 56px -8px rgba(0, 0, 0, 0.8),
    inset 0 1px 1.5px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.25),
    0 0 32px 0 rgba(129, 196, 251, 0.1);
  transform-origin: 50% 0;
  transform: translateY(-6px) scale(0.97);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@supports not (backdrop-filter: blur(1px)) {
  .mobile-menu__panel { background: rgba(12, 15, 20, 0.97); }
}

.mobile-menu--open .mobile-menu__panel {
  transform: none;
  opacity: 1;
}

/* la prima riga ricalca l'header: logo e pulsante nello stesso punto, così aprendo non salta nulla */
.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 0.75rem;
  min-height: 42px;
}

.mobile-menu__header .nav__logo-img {
  height: 20px;
  width: 78px;
}

.mobile-menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-menu__close:hover,
.mobile-menu__close:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  color: var(--glacier);
}

.mobile-menu__nav {
  padding: 1.25rem 0.75rem 0.5rem;
}

.mobile-menu__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0;
  text-decoration: none;
  color: var(--grey);
  font-size: clamp(1.7rem, 7vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.15;
  transition: color 0.25s ease, transform 0.25s ease;
}

.mobile-menu__link:hover,
.mobile-menu__link:active {
  color: #ffffff;
  transform: translateX(4px);
}

.mobile-menu__link--active {
  color: #ffffff;
  font-weight: 500;
}

.mobile-menu__dot {
  display: none;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: var(--glacier);
  box-shadow: 0 0 12px var(--glacier);
  margin-left: 0.5rem;
}

.mobile-menu__link--active .mobile-menu__dot {
  display: block;
}

/* le voci entrano una dopo l'altra, come le righe del resto del sito */
.mobile-menu__item,
.mobile-menu__actions,
.mobile-menu__footer {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu--open .mobile-menu__item,
.mobile-menu--open .mobile-menu__actions,
.mobile-menu--open .mobile-menu__footer {
  opacity: 1;
  transform: none;
}
.mobile-menu--open .mobile-menu__item:nth-child(1) { transition-delay: 0.04s; }
.mobile-menu--open .mobile-menu__item:nth-child(2) { transition-delay: 0.07s; }
.mobile-menu--open .mobile-menu__item:nth-child(3) { transition-delay: 0.10s; }
.mobile-menu--open .mobile-menu__item:nth-child(4) { transition-delay: 0.13s; }
.mobile-menu--open .mobile-menu__item:nth-child(5) { transition-delay: 0.16s; }
.mobile-menu--open .mobile-menu__actions { transition-delay: 0.2s; }
.mobile-menu--open .mobile-menu__footer { transition-delay: 0.24s; }

.mobile-menu__actions {
  padding: 1rem 0.35rem 0;
}

.mobile-menu__cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.5rem;
  background-color: #ffffff;
  color: #000000;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.mobile-menu__cta-btn:active {
  transform: scale(0.98);
  background-color: #f0f0f0;
}

.mobile-menu__footer {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 1.25rem 0.75rem 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu__contact {
  display: flex;
  flex-direction: column;
}

.mobile-menu__contact-link {
  display: flex;
  align-items: center;
  min-height: 2.5rem;
  font-size: 0.95rem;
  color: var(--bianco);
  text-decoration: none;
}

.mobile-menu__contact-link:hover {
  color: var(--glacier);
}

.mobile-menu__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.mobile-menu__social-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  font-size: 0.9rem;
  color: var(--glacier);
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu__panel,
  .mobile-menu__item,
  .mobile-menu__actions,
  .mobile-menu__footer { transform: none !important; transition-property: opacity; transition-delay: 0s !important; }
}

@media (max-width: 860px) {
  .nav-wrapper {
    top: 0;
    padding-top: max(0.85rem, env(safe-area-inset-top, 0.85rem));
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  .nav-bar {
    padding-left: 1.15rem;
    padding-right: 0.4rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    justify-content: space-between;
  }
  .nav__nav,
  .nav__contact-btn {
    display: none !important;
  }
  .nav__hamburger {
    display: flex;
  }
  .nav__logo-img {
    height: 20px;
    width: 78px;
  }
}

.lingua {
  font: 600 .78rem/1 var(--sans); letter-spacing: .02em; color: var(--bianco);
  background: transparent; border: 1px solid var(--linea); border-radius: 999px; padding: .48rem .75rem; cursor: pointer;
  transition: border-color .16s var(--risposta), color .16s var(--risposta), transform .16s var(--risposta);
}
.lingua span { color: var(--grigio); }
.lingua b { font-weight: 600; color: var(--bianco); }
.lingua:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) {
  .lingua:hover { border-color: var(--glacier); }
}

/* Pulsanti */
.bottone {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 1.35rem; border-radius: 999px;
  background: var(--bianco); color: var(--nero);
  font: 600 .95rem/1.1 var(--sans); letter-spacing: -0.03em; text-decoration: none; border: 1px solid var(--bianco);
  transition: transform .16s var(--risposta), background-color .16s var(--risposta), color .16s var(--risposta), border-color .16s var(--risposta);
}
.bottone--vuoto { background: transparent; color: var(--bianco); border-color: rgb(255 255 255 / .35); }
.bottone:active { transform: translateY(1px) scale(.98); }
@media (hover: hover) and (pointer: fine) {
  .bottone:hover { background: var(--glacier); border-color: var(--glacier); color: var(--nero); transform: translateY(-2px); }
}
.azioni { display: flex; flex-wrap: wrap; gap: .75rem; }
.apertura__azioni {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(100%, 31.5rem);
}
.apertura__azioni .bottone {
  width: 100%;
  min-height: 3.1rem;
  justify-content: center;
  text-align: center;
  font-size: 0.9rem;
  padding: 0.85rem 0.9rem;
  box-sizing: border-box;
}
.bottone:focus-visible {
  outline: 2px solid var(--glacier);
  outline-offset: 3px;
}
@media (max-width: 560px) {
  .apertura__azioni {
    grid-template-columns: 1fr;
    width: 100%;
  }
}
.freccia { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
.freccia::after { content: " ↗"; display: inline-block; transition: transform .16s var(--risposta); }
.freccia { transition: color .16s var(--risposta); }
@media (hover: hover) and (pointer: fine) {
  .freccia:hover { color: var(--glacier); }
  .freccia:hover::after { transform: translate(3px, -3px); }
}

/* Pillola v2 (usata in Let's talk) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  border: 1px solid rgba(238, 245, 255, 0.28);
  border-radius: 999px;
  background: rgba(7, 9, 12, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ice);
  font: 400 0.95rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.4s var(--ease),
    color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.pill span {
  transition: transform 0.4s var(--ease);
}
.pill:hover {
  background: var(--ice);
  color: var(--nero);
  border-color: var(--ice);
}
.pill:hover span {
  transform: translateX(4px);
}

.occhiello { font: 400 1.15rem/1.3 var(--serif); font-style: italic; letter-spacing: -0.01em; color: var(--glacier); margin-bottom: 1rem; }
.titolo { font-size: clamp(2.15rem, 4.6vw, 4.15rem); max-width: 14ch; }

/* La scena fissa: particelle e sfondo viola di Splice Rush */
.palco { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.palco__viola {
  position: absolute; inset: 0; z-index: 0; opacity: 0; pointer-events: none;
  background:
    radial-gradient(110% 80% at 72% 18%, rgba(138, 107, 255, 0.56) 0%, rgba(123, 92, 255, 0.18) 38%, transparent 66%),
    linear-gradient(180deg, #4f35d4 0%, #311d8c 44%, #1e1358 80%, #100e28 100%);
}
.palco__tela { position: relative; z-index: 1; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s var(--entrata); }
.tre-d .palco__tela { opacity: 1; }
main { position: relative; z-index: 1; overflow-x: clip; }

/* oggetti statici (senza WebGL o con movimento ridotto): disegni a linea bianca, nascosti prima del paint se WebGL attivo */
.scaffale svg, .pezzo__oggetto { color: var(--bianco); }
.scaffale svg, .pezzo__oggetto, .gioco__arena svg { transition: opacity .45s var(--entrata); }
.js-3d .scaffale svg,
.js-3d .pezzo__oggetto,
.js-3d .gioco__arena svg,
.tre-d .scaffale svg,
.tre-d .gioco__arena svg {
  opacity: 0;
  visibility: hidden;
}
.js-3d .pezzo__oggetto,
.tre-d .pezzo__oggetto { display: none; }

/* Primo schermo */
.apertura {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  gap: clamp(2rem, 4vw, 3.25rem); padding: 7rem var(--margine) 4.5rem;
}
.motto {
  font-size: clamp(2.35rem, 4.35vw, 4.55rem); font-weight: 600; letter-spacing: -0.04em; line-height: .96;
  margin-bottom: 1.5rem;
}
.motto .riga { display: block; }
.motto em { font-size: 1.08em; padding-right: .04em; }
.apertura__chi { max-width: 28rem; font-size: 1.06rem; color: #CFCFD4; margin-bottom: 1.85rem; }
.apertura__chi a { color: var(--bianco); }
.scaffale {
  position: relative;
  margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem 1.2rem;
  align-self: center; justify-self: center; width: min(100%, 29rem);
}
.scaffale svg { width: 100%; aspect-ratio: 1; }
.apertura__scorri { position: absolute; left: var(--margine); bottom: 1.4rem; margin: 0; font-size: .85rem; color: var(--grigio); }
.apertura__scorri em { font-size: 1.1em; }

/* Fascia dei nomi: corre con la velocità dello scroll, senza divisori */
.fascia {
  overflow: hidden; padding: 1.4rem 0; position: relative; z-index: 2; background: transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.fascia__riga {
  white-space: nowrap; font: 500 clamp(1.25rem, 2.6vw, 2.05rem)/1 var(--sans);
  letter-spacing: -0.04em; width: max-content; color: rgba(255, 255, 255, 0.42);
}
.fascia__riga em { margin: 0 .45em; }

/* Il nastro */
.nastro { position: relative; padding: 9rem var(--margine) 4rem; }
.nastro__intro { max-width: 34rem; margin-bottom: 3.5rem; }
.nastro__intro p:last-child { font-size: 1.04rem; max-width: 29rem; color: #CFCFD4; }
.pezzo {
  min-height: 92svh; display: flex; align-items: center; gap: 2rem;
}
.pezzo__oggetto { width: min(36vw, 12rem); flex: none; aspect-ratio: 1; }
.tre-d .pezzo__oggetto { display: none; }
.pezzo__scheda {
  position: relative;
  max-width: 28.5rem;
  padding: clamp(1.65rem, 2.8vw, 2.25rem);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.012) 42%, rgba(129, 196, 251, 0.045) 100%),
    rgba(10, 13, 20, 0.22);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.45),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 1px 0 rgba(129, 196, 251, 0.12),
    inset 0 0 28px rgba(129, 196, 251, 0.03);
  overflow: hidden;
  isolation: isolate;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: border-color 0.35s var(--entrata), box-shadow 0.35s var(--entrata);
}
.pezzo__scheda::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 35%, rgba(129, 196, 251, 0.45) 65%, transparent 100%);
  pointer-events: none;
}
@supports not (backdrop-filter: blur(1px)) {
  .pezzo__scheda {
    background: rgba(14, 17, 23, 0.88);
  }
}
@media (hover: hover) and (pointer: fine) {
  .pezzo__scheda:hover {
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow:
      0 24px 64px rgba(0, 0, 0, 0.58),
      inset 0 1px 1px 0 rgba(255, 255, 255, 0.42),
      inset 0 -1px 1px 0 rgba(129, 196, 251, 0.2),
      inset 0 0 36px rgba(129, 196, 251, 0.06);
  }
}
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes pezzo-shell-flow {
      entry 0% {
        opacity: 0;
        transform: translate3d(0, 26px, 0) scale(0.98);
      }
      entry 100%,
      exit 0% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
      }
      exit 100% {
        opacity: 0;
        transform: translate3d(0, -24px, 0) scale(0.975);
      }
    }
    @keyframes pezzo-content-blur {
      entry 0% { filter: blur(8px); }
      entry 100%, exit 0% { filter: blur(0px); }
      exit 100% { filter: blur(10px); }
    }
    .pezzo__scheda {
      view-timeline-name: --pezzo-tl;
      view-timeline-axis: block;
      view-timeline-inset: 12% 6%;
      animation: pezzo-shell-flow auto linear both;
      animation-timeline: --pezzo-tl;
    }
    .pezzo__scheda > * {
      animation: pezzo-content-blur auto linear both;
      animation-timeline: --pezzo-tl;
    }
  }
}
.pezzo__num { font: 400 1.05rem/1 var(--serif); font-style: italic; letter-spacing: 0; color: var(--glacier); }
.pezzo h3 { font-size: clamp(2rem, 3.8vw, 3.25rem); margin-bottom: .8rem; }
.pezzo__cosa { font-size: 1.05rem; }
.pezzo__chi { color: var(--grigio); font-size: 0.96rem; }
.pezzo__chi b { color: var(--bianco); font-weight: 500; }
.pezzo__link { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 1.3rem 0 0; }
.visita-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  min-width: 9.75rem;
  min-height: 46px;
  padding: 0.42rem 0.45rem 0.42rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--bianco);
  font: 600 0.94rem/1 var(--sans);
  letter-spacing: -0.02em;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 220ms ease-out, border-color 220ms ease-out, background-color 220ms ease-out, box-shadow 220ms ease-out, color 220ms ease-out;
  transition: transform 320ms linear(0, 0.45 18%, 1.06 42%, 0.98 68%, 1), border-color 220ms ease-out, background-color 220ms ease-out, box-shadow 220ms ease-out, color 220ms ease-out;
}
.visita-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 22%, rgba(129, 196, 251, 0.28) 50%, transparent 78%);
  transform: translateX(-125%) skewX(-18deg);
  transition: transform 520ms ease-out;
  pointer-events: none;
}
.visita-btn__icona {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 999px;
  background: var(--bianco);
  color: var(--nero);
  overflow: hidden;
  transition: background-color 220ms ease-out, transform 220ms ease-out;
}
.visita-btn__icona svg {
  grid-area: 1 / 1;
  width: 15px;
  height: 15px;
  transition: transform 280ms ease-out, opacity 220ms ease-out;
  transition: transform 360ms linear(0, 0.5 20%, 1.07 46%, 0.98 72%, 1), opacity 220ms ease-out;
}
.visita-btn__icona svg:last-child {
  transform: translate(-135%, 135%);
  opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
  .visita-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(129, 196, 251, 0.65);
    background: rgba(129, 196, 251, 0.14);
    box-shadow: 0 10px 26px rgba(129, 196, 251, 0.2);
    color: var(--bianco);
  }
  .visita-btn:hover::before {
    transform: translateX(135%) skewX(-18deg);
  }
  .visita-btn:hover .visita-btn__icona {
    background: var(--glacier);
  }
  .visita-btn:hover .visita-btn__icona svg:first-child {
    transform: translate(135%, -135%);
    opacity: 0;
  }
  .visita-btn:hover .visita-btn__icona svg:last-child {
    transform: translate(0, 0);
    opacity: 1;
  }
}
.visita-btn:active {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 3px 10px rgba(129, 196, 251, 0.16);
}
.visita-btn:focus-visible {
  outline: 2px solid var(--glacier);
  outline-offset: 3px;
  border-color: var(--glacier);
}
@media (max-width: 480px) {
  .pezzo__link { display: block; }
  .visita-btn { width: 100%; }
}

/* Nastro orizzontale: solo con gli script e il movimento consentito; altrimenti resta la colonna verticale */
@media (prefers-reduced-motion: no-preference) {
  .js-moto .nastro__pista {
    --m-vw: max(clamp(1.25rem, 5vw, 3.75rem), calc((100vw - var(--content-max)) / 2));
    position: relative;
    height: calc(100svh + 7 * 78svh);
    margin-inline: calc(50% - 50vw);
  }
  .js-moto .nastro__palco {
    position: sticky; top: 0; height: 100svh; overflow: clip;
    padding-inline: var(--m-vw);
  }
  .js-moto .nastro__binario { display: flex; gap: calc(var(--m-vw) * 2); height: 100%; will-change: transform; }
  .js-moto .nastro__binario .pezzo { flex: 0 0 100%; min-height: 0; height: 100%; }
  .js-moto .nastro__binario .pezzo__scheda,
  .js-moto .nastro__binario .pezzo__scheda > * { animation: none; }
  .js-moto .nastro__binario .pezzo__scheda { transform-origin: left center; transition: border-color 0.35s var(--entrata), box-shadow 0.35s var(--entrata); }
  /* stessi pallini del manifesto: un solo linguaggio per dire "dove sono" */
  .js-moto .nastro__progress { display: flex; bottom: clamp(1.5rem, 4vh, 2.75rem); }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 799px) {
  .js-moto .nastro__binario .pezzo { padding-bottom: 4.25rem; }
  .js-moto .nastro__binario .pezzo__scheda { transform-origin: center bottom; }
  .js-moto .nastro__progress { bottom: max(1.6rem, env(safe-area-inset-bottom)); }
}
/* Touch (iPhone): mentre la sezione è agganciata il palco passa da sticky a fixed (vedi movimento.js),
   perché su WebKit lo sticky trema in verticale quando la pagina si aggiorna a ogni frame.
   Le sezioni hanno altezza esplicita, quindi togliere il palco dal flusso non sposta nulla. */
.palco-fisso { position: fixed !important; top: 0 !important; bottom: auto !important; }
/* Touch (iPhone): una scheda con backdrop-filter che trasla e cambia opacità a ogni frame
   costringe WebKit a ridipingere lo sfondo sfocato sopra il canvas 3D, e il nastro trema.
   Qui il vetro diventa un fondo pieno quasi identico, e l'unico livello animato resta il binario. */
@media (prefers-reduced-motion: no-preference) and (hover: none) and (pointer: coarse) {
  .js-moto .nastro__binario .pezzo__scheda {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.015) 42%, rgba(129, 196, 251, 0.05) 100%),
      rgba(12, 15, 22, 0.78);
    will-change: auto;
  }
}

/* L'anello */
.anello { position: relative; }
.anello__fisso { padding: 6rem var(--margine) 4rem; display: grid; gap: 1.2rem; }
.anello__aiuto, .anello__davanti { display: none; }
.tre-d .anello { height: 240svh; }
.tre-d .anello__fisso {
  position: sticky; top: 0; height: 100svh; padding: 6.5rem var(--margine) 2.5rem; gap: 0;
  grid-template-rows: auto 1fr auto; touch-action: pan-y; cursor: grab;
  user-select: none; -webkit-user-select: none;
}
.tre-d .anello__fisso:active { cursor: grabbing; }
.tre-d .anello__aiuto, .tre-d .anello__davanti { display: block; }
.anello__aiuto { color: var(--grigio); }
.anello__davanti { margin: 0 0 1rem; font-size: .95rem; grid-row: 3; color: var(--grigio); }
.anello__davanti b { font: 600 1.5rem/1.2 var(--sans); letter-spacing: -0.04em; margin-left: .35rem; color: var(--bianco); }

/* Gaming: Splice Rush (splicerush.com purple & arcade branding) */
.gioco {
  position: relative;
  z-index: 1;
  overflow: clip;
  font-family: var(--sr-body);
  letter-spacing: -0.01em;
}
html:not(.tre-d) .gioco {
  background:
    radial-gradient(110% 72% at 72% 35%, rgba(138, 107, 255, 0.55) 0%, rgba(123, 92, 255, 0.2) 38%, transparent 66%),
    linear-gradient(180deg, #000000 0%, #5a3fe0 14%, #37239b 48%, #241869 82%, #000000 100%);
}
.gioco__fisso {
  position: relative; z-index: 1;
  min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 2rem;
  padding: clamp(4.75rem, 8svh, 6.25rem) var(--margine) clamp(2rem, 5svh, 3.5rem);
}
.tre-d .gioco { height: 260svh; }
.tre-d .gioco__fisso { position: sticky; top: 0; z-index: 1; height: 100svh; min-height: 0; overflow: clip; }
.gioco__testo {
  position: relative;
  width: 100%;
  max-width: 34rem;
}
.gioco__badge {
  display: inline-block;
  padding: .35rem .85rem;
  background: var(--sr-night-2);
  border: 2px solid var(--sr-ink);
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--sr-ink);
  font-family: var(--sr-ui);
  font-style: normal;
  font-size: .84rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--sr-gold);
  margin-bottom: clamp(0.6rem, 1.4svh, 1rem);
}
.gioco__logo {
  width: clamp(8.5rem, 15vw, 13.5rem);
  height: auto;
  margin-bottom: clamp(0.5rem, 1.4svh, 0.9rem);
  filter: drop-shadow(0 6px 0 rgba(22, 18, 31, 0.75));
}
.gioco__titolo {
  font-family: var(--sr-display);
  font-weight: 900;
  font-size: clamp(2.1rem, min(4.3vw, 6.2svh), 3.75rem);
  line-height: .94;
  letter-spacing: .01em;
  color: #fff;
  -webkit-text-stroke: 6px var(--sr-ink);
  paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--sr-ink);
  transform: skewX(-4deg);
  transform-origin: left center;
  margin-bottom: clamp(0.75rem, 1.8svh, 1.15rem);
}
.gioco__titolo span { display: block; }
.gioco__titolo em {
  display: block;
  font-family: var(--sr-display);
  font-style: normal;
  font-weight: 900;
  font-size: 1em;
  color: var(--sr-pink);
  letter-spacing: .01em;
  margin-top: .08em;
}
.gioco__desc { color: #f2eeff; font-size: clamp(0.98rem, 1.6vw, 1.08rem); line-height: 1.5; max-width: 34rem; margin-bottom: clamp(0.85rem, 2svh, 1.4rem); }
.gioco__dati {
  list-style: none;
  margin: clamp(0.9rem, 2.2svh, 1.5rem) 0;
  padding: 0;
  inline-size: 100%;
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, 1fr);
  gap: clamp(0.45rem, 1.6cqi, 0.75rem);
}
.gioco__dati li {
  background: rgba(20, 20, 50, 0.85);
  border: 3px solid var(--sr-ink);
  border-radius: 14px;
  padding: clamp(0.5rem, 1.2svh, 0.75rem) clamp(0.55rem, 2.5cqi, 0.95rem);
  box-shadow: 0 5px 0 var(--sr-ink), inset 0 2px 0 rgba(255, 255, 255, 0.14);
  color: var(--sr-text-dim);
  font-size: clamp(0.76rem, 0.56rem + 0.62cqi, 0.88rem);
  line-height: 1.3;
}
.gioco__dati b {
  display: block;
  color: #fff;
  font-family: var(--sr-ui);
  font-weight: 400;
  font-size: clamp(1.02rem, 0.32rem + 4.1cqi, 1.85rem);
  letter-spacing: .01em;
  line-height: 1.05;
  white-space: nowrap;
  margin-bottom: .2rem;
}
@container (inline-size < 270px) {
  .gioco__dati b {
    white-space: normal;
  }
}
.gioco__dati li:last-child b {
  font-family: var(--sr-ui);
  font-style: normal;
  font-weight: 400;
  color: var(--sr-gold);
  letter-spacing: .01em;
}
.gioco__cta {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: clamp(0.75rem, 1.5svh, 0.95rem) 1.55rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #e51985 0%, #c80f6f 100%);
  color: #fff;
  font-family: var(--sr-ui);
  font-weight: 400;
  font-size: 1.08rem;
  letter-spacing: .02em;
  text-decoration: none;
  border: 3px solid var(--sr-ink);
  box-shadow: 0 5px 0 var(--sr-ink), inset 0 3px 0 rgba(255, 255, 255, 0.28);
  transition: transform .15s var(--risposta), box-shadow .15s var(--risposta), filter .15s var(--risposta);
}
@media (hover: hover) and (pointer: fine) {
  .gioco__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 var(--sr-ink), inset 0 3px 0 rgba(255, 255, 255, 0.34);
    filter: brightness(1.06);
  }
}
.gioco__cta:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--sr-ink), inset 0 2px 0 rgba(255, 255, 255, 0.22);
}
.gioco__cta:focus-visible { outline: 3px solid var(--sr-gold); outline-offset: 3px; }
.gioco__nota { font-size: .92rem !important; color: var(--sr-text-dim) !important; margin-top: clamp(0.8rem, 1.8svh, 1.25rem); margin-bottom: 0; max-width: 34rem; }
.gioco__arena { position: relative; aspect-ratio: 1; width: min(100%, 29rem); justify-self: center; }
.gioco__arena svg { width: 100%; height: 100%; color: var(--bianco); }
.tre-d .gioco__arena svg { visibility: hidden; }

/* Manifesto — tunnel ottico 3D (come su meyou.company) */
.manifesto,
.depth-track {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  height: calc(var(--messages, 4) * 120svh + 100svh);
  letter-spacing: normal;
}
html:not(.tre-d) .manifesto {
  background: var(--nero);
}
.depth-stage {
  position: sticky;
  top: 0;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0 var(--gutter);
  text-align: center;
  perspective: 1200px;
  perspective-origin: center center;
  contain: paint layout size;
  isolation: isolate;
  box-sizing: border-box;
}
.manifesto__line {
  position: absolute;
  width: min(100% - 2 * var(--gutter), 25em);
  margin: 0;
  font: 300 clamp(1.6rem, 3.2vw, 3.1rem) / 1.25 var(--sans);
  letter-spacing: -0.028em;
  color: var(--ice);
  /* un'ombra sola e corta: le due ombre larghe di prima (28px + 14px) facevano ridisegnare il testo a ogni frame e lo scroll all'indietro andava a scatti */
  text-shadow: 0 1px 10px rgb(0 0 0 / 0.8);
  will-change: transform, opacity, filter;
  transform-origin: center center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  pointer-events: none;
  user-select: none;
}
.manifesto__line[data-depth-active] {
  pointer-events: auto;
  user-select: text;
}
.manifesto__line--last {
  font-size: clamp(2.1rem, 4.8vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}
.manifesto__progress,
.nastro__progress {
  position: absolute;
  bottom: clamp(1.5rem, 4vh, 2.75rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  pointer-events: none;
}
/* i pallini del nastro esistono solo nella versione orizzontale */
html:not(.js-moto) .nastro__progress { display: none; }
@media (prefers-reduced-motion: reduce) { .nastro__progress { display: none; } }
.manifesto__pip,
.nastro__pip {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(238, 245, 255, 0.26);
  transition: width 0.35s var(--ease), background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.manifesto__pip.is-active,
.nastro__pip.is-active {
  width: 22px;
  background: var(--glacier);
  box-shadow: 0 0 12px rgba(129, 196, 251, 0.55);
}

/* ── Contact (meyou-company-v2) ──────────────────────────────────────── */
.contact {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5rem var(--gutter) 6rem;
  text-align: center;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  box-sizing: border-box;
  background: transparent;
  letter-spacing: normal;
}
html:not(.tre-d) .contact {
  background: radial-gradient(circle 420px at 50% 48%, rgba(129, 196, 251, 0.08), transparent 70%), var(--nero);
}

.contact::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: clamp(14rem, 36vh, 26rem);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.08) 25%,
    rgba(0, 0, 0, 0.28) 50%,
    rgba(0, 0, 0, 0.65) 75%,
    rgba(0, 0, 0, 0.94) 92%,
    #000000 100%
  );
  pointer-events: none;
  z-index: 1;
}

.contact__inner {
  position: relative;
  z-index: 2;
  width: min(100%, 40rem);
}

.contact__title {
  margin: 0;
  font: 400 clamp(3rem, 7vw, 6.5rem) / 1 var(--sans);
  letter-spacing: -0.05em;
}

.contact__lede {
  margin: 1.25rem 0 2.5rem;
  color: var(--grey);
}

.form {
  display: grid;
  gap: 1.25rem;
  text-align: left;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}
.field label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid rgba(238, 245, 255, 0.22);
  border-radius: 0;
  background: transparent;
  color: var(--ice);
  font: 300 max(1rem, 1em)/1.4 var(--sans);
  resize: vertical;
  transition: border-color 0.3s;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(154, 166, 180, 0.45);
  font-weight: 300;
  font-size: 0.95rem;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--glacier);
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--glacier);
  outline-offset: 4px;
  border-radius: 4px;
}

.field__error {
  display: none;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #ff8ea1;
  letter-spacing: normal;
  text-transform: none;
}
.field :is(input, textarea):is(:user-invalid, .user-invalid-fallback) {
  border-color: #ff6b81;
}
.field :is(input, textarea):is(:user-invalid, .user-invalid-fallback) + .field__error {
  display: block;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.5rem;
}
.form__note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--grey-dim);
}

/* ── meyou.company Footer Clone ──────────────────────────────────────── */
.footer-meyou {
  position: relative;
  background-color: #000000;
  color: #fff;
  padding: clamp(6rem, 14vh, 10rem) var(--margine) 2.5rem;
  overflow-x: clip;
  overflow-y: visible;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  z-index: 10;
  letter-spacing: normal;
}

.footer-meyou::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: clamp(18rem, 45vh, 32rem);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.04) 15%,
    rgba(0, 0, 0, 0.15) 32%,
    rgba(0, 0, 0, 0.38) 52%,
    rgba(0, 0, 0, 0.68) 72%,
    rgba(0, 0, 0, 0.92) 88%,
    #000000 100%
  );
  pointer-events: none;
  z-index: 2;
}
/* in home prima del footer ci sono le domande, già su fondo nero: la sfumatura le coprirebbe */
.home .footer-meyou::before { display: none; }

.footer-meyou__inner {
  max-width: none;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

.footer-meyou__top {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

@media (min-width: 768px) {
  .footer-meyou__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-meyou__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 2rem;
}

@media (min-width: 640px) {
  .footer-meyou__cols {
    grid-template-columns: repeat(4, auto);
    gap: 3.5rem;
  }
}

.footer-meyou__heading {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.42);
  margin: 0 0 1.1rem;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.footer-meyou__links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-meyou__link {
  font-size: 0.9375rem;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
  opacity: 0.88;
}

.footer-meyou__link:hover {
  opacity: 1;
  color: var(--glacier);
}

.footer-meyou__link--underline {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-meyou__text {
  font-size: 0.9375rem;
  color: #ffffff;
  opacity: 0.88;
}

.footer-meyou__btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-weight: inherit;
  font-size: 0.9375rem;
  line-height: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  text-align: left;
}

.footer-meyou__copy {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.55;
}

@media (min-width: 768px) {
  .footer-meyou__copy {
    text-align: right;
  }
}

.footer-meyou__copy p {
  margin: 0;
}

.footer-meyou__lang {
  margin-top: 0.85rem;
}

@media (min-width: 768px) {
  .footer-meyou__lang {
    display: flex;
    justify-content: flex-end;
  }
}

.footer-meyou__brand-wrap {
  width: 100%;
  padding-top: 1.5rem;
  user-select: none;
  pointer-events: none;
}

.footer-meyou__big-logo {
  width: 100%;
  height: auto;
  opacity: 0.92;
  display: block;
}

/* ── Cookie Consent & Privacy Policy (meyou-company-v2 verbatim) ───── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.text-black { color: #000000; }
.text-white { color: #ffffff; }

.cookie-floating-btn[hidden],
.cookie-banner[hidden] {
  display: none;
}

.cookie-floating-btn {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 990;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background-color: #ffffff;
  color: #000000;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.cookie-floating-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
}

.cookie-floating-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 1000;
  width: calc(100% - 3rem);
  max-width: 380px;
  background-color: #111215;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem;
  border-radius: 1.125rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  animation: cookieFadeUp 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  will-change: transform, opacity;
  transform: translateZ(0);
  letter-spacing: normal;
}

@keyframes cookieFadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.cookie-banner__header {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.cookie-banner__icon-wrap {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.cookie-banner__icon-wrap svg {
  width: 1.25rem;
  height: 1.25rem;
}

.cookie-banner__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.25rem;
  letter-spacing: normal;
  line-height: 1.3;
}

.cookie-banner__desc {
  font-size: 0.8125rem;
  color: #9aa6b4;
  line-height: 1.45;
  margin: 0;
}

.cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.cookie-banner__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.625rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  font-family: inherit;
  letter-spacing: normal;
}

.cookie-btn--primary {
  background-color: #ffffff;
  color: #000000;
}

.cookie-btn--primary:hover {
  background-color: #f1f3f7;
}

.cookie-btn--secondary {
  background-color: #1a1c22;
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.cookie-btn--secondary:hover {
  background-color: #242730;
  border-color: rgba(255, 255, 255, 0.2);
}

.cookie-btn--icon svg {
  width: 1rem;
  height: 1rem;
  opacity: 0.75;
}

/* Native modal dialog containment */
dialog:modal {
  overscroll-behavior: contain;
}
dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
}

.cookie-drawer-dialog {
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  overflow: visible;
}

.cookie-drawer-dialog[open] {
  display: flex;
}

.cookie-drawer-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.25s ease;
}

.cookie-drawer {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #0c0d10;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.8);
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: normal;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cookie-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-drawer__title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cookie-drawer__title-wrap svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--glacier);
}

.cookie-drawer__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.cookie-drawer__close-btn {
  background: none;
  border: none;
  color: #9aa6b4;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background-color 0.2s;
}

.cookie-drawer__close-btn:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
}

.cookie-drawer__close-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.cookie-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cookie-drawer__intro {
  font-size: 0.8125rem;
  color: #8892a0;
  line-height: 1.55;
  margin: 0;
}

.cookie-drawer__section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cookie-drawer__section--bordered {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-drawer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-drawer__section-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  letter-spacing: normal;
}

.cookie-drawer__badge {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  background-color: rgba(129, 196, 251, 0.12);
  color: var(--glacier);
  border-radius: 9999px;
  border: 1px solid rgba(129, 196, 251, 0.28);
}

.cookie-drawer__section-desc {
  font-size: 0.8125rem;
  color: #9aa6b4;
  line-height: 1.45;
  margin: 0;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 2.75rem;
  height: 1.5rem;
  cursor: pointer;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #242730;
  border-radius: 9999px;
  transition: background-color 0.25s ease, border-color 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cookie-toggle__slider::before {
  position: absolute;
  content: "";
  height: 1.125rem;
  width: 1.125rem;
  left: 2px;
  bottom: 2px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.cookie-toggle input:checked + .cookie-toggle__slider {
  background-color: var(--glacier);
  border-color: var(--glacier);
}

.cookie-toggle input:checked + .cookie-toggle__slider::before {
  transform: translateX(1.25rem);
  background-color: #000000;
}

.cookie-toggle input:focus-visible + .cookie-toggle__slider {
  outline: 2px solid var(--glacier);
  outline-offset: 2px;
}

.cookie-drawer__footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background-color: #0c0d10;
}

.cookie-btn--save {
  width: 100%;
  background-color: var(--glacier);
  color: #000000;
  font-weight: 600;
  padding: 0.75rem 1rem;
}

.cookie-btn--save:hover {
  background-color: #a2d3fc;
}

.cookie-btn--save svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Fullscreen Privacy and Cookie Policy Modal */
.privacy-modal-dialog {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background-color: #000000;
  color: inherit;
  overflow: hidden;
}

.privacy-modal-dialog[open] {
  display: flex;
}

.privacy-modal-dialog::backdrop {
  background-color: #000000;
}

.privacy-modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #000000;
  border: none;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  animation: fadeIn 0.24s ease;
  letter-spacing: normal;
}

.privacy-modal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.25rem var(--gutter);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.privacy-modal-header-inner {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.privacy-modal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.privacy-modal-back-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--glacier);
}

.privacy-modal-back-btn svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.privacy-modal-back-btn:hover svg {
  transform: translateX(-3px);
}

.privacy-modal-body {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vh, 4rem) var(--gutter) 6rem;
}

.privacy-modal-title {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.035em;
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

.privacy-modal-date {
  font-size: 0.875rem;
  color: #71717a;
  margin: 0 0 2.5rem;
}

.privacy-modal-prose {
  color: #d4d4d8;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.privacy-modal-prose h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff;
  margin: 2.75rem 0 1rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.privacy-modal-prose h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin: 1.75rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.privacy-modal-prose p {
  margin: 0 0 1.25rem;
}

.privacy-modal-prose a {
  color: var(--glacier);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-modal-prose ul {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.privacy-modal-prose li {
  margin-bottom: 0.5rem;
}

.privacy-table-wrapper {
  overflow-x: auto;
  margin: 1.75rem 0 2rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.privacy-table th {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.85rem 1rem;
  color: #fff;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
  color: #a1a1aa;
}

.privacy-table tr:last-child td {
  border-bottom: none;
}

/* Pagina contatti.html */
.pagina { padding: clamp(6.5rem, 11vw, 8.5rem) var(--margine) 4rem; position: relative; z-index: 1; }
.pagina__intro { max-width: 44rem; margin-bottom: 4rem; }
.pagina__intro p { font-size: 1.12rem; color: #CFCFD4; }
.pagina__intro .occhiello { color: var(--glacier); }
.contatti-griglia { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.modulo { display: grid; gap: 1.1rem; max-width: 40rem; }
.modulo label { display: grid; gap: .4rem; font-weight: 500; font-size: .95rem; }
.modulo input, .modulo select, .modulo textarea {
  font: 400 1rem/1.4 var(--sans); letter-spacing: -0.03em; padding: .85rem 1rem; border: 1px solid rgb(255 255 255 / .25); border-radius: 10px;
  background: var(--nero-2); color: var(--bianco); transition: border-color .16s var(--risposta);
}
.modulo input:focus, .modulo select:focus, .modulo textarea:focus { border-color: var(--glacier); outline: none; box-shadow: 0 0 0 3px rgb(129 196 251 / .25); }
.modulo textarea { min-height: 9rem; resize: vertical; }
.modulo button { justify-self: start; cursor: pointer; }
.esito { padding: 1rem 1.2rem; background: var(--nero-3); border: 1px solid var(--glacier); color: var(--bianco); border-radius: 10px; }
.esito a { color: var(--glacier); }
.esito[hidden] { display: none; }
.recapiti dl { display: grid; gap: .3rem 0; margin: 0; }
.recapiti dt { font-family: var(--serif); font-style: italic; color: var(--glacier); letter-spacing: 0; font-size: 1.1rem; margin-top: 1rem; }
.recapiti dd { margin: 0; }
.grande-mail { font: 600 clamp(1.4rem, 3.2vw, 2.4rem)/1.15 var(--sans); letter-spacing: -0.04em; color: var(--bianco); text-decoration: none; border-bottom: 1px solid var(--glacier); overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) {
  .grande-mail { transition: color .16s var(--risposta); }
  .grande-mail:hover { color: var(--glacier); }
}

/* Pagina trasparenza.html */
.pagina--trasparenza {
  width: 100%;
}
.pagina--trasparenza .pagina__intro {
  max-width: 52rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.bando-scheda {
  background: rgba(17, 18, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  overflow: hidden;
  font-family: "Titillium Web", "Inter", system-ui, sans-serif;
  letter-spacing: normal;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.bando-loghi {
  background: #ffffff;
  padding: clamp(1rem, 2.6vw, 1.75rem) clamp(1rem, 3.2vw, 2.25rem);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.bando-loghi__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1143 / 114;
}
.bando-corpo {
  padding: clamp(1.5rem, 3.8vw, 3rem);
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}
.bando-titolo {
  margin: 0;
  font-family: "Titillium Web", "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #ffffff;
}
.bando-meta {
  display: grid;
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.bando-meta__row {
  display: contents;
}
.bando-meta dt {
  color: var(--glacier);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 1rem 1.25rem 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.bando-meta dd {
  margin: 0;
  color: #f1f5f9;
  font-size: 1rem;
  line-height: 1.55;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.bando-desc h3 {
  margin: 0 0 0.65rem;
  font-family: "Titillium Web", "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--glacier);
}
.bando-desc p {
  color: #e2e8f0;
  font-size: 1.04rem;
  line-height: 1.7;
  max-width: none;
  margin: 0;
}
.bando-nota-ue {
  padding: 1.15rem 1.35rem;
  border-radius: 12px;
  background: rgba(129, 196, 251, 0.08);
  border: 1px solid rgba(129, 196, 251, 0.28);
  color: #eef5ff;
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0;
}
.bando-back {
  margin: 2rem 0 0;
}
@media (max-width: 719px) {
  .bando-meta {
    grid-template-columns: minmax(0, 1fr);
  }
  .bando-meta__row {
    display: grid;
    gap: 0.25rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .bando-meta dt,
  .bando-meta dd {
    padding: 0;
    border-bottom: none;
  }
}

/* ── Servizi: lo stesso nastro, specchiato. Lo sciame forma il servizio a sinistra, la scheda sta a destra ── */
.servizi { padding-top: clamp(7rem, 16vh, 11rem); }
.servizi__intro { margin-left: auto; max-width: 36rem; }
.servizi__intro .titolo { max-width: 16ch; }
.pezzo--servizio { justify-content: flex-end; }
html:not(.tre-d) .pezzo--servizio { justify-content: flex-start; }
.pezzo__cosa a { color: var(--bianco); text-decoration: none; background: linear-gradient(var(--glacier), var(--glacier)) 0 100% / 100% 1px no-repeat; transition: background-size .3s var(--risposta), color .2s; }
@media (hover: hover) and (pointer: fine) {
  .pezzo__cosa a:hover { color: var(--glacier); }
}
.pezzo__tag {
  margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line);
  font: 500 .72rem/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgb(238 245 255 / .55);
}
.pezzo--servizio .visita-btn { min-width: 0; }

/* Contatti: il tipo di progetto si sceglie con un tocco */
.scelte { border: 0; margin: 0 0 .35rem; padding: 0; min-width: 0; }
.scelte legend { padding: 0; margin-bottom: .7rem; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); }
.scelte__lista { display: flex; flex-wrap: wrap; gap: .5rem; }
.scelta { position: relative; cursor: pointer; }
.scelta input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.scelta span {
  display: inline-flex; align-items: center; min-height: 40px; padding: .45rem 1rem; border-radius: 999px;
  border: 1px solid rgb(238 245 255 / .22); background: rgb(255 255 255 / .03);
  font: 400 .92rem/1 var(--sans); letter-spacing: -0.01em; color: var(--ice);
  transition: background-color .25s var(--risposta), color .25s var(--risposta), border-color .25s var(--risposta), transform .2s var(--risposta);
}
.scelta input:checked + span { background: var(--ice); border-color: var(--ice); color: var(--nero); }
.scelta input:focus-visible + span { outline: 2px solid var(--glacier); outline-offset: 3px; }
.scelta:active span { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) {
  .scelta:hover input:not(:checked) + span { border-color: rgb(238 245 255 / .5); background: rgb(255 255 255 / .07); }
}
/* velo scuro sotto al modulo: il portale di particelle resta visibile attorno, ma non passa sotto le parole */
.contact__inner::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: 3.5rem -12% -3rem;
  background: radial-gradient(ellipse 58% 54% at 50% 50%, rgb(0 0 0 / .86) 0%, rgb(0 0 0 / .72) 50%, rgb(0 0 0 / .34) 78%, transparent 100%);
}
@media (max-width: 799px) {
  .contact__inner::before { inset: 4.5rem -1.5rem -2rem; background: radial-gradient(ellipse 80% 62% at 50% 50%, rgb(0 0 0 / .9) 0%, rgb(0 0 0 / .84) 60%, rgb(0 0 0 / .5) 85%, transparent 100%); }
  /* servizi: la scheda scende un po' per lasciare spazio alla forma sopra */
  .pezzo.pezzo--servizio { padding-bottom: 2rem; }
  .pezzo--servizio .pezzo__tag { margin-top: .8rem; padding-top: .7rem; }
}
html:not(.tre-d) .contact__inner::before { display: none; }
.contact__dove { margin-top: 2rem; font-style: normal; font-size: .92rem; line-height: 1.55; color: var(--grey); }
.contact__dove p { margin: 0 0 .35rem; }
.contact__dove b { color: var(--ice); font-weight: 500; }
.contact__recapiti a { color: var(--ice); text-decoration: none; border-bottom: 1px solid rgb(129 196 251 / .5); transition: color .2s, border-color .2s; }
.contact__recapiti span { margin: 0 .5rem; color: var(--grey-dim); }
@media (hover: hover) and (pointer: fine) {
  .contact__recapiti a:hover { color: var(--glacier); border-color: var(--glacier); }
}

/* Domande frequenti: righe sottili, come una nota a piè di pagina che si apre */
.domande { position: relative; z-index: 2; background: var(--nero); padding: clamp(3rem, 8vh, 6rem) var(--margine) clamp(1rem, 4vh, 3rem); letter-spacing: normal; }
.domande__inner { max-width: 52rem; margin: 0 auto; }
.domande__head { margin-bottom: clamp(1.75rem, 4vh, 2.75rem); }
.domande__head .titolo { max-width: none; letter-spacing: -0.04em; }
.domanda { border-top: 1px solid var(--line); }
.domanda:last-child { border-bottom: 1px solid var(--line); }
.domanda summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; font: 500 clamp(1.08rem, 1.9vw, 1.42rem)/1.3 var(--sans); letter-spacing: -0.03em; color: var(--ice);
  transition: color .25s var(--risposta);
}
.domanda summary::-webkit-details-marker { display: none; }
.domanda summary::after {
  content: ""; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  border: 1px solid rgb(238 245 255 / .22);
  background:
    linear-gradient(currentColor, currentColor) center / 11px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 11px no-repeat;
  transition: transform .45s var(--entrata), background-color .3s, color .3s, border-color .3s;
}
.domanda[open] summary::after { transform: rotate(135deg); background-color: var(--ice); color: var(--nero); border-color: var(--ice); }
.domanda summary:focus-visible { outline: 2px solid var(--glacier); outline-offset: 4px; border-radius: 6px; }
@media (hover: hover) and (pointer: fine) {
  .domanda summary:hover { color: var(--glacier); }
}
.domanda p { margin: 0; padding: 0 3.5rem 1.6rem 0; max-width: 44rem; color: var(--grey); font-size: 1.02rem; line-height: 1.6; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .domanda::details-content { block-size: 0; overflow: clip; transition: block-size .5s var(--entrata), content-visibility .5s allow-discrete; }
  .domanda[open]::details-content { block-size: auto; }
}
@media (max-width: 799px) {
  .servizi { padding-top: 6rem; }
  .domanda p { padding-right: 0; }
  .scelta span { min-height: 44px; }
}

/* Telefono */
@media (max-width: 799px) {
  .apertura { grid-template-columns: 1fr; min-height: auto; padding-top: 5.5rem; gap: 0; }
  .scaffale { order: -1; gap: .5rem .8rem; width: 100%; margin-bottom: 1.5rem; height: 38svh; align-content: center; }
  .scaffale svg { height: auto; }
  .motto { font-size: clamp(2.35rem, 10.5vw, 3.6rem); }
  .apertura__chi { font-size: 1.05rem; }
  .apertura__scorri { display: none; }
  .nastro { padding-top: 6rem; }
  .pezzo { min-height: 88svh; flex-direction: column; justify-content: flex-end; align-items: stretch; padding-bottom: 5rem; gap: 1rem; }
  .pezzo__oggetto { width: 9rem; }
  .pezzo__scheda { padding: 1.45rem 1.35rem 1.35rem; border-radius: 20px; }
  .pezzo__cosa { font-size: 1.05rem; }
  .anello__fisso { padding-top: 5rem; }
  .gioco__fisso {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(7rem, 1fr) auto;
    align-items: center;
    align-content: stretch;
    gap: 0.75rem;
    padding: 4.75rem var(--margine) 1.5rem;
  }
  .tre-d .gioco__fisso {
    padding-top: 4.75rem;
    padding-bottom: 1.5rem;
  }
  .gioco__arena,
  .tre-d .gioco__arena {
    order: -1;
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    min-height: clamp(7rem, 18svh, 13rem);
    aspect-ratio: auto;
    align-self: stretch;
  }
  .gioco__badge { font-size: .75rem; padding: .28rem .72rem; margin-bottom: .5rem; }
  .gioco__logo { width: clamp(7.25rem, 32vw, 10rem); margin-bottom: .45rem; }
  .gioco__titolo { font-size: clamp(1.85rem, min(8.6vw, 4.6svh), 2.85rem); -webkit-text-stroke: 5px var(--sr-ink); margin-bottom: .55rem; }
  .gioco__desc { font-size: clamp(0.88rem, 3.6vw, 0.98rem); line-height: 1.42; margin-bottom: .75rem; }
  .gioco__dati { margin: .75rem 0; }
  .gioco__dati li { padding: .48rem .58rem; border-radius: 12px; }
  .gioco__cta { font-size: .98rem; padding: .72rem 1.2rem; }
  .gioco__nota { display: none; }
  .contatti-griglia { grid-template-columns: 1fr; }

  .cookie-floating-btn {
    left: auto;
    right: 1.25rem;
    bottom: max(1.25rem, env(safe-area-inset-bottom, 1.25rem));
    width: 2.5rem;
    height: 2.5rem;
  }
  .cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom, 1rem));
    width: auto;
    max-width: none;
  }

  .contact {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
    box-sizing: border-box;
    padding: 12vh var(--gutter) max(4.5rem, env(safe-area-inset-bottom, 4.5rem));
  }
  .contact__inner {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .contact__title {
    font-size: clamp(2.3rem, 8.5vw, 3.8rem);
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .contact__lede {
    margin: 1rem 0 2rem;
    overflow-wrap: break-word;
  }
  .form__row {
    grid-template-columns: 1fr;
  }
  .field input,
  .field textarea {
    font-size: 16px;
    padding: 0.85rem 0;
    -webkit-appearance: none;
    border-radius: 0;
  }
  .form__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
  .form__foot .pill {
    width: 100%;
    justify-content: center;
  }
  .form__note {
    text-align: center;
  }
}

@media (hover: none) and (pointer: coarse) {
  .pill:active {
    transform: scale(0.97);
    background: rgba(238, 245, 255, 0.16);
    transition-duration: 0.1s;
  }
  .nav__contact-btn:active {
    transform: scale(0.96);
  }
}

/* Forced colors support for glass surfaces, arcade tiles, form controls, and active nav indicators */
@media (forced-colors: active) {
  .nav-bar,
  .nav__link--active,
  .nav__contact-btn,
  .pill,
  .gioco__cta,
  .gioco__dati li,
  .cookie-banner,
  .cookie-btn,
  .cookie-toggle__slider,
  .privacy-modal-back-btn,
  .bando-scheda,
  .bando-nota-ue,
  .visita-btn,
  .visita-btn__icona,
  .pezzo__scheda,
  .scelta span,
  .domanda {
    border: 2px solid CanvasText;
  }
  .field input,
  .field textarea {
    border-bottom: 2px solid CanvasText;
  }
  .nav__link--active,
  .nav__link[aria-current="true"],
  .nav__link[aria-current="page"] {
    outline: 2px solid Highlight;
    outline-offset: 2px;
  }
  .gioco__cta {
    background: ButtonFace;
    color: ButtonText;
    border-color: ButtonText;
  }
}

@media (max-width: 640px) {
  .depth-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    contain: paint layout;
    box-sizing: border-box;
  }
  .manifesto__line {
    font-size: clamp(1.35rem, 5vw, 1.8rem);
    line-height: 1.35;
    width: min(calc(100% - 2 * var(--gutter)), 22em);
    max-width: calc(100vw - 2 * var(--gutter));
    box-sizing: border-box;
    overflow-wrap: break-word;
  }
  .manifesto__line--last {
    font-size: clamp(1.8rem, 6.8vw, 2.5rem);
    overflow-wrap: break-word;
  }
}

/* Reduced motion: calm vertical Manifesto */
.reduced-motion .depth-track {
  height: auto;
}
.reduced-motion .depth-stage {
  position: relative;
  height: auto;
  display: block;
  padding: 14vh var(--gutter) 10vh;
}
.reduced-motion .manifesto__line {
  position: static;
  margin: 0 auto;
  padding: 8vh 0;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  pointer-events: auto;
}
.reduced-motion .manifesto__progress {
  display: none;
}

/* Entrate: solo con movimento consentito e con gli script */
@media (prefers-reduced-motion: no-preference) {
  .js-moto .home .nav-bar,
  .js-moto .motto .riga,
  .js-moto .apertura__chi,
  .js-moto .apertura .azioni,
  .js-moto .apertura__scorri { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
