/* Facturina, sito: palette e carattere dell'app (web/src/index.css), stampati da start.mjs brand;
   poi solo il CSS che sta dentro le immagini (layout-v4.md: page CSS). */
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
:root {
  --p-bg: #f3f2ef; --p-surface: #ffffff; --p-ink: #121214; --p-muted: #4f4e55;
  --p-accent: #121214; --p-accent-ink: #f3f2ef; --p-action: #121214; --p-action-ink: #f3f2ef;
  --p-inv-bg: #121214; --p-inv-surface: #1e1e20; --p-inv-ink: #f3f2ef; --p-inv-muted: #949493;
  --p-inv-accent: #f3f2ef; --p-inv-accent-ink: #121214; --p-inv-action: #f3f2ef; --p-inv-action-ink: #121214;
  --font-display: "Geist", system-ui, sans-serif;
  --font-text: "Geist", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.045em;
}

/* il marchio dell'app (la graffetta), accanto al nome */
.nav__logo { gap: 10px; }
.logo-mark { width: 28px; height: 28px; flex: none; }

/* il fondo illuminato dell'hero e dei pannelli: la sabbia del tema con una luce morbida */
.hero__art, .panel--lit { background:
    radial-gradient(70% 60% at 18% 12%, color-mix(in oklab, var(--ground-surface) 80%, white), transparent 70%),
    radial-gradient(60% 50% at 90% 100%, color-mix(in oklab, var(--ground-bg) 85%, var(--ground-accent)), transparent 70%),
    var(--ground-bg); }

/* gli screenshot veri dell'app: un bordo sottile e un'ombra, angoli dell'app */
.shot { border-radius: var(--r-md); overflow: hidden; background: var(--p-surface);
  box-shadow: 0 0 0 1px rgb(18 18 20 / .08), 0 18px 40px -22px rgb(18 18 20 / .35); }
.shot > img { display: block; width: 100%; height: auto; max-width: none; }
.hero__art > .ly-piece--main { bottom: calc(-1 * var(--ly-cut)); }
.hero__art > .ly-piece--main > img { height: 100%; object-fit: cover; object-position: 0 0; }
.hero__art > .ly-piece--note { left: var(--s-8); bottom: var(--s-6); width: 300px; z-index: 2; }
.shot--receipt { border-radius: 4px; }
@media (max-width: 1023px) { .hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-4); width: 240px; } }
.hero__proof { font-size: var(--t-small); color: var(--muted); }

/* finestre larghe: lo screenshot riempie la cornice dall'alto, tagliato in basso */
.shot--wide { position: relative; margin-top: var(--s-7); }
.shot > .frame__img { object-position: 50% 0; }
.head-note { margin: 0; font-size: var(--t-lead); line-height: 1.5; }
.foot-note { margin: var(--s-5) 0 0; color: var(--muted); font-size: var(--t-small); }

/* nei pannelli: il telefono sale dal fondo, centrato; il modulo più largo */
.panel--lit { --p-h: 300px; }
.stage > .shot--phone { --w: 300px; left: max(24px, calc(50% - 150px)); right: auto; width: min(300px, calc(100% - 48px)); top: 40px; }
.stage > .shot--dialog { left: max(24px, calc(50% - 210px)); right: auto; width: min(420px, calc(100% - 48px)); top: 40px; }
.ic-badge { position: absolute; right: var(--s-6); top: var(--s-6); width: 48px; height: 48px; z-index: 2;
  padding: 8px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgb(18 18 20 / .08), 0 10px 24px -14px rgb(18 18 20 / .4); }
#accesso .panel--lit { --p-h: clamp(280px, 100svh - 480px, 420px); }
@media (min-width: 640px) and (max-width: 1023px) { .panel--lit { --p-h: calc(100svh - 580px); } #accesso .panel--lit { --p-h: calc(100svh - 500px); } }
@media (max-width: 639px) {
  .panel--lit, #entrata .card--open > .panel { --p-h: 120px; }
  #accesso .panel--lit { --p-h: 160px; }
  .shot--dark.frame--split { --ratio: 80%; }
  .stage > :is(.shot--phone, .shot--dialog) { top: 24px; }
  .ic-badge { right: var(--s-4); top: var(--s-4); }
}

/* la bacheca in tema scuro sul fondo scuro */
.shot--dark { background: #0b0b0c; box-shadow: 0 0 0 1px rgb(255 255 255 / .1); }
.shot--dark > .frame__img { object-position: 0 0; }
.plain-list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-4); }
.plain-list li { padding-top: var(--s-4); border-top: 1px solid var(--line); }

/* la frase grande */
.statement__body { display: grid; gap: var(--s-7); align-content: start; }
.statement__body .t-lead { margin: 0; }

/* pagina privacy: testo semplice sotto la barra, niente sezioni a schermo */
.legale__testo { padding: calc(var(--nav) + var(--s-8)) 0 var(--s-9); max-width: 720px; }
.legale__testo h1 { font-size: var(--t-h2); margin: var(--s-3) 0 var(--s-5); }
.legale__testo h2 { font-size: var(--t-h3); margin: var(--s-8) 0 var(--s-4); }
.legale__testo p, .legale__testo li { font-size: var(--t-body); line-height: 1.7; max-width: 62ch; }
.legale__testo ul { padding-left: 1.2em; list-style: disc; }
.legale__testo li { display: list-item; }
.legale__testo strong { font-weight: 500; }
.legale .nav__actions--sempre { display: flex !important; margin-left: auto; }
.legale .nav__actions--sempre .btn { display: inline-flex !important; }
.legale__piede { padding: var(--s-7) 0; border-top: 1px solid var(--line); font-size: var(--t-small); color: var(--muted); }

/* il nome grande in fondo: la Geist ha ascendenti alti, la riga stretta del kit li taglia */
.close__word { line-height: 1.05; }

/* la frase grande con il dettaglio in euro accanto */
.statement__row { margin-top: var(--s-6); }
.shot--card { align-self: start; }
@media (max-width: 639px) { .statement__row { margin-top: var(--s-6); } }
@media (min-width: 640px) { #faq .faq__item { padding-block: var(--s-6); } }
@media (min-width: 640px) and (max-width: 1023px) and (min-height: 1100px) { #faq .faq__item { padding-block: var(--s-7); } }
@media (min-width: 1024px) and (max-height: 800px) { #faq .faq__item { padding-block: var(--s-4); } }
@media (max-width: 639px) { .statement__row > .shot--card { display: none; } }
.shot--phone-dark { width: min(340px, 100%, (100svh - 400px) * .74); margin-top: var(--s-4); background: #0b0b0c; }
@media (max-width: 1023px) { .shot--phone-dark { display: none; } }
.mo-lt__type { font-size: clamp(44px, 6vw, 88px); max-width: none; }
@media (min-width: 1024px) { .shot--dark.frame--split { --ratio: 100%; } }
.ic-inline { display: inline-block; width: 53px; height: 24px; vertical-align: -6px; margin-right: 10px; }
@media (min-width: 640px) and (max-width: 1023px) { .shot--dark.frame--split { --ratio: 0px; height: calc(100svh - 560px); } }
@media (min-width: 1024px) and (max-width: 1279px) { .shot--dark.frame--split { --ratio: 125%; } }
.frame.shot > picture { position: absolute; inset: 0; max-width: none; }
.shot > picture > .frame__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0; }
@media (max-width: 1023px) { #bacheca .frame { margin-top: var(--s-6); } }
@media (max-width: 639px) { .mo-lt__type { font-size: 13vw; } }
@media (max-width: 639px) { #faq .faq__item { padding-block: var(--s-5); } }
