/* Elitra, restyling v2: sobrio, professionale, luminoso. Caricato dopo gli altri CSS. */

:root {
  --nebbia: #f5f8f7;
  --abisso: #0d1f1c;
  --petrolio: #0b6b5e;
  --petrolio-scuro: #08493f;
  --menta: #3fcfae;
  --oltremare: #17324d;
  --sole: #f2b53c;
  --sfondo: #f5f8f7;
  --sfondo-2: #ffffff;
  --testo: #10211e;
  --testo-2: #4b605b;
  --linea: rgba(16, 33, 30, .12);
  --link: #0b6b5e;
  --focus: #0b6b5e;
  --dev-bg: #e2f2ed;
  --dev-fg: #0b3a33;
  --srv-bg: #14283a;
  --srv-fg: #ffffff;
  --display: "Instrument Sans Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  --raggio: .65rem;
  --ombra-morbida: 0 1px 2px rgba(13, 31, 28, .06), 0 8px 24px rgba(13, 31, 28, .06);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --sfondo: #0c1917;
    --sfondo-2: #12251f;
    --testo: #e8f1ee;
    --testo-2: #9db6af;
    --linea: rgba(232, 241, 238, .14);
    --link: #5fdcc0;
    --focus: #5fdcc0;
    --dev-bg: #12251f;
    --dev-fg: #7fe6cd;
    --srv-bg: #0a1620;
  }
}
:root[data-theme=dark] {
  --sfondo: #0c1917;
  --sfondo-2: #12251f;
  --testo: #e8f1ee;
  --testo-2: #9db6af;
  --linea: rgba(232, 241, 238, .14);
  --link: #5fdcc0;
  --focus: #5fdcc0;
  --dev-bg: #12251f;
  --dev-fg: #7fe6cd;
  --srv-bg: #0a1620;
}

body { font-size: 1.0625rem; line-height: 1.65; }

/* Titoli: stessa famiglia del testo, peso deciso ma non urlato */
h1, h2, h3 { font-stretch: 100%; }
h1 { font-weight: 700; font-size: clamp(2.3rem, 1.3rem + 4.2vw, 4.4rem); line-height: 1.04; letter-spacing: -.035em; }
h2 { font-weight: 700; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); line-height: 1.1; letter-spacing: -.028em; }
.testo h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); }
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); line-height: 1.55; max-width: 46ch; }
html .hero h1.hero { max-width: 20ch; }
html .testa-pagina h1 { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.8rem); max-width: 24ch; }

/* Bottoni: pieni, morbidi, senza ombre rigide */
.btn,
html .btn.btn {
  --ombra: transparent;
  border: 1px solid transparent;
  border-radius: var(--raggio);
  box-shadow: 0 1px 2px rgba(13, 31, 28, .12);
  font-weight: 650;
  min-height: 3rem;
  padding: .7rem 1.4rem;
  background: var(--sfondo-2);
  color: var(--testo);
  border-color: var(--linea);
  transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(13, 31, 28, .16); }
.btn:active { transform: none; box-shadow: 0 1px 2px rgba(13, 31, 28, .12); }
.btn--sole,
html .btn--sole.btn--sole {
  background: var(--petrolio);
  color: #fff;
  border-color: var(--petrolio);
}
.btn--sole:hover { background: var(--petrolio-scuro); }
.btn--bordo,
html .btn--bordo.btn--bordo {
  background: transparent;
  color: var(--testo);
  border: 1px solid color-mix(in srgb, var(--testo) 35%, transparent);
  box-shadow: none;
}
.btn--bordo:hover { background: color-mix(in srgb, var(--testo) 7%, transparent); box-shadow: none; }
:root[data-theme=dark] .btn--sole { background: var(--menta); color: #062a23; border-color: var(--menta); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .btn--sole { background: var(--menta); color: #062a23; border-color: var(--menta); }
}

/* Testata */
.testata { background: color-mix(in srgb, var(--sfondo) 92%, transparent); border-bottom: 1px solid var(--linea); }
.marchio { font: 700 1.35rem/1 var(--display); font-stretch: 100%; letter-spacing: -.03em; }
.nav a { font-weight: 550; color: var(--testo-2); }
.nav a:hover { color: var(--testo); }
.nav a[aria-current=page] { color: var(--testo); box-shadow: inset 0 -2px 0 var(--petrolio); }
.tema, .menu summary { border: 1px solid var(--linea); border-radius: var(--raggio); }
.menu__pannello a { font: 650 1.3rem/1.2 var(--display); font-stretch: 100%; }

/* Hero e palco (demo cifratura) */
html .palco.palco { border-block: 0; margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
html .palco__titolo.palco__titolo { font: 650 .8rem/1 var(--corpo); font-stretch: 100%; text-transform: uppercase; letter-spacing: .12em; opacity: .75; }
html .campo.campo input {
  font: 600 clamp(1.15rem, 1rem + 1vw, 1.7rem)/1.2 var(--display);
  font-stretch: 100%;
  border-bottom-width: 2px;
}
html .palco__confine.palco__confine { background: var(--sfondo); }
html .palco__filo.palco__filo { border-color: var(--sole); border-top-width: 2px; opacity: .9; }
@media (min-width: 62rem) { html .palco__filo.palco__filo { border-top-width: 0; border-left-width: 2px; } }
html .palco__scudo.palco__scudo { background: var(--sfondo); }
.cifra-fx { font-size: clamp(1rem, .9rem + .6vw, 1.3rem); }
.hero__eco { color: var(--link); }
.btn:disabled { opacity: .4; box-shadow: none; }

/* Sezione "viaggio": bordi leggeri */
html .viaggio { border-block-width: 1px; }
html .v-passo.v-passo { border-top-width: 2px; }
html .v-passo.v-passo::before { font: 700 2rem/1 var(--display); font-stretch: 100%; }
html .v-chip.v-chip, html .v-pacco.v-pacco { border-width: 1px; border-radius: .6rem; box-shadow: 0 6px 18px rgba(13, 31, 28, .18); font-stretch: 100%; font-weight: 650; }

/* Quello che vede / non vede */
html .vnv.vnv { border: 1px solid var(--linea); border-radius: 1rem; box-shadow: var(--ombra-morbida); }
html .vnv__lato.vnv__lato h3 { font-stretch: 100%; font-weight: 700; letter-spacing: -.02em; }
.vnv__lato ul { font-size: 1.1rem; }

/* Segmenti ("Per chi lavora con le password degli altri") */
html .segmenti.segmenti { border-top: 1px solid var(--linea); }
html .segmenti.segmenti li { border-bottom: 1px solid var(--linea); }
html .segmenti__nome.segmenti__nome { font: 700 clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem)/1.1 var(--display); font-stretch: 100%; letter-spacing: -.03em; }
.segmenti__desc { font-size: 1.05rem; }
html .segmenti a:hover, html .segmenti a:focus-visible { border-radius: var(--raggio); }

/* Funzioni (card) */
article { border-radius: 1rem; }

/* Prezzi */
html .periodo.periodo { border: 1px solid var(--linea); }
html .periodo__cursore.periodo__cursore { background: var(--petrolio); }
html .periodo input:checked + label { color: #fff; }
:root[data-theme=dark] html .periodo__cursore.periodo__cursore { background: var(--menta); }
:root[data-theme=dark] .periodo input:checked + label { color: #062a23; }
html .piano.piano {
  border: 1px solid var(--linea);
  border-radius: 1rem;
  box-shadow: var(--ombra-morbida);
}
html .piano.piano h3 { font: 700 1.5rem/1.1 var(--display); font-stretch: 100%; }
html .cifra.cifra { font: 700 clamp(3rem, 2.4rem + 3vw, 4.6rem)/.95 var(--display); font-stretch: 100%; letter-spacing: -.045em; }
html .piano--famiglia.piano--famiglia { border-color: color-mix(in srgb, var(--petrolio) 30%, transparent); }
html .piano--business.piano--business { border-color: transparent; }
html .btn--piano.btn--piano { background: #fff; color: var(--abisso); border-color: var(--linea); }
html .piano--famiglia .btn--piano { background: var(--petrolio); color: #fff; border-color: var(--petrolio); }

/* Sicurezza: schema SVG */
html .schema.schema svg { border: 1px solid var(--linea); border-radius: 1rem; }
html .t-zona.t-zona { font-stretch: 100%; font-weight: 700; }
html .t-chip.t-chip { font-stretch: 100%; font-weight: 650; }
html .chip.chip { stroke-width: 1.5; }
html .conf.conf { stroke-width: 3; }

/* Elenchi e FAQ */
html .gruppo { border-top: 1px solid var(--linea); }
.passi-testo li::before { font: 700 2rem/1 var(--display); font-stretch: 100%; }
html .faq { border-top: 1px solid var(--linea); }
.faq summary { font-weight: 650; }
.limite { border-left-width: .3rem; border-radius: 0 var(--raggio) var(--raggio) 0; box-shadow: var(--ombra-morbida); }

/* Blocco finale e piede */
.finale { background: var(--petrolio); }
html .finale .btn--sole { background: #fff; color: var(--petrolio-scuro); border-color: #fff; }
html .finale .btn--sole:hover { background: #e7f6f2; }
html .finale .btn--bordo { color: #fff; border-color: rgba(255, 255, 255, .55); }
.finale h2 { max-width: 20ch; }
.piede { background: #0d1f1c; }
.piede__gigante { display: none; }
.piede__fine { margin-top: 2.5rem; }
.piede h2 { font-weight: 650; font-size: .95rem; text-transform: none; }
.banda { height: .5rem; border-radius: 999px; overflow: hidden; }
html .banda svg { display: none; }

/* Fuori i riflessi da brutalismo: ombre e bordi spessi residui */
@media print { .piede__gigante { display: none; } }

/* Card delle funzioni: bianche e sobrie, un solo accento */
html .tessera.tessera {
  border: 1px solid var(--linea);
  border-radius: 1rem;
  background: var(--sfondo-2);
  color: var(--testo);
  box-shadow: var(--ombra-morbida);
  min-height: 12rem;
}
html .tessera.tessera h3 { font-stretch: 100%; font-weight: 700; letter-spacing: -.02em; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }
html .tessera--gruppi.tessera--gruppi { background: var(--dev-bg); color: var(--dev-fg); border-color: color-mix(in srgb, var(--petrolio) 22%, transparent); }
html .tessera--registro.tessera--registro,
html .tessera--esci.tessera--esci,
html .tessera--cestino.tessera--cestino,
html .tessera--scadenze.tessera--scadenze,
html .tessera--pwa.tessera--pwa { background: var(--sfondo-2); color: var(--testo); }
html .tessera--importa.tessera--importa { background: var(--srv-bg); color: #e8f1ee; border-color: transparent; }
html .tessera.tessera::before { content: ""; width: 2.25rem; height: .3rem; border-radius: 99px; background: var(--petrolio); }
html .tessera--importa.tessera--importa::before { background: var(--menta); }
:root[data-theme=dark] .tessera.tessera::before { background: var(--menta); }

/* ===== v3: titoli piu' caldi e scena dell'hero ===== */
h1, h2, .testo h2 {
  font-family: "Anybody Variable", var(--corpo);
  font-weight: 800;
  font-stretch: 104%;
  letter-spacing: -.035em;
  line-height: .98;
}
h1 { font-size: clamp(2.2rem, 1rem + 2.9vw, 3.7rem); font-stretch: 92%; }
h2 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.6rem); line-height: 1.02; }

html .hero.hero {
  position: relative;
  overflow: clip;
  padding-top: clamp(2.5rem, 2rem + 3vw, 5rem);
  padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
  background:
    radial-gradient(60rem 38rem at 85% 20%, rgba(92, 242, 208, .35), transparent 60%),
    radial-gradient(40rem 30rem at 0% 100%, rgba(255, 210, 63, .22), transparent 60%),
    linear-gradient(180deg, #e3f5ef 0%, var(--sfondo) 100%);
}
html .hero__testo.hero__testo { gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); align-content: center; }
html .hero__testo.hero__testo h1 { max-width: none; }
html .hero__lato.hero__lato { grid-template-columns: 1fr; gap: 1.75rem; }
html .hero__lato.hero__lato .lead { max-width: 34ch; color: var(--testo); opacity: .8; }
html .hero__eco.hero__eco { display: block; color: var(--petrolio); }
@media (min-width: 62rem) {
  html .hero__testo.hero__testo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); column-gap: clamp(2rem, 4vw, 5rem); }
  html .hero__testo.hero__testo > h1, html .hero__testo.hero__testo > .hero__lato { grid-column: 1; }
  html .hero__testo.hero__testo > .scena { grid-column: 2; grid-row: 1 / span 2; }
}

.scena { position: relative; height: 35rem; width: 100%; max-width: 38rem; justify-self: end; }
@media (max-width: 40rem) { .scena { height: 37rem; } }
.scena__voci { position: absolute; inset: 0; }
.scena__cassa {
  position: absolute; inset: 0; border-radius: 1.4rem; background: #fff;
  box-shadow: 0 2px 4px rgba(13, 31, 28, .05), 0 30px 60px -20px rgba(11, 107, 94, .35);
  border: 1px solid rgba(11, 107, 94, .14);
  opacity: 0; scale: .96; transition: opacity .6s ease, scale .8s cubic-bezier(.2, .9, .2, 1);
}
.scena[data-stato=ordine] .scena__cassa { opacity: 1; scale: 1; }
.scena__testa {
  display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--linea); color: #10211e; flex-wrap: wrap;
}
.scena__testa strong { font-size: 1.05rem; letter-spacing: -.01em; }
.scena__chi { margin-left: auto; display: flex; align-items: center; }
.scena__chi i {
  width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center;
  font: 700 .8rem/1 var(--corpo); font-style: normal; color: #10211e; border: 2px solid #fff;
  margin-left: -.5rem; scale: 0; transition: scale .5s cubic-bezier(.3, 1.6, .5, 1) calc(.9s + var(--i) * .12s);
}
.scena__chi i:nth-child(1) { background: #5cf2d0; }
.scena__chi i:nth-child(2) { background: #ffd23f; }
.scena__chi i:nth-child(3) { background: #aab6ff; }
.scena__chi em { font: 500 .8rem/1.2 var(--corpo); font-style: normal; color: var(--testo-2); margin-left: .6rem; opacity: 0; transition: opacity .5s ease 1.3s; }
.scena[data-stato=ordine] .scena__chi i { scale: 1; }
.scena[data-stato=ordine] .scena__chi em { opacity: 1; }
@media (max-width: 34rem) { .scena__chi em { display: none; } }

.scena__tasto { position: absolute; left: 50%; bottom: .9rem; translate: -50% 0; white-space: nowrap; z-index: 6; box-shadow: 0 8px 20px rgba(11, 107, 94, .3); }
.scena[data-stato=ordine] .scena__tasto { box-shadow: 0 1px 2px rgba(13, 31, 28, .12); background: #fff; }

.it {
  position: absolute; left: 0; top: 0; z-index: 1; overflow: hidden; white-space: nowrap;
  font: 600 .95rem/1.2 var(--corpo); padding: .7rem 1rem; border-radius: .8rem;
  box-shadow: 0 6px 16px rgba(13, 31, 28, .14); user-select: none; -webkit-user-select: none;
  transition: transform .95s cubic-bezier(.2, .9, .2, 1.06) calc(var(--n) * 70ms),
              width .7s cubic-bezier(.2, .9, .2, 1) calc(var(--n) * 70ms),
              height .7s cubic-bezier(.2, .9, .2, 1) calc(var(--n) * 70ms),
              background-color .5s ease, color .5s ease, border-radius .5s ease, box-shadow .5s ease,
              opacity .5s ease calc(var(--n) * 90ms), scale .6s cubic-bezier(.3, 1.5, .5, 1) calc(var(--n) * 90ms);
}
@media (pointer: fine) { .scena[data-stato=caos] .it { cursor: grab; } }
.it--presa { cursor: grabbing !important; transition: none !important; box-shadow: 0 16px 30px rgba(13, 31, 28, .25); }
.scena:not(.pronta) .it { opacity: 0; scale: .7; }
.it__a { display: block; transition: opacity .3s ease; }
.it__b { position: absolute; inset: 0; display: flex; align-items: center; gap: .8rem; padding: 0 .9rem; opacity: 0; transition: opacity .35s ease; }
.it--postit { background: #ffe168; color: #4a3b00; border-radius: .25rem; }
.it--chat { background: #d9fdd3; color: #111b21; border-radius: 1rem 1rem .2rem 1rem; }
.it--mail { background: #fff; color: #1f2d3d; box-shadow: 0 6px 16px rgba(13, 31, 28, .14), inset 3px 0 0 #6b7cff; }
.it--excel { background: #1d6f42; color: #fff; border-radius: .35rem; }
.it--rosa { background: #ffc4dc; color: #5a1233; border-radius: .25rem; }
.it--chat2 { background: #d6e6ff; color: #0d2a57; border-radius: 1rem 1rem 1rem .2rem; }

html .scena[data-stato=ordine] .it.it {
  background: #fff; color: #10211e; border-radius: .75rem;
  box-shadow: 0 1px 2px rgba(13, 31, 28, .06); outline: 1px solid rgba(16, 33, 30, .08); outline-offset: -1px;
}
.scena[data-stato=ordine] .it__a { opacity: 0; }
.scena[data-stato=ordine] .it__b { opacity: 1; transition-delay: .45s; }
.it__pt { flex: none; position: relative; width: 2.1rem; height: 2.1rem; border-radius: .55rem; background: #e2f2ed; }
.it__pt::before { content: ""; position: absolute; left: 50%; top: 52%; width: .8rem; height: .6rem; translate: -50% 0; border-radius: .12rem; background: #0b6b5e; }
.it__pt::after { content: ""; position: absolute; left: 50%; top: 27%; width: .46rem; height: .5rem; translate: -50% 0; border: 2px solid #0b6b5e; border-bottom: 0; border-radius: .3rem .3rem 0 0; }
.it__tt { display: grid; gap: .1rem; min-width: 0; text-align: left; }
.it__tt strong { font: 650 .95rem/1.2 var(--corpo); overflow: hidden; text-overflow: ellipsis; }
.it__tt small { font-size: .7rem; letter-spacing: .18em; color: #8aa09a; line-height: 1; }
.it__g { margin-left: auto; text-decoration: none; font: 600 .74rem/1 var(--corpo); padding: .32rem .6rem; border-radius: 99px; flex: none; }
.it__g--a { background: #d6f3ea; color: #0b3a33; }
.it__g--b { background: #ffe9b0; color: #5a3e00; }
.it__g--c { background: #dbe4ff; color: #1b2c80; }
@media (prefers-reduced-motion: reduce) { .it, .scena__cassa, .scena__chi i, .scena__chi em { transition: none !important; } }

.demo-sezione { padding-top: clamp(3.5rem, 2rem + 6vw, 7rem); }
.demo-sezione__testa { display: grid; gap: 1rem; margin-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); }
.demo-sezione__testa h2 { max-width: 20ch; }
html .hero.hero h1 { font-size: clamp(2.2rem, 1rem + 2.9vw, 3.7rem); max-width: none; font-stretch: 92%; }
html body .hero.hero.hero h1 { font-size: clamp(2.2rem, 1rem + 2.9vw, 3.7rem); max-width: none; font-stretch: 92%; line-height: 1; }
html body .hero.hero.hero h1 { font-size: clamp(2.2rem, 1rem + 3.1vw, 3.9rem); }
@media (min-width: 62rem) {
  html .hero__testo.hero__testo { grid-template-rows: auto auto 1fr; align-content: start; row-gap: 1.75rem; }
  html .hero__testo.hero__testo > h1 { margin-top: 4rem; }
  html .hero__testo.hero__testo > .scena { grid-row: 1 / span 3; }
}

/* sezione passi, v4 */
html body .passi-sez{padding:clamp(3rem,7vw,6rem) 0;background:var(--bg,#f4f8f6)}
html body .passi-sez h2{font-size:clamp(1.9rem,1rem + 2.6vw,3rem);margin:0 0 .75rem}
html body .passi-sez .lead{max-width:40rem;margin:0 0 2.5rem}
html body .passi-lista{list-style:none;margin:0;padding:0;display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(14.5rem,1fr))}
html body .passi-lista li{position:relative;background:#fff;border:1px solid rgba(20,40,58,.12);border-radius:1.1rem;padding:1.6rem 1.4rem 1.5rem;box-shadow:0 8px 24px rgba(20,40,58,.06)}
html body .passi-lista b{display:grid;place-items:center;width:2.4rem;height:2.4rem;border-radius:50%;background:#0b6b5e;color:#fff;font:800 1.1rem/1 Anybody,sans-serif;margin-bottom:1rem}
html body .passi-lista li:last-child b{background:#ffd23f;color:#14283a}
html body .passi-lista h3{font-size:1.15rem;margin:0 0 .5rem}
html body .passi-lista p{margin:0;font-size:.97rem;line-height:1.55;opacity:.85}
@media (min-width:62rem){html body .passi-lista li:not(:last-child)::after{content:"";position:absolute;top:2.6rem;right:-1.05rem;width:1.1rem;height:2px;background:#0b6b5e;opacity:.4}}
:root[data-theme="dark"] html body .passi-lista li,html[data-theme="dark"] body .passi-lista li{background:#1b3347;border-color:rgba(255,255,255,.12)}

/* giorni, v5 */
html body .giorni{padding:clamp(3rem,7vw,6rem) 0}
html body .giorni h2{font-size:clamp(1.9rem,1rem + 2.6vw,3rem);max-width:30ch;margin:0 0 2.2rem}
html body .giorni__griglia{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(16rem,1fr))}
html body .giorni article{background:#14283a;color:#fff;border-radius:1.2rem;padding:1.8rem 1.6rem}
html body .giorni article:nth-child(2){background:#0b6b5e}
html body .giorni article:nth-child(3){background:#ffd23f;color:#14283a}
html body .giorni__ic{display:grid;place-items:center;width:2.6rem;height:2.6rem;border-radius:50%;background:rgba(255,255,255,.16);font:800 1.4rem/1 Anybody,sans-serif;margin-bottom:1.1rem}
html body .giorni article:nth-child(3) .giorni__ic{background:rgba(20,40,58,.12)}
html body .giorni h3{font-size:1.3rem;margin:0 0 .6rem;color:inherit}
html body .giorni p{margin:0;line-height:1.55;color:inherit;opacity:.92}
