/* Sito di presentazione di Leila (leila.click). Tema unico blu notte, come il pannello di accesso della gestione. */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(fonti/dmsans-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: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonti/instrumentserif-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonti/instrumentserif-normal-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  interpolate-size: allow-keywords;
  /* Il colore di Leila (scelto da Armando il 15/10/2026: turchese #13C3B7 con arancio #D36912, sfondo «del colore»).
     Si cambia qui (terne RGB): tutto il resto ne deriva. Valori calcolati da tools/tavolozza-sito.html. */
  --rgb-accento: 19, 195, 183;
  --rgb-chiaro: 20, 240, 225;
  --rgb-tenue: 167, 246, 241;
  --rgb-secondario: 211, 105, 18;
  --rgb-ponte: 126, 158, 113;
  /* Gli sfondi (notte turchese) e il testo appena tinto. */
  --rgb-profondo: 23, 140, 132;
  --rgb-vetro: 25, 100, 95;
  --rgb-notte-0: 4, 26, 25;
  --rgb-notte-1: 7, 36, 34;
  --rgb-notte-2: 10, 49, 46;
  --rgb-notte-3: 14, 67, 64;
  --rgb-testo: 227, 252, 250;
  --rgb-testo-forte: 237, 255, 254;
  --testo-bottone: #041a19;

  --accento: rgb(var(--rgb-accento));
  --chiaro: rgb(var(--rgb-chiaro));
  --tenue: rgb(var(--rgb-tenue));
  --secondario: rgb(var(--rgb-secondario));
  --ponte: rgb(var(--rgb-ponte));
  --profondo: rgb(var(--rgb-profondo));
  --medio: color-mix(in srgb, var(--chiaro) 80%, var(--tenue));
  --accento-scuro: color-mix(in srgb, var(--accento) 45%, #0b1020);
  --notte-0: rgb(var(--rgb-notte-0));
  --notte-1: rgb(var(--rgb-notte-1));
  --notte-2: rgb(var(--rgb-notte-2));
  --notte-3: rgb(var(--rgb-notte-3));
  --notte-scura: color-mix(in srgb, var(--notte-0) 50%, var(--notte-1));
  --notte-piede: color-mix(in srgb, var(--notte-0) 70%, var(--notte-1));
  /* Nomi di prima, usati dai componenti. */
  --blu: var(--accento);
  --blu-chiaro: var(--chiaro);
  --cielo: var(--tenue);
  --ciano: var(--secondario);
  --verde: #3ddc97;
  --testo: rgb(var(--rgb-testo-forte));
  --testo-2: rgba(var(--rgb-testo), .74);
  --testo-3: rgba(var(--rgb-testo), .5);
  --testo-tinta: color-mix(in srgb, var(--tenue) 45%, #fff);
  --bordo: rgba(255, 255, 255, .1);
  --gradiente: linear-gradient(90deg, var(--tenue), var(--medio) 45%, var(--secondario));
  --gradiente-bottone: linear-gradient(135deg, var(--accento) 0%, var(--chiaro) 55%, var(--ponte) 100%);
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
  --spunta: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --spunta-bianca: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --piu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--notte-1);
  color: var(--testo);
  font: 400 1.0625rem/1.65 "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 500; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: rgba(var(--rgb-chiaro), .45); color: #fff; }
:focus-visible { outline: 2px solid var(--ciano); outline-offset: 3px; border-radius: 8px; }

.visivamente-nascosto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.salta { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #fff; color: var(--notte-1); font-weight: 600; text-decoration: none; }
.salta:focus { top: 16px; }

.contenitore { width: min(1200px, 100% - 40px); margin-inline: auto; }
.contenitore-stretto { width: min(860px, 100% - 40px); }
@media (max-width: 480px) {
  .contenitore, .contenitore-stretto { width: calc(100% - 32px); }
}

/* Comparsa allo scorrimento: solo con JavaScript acceso e animazioni permesse. I componenti con transizioni proprie
   ripetono opacity e translate nella loro lista. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  [data-rivela] {
    opacity: 0;
    translate: 0 30px;
    transition: opacity .9s cubic-bezier(.2, .7, .2, 1) var(--ritardo, 0s), translate .9s cubic-bezier(.2, .7, .2, 1) var(--ritardo, 0s);
  }
  [data-rivela].visibile { opacity: 1; translate: none; }
}

/* ------------------------------------------------------------------ marchio, bottoni, etichette */

.marchio { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.marchio-muso { width: 38px; height: 38px; filter: brightness(0) invert(1); }
.marchio-nome { font-size: 1.6rem; font-weight: 300; letter-spacing: .06em; line-height: 1; }
.marchio-nome b { font-weight: 300; color: var(--blu-chiaro); }

.bottone {
  --sfondo: var(--gradiente-bottone);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--sfondo);
  color: var(--testo-bottone);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 14px 34px -12px rgba(var(--rgb-accento), .85), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s, translate .9s cubic-bezier(.2, .7, .2, 1);
}
.bottone::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s ease;
}
.bottone:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -12px rgba(var(--rgb-accento), 1), inset 0 1px 0 rgba(255, 255, 255, .3); }
.bottone:hover::after { transform: translateX(120%); }
.bottone svg { width: 18px; height: 18px; flex: none; }
.bottone-vetro { --sfondo: rgba(255, 255, 255, .07); color: var(--testo); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); backdrop-filter: blur(10px); }
.bottone-vetro:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4), 0 14px 34px -14px rgba(var(--rgb-chiaro), .6); }
.bottone-piccolo { padding: 12px 20px; font-size: .92rem; }
.bottone-largo { width: 100%; }
.bottone[disabled] { opacity: .65; cursor: progress; transform: none; }

.etichetta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 13px;
  border-radius: 999px;
  background: rgba(var(--rgb-chiaro), .1);
  border: 1px solid rgba(var(--rgb-chiaro), .32);
  color: var(--testo-tinta);
  font-size: .9rem;
  font-weight: 500;
}
.punto-vivo {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ciano);
  animation: pulsa 2s infinite;
}
@keyframes pulsa {
  0% { box-shadow: 0 0 0 0 rgba(var(--rgb-secondario), .65); }
  70% { box-shadow: 0 0 0 10px rgba(var(--rgb-secondario), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--rgb-secondario), 0); }
}

.sopratitolo {
  display: inline-block;
  margin-bottom: 18px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  background: var(--gradiente);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.06; letter-spacing: -.022em; }
h2 em, .hero-titolo em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  letter-spacing: -.005em;
  padding-right: .08em;
  background: var(--gradiente);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lista-spunte { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.lista-spunte li { position: relative; padding-left: 36px; color: var(--testo-2); }
.lista-spunte li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .15em;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(var(--rgb-chiaro), .45);
  background: rgba(var(--rgb-chiaro), .15);
}
.lista-spunte li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: calc(.15em + 6px);
  width: 14px;
  height: 14px;
  background: var(--tenue);
  -webkit-mask: var(--spunta) center / contain no-repeat;
  mask: var(--spunta) center / contain no-repeat;
}
.lista-spunte strong { color: #fff; font-weight: 600; }

/* La luce che segue il puntatore (la crea sito.js). */
.luce {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1;
  width: 640px;
  height: 640px;
  margin: -320px 0 0 -320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--rgb-chiaro), .11), transparent 62%);
  pointer-events: none;
  mix-blend-mode: screen;
  will-change: transform;
}

/* ------------------------------------------------------------------ navigazione */

.nav { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background .35s, border-color .35s, backdrop-filter .35s; }
.nav.scorsa { background: rgba(var(--rgb-notte-1), .74); backdrop-filter: blur(18px) saturate(150%); border-bottom-color: rgba(255, 255, 255, .08); }
.nav-dentro { width: min(1240px, 100% - 32px); height: 74px; margin: auto; display: flex; align-items: center; gap: 20px; }
.nav-voci { display: flex; gap: 2px; margin-left: auto; }
.nav-voci a { padding: 8px 14px; border-radius: 999px; color: var(--testo-2); font-size: .95rem; text-decoration: none; transition: color .2s, background .2s; }
.nav-voci a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-menu { display: none; }

@media (max-width: 1000px) {
  .nav-voci {
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    padding: 10px;
    border-radius: 22px;
    background: rgba(var(--rgb-notte-2), .97);
    border: 1px solid var(--bordo);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s;
  }
  .nav-voci.aperto { opacity: 1; pointer-events: auto; transform: none; }
  .nav-voci a { padding: 13px 16px; font-size: 1.02rem; }
  .nav .bottone-piccolo { margin-left: auto; }
  .nav-menu {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--bordo);
    background: rgba(255, 255, 255, .05);
    cursor: pointer;
  }
  .nav-menu span:not(.visivamente-nascosto) {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .3s;
  }
  .nav-menu span:nth-child(1) { top: 18px; }
  .nav-menu span:nth-child(2) { top: 25px; }
  .nav-menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .nav-menu[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
}
@media (max-width: 440px) {
  .nav .bottone-piccolo { display: none; }
  .nav-menu { margin-left: auto; }
}
.nav .nav-torna { display: inline-flex; margin-left: auto; }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 128px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 75% 35%, rgba(var(--rgb-profondo), .75) 0%, transparent 62%),
    linear-gradient(180deg, var(--notte-2) 0%, var(--notte-1) 100%);
}
.campo { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bagliore { position: absolute; inset: 0; pointer-events: none; }
.hero-bagliore::before, .hero-bagliore::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); }
.hero-bagliore::before {
  width: 620px; height: 620px; left: -220px; top: -160px;
  background: radial-gradient(circle, rgba(var(--rgb-accento), .6), transparent 65%);
  animation: fluttua 18s ease-in-out infinite alternate;
}
.hero-bagliore::after {
  width: 700px; height: 700px; right: -260px; bottom: -300px;
  background: radial-gradient(circle, rgba(var(--rgb-ponte), .38), transparent 65%);
  animation: fluttua 24s ease-in-out infinite alternate-reverse;
}
@keyframes fluttua { to { transform: translate(90px, 70px) scale(1.15); } }

.hero-griglia { position: relative; z-index: 2; display: grid; gap: 64px; align-items: center; }
@media (min-width: 1040px) { .hero-griglia { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); } }

.hero-titolo { margin: 26px 0 24px; font-size: clamp(2.75rem, 6.4vw, 5.5rem); line-height: 1; letter-spacing: -.03em; font-weight: 500; }
.hero-titolo em {
  display: block;
  margin-top: .04em;
  line-height: 1.02;
  background: linear-gradient(90deg, var(--tenue), var(--medio) 28%, var(--secondario) 56%, var(--tenue) 84%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: scintilla 9s linear infinite;
}
@keyframes scintilla { to { background-position: -220% 0; } }

.hero-rotante { min-height: 1.6em; margin-bottom: 16px; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 500; color: #fff; }
.rotante { position: relative; color: var(--cielo); }
.rotante::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -.16em;
  background: var(--ciano);
  box-shadow: 0 0 10px var(--ciano);
  animation: cursore 1s steps(1) infinite;
}
@keyframes cursore { 50% { opacity: 0; } }
.hero-sotto { max-width: 590px; color: var(--testo-2); font-size: 1.1rem; }
.hero-azioni { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-garanzie { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 30px 0 0; color: var(--testo-2); font-size: .93rem; }
.hero-garanzie li { display: flex; align-items: center; gap: 8px; }
.hero-garanzie svg { width: 18px; height: 18px; color: var(--ciano); stroke-width: 2.4; }

.hero-telefono { position: relative; display: grid; place-items: center; min-height: 560px; }
@media (max-width: 1039px) { .hero-telefono { min-height: 0; padding: 30px 0; } }

.orbita { position: absolute; border-radius: 50%; pointer-events: none; }
.orbita-1 { width: min(540px, 130vw); aspect-ratio: 1; border: 1px dashed rgba(var(--rgb-tenue), .2); animation: gira 50s linear infinite; }
.orbita-2 { width: min(700px, 170vw); aspect-ratio: 1; border: 1px solid rgba(var(--rgb-tenue), .08); animation: gira 80s linear infinite reverse; }
.orbita::before { content: ""; position: absolute; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; }
.orbita-1::before { top: -5px; background: var(--ciano); box-shadow: 0 0 18px 5px rgba(var(--rgb-secondario), .7); }
.orbita-2::before { bottom: -5px; background: var(--blu-chiaro); box-shadow: 0 0 18px 5px rgba(var(--rgb-chiaro), .7); }
@keyframes gira { to { transform: rotate(360deg); } }

.hero-giu { position: absolute; left: 50%; bottom: 26px; z-index: 2; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .28); }
.hero-giu span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: rotella 1.8s infinite; }
@keyframes rotella { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(13px); } }
@media (max-width: 1039px), (max-height: 760px) { .hero-giu { display: none; } }

/* ------------------------------------------------------------------ il telefono con la conversazione */

.telefono {
  position: relative;
  z-index: 2;
  width: min(410px, 100%);
  padding: 20px;
  border-radius: 30px;
  background: linear-gradient(160deg, rgba(var(--rgb-vetro), .78), rgba(var(--rgb-notte-2), .86));
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85), 0 0 90px -24px rgba(var(--rgb-accento), .5);
  backdrop-filter: blur(18px);
}
.telefono::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(var(--rgb-tenue), .65), transparent 32%, transparent 68%, rgba(var(--rgb-secondario), .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.telefono-testa { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.telefono-chi { display: flex; align-items: center; gap: 12px; min-width: 0; }
.telefono-chi > span:last-child { min-width: 0; }
.telefono-chi strong { display: block; font-size: 1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.telefono-chi small { display: block; font-size: .8rem; color: var(--testo-3); }
.telefono-avatar { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--gradiente-bottone); box-shadow: 0 6px 20px -6px rgba(var(--rgb-accento), .9); }
.telefono-avatar img { width: 32px; height: 32px; filter: brightness(0) invert(1); }
.telefono-avatar::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(var(--rgb-secondario), .7); opacity: 0; }
.telefono.squilla .telefono-avatar::after { animation: squillo 1s ease-out infinite; }
@keyframes squillo { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.55); opacity: 0; } }
.telefono-tempo { flex: none; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--testo-2); font-size: .82rem; font-variant-numeric: tabular-nums; }
.telefono.in-linea .telefono-tempo::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; vertical-align: 1px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 8px var(--verde); }

.onda { display: flex; align-items: center; justify-content: center; gap: 4px; height: 66px; margin: 18px 0 14px; }
.onda i { width: 4px; height: 100%; border-radius: 4px; background: linear-gradient(180deg, var(--tenue), var(--accento)); transform: scaleY(.07); transition: transform .45s ease, background .45s; }
.onda.leila i { animation: voce .85s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.13s); }
.onda.cliente i { --k: .62; background: linear-gradient(180deg, #ffffff, rgba(var(--rgb-testo), .62)); animation: voce 1.05s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.17s); }
@keyframes voce { from { transform: scaleY(.1); } to { transform: scaleY(calc(var(--h) * var(--k, 1))); } }

.telefono-chat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  height: 262px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 24%);
  mask-image: linear-gradient(180deg, transparent, #000 24%);
}
.telefono-grande { width: 100%; }
.telefono-grande .telefono-chat { height: 360px; }
.bolla { flex: none; max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: .93rem; line-height: 1.45; animation: compare .35s ease-out both; }
.bolla small { display: block; margin-bottom: 2px; font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--testo-3); }
.bolla.leila { align-self: flex-start; background: linear-gradient(135deg, rgba(var(--rgb-accento), .3), rgba(var(--rgb-ponte), .14)); border: 1px solid rgba(var(--rgb-chiaro), .38); border-bottom-left-radius: 6px; }
.bolla.leila small { color: var(--cielo); }
.bolla.cliente { align-self: flex-end; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); border-bottom-right-radius: 6px; color: var(--testo); }
.bolla.scrive span::after { content: ""; display: inline-block; width: 6px; height: .95em; margin-left: 3px; vertical-align: -2px; border-radius: 1px; background: currentColor; opacity: .6; animation: cursore .8s steps(1) infinite; }
@keyframes compare { from { opacity: 0; transform: translateY(10px) scale(.97); } }

.telefono-azioni { display: flex; flex-wrap: wrap; gap: 8px; min-height: 34px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(61, 220, 151, .12); border: 1px solid rgba(61, 220, 151, .38); color: #a8f0cf; font-size: .78rem; font-weight: 500; animation: chip .55s cubic-bezier(.2, 1.4, .4, 1) both; }
.chip.info { background: rgba(var(--rgb-chiaro), .14); border-color: rgba(var(--rgb-chiaro), .42); color: var(--testo-tinta); }
.chip svg { width: 14px; height: 14px; stroke-width: 2.6; }
@keyframes chip { from { opacity: 0; transform: scale(.6); } }

/* ------------------------------------------------------------------ striscia che scorre */

.striscia { position: relative; padding: 20px 0; overflow: hidden; border-block: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .02); }
.striscia-nastro { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.striscia-scorre { display: flex; align-items: center; width: max-content; animation: scorre 45s linear infinite; }
.striscia-scorre > * { margin-right: 30px; }
.striscia span { white-space: nowrap; font-size: 1.05rem; font-weight: 500; color: var(--testo-tinta); }
.striscia i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--blu-chiaro); box-shadow: 0 0 10px var(--blu-chiaro); }
.striscia:hover .striscia-scorre { animation-play-state: paused; }
@keyframes scorre { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ sezioni */

.sezione { position: relative; padding: clamp(88px, 11vw, 144px) 0; }
.sezione-scura { background: linear-gradient(180deg, transparent, rgba(var(--rgb-accento), .05) 50%, transparent), var(--notte-scura); }
.sezione-scura::before { content: ""; position: absolute; top: 0; left: 50%; width: min(900px, 90%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(var(--rgb-secondario), .5), transparent); }
.sezione-testa { max-width: 800px; margin: 0 auto clamp(48px, 6vw, 76px); text-align: center; }
.sezione-testa p:not(.sopratitolo) { margin-top: 22px; color: var(--testo-2); font-size: 1.13rem; }

/* Cosa fa */
.servizi { display: grid; grid-template-columns: repeat(auto-fit, minmax(256px, 1fr)); gap: 18px; }
.carta {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 0%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 28px 26px 30px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02));
  border: 1px solid var(--bordo);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .45s ease, border-color .3s, opacity .9s cubic-bezier(.2, .7, .2, 1) var(--ritardo, 0s), translate .9s cubic-bezier(.2, .7, .2, 1) var(--ritardo, 0s);
}
.carta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--rgb-chiaro), .24), transparent 45%); opacity: 0; transition: opacity .35s; }
.carta:hover { border-color: rgba(var(--rgb-secondario), .38); }
.carta:hover::before { opacity: 1; }
.carta-icona { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 22px; border-radius: 17px; background: linear-gradient(135deg, rgba(var(--rgb-accento), .95), rgba(var(--rgb-ponte), .75)); box-shadow: 0 12px 28px -10px rgba(var(--rgb-accento), .9), inset 0 1px 0 rgba(255, 255, 255, .3); }
.carta-icona svg { width: 27px; height: 27px; color: #fff; }
.carta h3 { margin-bottom: 10px; font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.carta p { color: var(--testo-2); font-size: .97rem; line-height: 1.6; }

/* Ascolta */
.scenari-schede { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 38px; }
.scenari-schede button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  color: var(--testo-2);
  font: inherit; font-size: .95rem; font-weight: 500;
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s, box-shadow .25s;
}
.scenari-schede button:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.scenari-schede button[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, rgba(var(--rgb-accento), .38), rgba(var(--rgb-ponte), .2)); border-color: rgba(var(--rgb-secondario), .55); box-shadow: 0 0 34px -8px rgba(var(--rgb-chiaro), .75); }
.scenari-schede svg { width: 20px; height: 20px; }
.scenari-audio { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: -16px 0 30px; text-align: center; }
.scenari-audio small { max-width: 520px; color: var(--testo-3); font-size: .8rem; }
.audio-interruttore {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(var(--rgb-secondario), .55);
  background: rgba(var(--rgb-secondario), .12);
  color: var(--testo);
  font: inherit; font-size: .95rem; font-weight: 600;
  cursor: pointer;
  transition: background .25s, border-color .25s, box-shadow .25s, color .25s;
}
.audio-interruttore:hover { background: rgba(var(--rgb-secondario), .22); }
.audio-interruttore svg { width: 20px; height: 20px; }
.audio-interruttore .audio-acceso, .audio-interruttore[aria-pressed="true"] .audio-spento { display: none; }
.audio-interruttore[aria-pressed="true"] .audio-acceso { display: inline; }
.audio-interruttore[aria-pressed="true"] { background: var(--gradiente-bottone); border-color: transparent; color: var(--testo-bottone); box-shadow: 0 10px 30px -10px rgba(var(--rgb-accento), .8); }
.onda.dal-vivo i { animation: none !important; transition: transform .07s linear; }
.scenari-scena { display: grid; gap: 24px; align-items: stretch; }
@media (min-width: 920px) { .scenari-scena { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.quinte { display: flex; flex-direction: column; min-width: 0; padding: 22px; border-radius: 30px; background: var(--notte-0); border: 1px solid var(--bordo); box-shadow: inset 0 0 70px rgba(var(--rgb-accento), .07); }
.quinte-testa { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); color: var(--testo-3); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.quinte-ripeti { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .15); background: none; color: var(--testo-2); font: inherit; letter-spacing: .08em; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.quinte-ripeti:hover, .quinte-ripeti.invita { color: #fff; border-color: rgba(var(--rgb-secondario), .55); background: rgba(var(--rgb-chiaro), .14); }
.quinte-ripeti svg { width: 14px; height: 14px; stroke-width: 2.2; }
.quinte-elenco { flex: 1; min-height: 340px; list-style: none; margin: 0; padding: 16px 0 0; display: flex; flex-direction: column; gap: 11px; font-family: var(--mono); font-size: .82rem; line-height: 1.5; }
.quinte-elenco li { display: grid; grid-template-columns: 44px 22px minmax(0, 1fr); gap: 8px; align-items: start; color: rgba(var(--rgb-testo), .85); animation: compare .4s ease-out both; }
.quinte-elenco time { color: var(--testo-3); font-variant-numeric: tabular-nums; }
.quinte-elenco .segno { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font-size: .74rem; font-weight: 700; }
.quinte-elenco .testo { overflow-wrap: anywhere; }
.quinte-elenco .in .segno { background: rgba(var(--rgb-secondario), .15); color: var(--ciano); }
.quinte-elenco .fn .segno { background: rgba(var(--rgb-chiaro), .2); color: var(--cielo); }
.quinte-elenco .fn .testo { color: rgba(var(--rgb-testo), .6); }
.quinte-elenco .fn .testo b { color: var(--ciano); font-weight: 500; }
.quinte-elenco .ok .segno { background: rgba(61, 220, 151, .16); color: #7fe8b9; }
.quinte-elenco .ok .testo { color: #b8f2d6; }
.quinte-elenco .info .segno { background: rgba(255, 255, 255, .08); color: var(--testo-2); }
.quinte-vuota { margin: auto; color: var(--testo-3); font-family: "DM Sans", sans-serif; font-size: .95rem; text-align: center; }

/* Numeri */
.numeri { padding: clamp(64px, 8vw, 96px) 0; border-block: 1px solid rgba(255, 255, 255, .06); background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(var(--rgb-accento), .1), transparent 70%); }
.numeri-griglia { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
@media (min-width: 860px) { .numeri-griglia { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.numero { text-align: center; }
.numero strong { display: block; font-size: clamp(2.8rem, 6vw, 4.5rem); font-weight: 500; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; background: var(--gradiente); -webkit-background-clip: text; background-clip: text; color: transparent; }
.numero > span { display: block; max-width: 230px; margin: 12px auto 0; color: var(--testo-2); font-size: .96rem; }

/* Come funziona */
.passi { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 40px 22px; }
@media (min-width: 640px) { .passi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .passi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .passi::before { content: ""; position: absolute; top: 32px; left: 12.5%; right: 12.5%; height: 2px; background: linear-gradient(90deg, rgba(var(--rgb-chiaro), .15), rgba(var(--rgb-secondario), .6), rgba(var(--rgb-chiaro), .15)); }
  .passi::after { content: ""; position: absolute; top: 28px; left: 12.5%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--ciano); box-shadow: 0 0 18px 5px rgba(var(--rgb-secondario), .8); animation: viaggia 7s ease-in-out infinite; }
}
@keyframes viaggia { 0%, 8% { left: 12.5%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 92%, 100% { left: 87.5%; opacity: 0; } }
.passo { position: relative; padding: 0 8px; text-align: center; }
.passo-numero { position: relative; z-index: 1; display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 24px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, var(--medio), color-mix(in srgb, var(--profondo) 70%, #000)); border: 1px solid rgba(var(--rgb-tenue), .55); font-size: 1.5rem; font-weight: 600; box-shadow: 0 0 0 8px rgba(var(--rgb-chiaro), .08), 0 0 44px -6px rgba(var(--rgb-chiaro), .85); }
.passo h3 { margin-bottom: 10px; font-size: 1.18rem; font-weight: 600; }
.passo p { color: var(--testo-2); font-size: .97rem; }

/* Pannello */
.pannello-griglia { display: grid; gap: 60px; align-items: center; }
@media (min-width: 1040px) { .pannello-griglia { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.pannello-testo h2 { margin-bottom: 20px; }
.pannello-testo > p:not(.sopratitolo) { color: var(--testo-2); font-size: 1.1rem; }

.schermo {
  overflow: hidden;
  border-radius: 20px;
  background: var(--notte-2);
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 60px 110px -40px rgba(0, 0, 0, .95), 0 0 100px -30px rgba(var(--rgb-accento), .65);
  transform: perspective(1600px) rotateY(-10deg) rotateX(5deg);
  transition: transform .9s cubic-bezier(.2, .7, .2, 1), opacity .9s cubic-bezier(.2, .7, .2, 1) var(--ritardo, 0s), translate .9s cubic-bezier(.2, .7, .2, 1) var(--ritardo, 0s);
}
.schermo:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }
@media (max-width: 1039px) { .schermo { transform: none; } }
.schermo-barra { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.schermo-barra i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.schermo-barra i:nth-child(2) { background: #febc2e; }
.schermo-barra i:nth-child(3) { background: #28c840; }
.schermo-barra span { margin-left: 12px; padding: 4px 14px; border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--testo-3); font-size: .74rem; }
.schermo-corpo { display: grid; grid-template-columns: 56px minmax(0, 1fr); min-height: 380px; }
.schermo-lato { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 14px 0; background: var(--notte-3); }
.schermo-lato img { width: 30px; height: 30px; margin-bottom: 8px; filter: brightness(0) invert(1); }
.schermo-lato span { width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, .12); }
.schermo-lato span.on { background: var(--blu-chiaro); box-shadow: 0 0 12px rgba(var(--rgb-chiaro), .8); }
.schermo-contenuto { min-width: 0; padding: 16px 18px; background: #edf1f8; color: #1d2433; }
.schermo-linguette { display: flex; gap: 16px; margin-bottom: 14px; overflow: hidden; border-bottom: 1px solid #d8dfeb; font-size: .74rem; }
.schermo-linguette b { padding-bottom: 8px; color: #6b778c; font-weight: 500; white-space: nowrap; }
.schermo-linguette b.on { color: var(--accento-scuro); border-bottom: 2px solid var(--blu); }
.schermo-righe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.schermo-carta { min-width: 0; padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: 0 2px 10px rgba(16, 32, 72, .08); }
.schermo-carta h4 { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; color: #1d2a44; font-size: .78rem; font-weight: 600; letter-spacing: 0; }
.schermo-carta h4 em { padding: 1px 7px; border-radius: 999px; background: var(--blu); color: #fff; font-size: .68rem; font-style: normal; transition: transform .3s; }
.schermo-carta h4 em.cresce { transform: scale(1.3); }
.schermo-agenda { grid-row: span 2; }
.msg { display: flex; align-items: center; gap: 6px; padding: 7px 0; border-top: 1px solid #edf1f7; color: #4a5670; font-size: .72rem; white-space: nowrap; overflow: hidden; }
.msg span { flex: none; padding: 2px 7px; border-radius: 6px; background: color-mix(in srgb, var(--accento) 10%, #fff); color: var(--accento-scuro); font-size: .62rem; font-weight: 600; }
.msg.nuovo { color: #1d2a44; font-weight: 600; }
.msg.nuovo::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--blu); }
.mini-agenda {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(6, 30px);
  gap: 4px;
  background: repeating-linear-gradient(180deg, transparent 0 33px, #eef2f8 33px 34px);
}
.mini-agenda span { grid-column: var(--c); grid-row: var(--r) / span var(--h); overflow: hidden; padding: 3px 5px; border-radius: 6px; border-left: 3px solid var(--blu); background: color-mix(in srgb, var(--accento) 15%, #fff); color: var(--accento-scuro); font-size: .58rem; font-weight: 500; white-space: nowrap; }
.mini-agenda span.ac { border-left-color: #1bb39a; background: #dff6f2; color: #0f5e52; }
.mini-agenda span.nuovo { border-left-color: #fff; background: var(--gradiente-bottone); color: #fff; box-shadow: 0 4px 14px rgba(var(--rgb-accento), .55); opacity: 0; transform: scale(.6); transition: opacity .5s, transform .5s cubic-bezier(.2, 1.4, .4, 1); }
.mini-agenda span.nuovo.mostra { opacity: 1; transform: none; }
.barre-chiamate { display: flex; align-items: flex-end; gap: 5px; height: 62px; }
.barre-chiamate i { flex: 1; height: calc(var(--v) * 100%); border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--medio), var(--blu)); transform-origin: bottom; animation: barra 3s ease-in-out infinite alternate; animation-delay: calc(var(--v) * -2s); }
@keyframes barra { from { transform: scaleY(.72); } }
.trascrizione { margin-top: 10px; overflow: hidden; color: #5d6a83; font-size: .66rem; font-style: italic; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 560px) {
  .schermo-righe { grid-template-columns: minmax(0, 1fr); }
  .schermo-agenda { grid-row: auto; }
  .schermo-corpo { grid-template-columns: 44px minmax(0, 1fr); }
  .schermo-lato img { width: 24px; height: 24px; }
  .schermo-lato span { width: 18px; height: 18px; }
}

/* Per chi */
.settori { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.settore { padding: 28px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .03); transition: border-color .3s, background .3s, opacity .9s cubic-bezier(.2, .7, .2, 1) var(--ritardo, 0s), translate .9s cubic-bezier(.2, .7, .2, 1) var(--ritardo, 0s); }
.settore:hover { border-color: rgba(var(--rgb-chiaro), .45); background: rgba(var(--rgb-chiaro), .06); }
.settore svg { width: 36px; height: 36px; margin-bottom: 18px; color: var(--cielo); stroke-width: 1.5; }
.settore h3 { margin-bottom: 8px; font-size: 1.15rem; font-weight: 600; }
.settore p { color: var(--testo-2); font-size: .96rem; }

/* Fiducia */
.fiducia { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 18px; }
.fiducia-voce { padding: 30px 26px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, .09); background: linear-gradient(180deg, rgba(var(--rgb-chiaro), .09), rgba(255, 255, 255, .015)); }
.fiducia-voce svg { width: 42px; height: 42px; margin-bottom: 20px; color: var(--ciano); stroke-width: 1.5; }
.fiducia-voce h3 { margin-bottom: 10px; font-size: 1.18rem; font-weight: 600; }
.fiducia-voce p { color: var(--testo-2); font-size: .96rem; }

/* Partner */
.partner {
  position: relative;
  display: grid;
  gap: 44px;
  align-items: center;
  overflow: hidden;
  padding: clamp(30px, 5vw, 64px);
  border-radius: 36px;
  border: 1px solid rgba(var(--rgb-tenue), .2);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(var(--rgb-ponte), .2), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(var(--rgb-accento), .25), transparent 55%),
    linear-gradient(160deg, var(--notte-3), var(--notte-2));
}
@media (min-width: 980px) { .partner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.partner-testo h2 { margin-bottom: 18px; }
.partner-testo > p:not(.sopratitolo) { color: var(--testo-2); font-size: 1.08rem; }
.partner .bottone { margin-top: 32px; }

.partner-rete { --r: 150px; position: relative; width: min(100%, calc(var(--r) * 2 + 130px)); aspect-ratio: 1; margin: auto; }
@media (max-width: 480px) { .partner-rete { --r: 112px; } }
.partner-rete::before { content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--r) * 2); height: calc(var(--r) * 2); translate: -50% -50%; border-radius: 50%; border: 1px dashed rgba(var(--rgb-tenue), .28); animation: gira 60s linear infinite; }
.rete-centro { position: absolute; left: 50%; top: 50%; z-index: 2; translate: -50% -50%; display: grid; place-items: center; width: 98px; height: 98px; border-radius: 50%; background: var(--gradiente-bottone); box-shadow: 0 0 0 12px rgba(var(--rgb-chiaro), .12), 0 0 0 26px rgba(var(--rgb-chiaro), .06), 0 0 60px rgba(var(--rgb-chiaro), .7); animation: respira 3.2s ease-in-out infinite; }
.rete-centro img { width: 58px; height: 58px; filter: brightness(0) invert(1); }
@keyframes respira { 50% { box-shadow: 0 0 0 16px rgba(var(--rgb-chiaro), .15), 0 0 0 36px rgba(var(--rgb-chiaro), .05), 0 0 84px rgba(var(--rgb-chiaro), .9); } }
.rete-nodo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  translate: -50% -50%;
  transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a)));
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--rgb-tenue), .32);
  background: rgba(var(--rgb-notte-2), .92);
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .7);
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
}
/* Il filo verso Leila, con la chiamata (il punto luminoso) che ci corre sopra. */
.rete-nodo::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: var(--r);
  height: 8px;
  margin-top: -4px;
  transform-origin: 0 50%;
  transform: rotate(calc(var(--a) + 180deg));
  background:
    radial-gradient(circle, color-mix(in srgb, var(--secondario) 70%, #fff) 0 2.5px, rgba(var(--rgb-secondario), 0) 4px) no-repeat,
    linear-gradient(90deg, transparent 52px, rgba(var(--rgb-tenue), .38) 52px, rgba(var(--rgb-tenue), .06)) 0 50% / 100% 1px no-repeat;
  background-size: 8px 8px, 100% 1px;
  animation: filo 3.2s ease-in infinite;
}
.rete-nodo:nth-of-type(2)::before { animation-delay: -.5s; }
.rete-nodo:nth-of-type(3)::before { animation-delay: -1.1s; }
.rete-nodo:nth-of-type(4)::before { animation-delay: -1.6s; }
.rete-nodo:nth-of-type(5)::before { animation-delay: -2.2s; }
.rete-nodo:nth-of-type(6)::before { animation-delay: -2.7s; }
@keyframes filo {
  from { background-position: 50px 50%, 0 50%; }
  to { background-position: calc(100% - 46px) 50%, 0 50%; }
}

/* Domande */
.domande { display: grid; gap: 12px; }
.domande details { border-radius: 18px; border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .035); transition: border-color .3s, background .3s; }
.domande details[open] { border-color: rgba(var(--rgb-chiaro), .38); background: rgba(var(--rgb-chiaro), .07); }
.domande summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; list-style: none; cursor: pointer; font-size: 1.08rem; font-weight: 500; }
.domande summary::-webkit-details-marker { display: none; }
.domande summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .08) var(--piu) center / 14px no-repeat; transition: transform .35s, background-color .35s; }
.domande details[open] summary::after { transform: rotate(45deg); background-color: rgba(var(--rgb-chiaro), .35); }
.domande details p { padding: 0 24px 22px; color: var(--testo-2); }
.domande details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s ease, content-visibility .35s allow-discrete; }
.domande details[open]::details-content { block-size: auto; }

/* Demo */
.demo { overflow: hidden; }
.demo-bagliore { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 50% at 15% 40%, rgba(var(--rgb-accento), .26), transparent 70%), radial-gradient(ellipse 50% 50% at 90% 85%, rgba(var(--rgb-ponte), .16), transparent 70%); }
.demo-griglia { position: relative; display: grid; gap: 50px; align-items: start; }
@media (min-width: 1000px) { .demo-griglia { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }
.demo-testo h2 { margin-bottom: 20px; }
.demo-testo > p:not(.sopratitolo) { color: var(--testo-2); font-size: 1.1rem; }
.demo-contatti { display: flex; flex-direction: column; gap: 6px; margin-top: 36px; }
.demo-contatti a { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 500; letter-spacing: -.01em; text-decoration: none; transition: color .2s; }
.demo-contatti a:hover { color: var(--cielo); }
.demo-contatti svg { width: 30px; height: 30px; color: var(--ciano); }
.demo-contatti span { padding-left: 42px; color: var(--testo-3); font-size: .95rem; }

.modulo { position: relative; padding: clamp(22px, 4vw, 40px); border-radius: 30px; border: 1px solid rgba(var(--rgb-tenue), .2); background: linear-gradient(160deg, rgba(var(--rgb-vetro), .72), rgba(var(--rgb-notte-2), .88)); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .85), 0 0 90px -30px rgba(var(--rgb-accento), .55); backdrop-filter: blur(14px); }
.modulo-scelta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 22px; padding: 5px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .25); }
.modulo-scelta label { position: relative; cursor: pointer; }
.modulo-scelta input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.modulo-scelta span { display: block; padding: 11px 8px; border-radius: 999px; color: var(--testo-2); font-size: .92rem; font-weight: 500; text-align: center; transition: background .25s, color .25s, box-shadow .25s; }
.modulo-scelta input:checked + span { background: linear-gradient(135deg, var(--blu), var(--blu-chiaro)); color: var(--testo-bottone); box-shadow: 0 6px 18px -6px rgba(var(--rgb-accento), .85); }
.modulo-scelta input:focus-visible + span { outline: 2px solid var(--ciano); outline-offset: 2px; }
.modulo-righe { display: grid; gap: 14px; }
@media (min-width: 600px) { .modulo-righe { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.campo-largo { grid-column: 1 / -1; }
.campo-modulo { position: relative; display: block; }
.campo-modulo input, .campo-modulo textarea {
  display: block;
  width: 100%;
  padding: 25px 16px 9px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(var(--rgb-notte-0), .55);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.campo-modulo textarea { min-height: 128px; resize: vertical; }
.campo-modulo input:focus, .campo-modulo textarea:focus { outline: none; border-color: rgba(var(--rgb-secondario), .75); box-shadow: 0 0 0 4px rgba(var(--rgb-chiaro), .2); background: rgba(var(--rgb-notte-0), .78); }
.campo-modulo span { position: absolute; left: 17px; top: 16px; max-width: calc(100% - 34px); overflow: hidden; color: var(--testo-3); font-size: 1rem; white-space: nowrap; text-overflow: ellipsis; pointer-events: none; transform-origin: left top; transition: transform .2s, color .2s; }
.campo-modulo input:focus + span, .campo-modulo input:not(:placeholder-shown) + span,
.campo-modulo textarea:focus + span, .campo-modulo textarea:not(:placeholder-shown) + span { transform: translateY(-9px) scale(.76); color: var(--cielo); }
.campo-modulo.errore input, .campo-modulo.errore textarea { border-color: rgba(255, 122, 138, .85); }
.esca { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.modulo-turnstile { margin-top: 16px; }
.modulo-turnstile:empty { display: none; }
.modulo-privacy { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; color: var(--testo-2); font-size: .9rem; cursor: pointer; }
.modulo-privacy input { appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .32); background: rgba(var(--rgb-notte-0), .55); cursor: pointer; transition: background-color .2s, border-color .2s; }
.modulo-privacy input:checked { border-color: var(--blu-chiaro); background: var(--blu) var(--spunta-bianca) center / 14px no-repeat; }
.modulo-privacy.errore input { border-color: rgba(255, 122, 138, .9); }
.modulo-privacy a { color: var(--cielo); }
.modulo-nota { margin: 12px 0 20px; color: var(--testo-3); font-size: .82rem; }
.modulo-esito { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; padding: 16px 18px; border-radius: 16px; scroll-margin-top: 100px; }
.modulo-esito svg { flex: none; width: 26px; height: 26px; }
.modulo-esito strong { display: block; }
.modulo-esito span { color: var(--testo-2); font-size: .93rem; }
.modulo-ok { border: 1px solid rgba(61, 220, 151, .42); background: rgba(61, 220, 151, .1); }
.modulo-ok svg { color: #7fe8b9; }
.modulo-errore { border: 1px solid rgba(255, 107, 129, .42); background: rgba(255, 107, 129, .1); }
.modulo-errore svg { color: #ff9fae; }
.modulo.inviato > :not(.modulo-ok) { display: none; }
.modulo.inviato .modulo-ok { margin: 0; padding: 34px 26px; font-size: 1.1rem; animation: compare .5s ease-out both; }
.modulo.inviato .modulo-ok svg { width: 40px; height: 40px; }

/* ------------------------------------------------------------------ piede */

.piede { position: relative; padding: 64px 0 36px; border-top: 1px solid rgba(255, 255, 255, .08); background: var(--notte-piede); }
.piede-griglia { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; }
.piede-marchio p { margin-top: 12px; color: var(--testo-3); font-size: .96rem; }
.piede-blusfera { display: flex; align-items: center; gap: 14px; color: var(--testo-3); font-size: .85rem; }
.piede-blusfera img { width: 140px; opacity: .9; transition: opacity .2s; }
.piede-blusfera a:hover img { opacity: 1; }
.piede-fondo { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .06); color: var(--testo-3); font-size: .84rem; }
.piede-fondo a { color: var(--testo-2); text-decoration: none; }
.piede-fondo a:hover { color: #fff; }

/* ------------------------------------------------------------------ pagine di testo (privacy, 404) */

.legale { padding: 140px 0 96px; }
.legale h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.03em; margin-bottom: 12px; }
.legale .aggiornata { color: var(--testo-3); font-size: .92rem; margin-bottom: 40px; }
.legale h2 { margin: 48px 0 14px; font-size: 1.45rem; letter-spacing: -.01em; }
.legale p, .legale li { color: var(--testo-2); }
.legale p + p { margin-top: 14px; }
.legale ul { padding-left: 22px; margin: 12px 0 0; display: grid; gap: 8px; }
.legale a { color: var(--cielo); }
.legale strong { color: #fff; font-weight: 600; }
.legale code { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); font-family: var(--mono); font-size: .88em; color: var(--cielo); }
.legale table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: .94rem; }
.legale th, .legale td { padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); text-align: left; vertical-align: top; color: var(--testo-2); }
.legale th { color: #fff; font-weight: 600; }
.legale .scorrevole { overflow-x: auto; }
.legale .scorrevole + p { margin-top: 18px; }
@media (max-width: 600px) {
  .legale thead { display: none; }
  .legale tr { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .legale td { display: block; padding: 3px 0; border: 0; }
  .legale td::before { content: attr(data-etichetta); display: block; color: #fff; font-size: .8rem; font-weight: 600; }
}

.introvabile { min-height: 100svh; display: grid; place-items: center; padding: 120px 0 80px; text-align: center; background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(var(--rgb-accento), .25), transparent 70%), var(--notte-1); }
.introvabile .codice { font-size: clamp(5rem, 18vw, 10rem); font-weight: 500; line-height: 1; letter-spacing: -.05em; background: var(--gradiente); -webkit-background-clip: text; background-clip: text; color: transparent; }
.introvabile h1 { margin: 10px 0 14px; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.introvabile p { color: var(--testo-2); margin-bottom: 30px; }
.introvabile .onda { height: 54px; margin: 0 0 26px; }

/* ------------------------------------------------------------------ meno movimento */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .onda i { transform: scaleY(calc(var(--h) * .5)); }
}
