/* =========================================================
   PatenteNova Italia — Design tokens
   ========================================================= */
:root {
  --asphalt:       #0B0E14;
  --slate:         #1C2230;
  --slate-soft:    #2A3142;
  --signal-yellow: #FFD23F;
  --signal-red:    #FF5A36;
  --paint-white:   #F5F3ED;
  --ink:           #11141B;
  --ink-soft:      rgba(245, 243, 237, 0.66);

  --font-display: 'Archivo Black', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'Space Mono', monospace;

  --radius-cut:  2px;
  --container-w: 1140px;

  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 0.15s var(--ease-expo);
  --t-ui:   0.24s var(--ease-expo);
  --t-slow: 0.62s var(--ease-expo);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paint-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--signal-yellow);
  color: var(--ink);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

:focus-visible {
  outline: 3px solid var(--signal-yellow);
  outline-offset: 3px;
}

/* =========================================================
   Scroll reveal — js adds .js-reveal then .is-visible
   Uses `translate` (CSS Transforms L2) to avoid conflicting
   with `transform` used for hover effects on same elements.
   IMPORTANT: transition must live here so elements without
   their own transition (eyebrow, section__title) still animate.
   ========================================================= */
.js-reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity var(--t-slow), translate var(--t-slow);
}
.js-reveal.is-visible {
  opacity: 1;
  translate: none;
}

/* =========================================================
   Lane rail — fixed so it spans the full viewport always
   ========================================================= */
.lane-rail {
  position: fixed;
  top: 0;
  left: 50%;
  width: 0;
  height: 100vh;
  z-index: 200;
  pointer-events: none;
  mix-blend-mode: overlay;
  overflow: hidden;
}
/* Extra 60px height so translateY(-60px) never shows a gap.
   One pattern cycle = 34px dash + 26px gap = 60px. */
.lane-rail__track {
  position: absolute;
  top: 0;
  left: -3px;
  width: 6px;
  height: calc(100% + 60px);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(245, 243, 237, 0.55) 0px,
    rgba(245, 243, 237, 0.55) 34px,
    transparent 34px,
    transparent 60px
  );
  animation: lane-dash 1.8s linear infinite;
  will-change: transform;
}

@keyframes lane-dash {
  from { transform: translateY(0); }
  to   { transform: translateY(-60px); }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border: none;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: transform var(--t-ui), box-shadow var(--t-ui), opacity var(--t-ui);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

/* Shine sweep on hover */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 80%
  );
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  pointer-events: none;
}
.btn:hover::before { transform: translateX(120%); }

.btn--cta {
  background: var(--signal-red);
  color: var(--paint-white);
}
.btn--cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 0 rgba(0,0,0,0.18), 0 6px 28px rgba(255,90,54,0.28);
}
.btn--cta:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(0,0,0,0.18);
  transition-duration: 0.08s;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  clip-path: none;
  padding: 14px 4px;
  overflow: visible;
}
.btn--ghost::before { display: none; }
.btn--ghost:hover { opacity: 0.72; transform: translateY(-2px); }
.btn--ghost:active { transform: translateY(0); }

.btn--large { padding: 18px 36px; font-size: 1.05rem; }
.btn--small { padding: 10px 20px; font-size: 0.85rem; }
.btn--full  { width: 100%; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 115;
  background: var(--paint-white);
  border-bottom: 3px solid var(--ink);
  transition: box-shadow var(--t-ui);
}
.site-header--scrolled {
  box-shadow: 0 4px 24px rgba(11, 14, 20, 0.1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  transition: padding var(--t-ui);
}
.site-header--scrolled .site-header__inner {
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity var(--t-ui);
}
.brand:hover { opacity: 0.8; }

.brand__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.brand__name strong { color: var(--signal-red); }

.site-nav {
  display: flex;
  gap: 28px;
  font-weight: 600;
  font-size: 0.92rem;
}
.site-nav a {
  position: relative;
  padding: 4px 0;
  transition: color var(--t-ui);
}
/* Sliding underline */
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--signal-red);
  transition: width 0.3s var(--ease-expo);
}
.site-nav a:hover { color: var(--signal-red); }
.site-nav a:hover::after { width: 100%; }

@media (max-width: 820px) {
  .site-nav { display: none; }
}

/* =========================================================
   Eyebrow / section titles
   ========================================================= */
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--signal-red);
  margin: 0 0 14px;
}
.eyebrow--light { color: var(--signal-yellow); }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 44px;
  color: var(--paint-white);
}
.section .section__title       { color: var(--ink); }
.section--dark .section__title { color: var(--paint-white); }
.section__title--dark          { color: var(--ink) !important; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  background: var(--asphalt);
  color: var(--paint-white);
  overflow: hidden;
  padding: 96px 0 80px;
}

/* Atmospheric colour wash */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 12% 65%, rgba(255,90,54,0.1) 0%, transparent 100%),
    radial-gradient(ellipse 50% 50% at 88% 12%, rgba(255,210,63,0.07) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.hero__road {
  /* Extend 8% beyond hero bounds to avoid parallax gap at top/bottom */
  position: absolute;
  left: 0;
  right: 0;
  top: -8%;
  height: 116%;
  z-index: 0;
  opacity: 0.85;
}
.hero__road-svg { width: 100%; height: 100%; }

.hero__dashes {
  animation: dash-move 2s linear infinite;
}
@keyframes dash-move {
  to { stroke-dashoffset: -60; }
}

.hero__inner { position: relative; z-index: 1; }

/* Staggered entrance — every direct child of hero__inner */
.hero__inner > * {
  animation: hero-rise 0.8s var(--ease-expo) backwards;
}
.hero__inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero__inner > *:nth-child(2) { animation-delay: 0.2s;  }
.hero__inner > *:nth-child(3) { animation-delay: 0.35s; }
.hero__inner > *:nth-child(4) { animation-delay: 0.5s;  }
.hero__inner > *:nth-child(5) { animation-delay: 0.62s; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}

.eyebrow.eyebrow--light { display: inline-block; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 11ch;
}
.hero__title-accent {
  color: var(--signal-yellow);
  text-shadow: 0 0 48px rgba(255, 210, 63, 0.4);
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 40px;
}

.hero__cta-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}
.hero .btn--ghost {
  color: var(--paint-white);
  border-bottom-color: rgba(245, 243, 237, 0.55);
}
.hero .btn--ghost:hover {
  opacity: 0.85;
  border-bottom-color: var(--paint-white);
}

.hero__stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(245, 243, 237, 0.18);
  padding-top: 28px;
}
.stat { display: flex; flex-direction: column; }
.stat__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--signal-yellow);
  text-shadow: 0 0 24px rgba(255, 210, 63, 0.45);
}
.stat__label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

@media (max-width: 600px) {
  .hero { padding: 64px 0 56px; }
  .hero__cta-row { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 48px; }
  .hero__stats { gap: 28px; }
}

/* =========================================================
   Generic section
   ========================================================= */
.section {
  position: relative;
  padding: 88px 0;
  background: var(--paint-white);
  z-index: 1;
}
.section--dark   { background: var(--asphalt); }
.section--accent { background: var(--signal-yellow); }

/* =========================================================
   Route (percorso)
   ========================================================= */
.route {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.route__step {
  background: var(--slate);
  padding: 32px 28px 36px;
  border-left: 4px solid var(--signal-yellow);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  /* Transition covers hover props + js-reveal props (translate/opacity) */
  transition:
    transform var(--t-ui),
    filter var(--t-ui),
    translate var(--t-slow),
    opacity var(--t-slow);
}
.route__step:hover {
  transform: translateY(-8px);
  filter: drop-shadow(0 16px 32px rgba(255, 210, 63, 0.18));
}
.route__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--signal-yellow);
  color: var(--ink);
  margin-bottom: 20px;
  transition: transform var(--t-ui);
}
.route__step:hover .route__marker {
  transform: scale(1.12) rotate(-5deg);
}
.route__step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--paint-white);
  margin: 0 0 12px;
}
.route__step p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.96rem;
}

@media (max-width: 900px) {
  .route { grid-template-columns: 1fr; gap: 24px; }
}

/* =========================================================
   Services cards
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  background: var(--paint-white);
  border: 2px solid var(--ink);
  padding: 28px 22px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition:
    transform var(--t-ui),
    border-color var(--t-ui),
    translate var(--t-slow),
    opacity var(--t-slow);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--signal-red);
}
.card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  background: var(--ink);
  color: var(--signal-yellow);
  margin-bottom: 18px;
  transition: background var(--t-ui), color var(--t-ui), transform 0.3s var(--ease-spring);
}
.card:hover .card__tag {
  background: var(--signal-yellow);
  color: var(--ink);
  transform: rotate(-6deg) scale(1.1);
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 10px;
}
.card p { margin: 0 0 16px; font-size: 0.92rem; color: #444; }
.card__link {
  display: inline-block;
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--signal-yellow);
  text-decoration: none;
  letter-spacing: .04em;
  transition: color var(--t-ui);
}
.card__link:hover { color: var(--paint-white); }
.card { display: flex; flex-direction: column; }

.btn--outline {
  background: transparent;
  border: 2px solid var(--signal-yellow);
  color: var(--signal-yellow);
  padding: 12px 28px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-decoration: none;
  display: inline-block;
  transition: background var(--t-ui), color var(--t-ui);
}
.btn--outline:hover { background: var(--signal-yellow); color: var(--ink-black); }

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
}

/* =========================================================
   Trust grid (accent section)
   ========================================================= */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.trust-item {
  background: var(--ink);
  padding: 30px 26px;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
  transition:
    transform var(--t-ui),
    filter var(--t-ui),
    translate var(--t-slow),
    opacity var(--t-slow);
}
.trust-item:hover {
  transform: translateY(-6px);
  filter: drop-shadow(0 12px 28px rgba(11, 14, 20, 0.3));
}
.trust-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--signal-yellow);
  margin: 0 0 12px;
}
.trust-item p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.94rem;
}

@media (max-width: 900px) {
  .trust-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* =========================================================
   Lead form
   ========================================================= */
.lead-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.lead-box__sub {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 42ch;
}

.lead-form {
  background: var(--slate);
  padding: 36px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
  transition: translate var(--t-slow), opacity var(--t-slow);
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--signal-yellow);
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--paint-white);
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--ink);
  transition: border-color var(--t-ui), box-shadow var(--t-ui);
  outline: none;
}
.field input:focus {
  border-bottom-color: var(--signal-yellow);
  box-shadow: 0 4px 16px rgba(255, 210, 63, 0.12);
}
.field input::placeholder { color: #8a8a8a; }

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.lead-form__note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 14px 0 0;
  text-align: center;
}
.lead-form__note a { text-decoration: underline; }

.lead-form__status {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
  transition: opacity 0.3s ease;
}
.lead-form__status[data-state="success"] { color: var(--signal-yellow); }
.lead-form__status[data-state="error"]   { color: var(--signal-red); }

@media (max-width: 900px) {
  .lead-box  { grid-template-columns: 1fr; gap: 32px; }
  .lead-form { padding: 26px; }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { max-width: 760px; }

.faq-item {
  border-bottom: 1px solid #ddd9cd;
  overflow: hidden;
  transition: translate var(--t-slow), opacity var(--t-slow);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  -webkit-user-select: none;
  user-select: none;
  transition: color var(--t-ui);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--signal-red); }

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--signal-red);
  flex-shrink: 0;
  margin-left: 16px;
  display: inline-block;
  transition: transform 0.35s var(--ease-expo);
}
/* Rotate + into × when open */
.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0 0 20px;
  color: #444;
  max-width: 60ch;
}
/* Animate content in when opened */
.faq-item[open] p {
  animation: faq-in 0.38s var(--ease-expo);
}
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: var(--ink-soft);
  padding-top: 56px;
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(245, 243, 237, 0.14);
}
.site-footer .brand__name { color: var(--paint-white); }
.site-footer__brand p { max-width: 36ch; font-size: 0.9rem; margin-top: 10px; }

.site-footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.site-footer__links a {
  position: relative;
  padding-bottom: 2px;
  transition: color var(--t-ui);
}
/* Underline slide-in */
.site-footer__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--signal-yellow);
  transition: width 0.3s var(--ease-expo);
}
.site-footer__links a:hover { color: var(--signal-yellow); }
.site-footer__links a:hover::after { width: 100%; }

.site-footer__bottom {
  padding: 22px 24px 28px;
  font-size: 0.8rem;
}

@media (max-width: 600px) {
  .site-footer__inner { flex-direction: column; }
}

/* =========================================================
   Hero road — parallax layer
   The transform is set inline by JS. The 8% top overshoot
   in .hero__road above absorbs the downward shift.
   ========================================================= */
.hero__road {
  transform: translateY(var(--road-parallax, 0px));
  will-change: transform;
}

/* =========================================================
   Scroll progress — fixed right-side road + car indicator
   ========================================================= */
.scroll-road {
  position: fixed;
  right: 18px;
  top: 50%;
  translate: 0 -50%;
  width: 4px;
  height: 140px;
  z-index: 90;
  pointer-events: none;
}
.scroll-road__track {
  position: absolute;
  inset: 0;
  background: var(--slate);
  border-radius: 4px;
  border: 1px solid rgba(245,243,237,0.12);
}
.scroll-road__car {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% 0;
  width: 16px;
  height: 24px;
  background: var(--signal-yellow);
  border-radius: 3px 3px 2px 2px;
  transition: top 0.15s linear;
  box-shadow: 0 0 8px rgba(255,210,63,0.5);
}
/* Windshield detail */
.scroll-road__car::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 3px;
  right: 3px;
  height: 7px;
  background: rgba(11,14,20,0.65);
  border-radius: 1px;
}
/* Tail lights detail */
.scroll-road__car::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 2px;
  right: 2px;
  height: 3px;
  background: var(--signal-red);
  border-radius: 1px;
}
@media (max-width: 820px) {
  .scroll-road { display: none; }
}

/* =========================================================
   SVG cars — hide when prefers-reduced-motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-car-group { display: none; }
}

/* =========================================================
   Speed overlay — vertical streaks on fast scroll
   ========================================================= */
.speed-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.08s linear;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 38px,
    rgba(245, 243, 237, 0.028) 38px,
    rgba(245, 243, 237, 0.028) 40px
  );
}
body.is-speeding .speed-overlay { opacity: 1; }

/* =========================================================
   Road separator — single ::before bar with repeating dashes
   Pattern: 56px dash + 40px gap = 96px cycle.
   Animating translateX(96px) shifts exactly one cycle → seamless loop.
   ========================================================= */
.road-sep {
  height: 28px;
  background: var(--asphalt);
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.road-sep::before {
  content: '';
  position: absolute;
  top: 50%;
  /* Start 96px to the left so first dash enters from off-screen */
  left: -96px;
  /* Extend beyond both sides to avoid clipping during animation */
  width: calc(100% + 192px);
  height: 8px;
  margin-top: -4px;
  background: repeating-linear-gradient(
    90deg,
    var(--signal-yellow)      0px,
    var(--signal-yellow)     56px,
    transparent              56px,
    transparent              96px
  );
  border-radius: 2px;
  opacity: 0.75;
  animation: sep-flow 1.1s linear infinite;
  will-change: transform;
}

@keyframes sep-flow {
  from { transform: translateX(0); }
  to   { transform: translateX(96px); }
}

@media (prefers-reduced-motion: reduce) {
  .road-sep::before { animation: none; }
}

/* =========================================================
   Mobile navigation toggle
   ========================================================= */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 120;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-expo), opacity 0.3s ease, background 0.2s;
  transform-origin: center;
}
.nav-toggle.is-open span { background: var(--signal-red); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
}

/* =========================================================
   Mobile navigation overlay
   ========================================================= */
.mobile-nav { display: none; }

@media (max-width: 820px) {
  .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    padding-top: 70px; /* laisse le header visible au-dessus */
    background: var(--asphalt);
    z-index: 110; /* header est à 115, reste toujours visible */
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.35s var(--ease-expo), transform 0.35s var(--ease-expo), visibility 0s linear 0.35s;
  }
  .mobile-nav.is-open {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transform: none;
    transition: opacity 0.35s var(--ease-expo), transform 0.35s var(--ease-expo);
  }
  .mobile-nav nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    text-align: center;
  }
  .mobile-nav nav a:not(.btn) {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--paint-white);
    letter-spacing: -0.01em;
    transition: color var(--t-ui);
  }
  .mobile-nav nav a:not(.btn):hover { color: var(--signal-yellow); }
  .mobile-nav .btn--cta { margin-top: 8px; }
}

/* =========================================================
   Testimonials
   ========================================================= */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial {
  background: var(--paint-white);
  border: 2px solid var(--ink);
  padding: 28px 24px 24px;
  margin: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  transition:
    transform var(--t-ui),
    border-color var(--t-ui),
    translate var(--t-slow),
    opacity var(--t-slow);
}
.testimonial:hover {
  transform: translateY(-5px);
  border-color: var(--signal-red);
}
.testimonial__stars {
  color: var(--signal-yellow);
  font-size: 1rem;
  letter-spacing: 3px;
  margin-bottom: 14px;
}
.testimonial p {
  font-style: italic;
  color: #444;
  font-size: 0.95rem;
  margin: 0 0 20px;
  line-height: 1.6;
}
.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.testimonial footer strong {
  font-family: var(--font-display);
  font-size: 0.9rem;
}
.testimonial footer span {
  font-size: 0.8rem;
  color: #888;
}

@media (max-width: 900px) {
  .testimonials { grid-template-columns: 1fr; gap: 20px; }
}

/* =========================================================
   Footer contact block
   ========================================================= */
.site-footer__contact { font-size: 0.9rem; }
.site-footer__contact-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--signal-yellow);
  margin: 0 0 10px;
}
.site-footer__contact p { margin: 0 0 6px; }
.site-footer__contact a { transition: color var(--t-ui); }
.site-footer__contact a:hover { color: var(--signal-yellow); }

/* =========================================================
   WhatsApp floating button
   ========================================================= */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  z-index: 80;
  transition: transform var(--t-ui), box-shadow var(--t-ui);
}
.whatsapp-fab:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55);
}
@media (max-width: 600px) {
  .whatsapp-fab { bottom: 20px; left: 20px; width: 50px; height: 50px; }
}

/* =========================================================
   Mobile section padding
   ========================================================= */
@media (max-width: 600px) {
  .section { padding: 56px 0; }
}

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb {
  background: var(--asphalt);
  padding: 14px 0;
  border-bottom: 1px solid rgba(245,243,237,0.08);
}
.breadcrumb__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  flex-wrap: wrap;
}
.breadcrumb__item a {
  color: var(--signal-yellow);
  transition: opacity var(--t-ui);
}
.breadcrumb__item a:hover { opacity: 0.75; }
.breadcrumb__sep { color: rgba(245,243,237,0.25); }
.breadcrumb__item:last-child { color: var(--paint-white); }

/* =========================================================
   LICENSE HERO (detail pages)
   ========================================================= */
.license-hero {
  background: var(--asphalt);
  color: var(--paint-white);
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}
.license-hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 100% 50%, rgba(255,210,63,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 0% 80%, rgba(255,90,54,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.license-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.license-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px; height: 88px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2.6rem;
  background: var(--signal-yellow);
  color: var(--ink);
  margin-bottom: 22px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.license-hero__cat {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--signal-yellow);
  margin-bottom: 12px;
}
.license-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.license-hero__subtitle {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 0 0 32px;
  line-height: 1.6;
}
.license-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.license-hero__pill {
  background: var(--slate);
  border: 1px solid rgba(245,243,237,0.14);
  padding: 7px 16px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--paint-white);
  display: flex;
  align-items: center;
  gap: 6px;
}
.license-hero__pill strong { color: var(--signal-yellow); }
.license-hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.license-hero__vehicle-svg {
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 12px 40px rgba(255,210,63,0.1));
}
@media (max-width: 900px) {
  .license-hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .license-hero__visual { order: -1; }
  .license-hero__vehicle-svg { max-width: 360px; }
}

/* =========================================================
   VEHICLES CAN/CANNOT DRIVE
   ========================================================= */
.vehicles-section { padding: 80px 0; background: var(--paint-white); }
.vehicles-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 36px;
  border-bottom: 2px solid #ddd9cd;
}
.vehicles-tab {
  background: none;
  border: none;
  padding: 13px 26px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color var(--t-ui), border-color var(--t-ui);
  font-weight: 700;
  color: #999;
}
.vehicles-tab:hover { color: var(--ink); }
.vehicles-tab.is-active { color: var(--signal-red); border-bottom-color: var(--signal-red); }
.vehicles-panel { display: none; }
.vehicles-panel.is-active { display: block; }
.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
}
.vehicle-item {
  border: 2px solid #e0ddd6;
  padding: 20px 14px 16px;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: transform var(--t-ui), border-color var(--t-ui);
}
.vehicle-item:hover { transform: translateY(-4px); }
.vehicle-item--allowed {
  border-color: var(--signal-yellow);
  background: rgba(255,210,63,0.04);
}
.vehicle-item--denied {
  opacity: 0.38;
  filter: grayscale(1);
}
.vehicle-item__svg {
  width: 100%;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
}
.vehicle-item__svg svg { max-height: 68px; width: 100%; }
.vehicle-item__label {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 5px;
}
.vehicle-item__status {
  font-size: 0.72rem;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.vehicle-item--allowed .vehicle-item__status { color: #4a7c2f; font-weight: 600; }
.vehicle-item--denied .vehicle-item__status { color: #c0392b; }

/* =========================================================
   REQUIREMENTS
   ========================================================= */
.requirements-section {
  background: var(--slate);
  padding: 80px 0;
  color: var(--paint-white);
}
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
.req-card {
  background: var(--asphalt);
  padding: 28px 24px;
  border-left: 4px solid var(--signal-yellow);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  transition: translate var(--t-slow), opacity var(--t-slow);
}
.req-card__icon { font-size: 1.5rem; margin-bottom: 12px; display: block; }
.req-card__title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--signal-yellow);
  margin: 0 0 14px;
}
.req-card__list { list-style: none; margin: 0; padding: 0; }
.req-card__list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}
.req-card__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(255,210,63,0.6);
}

/* =========================================================
   EXAM TIMELINE
   ========================================================= */
.exam-section { padding: 80px 0; background: var(--paint-white); }
.exam-timeline {
  position: relative;
  max-width: 820px;
}
.exam-timeline::before {
  content: '';
  position: absolute;
  left: 21px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--signal-yellow), rgba(255,210,63,0.08));
}
.exam-step {
  display: flex;
  gap: 28px;
  margin-bottom: 40px;
  position: relative;
}
.exam-step:last-child { margin-bottom: 0; }
.exam-step__num {
  flex-shrink: 0;
  width: 42px; height: 42px;
  background: var(--signal-yellow);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  position: relative;
  z-index: 1;
}
.exam-step__content { padding-top: 6px; }
.exam-step__title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin: 0 0 8px;
  color: var(--ink);
}
.exam-step__text {
  color: #555;
  font-size: 0.92rem;
  margin: 0;
  max-width: 58ch;
  line-height: 1.6;
}
.exam-step__tag {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  background: var(--signal-yellow);
  color: var(--ink);
  font-weight: 700;
}

/* =========================================================
   COST SECTION
   ========================================================= */
.costs-section {
  background: var(--asphalt);
  color: var(--paint-white);
  padding: 80px 0;
}
.cost-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.cost-item {
  background: var(--slate);
  padding: 28px 22px;
  text-align: center;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.cost-item__label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 10px;
  display: block;
}
.cost-item__value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--signal-yellow);
  display: block;
  margin-bottom: 6px;
  line-height: 1;
}
.cost-item__note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  display: block;
}
.cost-note {
  background: var(--slate-soft);
  border-left: 4px solid var(--signal-yellow);
  padding: 18px 22px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: 680px;
}
@media (max-width: 900px) { .cost-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cost-grid { grid-template-columns: 1fr; } }

/* =========================================================
   CATALOG PAGE (patenti.html)
   ========================================================= */
.catalog-hero {
  background: var(--asphalt);
  color: var(--paint-white);
  padding: 80px 0;
}
.catalog-section { padding: 72px 0; background: var(--paint-white); }

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.filter-btn {
  background: none;
  border: 2px solid var(--ink);
  color: var(--ink);
  padding: 9px 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all var(--t-ui);
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  font-weight: 700;
}
.filter-btn:hover { border-color: var(--signal-red); color: var(--signal-red); }
.filter-btn.is-active { background: var(--ink); color: var(--signal-yellow); border-color: var(--ink); }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}
.catalog-card {
  border: 2px solid var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  transition: transform var(--t-ui), border-color var(--t-ui), translate var(--t-slow), opacity var(--t-slow);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--paint-white);
  overflow: hidden;
}
.catalog-card:hover { transform: translateY(-6px); border-color: var(--signal-red); }
.catalog-card__head {
  background: var(--asphalt);
  padding: 22px 22px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.catalog-card__code {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.35rem;
  background: var(--signal-yellow);
  color: var(--ink);
  flex-shrink: 0;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  transition: transform 0.3s var(--ease-spring);
}
.catalog-card:hover .catalog-card__code { transform: rotate(-6deg) scale(1.1); }
.catalog-card__meta { flex: 1; }
.catalog-card__title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--paint-white);
  margin: 0 0 3px;
}
.catalog-card__cat {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--signal-yellow);
}
.catalog-card__vehicle {
  background: var(--slate);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}
.catalog-card__vehicle svg { width: 100%; max-height: 85px; }
.catalog-card__body {
  padding: 18px 20px 0;
  flex: 1;
}
.catalog-card__desc {
  color: #555;
  font-size: 0.88rem;
  margin: 0 0 14px;
  line-height: 1.55;
}
.catalog-card__pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.catalog-card__pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  background: #eeebe3;
  color: var(--ink);
}
.catalog-card__link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--signal-red);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  padding: 14px 20px;
  border-top: 1px solid #e8e4dc;
  transition: gap var(--t-ui);
}
.catalog-card:hover .catalog-card__link { gap: 10px; }

/* =========================================================
   INFO BANDS (conversione / rinnovo)
   ========================================================= */
.info-band {
  background: var(--signal-yellow);
  padding: 56px 0;
}
.info-band__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.info-band__item {
  background: var(--ink);
  padding: 26px 22px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.info-band__item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--signal-yellow);
  margin: 0 0 8px;
}
.info-band__item p { color: var(--ink-soft); font-size: 0.88rem; margin: 0; }

/* =========================================================
   INLINE LEAD FORM (reused across pages)
   ========================================================= */
.page-lead { background: var(--asphalt); padding: 80px 0; }
.page-lead .lead-box { max-width: 900px; margin: 0 auto; }

/* =========================================================
   RESPONSIVE — catalog & detail pages
   ========================================================= */
@media (max-width: 600px) {
  .vehicles-section { padding: 56px 0; }
  .vehicles-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .requirements-section { padding: 56px 0; }
  .exam-section { padding: 56px 0; }
  .costs-section { padding: 56px 0; }
  .catalog-section { padding: 48px 0; }
}

/* =========================================================
   Responsive — mobile fixes
   ========================================================= */

/* Header : masquer le CTA sur mobile, le hamburger suffit */
@media (max-width: 820px) {
  .site-header .btn--cta { display: none; }
}

/* Boutons : autoriser le retour à la ligne pour éviter le débordement */
@media (max-width: 500px) {
  .btn--large {
    padding: 14px 20px;
    font-size: 0.95rem;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
  .btn--full { white-space: normal; }
  .hero__cta-row .btn { max-width: 100%; }
}

/* Hero : réduction padding + stats en grille 2 colonnes */
@media (max-width: 480px) {
  .hero { padding: 48px 0 40px; }
  .hero__title { font-size: clamp(2rem, 10vw, 2.6rem); }
  .hero__cta-row { margin-bottom: 36px; }
  .hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    border-top: 1px solid rgba(245, 243, 237, 0.18);
    padding-top: 24px;
  }
}

/* Très petits écrans (≤ 360px) */
@media (max-width: 360px) {
  .container { padding: 0 14px; }
  .brand__name { font-size: 1rem; }
  .brand__mark svg { width: 28px; height: 28px; }
}

/* =========================================================
   RESPONSIVE COMPLET — pages de détail des permis
   ========================================================= */

/* --- License hero --- */
@media (max-width: 600px) {
  .license-hero { padding: 44px 0 48px; }
  .license-hero__badge { width: 60px; height: 60px; font-size: 1.6rem; margin-bottom: 14px; }
  .license-hero__title { font-size: clamp(1.75rem, 9vw, 2.4rem); }
  .license-hero__subtitle { font-size: 0.93rem; margin-bottom: 20px; }
  .license-hero__pill { font-size: 0.67rem; padding: 5px 10px; }
  .license-hero__pills { gap: 7px; margin-bottom: 20px; }
}

/* --- Requirements grid --- */
@media (max-width: 540px) {
  .req-grid { grid-template-columns: 1fr; }
  .req-card { padding: 22px 18px; }
}

/* --- Exam timeline --- */
@media (max-width: 500px) {
  .exam-timeline::before { left: 17px; }
  .exam-step { gap: 14px; margin-bottom: 28px; }
  .exam-step__num { width: 36px; height: 36px; font-size: 0.85rem; }
  .exam-step__title { font-size: 0.95rem; }
  .exam-step__text { font-size: 0.87rem; }
  .exam-step__tag { font-size: 0.67rem; padding: 3px 8px; }
}

/* --- Vehicles tabs --- */
@media (max-width: 480px) {
  .vehicles-tabs { flex-wrap: wrap; border-bottom: none; gap: 4px; }
  .vehicles-tab { border: 2px solid #ddd9cd; margin-bottom: 0; flex: 1 1 auto; text-align: center; }
  .vehicles-tab.is-active { background: var(--signal-red); color: #fff; border-color: var(--signal-red); }
}

/* --- Cost section --- */
@media (max-width: 480px) {
  .cost-grid { grid-template-columns: 1fr; }
  .cost-item__value { font-size: 1.4rem; }
}

/* --- Info band --- */
@media (max-width: 600px) {
  .info-band { padding: 40px 0; }
  .info-band__grid { grid-template-columns: 1fr; }
}

/* --- Page lead / catalog hero --- */
@media (max-width: 600px) {
  .page-lead { padding: 52px 0; }
  .catalog-hero { padding: 52px 0; }
}

/* --- Filter bar (patenti.html) --- */
@media (max-width: 480px) {
  .filter-bar { gap: 7px; }
  .filter-btn { padding: 8px 14px; font-size: 0.73rem; }
}

/* --- Catalog grid --- */
@media (max-width: 400px) {
  .catalog-grid { grid-template-columns: 1fr; }
}

/* --- Moto nav (patente-a.html) --- */
.moto-nav {

  scrollbar-width: none;
}
.moto-nav::-webkit-scrollbar { display: none; }
@media (max-width: 680px) {
  .moto-nav { overflow-x: auto; flex-wrap: nowrap; }
  .moto-nav__btn { white-space: nowrap; flex-shrink: 0; }
}

/* --- Service tabs (rinnovo.html) --- */
.service-tab { white-space: nowrap; }
@media (max-width: 600px) {
  .service-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  .service-tabs::-webkit-scrollbar { display: none; }
  .service-tab { flex-shrink: 0; font-size: 0.74rem; padding: 9px 16px; }
}

/* --- Dual-column utility class (conversione.html exam section) --- */
.dual-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) {
  .dual-col-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* --- Scrollable table wrapper (rinnovo.html) --- */
.table-scroll {
  overflow-x: auto;

  margin-bottom: 0;
}
.table-scroll .validity-table { min-width: 560px; }

/* --- Progression diagram (patente-a.html) --- */
@media (max-width: 600px) {
  .progression { flex-direction: column; align-items: flex-start; gap: 8px; }
  .progression__arrow { transform: rotate(90deg); }
}

/* --- Trust grid on detail pages --- */
@media (max-width: 600px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { padding: 22px 18px; }
}

/* --- Section padding reduction on mobile for detail pages --- */
@media (max-width: 600px) {
  .vehicles-section { padding: 48px 0; }
  .requirements-section { padding: 48px 0; }
  .exam-section { padding: 48px 0; }
  .costs-section { padding: 48px 0; }
}

/* --- eyebrow in dark context --- */
@media (max-width: 600px) {
  .eyebrow, .eyebrow--light { font-size: 0.65rem; }
  .section__title { font-size: clamp(1.5rem, 7vw, 2.2rem); }
}

/* ── Language switcher ─────────────────────────────────────── */
.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
}
.lang-btn {
  padding: 3px 6px;
  font-size: .68rem;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
  background: transparent;
  border: 1px solid rgba(0,0,0,.2);
  color: var(--slate);
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: .06em;
  transition: background .15s, color .15s, border-color .15s;
  line-height: 1.6;
}
.lang-btn:hover {
  background: rgba(0,0,0,.06);
  color: var(--asphalt);
  border-color: rgba(0,0,0,.35);
}
/* In dark contexts (mobile nav) */
.lang-switcher--mobile .lang-btn {
  border-color: rgba(255,255,255,.3);
  color: rgba(255,255,255,.7);
}
.lang-switcher--mobile .lang-btn:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.lang-btn--active {
  background: var(--signal-yellow) !important;
  border-color: var(--signal-yellow) !important;
  color: var(--asphalt) !important;
}
.lang-switcher--mobile {
  padding: 16px 24px 8px;
  justify-content: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 8px;
}
.lang-switcher--mobile .lang-btn {
  padding: 6px 18px;
  font-size: .8rem;
}

/* ── Hide Google Translate banner/toolbar ──────────────────── */
.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-tooltip-card,
#goog-gt-tt,
.skiptranslate {
  display: none !important;
}
body {
  top: 0 !important;
}
