/*
  Sito di FatturaPronta. Un solo foglio di stile, nessuna dipendenza, nessuna richiesta a terzi:
  il carattere è Inter se il visitatore lo ha, altrimenti quello di sistema.
*/
:root {
  --blue-900: #0a2a8f;
  --blue-700: #0846c9;
  --blue-600: #0a58f5;
  --blue-100: #dbe7ff;
  --blue-50: #f0f5ff;
  --ink: #0f1b3d;
  --text: #33405e;
  --muted: #5b6785;
  --line: #e2e7f1;
  --soft: #f5f7fb;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 24px 60px rgba(10, 42, 143, 0.18);
  --font: Inter, "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; }

a { color: var(--blue-700); text-underline-offset: 3px; }
a:hover { color: var(--blue-900); }

:focus-visible { outline: 3px solid #19b5ff; outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--white); color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* Intestazione */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 750; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-size: 15.5px; font-weight: 550; }
.nav a:not(.btn):hover { color: var(--blue-700); }

/* Pulsanti ed etichette */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font-weight: 650; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; line-height: 1.2; }
.btn-primary { background: var(--white); color: var(--blue-700); }
.btn-primary:hover { background: var(--blue-50); color: var(--blue-900); }
.btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.btn-solid { background: var(--blue-600); color: var(--white); }
.btn-solid:hover { background: var(--blue-700); color: var(--white); }
.btn-outline { color: var(--blue-700); border-color: var(--blue-100); background: var(--white); }
.btn-outline:hover { border-color: var(--blue-600); }
.btn-small { padding: 9px 16px; font-size: 14.5px; border-radius: 10px; }

.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 650; }
.chip-light { background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.38); color: var(--white); }
.chip-blue { background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #7df0b2; }

/* Apertura */
.hero { color: var(--white); background: radial-gradient(900px 520px at 88% -12%, rgba(25, 181, 255, 0.85) 0%, rgba(25, 181, 255, 0) 62%), linear-gradient(160deg, var(--blue-600) 0%, var(--blue-900) 100%); padding: 72px 0 0; overflow: hidden; }
.hero-text { max-width: 780px; }
.hero h1 { color: var(--white); font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; letter-spacing: -0.03em; margin-top: 20px; }
.hero .lead { margin-top: 20px; font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: #e6efff; max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 16px; font-size: 15px; color: #cfe0ff; }
.hero-shot { margin-top: 56px; margin-bottom: -4px; }

/* Finestra con una vista dell'app */
.shot { border-radius: 14px 14px 0 0; overflow: hidden; background: #f1f1f1; box-shadow: 0 30px 80px rgba(4, 22, 90, 0.45); border: 1px solid rgba(255, 255, 255, 0.25); border-bottom: 0; }
.shot-bar { display: flex; gap: 7px; padding: 12px 16px; background: #e7e9ee; }
.shot-bar span { width: 11px; height: 11px; border-radius: 50%; background: #c5cad6; }
.shot.full { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* Sezioni */
section { padding: 88px 0; }
.soft { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-700); }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 780; margin-top: 10px; }
.section-head p { margin-top: 14px; font-size: 18.5px; color: var(--muted); }

/* Come funziona */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; background: var(--blue-600); color: var(--white); font-weight: 750; font-size: 17px; }
.steps h3 { font-size: 20px; margin-top: 18px; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 16.5px; }

/* Le pagine del cliente */
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.phone-card { text-align: center; }
.phone { width: min(100%, 300px); margin: 0 auto; border: 9px solid var(--ink); border-radius: 34px; overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.phone-card h3 { font-size: 19px; margin-top: 22px; }
.phone-card p { margin-top: 6px; color: var(--muted); font-size: 16px; }

/* Funzioni con la vista accanto */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 84px; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .feature-text { order: 2; }
.feature h3 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 760; }
.feature p { margin-top: 12px; font-size: 18px; color: var(--muted); }
.ticks { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-size: 16.5px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.3l3 3 6-6.4' fill='none' stroke='%230846c9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }

/* Per chi è e che cosa resta fuori */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; background: var(--white); }
.panel h3 { font-size: 21px; }
.panel > p { margin-top: 10px; color: var(--muted); }
.panel .ticks { margin-top: 18px; }
.outs { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.outs li { position: relative; padding-left: 26px; font-size: 16.5px; }
.outs li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 10px; height: 2px; border-radius: 2px; background: #9aa5bf; }
.small { font-size: 15px; color: var(--muted); }

/* Prezzi */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; background: var(--white); }
.plan.featured { border: 2px solid var(--blue-600); box-shadow: var(--shadow); }
.plan h3 { font-size: 20px; }
.plan .price { margin-top: 14px; font-size: 40px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.plan .price span { font-size: 16px; font-weight: 550; color: var(--muted); letter-spacing: 0; }
.plan .included { margin-top: 16px; font-size: 17px; font-weight: 650; color: var(--ink); }
.plan p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.plans-note { margin-top: 28px; max-width: 820px; margin-left: auto; margin-right: auto; text-align: center; color: var(--muted); font-size: 16px; }

/* Domande */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--white); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 650; font-size: 17.5px; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; font-weight: 400; color: var(--blue-700); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--muted); }

/* Chiusura e piè di pagina */
.cta { background: linear-gradient(160deg, var(--blue-600) 0%, var(--blue-900) 100%); color: var(--white); text-align: center; }
.cta h2 { color: var(--white); font-size: clamp(28px, 3.4vw, 40px); font-weight: 780; }
.cta p { margin: 14px auto 0; max-width: 620px; color: #e6efff; font-size: 18.5px; }
.cta .hero-actions { justify-content: center; }

.site-footer { background: var(--ink); color: #c3cbe0; padding: 48px 0 40px; font-size: 15px; }
.site-footer .wrap { display: grid; gap: 22px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer .brand { color: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; }
.site-footer a { color: #e6ecfb; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 20px; display: grid; gap: 6px; color: #a9b3cc; }

/* Schermi stretti */
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .nav a:not(.btn) { display: none; }
  .steps, .phones, .plans, .fit { grid-template-columns: 1fr; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .feature-text { order: 0; }
  .feature + .feature { margin-top: 64px; }
  .hero { padding-top: 48px; }
  .hero-shot { margin-top: 40px; }
  .phones { gap: 44px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .btn { width: 100%; }
  .site-header .btn { width: auto; }
  .shot-bar { padding: 8px 12px; }
  .shot-bar span { width: 8px; height: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Pagine interne */
.nav a[aria-current="page"]:not(.btn) { color: var(--blue-700); }
.page-head { padding: 72px 0 24px; }
.page-head h1 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 800; letter-spacing: -0.03em; margin-top: 10px; max-width: 820px; }
.page-head .lead { margin-top: 16px; font-size: clamp(18px, 2vw, 20px); color: var(--muted); max-width: 720px; }
section.tight { padding-top: 32px; }
.more { margin-top: 32px; text-align: center; }
.more.left { text-align: left; }
.ticks.two-cols { grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.panel p + p { margin-top: 10px; }
.panel h3 + p { margin-top: 10px; color: var(--muted); }
.plan h2 { font-size: 20px; }

/* Guida in passi */
.guide { list-style: none; counter-reset: guide; display: grid; gap: 16px; max-width: 868px; }
.guide li { counter-increment: guide; position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px 26px 84px; background: var(--white); }
.guide li::before { content: counter(guide); position: absolute; left: 26px; top: 24px; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; background: var(--blue-600); color: var(--white); font-weight: 750; font-size: 17px; }
.guide h2 { font-size: 21px; }
.guide p { margin-top: 8px; color: var(--muted); }

/* Pagina delle domande */
.jump { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.jump a { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--blue-100); background: var(--blue-50); color: var(--blue-700); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.jump a:hover { border-color: var(--blue-600); }
.faq-page h2 { font-size: 24px; margin: 44px 0 16px; scroll-margin-top: 90px; }
.faq-page h2:first-child { margin-top: 0; }
.faq-page .faq { max-width: 820px; margin: 0; }
.faq details { scroll-margin-top: 90px; }
.faq details p + p { margin-top: -8px; }
.faq details ul { margin: -6px 0 20px; padding-left: 22px; color: var(--muted); display: grid; gap: 6px; }

.footer-legal-links { font-size: 14.5px; }

@media (max-width: 900px) {
  .ticks.two-cols { grid-template-columns: 1fr; }
  .page-head { padding-top: 48px; }
  .guide li { padding: 72px 22px 22px; }
  .guide li::before { left: 22px; top: 20px; }
}
