/* ContoFlow · site.css — marchio, stili di pagina, calcolatore, FAQ.
   Tutto il resto viene da contoflow.css. Nessun colore hardcoded: solo token. */

/* ── Marchio ─────────────────────────────────────────────────────────────── */
/* Avantt è il carattere display del marchio, lo stesso dell'applicazione: il
   wordmark è testo, non un PNG, così resta nitido a ogni dimensione. */
@font-face { font-family: "Avantt"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/avantt-regular.woff2") format("woff2"); }
@font-face { font-family: "Avantt"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/avantt-semibold.woff2") format("woff2"); }

.wordmark { display: inline-flex; align-items: baseline; gap: .32em; line-height: 1; }
.wordmark span:first-child { font-family: "Avantt", var(--font); font-weight: 600; font-size: 1.32rem;
  letter-spacing: -0.02em; color: var(--ink-900); }
.wordmark i { width: .42em; height: .42em; border-radius: 2px; background: var(--brand); font-size: 1.32rem; flex: none; }
.footer .wordmark span:first-child { color: #fff; }

/* ── Hero split (testo + screenshot) ─────────────────────────────────────── */
.hero-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; } }

/* ── Sezione media: testo a fianco di uno screenshot ─────────────────────── */
.media-row { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.media-row.flip { grid-template-columns: 7fr 5fr; }
.media-row.flip .media-txt { order: 2; }
@media (max-width: 900px) { .media-row, .media-row.flip { grid-template-columns: 1fr; } .media-row.flip .media-txt { order: 0; } }

/* ── Elenco puntato brand (dot blu) ──────────────────────────────────────── */
ul.dots { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.dots li { position: relative; padding-left: 22px; color: var(--ink-700); font-size: 15px; }
ul.dots li::before { content: ""; position: absolute; left: 0; top: .48em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

/* ── Form ROI ────────────────────────────────────────────────────────────── */
.roi { display: grid; gap: 16px; }
.roi label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink-700); }
.roi input { height: 42px; padding: 0 12px; border: 1px solid var(--ink-200); border-radius: var(--r-1);
  font: inherit; font-size: 15px; color: var(--ink-900); background: var(--paper);
  font-variant-numeric: tabular-nums; }
.roi input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.roi-out { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 6px; }
.roi-out > div { border-top: 2px solid var(--ink-900); padding-top: 10px; }
.roi-out span { display: block; font-size: 1.9rem; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.roi-out small { color: var(--ink-500); font-size: 12.5px; }

/* ── FAQ con details/summary ─────────────────────────────────────────────── */
details.faq { border-top: 1px solid var(--ink-150); padding: 18px 0; }
details.faq:last-of-type { border-bottom: 1px solid var(--ink-150); }
details.faq summary { cursor: pointer; font-weight: 600; color: var(--ink-900); font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; font-weight: 400; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 12px 0 0; color: var(--ink-600); max-width: 66ch; }

/* ── Logo strip / badge ERP ──────────────────────────────────────────────── */
.badges-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Tabelle: prima colonna non troppo stretta ───────────────────────────── */
table.dc td, table.dc th { vertical-align: top; }

/* ── CTA band: lede centrata ─────────────────────────────────────────────── */
.cta-band .lede { margin-left: auto; margin-right: auto; }
.section-dark .link-arrow { color: var(--brand-on-dark); }
.section-dark .card { background: var(--dark-paper); border-color: var(--dark-line); }
.section-dark .card h3 { color: #fff; }
.section-dark .stat { border-top-color: rgba(255,255,255,.7); }

/* ── Footer nav corrente ─────────────────────────────────────────────────── */
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400); }

/* ── Topnav su schermi stretti ───────────────────────────────────────────── */
/* Sotto i 620px il design system nasconde già i link di navigazione, ma
   restano due bottoni: marchio + "Accedi" + la chiamata all'azione non ci
   stanno in 375px e il bottone finisce tagliato fuori schermo. Su mobile
   tiene il campo solo la chiamata all'azione; l'accesso all'app resta nel
   footer, ed è comunque un gesto che si fa da desktop. */
@media (max-width: 620px) {
  .topnav .btn-ghost { display: none; }
}
