/* scadeo.app — un solo foglio di stile. Niente script, niente cookie, niente
   risorse esterne: font e immagini sono serviti dal sito stesso. */

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("font/poppins-regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("font/poppins-medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("font/poppins-semibold.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("font/poppins-bold.woff2") format("woff2"); }

:root {
  --notte: #0a0b15;
  --notte-2: #11132a;
  --vetro: rgba(255, 255, 255, 0.045);
  --vetro-forte: rgba(255, 255, 255, 0.08);
  --bordo: rgba(255, 255, 255, 0.09);
  --testo: #eceef8;
  --testo-2: #a9aecb;
  --testo-3: #8187a8;
  --lavanda: #b9c2ff;
  --teal: #5fd3c6;
  --indaco: #6b76d6;
  --ambra: #ffb74d;
  --verde: #6fcf7c;
  --sfumatura: linear-gradient(100deg, #7fe0d4 0%, #b9c2ff 55%, #e3b8ff 100%);
  --raggio: 22px;
  --larghezza: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--notte);
  color: var(--testo);
  font: 400 17px/1.65 "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
/* Icone dallo sprite in testa alla pagina: tratto, colore del testo. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
svg.s { fill: currentColor; }
a { color: var(--lavanda); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }
.salta { position: absolute; left: -999px; top: 8px; background: var(--testo); color: var(--notte); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.salta:focus { left: 12px; }
.contenitore { max-width: var(--larghezza); margin: 0 auto; padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px)); }
/* Con viewport-fit=cover: la fascia sopra la barra in alto ha il suo colore. */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--notte); }

/* ── Aurora di sfondo ─────────────────────────────────────────────────── */
.aurora { position: relative; isolation: isolate; }
.aurora::before {
  content: ""; position: absolute; inset: -20% 0 auto 0; height: 900px; z-index: -1;
  background:
    radial-gradient(40% 50% at 18% 30%, rgba(95, 211, 198, 0.20), transparent 70%),
    radial-gradient(45% 55% at 82% 20%, rgba(107, 118, 214, 0.30), transparent 70%),
    radial-gradient(35% 40% at 60% 75%, rgba(227, 184, 255, 0.12), transparent 70%);
  pointer-events: none;
}
.griglia::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
}

/* ── Barra in alto ────────────────────────────────────────────────────── */
.testata { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); background: rgba(10, 11, 21, 0.72); border-bottom: 1px solid transparent; }
.testata .contenitore { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.marchio { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--lavanda); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.04em; }
.marchio img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 6px 18px rgba(0,0,0,0.45); }
.menu { display: flex; align-items: center; gap: 6px; }
.menu a { color: var(--testo-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 10px 12px; border-radius: 12px; }
.menu a:hover { color: var(--testo); background: var(--vetro); }
.menu a[aria-current="page"] { color: var(--testo); }
.menu .bottone { margin-left: 6px; }
.menu .bottone-pieno, .menu .bottone-pieno:hover { color: #0b0c16; background: var(--sfumatura); }
@media (max-width: 720px) { .menu .solo-largo { display: none; } }

/* ── Bottoni ──────────────────────────────────────────────────────────── */
.bottone {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.bottone-pieno { background: var(--sfumatura); color: #0b0c16; box-shadow: 0 10px 30px -8px rgba(127, 224, 212, 0.45); }
.bottone-pieno:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(185, 194, 255, 0.55); }
.bottone-vetro { color: var(--testo); background: var(--vetro); border: 1px solid var(--bordo); }
.bottone-vetro:hover { background: var(--vetro-forte); transform: translateY(-2px); }
.menu .bottone { min-height: 40px; padding: 8px 16px; font-size: 0.9rem; }
.bottone svg { width: 18px; height: 18px; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 64px 0 40px; }
.hero .contenitore { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 40px; }
.etichetta { margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--vetro); border: 1px solid var(--bordo); color: var(--testo-2); font-size: 0.85rem; font-weight: 500; }
.etichetta .punto { width: 22px; height: 22px; border-radius: 50%; background: rgba(95,211,198,0.15); display: grid; place-items: center; }
.etichetta .punto::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(95,211,198,0.18); }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); line-height: 1.04; letter-spacing: -0.045em; margin: 22px 0 18px; font-weight: 700; }
.oro { background: var(--sfumatura); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--testo-2); max-width: 34em; margin: 0 0 30px; }
.azioni { display: flex; gap: 12px; flex-wrap: wrap; }
.nota { list-style: none; padding: 0; margin: 22px 0 0; color: var(--testo-3); font-size: 0.9rem; display: flex; gap: 8px 18px; flex-wrap: wrap; }
.nota li { display: inline-flex; align-items: center; gap: 6px; }
.nota svg { width: 16px; height: 16px; color: var(--teal); stroke-width: 2.6; }

/* ── Telefono ─────────────────────────────────────────────────────────── */
.scena { position: relative; display: grid; place-items: center; min-height: 640px; }
/* Proporzioni di un iPhone 15 Pro, tutte ricavate dalla larghezza --w:
   profilo in titanio 1%, bordo nero 2,6% (circa 2,5 mm su 70,6 mm), angoli
   dello schermo di 55 pt su 393, Dynamic Island di 126 x 37 pt a 11 pt dal
   bordo. Le percentuali di padding non vanno bene qui: si calcolano sulla
   larghezza della colonna, non su quella del telefono. */
.telefono {
  --w: min(300px, 74vw);
  position: relative; width: var(--w);
  padding: calc(var(--w) * 0.026);
  border: calc(var(--w) * 0.01) solid transparent;
  border-radius: calc(var(--w) * 0.166);
  background:
    linear-gradient(#020203, #020203) padding-box,
    linear-gradient(145deg, #9a9eae 0%, #464955 12%, #1d1e25 42%, #23242c 70%, #575a67 90%, #8d91a1 100%) border-box;
  box-shadow: 0 50px 100px -30px rgba(0,0,0,0.75), 0 0 140px -30px rgba(107,118,214,0.55);
}
/* Tasto Azione e volume a sinistra, tasto laterale a destra. */
.telefono::before, .telefono::after { content: ""; position: absolute; width: calc(var(--w) * 0.009); }
.telefono::before {
  left: calc(var(--w) * -0.019); top: 17%; height: 28%; border-radius: 2px 0 0 2px;
  background: linear-gradient(to bottom, #4a4d5a 0 19.6%, transparent 19.6% 33.9%, #4a4d5a 33.9% 62.5%, transparent 62.5% 71.4%, #4a4d5a 71.4%);
}
.telefono::after { right: calc(var(--w) * -0.019); top: 27%; height: 13%; border-radius: 0 2px 2px 0; background: #4a4d5a; }
.telefono.piccolo { --w: min(270px, 66vw); }
.schermo { position: relative; border-radius: 14% / 6.46%; overflow: hidden; aspect-ratio: 393 / 852; background: #121318; container-type: inline-size; }
.schermo img { width: 100%; height: 100%; object-fit: cover; }
.schermo::before { content: ""; position: absolute; top: 1.29%; left: 50%; width: 32.2%; height: 4.38%; transform: translateX(-50%); background: #000; border-radius: 999px; z-index: 2; }
.stato { position: absolute; top: 1.29%; height: 4.38%; left: 0; right: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 0 8% 0 12.5%; font-weight: 600; font-size: 4.3cqw; line-height: 1; color: #f2f3f8; letter-spacing: -0.02em; }
.stato.chiaro { color: #15161f; }
.stato svg { height: 3.6cqw; width: auto; margin-left: 1.4cqw; }
.icone-stato { display: flex; align-items: center; }

/* Notifiche che galleggiano attorno al telefono */
.notifica {
  position: absolute; z-index: 3; width: min(300px, 74vw); display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: start;
  padding: 12px 14px; border-radius: 20px; background: rgba(30, 32, 52, 0.78); border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 20px 50px -18px rgba(0,0,0,0.7); font-size: 0.83rem; line-height: 1.35; text-align: left;
  animation: galleggia 7s ease-in-out infinite;
}
.notifica img { width: 38px; height: 38px; border-radius: 10px; }
.notifica .riga { margin: 0 0 1px; display: flex; justify-content: space-between; color: var(--testo-3); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500; }
.notifica strong { display: block; color: var(--testo); font-weight: 600; margin-top: 1px; }
.notifica p { margin: 1px 0 0; color: var(--testo-2); }
.n1 { top: 45%; left: -8%; }
.n2 { top: 62%; right: -4%; animation-delay: -2.4s; }
.n3 { bottom: 5%; left: -4%; animation-delay: -4.6s; }
@keyframes galleggia { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
/* Contenitore delle tre notifiche: sul computer non conta (le notifiche si
   posizionano rispetto alla scena), sul telefono diventa lo spazio del banner. */
.notifiche { display: contents; }
@media (prefers-reduced-motion: reduce) { .notifica { animation: none; } }

/* ── Fascia di fiducia ────────────────────────────────────────────────── */
.fiducia { padding: 10px 0 30px; }
.fiducia ul { list-style: none; margin: 0; padding: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; border-radius: var(--raggio); background: var(--vetro); border: 1px solid var(--bordo); }
.fiducia li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; color: var(--testo-2); font-size: 0.95rem; }
.fiducia li strong { color: var(--testo); font-weight: 600; display: block; }
.icona { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(185, 194, 255, 0.10); color: var(--lavanda); }
.icona svg { width: 22px; height: 22px; }
.icona.teal { background: rgba(95, 211, 198, 0.12); color: var(--teal); }
.icona.ambra { background: rgba(255, 183, 77, 0.12); color: var(--ambra); }

/* ── Sezioni ──────────────────────────────────────────────────────────── */
section { padding: 90px 0; }
.titolo-sezione { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.sopratitolo { color: var(--teal); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.1; letter-spacing: -0.035em; margin: 12px 0 14px; font-weight: 700; }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; margin: 0 0 8px; font-weight: 600; }
.titolo-sezione p { color: var(--testo-2); font-size: 1.12rem; margin: 0; }

/* Tre passi */
.passi { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: passo; }
.passo { position: relative; padding: 28px; border-radius: var(--raggio); background: var(--vetro); border: 1px solid var(--bordo); }
.passo::before { counter-increment: passo; content: counter(passo); position: absolute; top: 22px; right: 24px; font-weight: 700; font-size: 3rem; line-height: 1; color: rgba(185, 194, 255, 0.10); }
.passo p { color: var(--testo-2); margin: 0; }
.passo .icona { margin-bottom: 18px; }

/* Funzioni alternate con il telefono */
.funzione { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; padding: 40px 0; }
.funzione + .funzione { border-top: 1px solid rgba(255,255,255,0.05); }
.funzione:nth-of-type(even) .testo-funzione { order: 2; }
.testo-funzione h2 { font-size: clamp(1.75rem, 3.3vw, 2.5rem); }
.testo-funzione p { color: var(--testo-2); font-size: 1.08rem; }
.testo-funzione ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.testo-funzione li { display: flex; gap: 12px; align-items: flex-start; color: var(--testo-2); }
.testo-funzione li svg { flex: none; width: 22px; height: 22px; color: var(--teal); margin-top: 2px; }
.testo-funzione li strong { color: var(--testo); font-weight: 600; }
.vetrina { position: relative; display: grid; place-items: center; padding: 30px 0; }
.vetrina::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(107,118,214,0.35), transparent 65%); filter: blur(10px); z-index: -1; }
.vetrina.teal::before { background: radial-gradient(circle, rgba(95,211,198,0.28), transparent 65%); }
.distintivo { display: inline-block; padding: 4px 10px; margin-left: 8px; vertical-align: middle; border-radius: 999px; background: rgba(95,211,198,0.14); color: var(--teal); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* Privacy */
.privacy-fascia { position: relative; isolation: isolate; }
.privacy-fascia::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent, rgba(17, 19, 42, 0.9) 18%, rgba(17, 19, 42, 0.9) 82%, transparent); }
.lucchetto { width: 86px; height: 86px; margin: 0 auto 18px; border-radius: 28px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(95,211,198,0.20), rgba(107,118,214,0.22)); border: 1px solid var(--bordo); color: var(--teal); box-shadow: 0 20px 60px -20px rgba(95,211,198,0.5); }
.lucchetto svg { width: 40px; height: 40px; }
.griglia-privacy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.scheda { padding: 24px; border-radius: var(--raggio); background: var(--vetro); border: 1px solid var(--bordo); }
.scheda p { color: var(--testo-2); margin: 0; font-size: 0.97rem; }
.scheda .icona { margin-bottom: 16px; }
.centro { text-align: center; margin-top: 32px; }

/* Ancora di più */
.altre { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.altre .scheda { padding: 20px; }
.altre h3 { font-size: 1.05rem; }
.tema { margin-top: 64px; text-align: center; }
.coppia { display: flex; justify-content: center; align-items: flex-start; gap: 28px; }
.coppia .telefono { --w: min(250px, 40vw); }
.coppia .telefono:last-child { margin-top: 48px; }
.didascalia { color: var(--testo-2); margin: 26px 0 0; font-size: 1.05rem; }

/* Invito alla beta */
.invito { position: relative; overflow: hidden; border-radius: 32px; padding: 64px 40px; text-align: center; background: linear-gradient(135deg, rgba(95,211,198,0.16), rgba(107,118,214,0.22) 55%, rgba(227,184,255,0.16)); border: 1px solid rgba(255,255,255,0.12); }
.invito::after { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(50% 50% at 50% 50%, rgba(185,194,255,0.25), transparent 70%); z-index: -1; }
.invito p { color: var(--testo-2); max-width: 620px; margin: 0 auto 28px; font-size: 1.1rem; }
.invito .azioni { justify-content: center; }

/* Domande */
.domande { max-width: 780px; margin: 0 auto; }
details { border-bottom: 1px solid var(--bordo); padding: 6px 0; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; font-weight: 600; font-size: 1.05rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--vetro); color: var(--lavanda); font-size: 1.3rem; font-weight: 400; transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--testo-2); margin: 0 0 18px; }

/* Piede */
.piede { border-top: 1px solid var(--bordo); padding: 48px 0 56px; color: var(--testo-3); font-size: 0.92rem; }
.piede .contenitore { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.piede h4 { color: var(--testo); font-size: 0.95rem; margin: 0 0 10px; font-weight: 600; }
.piede ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.piede a { color: var(--testo-2); text-decoration: none; }
.piede a:hover { color: var(--testo); text-decoration: underline; }
.piede p { margin: 12px 0 0; max-width: 30em; }
.piede .marchio { font-size: 1.3rem; }
.piede .marchi { display: block; margin-top: 32px; font-size: 0.8rem; }
.piede .marchi p { max-width: none; margin: 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06); }

/* Comparsa allo scorrimento, solo dove il browser lo sa fare senza script */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rivela { animation: comparsa linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
    @keyframes comparsa { from { opacity: 0; transform: translateY(28px) scale(0.98); } to { opacity: 1; transform: none; } }
  }
}
@media (prefers-reduced-motion: no-preference) {
  .entra { animation: entra .9s cubic-bezier(.2,.7,.2,1) both; }
  .entra.d1 { animation-delay: .08s; } .entra.d2 { animation-delay: .16s; } .entra.d3 { animation-delay: .24s; }
  @keyframes entra { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* ── Pagine di testo (supporto, privacy, termini, 404) ────────────────── */
.interna { background: radial-gradient(70% 420px at 50% -60px, rgba(107, 118, 214, 0.26), transparent 75%) no-repeat, var(--notte); }
.pagina { max-width: 780px; margin: 0 auto; padding-block: 56px 90px; padding-left: max(22px, env(safe-area-inset-left, 0px)); padding-right: max(22px, env(safe-area-inset-right, 0px)); }
.pagina .sopratitolo { margin: 0; }
.pagina .lead { margin: 0 0 8px; }
.pagina.vuota { min-height: 60vh; padding-top: 96px; }
.pagina .azioni { margin-top: 30px; justify-content: flex-start; }
.contatto { margin: 32px 0 8px; padding: 22px 26px; border-radius: var(--raggio); background: linear-gradient(135deg, rgba(95,211,198,0.10), rgba(107,118,214,0.14)); border: 1px solid rgba(255,255,255,0.10); }
.pagina .contatto h2 { margin-top: 0; }
.contatto p { margin-bottom: 0; }
.pagina h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin-top: 18px; }
.pagina h2 { font-size: 1.4rem; letter-spacing: -0.02em; margin: 40px 0 10px; }
.pagina p, .pagina li { color: var(--testo-2); }
.pagina strong { color: var(--testo); }
.aggiornato { color: var(--testo-3); margin-top: 0; }
.in-breve { background: var(--vetro); border: 1px solid var(--bordo); border-radius: var(--raggio); padding: 6px 24px; margin: 24px 0; }
.in-breve h2 { margin-top: 18px; }
table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--bordo); color: var(--testo-2); }
th { color: var(--testo); }

/* ── Telefono e schermi stretti ───────────────────────────────────────── */
@media (max-width: 960px) {
  .hero .contenitore { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .azioni, .nota { justify-content: center; }
  .scena { min-height: 600px; }
  .n2 { right: 0; } /* a -4% usciva dalla pagina: su iPad si poteva scorrere di lato */
  .funzione { grid-template-columns: 1fr; gap: 20px; }
  .funzione:nth-of-type(even) .testo-funzione { order: 0; }
  .fiducia ul { grid-template-columns: repeat(2, 1fr); }
  .griglia-privacy { grid-template-columns: repeat(2, 1fr); }
  .altre { grid-template-columns: repeat(2, 1fr); }
  .passi { grid-template-columns: 1fr; }
  .piede .contenitore { grid-template-columns: 1fr 1fr; }
}
/* Sotto i 640 px accanto al telefono non c'è posto. Le notifiche scendono una
   alla volta sopra lo schermo, come un banner vero: ognuna resta 3 secondi,
   il giro dura 12. Misure in proporzione al telefono (--w). */
@media (max-width: 640px) {
  .scena { --w: min(300px, 74vw); min-height: 0; }
  .notifiche {
    display: grid; position: absolute; z-index: 3;
    top: calc(var(--w) * 0.155); left: 50%; transform: translateX(-50%); width: calc(var(--w) * 0.88);
  }
  .notifica {
    position: relative; inset: auto; width: auto; grid-area: 1 / 1; align-self: start;
    opacity: 0; animation: banner 12s ease-in-out infinite;
    font-size: max(10px, calc(var(--w) * 0.039)); line-height: 1.3;
    grid-template-columns: calc(var(--w) * 0.095) minmax(0, 1fr); gap: calc(var(--w) * 0.03);
    padding: calc(var(--w) * 0.03) calc(var(--w) * 0.035); border-radius: calc(var(--w) * 0.065);
    background: rgba(36, 38, 58, 0.9);
  }
  .notifica img { width: 100%; height: auto; border-radius: 24%; }
  .notifica .riga { font-size: 0.85em; }
  .n1 { animation-delay: -1s; }
  .n2 { animation-delay: 3s; }
  .n3 { animation-delay: 7s; }
}
/* Chi chiede meno animazioni vede la prima notifica, ferma. */
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .notifica { animation: none; }
  .n1 { opacity: 1; }
}
@keyframes banner {
  0% { opacity: 0; transform: translateY(-40%); }
  4%, 24% { opacity: 1; transform: none; }
  28%, 100% { opacity: 0; transform: translateY(-40%); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 36px; }
  section { padding: 64px 0; }
  .fiducia ul, .griglia-privacy, .altre { grid-template-columns: 1fr; }
  .altre .scheda { display: grid; grid-template-columns: 42px 1fr; column-gap: 16px; align-items: start; }
  .altre .scheda .icona { grid-row: span 2; margin: 0; }
  .altre .scheda h3 { margin: 2px 0 4px; }
  .invito { padding: 44px 22px; border-radius: 26px; }
  .piede .contenitore { grid-template-columns: 1fr; }
}
