/* ==========================================================================
   LUCS EVENTI · foglio di stile del sito
   Step 5 (22/10/2026): home fedele al design del kit (01-design/homepage-oro.png),
   pezzi del kit inline (icone, onde, rete dei servizi) così ereditano i colori.
   ========================================================================== */

/* --- Caratteri, serviti dal sito (nessuna chiamata a terzi) -------------- */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(/assets/fonts/figtree-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(/assets/fonts/figtree-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/montserrat-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/montserrat-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- COLORI: un unico punto di controllo (NOTA del kit, § 3) -------------
   Palette ORO, predefinita: i valori del kit, misurati sul design.
   Nessun colore scritto a mano nei componenti: solo var(--lucs-*). */
:root,
[data-palette="oro"] {
  --lucs-bg: #080B10;
  --lucs-surface: #0D141B;
  --lucs-accent: #C7A15B;
  --lucs-accent-soft: #E6D0A1;
  --lucs-text: #F6F3EC;
  --lucs-muted: #BEC5CD;
  --lucs-button-bg: #C7A15B;
  --lucs-button-text: #080B10;
  --lucs-logo: #FFFFFF;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* Le altre palette del selettore (Design/SELETTORE-COLORI.md): il selettore arriva allo step 5-bis.
   «blu» è la seconda palette del kit; viola, rosso e argento sono ricavate dalle foto del cliente (AA). */
[data-palette="blu"] {
  --lucs-bg: #06101F;
  --lucs-surface: #0A1729;
  --lucs-accent: #277BFF;
  --lucs-accent-soft: #64C8FF;
  --lucs-text: #F4F7FC;
  --lucs-muted: #BECADA;
  --lucs-button-bg: #1460D8;
  --lucs-button-text: #FFFFFF;
  --lucs-logo: #FFFFFF;
}
[data-palette="viola"] {
  --lucs-bg: #0B0812;
  --lucs-surface: #15101F;
  --lucs-accent: #A98BFF;
  --lucs-accent-soft: #D6C8FF;
  --lucs-text: #F6F3FB;
  --lucs-muted: #C6BFD3;
  --lucs-button-bg: #6E44E0;
  --lucs-button-text: #FFFFFF;
  --lucs-logo: #FFFFFF;
}
[data-palette="rosso"] {
  --lucs-bg: #0E0809;
  --lucs-surface: #1A0F11;
  --lucs-accent: #F0675A;
  --lucs-accent-soft: #FFC2B6;
  --lucs-text: #FBF3F1;
  --lucs-muted: #D3C3C0;
  --lucs-button-bg: #C8352B;
  --lucs-button-text: #FFFFFF;
  --lucs-logo: #FFFFFF;
}
[data-palette="argento"] {
  --lucs-bg: #0A0B0D;
  --lucs-surface: #15181C;
  --lucs-accent: #C3CCD6;
  --lucs-accent-soft: #EDF1F5;
  --lucs-text: #F7F8FA;
  --lucs-muted: #B5BCC5;
  --lucs-button-bg: #E3E8EE;
  --lucs-button-text: #0A0B0D;
  --lucs-logo: #FFFFFF;
}

/* Gli altri valori, ricavati dai colori qui sopra (seguono la palette) */
html {
  --linea: color-mix(in srgb, var(--lucs-accent) 32%, transparent);
  --linea-forte: color-mix(in srgb, var(--lucs-accent) 55%, transparent);
  --velo: color-mix(in srgb, var(--lucs-bg) 96%, transparent);

  --font-titoli: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-testo: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --larghezza: 1296px;
  --raggio-pulsante: 999px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--lucs-bg);
}
html.menu-aperto { overflow: hidden; }

body {
  margin: 0;
  background: var(--lucs-bg);
  color: var(--lucs-text);
  font-family: var(--font-testo);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, figcaption { text-wrap: pretty; }
.valore__intro, .punto__testo, .occasione__testo, .servizio__testo, .fase__testo,
.squadra__intro, .sottotitolo, .piede__legale p, .occhiello--sottile { text-wrap: balance; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--lucs-accent-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.salta {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--lucs-button-bg);
  color: var(--lucs-button-text);
  border-radius: 8px;
  font-weight: 600;
}
.salta:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--larghezza) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.oro { color: var(--lucs-accent); }

/* --- Tipografia comune ---------------------------------------------------- */
.titolo {
  font-family: var(--font-testo);
  font-weight: 400;
  font-size: clamp(34px, 3.9vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--lucs-text);
  text-wrap: balance;
}

.sottotitolo {
  margin-top: 10px;
  font-size: clamp(18px, 1.6vw, 23px);
  color: var(--lucs-muted);
  line-height: 1.4;
}

.occhiello {
  font-family: var(--font-titoli);
  font-weight: 700;
  font-size: clamp(13px, 1.1vw, 16px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lucs-accent);
}
.occhiello--sottile {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.16em;
}

.icona {
  width: 56px;
  height: 56px;
  flex: none;
}
.icona--grande { width: 84px; height: 84px; }

/* --- Pulsanti (07-ui: pieno e outline) ------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 62px;
  padding: 0 28px 0 29px;
  border-radius: var(--raggio-pulsante);
  font-family: var(--font-testo);
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.005em;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn__freccia { width: 23px; height: 23px; flex: none; transition: transform 200ms var(--ease-out); }
.btn--pieno {
  background: var(--lucs-button-bg);
  color: var(--lucs-button-text);
}
.btn--outline {
  border: 1.5px solid var(--lucs-accent);
  color: var(--lucs-text);
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn--pieno:hover { background: var(--lucs-accent-soft); }
  .btn--outline:hover { background: color-mix(in srgb, var(--lucs-accent) 14%, transparent); }
  .btn:hover .btn__freccia { transform: translate(2px, -2px); }
}

/* --- Testata --------------------------------------------------------------- */
.testata {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  --stringi: 20px;
  transition: background-color 240ms ease, box-shadow 240ms ease, transform 320ms var(--ease-out);
}
.testata.scrolled { transform: translate3d(0, calc(-1 * var(--stringi)), 0); }
.testata.nascosta {
  transform: translate3d(0, -100%, 0);
  transition: background-color 240ms ease, box-shadow 240ms ease, transform 200ms var(--ease-out);
}
.testata.scrolled,
.testata--piena {
  background: var(--velo);
  box-shadow: 0 1px 0 var(--linea);
}
.testata__in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 104px;
  transition: transform 320ms var(--ease-out);
}
.testata.scrolled .testata__in { transform: translate3d(0, calc(var(--stringi) / 2), 0); }
.testata__logo .logo { transform-origin: left center; transition: transform 320ms var(--ease-out); }
.testata.scrolled .testata__logo .logo { transform: scale(0.86); }
.testata__logo { flex: none; display: block; }
.testata__logo .logo { width: 328px; height: auto; }
.testata__nav { flex: 1; display: flex; justify-content: center; padding-right: 60px; }
.testata__nav ul { display: flex; gap: 62px; }
.testata__nav a {
  position: relative;
  display: inline-block;
  padding: 10px 0;
  font-size: 18px;
  color: var(--lucs-text);
  -webkit-user-select: none;
  user-select: none;
}
.testata__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1px;
  background: var(--lucs-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .testata__nav a:hover::after { transform: scaleX(1); }
}
.testata__cta { min-height: 62px; padding: 0 28px 0 28px; gap: 20px; font-size: 18px; font-weight: 700; }
.testata__cta .btn__freccia { width: 20px; height: 20px; }
.testata__menu { display: none; }

/* Menu da telefono, a tutto schermo */
.menu-telefono {
  position: fixed;
  inset: 0;
  z-index: 40;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--lucs-bg);
  padding: calc(env(safe-area-inset-top, 0px) + 112px) max(var(--gutter), env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 40px) max(var(--gutter), env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 40px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 160ms ease, visibility 0s linear 160ms;
}
.menu-telefono.aperto {
  visibility: visible;
  opacity: 1;
  transition: opacity 260ms var(--ease-out), visibility 0s;
}
.menu-telefono__nav li,
.menu-telefono__cta {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 160ms ease, transform 160ms ease;
}
.menu-telefono.aperto .menu-telefono__nav li,
.menu-telefono.aperto .menu-telefono__cta {
  opacity: 1;
  transform: none;
  transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-out);
}
.menu-telefono.aperto li:nth-child(1) { transition-delay: 60ms; }
.menu-telefono.aperto li:nth-child(2) { transition-delay: 110ms; }
.menu-telefono.aperto li:nth-child(3) { transition-delay: 160ms; }
.menu-telefono.aperto li:nth-child(4) { transition-delay: 210ms; }
.menu-telefono.aperto li:nth-child(5) { transition-delay: 260ms; }
.menu-telefono.aperto li:nth-child(6) { transition-delay: 310ms; }
.menu-telefono.aperto li:nth-child(7) { transition-delay: 360ms; }
.menu-telefono.aperto li:nth-child(8) { transition-delay: 410ms; }
.menu-telefono.aperto .menu-telefono__cta { transition-delay: 240ms; }
.menu-telefono__nav ul { display: grid; gap: 4px; }
.menu-telefono__nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--linea);
  font-size: 30px;
  font-weight: 400;
  -webkit-user-select: none;
  user-select: none;
}
.menu-telefono__nav a:active { color: var(--lucs-accent); }
.menu-telefono__cta { align-self: flex-start; }

/* --- 01 · Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(640px, 88svh, 860px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--lucs-bg);
}
.hero__foto {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  left: 25%;
  z-index: -2;
}
.hero__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 34% 50%;
}
/* La sfumatura del kit (04-strutture/overlay-hero.svg): stessi punti, in CSS per adattarsi agli schermi */
.hero__velo {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--lucs-bg) 80%, transparent) 0, transparent 22%),
    linear-gradient(90deg,
      var(--lucs-bg) 0,
      color-mix(in srgb, var(--lucs-bg) 98%, transparent) 28%,
      color-mix(in srgb, var(--lucs-bg) 65%, transparent) 40%,
      color-mix(in srgb, var(--lucs-bg) 10%, transparent) 51%,
      transparent 62%),
    linear-gradient(0deg, color-mix(in srgb, var(--lucs-bg) 55%, transparent) 0, transparent 16%);
}
.hero__in {
  position: relative;
  padding-top: 150px;
  padding-bottom: 130px;
}
.hero__titolo {
  margin-top: 24px;
  font-family: var(--font-titoli);
  font-weight: 700;
  font-size: clamp(46px, 5.25vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--lucs-text);
}
.hero__titolo .riga { display: block; }
.contorno {
  margin-top: 0.22em;
  color: var(--lucs-accent);
}
@supports (-webkit-text-stroke: 1px black) {
  .contorno {
    color: transparent;
    -webkit-text-stroke: 2px var(--lucs-accent);
  }
}
.hero__testo {
  margin-top: 26px;
  font-size: clamp(20px, 1.85vw, 27px);
  line-height: 1.3;
  color: var(--lucs-text);
}
.hero__in .btn { margin-top: 22px; min-width: 300px; }

.hero__fondo {
  position: absolute;
  left: 0; bottom: 6px;
  width: 68%;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 74%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 74%, transparent 100%);
}
.onda--hero { width: 100%; height: auto; }

.scopri {
  position: absolute;
  left: max(var(--gutter), env(safe-area-inset-left, 0px));
  bottom: 52px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 6px 4px;
  font-family: var(--font-titoli);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lucs-muted);
  -webkit-user-select: none;
  user-select: none;
}
.scopri__icona { width: 34px; height: 34px; }
.scopri:active { color: var(--lucs-accent); }

/* --- Sezioni ----------------------------------------------------------------- */
.sezione {
  position: relative;
  border-top: 1px solid var(--linea);
}

/* 02 · Valore */
.valore { padding: 26px 0 38px; }
.valore__testa {
  display: grid;
  grid-template-columns: 1fr 480px;
  align-items: start;
  gap: 40px;
}
.valore__intro {
  padding-top: 30px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--lucs-muted);
}

.tre {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.tre > li + li { border-left: 1px solid var(--linea); }

.valore .tre { margin-top: 40px; }
.punto {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 24px 8px;
}
.punto .icona { width: 60px; height: 60px; }
.punto__titolo {
  margin-top: 24px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}
.punto__testo {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--lucs-muted);
}

/* 03 · Occasioni */
.occasioni { padding: 26px 0 40px; overflow: hidden; }
.occasioni__corpo { position: relative; margin-top: 36px; }
.onda--eventi {
  position: absolute;
  left: 0; top: -38px;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.tre--occasioni { position: relative; }
.occasione {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4px 24px 2px;
}
.occasione__titolo {
  margin-top: 30px;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.25;
}
.occasione__testo {
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--lucs-muted);
}

/* 04 · Esperienze */
.esperienze { padding: 26px 0 22px; }
.esperienze__testa {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}
.esperienze__foto {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 922fr 492fr;
  gap: 26px;
}
.esperienze__foto:focus-visible { outline-offset: -2px; }
.scena { min-width: 0; }
.scena__img {
  height: clamp(320px, 35.5vw, 560px);
  overflow: hidden;
  background: var(--lucs-surface);
}
.scena__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scena--larga .scena__img img { object-position: 50% 55%; }
.scena--stretta .scena__img img { object-position: 50% 62%; }
.scena__dida {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 26px 42px 0 var(--gutter);
  font-size: 20px;
  color: var(--lucs-text);
}
.scena__dida::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--linea-forte);
}
.scena--stretta .scena__dida { padding: 26px var(--gutter) 0 0; }

/* 05 · Servizi */
.servizi { padding: 26px 0 30px; }
.servizi__corpo {
  margin-top: 6px;
  display: grid;
  grid-template-columns: minmax(0, 580px) minmax(0, 646px);
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.servizi__rete { margin-left: -40px; margin-top: -10px; margin-bottom: -18px; }
.rete { width: 100%; height: auto; }
.rete text { font-family: var(--font-titoli); font-weight: 700; }
.servizi__lista {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.servizio {
  display: flex;
  gap: 22px;
  padding: 20px 20px 22px 4px;
}
.servizio:nth-child(even) { border-left: 1px solid var(--linea); padding-left: 30px; }
.servizio:nth-child(n+3) { border-top: 1px solid var(--linea); }
.servizio .icona { width: 52px; height: 52px; margin-top: 2px; }
.servizio__titolo { font-size: 22px; font-weight: 500; line-height: 1.3; }
.servizio__testo { margin-top: 10px; font-size: 18px; line-height: 1.5; color: var(--lucs-muted); }

/* 06 · Percorso */
.percorso { padding: 26px 0 28px; }
.fasi {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  counter-reset: fase;
}
.fase { position: relative; }
.fase__segno { position: relative; display: flex; align-items: center; }
.fase__num {
  display: grid;
  place-items: center;
  width: 80px; height: 80px;
  flex: none;
  border: 2px solid var(--lucs-accent);
  border-radius: 50%;
  font-size: 28px;
  font-weight: 400;
  color: var(--lucs-accent);
}
.fase__linea {
  position: relative;
  flex: 1;
  height: 2px;
  margin-left: 4px;
  background: color-mix(in srgb, var(--lucs-accent) 70%, transparent);
}
.fase__segno::after {
  content: "";
  position: absolute;
  left: 102px; top: 50%;
  width: 10px; height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--lucs-accent-soft);
}
.fase:not(:last-child) .fase__linea { margin-right: 0; }
.fase:last-child .fase__linea { margin-right: 38px; }
.fase__titolo,
.fase__testo { padding-left: 105px; padding-right: 20px; }
.fase__titolo { margin-top: 10px; font-size: 19px; font-weight: 700; line-height: 1.35; }
.fase__testo { margin-top: 8px; font-size: 17px; line-height: 1.6; color: var(--lucs-muted); }

/* 07 · Squadra */
.squadra {
  display: grid;
  grid-template-columns: 570fr 870fr;
  min-height: 410px;
}
.squadra__testo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 40px 40px max(var(--gutter), env(safe-area-inset-left, 0px));
  background: var(--lucs-bg);
}
.squadra__intro {
  margin-top: 26px;
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.45;
  color: var(--lucs-muted);
}
.squadra__luogo {
  margin-top: 46px;
  padding-top: 26px;
  position: relative;
  font-size: 17px;
  color: var(--lucs-accent);
}
.squadra__luogo::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 203px; height: 2px;
  background: var(--lucs-accent);
}
.squadra__foto { position: relative; min-height: 100%; overflow: hidden; }
.squadra__foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
  transform: scale(1.09);
}

/* 08 · Contatti */
.contatti {
  padding: 66px 0 50px;
  overflow: hidden;
  isolation: isolate;
}
.onda--finale {
  position: absolute;
  z-index: -1;
  right: 0;
  top: 40px;
  width: min(66%, 950px);
  height: auto;
  pointer-events: none;
}
.contatti__titolo {
  font-family: var(--font-titoli);
  font-weight: 700;
  font-size: clamp(42px, 4.6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.contatti__titolo .riga { display: block; }
.contatti__testo {
  margin-top: 22px;
  font-size: clamp(19px, 1.7vw, 24px);
  color: var(--lucs-muted);
}
.contatti__in .btn { margin-top: 42px; min-width: 357px; }

/* --- 09 · Piede ----------------------------------------------------------- */
.piede { padding: 0 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
.piede__riga {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 44px;
  border-top: 1px solid var(--linea-forte);
}
.piede__logo .logo { width: 328px; height: auto; }
.piede__link {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 70px;
  font-size: 18px;
  color: var(--lucs-muted);
}
.piede__link a,
.piede__link span { display: inline-block; padding: 6px 0; }
.piede__link a { transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .piede__link a:hover,
  .piede__legale a:hover { color: var(--lucs-accent); }
}
.piede__link a:active,
.piede__legale a:active { color: var(--lucs-accent); }
.piede__legale {
  margin-top: 36px;
  display: grid;
  gap: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--lucs-muted) 80%, transparent);
}
.piede__legale a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--linea-forte); }
.credit a { text-decoration: none; color: var(--lucs-muted); }

/* --- Pagine legali e 404 ------------------------------------------------------ */
.wrap--testo { max-width: calc(820px + 2 * var(--gutter)); }
.legale-pagina { padding: 160px 0 80px; }
.legale h1 {
  font-size: clamp(34px, 3.9vw, 52px);
  font-weight: 400;
  line-height: 1.15;
}
.legale h1 + p { margin-top: 10px; color: var(--lucs-muted); font-size: 15px; }
.legale h2 {
  margin-top: 44px;
  font-size: 24px;
  font-weight: 600;
  color: var(--lucs-accent);
}
.legale p,
.legale ul { margin-top: 14px; font-size: 17px; line-height: 1.7; color: var(--lucs-muted); }
.legale ul { list-style: disc; padding-left: 22px; }
.legale li + li { margin-top: 6px; }
.legale a { color: var(--lucs-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--linea-forte); }
.legale table {
  margin-top: 18px;
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  color: var(--lucs-muted);
}
.legale th,
.legale td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--linea); }
.legale th { color: var(--lucs-text); font-weight: 600; }
.legale strong { color: var(--lucs-text); }

.errore {
  position: relative;
  min-height: 80svh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.errore .onda--finale { top: auto; bottom: 2%; width: min(52%, 760px); opacity: 0.8; }
.errore__testo { margin-top: 16px; font-size: 20px; color: var(--lucs-muted); }
.errore .titolo { margin-top: 14px; }
.errore__azioni { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.link-wa { color: var(--lucs-accent); text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================================
   Schermi medi (tablet e computer piccoli)
   ========================================================================== */
@media (max-width: 1199px) {
  .testata__logo .logo { width: 260px; }
  .testata__nav ul { gap: 40px; }
  .testata__nav { padding-right: 0; }
  .valore__testa { grid-template-columns: 1fr 380px; }
  .servizi__rete { margin-left: 0; }
  .servizi__corpo { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 28px; }
  .servizio { gap: 16px; padding-right: 12px; }
  .servizio:nth-child(even) { padding-left: 20px; }
  .fase__titolo,
  .fase__testo { padding-left: 0; padding-right: 24px; }
  .fase__titolo { margin-top: 18px; }
  .piede__link { gap: 8px 40px; }

  /* gli a capo del design valgono solo sugli schermi grandi */
  .valore__intro br,
  .punto__testo br,
  .occasione__testo br,
  .servizio__testo br,
  .fase__testo br,
  .squadra__intro br { display: none; }
}

@media (max-width: 1023px) {
  .testata__nav { display: none; }
  .testata__in { justify-content: space-between; }
  .testata__cta { margin-left: auto; }
  .testata__menu {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-right: -8px;
    border-radius: 50%;
    -webkit-user-select: none;
    user-select: none;
  }
  .testata__menu:active { background: color-mix(in srgb, var(--lucs-accent) 16%, transparent); }
  .testata__righe { display: grid; gap: 7px; width: 26px; }
  .testata__righe i {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--lucs-text);
    transition: transform 240ms var(--ease-out);
  }
  html.menu-aperto .testata__righe i:first-child { transform: translateY(4.5px) rotate(45deg); }
  html.menu-aperto .testata__righe i:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  html.menu-aperto .testata { background: var(--lucs-bg); box-shadow: 0 1px 0 var(--linea); }

  .valore__testa { grid-template-columns: 1fr; gap: 0; }
  .valore__intro { padding-top: 16px; max-width: 34em; }
  .servizi__corpo { grid-template-columns: 1fr; justify-items: center; }
  .servizi__rete { width: min(100%, 520px); }
  .servizi__lista { width: 100%; }
  .squadra { grid-template-columns: 1fr 1.2fr; }
  .esperienze__testa { flex-direction: column; align-items: flex-start; gap: 10px; }
  .piede__logo .logo { width: 220px; }
  .piede__link { gap: 8px 28px; }

  /* percorso verticale: cerchio a sinistra, testo a destra */
  .fasi { grid-template-columns: 1fr; margin-top: 30px; max-width: 620px; }
  .fase {
    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: 20px;
    padding-bottom: 30px;
  }
  .fase:last-child { padding-bottom: 0; }
  .fase__segno { grid-row: 1 / span 2; flex-direction: column; align-self: stretch; }
  .fase__num { width: 64px; height: 64px; font-size: 23px; }
  .fase__linea,
  .fase:last-child .fase__linea {
    width: 2px;
    height: auto;
    flex: 1;
    margin: 4px 0 -30px;
  }
  .fase:last-child .fase__linea { display: none; }
  .fase__segno::after { left: 32px; top: 82px; margin: 0 0 0 -5px; }
  .fase:last-child .fase__segno::after { display: none; }
  .fase__titolo,
  .fase__testo { padding: 0; }
  .fase__titolo { margin-top: 10px; font-size: 19px; }
  .fase__testo { font-size: 16.5px; }
}

/* ==========================================================================
   Telefono (base da telefono, 09 § 5): colonne in righe, percorso verticale
   ========================================================================== */
@media (max-width: 767px) {
  body { font-size: 17px; }
  html { scroll-padding-top: 76px; }

  .testata__in { height: 76px; gap: 12px; }
  .testata { --stringi: 8px; }
  .testata__logo .logo { width: 150px; }
  .btn { min-height: 56px; font-size: 18px; gap: 22px; padding: 0 24px 0 26px; }
  .btn__freccia { width: 20px; height: 20px; }
  .btn.testata__cta { min-height: 44px; padding: 0 14px 0 16px; gap: 10px; font-size: 15px; }
  .btn.testata__cta .btn__freccia { width: 14px; height: 14px; }
  .testata__menu { margin-right: -6px; }

  /* Hero a tutto schermo: la foto dietro, il testo in basso sulla sfumatura */
  .hero {
    min-height: 100svh;
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: minmax(300px, 1fr) auto;
    justify-content: stretch;
  }
  .hero__foto {
    position: relative;
    inset: auto;
    grid-row: 1;
    z-index: -2;
  }
  .hero__foto img { position: absolute; inset: 0; object-position: 36% 40%; }
  .hero__foto::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--lucs-bg) 75%, transparent) 0, transparent 22%),
      linear-gradient(0deg,
        var(--lucs-bg) 0,
        color-mix(in srgb, var(--lucs-bg) 88%, transparent) 10%,
        color-mix(in srgb, var(--lucs-bg) 35%, transparent) 24%,
        transparent 36%);
  }
  .hero__velo { display: none; }
  .hero__in { grid-row: 2; margin-top: -44px; padding-top: 0; padding-bottom: 108px; }
  .hero__titolo { margin-top: 16px; font-size: clamp(40px, 12.4vw, 60px); }
  .contorno { margin-top: 0.16em; }
  @supports (-webkit-text-stroke: 1px black) {
    .contorno { -webkit-text-stroke-width: 1.5px; }
  }
  .hero__testo { margin-top: 18px; font-size: 20px; }
  .hero__in .btn { margin-top: 24px; min-width: 0; }
  .hero__fondo { width: 100%; bottom: 8px; }
  .onda--hero { width: 190%; max-width: none; }
  .scopri { bottom: 30px; gap: 12px; }
  .scopri__icona { width: 28px; height: 28px; }

  .titolo { font-size: clamp(30px, 8.6vw, 38px); }

  .valore { padding: 44px 0 40px; }
  .valore .tre { margin-top: 30px; }
  .tre { grid-template-columns: 1fr; }
  .tre > li + li { border-left: 0; border-top: 1px solid var(--linea); }

  /* le colonne diventano righe: icona a sinistra, testo a destra */
  .punto,
  .occasione {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 20px;
    align-items: start;
    text-align: left;
    padding: 22px 0;
  }
  .punto .icona,
  .occasione .icona { grid-row: 1 / span 2; width: 52px; height: 52px; }
  .punto__titolo,
  .occasione__titolo { margin-top: 0; font-size: 20px; }
  .punto__testo,
  .occasione__testo { margin-top: 4px; font-size: 16.5px; }
  .punto__testo br,
  .occasione__testo br { display: none; }

  .occasioni { padding: 44px 0 36px; }
  .occasioni__corpo { margin-top: 26px; }
  .onda--eventi { top: -40px; width: 230%; max-width: none; left: -65%; opacity: 0.8; }
  .occasione__titolo { font-weight: 500; }

  .esperienze { padding: 44px 0 36px; }
  .esperienze__testa { flex-direction: column; gap: 12px; }
  .occhiello--sottile { font-size: 12px; }
  .esperienze__foto {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 26px;
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  }
  .scena__img { height: auto; aspect-ratio: 3 / 2; border-radius: 4px; }
  .scena--stretta .scena__img { aspect-ratio: 4 / 5; }
  .scena--larga .scena__img img { object-position: 50% 50%; }
  .scena--stretta .scena__img img { object-position: 50% 55%; }
  .scena__dida,
  .scena--stretta .scena__dida { padding: 14px 0 0; gap: 18px; font-size: 17px; }

  .servizi { padding: 44px 0 48px; }
  .servizi__corpo { margin-top: 18px; gap: 18px; }
  .servizi__rete { width: min(100%, 360px); }
  .servizi__lista { grid-template-columns: 1fr 1fr; }
  .servizio { flex-direction: column; gap: 12px; padding: 22px 10px 22px 0; }
  .servizio:nth-child(even) { padding-left: 16px; }
  .servizio .icona { width: 44px; height: 44px; }
  .servizio__titolo { font-size: 18px; }
  .servizio__testo { margin-top: 6px; font-size: 15.5px; }

  .percorso { padding: 44px 0 44px; }

  .squadra { grid-template-columns: 1fr; min-height: 0; }
  .squadra__testo { padding: 44px max(var(--gutter), env(safe-area-inset-right, 0px)) 36px max(var(--gutter), env(safe-area-inset-left, 0px)); }
  .squadra__intro { margin-top: 18px; }
  .squadra__luogo { margin-top: 30px; padding-top: 20px; font-size: 16px; }
  .squadra__foto { min-height: 0; }
  .squadra__foto img { position: static; height: auto; aspect-ratio: 1 / 1; object-position: 48% 60%; transform: none; }

  .contatti { padding: 52px 0 150px; }
  .onda--finale { width: 120%; right: -10%; top: auto; bottom: -12px; }
  .contatti__titolo { font-size: clamp(36px, 10.6vw, 52px); }
  .contatti__in .btn { margin-top: 30px; min-width: 0; }

  .piede__riga { flex-direction: column; align-items: flex-start; gap: 22px; padding-top: 36px; }
  .piede__logo .logo { width: 220px; }
  .piede__link { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 2px 40px; font-size: 17px; }
  .piede__legale { margin-top: 26px; font-size: 13.5px; }

  .legale-pagina { padding: 116px 0 56px; }
  .legale table { display: block; overflow-x: auto; }
}

@media (max-width: 379px) {
  .testata__cta { display: none; }
  .testata__logo .logo { width: 140px; }
  .occhiello--sottile { font-size: 11px; letter-spacing: 0.1em; }
  /* servizi in righe, come i punti di valore */
  .servizi__lista { grid-template-columns: 1fr; }
  .servizio,
  .servizio:nth-child(even) { flex-direction: row; gap: 18px; padding: 18px 0; border-left: 0; }
  .servizio:nth-child(n+2) { border-top: 1px solid var(--linea); }
  .servizio__testo br { display: none; }
}



/* ==========================================================================
   STEP 6 · IL COPY NELLA FORMA DEL DESIGN (09 § 0-ter)
   Dieci sezioni del copy con le forme del kit: hero, rete dei servizi, riquadri con
   didascalia, colonne con le linee dorate, percorso a fasi, team, onda finale.
   ========================================================================== */

/* --- Testata: le otto voci della mappa ------------------------------------- */
.testata__logo .logo { width: 250px; }
.testata__nav { padding-right: 0; }
.testata__nav ul { gap: 20px; }
.testata__nav a { font-size: 15.5px; white-space: nowrap; }
.testata__nav a[aria-current="page"] { color: var(--lucs-accent); }
.testata__cta { min-height: 52px; padding: 0 22px; gap: 14px; font-size: 16px; }
.menu-telefono__nav a[aria-current="page"] { color: var(--lucs-accent); }
.menu-telefono__nav a { font-size: 26px; padding: 11px 0; }

/* --- Pulsanti in fila, e i rimandi alle pagine ----------------------------- */
.azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.sezione__azione { margin-top: 40px; }
.link-oro {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--lucs-accent);
  font-size: 18px;
  font-weight: 600;
  -webkit-user-select: none;
  user-select: none;
}
.link-oro__freccia { width: 20px; height: 20px; transition: transform 200ms var(--ease-out); }
.link-oro:active { opacity: 0.7; }
@media (hover: hover) and (pointer: fine) {
  .link-oro:hover .link-oro__freccia { transform: translate(2px, -2px); }
}

/* --- 1 · Hero: il video al posto della foto, il titolo del copy in tre righe ---- */
.hero__foto img,
.hero__foto video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  display: block;
}
.video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--lucs-surface); }
.hero__in { padding-top: 132px; padding-bottom: 120px; max-width: calc(760px + 2 * var(--gutter)); margin-left: 0; }
.hero__titolo { margin-top: 0; font-size: clamp(30px, 3.75vw, 56px); line-height: 1.06; }
.hero__testo { margin-top: 24px; max-width: 30ch; font-size: clamp(19px, 1.6vw, 23px); }
.hero__nota {
  margin-top: 16px;
  font-family: var(--font-titoli);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--lucs-accent);
}
.hero__in .azioni { margin-top: 26px; }
.hero__in .btn { margin-top: 0; min-width: 0; }
.hero__velo {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--lucs-bg) 80%, transparent) 0, transparent 22%),
    linear-gradient(90deg,
      var(--lucs-bg) 0,
      color-mix(in srgb, var(--lucs-bg) 98%, transparent) 30%,
      color-mix(in srgb, var(--lucs-bg) 70%, transparent) 44%,
      color-mix(in srgb, var(--lucs-bg) 14%, transparent) 56%,
      transparent 66%),
    linear-gradient(0deg, color-mix(in srgb, var(--lucs-bg) 55%, transparent) 0, transparent 16%);
}

/* --- 2 · Cosa facciamo: la rete e le sei voci ------------------------------- */
.servizi__destra { min-width: 0; }
.servizi__destra .sezione__azione { margin-top: 30px; padding-left: 4px; }

/* --- 3 · Effetti speciali: quattro riquadri con didascalia ----------------- */
.esperienze { padding: 26px 0 50px; }
.esperienze__testa { display: block; }
.esperienze__testa .titolo { max-width: 22ch; }
.effetti {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.effetti .scena__img { height: auto; aspect-ratio: 4 / 5; }
.effetti .scena__dida,
.effetti .scena--stretta .scena__dida {
  display: block;
  padding: 18px 0 0;
  border-top: 0;
  font-size: 18px;
  line-height: 1.45;
}
.effetti .scena__dida::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 14px;
  background: var(--linea-forte);
}
.effetti .scena__dida::after { content: none; }

/* --- 4 · Le nostre feste: una fila di sei, la recensione ------------------- */
.feste { padding: 26px 0 54px; }
.feste__testa { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.feste__voto {
  text-wrap: balance;
  font-family: var(--font-titoli);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lucs-accent);
}
.feste__fila {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.festa { overflow: hidden; aspect-ratio: 3 / 4; background: var(--lucs-surface); border-radius: 2px; }
.festa img,
.festa video { width: 100%; height: 100%; object-fit: cover; transition: transform 280ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .festa:hover img,
  .festa:hover video { transform: scale(1.04); }
}
.feste__piede {
  margin-top: 44px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
  flex-wrap: wrap;
}
.feste__piede .sezione__azione { margin-top: 0; }
.citazione { margin: 0; max-width: 760px; }
.citazione__testo {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.25;
  font-weight: 400;
  color: var(--lucs-text);
}
.citazione__fonte { margin-top: 14px; font-size: 16px; color: var(--lucs-muted); }
.citazione__fonte a { color: var(--lucs-accent); text-decoration: underline; text-underline-offset: 3px; }

/* --- 5 · I pacchetti: le colonne con le linee dorate (forma delle occasioni) --- */
.pacchetti { padding: 26px 0 50px; overflow: hidden; }
.pacchetti__corpo { position: relative; margin-top: 30px; }
.pacchetti .onda--eventi { top: 40px; opacity: 0.8; }
.pacchetti__lista { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 -24px; }
.pacchetto { padding: 0 24px; }
.pacchetto + .pacchetto { border-left: 1px solid var(--linea); }
.pacchetto__foto { overflow: hidden; aspect-ratio: 4 / 3; background: var(--lucs-surface); }
.pacchetto__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 280ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .pacchetto:hover .pacchetto__foto img { transform: scale(1.04); }
}
.pacchetto__titolo { margin-top: 22px; font-size: 26px; font-weight: 400; line-height: 1.25; }
.pacchetto__testo { margin-top: 10px; font-size: 17px; line-height: 1.55; color: var(--lucs-muted); }

/* --- 6 · Come funziona: quattro fasi ---------------------------------------- */
.percorso { padding: 26px 0 50px; }
.fasi--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 34px; }
.fasi--4 .fase__testo { padding-left: 0; padding-right: 26px; margin-top: 22px; font-size: 18px; color: var(--lucs-text); line-height: 1.55; }
html.js .fasi.in .fase:nth-child(4) .fase__num { transition-delay: 1350ms; }
html.js .fasi.in .fase:nth-child(4) .fase__linea { transition-delay: 1500ms; }
html.js .fasi.in .fase:nth-child(4) .fase__segno::after { transition-delay: 1800ms; }
html.js .fasi.in .fase:nth-child(4) .fase__testo { transition-delay: 1600ms; }

/* --- 7 · Chi siamo ------------------------------------------------------------ */
.squadra__intro { max-width: 26ch; }
.squadra__altro { margin-top: 14px; max-width: 34ch; font-size: 17px; line-height: 1.55; color: var(--lucs-muted); }
.squadra__luogo { margin-top: 34px; }

/* --- 8 · Domande frequenti: righe dorate e la freccia del kit --------------- */
.domande { padding: 26px 0 50px; }
.domande__griglia { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px 64px; align-items: start; }
.domande__testa .sezione__azione { margin-top: 30px; }
.domande__lista { border-top: 1px solid var(--linea); }
.faq { border-bottom: 1px solid var(--linea); }
.faq__domanda {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px 22px 0;
  font-size: 20px;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
  transition: color 200ms ease;
}
.faq__domanda::-webkit-details-marker { display: none; }
.faq__domanda span,
.dove__intro,
.effetti .scena__dida span,
.pacchetto__testo,
.fasi--4 .fase__testo { text-wrap: balance; }
.faq__icona { width: 26px; height: 26px; flex: none; transform: rotate(135deg); transition: transform 280ms var(--ease-out); }
.faq[open] .faq__icona { transform: rotate(-45deg); }
.faq__domanda:active { opacity: 0.75; }
@media (hover: hover) and (pointer: fine) {
  .faq__domanda:hover { color: var(--lucs-accent); }
}
.faq__risposta { padding: 0 48px 24px 0; font-size: 17px; line-height: 1.6; color: var(--lucs-muted); }
.faq[open] .faq__risposta { animation: entra 360ms var(--ease-out) backwards; }

/* --- 9 · Dove siamo --------------------------------------------------------- */
.dove { padding: 26px 0 50px; }
.dove__griglia { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: center; }
.dove__intro { margin-top: 24px; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; color: var(--lucs-text); }
.dove__altro { margin-top: 14px; max-width: 40ch; font-size: 17px; line-height: 1.55; color: var(--lucs-muted); }
.dove__mappa {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 300px;
  padding: 32px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--linea-forte);
  background: var(--lucs-surface);
  -webkit-user-select: none;
  user-select: none;
  transition: border-color 200ms ease, transform 160ms var(--ease-out);
}
.dove__mappa:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) {
  .dove__mappa:hover { border-color: var(--lucs-accent); }
}
.onda--mappa { position: absolute; z-index: -1; left: -5%; top: 18%; width: 110%; height: auto; }
.dove__indirizzo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-titoli);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  color: var(--lucs-text);
}
.dove__freccia { width: 24px; height: 24px; flex: none; }

/* --- 10 · Chiusura ------------------------------------------------------------ */
.contatti__titolo {
  max-width: 17ch;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.1;
  text-transform: none;
  text-wrap: balance;
}
.contatti__slogan {
  margin-top: 18px;
  max-width: 24ch;
  font-size: clamp(22px, 2.2vw, 30px);
  font-style: italic;
  line-height: 1.3;
  color: var(--lucs-accent);
}
.contatti__testo { margin-top: 20px; max-width: 34ch; }
.contatti__azione { margin-top: 34px; }
.contatti__in .btn { margin-top: 0; min-width: 0; }

/* --- Piede: logo e descrizione, menu, contatti ------------------------------- */
.piede__riga {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 36px 56px;
}
.piede__descrizione { margin-top: 18px; max-width: 34ch; font-size: 16px; line-height: 1.55; color: var(--lucs-muted); }
.piede__menu ul { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; }
.piede__menu a,
.piede__contatti a { display: inline-block; padding: 6px 0; font-size: 16px; color: var(--lucs-muted); transition: color 200ms ease; }
.piede__contatti { display: grid; gap: 2px; }
@media (hover: hover) and (pointer: fine) {
  .piede__menu a:hover,
  .piede__contatti a:hover { color: var(--lucs-accent); }
}
.piede__menu a:active,
.piede__contatti a:active { color: var(--lucs-accent); }

/* --- Il pulsante WhatsApp fisso, solo sul telefono --------------------------- */
.wa-icona { width: 22px; height: 22px; flex: none; }
.wa-fisso { display: none; }

/* --- 404: la foto dei laser dietro ------------------------------------------------ */
.errore__sfondo { position: absolute; inset: 0; z-index: -1; }
.errore__sfondo img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.errore__sfondo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--lucs-bg) 0, color-mix(in srgb, var(--lucs-bg) 70%, transparent) 60%, transparent);
}

/* --- Schermi medi ---------------------------------------------------------------- */
@media (max-width: 1359px) {
  .testata__nav { display: none; }
  .testata__in { justify-content: space-between; }
  .testata__cta { margin-left: auto; }
  .testata__menu {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-right: -8px;
    border-radius: 50%;
    -webkit-user-select: none;
    user-select: none;
  }
  .testata__menu:active { background: color-mix(in srgb, var(--lucs-accent) 16%, transparent); }
  .testata__righe { display: grid; gap: 7px; width: 26px; }
  .testata__righe i { display: block; height: 2px; border-radius: 2px; background: var(--lucs-text); transition: transform 240ms var(--ease-out); }
  html.menu-aperto .testata__righe i:first-child { transform: translateY(4.5px) rotate(45deg); }
  html.menu-aperto .testata__righe i:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  html.menu-aperto .testata { background: var(--lucs-bg); box-shadow: 0 1px 0 var(--linea); }
  .testata__logo .logo { width: 260px; }
}
@media (max-width: 1199px) {
  .effetti { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .feste__fila { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pacchetti__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 0; }
  .pacchetto:nth-child(odd) { border-left: 0; }
  .fasi--4 .fase__testo { padding-right: 16px; }
  .piede__riga { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .piede__marchio { grid-column: 1 / -1; }
}
@media (max-width: 1023px) {
  .domande__griglia,
  .dove__griglia { grid-template-columns: 1fr; }
  .domande__testa { display: contents; }
  .domande__testa .titolo { order: 1; }
  .domande__lista { order: 2; }
  .domande__testa .sezione__azione { order: 3; margin-top: 4px; }
  .fasi--4 { grid-template-columns: 1fr; }
  .fasi--4 .fase__testo { margin-top: 0; padding: 18px 0 0; }
  .fasi--4 .fase:last-child .fase__linea { display: none; }
  .fasi--4 .fase:last-child .fase__segno::after { display: none; }
}

/* --- Telefono ---------------------------------------------------------------------- */
@media (max-width: 767px) {
  .testata__logo .logo { width: 150px; }
  .menu-telefono__nav a { font-size: 22px; padding: 10px 0; }

  .hero__in { padding-bottom: 96px; max-width: none; }
  .hero__titolo { font-size: clamp(22px, 7.2vw, 30px); }
  .hero__testo { margin-top: 16px; font-size: 18px; }
  .hero__nota { margin-top: 12px; font-size: 13px; }
  .hero__in .azioni { margin-top: 20px; flex-direction: column; align-items: stretch; }
  .azioni .btn { justify-content: space-between; }
  .hero__foto img,
  .hero__foto video { object-position: 50% 50%; }

  .sezione__azione { margin-top: 30px; }
  .sezione__azione .btn { width: 100%; justify-content: space-between; }
  .btn { white-space: normal; text-wrap: balance; text-align: left; line-height: 1.25; padding: 12px 20px 12px 22px; gap: 16px; font-size: 17px; }
  .azioni .btn { width: 100%; }

  .effetti { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; margin-top: 24px; }
  .effetti .scena__dida,
  .effetti .scena--stretta .scena__dida { padding-top: 12px; font-size: 15px; line-height: 1.4; }
  .effetti .scena__dida::before { margin-bottom: 10px; }
  .effetti .scena__img { border-radius: 2px; }

  .feste { padding: 44px 0 44px; }
  .feste__testa { display: block; }
  .feste__voto { margin-top: 14px; font-size: 12px; }
  .feste__fila { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
  .feste__piede { margin-top: 30px; display: block; }
  .feste__piede .sezione__azione { margin-top: 26px; }
  .citazione__testo { font-size: 22px; }

  .pacchetti { padding: 44px 0 40px; }
  .pacchetti__corpo { margin-top: 22px; }
  .pacchetti .onda--eventi { top: -24px; }
  .pacchetti__lista { grid-template-columns: 1fr; gap: 0; margin: 0; }
  .pacchetto,
  .pacchetto:first-child,
  .pacchetto:last-child,
  .pacchetto:nth-child(odd),
  .pacchetto:nth-child(even) {
    display: grid;
    grid-template-columns: 112px 1fr;
    column-gap: 18px;
    align-items: start;
    padding: 18px 0;
    border-left: 0;
  }
  .pacchetto + .pacchetto { border-top: 1px solid var(--linea); }
  .pacchetto__foto { grid-row: 1 / span 2; aspect-ratio: 1 / 1; }
  .pacchetto__titolo { margin-top: 0; font-size: 20px; font-weight: 500; }
  .pacchetto__testo { margin-top: 4px; font-size: 15.5px; line-height: 1.5; }

  .percorso { padding: 44px 0 44px; }
  .fasi--4 .fase__testo { font-size: 16.5px; padding-top: 12px; }

  .squadra__altro { font-size: 16.5px; }

  .domande { padding: 44px 0 40px; }
  .domande__griglia { gap: 24px; }
  .faq__domanda { padding: 18px 0; font-size: 18px; }
  .faq__risposta { padding-right: 0; font-size: 16px; }

  .dove { padding: 44px 0 44px; }
  .dove__mappa { min-height: 200px; padding: 22px; }

  .contatti__slogan { font-size: 21px; }
  .contatti__azione { flex-direction: column; align-items: stretch; }

  .piede__riga { grid-template-columns: 1fr; gap: 26px; }
  .piede__menu ul { gap: 0 20px; }
  html.con-wa .piede { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }

  .wa-fisso {
    display: block;
    position: fixed;
    z-index: 55;
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .wa-fisso__pulsante {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 20px 0 16px;
    border-radius: 999px;
    background: var(--lucs-button-bg);
    color: var(--lucs-button-text);
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 10px 30px color-mix(in srgb, var(--lucs-bg) 70%, transparent);
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    transition: transform 140ms var(--ease-out);
  }
  .wa-fisso__pulsante:active { transform: scale(0.97); }
  .wa-fisso__scelta {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    display: grid;
    gap: 4px;
    min-width: 200px;
    padding: 8px;
    border: 1px solid var(--linea-forte);
    border-radius: 16px;
    background: var(--lucs-surface);
    box-shadow: 0 20px 50px color-mix(in srgb, var(--lucs-bg) 80%, transparent);
    transform-origin: right bottom;
    visibility: hidden;
    opacity: 0;
    transform: scale(0.96) translate3d(0, 6px, 0);
    transition: opacity 140ms ease, transform 140ms ease, visibility 0s linear 140ms;
  }
  .wa-fisso.aperto .wa-fisso__scelta {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 200ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s;
  }
  .wa-fisso__scelta a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 16px;
    color: var(--lucs-text);
  }
  .wa-fisso__scelta a:active { background: color-mix(in srgb, var(--lucs-accent) 16%, transparent); }
  .wa-fisso__scelta .wa-icona { color: var(--lucs-accent); }
}
@media (max-width: 559px) {
  .btn.testata__cta { display: none; }
}
@media (max-width: 379px) {
  .hero__titolo { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .festa img, .festa video, .pacchetto__foto img { transition: none; }
  .faq[open] .faq__risposta { animation-name: dissolvi; }
  .wa-fisso__scelta { transform: none !important; }
}

/* ==========================================================================
   STEP 5-bis · IL MOVIMENTO (09 § 0-bis-2, regole di Emil Kowalski)
   Solo transform e opacity; entrate con --ease-out, disegni con --ease-in-out.
   Le entrate allo scroll valgono solo con html.js (la mette lo script in <head>):
   senza JavaScript, o se main.js non parte entro 2,5 s, tutto resta visibile.
   ========================================================================== */

/* --- La hero entra al caricamento, in CSS (non aspetta il JavaScript) ------- */
@keyframes entra {
  from { opacity: 0; transform: translate3d(0, 30px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes dissolvi {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes assesta {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}
.hero .occhiello,
.hero__titolo .riga,
.hero__testo,
.hero__in .btn { animation: entra 900ms var(--ease-out) backwards; }
.hero .occhiello { animation-delay: 120ms; }
.hero__titolo .riga:nth-child(1) { animation-delay: 200ms; }
.hero__titolo .riga:nth-child(2) { animation-delay: 280ms; }
.hero__titolo .riga:nth-child(3) { animation-delay: 380ms; }
.hero__testo { animation-delay: 500ms; }
.hero__in .btn { animation-delay: 600ms; }
.scopri { animation: dissolvi 900ms ease 900ms backwards; }
.hero__fondo { animation: dissolvi 1400ms ease 500ms backwards; }
/* la foto c'è da subito: si assesta soltanto */
.hero__foto img,
.hero__foto video { animation: assesta 2400ms var(--ease-out) backwards; }
.hero__foto { will-change: transform; }

/* l'icona «scopri» invita a scorrere */
@keyframes invita {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, 6px, 0); }
}
.scopri__icona { animation: invita 1600ms var(--ease-in-out) 1800ms infinite alternate; }

/* --- Le onde del kit: un respiro lento, come un suono --------------------- */
@keyframes respiro {
  0% { transform: translate3d(-1.2%, 0, 0) scale(1.03, 0.94); }
  50% { transform: translate3d(0, 0, 0) scale(1.03, 1.05); }
  100% { transform: translate3d(1.2%, 0, 0) scale(1.03, 0.97); }
}
@keyframes bagliore {
  from { transform: scale(0.85); }
  to { transform: scale(1.3); }
}
.onda { animation: respiro 11s var(--ease-in-out) infinite alternate; transform-origin: 50% 50%; }
.onda--eventi { animation-duration: 13s; animation-delay: -4s; }
.onda--finale { animation-duration: 12s; animation-delay: -7s; }
.rete__onda { animation: respiro 10s var(--ease-in-out) infinite alternate; transform-box: fill-box; transform-origin: 50% 50%; }
.onda circle,
.rete__onda circle {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: bagliore 3200ms ease-in-out infinite alternate;
}
.onda circle:nth-of-type(n+6),
.rete__onda circle:nth-of-type(n+6) { animation-delay: -1600ms; }

/* --- Le sezioni arrivano mentre si scorre ----------------------------------- */
html.js .reveal {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out);
}
html.js .reveal.in { opacity: 1; transform: none; }

/* gli elementi che entrano insieme arrivano uno dopo l'altro */
html.js .tre > .reveal:nth-child(2),
html.js .servizi__lista > .reveal:nth-child(2) { transition-delay: 80ms; }
html.js .tre > .reveal:nth-child(3),
html.js .servizi__lista > .reveal:nth-child(3) { transition-delay: 160ms; }
html.js .servizi__lista > .reveal:nth-child(4) { transition-delay: 240ms; }
html.js .servizi__lista > .reveal:nth-child(5) { transition-delay: 320ms; }
html.js .servizi__lista > .reveal:nth-child(6) { transition-delay: 400ms; }
html.js .valore__intro.reveal,
html.js .esperienze__testa .occhiello.reveal,
html.js .sottotitolo.reveal,
html.js .squadra__intro.reveal,
html.js .contatti__testo.reveal { transition-delay: 100ms; }
html.js .squadra__luogo.reveal,
html.js .contatti__azione.reveal { transition-delay: 200ms; }
html.js .scena--stretta .reveal--foto { transition-delay: 120ms; }

/* le foto si svelano dal basso, e l'immagine si assesta */
html.js .reveal--foto {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1200ms var(--ease-in-out);
}
html.js .reveal--foto.in { clip-path: inset(0 0 0 0); }
html.js .reveal--foto img { transform: scale(1.12); transition: transform 1600ms var(--ease-out); }
html.js .reveal--foto.in img { transform: scale(1); }
/* la squadra si apre come un sipario, da sinistra */
html.js .reveal--tenda {
  opacity: 1;
  transform: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1300ms var(--ease-in-out);
}
html.js .reveal--tenda.in { clip-path: inset(0 0 0 0); }

/* col mouse le foto si avvicinano un poco (mai col dito) */
@media (hover: hover) and (pointer: fine) {
  .scena__img img,
  html.js .reveal--foto.fatto img { transition: transform 280ms var(--ease-out); }
  .scena__img:hover img,
  html.js .reveal--foto.fatto:hover img { transform: scale(1.04); }
  .squadra__foto img { transition: transform 280ms var(--ease-out); }
  .squadra__foto:hover img { transform: scale(1.12); }
}

/* --- La rete dei servizi si accende, nodo dopo nodo ------------------------- */
.rete__raggio,
.rete__orbita { transition: opacity 600ms ease; }
.rete__nodo,
.rete__centro {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: opacity 500ms ease, transform 700ms var(--ease-out);
}
html.js .servizi__rete .rete__raggio,
html.js .servizi__rete .rete__orbita,
html.js .servizi__rete .rete__nodo,
html.js .servizi__rete .rete__centro { opacity: 0; }
html.js .servizi__rete .rete__nodo,
html.js .servizi__rete .rete__centro { transform: scale(0.82); }
html.js .servizi__rete.in .rete__centro { opacity: 1; transform: none; transition-delay: 150ms; }
html.js .servizi__rete.in .rete__orbita { opacity: 0.7; transition-delay: 350ms; }
html.js .servizi__rete.in .rete__raggio { opacity: 0.55; transition-delay: calc(450ms + var(--n) * 110ms); }
html.js .servizi__rete.in .rete__nodo { opacity: 1; transform: none; transition-delay: calc(500ms + var(--n) * 110ms); }
/* passando su un servizio dell'elenco, si accende il suo nodo */
html.js .servizi__rete.in.fatto .rete__nodo,
html.js .servizi__rete.in.fatto .rete__raggio { transition: opacity 220ms ease, transform 280ms var(--ease-out); transition-delay: 0ms; }
html.js .servizi__rete.in.fatto .rete.attiva .rete__nodo { opacity: 0.35; }
html.js .servizi__rete.in.fatto .rete.attiva .rete__raggio { opacity: 0.2; }
html.js .servizi__rete.in.fatto .rete.attiva .rete__nodo.acceso { opacity: 1; transform: scale(1.12); }
html.js .servizi__rete.in.fatto .rete.attiva .rete__raggio.acceso { opacity: 0.9; }
.servizio .icona { transition: transform 280ms var(--ease-out); }
.servizio__titolo { transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .servizio:hover .icona { transform: translate3d(0, -3px, 0); }
  .servizio:hover .servizio__titolo { color: var(--lucs-accent); }
}

/* --- Il percorso si disegna ------------------------------------------------- */
html.js .fasi.reveal { opacity: 1; transform: none; }
html.js .fasi .fase__num { opacity: 0; transform: scale(0.88); transition: opacity 500ms ease, transform 700ms var(--ease-out); }
html.js .fasi .fase__linea { transform: scaleX(0); transform-origin: left center; transition: transform 1100ms var(--ease-in-out); }
html.js .fasi .fase__segno::after { opacity: 0; transform: scale(0.6); transition: opacity 400ms ease, transform 500ms var(--ease-out); }
html.js .fasi .fase__titolo,
html.js .fasi .fase__testo { opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); }
html.js .fasi.in .fase__num,
html.js .fasi.in .fase__linea,
html.js .fasi.in .fase__segno::after,
html.js .fasi.in .fase__titolo,
html.js .fasi.in .fase__testo { opacity: 1; transform: none; }
html.js .fasi.in .fase:nth-child(1) .fase__num { transition-delay: 0ms; }
html.js .fasi.in .fase:nth-child(1) .fase__linea { transition-delay: 150ms; }
html.js .fasi.in .fase:nth-child(1) .fase__segno::after { transition-delay: 450ms; }
html.js .fasi.in .fase:nth-child(1) .fase__titolo,
html.js .fasi.in .fase:nth-child(1) .fase__testo { transition-delay: 250ms; }
html.js .fasi.in .fase:nth-child(2) .fase__num { transition-delay: 450ms; }
html.js .fasi.in .fase:nth-child(2) .fase__linea { transition-delay: 600ms; }
html.js .fasi.in .fase:nth-child(2) .fase__segno::after { transition-delay: 900ms; }
html.js .fasi.in .fase:nth-child(2) .fase__titolo,
html.js .fasi.in .fase:nth-child(2) .fase__testo { transition-delay: 700ms; }
html.js .fasi.in .fase:nth-child(3) .fase__num { transition-delay: 900ms; }
html.js .fasi.in .fase:nth-child(3) .fase__linea { transition-delay: 1050ms; }
html.js .fasi.in .fase:nth-child(3) .fase__segno::after { transition-delay: 1350ms; }
html.js .fasi.in .fase:nth-child(3) .fase__titolo,
html.js .fasi.in .fase:nth-child(3) .fase__testo { transition-delay: 1150ms; }
@media (max-width: 1023px) {
  html.js .fasi .fase__linea { transform: scaleY(0); transform-origin: center top; }
}

/* --- Link e voci che rispondono ------------------------------------------- */
.testata__nav a:active,
.piede__link a:active,
.menu-telefono__nav a:active { opacity: 0.7; }
.scopri { transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .scopri:hover { color: var(--lucs-accent); }
}

/* ==========================================================================
   IL SELETTORE DI COLORI (Design/SELETTORE-COLORI.md)
   Lo crea main.js solo sull'anteprima (*.pages.dev, localhost): sul dominio non c'è.
   ========================================================================== */
.selettore {
  position: fixed;
  z-index: 60;
  left: calc(16px + env(safe-area-inset-left, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  font-family: var(--font-testo);
  transition: opacity 200ms ease, transform 260ms var(--ease-out);
}
.selettore.via { opacity: 0; transform: translate3d(0, 12px, 0); pointer-events: none; }
.selettore__apri {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px 0 12px;
  border: 1px solid var(--linea-forte);
  border-radius: 999px;
  background: var(--lucs-surface);
  color: var(--lucs-text);
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--lucs-bg) 70%, transparent);
  -webkit-user-select: none;
  user-select: none;
  transition: transform 140ms var(--ease-out), border-color 200ms ease;
}
.selettore__apri:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .selettore__apri:hover { border-color: var(--lucs-accent); }
}
.selettore__campione {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 3px;
  border-radius: 999px;
  background: var(--lucs-bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lucs-text) 22%, transparent);
}
.selettore__campione i {
  display: block;
  width: 14px; height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--lucs-bg);
}
.selettore__campione i + i { margin-left: -4px; }
.selettore__campione i:nth-child(1) { background: var(--lucs-accent); }
.selettore__campione i:nth-child(2) { background: var(--lucs-accent-soft); }
.selettore__campione i:nth-child(3) { background: var(--lucs-text); }

.selettore__pannello {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: 250px;
  padding: 14px;
  border: 1px solid var(--linea-forte);
  border-radius: 18px;
  background: var(--lucs-surface);
  box-shadow: 0 20px 50px color-mix(in srgb, var(--lucs-bg) 80%, transparent);
  transform-origin: left bottom;
  visibility: hidden;
  opacity: 0;
  transform: scale(0.96) translate3d(0, 6px, 0);
  transition: opacity 140ms ease, transform 140ms ease, visibility 0s linear 140ms;
}
.selettore.aperto .selettore__pannello {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 200ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s;
}
.selettore__titolo {
  padding: 2px 6px 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lucs-muted);
}
.selettore__lista { display: grid; gap: 4px; }
.selettore__voce {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 6px 10px 6px 8px;
  border-radius: 12px;
  font-size: 16px;
  text-align: left;
  color: var(--lucs-text);
  -webkit-user-select: none;
  user-select: none;
  transition: background-color 160ms ease, transform 140ms var(--ease-out);
}
.selettore__voce:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .selettore__voce:hover { background: color-mix(in srgb, var(--lucs-text) 7%, transparent); }
}
.selettore__voce[aria-pressed="true"] { background: color-mix(in srgb, var(--lucs-accent) 16%, transparent); }
.selettore__voce .selettore__campione i { width: 16px; height: 16px; }
.selettore__spunta {
  margin-left: auto;
  width: 18px; height: 18px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 160ms ease, transform 200ms var(--ease-out);
  color: var(--lucs-accent);
}
.selettore__voce[aria-pressed="true"] .selettore__spunta { opacity: 1; transform: none; }
.selettore__nota {
  padding: 10px 6px 2px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--lucs-muted);
}
/* il pulsante non copre la firma in fondo alla pagina */
html.con-selettore .piede { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

/* il cambio di palette: una dissolvenza di tutta la pagina */
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 420ms; animation-timing-function: ease; }
html.cambio-colori,
html.cambio-colori * {
  transition-property: background-color, color, border-color, fill, stroke, box-shadow !important;
  transition-duration: 400ms !important;
  transition-timing-function: ease !important;
  transition-delay: 0ms !important;
}

@media (max-width: 767px) {
  .selettore__apri { width: 48px; min-height: 48px; padding: 0; justify-content: center; }
  .selettore__etichetta { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html.con-selettore .scopri { left: calc(76px + env(safe-area-inset-left, 0px)); }
}

/* ==========================================================================
   Movimento ridotto: meno movimento, non zero (restano dissolvenze e colori)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .occhiello,
  .hero__titolo .riga,
  .hero__testo,
  .hero__in .btn { animation-name: dissolvi; animation-duration: 600ms; }
  .hero__foto img,
  .hero__foto video,
  .scopri__icona,
  .onda,
  .onda circle,
  .rete__onda,
  .rete__onda circle { animation: none; }
  html.js .reveal,
  html.js .fasi .fase__titolo,
  html.js .fasi .fase__testo { transform: none; transition: opacity 600ms ease; }
  html.js .reveal--foto,
  html.js .reveal--tenda { clip-path: none; opacity: 0; transition: opacity 600ms ease; }
  html.js .reveal--foto.in,
  html.js .reveal--tenda.in { opacity: 1; }
  html.js .reveal--foto img { transform: none; transition: none; }
  html.js .servizi__rete .rete__nodo,
  html.js .servizi__rete .rete__centro,
  html.js .fasi .fase__num,
  html.js .fasi .fase__segno::after { transform: none; }
  html.js .fasi .fase__linea { transform: none; opacity: 0; transition: opacity 600ms ease; }
  html.js .fasi.in .fase__linea { opacity: 1; }
  .btn:active,
  .selettore__apri:active,
  .selettore__voce:active { transform: none; }
  .btn__freccia,
  .testata,
  .testata__in,
  .testata__logo .logo,
  .menu-telefono__nav li,
  .menu-telefono__cta { transition-property: opacity, background-color, box-shadow; }
  .testata.scrolled,
  .testata.scrolled .testata__in,
  .testata.scrolled .testata__logo .logo,
  .menu-telefono__nav li,
  .menu-telefono__cta { transform: none; }
  .selettore,
  .selettore__pannello { transform: none !important; }
}
