/* =========================================================
   CARISMA AUTO — style.css
   Palette: #b2302a red · #020303 black · #e7dcd2 beige
            #a39b90 gray · #36332d warm dark
   ========================================================= */

/* ---------- Custom animatable property (counter ring) ---------- */
@property --ring {
  syntax: '<percentage>';
  initial-value: 0%;
  inherits: false;
}

/* ---------- Tokens ---------- */
:root {
  --red: #b2302a;
  --red-deep: #8f231e;
  --black: #020303;
  --beige: #e7dcd2;
  --beige-soft: #efe7df;
  --gray: #a39b90;
  --warm: #36332d;
  --warm-2: #28261f;

  --bg: var(--black);
  --text: var(--beige);
  --text-muted: var(--gray);

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .35);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, .55);
  --shadow-red: 0 16px 44px rgba(178, 48, 42, .35);

  --transition-interactive: 180ms cubic-bezier(.16, 1, .3, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;

  /* Fluid type scale */
  --text-hero: clamp(1.9rem, 3.4vw, 3.1rem);
  --text-h2: clamp(2rem, 4.5vw, 3.4rem);
  --text-h3: clamp(1.2rem, 2vw, 1.5rem);
  --text-lead: clamp(1.05rem, 1.4vw, 1.25rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(-200%);
  background: var(--red); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 10px 10px;
  z-index: 1000; transition: transform var(--transition-interactive); font-weight: 600;
}
.skip-link:focus { transform: translateX(-50%) translateY(0); }

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

/* =========================================================
   PLANETIUM-X DISPLAY TREATMENT
   No font file exists for Planetium-X. We evoke its wide,
   rounded-geometric, futuristic-automotive character using
   Sora (heavy weight) + uppercase + wide tracking + a layered
   bevel/outline via text-shadow + subtle metallic gradient.
   ========================================================= */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.02;
  font-feature-settings: "ss01";
}

/* Hero headline — full bevel/outline treatment */
.hero-title {
  font-size: var(--text-hero);
  letter-spacing: .03em;
}
.hero-title .accent {
  color: var(--red);
  /* Bevel: light top edge + dark drop creates an extruded, futuristic look */
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .18),
    0 -1px 0 rgba(0, 0, 0, .55),
    0 14px 30px rgba(178, 48, 42, .45);
}

/* Section titles get a softer bevel */
.section-title {
  font-size: var(--text-h2);
  letter-spacing: .025em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 2px 14px rgba(0, 0, 0, .25);
}
.section-dark .section-title,
.hero .section-title { text-shadow: 0 1px 0 rgba(255, 255, 255, .1), 0 12px 30px rgba(0, 0, 0, .5); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  --btn-bg: var(--red);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 100px; font-weight: 700;
  font-family: var(--font-body); letter-spacing: .01em; line-height: 1;
  position: relative; will-change: transform;
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0 35%, rgba(255,255,255,.22) 50%, transparent 65% 100%);
  transform: translateX(-120%);
  transition: transform 520ms var(--ease-out);
  pointer-events: none;
}
.btn:hover::before { transform: translateX(120%); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 22px 56px rgba(178, 48, 42, .5); }
.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn-ghost { background: transparent; color: var(--beige); box-shadow: inset 0 0 0 1.5px rgba(231, 220, 210, .4); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--beige); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(0); }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: 1.1rem;
  transition: background var(--transition-interactive), padding var(--transition-interactive), box-shadow var(--transition-interactive);
}
.site-header.scrolled {
  background: rgba(2, 3, 3, .82);
  backdrop-filter: blur(14px);
  padding-block: .7rem;
  box-shadow: 0 1px 0 rgba(231, 220, 210, .08);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; }
.brand-logo { height: 40px; width: auto; }
.nav { margin-left: auto; }
.nav-list { display: flex; gap: 2rem; }
.nav-link {
  font-weight: 600; font-size: .95rem; color: var(--beige); position: relative; padding-block: .35rem;
  transition: color var(--transition-interactive);
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition-interactive);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: #fff; }
.nav-cta { font-size: .9rem; padding: .7rem 1.3rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .5rem; position: relative; z-index: 101; }
.nav-toggle span { width: 24px; height: 2px; background: var(--beige); transition: transform .25s var(--ease-out), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; background: rgba(2, 3, 3, .97); backdrop-filter: blur(8px);
  z-index: 95; display: grid; place-items: center; padding: 2rem;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.5rem; text-align: center; width: min(360px, 90%); }
.mobile-menu ul { display: flex; flex-direction: column; gap: 1.25rem; }
.mobile-menu a:not(.btn) { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; text-transform: uppercase; letter-spacing: .03em; }

/* =========================================================
   HERO — VIDEO INTRO
   The brand-mark film plays once on white, then dissolves into
   a real automotive photo — also light, matching the rest of
   the site — with copy left-aligned in the photo's own clean
   negative space, car detail kept crisp on the right. The hero
   is sized to the photo's own 16:9 shape, not the full viewport,
   so the photo always sits exactly behind the copy — no gaps.
   ========================================================= */
.hero {
  position: relative; display: flex; align-items: center;
  padding-top: 5.5rem; padding-bottom: 2.4rem; overflow: hidden;
  background: #fff;
  z-index: 0;
  aspect-ratio: 16 / 9;
  min-height: 560px;
}
.hero-bg {
  position: absolute; top: 0; left: 0; right: 0; z-index: -2;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  transition: opacity 1.1s var(--ease-out);
}
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; background: #fff; }
.hero-after {
  position: absolute; inset: 0; z-index: -3;
  background:
    linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.86) 30%, rgba(255,255,255,.4) 52%, rgba(255,255,255,.06) 70%, rgba(255,255,255,0) 88%),
    url("assets/hero-photo.jpg") center center / cover no-repeat;
  background-color: #fff;
  opacity: 0;
  transition: opacity 1.1s var(--ease-out);
}
body[data-page="home"].intro-ready .hero-bg { opacity: 0; }
body[data-page="home"].intro-ready .hero-after { opacity: 1; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin-inline: 0;
  text-align: left;
}
.hero-copy { text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; text-transform: uppercase;
  letter-spacing: .22em; font-size: .76rem; font-weight: 700; color: #796f63; margin-bottom: 1.1rem;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(178,48,42,.25); }
.hero-title { margin-bottom: 1.1rem; line-height: 1.08; text-shadow: 0 1px 0 rgba(255,255,255,.8), 0 18px 35px rgba(54,51,45,.1); }
.hero-title .accent {
  color: var(--red);
  text-shadow: 0 1px 0 rgba(255,255,255,.6), 0 16px 32px rgba(178,48,42,.22);
}
.free-consult-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  width: fit-content;
  margin-bottom: .9rem;
  padding: .5rem .8rem;
  border: 1px solid rgba(178, 48, 42, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: var(--warm);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .02em;
  box-shadow: 0 14px 34px rgba(54,51,45,.1);
}
.free-consult-badge::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(178, 48, 42, .18);
}
.hero-sub { font-size: 1.15rem; color: #514b43; max-width: 46ch; margin-bottom: 1.3rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: .7rem; margin-bottom: 1.6rem; }
.hero-actions .btn { white-space: nowrap; padding-inline: 1.3rem; }

.hero-stats { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 1.4rem; }
.hero-stats li { display: flex; flex-direction: column; flex: none; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--red); letter-spacing: .02em; white-space: nowrap; }
.hero-stats span { font-size: .68rem; color: #6c6358; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }

.scroll-cue { display: none; }
.scroll-cue-line { display: block; width: 1px; height: 48px; background: linear-gradient(var(--gray), transparent); position: relative; overflow: hidden; }
.scroll-cue-line::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 40%; background: var(--red); animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }

/* =========================================================
   SCAN EFFECT (used by the verification photo card)
   ========================================================= */
.scan-line {
  position: absolute;
  inset: 0 auto 0 0;
  width: 28%;
  background: linear-gradient(90deg, rgba(178,48,42,0), rgba(178,48,42,.34), rgba(231,220,210,.22), rgba(178,48,42,0));
  animation: scan-sweep 3.6s var(--ease-out) infinite;
}
@keyframes scan-sweep {
  0% { transform: translateX(-120%); opacity: 0; }
  15%, 80% { opacity: 1; }
  100% { transform: translateX(430%); opacity: 0; }
}
/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); position: relative; }
.section-dark { background: var(--black); color: var(--beige); }
.section-soft { background: var(--beige); color: var(--warm); }
.method { background: linear-gradient(180deg, var(--black), var(--warm-2)); }
.trust { background: linear-gradient(180deg, var(--warm-2), var(--black)); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.kicker {
  text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; font-weight: 700;
  color: var(--red); margin-bottom: 1rem;
}
.kicker-light { color: var(--red); }
.section-soft .kicker { color: var(--red); }
.section-title { margin-bottom: 1.2rem; }
.section-soft .section-title { color: var(--warm); }
.section-lead { font-size: var(--text-lead); color: var(--text-muted); max-width: 60ch; }
.section-soft .section-lead { color: #6b6457; }

/* =========================================================
   MULTI-PAGE STRUCTURE
   ========================================================= */
.page-hero {
  padding-top: clamp(8rem, 14vw, 11rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(178, 48, 42, .24), transparent 32%),
    linear-gradient(140deg, var(--black), var(--warm-2));
}
.page-hero-inner { max-width: 860px; position: relative; z-index: 1; }

.home-routes {
  background:
    linear-gradient(180deg, var(--black), var(--warm-2));
}
.route-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.route-card {
  min-height: 100%;
  background: rgba(231, 220, 210, .04);
  border: 1px solid rgba(231, 220, 210, .1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition-interactive), border-color var(--transition-interactive), background var(--transition-interactive), box-shadow var(--transition-interactive);
}
.route-card:hover {
  transform: translateY(-4px);
  border-color: rgba(178, 48, 42, .55);
  background: rgba(231, 220, 210, .06);
  box-shadow: var(--shadow-md);
}
.route-label {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
  font-weight: 800;
  margin-bottom: .55rem;
}
.route-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--beige);
  font-size: var(--text-h3);
  line-height: 1.25;
  margin-bottom: .75rem;
}
.route-card p { color: var(--gray); font-size: .98rem; }
.route-link {
  display: inline-flex;
  margin-top: 1.35rem;
  color: var(--beige);
  font-weight: 800;
  border-bottom: 2px solid var(--red);
  transition: color var(--transition-interactive), transform var(--transition-interactive);
}
.route-link:hover { color: #fff; transform: translateX(4px); }

/* Animated motion band */
.motion-band {
  position: relative;
  overflow: hidden;
  height: 96px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, var(--black), rgba(178,48,42,.18), var(--black)),
    var(--black);
  border-block: 1px solid rgba(231, 220, 210, .1);
}
.motion-band::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .12;
  color: var(--beige);
  -webkit-mask: url("assets/tread.svg") repeat-x center / auto 72px;
          mask: url("assets/tread.svg") repeat-x center / auto 72px;
  background: currentColor;
}
.motion-track {
  display: flex;
  gap: 3rem;
  align-items: center;
  white-space: nowrap;
  min-width: 100%;
  animation: track-move 26s linear infinite;
}
.motion-track-copy { animation-delay: -13s; }
.motion-track span {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--beige);
  opacity: .82;
}
.motion-track span:nth-child(even) { color: var(--red); }
@keyframes track-move {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.split-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.split-cta .btn {
  white-space: nowrap;
  flex-shrink: 0;
}
.section-soft .split-cta .section-title { color: var(--warm); }
.blog-grid-wide { align-items: stretch; }
@media (max-width: 720px) {
  .split-cta { align-items: flex-start; flex-direction: column; }
}

/* =========================================================
   TREAD ICON / TEXTURE (logo concept: tire battistrada)
   ========================================================= */
.method-icon {
  width: 52px; height: 52px; display: block; margin-bottom: 1.4rem; color: var(--red);
  -webkit-mask: url("assets/tread.svg") center / contain no-repeat;
          mask: url("assets/tread.svg") center / contain no-repeat;
  background: currentColor;
}
.footer-tread {
  width: 30px; height: 30px; color: var(--red); display: inline-block;
  -webkit-mask: url("assets/tread.svg") center / contain no-repeat;
          mask: url("assets/tread.svg") center / contain no-repeat;
  background: currentColor;
}

/* Repeating tread strip used as a section divider */
.tread-strip {
  position: relative; height: 40px; opacity: .14; color: var(--beige);
  -webkit-mask: url("assets/tread.svg") repeat-x center / auto 60px;
          mask: url("assets/tread.svg") repeat-x center / auto 60px;
  background: currentColor;
  animation: tread-roll 30s linear infinite;
}
@keyframes tread-roll { to { background-position: 240px 0; } }

/* =========================================================
   METHOD PHASES — four numbered phases, each expanding on
   the matching step from the flow list above.
   ========================================================= */
.method-phases {
  display: grid;
  gap: 2.25rem;
}
.method-phase {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 2px solid rgba(231, 220, 210, .12);
}
.method-phase-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--red);
  line-height: 1;
}
.method-phase h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: .6rem;
  color: var(--beige);
}
.method-phase > p {
  color: var(--gray);
  font-size: .98rem;
  line-height: 1.6;
}
.method-phase-list {
  display: grid;
  gap: 1rem;
}
.method-phase-list li {
  color: var(--gray);
  font-size: .98rem;
  line-height: 1.6;
}
.method-phase-list strong {
  display: block;
  color: var(--beige);
  font-weight: 700;
  margin-bottom: .2rem;
}

/* =========================================================
   FLOW STEPS
   ========================================================= */
.flow-steps { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; margin: 0; padding: 0; }
.flow-step { position: relative; padding-top: 1.5rem; border-top: 2px solid rgba(231, 220, 210, .12); transition: border-color var(--transition-interactive); }
.flow-step:hover { border-top-color: var(--red); }
.flow-num { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--red); display: block; margin-bottom: .6rem; letter-spacing: .02em; opacity: .9; }
.flow-step h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin-bottom: .5rem; color: var(--beige); }
.flow-step p { color: var(--gray); font-size: .95rem; }

/* =========================================================
   TRUST + ANIMATED COUNTER
   ========================================================= */
.trust-inner { display: grid; gap: clamp(2.5rem, 6vw, 5rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 920px) { .trust-inner { grid-template-columns: 1.1fr .9fr; } }
.trust-list { margin-top: 1.8rem; display: grid; gap: .85rem; }
.trust-list li { position: relative; padding-left: 1.8rem; color: var(--beige); }
.trust-list li::before {
  content: ''; position: absolute; left: 0; top: .35em; width: 14px; height: 14px;
  color: var(--red);
  -webkit-mask: url("assets/tread.svg") center / contain no-repeat;
          mask: url("assets/tread.svg") center / contain no-repeat;
  background: currentColor;
}

.trust-counter { display: grid; place-items: center; }
.counter-ring {
  --ring: 0%;
  position: relative; width: min(340px, 80vw); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(circle at center, var(--warm-2) 0 60%, transparent 61%),
    conic-gradient(var(--red) var(--ring), rgba(231, 220, 210, .12) 0);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .6), var(--shadow-md);
}
.counter-ring::after {
  content: ''; position: absolute; inset: 16%; border-radius: 50%;
  color: var(--red); opacity: .1;
  -webkit-mask: url("assets/tread.svg") center / 55% no-repeat;
          mask: url("assets/tread.svg") center / 55% no-repeat;
  background: currentColor;
}
.counter-ring::after {
  inset: 22%;
  opacity: .045;
}
.counter-value { display: flex; align-items: flex-start; justify-content: center; line-height: 1; }
.counter-number, .counter-plus {
  font-family: var(--font-display); font-weight: 800; color: var(--beige);
  font-size: clamp(3.4rem, 9vw, 5.2rem); letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}
.counter-plus { color: var(--red); font-size: clamp(2rem, 5vw, 3rem); margin-top: .3em; }
.counter-label { position: relative; z-index: 1; color: var(--gray); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; margin-top: .2rem; }

/* =========================================================
   BLOG
   ========================================================= */
.blog-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.blog-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(54, 51, 45, .08);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.blog-media { display: block; overflow: hidden; aspect-ratio: 3 / 2; }
.blog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.blog-card:hover .blog-media img { transform: scale(1.06); }
.blog-body { padding: 1.6rem; }
.blog-tag { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 700; color: var(--red); margin-bottom: .8rem; }
.blog-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.25; margin-bottom: .7rem; }
.blog-body h3 a { color: var(--warm); transition: color var(--transition-interactive); }
.blog-body h3 a:hover { color: var(--red); }
.blog-body p { color: #6b6457; font-size: .95rem; margin-bottom: 1rem; }
.blog-meta { font-size: .8rem; color: var(--gray); font-weight: 600; }

/* =========================================================
   CTA / CONTACT FORM
   ========================================================= */
.cta { background: linear-gradient(160deg, var(--warm-2), var(--black)); }
.cta-inner { display: grid; gap: clamp(2.5rem, 6vw, 5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 920px) { .cta-inner { grid-template-columns: 1fr 1fr; } }
.cta-assurances { margin-top: 1.8rem; display: grid; gap: .7rem; }
.cta-assurances li { position: relative; padding-left: 1.6rem; color: var(--beige); }
.cta-assurances li::before { content: '✓'; position: absolute; left: 0; color: var(--red); font-weight: 800; }

.contact-form {
  background: rgba(231, 220, 210, .04); border: 1px solid rgba(231, 220, 210, .12);
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem); display: grid; gap: 1.1rem;
}
.field { display: grid; gap: .45rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--beige); }
.field label span[aria-hidden] { color: var(--red); }
.field .optional { color: var(--gray); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 12px;
  background: rgba(2, 3, 3, .5); color: var(--beige);
  border: 1.5px solid rgba(231, 220, 210, .16); font-family: var(--font-body); font-size: 1rem;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(163, 155, 144, .6); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(178, 48, 42, .2); }
.field textarea { resize: vertical; min-height: 84px; }
.field.invalid input, .field.invalid textarea { border-color: #e06b63; }
.field-check { gap: .6rem; }
.check-label {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  cursor: pointer;
  font-size: .88rem;
  color: #655e54;
  line-height: 1.5;
}
.check-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: .15rem;
  accent-color: var(--red);
  cursor: pointer;
}
.check-label a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.error-msg { font-size: .8rem; color: #f0938c; min-height: 1em; }
.form-success { background: rgba(178, 48, 42, .12); border: 1px solid rgba(178, 48, 42, .4); color: var(--beige); padding: .9rem 1rem; border-radius: 12px; font-weight: 600; font-size: .95rem; }
.form-success a { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-inner { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand img { height: 38px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: #6b6457; max-width: 42ch; font-size: .95rem; }
.footer-nav h4, .footer-contact h4 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: var(--warm); margin-bottom: 1rem; }
.footer-nav ul, .footer-contact ul { display: grid; gap: .6rem; }
.footer-nav a, .footer-contact a { color: #6b6457; font-size: .95rem; transition: color var(--transition-interactive); }
.footer-nav a:hover, .footer-contact a:hover { color: var(--red); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(54, 51, 45, .15); font-size: .85rem; color: #6b6457; }

/* =========================================================
   SCROLL REVEAL (JS-driven, opacity/clip only — no CLS)
   ========================================================= */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: .18; transform: translate3d(0, 18px, 0); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); will-change: opacity, transform; }
  .reveal.in { opacity: 1; transform: none; }

  /* Intro sequence (home only): header + hero copy stay fully hidden —
     not just dimmed — until the brand film finishes. */
  .hero .reveal { opacity: 0; }
  .hero .reveal.in { opacity: 1; transform: none; }

  body[data-page="home"] .site-header {
    opacity: 0;
    transform: translateY(-14px);
    pointer-events: none;
    transition: background var(--transition-interactive), padding var(--transition-interactive), box-shadow var(--transition-interactive), opacity .6s var(--ease-out), transform .6s var(--ease-out);
  }
  body[data-page="home"].intro-ready .site-header {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */
@media (max-width: 860px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .hero-stats { gap: 1.5rem 2rem; }
  .hero { aspect-ratio: unset; min-height: 100svh; padding-bottom: 3rem; }
  .hero-bg { aspect-ratio: unset; height: 100svh; }
  .hero-content { max-width: 100%; margin-inline: auto; text-align: center; }
  .hero-copy { text-align: center; }
  .free-consult-badge { margin-inline: auto; }
  .hero-sub { margin-inline: auto; max-width: 56ch; }
  .hero-actions { flex-wrap: wrap; justify-content: center; }
  .hero-stats { flex-wrap: wrap; justify-content: center; }
  .hero-after {
    background:
      linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.3) 38%, rgba(255,255,255,.88) 100%),
      url("assets/hero-photo.jpg") center bottom / min(900px, 130vw) auto no-repeat;
    background-color: #fff;
  }
}
@media (max-width: 520px) {
  .hero { align-items: flex-start; padding-top: 6.5rem; min-height: 92svh; }
  .hero-title {
    font-size: clamp(1.72rem, 9.2vw, 2.28rem);
    letter-spacing: .005em;
    max-width: 100%;
  }
  .free-consult-badge {
    font-size: .72rem;
    padding: .46rem .65rem;
    max-width: 100%;
    line-height: 1.35;
  }
  .hero-stats strong { font-size: 1.5rem; }
  .btn-lg { width: 100%; }
  .hero-actions { flex-direction: column; }
  .motion-band { height: 76px; }
  .motion-track { gap: 2rem; animation-duration: 20s; }
  .motion-track span { font-size: .85rem; }
}

/* =========================================================
   REDUCED MOTION — global
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .tread-strip, .scroll-cue-line::after { animation: none; }
  .hero-bg { transform: none !important; }
  .motion-track { animation: none !important; }
}

/* =========================================================
   CARISMA 2 — LIGHT EDITION OVERRIDES
   Versione chiara: loghi rossi, superfici premium, più 3D.
   ========================================================= */
:root {
  --bg: #f7f1ea;
  --text: var(--warm);
  --text-muted: #70685d;
  --paper: #fffaf5;
  --paper-2: #f0e6dc;
  --line-soft: rgba(54, 51, 45, .14);
  --shadow-light: 0 28px 80px rgba(54, 51, 45, .14);
  --shadow-red-soft: 0 18px 50px rgba(178, 48, 42, .22);
}

body {
  background:
    radial-gradient(circle at 80% 4%, rgba(178, 48, 42, .12), transparent 26rem),
    linear-gradient(180deg, #fffaf5, var(--bg));
  color: var(--warm);
}

.site-header {
  background: rgba(255, 250, 245, .86);
  border-bottom: 1px solid rgba(178, 48, 42, .12);
  backdrop-filter: blur(18px);
}
.site-header.scrolled {
  background: rgba(255, 250, 245, .92);
  box-shadow: 0 10px 35px rgba(54, 51, 45, .08);
}
.nav-link { color: var(--warm); }
.nav-link:hover,
.nav-link.active { color: var(--red); }
.nav-toggle span { background: var(--red); }
.mobile-menu {
  background: #fffaf5;
  color: var(--warm);
}
.mobile-menu a:not(.btn) { color: var(--warm); }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow-red-soft);
}
.btn-primary:hover {
  background: var(--red-deep);
  transform: translateY(-2px);
}
.btn-ghost {
  color: var(--warm);
  background: rgba(255, 250, 245, .58);
  box-shadow: inset 0 0 0 1.5px rgba(54, 51, 45, .2), 0 16px 34px rgba(54, 51, 45, .08);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--red), 0 16px 34px rgba(178, 48, 42, .12);
  color: var(--red);
}

.section-dark,
.method,
.trust,
.cta {
  background:
    radial-gradient(circle at 88% 12%, rgba(178, 48, 42, .11), transparent 20rem),
    linear-gradient(180deg, var(--paper), var(--bg));
  color: var(--warm);
}
.section-soft {
  background:
    radial-gradient(circle at 12% 10%, rgba(178, 48, 42, .08), transparent 22rem),
    linear-gradient(180deg, var(--bg), var(--paper-2));
  color: var(--warm);
}
.section-dark .section-title,
.section-soft .section-title,
.section-title {
  color: var(--warm);
  text-shadow: 0 1px 0 rgba(255,255,255,.8), 0 18px 34px rgba(54,51,45,.12);
}
.section-lead,
.section-soft .section-lead { color: #655e54; }
.kicker,
.kicker-light { color: var(--red); }

.home-routes {
  background:
    linear-gradient(180deg, var(--paper), var(--bg));
}
.route-card {
  background: rgba(255, 250, 245, .78);
  border-color: var(--line-soft);
  box-shadow: 0 18px 50px rgba(54, 51, 45, .08);
}
.route-card:hover {
  transform: translateY(-5px);
  border-color: rgba(178, 48, 42, .28);
  background: #fffdf9;
  box-shadow: var(--shadow-light);
}
.route-card h3,
.method-phase h3,
.flow-step h3 { color: var(--warm); }
.route-card p,
.method-phase > p,
.method-phase-list li,
.flow-step p { color: #655e54; }
.method-phase-list strong { color: var(--warm); }
.route-link {
  color: var(--red);
  border-bottom-color: rgba(178, 48, 42, .35);
  transform: none !important;
}
.route-link:hover {
  color: var(--red-deep);
  transform: none !important;
  border-bottom-color: var(--red-deep);
}

.flow-step,
.method-phase { border-top-color: rgba(54, 51, 45, .14); }
.trust-list li,
.cta-assurances li { color: var(--warm); }

.counter-ring {
  width: min(360px, 82vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: 2rem;
  background:
    radial-gradient(circle at center, #fffaf5 0 56%, transparent 57%),
    conic-gradient(var(--red) var(--ring), rgba(54, 51, 45, .1) 0);
  box-shadow: 0 28px 85px rgba(54,51,45,.16), inset 0 0 0 12px rgba(255,250,245,.72);
}
.counter-value,
.counter-label { position: relative; z-index: 1; }
.counter-value { z-index: 2; }
.counter-number,
.counter-plus { color: var(--warm); }
.counter-plus { color: var(--red); }
.counter-label {
  width: min(210px, 62vw);
  color: #756b60;
  line-height: 1.35;
  text-align: center;
}
.counter-ring::after { display: none; }

.blog-card {
  background: #fffdf9;
  border-color: rgba(54, 51, 45, .1);
  box-shadow: 0 18px 50px rgba(54,51,45,.08);
}
.contact-form {
  background: rgba(255, 250, 245, .84);
  border-color: rgba(178, 48, 42, .18);
  box-shadow: var(--shadow-light);
}
.field label { color: var(--warm); }
.field input,
.field textarea {
  background: #fffdf9;
  color: var(--warm);
  border-color: rgba(54, 51, 45, .18);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(112, 104, 93, .62); }
.form-success { color: var(--warm); background: rgba(178, 48, 42, .08); }
.form-success a { color: var(--red); }

.page-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(178, 48, 42, .14), transparent 32%),
    linear-gradient(140deg, var(--paper), var(--bg));
}

.site-footer { background: var(--paper-2); }

/* Light 3D lab */
.light-3d-lab {
  background:
    radial-gradient(circle at 78% 48%, rgba(178, 48, 42, .14), transparent 24rem),
    linear-gradient(180deg, var(--bg), var(--paper));
  overflow: hidden;
}
.lab-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 920px) {
  .lab-inner { grid-template-columns: .9fr 1.1fr; }
}
.lab-stage {
  position: relative;
}
.lab-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(54,51,45,.2);
  border: 1px solid rgba(178,48,42,.14);
}
.lab-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Marquee without overlap */
.motion-band {
  background:
    linear-gradient(90deg, var(--paper), rgba(178,48,42,.13), var(--paper));
  border-block-color: rgba(178, 48, 42, .12);
}
.motion-band::before {
  color: var(--red);
  opacity: .12;
}
.tread-strip {
  color: var(--red);
  opacity: .18;
  height: 54px;
}
.counter-ring::after { display: block; opacity: .035; color: var(--red); }
.motion-track {
  width: max-content;
  min-width: unset;
  gap: 0;
  animation: track-move-light 34s linear infinite;
}
.motion-track-copy { display: none; }
.motion-group {
  display: inline-flex;
  gap: 3rem;
  padding-right: 3rem;
}
.motion-track span { color: var(--warm); }
.motion-track span:nth-child(even) { color: var(--red); }
@keyframes track-move-light {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 520px) {
  .hero-title { font-size: clamp(1.68rem, 9vw, 2.18rem); }
}

/* =========================================================
   COOKIE BANNER
   ========================================================= */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: min(780px, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid rgba(178, 48, 42, .15);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(54, 51, 45, .18);
  padding: 1.4rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.is-hiding {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
  pointer-events: none;
}
.cookie-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--red);
  -webkit-mask: url("assets/tread.svg") center / contain no-repeat;
          mask: url("assets/tread.svg") center / contain no-repeat;
  background: currentColor;
  opacity: .85;
}
.cookie-text {
  flex: 1;
  min-width: 200px;
  font-size: .88rem;
  color: #655e54;
  line-height: 1.5;
}
.cookie-text a {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-actions {
  display: flex;
  gap: .7rem;
  flex-shrink: 0;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: .6rem 1.2rem;
  border-radius: 100px;
  font-size: .88rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: background var(--transition-interactive), color var(--transition-interactive), box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.cookie-btn-accept {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 24px rgba(178, 48, 42, .28);
}
.cookie-btn-accept:hover { background: var(--red-deep); transform: translateY(-1px); }
.cookie-btn-reject {
  background: transparent;
  color: var(--warm);
  box-shadow: inset 0 0 0 1.5px rgba(54, 51, 45, .2);
}
.cookie-btn-reject:hover { box-shadow: inset 0 0 0 1.5px var(--warm); }
@media (max-width: 520px) {
  .cookie-banner { bottom: 1rem; padding: 1.1rem 1.2rem; gap: 1rem; }
  .cookie-icon { display: none; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}
