/* ==========================================================================
   MAXWEBDESIGN - stile "Aura": fondo scuro, video, vetro liquido, Inter
   01. Token e base
   02. Primitive (pillole, occhiello, vetro liquido, titolo lucido)
   03. Sfondo e guide
   04. Navbar e menu
   05. Hero e barra macOS
   06. Finestra dei lavori
   07. Sezioni: perché, come funziona, chi sono
   08. Prezzi (c3)
   09. Contatti, footer, barra WhatsApp
   10. Entrate e movimento ridotto
   11. Telefono leggero
   12. Casi limite
   13. Tablet
   14. Domande e giro dei lavori
   ========================================================================== */

/* 01. TOKEN E BASE --------------------------------------------------------- */

:root {
  --fondo: #0c0c0c;
  --brand: #3D81E3;

  /* scala del bianco (DESIGN.md, Alpha Ladder): ruoli, non numeri a caso.
     Il minimo per il testo e' 0.55: su Notte Fonda vale circa 6:1 */
  --testo: #ffffff;
  --testo-forte: rgba(255, 255, 255, 0.85);
  --testo-corpo: rgba(255, 255, 255, 0.75);
  --testo-secondario: rgba(255, 255, 255, 0.65);
  --testo-nota: rgba(255, 255, 255, 0.55);
  --filo: rgba(255, 255, 255, 0.1);
  --filo-forte: rgba(255, 255, 255, 0.15);
  --vetro: rgba(12, 12, 12, 0.42);
  --superficie: rgba(255, 255, 255, 0.05);
  --superficie-forte: rgba(255, 255, 255, 0.07);
  --superficie-attiva: rgba(255, 255, 255, 0.12);
  /* velo e ombra per il testo che sta direttamente sopra il video */
  --velo-video: rgba(12, 12, 12, 0.38);
  --ombra-testo: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 28px rgba(0, 0, 0, 0.5);
  --contenitore: 72rem;
  --lato: 1.5rem;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --barra-h: 0px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--fondo);
  color: #fff;
  font-size: 1rem;
  line-height: 1.5;
}

::selection { background: rgba(61, 129, 227, 0.3); }

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

[id] { scroll-margin-top: 24px; }

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 6px;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 300;
  background: #fff;
  color: #000;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: top 0.25s var(--ease);
}
.skip:focus { top: 12px; }

.radice {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--fondo);
  color: #fff;
}

.contenitore {
  width: 100%;
  max-width: var(--contenitore);
  margin-inline: auto;
  padding-inline: var(--lato);
}

main,
.nav,
.footer { position: relative; z-index: 10; }

.ico,
.ico-pieno {
  width: 1rem;
  height: 1rem;
  flex: none;
}
.ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-pieno { fill: currentColor; }
.ico--mini { width: 0.875rem; height: 0.875rem; }

/* 02. PRIMITIVE ------------------------------------------------------------ */

/* pillola bianca: l'azione principale (AppleButton) */
.pillola {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.pillola:hover { background: rgba(255, 255, 255, 0.9); }
.pillola:active { transform: scale(0.98); }
.pillola__freccia { transition: transform 0.2s var(--ease); }
.pillola:hover .pillola__freccia,
.pillola-contorno:hover .pillola__freccia { transform: translateX(1px); }

.pillola-contorno {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--filo-forte);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease);
}
.pillola-contorno:hover { background: var(--superficie); }
.pillola--piena { width: 100%; }

/* occhiello (SectionEyebrow) */
.occhiello {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
}
.occhiello__punto {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: #fff;
}
/* vetro liquido */
.liquid-glass {
  background: var(--vetro);
  background-blend-mode: luminosity;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.15) 20%,
      rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 60%,
      rgba(255, 255, 255, 0.15) 80%, rgba(255, 255, 255, 0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* titolo lucido */
.shiny {
  /* niente estremi blu notte: il punto piu' scuro (#3D81E3) resta sopra 4,5:1
     sul fondo, cosi' nessuna lettera sparisce, nemmeno ad animazione ferma */
  background-image: linear-gradient(to right, #3D81E3 0%, #00d2ff 25%, #A4F4FD 50%, #00d2ff 75%, #3D81E3 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: url(#c3-noise);
}
.animate-shiny { animation: shiny 6s linear infinite; }
@keyframes shiny {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* 03. SFONDO E GUIDE ------------------------------------------------------- */

/* copertina = primo fotogramma del video, sempre presente anche senza video */
.sfondo-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--fondo) url("../img/fondo-telefono.jpg") center / cover no-repeat;
}
@media (min-width: 768px) {
  .sfondo-video { background-image: url("../img/fondo-desktop.jpg"); }
}
.sfondo-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease-out;
}
.sfondo-video video.is-pronto { opacity: 1; }
/* velo leggero: il nastro di luce resta, ma il suo nucleo bianco non
   cancella piu' il testo che ci passa sopra */
.sfondo-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--velo-video);
}

/* testo che sta direttamente sul video, fuori dalle card */
.hero__titolo,
.hero__testo,
.hero__nota,
.titolo-sezione,
.testo-sezione,
.occhiello,
.c3-watermark-main {
  text-shadow: var(--ombra-testo);
}
/* sul testo in sfumatura l'ombra coprirebbe la sfumatura stessa */
.shiny,
.c3-watermark-line-2 { text-shadow: none; }
@media (max-width: 1024px) {
  .c3-watermark-line-2 { text-shadow: var(--ombra-testo); }
}

.guida {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--superficie-attiva);
  z-index: 5;
  pointer-events: none;
}
.guida--sx { transform: translateX(calc(-50% - 36rem)); }
.guida--dx { transform: translateX(calc(-50% + 36rem)); }
@media (min-width: 768px) { .guida { display: block; } }

/* 04. NAVBAR E MENU -------------------------------------------------------- */

.nav__riga {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.nav__logo {
  display: inline-flex;
  padding: 6px;
  margin: -6px;
  color: #fff;
  border-radius: 8px;
}
.logo-mark { width: 2rem; height: 2rem; color: #fff; }

.nav__link { display: none; }
.nav__link a {
  color: var(--testo-corpo);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav__link a:hover { color: #fff; }

.nav__cta { display: none; }

.nav__menu {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--filo);
  background: var(--superficie);
  color: #fff;
  cursor: pointer;
  padding: 0;
}
.nav__menu .ico { width: 1.125rem; height: 1.125rem; }

@media (min-width: 768px) {
  .nav__link { display: flex; gap: 2rem; }
  .nav__cta { display: inline-flex; }
  .nav__menu { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .nav__link { gap: 1.25rem; }
}

.menu-mobile {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12, 12, 12, 0.97);
  display: flex;
  flex-direction: column;
  padding: 1.25rem var(--lato) calc(2rem + env(safe-area-inset-bottom, 0px));
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
}
.menu-mobile[data-aperto="true"] {
  transform: none;
  visibility: visible;
  transition: transform 0.45s var(--ease), visibility 0s;
}
.menu-mobile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.menu-mobile nav {
  display: flex;
  flex-direction: column;
  margin: auto 0;
}
.menu-mobile nav a {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--filo);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-decoration: none;
}
.menu-mobile__azioni { display: grid; gap: 0.75rem; }

/* 05. HERO E BARRA MACOS --------------------------------------------------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 5rem;
}
@media (min-width: 768px) { .hero { padding-top: 7rem; } }

/* il telefono e' la versione vera: il titolo non si rimpicciolisce a 36px */
.hero__titolo {
  font-size: clamp(2.75rem, 11vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.9;
}
.hero__riga { display: block; }
/* il gradiente con il filtro di grana taglia le discendenti: un filo di spazio */
.hero__riga.shiny { padding-bottom: 0.08em; }

.hero__testo {
  margin-top: 2rem;
  max-width: 28rem;
  color: var(--testo-forte);
  font-size: 1rem;
  line-height: 1.5;
}

.hero__azioni {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.hero__nota {
  font-size: 0.875rem;
  color: var(--testo-secondario);
}

/* la barra macOS e' decorazione da schermo grande: sul telefono non c'e' */
.barra-mac { display: none; }
@media (min-width: 768px) { .barra-mac { display: block; } }
.barra-mac {
  height: 2.5rem;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--filo);
  border-bottom: 1px solid var(--filo);
  position: relative;
  z-index: 10;
}
.barra-mac__riga {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}
.barra-mac__sx,
.barra-mac__dx {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--testo-forte);
  white-space: nowrap;
}
.barra-mac__dx { gap: 0.625rem; }
.barra-mac__sx strong { color: #fff; font-weight: 700; }
.barra-mac__sx span,
.barra-mac__dx span:first-child { color: var(--testo-secondario); }
.barra-mac__logo { width: 0.875rem; height: 0.875rem; color: #fff; }

/* 06. FINESTRA DEI LAVORI -------------------------------------------------- */

.finestra-sezione { padding-block: 4rem; }
@media (min-width: 768px) { .finestra-sezione { padding-block: 6rem; } }

.finestra {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--filo);
  background: rgba(14, 16, 20, 0.9);
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
}

.finestra__barra {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding-inline: 1rem;
  border-bottom: 1px solid var(--filo);
}
.semaforo {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
}
.finestra__titolo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--testo-nota);
  white-space: nowrap;
}

.finestra__corpo { display: grid; }
@media (min-width: 768px) {
  .finestra__corpo {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    height: 520px;
  }
}

/* barra laterale: solo "per chi", da 1024px */
.lato { display: none; }
@media (min-width: 1024px) {
  .lato {
    display: flex;
    flex-direction: column;
    grid-column: span 3;
    padding: 1.25rem 1rem;
    border-right: 1px solid var(--filo);
    background: rgba(0, 0, 0, 0.3);
    min-width: 0;
  }
}
.lato__titoletto {
  padding-inline: 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--testo-nota);
}
.lato__elenco {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.125rem;
}
/* testo semplice, non righe di menu: "Per chi" non si clicca e non deve sembrarlo */
.lato__elenco li {
  padding: 0.125rem 0.625rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--testo-corpo);
}
.lato__piede {
  margin-top: auto;
  padding-inline: 0.625rem;
  font-size: 0.75rem;
  color: var(--testo-nota);
}

/* elenco */
.elenco {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--filo);
}
@media (min-width: 768px) {
  .elenco {
    grid-column: span 5;
    border-bottom: none;
    border-right: 1px solid var(--filo);
    overflow-y: auto;
  }
}
@media (min-width: 1024px) { .elenco { grid-column: span 4; } }
.messaggio {
  display: grid;
  gap: 0.125rem;
  width: 100%;
  padding: 0.875rem 1rem;
  border: none;
  border-bottom: 1px solid var(--filo);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.messaggio:hover { background: var(--superficie); }
.messaggio.is-attivo { background: var(--superficie-forte); }
.messaggio__nome {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
}
.messaggio__oggetto {
  font-size: 0.8125rem;
  color: var(--testo-forte);
}
.messaggio__anteprima {
  font-size: 0.75rem;
  color: var(--testo-secondario);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.messaggio--tuo .messaggio__nome { color: #A4F4FD; }
.messaggio--tuo .messaggio__oggetto { color: #fff; font-weight: 500; }
.elenco__nota {
  margin-top: auto;
  padding: 1rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--testo-nota);
}

/* lettore */
.lettore { min-width: 0; }
@media (min-width: 768px) {
  .lettore {
    grid-column: span 7;
    overflow-y: auto;
  }
}
@media (min-width: 1024px) { .lettore { grid-column: span 5; } }
.lettore__pannello[hidden] { display: none; }
.lettore__strumenti {
  display: flex;
  align-items: center;
  height: 2.75rem;
  padding-inline: 1.25rem;
  border-bottom: 1px solid var(--filo);
}
.lettore__dominio {
  font-size: 0.75rem;
  color: var(--testo-nota);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* il lavoro scelto: nome, settore e link a sinistra, il sito vero in un telefono */
.lettore__corpo {
  padding: 1.25rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .lettore__corpo {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}
.lettore__testa h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.lettore__testa p {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--testo-secondario);
}
.lettore__visita { margin-top: 1.25rem; }

.telefono {
  justify-self: center;
  width: min(15rem, 72%);
  aspect-ratio: 390 / 844;
  padding: 6px;
  border-radius: 30px;
  background: #050505;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
@media (min-width: 768px) {
  .telefono { width: auto; height: 420px; }
}
.telefono img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 24px;
}

/* 07. SEZIONI -------------------------------------------------------------- */

.sezione { padding-block: 5rem; }
@media (min-width: 768px) { .sezione { padding-block: 7rem; } }
.sezione--bordo { border-top: 1px solid var(--filo); }

.due-colonne {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 768px) {
  .due-colonne { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; }
  .due-colonne--centro { align-items: center; }
}

.titolo-sezione {
  margin-top: 1.25rem;
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.02;
  text-wrap: balance;
}
@media (min-width: 768px) { .titolo-sezione { font-size: 3rem; } }

.testo-sezione {
  margin-top: 1.5rem;
  max-width: 28rem;
  color: var(--testo-secondario);
  font-size: 1rem;
  line-height: 1.6;
}
.testo-sezione + .testo-sezione { margin-top: 1rem; }
.testo-sezione__azione { margin-top: 2rem; }

/* luce spenta / luce accesa: un solo pannello, due lati */
.confronto {
  border-radius: 1rem;
  padding: 1.5rem;
  display: grid;
  gap: 1.5rem;
}
.confronto__lato + .confronto__lato {
  padding-top: 1.5rem;
  border-top: 1px solid var(--filo);
}
.confronto__titolo {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--testo-secondario);
}
.confronto__lato--accesa .confronto__titolo { color: #fff; }
.confronto ul {
  margin-top: 0.875rem;
  display: grid;
  gap: 0.625rem;
}
.confronto li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--testo-secondario);
}
.confronto li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.5rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}
.confronto__lato--accesa li { color: var(--testo-forte); }
.confronto__lato--accesa li::before { background: #fff; }

/* come funziona */
.intestazione { margin-bottom: 3rem; }
.passi {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .passi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .passi { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; } }
.passo {
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.passo__numero {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: var(--testo-nota);
}
.passo h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.passo p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--testo-corpo);
}

/* chi sono */
.biglietto {
  border-radius: 1rem;
  padding: 1.5rem;
}
.biglietto__testa {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--filo);
}
.biglietto__marchio {
  width: 3.5rem;
  height: 3.5rem;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: var(--superficie-forte);
}
.biglietto__testa p { display: grid; font-size: 0.875rem; }
.biglietto__testa strong { font-size: 1rem; font-weight: 600; }
.biglietto__testa p span { color: var(--testo-nota); }
.biglietto__righe {
  margin-top: 0.75rem;
  display: grid;
}
.biglietto__righe a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  font-size: 0.875rem;
  color: var(--testo-forte);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.biglietto__righe a:hover { color: #fff; }

/* 08. PREZZI (c3) ---------------------------------------------------------- */

.c3-pricing-section {
  position: relative;
  z-index: 10;
  padding: 40px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}
.c3-watermark-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  text-align: center;
  margin-top: 40px;
  z-index: 2;
}
/* la filigrana e' il titolo della sezione, non una copia dell'hero */
/* titolo della sezione prezzi: grande, ma mai piu' del titolo principale */
.c3-watermark-main {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  filter: url(#c3-noise-prezzi);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.c3-watermark-line-1 { color: #fff; }
.c3-watermark-line-2 {
  background: linear-gradient(to right, #3D81E3 0%, #00d2ff 50%, #A4F4FD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.06em;
}

/* due piani: il sito una volta sola (principale) e l'aggiornamento mensile */
.c3-piani {
  width: 100%;
  max-width: 880px;
  margin-top: 48px;
  display: grid;
  gap: 24px;
  position: relative;
  z-index: 3;
}
@media (min-width: 768px) {
  .c3-piani { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
.c3-card {
  width: 100%;
  z-index: 3;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  -webkit-backdrop-filter: blur(14px) brightness(0.91);
  backdrop-filter: blur(14px) brightness(0.91);
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 44px;
  padding: 50px 28px 40px;
  display: flex;
  flex-direction: column;
  transition: transform 0.6s cubic-bezier(.22, 1, .36, 1);
  overflow: hidden;
  position: relative;
}
.c3-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
}
/* il piano mensile e' secondario: bordo leggero, nessun pulsante suo */
.c3-card--mese {
  border-color: var(--filo-forte);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.35));
}
.c3-periodo {
  font-size: 0.45em;
  font-weight: 500;
  color: var(--testo-secondario);
  margin-left: 0.15em;
}
.c3-tier-small {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--testo-secondario);
}
.c3-tier-large {
  font-size: 2.8rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  margin-top: 8px;
  line-height: 1.1;
}
.c3-desc {
  font-size: 0.88rem;
  color: var(--testo-secondario);
  margin-top: 12px;
  margin-bottom: 32px;
  line-height: 1.5;
}
.c3-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.92rem;
  color: var(--testo-forte);
  margin-bottom: 18px;
  line-height: 1.4;
}
.c3-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--superficie-attiva);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  margin-top: -4px;
}
.c3-extra {
  margin-top: 8px;
  margin-bottom: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--filo-forte);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--testo-secondario);
}
.c3-extra strong { color: #fff; font-weight: 600; }
.c3-btn {
  gap: 0.5rem;
  background: #fff;
  color: #000;
  padding: 10px 32px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: auto;
  border: none;
  cursor: pointer;
  align-self: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(.22, 1, .36, 1);
}
.c3-btn:hover {
  background: #f5f5f5;
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

@media (max-width: 1024px) {
  .c3-watermark-main { font-size: 3.5rem; filter: none; }
  .c3-watermark-line-2 {
    background: none;
    -webkit-text-fill-color: #00d2ff;
    color: #00d2ff;
  }
}

/* 09. CONTATTI, FOOTER, BARRA WHATSAPP -------------------------------------- */

.cta-finale { padding-block: 5rem; }
@media (min-width: 768px) { .cta-finale { padding-block: 8rem; } }
.cta-finale__card {
  border-radius: 1.5rem;
  padding: 4rem 2rem;
  text-align: center;
}
@media (min-width: 768px) { .cta-finale__card { padding-block: 6rem; } }
.cta-finale__luce {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at 50% 0%, rgba(255, 255, 255, 0.15), transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}
.cta-finale__titolo {
  position: relative;
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
@media (min-width: 768px) { .cta-finale__titolo { font-size: 3.75rem; } }
.cta-finale__testo {
  position: relative;
  margin: 1.5rem auto 0;
  max-width: 28rem;
  color: var(--testo-secondario);
  font-size: 0.875rem;
  line-height: 1.6;
}
.cta-finale__azioni {
  position: relative;
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.footer {
  border-top: 1px solid var(--filo);
  background: rgba(12, 12, 12, 0.6);
}
.footer__riga {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  font-size: 0.75rem;
  color: var(--testo-nota);
}
.footer__ig {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer__ig:hover { color: #fff; }

.barra-wa { display: none; }
@media (max-width: 767px) {
  :root { --barra-h: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .radice { padding-bottom: var(--barra-h); }

  .barra-wa {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.5rem 0.5rem 1.125rem;
    border-radius: 999px;
    background: rgba(12, 12, 12, 0.7);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), visibility 0s linear 0s;
  }
  .barra-wa.is-nascosta {
    transform: translateY(calc(100% + 1rem));
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .barra-wa { gap: 0.5rem; padding-left: 0.875rem; }
  .barra-wa .pillola { padding-inline: 0.875rem; }
  .barra-wa__prezzo {
    display: grid;
    white-space: nowrap;
    font-size: 0.75rem;
    line-height: 1.3;
    color: var(--testo-secondario);
  }
  .barra-wa__prezzo strong { font-size: 0.9375rem; font-weight: 600; color: #fff; }
}
@media (max-width: 339px) {
  .barra-wa__prezzo { display: none; }
  .barra-wa .pillola { flex: 1; }
}

/* 10. ENTRATE E MOVIMENTO RIDOTTO ------------------------------------------ */

/* entrata al caricamento (motion: opacity 0 -> 1, y -10/20 -> 0) */
.entra {
  animation: entra 0.6s ease-out both;
  animation-delay: var(--d, 0s);
}
.entra--lento { animation-duration: 0.8s; animation-timing-function: var(--ease); }
.entra--su { animation-name: entra-su; animation-duration: 0.8s; animation-timing-function: var(--ease); }
.nav.entra { animation-name: entra-giu; }
@keyframes entra {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
@keyframes entra-giu {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}
@keyframes entra-su {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}

/* entrata quando arriva sullo schermo (whileInView): solo con JS attivo */
.js .in-vista {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .in-vista.is-visto { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .js .in-vista { opacity: 1; transform: none; }
}

/* 11. TELEFONO LEGGERO ------------------------------------------------------ */

/* sul telefono niente sfocature ricalcolate sopra il video a ogni fotogramma:
   il vetro diventa un fondo scuro semitrasparente (resta la barra WhatsApp) */
@media (max-width: 767px) {
  .liquid-glass:not(.barra-wa) {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(12, 12, 12, 0.55);
  }
  .finestra {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(14, 16, 20, 0.96);
  }
  .c3-card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.65));
  }
  /* la grana SVG sul titolo animato si ricalcola a ogni fotogramma */
  .shiny { filter: none; }
}

/* 12. CASI LIMITE ----------------------------------------------------------- */

/* nella finestra dei lavori l'elenco scorre e taglierebbe il contorno esterno */
.messaggio:focus-visible {
  outline-offset: -3px;
  border-radius: 8px;
}

/* telefoni stretti o testo ingrandito al 200%: le pillole vanno a capo
   invece di uscire dallo schermo */
@media (max-width: 359px) {
  .pillola,
  .pillola-contorno {
    white-space: normal;
    text-align: center;
  }
}

/* modalita' contrasto elevato (Windows): il vetro non ha bordi veri,
   senza questo le card sparirebbero nel fondo */
@media (forced-colors: active) {
  .liquid-glass,
  .finestra,
  .c3-card,
  .telefono {
    border: 1px solid CanvasText;
  }
  .liquid-glass::before { display: none; }
  .shiny,
  .c3-watermark-line-2 {
    background: none;
    -webkit-text-fill-color: CanvasText;
    color: CanvasText;
  }
  .sfondo-video { display: none; }
}

/* sotto i 360px (telefoni piccoli o testo ingrandito) i titoli grandi
   scalano con lo schermo; se una parola non ci sta, va comunque a capo */
h1, h2, h3 {
  overflow-wrap: break-word;
  hyphens: auto;
}
@media (max-width: 359px) {
  .hero__titolo { font-size: clamp(1.5rem, 12.5vw, 2.75rem); }
  .titolo-sezione { font-size: clamp(1.25rem, 8.5vw, 1.875rem); }
  .cta-finale__titolo { font-size: clamp(1.5rem, 10vw, 2.25rem); }
  .c3-watermark-main { font-size: clamp(1.75rem, 15vw, 3.5rem); }
  .c3-tier-large { font-size: clamp(1.75rem, 12vw, 2.8rem); }
}

/* l'indirizzo email e' una parola lunga sola: non deve allargare la colonna */
.due-colonne > *,
.biglietto__testa p { min-width: 0; }
.biglietto__righe a { overflow-wrap: anywhere; }

/* la nota sotto il pulsante va a capo tra i pezzi, mai dentro una frase */
.hero__nota span { white-space: nowrap; }

/* 13. TABLET ---------------------------------------------------------------- */

/* tra 768 e 1023px il lettore e' largo ~410px: accanto al telefono restavano
   142px per nome e pulsante. Qui le informazioni vanno in una riga sopra
   (nome e settore a sinistra, "Visita il sito" a destra) e il telefono sotto */
@media (min-width: 768px) and (max-width: 1023px) {
  .lettore__corpo {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .lettore__testa {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 1rem;
  }
  .lettore__testa h3,
  .lettore__testa p { grid-column: 1; }
  .lettore__visita {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
  }
  .telefono { height: 328px; }
}

/* telefono in orizzontale (schermo basso e largo): meno aria sopra l'hero,
   cosi' titolo e pulsante stanno quasi nel primo schermo */
@media (orientation: landscape) and (max-height: 500px) {
  .hero { padding-top: 2rem; padding-bottom: 3rem; }
  .hero__testo { margin-top: 1.25rem; }
  .hero__azioni { margin-top: 1.25rem; }
}

/* 14. DOMANDE E GIRO DEI LAVORI -------------------------------------------- */

/* i dubbi sotto il prezzo: pannello di vetro scuro, una domanda alla volta */
.domande {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 880px;
  margin-top: 40px;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--vetro);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 1px var(--filo);
}
.domande__titolo {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}
.domanda { border-top: 1px solid var(--filo); }
.domanda summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  padding-block: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.domanda summary::-webkit-details-marker { display: none; }
.domanda summary::after {
  content: '+';
  flex: none;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--testo-secondario);
  transition: transform 0.25s var(--ease);
}
.domanda[open] summary::after { transform: rotate(45deg); }
.domanda summary:focus-visible { outline-offset: -2px; border-radius: 8px; }
.domanda p {
  padding-bottom: 1rem;
  max-width: 62ch;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--testo-corpo);
}
@media (max-width: 767px) {
  .domande { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(12, 12, 12, 0.6); }
}

/* precedente / successivo: solo sul telefono, dove l'elenco resta sopra */
.lettore__giro { display: none; }
@media (max-width: 767px) {
  .lettore__giro {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 1.25rem 1.25rem;
  }
  .lettore__giro .pillola-contorno { flex: 1; }
}
.lettore__giro-indietro { transform: rotate(180deg); }
/* sono <button>: tolgo lo sfondo grigio e il font di sistema del browser */
.lettore__giro .pillola-contorno {
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}
.lettore__giro .pillola-contorno:hover { background: var(--superficie); }
