/* =========================================================
   Guida di MailMover — stesso aspetto dei siti demicons.it
   (variabili, caratteri, riquadri e tabelle di assets/css/style.css)
   La stessa cartella help/ si apre dal programma ed è pubblicata sul sito.
   ========================================================= */
:root {
  --blue: #2156e8;
  --blue-600: #1a45c2;
  --blue-50: #eef3ff;
  --blue-100: #dbe5ff;
  --orange: #ff7a1a;
  --orange-50: #fff3ea;
  --red: #c62828;
  --red-50: #fdecec;
  --ink: #0d1a3a;
  --text: #33405e;
  --muted: #6b7690;
  --line: #e4e9f2;
  --bg: #ffffff;
  --bg-soft: #f5f8fd;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(13, 26, 58, .04), 0 8px 24px rgba(13, 26, 58, .06);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg-soft);
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .6em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 750; margin-top: 2.2em; scroll-margin-top: 16px; }
h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.6em; }
p { margin: 0 0 1em; }
p, li { max-width: 74ch; }
code { font-family: var(--mono); font-size: .88em; background: var(--blue-50); color: var(--ink);
  padding: 1px 6px; border-radius: 6px; word-break: break-word; }
pre { background: var(--ink); color: #e8eeff; padding: 14px 16px; border-radius: var(--radius-sm);
  overflow-x: auto; font: 14px/1.5 var(--mono); }
pre code { background: none; color: inherit; padding: 0; }

/* ---------- intestazione ---------- */
header { background: linear-gradient(135deg, var(--blue), #4f7dff); color: #fff; }
header .riga { max-width: 900px; margin: 0 auto; padding: 34px 20px 30px; }
header .eyebrow { margin: 0 0 6px; font-size: .82rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #dbe5ff; }
header h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; margin: 0 0 .3em; }
header .lead { margin: 0; color: #eef3ff; font-size: 1.05rem; max-width: 70ch; }
header .lingua { float: right; margin-left: 16px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px; color: #fff; font-size: .9rem; font-weight: 600; }
header .lingua:hover { background: rgba(255,255,255,.15); text-decoration: none; }

/* ---------- contenuto ---------- */
main { max-width: 900px; margin: -18px auto 0; padding: 0 20px 70px; }
.foglio { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px clamp(18px, 4vw, 44px) 40px; }
.foglio > h2:first-child { margin-top: .4em; }

nav.indice { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 22px; margin: 0 0 1.5em; }
nav.indice strong { display: block; color: var(--ink); margin-bottom: 6px; }
nav.indice ol { margin: 0; padding-left: 22px; columns: 2 280px; column-gap: 28px; }
nav.indice li { margin: 2px 0; break-inside: avoid; }

/* riquadri come i callout del sito */
.nota { padding: 16px 20px; margin: 1.4em 0; border-radius: var(--radius); background: var(--blue-50);
  border: 1px solid var(--blue-100); color: var(--ink); }
.nota > :last-child { margin-bottom: 0; }
.nota.attenzione { background: var(--orange-50); border-color: #ffd9bd; }
.nota.pericolo { background: var(--red-50); border-color: #f5c2c2; }

/* tabelle come quelle del sito */
.tab-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 11px 15px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); color: var(--ink); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* passi numerati a pallini, come ::: steps del sito */
ol.passi { list-style: none; counter-reset: passo; padding-left: 0; }
ol.passi > li { counter-increment: passo; position: relative; padding-left: 46px; margin: 0 0 14px; }
ol.passi > li::before { content: counter(passo); position: absolute; left: 0; top: -1px; width: 30px; height: 30px;
  border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; justify-content: center; }

/* gravità come in Controlla */
.g { font-weight: 700; white-space: nowrap; }
.g.errore { color: var(--red); }
.g.avviso { color: #c25a00; }
.g.info { color: var(--muted); }

/* domande frequenti come .faq del sito */
.faq h3 { padding-left: 14px; border-left: 3px solid var(--orange); }

footer { max-width: 900px; margin: 0 auto; padding: 0 20px 40px; color: var(--muted); font-size: .88rem; text-align: center; }

@media print {
  body { background: #fff; }
  header { background: none; color: var(--ink); }
  header h1, header .eyebrow, header .lead { color: var(--ink); }
  header .lingua { display: none; }
  .foglio { box-shadow: none; border: 0; padding: 0; }
}
