/* Sito di CheckDay nel tema Nuvola dell'app (13/11/2026): fondo chiaro azzurrino, schede bianche con l'ombra
   «a gradino», azzurro dell'icona, corallo per i pulsanti, caratteri arrotondati e la mascotte.
   Solo caratteri di sistema: nessuna richiesta a server esterni. */
:root {
  --fondo: #f4f7ff; --scheda: #ffffff; --scheda2: #eef2fc; --linea: #e1e7f5; --gradino: #dce3f5;
  --testo: #1c2440; --tenue: #5a6485;
  --corallo: #e5533f; --accento: #d63f2b; --accento-ombra: #a82d1d; --accento-tenue: #ffe6e1;
  --cielo: #2f6bef; --sole: #e0900b; --viola: #7a57e8; --verde: #1a8f5e;
  --azzurro: #3d7bff; --azzurro-ombra: #2a5bd0; --panna: #fff8ef;
  --tondo: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --raggio: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  overflow-x: hidden;
  margin: 0; background: var(--fondo); color: var(--testo);
  font: 17px/1.6 var(--tondo); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--testo); }
p { margin: 0; }

/* Ombra a gradino, come nell'app: piena, senza sfocatura. */
.scheda-base, .passi li, .casella, .piano, .tile, .timer, .privacy > div, details, .stili .telefono.piccolo {
  box-shadow: 0 5px 0 var(--gradino);
}

.barra {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(12px + env(safe-area-inset-top)) 20px 12px;
  background: rgba(244, 247, 255, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--linea);
}
.marchio { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; }
.marchio img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 3px 0 var(--gradino); }
.barra nav { display: flex; gap: 20px; margin-left: auto; }
.barra nav a { color: var(--tenue); text-decoration: none; font-size: 15px; font-weight: 700; }
.barra nav a:hover { color: var(--testo); }

main { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Apertura */
.apertura {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding: 60px 0 56px;
}
.sopra { margin: 0 0 10px; color: var(--azzurro-ombra); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(40px, 6vw, 66px); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; text-wrap: balance; }
h1 span { color: var(--azzurro); }
.intro { margin: 20px 0 0; font-size: 19px; color: var(--tenue); max-width: 33em; }
.azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }
.store {
  display: inline-block; padding: 14px 24px; border-radius: 16px;
  background: var(--accento); color: #fff; font-weight: 800; box-shadow: 0 5px 0 var(--accento-ombra);
}
.secondario { color: var(--azzurro-ombra); text-decoration: none; font-weight: 800; }
.punti { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.punti li { background: var(--scheda); border: 1px solid var(--linea); border-radius: 999px; padding: 5px 13px; font-size: 14.5px; font-weight: 700; color: var(--tenue); }
.punti li::before { content: "✓ "; color: var(--verde); }

/* La scena dell'apertura: cielo azzurro, il telefono con Oggi e la mascotte che saluta. */
.scena {
  position: relative; display: grid; justify-items: center; padding: 40px 20px 0;
  border-radius: 36px; background: linear-gradient(180deg, #6fa0ff, var(--azzurro) 70%);
  box-shadow: 0 6px 0 var(--azzurro-ombra); min-height: 560px; overflow: hidden;
}
.scena::before, .scena::after {
  content: ""; position: absolute; border-radius: 999px; background: rgba(255, 255, 255, .22);
}
.scena::before { width: 180px; height: 56px; left: 6%; top: 9%; }
.scena::after { width: 120px; height: 40px; right: 8%; top: 22%; }
.mascotte { height: auto; }
.scena .saluta { position: absolute; left: -6px; bottom: 6px; width: 190px; z-index: 2; filter: drop-shadow(0 8px 10px rgba(20, 40, 110, .25)); }
.schermo {
  position: relative; z-index: 1; width: 290px; margin-left: 70px;
  background: var(--fondo); border-radius: 42px 42px 0 0; overflow: hidden;
  box-shadow: 0 0 0 9px #101828, 0 30px 60px rgba(10, 30, 90, .35); align-self: end;
}
.testata { background: var(--azzurro); color: #fff; padding: 34px 20px 22px; border-radius: 0 0 26px 26px; box-shadow: 0 4px 0 var(--azzurro-ombra); }
.testata small { display: block; font-size: 12.5px; font-weight: 700; opacity: .85; }
.testata b { display: block; font-size: 27px; line-height: 1.15; font-weight: 800; }
.corpo { padding: 16px 14px 24px; display: grid; gap: 12px; }
.tile { background: var(--scheda); border-radius: 18px; padding: 13px 14px; }
.tile-tit { font-size: 14px; color: var(--tenue); font-weight: 700; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.tile-tit b { font-size: 21px; color: var(--testo); font-weight: 800; }
.tile-tit em { margin-left: auto; font-style: normal; font-weight: 800; color: var(--tenue); }
.tile-sub { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--tenue); }
.barra-tempo { display: flex; gap: 3px; height: 12px; margin-top: 8px; }
.barra-tempo i { border-radius: 99px; }
.t1, .c-cor { background: var(--corallo); } .t2, .c-cie { background: var(--cielo); }
.t3, .c-sol { background: var(--sole); } .t4, .c-vio { background: var(--viola); }
.adesso { border: 2px solid var(--accento-tenue); }
.etichetta { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--corallo); }
.compito { font-size: 17px; font-weight: 800; margin-top: 2px; }
.compito em { font-style: normal; color: var(--tenue); font-size: 14px; }
.bottone {
  display: inline-block; margin-top: 10px; padding: 8px 15px; border-radius: 12px;
  background: var(--accento); color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 3px 0 var(--accento-ombra);
}
.righe { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.righe li { display: flex; align-items: center; gap: 10px; background: var(--scheda); border-radius: 14px; padding: 10px 12px; font-size: 14px; font-weight: 700; }
.righe em { margin-left: auto; font-style: normal; color: var(--tenue); font-size: 12.5px; white-space: nowrap; }
.righe span { line-height: 1.3; }
.righe .fatta span { text-decoration: line-through; color: var(--tenue); }
.pallino { display: inline-block; flex: none; width: 11px; height: 11px; border-radius: 50%; }

/* Blocchi */
.blocco { padding: 72px 0; }
.blocco h2 { margin: 0; font-size: clamp(30px, 4.2vw, 44px); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; }
.sotto { margin: 10px 0 34px; color: var(--tenue); font-size: 18px; max-width: 40em; }

/* Novità: una riga per funzione, parole da una parte e vetrina dall'altra. */
.funzione { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 26px 0; }
.funzione.rovescia .parole { order: 2; }
.parole h3 { margin: 0 0 8px; font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.015em; }
.parole p { color: var(--tenue); font-size: 17.5px; }
.parole b { color: var(--testo); }
.vetrina {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 300px; padding: 28px; border-radius: 32px; background: var(--scheda2);
}
.vetrina .mascotte { width: 170px; flex: none; margin-right: -18px; z-index: 1; }
.vetrina .mascotte.piccola { width: 110px; margin: 0 0 0 -24px; align-self: flex-end; }
.tile.grande { width: 100%; max-width: 330px; padding: 18px; }
.leggenda { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; }
.leggenda li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 700; }
.leggenda em { margin-left: auto; font-style: normal; color: var(--tenue); }

.timer { background: var(--scheda); border-radius: 26px; padding: 22px; width: 100%; max-width: 280px; display: grid; justify-items: center; gap: 10px; }
.disco {
  width: 168px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--corallo) 0 62%, var(--accento-tenue) 62% 100%);
}
.disco span {
  width: 64%; aspect-ratio: 1; border-radius: 50%; background: var(--scheda); display: grid; place-items: center;
  font-size: 27px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.tasti { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.tasti span { padding: 7px 12px; border-radius: 12px; background: var(--scheda2); font-size: 13.5px; font-weight: 800; box-shadow: 0 3px 0 var(--gradino); }
.tasti .pieno { background: var(--verde); color: #fff; box-shadow: 0 3px 0 #11643f; }

.isola-scena {
  width: 100%; max-width: 380px; border-radius: 30px; padding: 22px 18px 24px; display: grid; gap: 22px; justify-items: center;
  background: linear-gradient(180deg, #6fa0ff, var(--azzurro));
}
.isola {
  display: flex; align-items: center; gap: 10px; background: #000; color: #fff; border-radius: 999px;
  padding: 6px 16px 6px 6px; font-size: 14px; font-weight: 700; max-width: 100%;
}
.isola img { width: 34px; border-radius: 50%; background: var(--panna); }
.isola span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.isola b { color: #ff9a8a; font-variant-numeric: tabular-nums; margin-left: 6px; }
.live {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 24px;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px);
}
.live img { width: 54px; flex: none; }
.live > div { flex: 1; min-width: 0; }
.live p { font-weight: 800; font-size: 15px; }
.avanza { height: 8px; border-radius: 99px; background: var(--accento-tenue); margin-top: 6px; overflow: hidden; }
.avanza i { display: block; height: 100%; background: var(--corallo); border-radius: 99px; }
.live b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }

.routine ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; counter-reset: r; }
.routine li {
  counter-increment: r; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 13px;
  background: var(--scheda2); font-size: 14.5px; font-weight: 700;
}
.routine li::before {
  content: counter(r); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--scheda); border: 2px solid var(--linea); font-size: 12px; font-weight: 800; color: var(--tenue);
}
.routine li.fatta::before { content: "✓"; background: var(--verde); border-color: var(--verde); color: #fff; }
.routine li.fatta span { text-decoration: line-through; color: var(--tenue); }
.routine li.ora { background: #fff3d6; box-shadow: inset 0 0 0 2px #f6c766; }
.routine li.ora::before { border-color: var(--sole); color: var(--sole); }
.routine em { margin-left: auto; font-style: normal; color: var(--tenue); font-size: 13px; }

/* Come funziona */
.passi { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: p; }
.passi li { counter-increment: p; background: var(--scheda); border-radius: var(--raggio); padding: 24px; }
.passi li::before {
  content: counter(p); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
  background: var(--azzurro); color: #fff; font-weight: 800; font-size: 16px; margin-bottom: 14px; box-shadow: 0 3px 0 var(--azzurro-ombra);
}
.passi b { font-size: 19px; font-weight: 800; }
.passi p { margin-top: 6px; color: var(--tenue); font-size: 15.5px; }

/* Caselle */
.caselle { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 44px; }
.casella { border-radius: var(--raggio); padding: 18px; background: var(--scheda); display: grid; gap: 2px; align-content: start; }
.casella .ico {
  font-size: 20px; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 8px;
}
.casella b { font-size: 17.5px; font-weight: 800; }
.casella small { font-size: 13px; color: var(--tenue); font-weight: 700; }
.casella p { margin-top: 8px; font-size: 14.5px; color: var(--tenue); }
.c1 .ico { background: #ffe6e1; } .c1 b { color: var(--corallo); }
.c2 .ico { background: #e3ecff; } .c2 b { color: var(--cielo); }
.c3 .ico { background: #fff0d4; } .c3 b { color: #b06f00; }
.c4 .ico { background: #ece6ff; } .c4 b { color: var(--viola); }

.doppio { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center; }
.doppio .mascotte { width: 100%; max-width: 260px; }
.elenco { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.elenco li { padding-left: 24px; position: relative; color: var(--tenue); }
.elenco li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--azzurro); }
.elenco b { color: var(--testo); }

/* Stili */
.stili { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stili figure { margin: 0; display: grid; gap: 16px; justify-items: center; align-content: start; }
.telefono {
  position: relative; margin: 0; border-radius: 34px; overflow: hidden; background: #000; container-type: inline-size;
}
.telefono img { width: 100%; }
.telefono.piccolo { width: 100%; max-width: 240px; box-shadow: 0 0 0 7px #101828, 0 12px 0 var(--gradino); }
/* L'orologio lo mette iOS: qui lo disegniamo sopra lo sfondo generato. */
.ora {
  position: absolute; left: 0; right: 0; top: 7.5%; text-align: center; color: #fff; z-index: 1;
  font-weight: 600; font-size: clamp(40px, 24cqw, 62px); line-height: 1; letter-spacing: -.02em;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .2); pointer-events: none;
}
.ora small { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 0; margin-bottom: 2px; }
.stili figcaption { text-align: center; color: var(--tenue); font-size: 15px; }
.stili figcaption b { display: block; color: var(--testo); font-size: 18px; font-weight: 800; }

/* Lo sfondo di Nuvola disegnato: stesse proporzioni delle foto degli altri stili (414×900). */
.telefono.nuvola { aspect-ratio: 414 / 900; background: linear-gradient(180deg, #8db4ff, var(--azzurro) 55%, #2f63e0); }
.pannelli { position: absolute; left: 7%; right: 7%; top: 31%; display: grid; gap: 7px; }
.pannello { background: rgba(255, 255, 255, .95); border-radius: 13px; padding: 8px 9px; box-shadow: 0 3px 0 rgba(20, 50, 140, .25); }
.ptit { font-size: 10.5px; font-weight: 800; color: var(--cielo); margin-bottom: 4px; }
.ptit.rosso { color: var(--corallo); }
.giorni { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 10px; font-weight: 800; color: var(--tenue); }
.giorni i { font-style: normal; padding: 2px 0; border-radius: 99px; }
.giorni .oggi { background: var(--corallo); color: #fff; }
.voce { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; line-height: 1.5; white-space: nowrap; overflow: hidden; }
.voce .pallino { width: 7px; height: 7px; }
.voce span { overflow: hidden; text-overflow: ellipsis; }
.pannello.nota { display: flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 800; margin-top: 6px; }
.pannello.nota img { width: 26px; }

/* Gratis (una scheda sola: niente abbonamento dal 13/11/2026) */
.titolo-mascotte { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.titolo-mascotte .mascotte { width: 150px; flex: none; margin-top: -20px; }
.piani { display: grid; grid-template-columns: 1fr; gap: 18px; max-width: 560px; }
.piano { background: var(--scheda); border-radius: 26px; padding: 26px; }
.piano h3 { margin: 0 0 12px; font-size: 23px; font-weight: 800; }
.piano ul { list-style: none; padding: 0; margin: 0; }
.piano li { padding: 8px 0; border-top: 1px solid var(--linea); font-size: 16px; color: var(--tenue); }
.piano li::before { content: "✓ "; color: var(--cielo); font-weight: 800; }
.nota { margin: 18px 0 0; color: var(--tenue); font-size: 14px; max-width: 920px; }

/* Privacy */
.privacy > div {
  display: flex; align-items: center; gap: 32px;
  background: var(--panna); border-radius: 32px; padding: 30px 36px; box-shadow: 0 6px 0 #f1e3cf;
}
.privacy .mascotte { width: 170px; flex: none; }
.privacy p { color: var(--tenue); max-width: 44em; margin-top: 10px; }
.privacy a { color: var(--accento); font-weight: 800; }

/* Domande */
#domande details { background: var(--scheda); border-radius: 18px; padding: 16px 20px; max-width: 820px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 800; font-size: 17.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--azzurro); font-weight: 800; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--tenue); margin-top: 10px; }
summary:focus-visible, a:focus-visible { outline: 3px solid var(--azzurro); outline-offset: 3px; border-radius: 6px; }

/* Piede */
.piede { margin-top: 24px; border-top: 1px solid var(--linea); background: var(--scheda); padding: 34px 20px calc(40px + env(safe-area-inset-bottom)); text-align: center; color: var(--tenue); font-size: 14px; }
.piede p { margin: 6px 0; }
.collegamenti { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-bottom: 12px; }
.collegamenti a { color: var(--testo); text-decoration: none; font-weight: 700; }

/* Lingua: il selettore nella barra (resta anche sul telefono) e le bandierine nel piede. */
.lingua-menu { position: relative; flex: none; }
.lingua-toggle {
  display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--linea); background: var(--scheda); color: var(--tenue);
  font-family: var(--tondo); font-size: 13px; font-weight: 800; letter-spacing: .02em; line-height: 1.2;
}
.lingua-toggle:hover, .lingua-toggle[aria-expanded="true"] { color: var(--testo); border-color: var(--azzurro); }
.lingua-pop {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 20;
  display: grid; gap: 2px; min-width: 176px; max-width: calc(100vw - 24px); padding: 6px;
  border-radius: 16px; border: 1px solid var(--linea); background: var(--scheda);
  box-shadow: 0 5px 0 var(--gradino), 0 24px 48px -16px rgba(28, 36, 64, .25);
}
.lingua-pop[hidden] { display: none; }
.lingua-opt {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--tenue); font-family: var(--tondo); font-size: 15px; font-weight: 700; line-height: 1.3; text-align: left;
}
.lingua-opt span { font-size: 18px; line-height: 1; }
.lingua-opt:hover { background: var(--scheda2); color: var(--testo); }
.lingua-opt.attiva { color: var(--accento); font-weight: 800; }
.lingua-toggle:focus-visible, .lingua-opt:focus-visible { outline: 3px solid var(--azzurro); outline-offset: 2px; }
.bandiere { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px 0 14px; }
.bandiera {
  background: var(--fondo); border: 1px solid var(--linea); border-radius: 10px;
  padding: 4px 8px; font-size: 18px; line-height: 1.2; cursor: pointer;
}
.bandiera.attiva { border-color: var(--azzurro); box-shadow: 0 2px 0 var(--gradino); }

/* La mascotte saluta piano: solo se chi guarda non ha chiesto meno movimento. */
@media (prefers-reduced-motion: no-preference) {
  .scena .saluta { animation: dondola 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
  @keyframes dondola { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-4px); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 960px) {
  .stili { grid-template-columns: 1fr 1fr; row-gap: 36px; }
}
@media (max-width: 860px) {
  .apertura { grid-template-columns: 1fr; padding-top: 36px; gap: 36px; }
  .scena { min-height: 0; }
  .scena .saluta { width: 140px; }
  .schermo { width: 260px; margin-left: 60px; }
  .funzione, .funzione.rovescia { grid-template-columns: 1fr; gap: 20px; }
  .funzione.rovescia .parole { order: 0; }
  .passi, .caselle { grid-template-columns: 1fr 1fr; }
  .doppio { grid-template-columns: 1fr; gap: 24px; }
  .doppio .mascotte { max-width: 200px; margin: 0 auto; }
  .barra nav { display: none; }
  .titolo-mascotte .mascotte { width: 110px; }
}
@media (max-width: 560px) {
  .passi, .caselle, .piani { grid-template-columns: 1fr; }
  .vetrina { padding: 20px 12px; min-height: 0; }
  .vetrina .mascotte { width: 110px; margin-right: -22px; }
  .vetrina .mascotte.piccola { display: none; }
  .scena { padding: 28px 12px 0; border-radius: 28px; }
  .scena .saluta { width: 112px; left: -10px; }
  .schermo { width: 236px; margin-left: 50px; }
  .privacy > div { flex-direction: column; align-items: flex-start; padding: 24px; gap: 12px; }
  .privacy .mascotte { width: 120px; }
  .titolo-mascotte .mascotte { display: none; }
  .stili { gap: 16px; }
}
