/* SmartPratiche — shared stylesheet
   Edit here, never inline in a page. Every page links this file. */

:root{
  --bg:#ffffff;
  --surface:#f7f9fb;
  --fg:#141d27;
  --muted:#5a6b7d;
  --line:#e2e8ef;
  --accent:#0f5680;
  --accent-fg:#ffffff;
  --accent-soft:#eef5fa;
  /* Button colours are separate from --accent on purpose: --accent must stay
     readable as TEXT on --bg, while --btn-bg must stay readable UNDER white
     text. One token cannot do both jobs in light and dark. */
  --btn-bg:#0f5680;
  --btn-fg:#ffffff;
  --radius:10px;
  --maxw:1240px;
}
@media (prefers-color-scheme:dark){
  :root{
    --bg:#0d151e;
    --surface:#131e2a;
    --fg:#e7eef6;
    --muted:#94a7ba;
    --line:#213040;
    --accent:#68b0e4;
    --accent-fg:#08121b;
    --accent-soft:#152433;
    --btn-bg:#1f6fa8;
    --btn-fg:#ffffff;
  }
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--bg);color:var(--fg);
  font:16px/1.7 system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}

/* ---------- header ---------- */
.site-header{border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--bg);z-index:10}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;height:68px}
.brand{font-size:19px;font-weight:700;letter-spacing:-.01em;text-decoration:none;color:var(--fg);white-space:nowrap}
.brand span{color:var(--accent)}
.nav{display:flex;gap:26px;align-items:center}
.nav a{color:var(--muted);text-decoration:none;font-size:15px}
.nav a:hover,.nav a[aria-current="page"]{color:var(--fg)}
/* `.nav a` (0,2,0) outranks `.btn` (0,1,0), so the nav button MUST restate its
   own colour with matching specificity or it inherits --muted and becomes
   unreadable on the button background. This shipped broken once — do not
   simplify these two selectors back to `.nav .btn`. */
.nav a.btn,.nav button.btn{padding:9px 16px;font-size:14px;color:var(--btn-fg)}
.nav a.btn:hover,.nav button.btn:hover{color:var(--btn-fg)}
.nav a.btn-alt{color:var(--accent)}
@media(max-width:760px){
  .site-header .wrap{height:auto;padding-top:14px;padding-bottom:14px;flex-wrap:wrap}
  .nav{gap:18px;flex-wrap:wrap}
  .nav a:not(.btn){font-size:14px}
}

/* ---------- buttons ---------- */
.btn{
  display:inline-block;padding:13px 24px;border-radius:7px;
  background:var(--btn-bg);color:var(--btn-fg);
  text-decoration:none;font-weight:600;font-size:15px;border:1px solid var(--btn-bg);
  cursor:pointer;
}
/* Hover shifts brightness rather than swapping to --accent: in dark mode
   --accent is a pale blue that would leave white text unreadable. */
.btn:hover{filter:brightness(1.12);color:var(--btn-fg)}
.btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.btn-alt{background:transparent;color:var(--accent);border-color:var(--accent)}
.btn-alt:hover{background:var(--accent-soft);color:var(--accent);border-color:var(--accent)}

/* WhatsApp button. Measured, not guessed:
     #25D366 (brand green)  -> ~2.1:1 with white  FAILS
     #128C7E (brand teal)   ->  4.14:1 with white FAILS AA (needs 4.5)
     #075E54 (brand dark)   ->  7.6:1  with white PASSES
   Do not "correct" this to the familiar bright green. */
.btn-wa{
  background:#075E54;border-color:#075E54;color:#fff;
  display:inline-flex;align-items:center;gap:9px;
  font-family:inherit;
}
.btn-wa:hover{color:#fff}
.wa-icon{display:inline-flex;align-items:center}
.btn-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}

/* ---------- sections ---------- */
section{padding:64px 0;border-bottom:1px solid var(--line)}
section:last-of-type{border-bottom:0}
/* NOTE ON LINE LENGTH
   Text blocks deliberately carry NO max-width: they fill the container, which
   is what was asked for. That means --maxw (line 19) is now the ONLY control
   over how long a line of text gets. Widen it and lines get longer and harder
   to read; narrow it and the page uses less of the screen. One knob, one
   trade-off. Measure after changing it - do not eyeball. */
.hero{padding:80px 0 64px}
h1{font-size:clamp(30px,5vw,46px);line-height:1.15;letter-spacing:-.025em;margin:0 0 18px}
.hero .lead{font-size:19px;color:var(--muted);margin:0}
h2{font-size:clamp(23px,3.4vw,31px);line-height:1.25;letter-spacing:-.02em;margin:0 0 14px}
h3{font-size:18px;margin:0 0 6px;letter-spacing:-.01em}
.section-intro{color:var(--muted);margin:0 0 34px}
.eyebrow{
  font-size:13px;text-transform:uppercase;letter-spacing:.1em;
  color:var(--accent);font-weight:600;margin:0 0 12px;
}

/* ---------- grids ----------
   Explicit column counts, NOT auto-fit. With auto-fit the browser fits however
   many columns the container allows, so `.grid-2` silently became 3 columns
   when --maxw was widened — a 4-card block rendered as 3 + 1 orphan. The class
   name must mean what it says on every page. Breakpoints step down for narrow
   screens. */
.grid{display:grid;gap:24px}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
@media(max-width:900px){
  .grid-3{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:620px){
  .grid-2,.grid-3{grid-template-columns:1fr}
}
.card{
  padding:26px;border:1px solid var(--line);border-radius:var(--radius);
  background:var(--surface);
}
.card h3{margin-bottom:8px}
.card p{margin:0;color:var(--muted);font-size:15px}

/* ---------- feature list ---------- */
.features{list-style:none;padding:0;margin:0}
.features li{padding:22px 0;border-bottom:1px solid var(--line)}
.features li:last-child{border-bottom:0}
.features strong{display:block;font-size:17px;margin-bottom:5px}
.features span{color:var(--muted);font-size:15px}

/* ---------- steps ---------- */
.steps{list-style:none;counter-reset:s;padding:0;margin:0;display:grid;gap:18px}
.steps li{counter-increment:s;display:flex;gap:16px;align-items:flex-start}
.steps li::before{
  content:counter(s);flex:none;width:30px;height:30px;border-radius:50%;
  background:var(--accent-soft);color:var(--accent);
  display:grid;place-items:center;font-weight:700;font-size:14px;
  border:1px solid var(--line);margin-top:2px;
}
.steps strong{display:block;margin-bottom:3px}
.steps span{color:var(--muted);font-size:15px}

/* ---------- callout ---------- */
.callout{
  padding:30px;border-radius:var(--radius);
  background:var(--accent-soft);border:1px solid var(--line);
}
.callout h2{margin-bottom:10px}
.callout p{color:var(--muted);margin:0}

/* ---------- faq ---------- */
.faq{margin-top:8px}
.faq details{border-bottom:1px solid var(--line);padding:18px 0}
.faq summary{cursor:pointer;font-weight:600;font-size:16px;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary::before{content:"+ ";color:var(--accent);font-weight:700}
.faq details[open] summary::before{content:"– "}
.faq p{color:var(--muted);margin:10px 0 0;font-size:15px}

/* ---------- table ---------- */
.table-scroll{overflow-x:auto}
table{border-collapse:collapse;width:100%;font-size:15px;min-width:440px}
th,td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--line)}
th{font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}

/* ---------- footer ----------
   Italian business sites are expected to carry ragione sociale, sede legale,
   P.IVA and links to privacy/cookie/termini. An Italian buyer checks the
   footer to confirm the company is real — an empty one is a red flag. */
.site-footer{border-top:1px solid var(--line);padding:44px 0 30px;color:var(--muted);font-size:14px}
.footer-cols{
  display:grid;gap:28px;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  padding-bottom:26px;
}
.footer-cols .brand{font-size:17px;display:block;margin-bottom:8px}
.footer-cols p{margin:0;line-height:1.7}
.footer-links{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.site-footer a{color:var(--muted);text-decoration:none}
.site-footer a:hover{color:var(--fg);text-decoration:underline}
.footer-bottom{
  border-top:1px solid var(--line);padding-top:20px;
  display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;font-size:13px;
}
/* Placeholder markers inside legal text.
   These sit mid-sentence ("il titolare è ___"), so they cannot simply be
   deleted without breaking the sentence. Styled quietly — identifiable on a
   read-through, but not shouting. The visible draft notice at the top of each
   legal page is what stops these shipping unnoticed.
   Search the codebase for "DA COMPLETARE" to find them all. */
.todo{
  font-style:italic;color:var(--muted);
  border-bottom:1px dotted var(--muted);
}

/* Draft notice — a real notice box at the top of unfinished legal pages. */
.draft-notice{
  border:1px solid var(--line);border-left:3px solid var(--accent);
  background:var(--surface);border-radius:6px;
  padding:14px 18px;margin-top:24px;font-size:14px;color:var(--muted);

}
.draft-notice strong{color:var(--fg)}
.note{font-size:14px;color:var(--muted)}
