/* BulkSync — sito */
:root {
  /* colori del logo: blu notte, verde e azzurro */
  --ink: #0f2236;
  --ink-2: #33475c;
  --muted: #5b6b7c;
  --line: #e1e7ee;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --navy: #132b45;
  --brand-green: #6dbe3a;
  --brand-green-dark: #5aa82b;
  --brand-blue: #2e9bff;
  --accent: #1668c4;
  --accent-dark: #0f4f99;
  --green-soft: #eaf6e1;
  --green-text: #2f6e14;
  --blue-soft: #e8f2ff;
  --night: #0e2136;
  --night-2: #17304c;
  --night-line: #24405f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(13, 27, 22, .06), 0 8px 24px rgba(13, 27, 22, .08);
  --shadow-lg: 0 30px 60px -20px rgba(13, 27, 22, .35);
  --wrap: 1160px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 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);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .88em; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: .1em .4em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 2px; border-radius: 6px; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--navy); background: var(--brand-green); }
.nav a.btn-primary:hover { background: var(--brand-green-dark); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-left: 8px; }
.lang a { font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: var(--muted); }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; transition: transform .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: .98rem;
  padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-green); color: var(--navy); box-shadow: 0 6px 16px -6px rgba(109, 190, 58, .7); }
.btn-primary:hover { background: var(--brand-green-dark); color: var(--navy); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c9d3cf; color: var(--ink); }
.btn-lime { background: var(--brand-green); color: var(--navy); }
.btn-lime:hover { background: var(--brand-green-dark); color: var(--navy); }
.btn-sm { padding: 8px 14px; font-size: .9rem; border-radius: 10px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 820px; height: 820px;
  background: radial-gradient(closest-side, rgba(46, 155, 255, .22), rgba(46, 155, 255, 0));
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -50% -15%; width: 700px; height: 700px;
  background: radial-gradient(closest-side, rgba(109, 190, 58, .18), rgba(109, 190, 58, 0));
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .02em;
  color: var(--green-text); background: var(--green-soft); border-radius: 999px; padding: 6px 12px; margin-bottom: 20px;
}
.eyebrow b { background: var(--brand-green); color: var(--navy); border-radius: 999px; padding: 1px 8px; font-size: .75rem; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, rgba(109, 190, 58, .45) 62%); padding: 0 .05em; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 36em; }
.hero .checks { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 22px 0 0; color: var(--muted); font-size: .92rem; }
.checks li { display: flex; align-items: center; gap: 7px; }
.checks li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--brand-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.6l4.6-5' fill='none' stroke='%23132b45' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* ---------- install form ---------- */
.install { margin-top: 28px; max-width: 520px; }
.install label { display: block; font-size: .85rem; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.install-row { display: flex; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: var(--shadow); }
.install-row:focus-within { border-color: var(--brand-blue); }
.install-field { flex: 1; display: flex; align-items: center; min-width: 0; padding-left: 10px; }
.install-field input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1rem; padding: 8px 0; background: transparent; color: var(--ink); }
.install-field .suffix { color: var(--muted); font-size: .95rem; white-space: nowrap; }
.install .hint { font-size: .85rem; color: var(--muted); margin: 8px 2px 0; }
.install .error { font-size: .88rem; color: #b42318; margin: 8px 2px 0; display: none; }
.install.invalid .error { display: block; }
.install.invalid .install-row { border-color: #f04438; }

/* ---------- mockup ---------- */
.mock {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
  overflow: hidden; transform: rotate(.6deg);
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d5ddd9; }
.mock-bar span { margin-left: 10px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.mock-body { padding: 20px; display: grid; gap: 14px; }
.mock-file { display: flex; align-items: center; gap: 12px; border: 1px dashed #c9d3cf; border-radius: 12px; padding: 12px 14px; }
.mock-file .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: .7rem; }
.mock-file b { display: block; font-size: .95rem; }
.mock-file small { color: var(--muted); font-size: .8rem; }
.mock-file .tag { margin-left: auto; font-size: .72rem; font-weight: 700; color: var(--green-text); background: var(--green-soft); padding: 3px 9px; border-radius: 999px; }
.mock-progress small { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.mock-progress .track { height: 9px; border-radius: 99px; background: #e8eeeb; overflow: hidden; }
.mock-progress .fill { height: 100%; width: 66%; border-radius: 99px; background: linear-gradient(90deg, var(--brand-green), var(--brand-blue)); animation: fill 4.5s ease-in-out infinite alternate; }
@keyframes fill { from { width: 22%; } to { width: 88%; } }
.mock-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .85rem; }
.mock-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.mock-row:first-child { border-top: 0; background: var(--bg-soft); font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mock-row code { background: none; border: 0; padding: 0; color: var(--muted); }
.pill { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pill.new { background: var(--green-soft); color: var(--green-text); }
.pill.upd { background: #e7effd; color: #1d4ed8; }
.pill.same { background: #eef1f0; color: #5d6b66; }
.pill.warn { background: #fff4e0; color: #9a5b00; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }

.sources { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.source { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.source .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--accent); margin-bottom: 16px; }
.source .ico svg { width: 22px; height: 22px; }
.source p { color: var(--muted); font-size: .95rem; margin: 0; }
.source .plan { display: inline-block; margin-top: 12px; font-size: .75rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.feature { background: #fff; padding: 30px; }
.feature .num { font-family: var(--mono); font-size: .78rem; color: var(--accent); font-weight: 700; margin-bottom: 14px; display: block; }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: var(--brand-green); font-weight: 800; margin-bottom: 18px; }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }

/* dark band */
.band { background: var(--night); color: #dde7f1; padding: 96px 0; position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; right: -200px; top: -200px; width: 600px; height: 600px; background: radial-gradient(closest-side, rgba(46, 155, 255, .22), transparent); }
.band .wrap { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.band h2 { color: #fff; }
.band .kicker { color: var(--brand-green); }
.band p { color: #a8b9cb; }
.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.news li { background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius); padding: 18px 20px; }
.news b { color: #fff; display: block; margin-bottom: 4px; }
.news span { color: #a8b9cb; font-size: .95rem; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; }
.plan-card.pop { border: 2px solid var(--brand-green); box-shadow: var(--shadow); position: relative; }
.plan-card .badge { position: absolute; top: -12px; left: 26px; background: var(--brand-green); color: var(--navy); font-size: .72rem; font-weight: 800; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; }
.plan-card h3 { margin-bottom: 4px; }
.price { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 2px; }
.price small { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.trial { font-size: .85rem; color: var(--green-text); font-weight: 700; min-height: 1.4em; }
.plan-card ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 9px; font-size: .93rem; color: var(--ink-2); }
.plan-card li { display: flex; gap: 9px; align-items: flex-start; }
.plan-card li::before { content: ""; flex: none; margin-top: .45em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-green); }
.plan-card li.no { color: #9aa6a1; }
.plan-card li.no::before { background: #cfd8d4; }
.plan-card .btn { margin-top: auto; }
.price-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 24px; }

/* install cta */
.cta { padding: 0 0 96px; }
.cta-box { background: linear-gradient(135deg, var(--navy) 0%, #1d4f86 100%); border-radius: 28px; padding: 56px; color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative; overflow: hidden; }
.cta-box::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(109, 190, 58, .16); }
.cta-box h2 { color: #fff; }
.cta-box p { color: #c9d8e8; }
.cta-box ol { margin: 0; padding-left: 1.2em; color: #e4edf7; }
.cta-box ol li { margin-bottom: 6px; }
.cta-box .install { margin: 0; position: relative; z-index: 1; }
.cta-box .install label { color: #e4edf7; }
.cta-box .install .hint { color: #c9d8e8; }
.cta-box .install .error { color: #ffd2cc; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 700; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-75%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { color: var(--ink-2); margin: 0 0 20px; }

/* footer */
.footer { background: var(--night); color: #a8b9cb; padding: 64px 0 32px; font-size: .93rem; }
.footer a { color: #dde7f1; text-decoration: none; }
.footer a:hover { color: var(--brand-green); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer h4 { color: #fff; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid var(--night-line); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; }

/* ---------- docs (guida / privacy) ---------- */
.doc-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 56px 0 44px; }
.doc-hero p { color: var(--muted); font-size: 1.1rem; max-width: 46em; margin: 0; }
.doc-hero .meta { margin-top: 16px; font-size: .88rem; color: var(--muted); }
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding: 48px 20px 96px; }
.toc { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; font-size: .9rem; }
.toc b { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--accent); border-left-color: var(--brand-green); font-weight: 700; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.75rem; margin-top: 2.4em; padding-top: 8px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; scroll-margin-top: 90px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: .93rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-soft); font-weight: 700; white-space: nowrap; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.note { border-radius: 12px; padding: 14px 18px; margin: 1.2em 0; background: var(--blue-soft); border: 1px solid #c8def7; font-size: .96rem; }
.note.warn { background: #fff7e8; border-color: #f6dfb2; }
.note b:first-child { display: block; margin-bottom: 2px; }
.new-tag { display: inline-block; vertical-align: middle; margin-left: 8px; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--navy); background: var(--brand-green); padding: 2px 8px; border-radius: 999px; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero .wrap, .band .wrap, .cta-box { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { gap: 44px; }
  .mock { transform: none; max-width: 560px; }
  .sources, .plans { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px 18px; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .lang { align-self: flex-start; margin: 8px 0 0 4px; }
  .nav .btn { margin-top: 8px; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 44px 0 64px; }
  .section, .band { padding: 68px 0; }
  .sources, .plans, .features, .steps { grid-template-columns: 1fr; }
  .cta-box { padding: 32px 22px; border-radius: 22px; }
  .install-row { flex-direction: column; }
  .install-row .btn { width: 100%; }
  .install-field { padding: 4px 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .mock-row { grid-template-columns: 1fr auto; }
  .mock-row code, .mock-row:first-child span:nth-child(2), .mock-file .tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mock-progress .fill { animation: none; }
}
.footer .brand img { box-shadow: 0 0 0 1px var(--night-line); }
