/* ==========================================================
   C.G Multiservice — foglio di stile unico
   Palette ripresa dal logo: nero, blu elettrico, blu profondo, argento
   ========================================================== */
:root {
  --ink: #0b0d12;
  --ink-2: #151924;
  --ink-3: #1f2533;
  --blue: #4c6fff;
  --blue-deep: #0b5a8f;
  --blue-soft: #e8edff;
  --silver: #a3a9b5;
  --bg: #f5f6fa;
  --surface: #ffffff;
  --text: #161a22;
  --muted: #5b6272;
  --line: #e3e6ee;
  --wa: #25d366;
  --wa-dark: #128c4b;
  --fb: #1877f2;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(11, 13, 18, .25);
  --max: 1160px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* i link interni (#preventivo, #servizi) non finiscono sotto l'intestazione fissa */
[id] { scroll-margin-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--white { background: var(--surface); }
.section--dark { background: var(--ink); color: #e9ecf3; }
.section--dark p { color: #b8bfcc; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .8rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.section--dark .lead { color: #b8bfcc; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.4em;
  border-radius: 999px;
  font-weight: 700; font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn--wa { background: var(--wa); color: #06210f; box-shadow: 0 8px 24px -10px var(--wa); }
.btn--wa:hover { background: #3be07a; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px -10px var(--blue); }
.btn--primary:hover { background: #6683ff; }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--outline { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Topbar social ---------- */
.topbar {
  background: #000;
  color: #c9ceda;
  font-size: .85rem;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 38px;
}
.topbar a { color: #c9ceda; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__info { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar__info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar__social { display: flex; gap: 6px; }
.topbar__social a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  transition: background .2s;
}
.topbar__social a:hover { background: rgba(255,255,255,.1); }
.topbar svg { width: 16px; height: 16px; }
.topbar__info .show-sm { display: none; }
@media (max-width: 720px) {
  .topbar__info .hide-sm { display: none; }
  .topbar__info .show-sm { display: inline; }
  .topbar__social .label { display: none; }
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 18, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.brand strong { display: block; font-size: 1.05rem; letter-spacing: .02em; }
.brand small { display: block; color: var(--silver); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block; padding: .55em .95em; border-radius: 999px;
  color: #d5d9e3; text-decoration: none; font-weight: 600; font-size: .95rem;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav a[aria-current="page"] { color: #fff; background: rgba(76,111,255,.22); }
.nav .btn { margin-left: 8px; padding: .6em 1.1em; font-size: .92rem; }

.nav-toggle {
  display: none;
  background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; border-radius: 8px;
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink);
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px; }
  .nav a { padding: .85em 1em; border-radius: 10px; }
  .nav .btn { margin: 10px 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(76,111,255,.35), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(11,90,143,.45), transparent 60%),
    var(--ink);
  color: #fff;
  padding: clamp(64px, 10vw, 130px) 0 clamp(64px, 9vw, 110px);
}
.hero .container { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.hero h1 span { color: transparent; background: linear-gradient(90deg, #8fa5ff, var(--blue)); -webkit-background-clip: text; background-clip: text; }
.hero p.lead { color: #c3c9d6; margin-bottom: 2rem; }
.hero__logo {
  justify-self: center;
  width: min(360px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 32px;
  overflow: hidden;
  background: #fff; /* stesso bianco dello sfondo del logo */
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px -20px rgba(76,111,255,.45);
}
.hero__logo img { width: 100%; height: 100%; object-fit: cover; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 2rem; color: #aeb5c4; font-size: .92rem; }
.hero__badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero__badges svg { width: 18px; height: 18px; color: var(--wa); }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__logo { width: 220px; order: -1; justify-self: center; }
}

/* Slogan in corsivo, come nel volantino */
.tagline {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  color: #a9b9ff;
  margin: -.2em 0 1.1em;
}

/* Persona (Chi siamo) */
.person {
  display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  padding: clamp(24px, 4vw, 48px);
}
.person__photo {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  box-shadow: 0 0 0 6px var(--blue-soft), 0 20px 50px -20px rgba(11,13,18,.45);
}
.person h2 { margin-bottom: .1em; }
.person__role { color: var(--blue); font-weight: 700; letter-spacing: .04em; margin-bottom: 1em; }
.person__quote {
  margin: 0 0 1.4em; padding-left: 18px; border-left: 3px solid var(--blue);
  font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.3rem; color: var(--ink-3);
}
@media (max-width: 760px) {
  .person { grid-template-columns: 1fr; text-align: center; }
  .person__photo { width: 200px; margin: 0 auto; }
  .person__quote { border-left: 0; padding-left: 0; }
  .person .btn-row { justify-content: center; }
}

.footer__motto {
  font-family: Georgia, "Times New Roman", serif; font-style: italic; color: #d5d9e3; margin-top: -.4em;
}

/* Hero compatto per pagine interne */
.page-hero {
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(76,111,255,.32), transparent 60%),
    var(--ink);
  color: #fff;
  padding: clamp(48px, 7vw, 88px) 0;
}
.page-hero p { color: #c3c9d6; max-width: 62ch; font-size: 1.12rem; margin: 0; }
.breadcrumb { font-size: .85rem; color: var(--silver); margin-bottom: 1rem; }
.breadcrumb a { color: var(--silver); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Card servizi ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); margin: 0; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue);
  margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }
.section--dark .card { background: var(--ink-2); border-color: var(--ink-3); }
.section--dark .card p { color: #aab2c1; }
.section--dark .card__icon { background: rgba(76,111,255,.15); color: #8fa5ff; }

/* ---------- Punti di forza ---------- */
.feature { display: flex; gap: 18px; }
.feature .card__icon { flex: none; margin: 0; }
.feature h3 { margin-bottom: .25em; }

/* ---------- Split (testo + immagine) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 20px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist svg { width: 20px; height: 20px; flex: none; margin-top: 4px; color: var(--blue); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.5em; padding: 0; list-style: none; }
.chips li { padding: 6px 14px; border-radius: 999px; background: var(--blue-soft); color: #2a3fa8; font-weight: 600; font-size: .9rem; }
.section--dark .chips li { background: rgba(76,111,255,.15); color: #b9c6ff; }

/* ---------- Prima / Dopo ---------- */
.ba {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 860 / 1256;
  max-height: 640px;
  margin: 0 auto;
  user-select: none;
  touch-action: pan-y;
  background: #222;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 3px; background: #fff; transform: translateX(-50%);
  pointer-events: none;
}
.ba__handle::after {
  content: "‹ ›";
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--ink);
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.1rem; letter-spacing: 2px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.ba__label {
  position: absolute; top: 14px;
  padding: 5px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(0,0,0,.65); color: #fff;
  pointer-events: none;
}
.ba__label--before { left: 14px; }
.ba__label--after { right: 14px; background: var(--blue); }
.ba input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}
.ba-wrap { max-width: 440px; width: 100%; }

/* ---------- CTA band ---------- */
.cta {
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(32px, 5vw, 56px);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(76,111,255,.5), transparent 60%),
    var(--ink);
  color: #fff;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center;
}
.cta p { color: #c3c9d6; margin: 0; }
.cta .btn-row { justify-content: flex-end; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } .cta .btn-row { justify-content: flex-start; } }

/* ---------- Contatti ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list a, .contact-list div.item {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text);
  transition: border-color .2s, transform .15s;
}
.contact-list a:hover { border-color: var(--blue); transform: translateX(3px); }
.contact-list .ic {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: #fff; background: var(--blue);
}
.contact-list .ic svg { width: 22px; height: 22px; }
.contact-list .ic--wa { background: var(--wa); color: #06210f; }
.contact-list .ic--fb { background: var(--fb); }
.contact-list .ic--dark { background: var(--ink); }
.contact-list small { display: block; color: var(--muted); font-size: .82rem; }
.contact-list strong { display: block; font-size: 1.02rem; word-break: break-word; }

/* ---------- Form ---------- */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit; font-size: 1rem;
  background: var(--surface); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(76,111,255,.15);
}
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 4vw, 36px);
}

/* ---------- Galleria ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.gallery figcaption { padding: 14px 16px; font-size: .92rem; color: var(--muted); }
.gallery figcaption strong { display: block; color: var(--text); }
.gallery .zoom { display: block; aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in; }
.gallery .zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery .zoom:hover img, .gallery .zoom:focus-visible img { transform: scale(1.04); }

/* Foto ingrandita */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(11, 13, 18, .88); }
.lightbox img { display: block; max-width: 94vw; max-height: 92vh; width: auto; height: auto; border-radius: 10px; }
.lightbox__close {
  position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: #0b0d12; font-size: 28px; line-height: 1; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
@media (max-width: 600px) { .lightbox__close { top: 8px; right: 8px; } }
.placeholder {
  aspect-ratio: 4 / 3;
  display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(45deg, #eef0f6, #eef0f6 12px, #e6e9f1 12px, #e6e9f1 24px);
  color: var(--muted);
  padding: 16px;
}
.placeholder svg { width: 36px; height: 36px; margin: 0 auto 8px; color: var(--silver); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: 2.2rem; font-weight: 800; color: var(--blue); line-height: 1; margin-bottom: 14px;
}
.step p { color: var(--muted); margin: 0; }

/* ---------- Statistiche ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.stat { padding: 22px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--ink-3); }
.stat strong { display: block; font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1.1; }
.stat span { color: #aab2c1; font-size: .92rem; }

/* ---------- Testo legale ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

.todo {
  background: #fff3c4; color: #6b4e00;
  padding: 1px 6px; border-radius: 4px; font-weight: 600;
}

/* ---------- Footer ---------- */
.footer { background: #000; color: #aab2c1; padding: 64px 0 28px; font-size: .95rem; }
.footer a { color: #d5d9e3; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer .brand { margin-bottom: 14px; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink-2); color: #fff;
  transition: background .2s, transform .15s;
}
.footer__social a:hover { transform: translateY(-2px); text-decoration: none; }
.footer__social a.fb:hover { background: var(--fb); }
.footer__social a.wa:hover { background: var(--wa); color: #06210f; }
.footer__social svg { width: 20px; height: 20px; }
.footer__legal {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--ink-3);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: .82rem; color: #7d8596;
}
.footer__legal a { color: #9aa2b2; }

/* ---------- WhatsApp flottante ---------- */
.wa-float {
  /* bottom alto per non finire sotto il badge "Powered by Netlify" (piano gratuito), in basso a destra */
  position: fixed; right: 18px; bottom: 76px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px; border-radius: 999px;
  background: var(--wa); color: #06210f;
  font-weight: 700; text-decoration: none;
  box-shadow: 0 12px 30px -8px rgba(18,140,75,.6);
  transition: transform .2s, padding .2s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float span { display: none; }
.wa-float:hover { transform: scale(1.05); }
@media (min-width: 720px) {
  .wa-float { padding: 12px 20px 12px 14px; }
  .wa-float span { display: inline; }
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37,211,102,.55);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Animazione ingresso ---------- */
/* attiva solo se JS gira: senza JS il contenuto resta visibile */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

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

/* ---------- Stampa ----------
   I browser non stampano i colori di sfondo: tutto il testo chiaro su fondo scuro
   diventa nero su bianco, e le sezioni animate vengono mostrate subito. */
@page { size: A4; margin: 12mm; }
@media print {
  *, *::before, *::after { animation: none !important; transition: none !important; box-shadow: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }

  .topbar, .nav, .nav-toggle, .wa-float, .skip-link, .ba input, .ba__handle { display: none !important; }
  .header { position: static; background: #fff; border-bottom: 1px solid #bbb; backdrop-filter: none; }

  .hero, .page-hero, .section--dark, .section--white, .cta, .footer,
  .card, .stat, .panel, .person, .step { background: #fff !important; color: #000 !important; }
  .card, .stat, .panel, .step, .cta { border: 1px solid #ccc !important; }

  .brand, .brand strong, .brand small, .hero p.lead, .page-hero p, .lead, .section--dark p, .section--dark .card p,
  .cta p, .stat strong, .stat span, .hero__badges, .breadcrumb, .breadcrumb a, .tagline, .person__quote,
  .footer, .footer a, .footer h4, .footer__motto, .footer__legal, .footer__legal a, .card p, .step p, .form-note {
    color: #000 !important;
  }
  .hero h1 span {
    color: #2a3fa8 !important; background: none !important;
    -webkit-background-clip: border-box; background-clip: border-box;
  }
  .eyebrow, .person__role { color: #2a3fa8 !important; }

  .section, .hero, .page-hero { padding: 14pt 0 !important; }
  .footer { padding: 14pt 0 0 !important; border-top: 1px solid #bbb; }
  .hero__logo { width: 150px !important; }
  .person__photo { width: 150px !important; }
  .ba { max-height: 320px; }
  .btn { background: #fff !important; color: #000 !important; border: 1px solid #000 !important; }
  .footer__social a { background: #fff !important; color: #000 !important; border: 1px solid #000; }

  /* più contenuto per foglio */
  body { font-size: 10.5pt; }
  .grid--3, .grid--4 { grid-template-columns: repeat(3, 1fr) !important; gap: 10px; }
  .grid--2 { gap: 10px; }
  .card, .step, .stat, .panel { padding: 12px !important; }
  .card__icon { width: 32px; height: 32px; margin-bottom: 8px; }
  .card__icon svg { width: 18px; height: 18px; }
  .section-head { margin-bottom: 14px; }
  .steps, .stats { gap: 10px; }
  h1 { font-size: 24pt; }
  h2 { font-size: 16pt; }

  .stats { grid-template-columns: repeat(4, 1fr) !important; }
  .stat strong { font-size: 18pt; }

  /* piè di pagina: uguale in tutte le pagine, in stampa solo nella Home e compatto */
  body:not([data-page="home"]) .footer { display: none !important; }
  .footer { font-size: 9pt; break-inside: avoid; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr !important; gap: 14px; }
  .footer ul { gap: 2px; }
  .footer__legal { margin-top: 10px; padding-top: 8px; }

  h1, h2, h3 { break-after: avoid; }
  .card, .stat, .step, .panel, .person, .cta, figure, .ba-wrap, .contact-list li, .feature { break-inside: avoid; }
}
