/* =========================================================
   PDF Toolkit — styles (tema FDMpy: blu/indaco, dark mode incluso)
   Pagina autonoma: non dipende da shared.css, nessun conflitto.
   ========================================================= */

:root {
  --bg:        #f5f6fb;
  --bg-soft:   #eef0f8;
  --surface:   #ffffff;
  --surface-2: #f8f9fe;
  --ink:       #14152a;
  --ink-soft:  #4b4d66;
  --ink-mute:  #8a8ca3;
  --line:      #e7e8f2;
  --line-2:    #d9dbec;

  --brand:     #1d4ed8;
  --brand-2:   #3b82f6;
  --brand-3:   #6366f1;
  --brand-ink: #ffffff;
  --accent-soft: #e8f0fe;

  --ok:   #15a06b;
  --ok-bg:#e5f6ee;
  --warn: #d98316;
  --warn-bg:#fdf2e2;
  --err:  #d6455a;
  --err-bg:#fdeaed;

  --grad: linear-gradient(120deg, #1d4ed8 0%, #3b82f6 50%, #6366f1 100%);
  --grad-soft: linear-gradient(120deg, #eaf1ff 0%, #eef2ff 100%);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --sh-1: 0 1px 2px rgba(20,21,42,.04), 0 2px 8px rgba(20,21,42,.04);
  --sh-2: 0 6px 22px rgba(31,23,84,.08);
  --sh-3: 0 18px 50px rgba(31,23,84,.16);
  --sh-brand: 0 12px 28px rgba(29,78,216,.30);

  --maxw: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* subtle page background flourish */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(60vw 40vw at 85% -8%, rgba(99,102,241,.10), transparent 60%),
    radial-gradient(50vw 38vw at -8% 8%, rgba(29,78,216,.10), transparent 60%);
  pointer-events: none; z-index: 0;
}
main, .site-header, .site-footer { position: relative; z-index: 1; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(245,246,251,.78);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 12px; color: #fff; background: var(--grad); box-shadow: var(--sh-brand);
}
.brand-text { font-size: 19px; }
.brand-text.small { font-size: 17px; }
.brand-dot { color: var(--brand-3); }
.header-nav { display: flex; align-items: center; gap: 26px; }
.header-nav a { color: var(--ink-soft); font-weight: 600; font-size: 15px; transition: color .15s; }
.header-nav a:hover { color: var(--ink); }
.ghost-btn {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); box-shadow: var(--sh-1);
}
.ghost-btn:hover { border-color: var(--brand); color: var(--brand) !important; }

/* ===== Views ===== */
.view { display: none; }
.view.is-active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ===== Hero ===== */
.hero { padding: 70px 0 40px; }
.hero-inner { max-width: 820px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--brand); background: var(--accent-soft); border: 1px solid #e2d9ff;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(21,160,107,.18); }
.hero-title {
  font-size: clamp(38px, 6vw, 62px); line-height: 1.04; letter-spacing: -.03em;
  margin: 20px 0 0; font-weight: 850;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: var(--ink-soft); margin: 18px 0 0; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }
.primary-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 14px; font-weight: 700; font-size: 16px;
  color: #fff; background: var(--grad); box-shadow: var(--sh-brand);
  border: none; transition: transform .15s, box-shadow .15s;
}
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(29,78,216,.40); }
.primary-btn:active { transform: translateY(0); }
.hero-note { font-size: 13.5px; color: var(--ink-mute); }
.trust-row { display: flex; align-items: center; gap: 26px; margin-top: 42px; }
.trust-item { display: flex; flex-direction: column; }
.trust-item strong { font-size: 26px; letter-spacing: -.02em; }
.trust-item span { font-size: 13px; color: var(--ink-mute); }
.trust-divider { width: 1px; height: 34px; background: var(--line-2); }

/* ===== Section head ===== */
.section-head { margin: 30px 0 22px; scroll-margin-top: 90px; }
.section-head h2 { font-size: 26px; letter-spacing: -.02em; margin: 0; }
.section-head p { color: var(--ink-soft); margin: 6px 0 0; }

/* ===== Tools grid ===== */
.tools-grid {
  display: grid; gap: 18px; padding-bottom: 20px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.tool-card {
  position: relative; text-align: left; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-1);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tool-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--grad-soft); opacity: 0; transition: opacity .2s; z-index: 0;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: #e0dcff; }
.tool-card:hover::after { opacity: .5; }
.tool-card > * { position: relative; z-index: 1; }
.tool-ico {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; margin-bottom: 16px; box-shadow: var(--sh-1);
}
.tool-card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; }
.tool-card p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.tool-go {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 14px; color: var(--brand);
}
.tool-go svg { transition: transform .18s; }
.tool-card:hover .tool-go svg { transform: translateX(4px); }

/* per-tool icon hues */
.ico-merge   { background: linear-gradient(135deg,#5b3df5,#7c5cff); }
.ico-split   { background: linear-gradient(135deg,#0ea5e9,#3b82f6); }
.ico-compress{ background: linear-gradient(135deg,#10b981,#22c55e); }
.ico-sign    { background: linear-gradient(135deg,#f59e0b,#f97316); }
.ico-ocr     { background: linear-gradient(135deg,#8b5cf6,#a855f7); }
.ico-protect { background: linear-gradient(135deg,#ef4444,#db2777); }
.ico-convert { background: linear-gradient(135deg,#14b8a6,#06b6d4); }

/* ===== Privacy band ===== */
.privacy-band {
  display: flex; gap: 22px; align-items: flex-start;
  margin: 18px 0 70px; padding: 30px;
  border-radius: var(--r-xl); background: var(--ink); color: #eceaff;
  box-shadow: var(--sh-3); scroll-margin-top: 90px;
  background-image: radial-gradient(40vw 30vw at 100% 0, rgba(99,102,241,.35), transparent 60%);
}
.privacy-icon {
  flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #c9b8ff; border: 1px solid rgba(255,255,255,.12);
}
.privacy-text h3 { margin: 0 0 8px; font-size: 21px; }
.privacy-text p { margin: 0; color: #b9b8d6; max-width: 720px; }

/* ===== Tool view ===== */
#view-tool { padding: 28px 0 80px; }
.back-btn {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 20px;
  padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px;
  color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1);
  transition: color .15s, border-color .15s;
}
.back-btn:hover { color: var(--brand); border-color: var(--brand); }

.tool-shell {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--sh-2); overflow: hidden;
}
.tool-head { display: flex; gap: 16px; align-items: center; padding: 26px 28px; border-bottom: 1px solid var(--line); }
.tool-head .tool-ico { margin: 0; width: 54px; height: 54px; }
.tool-head h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.tool-head p { margin: 3px 0 0; color: var(--ink-soft); font-size: 14.5px; }
.tool-body { padding: 26px 28px; }

/* ===== Dropzone ===== */
.dropzone {
  border: 2px dashed var(--line-2); border-radius: var(--r-lg);
  background: var(--surface-2); padding: 42px 24px; text-align: center;
  transition: border-color .18s, background .18s, transform .05s; cursor: pointer;
}
.dropzone:hover { border-color: var(--brand); background: #faf9ff; }
.dropzone.drag { border-color: var(--brand); background: var(--accent-soft); transform: scale(1.005); }
.dz-ico {
  width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 18px;
  display: grid; place-items: center; color: var(--brand); background: var(--accent-soft);
}
.dropzone h4 { margin: 0 0 4px; font-size: 17px; }
.dropzone p { margin: 0; color: var(--ink-mute); font-size: 13.5px; }
.dz-btn {
  display: inline-block; margin-top: 14px; padding: 10px 20px; border-radius: 10px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 14px;
}

/* ===== File list ===== */
.file-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.file-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.file-row.drag-ghost { opacity: .4; }
.file-row .grip { color: var(--ink-mute); cursor: grab; flex: none; }
.file-thumb {
  flex: none; width: 40px; height: 52px; border-radius: 6px; overflow: hidden;
  background: #fff; border: 1px solid var(--line-2); display: grid; place-items: center;
  color: var(--err); font-size: 10px; font-weight: 700;
}
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-meta { flex: 1; min-width: 0; }
.file-name { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-sub { font-size: 12.5px; color: var(--ink-mute); }
.file-row .x {
  flex: none; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-mute); display: grid; place-items: center; transition: .15s;
}
.file-row .x:hover { color: var(--err); border-color: var(--err); background: var(--err-bg); }

/* ===== Controls ===== */
.field { margin-top: 20px; }
.field > label { display: block; font-weight: 650; font-size: 14px; margin-bottom: 8px; }
.field .hint { font-weight: 400; color: var(--ink-mute); font-size: 13px; margin-left: 6px; }
.input, .select, textarea.input {
  width: 100%; padding: 12px 14px; font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, textarea.input:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(29,78,216,.14);
}
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.seg { display: inline-flex; background: var(--bg-soft); padding: 4px; border-radius: 12px; gap: 4px; flex-wrap: wrap; }
.seg button {
  padding: 9px 16px; border: none; background: transparent; border-radius: 9px;
  font-weight: 600; font-size: 14px; color: var(--ink-soft); transition: .15s;
}
.seg button.on { background: var(--surface); color: var(--brand); box-shadow: var(--sh-1); }

.range-wrap { display: flex; align-items: center; gap: 14px; }
input[type=range] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; background: var(--line-2); flex: 1; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: var(--sh-1); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; cursor: pointer; }

.checkbox { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.checkbox input { width: 18px; height: 18px; accent-color: var(--brand); }

/* ===== Action bar ===== */
.action-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; }
.run-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 13px; border: none; font-weight: 700; font-size: 15.5px;
  color: #fff; background: var(--grad); box-shadow: var(--sh-brand);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.run-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(29,78,216,.40); }
.run-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.run-note { font-size: 13px; color: var(--ink-mute); }

/* ===== Progress ===== */
.progress { margin-top: 22px; }
.progress-track { height: 10px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: var(--grad); border-radius: 999px; transition: width .25s ease; }
.progress-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Result ===== */
.result {
  margin-top: 22px; padding: 20px; border-radius: var(--r-lg);
  background: var(--ok-bg); border: 1px solid #c7ecd9;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
}
.result.warn { background: var(--warn-bg); border-color: #f6dcae; }
.result .r-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--ok); }
.result.warn .r-ico { color: var(--warn); }
.result .r-text { flex: 1; min-width: 200px; }
.result .r-text strong { display: block; font-size: 15.5px; }
.result .r-text span { font-size: 13.5px; color: var(--ink-soft); }
.download-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border-radius: 11px;
  background: var(--ink); color: #fff; font-weight: 650; font-size: 14.5px; border: none;
  transition: transform .15s, background .15s;
}
.download-btn:hover { transform: translateY(-1px); background: #000; }
.download-list { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 8px; }

/* ===== Signature pad ===== */
.sig-pad-wrap { border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: #fff; }
.sig-pad { width: 100%; height: 200px; touch-action: none; display: block; cursor: crosshair; background:
  repeating-linear-gradient(0deg, #fff, #fff 39px, #eef 39px, #eef 40px); }
.sig-tools { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
.swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; }
.swatch.on { box-shadow: 0 0 0 2px var(--brand); }

/* ===== Page preview grid (split/sign) ===== */
.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 18px; }
.page-thumb { position: relative; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; transition: .15s; }
.page-thumb canvas, .page-thumb img { width: 100%; display: block; }
.page-thumb .pnum { position: absolute; left: 6px; bottom: 6px; background: rgba(20,21,42,.78); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 6px; font-weight: 600; }
.page-thumb.sel { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29,78,216,.18); }
.page-thumb .check { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; display: none; place-items: center; }
.page-thumb.sel .check { display: grid; }

/* ===== Misc ===== */
.note {
  display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-soft);
  margin-top: 16px;
}
.note svg { flex: none; color: var(--brand); margin-top: 1px; }
.hidden { display: none !important; }

/* ===== Toast ===== */
.toast-host { position: fixed; bottom: 24px; right: 24px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 12px;
  background: var(--ink); color: #fff; box-shadow: var(--sh-3); font-size: 14px; font-weight: 500;
  animation: toast-in .25s ease; max-width: 360px;
}
.toast.err { background: var(--err); }
.toast.ok { background: var(--ok); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 20px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 30px 0; }
.footer-inner p { margin: 6px 0 0; color: var(--ink-mute); font-size: 13.5px; }
.footer-mini { align-self: flex-end; }

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .header-nav a:not(.ghost-btn) { display: none; }
  .hero { padding: 46px 0 24px; }
  .trust-row { gap: 18px; }
  .row2 { grid-template-columns: 1fr; }
  .privacy-band { flex-direction: column; }
  .tool-head { flex-wrap: wrap; }
  .toast-host { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }
}

/* =========================================================
   FDMpy chrome — nav + footer + cookie banner (match del sito)
   ========================================================= */
.fdm-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); padding: 0 24px;
}
.fdm-nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; height: 62px; gap: 4px; }
.fdm-logo { font-size: 1.05rem; font-weight: 700; color: var(--brand); text-decoration: none; margin-right: auto; display: flex; align-items: center; gap: 8px; }
.fdm-logo span { background: var(--brand); color: #fff; border-radius: 6px; padding: 2px 8px; font-size: .78rem; font-weight: 700; }
.fdm-logo .logo-img { height: 44px; width: 44px; border-radius: 50%; display: block; flex-shrink: 0; }
.fdm-footer-logo { height: 60px; width: 60px; border-radius: 50%; display: block; margin-bottom: 12px; }
.fdm-navbtn { padding: 6px 13px; border-radius: 8px; cursor: pointer; font-size: .84rem; font-weight: 500; transition: .15s; text-decoration: none; background: transparent; color: var(--ink-mute); display: inline-block; }
.fdm-navbtn:hover { color: var(--ink); background: var(--line); }
.fdm-navbtn.active { color: var(--brand); background: var(--accent-soft); }
.fdm-dm { background: none; border: none; cursor: pointer; font-size: 1.05rem; padding: 6px 8px; border-radius: 8px; line-height: 1; }
.fdm-dm:hover { background: var(--line); }

.fdm-footer { background: #1e293b; color: #94a3b8; padding: 44px 24px 22px; margin-top: 40px; }
.fdm-footer-inner { max-width: 1200px; margin: 0 auto; }
.fdm-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.fdm-footer-brand { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.fdm-footer-tag { font-size: .82rem; line-height: 1.5; max-width: 260px; }
.fdm-footer-col h4 { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #fff; margin-bottom: 12px; }
.fdm-footer-col a { display: block; font-size: .83rem; color: #94a3b8; text-decoration: none; margin-bottom: 7px; transition: .15s; }
.fdm-footer-col a:hover { color: #fff; }
.fdm-footer-bottom { border-top: 1px solid #334155; padding-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .76rem; }
.fdm-footer-bottom span { opacity: .6; }
@media (max-width: 768px) { .fdm-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .fdm-footer-grid { grid-template-columns: 1fr; } }

#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: #1e293b; color: #f1f5f9; padding: 16px 24px; display: flex; align-items: center;
  gap: 16px; flex-wrap: wrap; box-shadow: 0 -4px 24px rgba(0,0,0,.2); transform: translateY(100%); transition: .4s;
}
#cookie-banner.show { transform: translateY(0); }
#cookie-banner p { font-size: .83rem; flex: 1; min-width: 260px; line-height: 1.5; }
#cookie-banner a { color: #60a5fa; text-decoration: underline; }
.cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
.btn-accept { background: var(--brand); color: #fff; border: none; border-radius: 8px; padding: 9px 20px; font-size: .85rem; font-weight: 600; cursor: pointer; }
.btn-reject { background: transparent; color: #94a3b8; border: 1px solid #475569; border-radius: 8px; padding: 9px 16px; font-size: .85rem; cursor: pointer; }

/* =========================================================
   DARK MODE (condivide il toggle del sito: body.dark + fdm_dark)
   ========================================================= */
body.dark {
  --bg:        #0f172a;
  --bg-soft:   #15233f;
  --surface:   #1e293b;
  --surface-2: #172033;
  --ink:       #f1f5f9;
  --ink-soft:  #cbd5e1;
  --ink-mute:  #94a3b8;
  --line:      #334155;
  --line-2:    #3b4661;
  --accent-soft: rgba(29,78,216,.28);
}
body.dark .fdm-nav { background: rgba(15,23,42,.96); }
body.dark .fdm-footer { background: #020617; }
/* elementi che usavano --ink come SFONDO scuro: fissati a slate scuro */
body.dark .dz-btn,
body.dark .download-btn,
body.dark .privacy-band,
body.dark .toast { background: #0b1220; }
body.dark .download-btn:hover { background: #000; }
body.dark .privacy-icon { background: rgba(255,255,255,.06); }
body.dark .pill { color: #93c5fd; border-color: rgba(59,130,246,.4); }
body.dark .result { background: rgba(16,160,107,.14); border-color: rgba(16,160,107,.34); }
body.dark .result.warn { background: rgba(217,131,22,.14); border-color: rgba(217,131,22,.34); }
body.dark .result .r-ico { background: #0f1b30; }
body.dark .file-thumb { background: #0f1b30; }
body.dark .tool-card::after { background: linear-gradient(120deg, rgba(29,78,216,.20), rgba(99,102,241,.20)); }
body.dark .sig-pad { background: repeating-linear-gradient(0deg,#fff,#fff 39px,#dfe3f5 39px,#dfe3f5 40px); }

/* =========================================================
   Blocco annuncio (Google AdSense)
   ========================================================= */
.ptk-ad-wrap {
  margin: 6px 0 2px; padding: 14px; text-align: center;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
}
.ptk-ad-label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 8px; }
.ptk-ad-wrap ins.adsbygoogle { display: block; min-height: 90px; }
