/* ==========================================================================
   Compriamo Auto Facile — design system (2026 redesign)
   One accent (logo orange) + charcoal + warm off-white. Mobile first.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #12151a;
  --ink-2: #1b2028;
  --ink-3: #262c36;
  --paper: #ffffff;
  --paper-2: #f6f5f1;
  --line: #e3e2dd;
  --line-2: #cfceC8;
  --muted: #5b6370;
  --muted-2: #6f7784;
  --accent: #f7a200;
  --accent-2: #db8f00;
  --accent-soft: #fff4de;
  --accent-text: #a85600; /* AA-compliant orange for small text/icons on light surfaces */
  --success: #1b8a55;
  --success-soft: #e6f6ee;
  --error: #c8102e;
  --error-soft: #fdecef;
  --focus: #2563eb;
  --wa: #25d366;
  --wa-2: #1ebe5b;

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-1: 0 1px 2px rgba(18, 21, 26, 0.06);
  --shadow-2: 0 12px 32px -14px rgba(18, 21, 26, 0.28);
  --container: 1200px;
  --gutter: 20px;
  --header-h: 64px;
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 76px; }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 1.0625rem; } }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.25rem); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.85rem, 1.3rem + 1.8vw, 2.75rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
@media (min-width: 768px) { h3 { font-size: 1.375rem; } }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible, .site-footer :focus-visible { outline-color: #93b4ff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 880px; }
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.bg-paper-2 { background: var(--paper-2); }
.dark { background: var(--ink); color: #fff; }
.dark .muted { color: rgba(255, 255, 255, 0.72); }
.muted { color: var(--muted); }
.lede { font-size: 1.125rem; line-height: 1.55; color: var(--muted); max-width: 60ch; }
@media (min-width: 768px) { .lede { font-size: 1.25rem; } }
.dark .lede { color: rgba(255, 255, 255, 0.78); }

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 1.4rem; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer; transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; }
/* Children of buttons/links are not click targets: GTM's "All Elements" click trigger (the client's generate_lead
   conversion) reads the classes of event.target, so a tap on the label must register on the button itself. */
.btn > *, .header-phone > *, .contact-item > *, .wa-float > * { pointer-events: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); box-shadow: var(--shadow-2); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: var(--ink-3); border-color: var(--ink-3); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--ink); background: var(--paper); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: #f3f3f0; border-color: #f3f3f0; }
.btn-ghost-light { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.6); }
.btn-whatsapp svg { color: var(--wa); }
.btn-lg { min-height: 58px; padding-inline: 1.75rem; font-size: 1.0625rem; }
.btn-sm { min-height: 42px; padding-inline: 1rem; font-size: 0.9375rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .btn-group > .btn { flex: 1 1 100%; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; }
@media (min-width: 768px) { .brand img { height: 56px; } }
.nav { display: none; }
.nav a { padding: 8px 9px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.nav a:hover { background: var(--paper-2); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-phone { display: none; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.header-phone:hover { background: var(--paper-2); }
.header-phone svg { width: 18px; height: 18px; color: var(--accent-text); }
.header-cta { display: none; white-space: nowrap; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (min-width: 1024px) {
  .nav { display: flex; gap: 0; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}
@media (min-width: 1280px) {
  .nav { gap: 2px; }
  .nav a { padding: 8px 12px; font-size: 0.9375rem; }
  .header-phone { display: inline-flex; }
}
@media (min-width: 768px) and (max-width: 1023px) { .header-cta { display: inline-flex; } }
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 55; background: #fff; padding: 12px var(--gutter) 24px;
  display: none; flex-direction: column; gap: 4px; overflow-y: auto;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a { display: block; padding: 14px 12px; border-radius: 10px; font-size: 1.125rem; font-weight: 700; text-decoration: none; }
.mobile-menu a:hover { background: var(--paper-2); }
.mobile-menu .menu-contacts { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.mobile-menu .menu-contacts .btn { width: 100%; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 85% 20%, rgba(247, 162, 0, 0.16), transparent 70%);
}
.hero .container { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .hero .container { grid-template-columns: 1.08fr 0.92fr; gap: 56px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.dark .eyebrow { color: var(--accent); }
.hero h1 { margin-top: 16px; max-width: 12ch; }
.hero .lede { margin-top: 20px; }
.hero .btn-group { margin-top: 32px; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.hero-badge {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px; background: rgba(18, 21, 26, 0.86); color: #fff; font-size: 0.875rem; font-weight: 600;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-badge svg { width: 18px; height: 18px; color: var(--accent); }
.check-list { display: grid; gap: 10px; margin-top: 32px; }
@media (min-width: 560px) { .check-list { grid-template-columns: 1fr 1fr; } }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; font-size: 0.9375rem; }
.check-list svg { width: 22px; height: 22px; flex: none; color: var(--accent); }

/* ---------- Trust strip ---------- */
.trust-strip { border-bottom: 1px solid var(--line); background: var(--paper); }
.trust-strip .container { display: grid; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .trust-strip .container { grid-template-columns: repeat(4, 1fr); } }
.trust-item { padding: 22px 12px; border-right: 1px solid var(--line); }
.trust-item:nth-child(2n) { border-right: 0; }
.trust-item:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .trust-item { padding: 28px 24px; border-bottom: 0 !important; border-right: 1px solid var(--line) !important; }
  .trust-item:last-child { border-right: 0 !important; }
}
.trust-item strong { display: block; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.trust-item span { display: block; margin-top: 6px; font-size: 0.9375rem; color: var(--muted); }

/* ---------- Section heading ---------- */
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin-top: 12px; }
.section-head .lede { margin-top: 14px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease); }
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); border-color: var(--line-2); }
.icon-chip { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); }
.icon-chip svg { width: 26px; height: 26px; }

/* Process steps: icon chip left, step number right, title and text below */
.step { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; align-content: start; column-gap: 12px; }
.step .icon-chip { grid-column: 1; grid-row: 1; width: 56px; height: 56px; border-radius: 16px; }
.step .icon-chip svg { width: 28px; height: 28px; }
.step .step-no { grid-column: 2; grid-row: 1; justify-self: end; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.step h3 { grid-column: 1 / -1; margin-top: 20px; }
.step p { grid-column: 1 / -1; margin-top: 10px; color: var(--muted); font-size: 0.9875rem; }

/* Benefits */
.benefit h3 { margin-top: 18px; }
.benefit p { margin-top: 8px; color: var(--muted); }

/* Vehicle types */
.vtypes { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) { .vtypes { grid-template-columns: 1fr 1fr; gap: 48px; } }
.vtype-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 560px) { .vtype-grid { grid-template-columns: repeat(3, 1fr); } }
.vtype { padding: 20px 18px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.vtype svg { width: 28px; height: 28px; color: var(--accent-text); }
.vtype strong { display: block; margin-top: 12px; font-size: 1rem; }
.vtype span { display: block; margin-top: 4px; font-size: 0.875rem; color: var(--muted); }
.vtype.is-all { background: var(--ink); border-color: var(--ink); color: #fff; }
.vtype.is-all span { color: rgba(255, 255, 255, 0.72); }
.vtype.is-all svg { color: var(--accent); }
.photo-card { position: relative; }
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.photo-card figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 12px 14px; border-radius: 10px; background: rgba(18, 21, 26, 0.86); color: #fff; font-size: 0.875rem; font-weight: 600; backdrop-filter: blur(6px); }

/* Payment methods */
.pay-methods { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; font-size: 0.9375rem; }
.chip svg { width: 18px; height: 18px; color: var(--accent-text); }
.chip-dark { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Service area */
.area { display: grid; gap: 28px; }
@media (min-width: 900px) { .area { grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; } }
.area-list { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-top: 18px; }
@media (min-width: 560px) { .area-list { grid-template-columns: repeat(3, 1fr); } }
.area-list li { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-weight: 700; }
.area-list svg { width: 18px; height: 18px; color: var(--accent-text); flex: none; }
.region-list { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }

/* Testimonials */
.testimonial { display: flex; flex-direction: column; }
.testimonial .quote { font-size: 2.5rem; line-height: 1; font-weight: 800; color: var(--accent); }
.testimonial blockquote { margin: 8px 0 0; flex: 1; font-size: 1rem; line-height: 1.6; }
.testimonial footer { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.testimonial footer strong { display: block; font-size: 0.9375rem; }
.testimonial footer span { display: block; font-size: 0.8125rem; color: var(--muted); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 15% 50%, rgba(247, 162, 0, 0.18), transparent 70%); pointer-events: none; }
.cta-band .container { position: relative; display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta-band .container { grid-template-columns: 1.2fr 0.8fr; } .cta-band .btn-group { justify-content: flex-end; } }
.cta-band .lede { margin-top: 12px; }

/* Contact items */
.contact-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(4, 1fr); } }
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; }
a.contact-item:hover { border-color: var(--ink); }
.contact-item .icon-chip { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.contact-item .icon-chip svg { width: 22px; height: 22px; }
.contact-item small { display: block; font-size: 0.8125rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-item strong { display: block; margin-top: 4px; font-size: 1.0625rem; word-break: break-word; }
.contact-item span { display: block; margin-top: 2px; font-size: 0.9375rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.82); padding-block: clamp(3rem, 6vw, 4.5rem) calc(2rem + var(--sticky-space, 0px)); font-size: 0.9375rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }
.site-footer h3 { color: #fff; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer li + li { margin-top: 10px; }
.footer-brand img { height: 52px; width: auto; }
.footer-brand p { margin-top: 16px; max-width: 40ch; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.875rem; color: rgba(255, 255, 255, 0.74); }

/* ---------- Valuation form section ---------- */
.valuation { display: grid; gap: 32px; }
@media (min-width: 1024px) { .valuation { grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; } .valuation-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.valuation-aside h2 { margin-top: 12px; }
.valuation-aside .lede { margin-top: 14px; }
.next-steps { margin-top: 28px; display: grid; gap: 14px; }
.next-steps li { display: flex; gap: 14px; align-items: flex-start; }
.next-steps .no { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 0.875rem; display: inline-flex; align-items: center; justify-content: center; }
.next-steps strong { display: block; }
.next-steps span { display: block; font-size: 0.9375rem; color: var(--muted); }
.aside-contact { margin-top: 28px; padding: 20px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.aside-contact p { font-size: 0.9375rem; color: var(--muted); }
.aside-contact .btn-group { margin-top: 12px; }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 18px; box-shadow: var(--shadow-1); }
@media (min-width: 640px) { .form-card { padding: 32px; } }
.form-card .form-title { font-size: 1.25rem; font-weight: 800; }
.form-card .form-sub { margin-top: 4px; font-size: 0.9375rem; color: var(--muted); }

/* Stepper */
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0 26px; counter-reset: step; }
.stepper li { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 0 12px; border-bottom: 3px solid var(--line); font-size: 0.875rem; font-weight: 700; color: var(--muted-2); }
.stepper .step-dot { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-size: 0.8125rem; color: var(--muted); background: #fff; }
.stepper .step-dot svg { width: 14px; height: 14px; display: none; }
.stepper li.is-active { color: var(--ink); border-color: var(--accent); }
.stepper li.is-active .step-dot { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.stepper li.is-done { color: var(--ink); border-color: var(--ink); }
.stepper li.is-done .step-dot { border-color: var(--ink); background: var(--ink); color: #fff; }
.stepper li.is-done .step-dot svg { display: block; }
.stepper li.is-done .step-dot .n { display: none; }
.stepper .step-label { display: none; }
@media (min-width: 480px) { .stepper .step-label { display: inline; } }
.stepper button { all: unset; display: flex; align-items: center; gap: 10px; cursor: pointer; width: 100%; }
.stepper button:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 6px; }

/* Step panels */
.form-step { display: none; }
.form-step.is-active { display: block; }
.form-step h3 { font-size: 1.125rem; margin-bottom: 4px; }
.form-step .step-intro { font-size: 0.9375rem; color: var(--muted); margin-bottom: 20px; }
.fields { display: grid; gap: 18px; }
@media (min-width: 640px) { .fields-2 { grid-template-columns: 1fr 1fr; } .fields .span-2 { grid-column: 1 / -1; } }
.form-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; justify-content: space-between; align-items: center; }
.form-nav .btn-back { order: 2; }
.form-nav .btn-next, .form-nav .btn-submit { order: 1; flex: 1 1 auto; }
@media (min-width: 640px) { .form-nav .btn-back { order: 1; } .form-nav .btn-next, .form-nav .btn-submit { order: 2; flex: 0 1 auto; min-width: 240px; } }
.form-footnote { margin-top: 14px; font-size: 0.8125rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.form-footnote svg { width: 16px; height: 16px; flex: none; color: var(--success); margin-top: 2px; }

/* Fields */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field .label { font-weight: 700; font-size: 0.9375rem; }
.field .optional { font-weight: 500; color: var(--muted-2); }
.field-hint { font-size: 0.8125rem; color: var(--muted); }
.control {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink);
  font: inherit; font-size: 1rem; line-height: 1.4; transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.control::placeholder { color: var(--muted-2); }
.control:hover { border-color: #b5b4ae; }
.control:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25); }
.control:focus-visible { outline: none; }
textarea.control { min-height: 120px; resize: vertical; }
select.control { padding-right: 44px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2312151a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
select.control:invalid, select.control.is-placeholder { color: var(--muted-2); }
select.control option { color: var(--ink); }
.input-suffix { position: relative; }
.input-suffix .control { padding-right: 56px; }
.input-suffix > span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 0.875rem; font-weight: 600; color: var(--muted); pointer-events: none; }
.field.has-error .control { border-color: var(--error); box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12); }
.field-error { display: none; align-items: flex-start; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--error); }
.field-error svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.field.has-error .field-error { display: flex; }


/* Segmented choice (radio group rendered as two large buttons) */
.segmented-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.segmented-fieldset legend { padding: 0; font-weight: 700; font-size: 0.9375rem; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.segmented-option { position: relative; margin: 0; }
.segmented-option input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.segmented-option span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; font-weight: 700; cursor: pointer; transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease); }
.segmented-option span:hover { border-color: #b5b4ae; }
.segmented-option input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.segmented-option input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.field.has-error .segmented-option span { border-color: var(--error); }

/* Consent */
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper-2); font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
.consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.consent label { cursor: pointer; }
.consent a { color: var(--ink); font-weight: 600; }
.field.has-error .consent { border-color: var(--error); }

/* Upload */
.upload { border: 2px dashed var(--line-2); border-radius: 14px; padding: 24px 18px; text-align: center; background: var(--paper-2); transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease); cursor: pointer; }
.upload:hover, .upload.is-drag { border-color: var(--accent-2); background: var(--accent-soft); }
.upload:focus-within { border-color: var(--ink); }
.upload .icon-chip { margin-inline: auto; background: #fff; }
.upload p { margin-top: 12px; font-weight: 600; }
.upload p .link { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.upload small { display: block; margin-top: 6px; font-size: 0.8125rem; color: var(--muted); }
.upload input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.field.has-error .upload { border-color: var(--error); }
.upload-count { margin-top: 10px; font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.upload-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
@media (min-width: 480px) { .upload-list { grid-template-columns: repeat(4, 1fr); } }
.upload-item { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.upload-item .thumb { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--paper-2); }
.upload-item .thumb-file { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; color: var(--muted); }
.upload-item .thumb-file svg { width: 32px; height: 32px; }
.upload-item .meta { padding: 8px 10px; font-size: 0.75rem; line-height: 1.3; color: var(--muted); display: flex; align-items: center; gap: 6px; min-height: 34px; }
.upload-item .meta svg { width: 14px; height: 14px; flex: none; }
.upload-item .meta .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-item.is-ok .meta { color: var(--success); font-weight: 600; }
.upload-item.is-error { border-color: var(--error); }
.upload-item.is-error .meta { color: var(--error); font-weight: 600; white-space: normal; }
.upload-item .progress { position: absolute; left: 0; right: 0; bottom: 34px; height: 4px; background: rgba(18, 21, 26, 0.12); }
.upload-item .progress > span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.2s linear; }
.upload-item.is-ok .progress, .upload-item.is-error .progress { display: none; }
.upload-item .remove { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(18, 21, 26, 0.82); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.upload-item .remove svg { width: 14px; height: 14px; }
.upload-item .remove:hover { background: var(--error); }

/* Response messages */
.form-message { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: 0.9375rem; gap: 10px; align-items: flex-start; }
.form-message.is-visible { display: flex; }
.form-message svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.form-message.is-error { background: var(--error-soft); color: var(--error); border: 1px solid rgba(200, 16, 46, 0.25); }
.form-message.is-info { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); }
.form-message.is-success { background: var(--success-soft); color: var(--success); border: 1px solid rgba(27, 138, 85, 0.3); }
.form-success { text-align: center; padding: 20px 8px; }
.form-success .icon-chip { width: 72px; height: 72px; border-radius: 50%; background: var(--success-soft); color: var(--success); margin-inline: auto; }
.form-success .icon-chip svg { width: 36px; height: 36px; }
.form-success h3 { margin-top: 18px; font-size: 1.5rem; }
.form-success .server-message { margin-top: 10px; color: var(--ink); font-size: 1.0625rem; }
.form-success .server-message p { margin: 0; }
.form-success .next { margin-top: 20px; font-size: 0.9375rem; color: var(--muted); }
.form-success .btn-group { margin-top: 22px; justify-content: center; }
.form-loading .control, .form-loading .upload { opacity: 0.6; pointer-events: none; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(18, 21, 26, 0.25); border-top-color: var(--ink); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sticky bar (mobile) & WhatsApp float ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transform: translateY(0); transition: transform 0.25s var(--ease);
}
.sticky-bar .btn { flex: 1 1 0; min-height: 50px; padding-inline: 0.75rem; font-size: 0.9375rem; }
.quick-actions { display: contents; }
.sticky-bar.is-hidden { transform: translateY(110%); }
body { --sticky-space: 82px; }
@media (min-width: 768px) { .sticky-bar { display: none; } body { --sticky-space: 0px; } }
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 50; display: none; align-items: center; gap: 10px; padding: 0 18px 0 12px; min-height: 54px; border-radius: 999px;
  background: var(--wa); color: #062e16; font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px -8px rgba(37, 211, 102, 0.55);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: translateY(-2px); background: var(--wa-2); }
@media (min-width: 768px) { .wa-float { display: inline-flex; } }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.page-hero h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); max-width: 18ch; margin-top: 12px; }
.page-hero .lede { margin-top: 16px; }
.breadcrumb { font-size: 0.875rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Services: icon chip with the step number underneath, text on the right */
.service { display: grid; gap: 16px; }
@media (min-width: 640px) { .service { grid-template-columns: 64px 1fr; gap: 24px; } }
.service .service-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.service .icon-chip { width: 56px; height: 56px; border-radius: 16px; }
.service .icon-chip svg { width: 28px; height: 28px; }
.service .step-no { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.service p { margin-top: 10px; color: var(--muted); }
.fast-list { display: grid; gap: 12px; }
@media (min-width: 640px) { .fast-list { grid-template-columns: 1fr 1fr; } }
.fast-list li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; }
.fast-list svg { width: 22px; height: 22px; flex: none; color: var(--accent-text); }


/* ---------- Before / after comparison ---------- */
.ba { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink-2); user-select: none; --pos: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); pointer-events: none; }
.ba-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.ba-handle svg { width: 22px; height: 22px; }
.ba-label { position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: rgba(18, 21, 26, 0.78); backdrop-filter: blur(4px); pointer-events: none; }
.ba-label-before { left: 14px; }
.ba-label-after { right: 14px; background: var(--accent); color: var(--ink); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; touch-action: pan-y; }
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 48px; height: 100%; }
.ba-range::-moz-range-thumb { width: 48px; height: 100%; border: 0; background: transparent; }
.ba:has(.ba-range:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.ba-caption { margin-top: 12px; font-size: 0.9375rem; color: var(--muted); }
.no-js .ba .ba-after { clip-path: none; position: relative; }
.no-js .ba { aspect-ratio: auto; }
.no-js .ba .ba-before { position: relative; }
.no-js .ba-divider, .no-js .ba-range { display: none; }

/* ---------- Gallery + lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 16px; } .gallery-item.is-large { grid-column: span 2; grid-row: span 2; } }
.gallery-item a { position: relative; display: block; height: 100%; border-radius: 14px; overflow: hidden; background: var(--paper-2); }
.gallery-item img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-item.is-large img { aspect-ratio: auto; min-height: 100%; }
.gallery-item a:hover img { transform: scale(1.03); }
.gallery-caption { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(18, 21, 26, 0.8); color: #fff; font-size: 0.8125rem; font-weight: 600; backdrop-filter: blur(4px); }
@media (max-width: 479px) { .gallery-caption { display: none; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(10, 12, 15, 0.92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: min(1200px, 92vw); max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 12px; }
.lightbox figcaption { color: rgba(255, 255, 255, 0.85); font-size: 0.9375rem; text-align: center; padding: 0 16px; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color 0.2s var(--ease); }
.lb-btn:hover { background: rgba(255, 255, 255, 0.24); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox :focus-visible { outline-color: #93b4ff; }

/* ---------- Video card ---------- */
.video-card { margin-top: 24px; display: grid; gap: 20px; align-items: center; background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 22px; }
@media (min-width: 900px) { .video-card { grid-template-columns: 0.8fr 1.2fr; gap: 32px; padding: 28px; } }
.video-card .eyebrow { color: var(--accent); }
.video-card h3 { margin-top: 10px; color: #fff; }
.video-card p { margin-top: 10px; color: rgba(255, 255, 255, 0.75); font-size: 0.9875rem; }
.video-frame { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 1712 / 1210; }
.video-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.video-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(18, 21, 26, 0.28); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color 0.2s var(--ease); }
.video-play:hover { background: rgba(18, 21, 26, 0.42); }
.video-play span { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: var(--ink); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); }
.video-play svg { width: 30px; height: 30px; margin-left: 4px; }
.video-frame.is-playing .video-play { display: none; }

/* ---------- CTA band with vehicle ---------- */
.cta-band .container { align-items: center; }
@media (min-width: 900px) { .cta-band .container { grid-template-columns: 1.05fr 0.95fr; gap: 40px; } .cta-band .btn-group { justify-content: flex-start; } }
.cta-band .btn-group { margin-top: 26px; }
.cta-media img { width: 100%; max-width: 620px; margin-inline: auto; filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.55)); }

/* ---------- Thank-you page ---------- */
.thanks-section { background: var(--paper-2); min-height: 60vh; }
.page-grazie .sticky-bar { display: none; }
.page-grazie { --sticky-space: 0px; }
.thanks { text-align: center; padding: 36px 22px; }
@media (min-width: 640px) { .thanks { padding: 48px 56px; } }
.thanks .eyebrow { margin-top: 20px; }
.thanks h1 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.9rem); margin-top: 12px; max-width: 18ch; margin-inline: auto; }
.thanks .lede { margin: 16px auto 0; max-width: 48ch; }
.thanks .thanks-sub { font-size: 1.125rem; margin-top: 32px; }
.thanks .next-steps { text-align: left; max-width: 520px; margin: 14px auto 0; }
.thanks .aside-contact { max-width: 520px; margin: 28px auto 0; text-align: left; }
.thanks .aside-contact .btn-group { justify-content: flex-start; }
.thanks .thanks-actions { margin-top: 24px; justify-content: center; }

/* ---------- Prose (legal / text pages) ---------- */
.prose { font-size: 1.0625rem; line-height: 1.7; }
.prose h2 { font-size: 1.5rem; margin-top: 2.4em; margin-bottom: 0.5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1875rem; margin-top: 1.7em; margin-bottom: 0.4em; }
.prose p { margin: 0 0 0.9em; color: var(--ink-3); }
.prose a { word-break: break-word; }
.prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn, .card, .wa-float, .sticky-bar, .gallery-item img { transition: none; }
  .btn:hover, .card:hover { transform: none; }
  .gallery-item a:hover img { transform: none; }
}
