/* JobArch — stile del sito. Nessuna dipendenza esterna obbligatoria.
   Regola di contrasto: i colori di sfondo dei pulsanti e delle fasce restano fissi
   (testo bianco su blu scuro); nella modalità scura cambiano solo testo, link e bordi. */

:root {
  --ink: #323a47;
  --brand: #3571b7;
  --brand-dark: #245a96;
  --link: #3571b7;
  --accent: #699ac2;
  --muted: #565857;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --line: #dfe6ef;
  --radius: 12px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e9eef5;
    --link: #9cc4e8;
    --accent: #699ac2;
    --muted: #b7bec8;
    --bg: #161a21;
    --bg-soft: #1e242e;
    --line: #2e3643;
  }
}

:root[data-theme="dark"] {
  --ink: #e9eef5;
  --link: #9cc4e8;
  --muted: #b7bec8;
  --bg: #161a21;
  --bg-soft: #1e242e;
  --line: #2e3643;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Testo visibile solo agli screen reader */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -48px;
  background: #3571b7; color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.logo span { color: var(--link); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--link); }
.lang-switch { font-size: .9rem; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; text-decoration: none; color: var(--ink); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; min-height: 44px; min-width: 44px; color: var(--ink); font: inherit; cursor: pointer; }
.lang-switch { display: inline-flex; align-items: center; min-height: 36px; }

/* Buttons: sfondo e testo fissi, indipendenti dal tema */
.btn {
  display: inline-block; border-radius: 999px; padding: 12px 22px;
  font-weight: 700; text-decoration: none; border: 2px solid #3571b7;
  background: #3571b7; color: #ffffff; transition: background .2s, color .2s;
}
.btn:hover { background: #245a96; border-color: #245a96; color: #ffffff; }
.btn-ghost { background: transparent; color: #245a96; border-color: #3571b7; }
.btn-ghost:hover { background: #3571b7; color: #ffffff; }
/* Pulsante nell'header: testo bianco anche se il link di navigazione ha un altro colore */
.nav .btn, .nav .btn:hover { color: #ffffff; }


/* Hero: sfondo scuro fisso, quindi testo chiaro fisso */
.hero { background: linear-gradient(135deg, #323a47 0%, #3571b7 100%); color: #ffffff; padding: 72px 0 80px; }
.hero .eyebrow { font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; margin: 0 0 12px; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.12; margin: 0 0 16px; }
.hero h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 500; margin: 0 0 20px; color: #ffffff; }
.hero p { max-width: 62ch; color: #ffffff; }
.hero a { color: #ffffff; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn { background: #ffffff; color: #245a96; border-color: #ffffff; }
.hero .btn:hover { background: #e6eef8; color: #245a96; border-color: #e6eef8; }
.hero .btn-ghost { background: transparent; color: #ffffff; border-color: #ffffff; }
.hero .btn-ghost:hover { background: #ffffff; color: #245a96; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero-art { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 18px; padding: 24px; margin: 0; }
.hero-art svg { display: block; width: 100%; }
.hero-art figcaption { font-size: .9rem; color: #dbe8f6; margin-top: 12px; text-align: center; }

/* Sections */
section { padding: 72px 0; }
section.soft { background: var(--bg-soft); }
h2.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; margin: 0 0 12px; }
.lead { color: var(--muted); max-width: 66ch; margin: 0 0 36px; }

.cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin: 0 0 10px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
.icon { width: 44px; height: 44px; border-radius: 10px; background: var(--bg-soft); color: var(--link); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 24px; height: 24px; }

.steps { counter-reset: step; display: grid; gap: 18px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 24px 72px; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; left: 22px; top: 22px;
  width: 36px; height: 36px; border-radius: 50%; background: #3571b7; color: #ffffff;
  display: grid; place-items: center; font-weight: 800;
}
.steps h3 { margin: 0 0 6px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 720px) { .checks { grid-template-columns: 1fr 1fr; } }
.checks li { position: relative; padding-left: 34px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: #3571b7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Integrazioni */
.integrations { display: grid; gap: 24px; grid-template-columns: 1fr; }
.integrations > div:first-child { grid-column: 1 / -1; }
@media (min-width: 720px) { .integrations { grid-template-columns: 1fr 1fr; } }
.integrations .card { display: grid; gap: 14px; align-content: start; }
.integrations .card .btn { justify-self: start; }

/* Logo */
.logo img { display: block; height: 40px; width: auto; }
/* Logo scuro in modalità chiara, logo chiaro in modalità scura */
.logo .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo .logo-dark { display: block; }
}
:root[data-theme="dark"] .logo .logo-light { display: none; }
:root[data-theme="dark"] .logo .logo-dark { display: block; }
.powered-by { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.powered-by img { height: 28px; width: auto; background: #ffffff; padding: 6px 10px; border-radius: 8px; box-sizing: content-box; }
/* Logo Arca24: versione chiara con riquadro bianco; versione scura senza riquadro, con il marchio in bianco */
.powered-by .logo-dark { display: none; background: none; padding: 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .powered-by .logo-light { display: none; }
  :root:not([data-theme="light"]) .powered-by .logo-dark { display: block; }
}
:root[data-theme="dark"] .powered-by .logo-light { display: none; }
:root[data-theme="dark"] .powered-by .logo-dark { display: block; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--link); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* CTA band: sfondo scuro fisso, testo chiaro fisso */
.cta-band { background: #323a47; color: #ffffff; text-align: center; padding: 64px 0; }
.cta-band h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { color: #d5dde8; margin: 0 auto 26px; max-width: 60ch; }
.cta-band .btn { background: #ffffff; color: #323a47; border-color: #ffffff; }
.cta-band .btn:hover { background: #e6eef8; border-color: #e6eef8; color: #323a47; }

/* Footer */
.site-footer { padding: 40px 0 28px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h3 { color: var(--ink); font-size: 1rem; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--link); }
.powered { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; }
.powered a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; text-decoration: none; }
.powered a:hover { color: var(--link); }

/* Mobile */
@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; width: 100%; }
  .nav .btn { width: 100%; text-align: center; margin-top: 8px; }
  section { padding: 56px 0; }
  .hero { padding: 48px 0 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
