/* Fleet220 — Component & layout styles
 * Built on tokens.css. Each block annotated with the Blade
 * partial it maps to (partials/<name>.blade.php).
 */

/* ── Base reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

/* ── A11y: focus visible (prominent ring) ───────────────── */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible,
[data-theme="dark"] :focus-visible {
  outline-color: var(--focus-ring-on-dark);
}

/* ── A11y: skip link ────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--fg);
  color: var(--bg-elevated);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  z-index: 200;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* Skip-link target: <main tabindex="-1"> is focused programmatically when the
   skip link is activated. It is not an interactive control, so suppress the
   ring around the whole content area (links/buttons inside keep theirs). */
#main:focus { outline: none; }

/* ── Layout primitives ──────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: var(--container-wide); }
.section { padding-block: var(--section-py); }
/* Page intro (page_head): a tighter, editorial top rhythm — moderate space
   under the sticky nav, and it sits close to the section it introduces
   instead of stacking two full section paddings (avoids big empty bands). */
.section--intro { padding-top: var(--space-7); padding-bottom: 0; }
.section--intro + .section { padding-top: var(--space-6); }
.section--dark {
  background: var(--bg-inverse);
  color: var(--fg-inverse);
}
.section--surface { background: var(--bg-elevated); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg-muted);
}
.section--dark .eyebrow { color: var(--accent-300); }
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85em 1.4em;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-base);
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  min-height: 44px;  /* a11y hit area */
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: var(--accent-on);
}
.btn--primary:hover { background: var(--accent-800); }

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--fg);
}
.btn--ghost:hover { background: var(--fg); color: var(--bg-elevated); }

.section--dark .btn--ghost,
.hero .btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.3);
  color: var(--fg-inverse);
}
.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover {
  background: var(--fg-inverse);
  color: var(--ink-1000);
}

.btn--spark {
  background: var(--accent-spark);
  color: var(--ink-1000);
}
.btn--spark:hover { background: var(--accent-300); }

.btn .arrow { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Top utility bar (slim: lang + a11y link) ──────────── */
.util-bar {
  background: var(--bg-inverse);
  color: var(--fg-inverse);
  font-size: var(--fs-xs);
  padding: 0.4rem 0;
}
.util-bar .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.util-login {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: auto;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.78rem;
  text-decoration: none;
  padding: 0.25rem 0.1rem;
  transition: color var(--dur-fast);
}
.util-login:hover { color: var(--accent-400, #fff); }
.util-login svg { opacity: 0.85; }
.util-group {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.util-group__label {
  color: rgba(255,255,255,0.65);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-size: 0.7rem;
}
.util-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--fg-inverse);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: var(--fs-xs);
  min-height: 28px;
  transition: background var(--dur-fast);
}
.util-btn[aria-pressed="true"] { background: var(--accent-400); color: var(--ink-1000); border-color: var(--accent-400); }
.util-btn:hover:not([aria-pressed="true"]) { background: rgba(255,255,255,0.1); }

/* ── Accessibility floating widget (FAB + panel) ───────── */
.a11y-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 140;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-inverse);
  color: var(--fg-inverse);
  border: 2px solid var(--accent-400);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast);
}
.a11y-fab:hover { transform: scale(1.05); }
.a11y-fab:focus-visible { outline: 3px solid var(--accent-400); outline-offset: 4px; }
.a11y-fab[aria-expanded="true"] { background: var(--accent-700); }

.a11y-panel {
  position: fixed;
  right: 1rem;
  bottom: 5.5rem; /* sits above the FAB */
  z-index: 141;
  width: 320px;
  max-width: calc(100vw - 2rem);
  /* Never grow past the viewport: cap the height and scroll internally so the
     top options stay reachable on short screens. dvh handles mobile toolbars. */
  max-height: calc(100vh - 7rem);
  max-height: calc(100dvh - 7rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg-elevated);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -16px rgba(0,0,0,0.35), 0 8px 16px rgba(0,0,0,0.08);
  padding: var(--space-5);
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
/* Keep the title + close reachable while the options scroll underneath.
   Negative margins + matching padding let the sticky bar cover the panel's own
   padding edge-to-edge (no sliver of scrolling content beside/above it). */
.a11y-panel__head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg-elevated);
  margin: calc(-1 * var(--space-5)) calc(-1 * var(--space-5)) var(--space-4);
  padding: var(--space-5) var(--space-5) var(--space-3);
}
.a11y-panel[data-open="true"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.a11y-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}
.a11y-panel__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-lg);
  letter-spacing: -0.01em;
}
.a11y-panel__close {
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.a11y-panel__group {
  margin-bottom: var(--space-3);
}
.a11y-panel__group:last-child { margin-bottom: 0; }
.a11y-panel__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--fg-muted);
  margin-bottom: var(--space-2);
}
.a11y-panel__seg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 4px;
  background: var(--ink-100);
  border-radius: var(--radius-sm);
  padding: 4px;
}
.a11y-panel__seg button {
  background: transparent;
  border: 0;
  padding: 0.4rem 0.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-sm);
  border-radius: 6px;
  cursor: pointer;
  min-height: 36px;
  color: var(--fg);
}
.a11y-panel__seg button[aria-pressed="true"] {
  background: var(--bg-elevated);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.a11y-panel__link {
  display: block;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Short viewports: shrink the widget further so it fits without scrolling. */
@media (max-height: 760px) {
  .a11y-panel { padding: var(--space-4); }
  .a11y-panel__head { margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) var(--space-3); padding: var(--space-4) var(--space-4) var(--space-2); }
  .a11y-panel__group { margin-bottom: var(--space-2); }
  .a11y-panel__label { margin-bottom: 4px; }
  .a11y-panel__seg button { min-height: 34px; padding: 0.3rem 0.5rem; }
}

/* On contrast=high, ensure widget itself is legible */
:root[data-contrast="high"] .a11y-fab { background: #000; border-color: #fff; }
:root[data-contrast="high"] .a11y-panel { background: #fff; border-color: #000; }

/* ── Navigation ────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 244, 239, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-3);
}
.nav__logo { display: block; }
.nav__logo img { height: 44px; width: auto; }
.nav__primary {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  position: relative;
  padding: 0.6rem 0.85rem;
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast);
}
.nav__link:hover { background: rgba(0,0,0,0.04); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0.25rem; left: 0.85rem; right: 0.85rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ── Nav submenu (dropdown) ─────────────────────────────── */
.nav__item--has-sub { position: relative; }
.nav__link--has-sub {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav__chev {
  transition: transform var(--dur-fast);
  opacity: 0.7;
}
.nav__item--has-sub:hover .nav__chev,
.nav__item--has-sub:focus-within .nav__chev,
.nav__item--has-sub[data-open="true"] .nav__chev { transform: rotate(180deg); opacity: 1; }

.nav__sub {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 17rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--bg-elevated, #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.22), 0 4px 12px -6px rgba(0,0,0,0.10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  /* visibility flips instantly (0s) so sub-links become focusable the moment the
     menu opens — animating it made a fast Tab skip them. Opacity/transform fade. */
  transition: opacity var(--dur-fast), transform var(--dur-fast), visibility 0s;
  z-index: 50;
}
.nav__item--has-sub:hover > .nav__sub,
.nav__item--has-sub:focus-within > .nav__sub,
.nav__item--has-sub[data-open="true"] > .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* Escape collapses an open submenu even while its trigger keeps focus.
   Same specificity as the :focus-within open rule but declared after it, so it wins. */
.nav__item--has-sub.is-collapsed > .nav__sub {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
}
/* Hover bridge so the menu doesn't snap shut when crossing the gap */
.nav__sub::before {
  content: "";
  position: absolute;
  inset: -0.5rem 0 auto 0;
  height: 0.5rem;
}
.nav__sub-link {
  display: block;
  padding: 0.65rem 0.85rem;
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.nav__sub-link:hover,
.nav__sub-link:focus-visible {
  background: rgba(0,0,0,0.05);
  color: var(--accent);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.nav__cta { padding: 0.7em 1.2em; font-size: 0.95rem; }
.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

@media (max-width: 960px) {
  .nav__primary { display: none; }
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav__cta { display: none; }
  .nav[data-open="true"] .nav__primary {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: var(--space-3) var(--gutter);
  }
  .nav[data-open="true"] .nav__link { padding: 0.9rem 0.5rem; border-bottom: 1px solid var(--border); }
  .nav[data-open="true"] .nav__sub {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 var(--space-2) var(--space-3);
    min-width: 0;
  }
  .nav[data-open="true"] .nav__sub-link {
    padding: 0.7rem 0.5rem;
    font-size: 0.88rem;
    color: var(--ink-700, var(--fg));
    border-bottom: 1px dashed var(--border);
  }
  .nav[data-open="true"] .nav__chev { display: none; }
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--bg-inverse);
  color: var(--fg-inverse);
  overflow: hidden;
  padding-block: clamp(4rem, 8vw, 7rem);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(52,211,153,0.18), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(52,211,153,0.10), transparent 70%);
  pointer-events: none;
}
.hero__grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent 75%);
  pointer-events: none;
}
.hero__container { position: relative; z-index: 1; }
.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-7);
}
@media (min-width: 1024px) {
  .hero__layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: var(--space-9); }
}
.hero__eyebrow {
  color: var(--accent-300);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}
.hero__eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-400);
  box-shadow: 0 0 0 4px rgba(52,211,153,0.18);
}
.hero__title {
  /* Aligned with the internal pages' hero title (.cs-hero-light__title) */
  font-size: clamp(2.4rem, 4.6vw + 0.5rem, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin-bottom: var(--space-5);
}
.hero__title em {
  font-style: normal;
  color: var(--accent-300);
  font-weight: 500;
  font-family: var(--font-display);
}
.hero__lede {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: normal;
  font-size: var(--fs-xl);
  line-height: var(--lh-normal);
  color: rgba(255,255,255,0.78);
  max-width: 38rem;
  margin-bottom: var(--space-6);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Hero numbers panel */
.hero__stats {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
}
.hero__stat { padding-block: var(--space-3); }
.hero__stat + .hero__stat { border-top: 1px solid rgba(255,255,255,0.10); }
.hero__stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg-inverse);
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}
.hero__stat-value .unit {
  font-size: 0.5em;
  color: var(--accent-300);
  font-weight: 500;
}
.hero__stat-label {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.65);
  margin-top: var(--space-2);
  font-family: var(--font-display);
}

/* Hero variants (Tweak: image / video) */
.hero[data-variant="image"] .hero__stats,
.hero[data-variant="video"] .hero__stats { display: none; }
.hero[data-variant="numbers"] .hero__visual { display: none; }

.hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #0a1f1a, #053828 60%, #0a4d3a);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: end;
  padding: var(--space-5);
}
.hero__visual::before {
  content: "Visual placeholder · fornire foto cinematica EV in ricarica";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 1rem;
}
/* When a real image is supplied, hide the placeholder label */
.hero__visual:has(.hero__visual-img)::before { display: none; }
.hero__visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Bottom gradient to keep caption legible over photography */
.hero__visual:has(.hero__visual-img)::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0));
  pointer-events: none;
  z-index: 0;
}
.hero__visual-caption {
  position: relative;
  z-index: 1;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--fg-inverse);
  font-size: var(--fs-sm);
}

/* Marquee metrics strip below hero */
.metrics-strip {
  background: var(--bg-inverse);
  color: var(--fg-inverse);
  padding-block: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.metrics-strip__grid {
  display: grid;
  gap: var(--space-5);
  /* Column count is driven by the actual number of metrics (set inline by the
     block, capped 2 on mobile / 4 on desktop) so fewer than 4 fill the full
     width evenly instead of leaving an empty column. Falls back to 2/4. */
  grid-template-columns: repeat(var(--metrics-cols-sm, 2), minmax(0, 1fr));
}
@media (min-width: 768px) {
  .metrics-strip__grid { grid-template-columns: repeat(var(--metrics-cols, 4), minmax(0, 1fr)); }
}
.metric {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.metric__value {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--accent-300);
  letter-spacing: -0.02em;
}
.metric__label {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.7);
}

/* ── Section header ────────────────────────────────────── */
.section-head {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  margin-bottom: var(--space-7);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr); }
}
.section-head__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-head__lede {
  font-size: var(--fs-lg);
  color: var(--fg-muted);
}
.section--dark .section-head__lede { color: rgba(255,255,255,0.7); }

/* ── ODOS spotlight ────────────────────────────────────── */
.odos {
  position: relative;
  background: var(--bg-inverse);
  color: var(--fg-inverse);
  overflow: hidden;
}
.odos__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(52,211,153,0.16), transparent 60%);
  pointer-events: none;
}
.odos__layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-7);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 960px) {
  .odos__layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-9); }
}
.odos__copy h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  margin-bottom: var(--space-4);
}
.odos__features {
  list-style: none;
  margin: var(--space-5) 0 var(--space-6);
  padding: 0;
  display: grid;
  gap: var(--space-3);
}
.odos__features li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--space-3);
  align-items: start;
  color: rgba(255,255,255,0.85);
}
.odos__features li svg { color: var(--accent-400); margin-top: 0.25rem; }

.odos__card {
  position: relative;
  aspect-ratio: 1.586 / 1; /* card ratio */
  max-width: 30rem;
  margin-inline: auto;
  border-radius: 22px;
  padding: var(--space-6);
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(110, 231, 183, 0.4), transparent 60%),
    linear-gradient(135deg, #052e23, #0a523f 60%, #10a380);
  color: var(--fg-inverse);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,0.15);
}
.odos__card-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-2xl);
  letter-spacing: -0.02em;
}
.odos__card-chip {
  width: 48px; height: 36px;
  border-radius: 6px;
  background: linear-gradient(135deg, #c8b76a, #e4d28c 60%, #a08c4a);
  position: relative;
}
.odos__card-chip::before, .odos__card-chip::after {
  content: ""; position: absolute; left: 4px; right: 4px;
  height: 1px; background: rgba(0,0,0,0.25);
}
.odos__card-chip::before { top: 30%; }
.odos__card-chip::after { top: 60%; }
.odos__card-num {
  font-family: var(--font-mono);
  font-size: var(--fs-xl);
  letter-spacing: 0.08em;
}
.odos__card-foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.odos__card-visa {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: var(--fs-xl);
  letter-spacing: -0.02em;
}

/* Image variant — real card artwork replaces the mock */
.odos__card--image {
  padding: 0;
  background: transparent;
  border: none;
  overflow: hidden;
}
.odos__card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
/* Whole-image variant: show the card image in full (even if vertical), no crop/frame. */
.odos__card--bare {
  aspect-ratio: auto;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}
.odos__card--bare .odos__card-img { height: auto; object-fit: contain; border-radius: 0; }

/* ── Services ──────────────────────────────────────────── */
.services { background: var(--bg-elevated); }
.services__grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) { .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .services__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.service-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 320px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-300);
}
.service-card__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-100);
  color: var(--accent-800);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.service-card__title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.service-card__lede {
  color: var(--fg-muted);
  font-size: var(--fs-base);
  flex: 1;
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}
.service-card__num {
  position: absolute;
  top: var(--space-4);
  right: var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-400);
}

/* Service variant: accordion */
.services[data-variant="accordion"] .services__grid { display: none; }
.services[data-variant="accordion"] .services__accordion { display: block; }
.services[data-variant="tabs"] .services__grid { display: none; }
.services[data-variant="tabs"] .services__tabs { display: block; }
.services__accordion, .services__tabs { display: none; }

.acc__item {
  border-top: 1px solid var(--border);
  padding-block: var(--space-4);
}
.acc__item:last-child { border-bottom: 1px solid var(--border); }
.acc__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: transparent;
  border: 0;
  padding: var(--space-3) 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-2xl);
  letter-spacing: -0.01em;
}
.acc__trigger .acc__icon {
  transition: transform var(--dur-base) var(--ease-out);
  color: var(--accent);
}
.acc__trigger[aria-expanded="true"] .acc__icon { transform: rotate(45deg); }
.acc__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-base) var(--ease-in-out);
}
.acc__panel-inner {
  padding: var(--space-3) 0 var(--space-4);
  color: var(--fg-muted);
  max-width: 56rem;
  font-size: var(--fs-lg);
}

/* Service variant: tabs */
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-6);
  padding: 0;
  list-style: none;
}
.tabs__btn {
  background: transparent;
  border: 0;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-base);
  cursor: pointer;
  color: var(--fg-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs__btn[aria-selected="true"] {
  color: var(--fg);
  border-bottom-color: var(--accent);
}
.tabs__panel[hidden] { display: none; }
.tabs__panel {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 800px) { .tabs__panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ── B Corp / About ────────────────────────────────────── */
.about {
  background: var(--bg);
}
.about__layout {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 960px) {
  .about__layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-9); align-items: center; }
}
.about__copy h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: var(--space-4); }
/* Body paragraphs only — exclude the eyebrow pill, which is also a direct <p>
   child here and would otherwise inherit --fs-lg (making it larger than the
   pills in every other section). */
.about__copy p:not(.eyebrow) { font-size: var(--fs-lg); color: var(--fg-muted); margin-bottom: var(--space-4); }
.about__bcorp {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-4);
  text-align: center;
  align-content: center;
}
.about__bcorp-logo {
  display: block;
  width: 72px;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}
.about__bcorp-stat {
  display: grid;
  gap: var(--space-1);
}
.about__bcorp-eyebrow {
  color: var(--fg-muted);
  margin: 0;
}
.about__bcorp-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.about__bcorp-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  display: inline-flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.about__bcorp-claim {
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  color: var(--fg-muted);
  max-width: 28ch;
  margin-inline: auto;
}
.about__bcorp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-self: center;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border-strong);
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.about__bcorp-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.about__bcorp-link svg { flex: none; }

/* ── Testimonials ──────────────────────────────────────── */
.testimonials { background: var(--bg-elevated); }
.testimonials__grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 800px) { .testimonials__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.quote {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  font-size: var(--fs-lg);
  line-height: var(--lh-normal);
}
.quote__text { color: var(--fg); flex: 1; }
.quote__text::before {
  content: "“";
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.6;
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.quote__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-top: 1px solid var(--border);
  padding-top: var(--space-3);
}
.quote__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink-100);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--ink-700);
}
.quote__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-base);
}
.quote__role {
  font-size: var(--fs-sm);
  color: var(--fg-muted);
}
.quote__logo { max-height: 48px; max-width: 150px; width: auto; object-fit: contain; }

/* ── Partner logo wall ─────────────────────────────────── */
.partners { background: var(--bg); }
.partners__grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
@media (min-width: 600px) { .partners__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .partners__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .partners__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.partner {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  aspect-ratio: 2 / 1;
  display: grid;
  place-items: center;
  padding: var(--space-4);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-base);
  letter-spacing: -0.01em;
  color: var(--ink-500);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.partner:hover { color: var(--fg); background: var(--bg-elevated); }
.partner__logo { max-height: 52px; max-width: 78%; width: auto; object-fit: contain; }

/* Partner logo marquee — two rows, opposite directions, pause on hover. */
.partners__marquee { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-6); }
.partners__row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.partners__marquee { position: relative; }
.partners__track { display: flex; align-items: center; width: max-content; will-change: transform; animation: partners-marquee 120s linear infinite; }
.partners__row--rev .partners__track { animation-delay: -60s; }
/* Pause the scroll on hover, on keyboard focus within the strip, and when the
   user presses the Pause control (WCAG 2.2.2 Pause, Stop, Hide). */
.partners__marquee:hover .partners__track,
.partners__marquee:focus-within .partners__track,
.partners__marquee.is-paused .partners__track { animation-play-state: paused; }
/* Pause/Play control. */
.partners__toggle {
  position: absolute; top: -2.9rem; right: var(--gutter);
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--bg-elevated, #fff); color: var(--ink-700, var(--fg));
  border: 1px solid var(--border); border-radius: 999px;
  cursor: pointer;
}
.partners__toggle:hover { color: var(--fg); }
.partners__toggle-ic--play { display: none; }
.partners__toggle[aria-pressed="true"] .partners__toggle-ic--pause { display: none; }
.partners__toggle[aria-pressed="true"] .partners__toggle-ic--play { display: inline; }
@keyframes partners-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.partner-logo { flex: 0 0 auto; width: 170px; height: 84px; margin-right: var(--space-6); padding: 12px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.partner-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; object-position: center; display: block; margin: auto; mix-blend-mode: multiply; filter: grayscale(1); opacity: 0.65; transition: filter var(--dur-fast), opacity var(--dur-fast); }
.partner-logo:hover img { filter: grayscale(0); opacity: 1; }
.partner-logo__text { font-family: var(--font-display); font-weight: 700; color: var(--ink-500); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .partners__track { animation: none; }
  .partners__row { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .partners__toggle { display: none; } /* nothing to pause when motion is reduced */
}

/* ── News ──────────────────────────────────────────────── */
.news { background: var(--bg-elevated); }
.news__grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 800px) { .news__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.news-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
  group: news;
}
.news-card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--ink-100), var(--ink-200));
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: transform var(--dur-base) var(--ease-out);
}
.news-card:hover .news-card__media { transform: scale(1.02); }
.news-card__media.has-img { background-size: cover; background-position: center; }
.news-card__media.has-img::after { content: none; }
.news-card__media::after {
  content: attr(data-placeholder);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  color: var(--ink-500);
}
.news-card__meta {
  display: flex;
  gap: var(--space-3);
  font-size: var(--fs-xs);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--fg-muted);
}
.news-card__title {
  font-size: var(--fs-xl);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.news-card:hover .news-card__title { text-decoration: underline; text-underline-offset: 4px; }

/* ── Final CTA + form ──────────────────────────────────── */
.cta-final {
  background: var(--bg-inverse);
  color: var(--fg-inverse);
  position: relative;
  overflow: hidden;
}
.cta-final__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(52,211,153,0.18), transparent 70%);
  pointer-events: none;
}
.cta-final__layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-7);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .cta-final__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-9); align-items: start; }
}
.cta-final__copy h2 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  margin-bottom: var(--space-4);
}
.cta-final__copy p { font-size: var(--fs-lg); color: rgba(255,255,255,0.75); max-width: 32rem; }
.cta-final__contacts {
  display: grid; gap: var(--space-3);
  margin-top: var(--space-6);
}
.cta-final__contact {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  font-size: var(--fs-base);
  color: rgba(255,255,255,0.9);
}
.cta-final__contact a { color: var(--accent-300); text-decoration: underline; text-underline-offset: 3px; }

.form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-4);
}
.form__row { display: grid; gap: var(--space-2); }
.form__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--fg-inverse);
}
.form__label .req { color: var(--accent-300); }
.form__required-note { margin: 0; font-size: var(--fs-xs); color: rgba(255,255,255,0.72); }
.form__required-note .req { color: var(--accent-300); }
.form__hint { font-size: var(--fs-xs); color: rgba(255,255,255,0.72); }
/* Honeypot: kept in the DOM (bots fill it) but out of sight and off the tab
   order for humans. Not display:none, so headless bots still see it. */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__input, .form__select, .form__textarea {
  width: 100%;
  font: inherit;
  background: var(--bg-inverse);
  border: 1px solid rgba(255,255,255,0.5); /* ≥ 3:1 non-text contrast vs field (WCAG 1.4.11) */
  color: var(--fg-inverse);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  min-height: 44px;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.form__textarea { min-height: 110px; resize: vertical; }
.form__input:hover, .form__select:hover, .form__textarea:hover { border-color: rgba(255,255,255,0.7); }
.form__input:focus-visible, .form__select:focus-visible, .form__textarea:focus-visible {
  outline: 3px solid var(--accent-300);
  outline-offset: 2px;
  border-color: var(--accent-300);
}
.form__check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--space-3);
  align-items: start;
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.85);
}
.form__check input {
  width: 22px; height: 22px;
  accent-color: var(--accent-400);
  margin-top: 2px;
}
.form__submit { justify-self: start; }
.form__success {
  background: rgba(52,211,153,0.12);
  border: 1px solid var(--accent-400);
  color: var(--accent-200);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: var(--fs-base);
}
.form__error {
  background: rgba(248,113,113,0.12);
  border: 1px solid #f87171;
  color: #fecaca;
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: var(--fs-base);
}

/* ── Stacco morbido: striscia-ponte sezione blu → footer ── */
/* Usare quando l'ultima sezione e il footer hanno entrambe sfondo blu/navy contiguo. */
.cs-edge { display: block; height: clamp(64px, 9vw, 120px); background: linear-gradient(to bottom, var(--accent-500), var(--bg-inverse)); }

/* ── Post detail (news / press release) ────────────────── */
.post__container { max-width: 48rem; }
.post__back {
  display: inline-block;
  margin-bottom: var(--space-5);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.post__back:hover { text-decoration: underline; text-underline-offset: 3px; }
.post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--fg-muted);
  margin-bottom: var(--space-3);
}
.post__kind, .post__tag {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: var(--fs-xs);
  color: var(--accent-700);
}
.post__title {
  font-size: clamp(2rem, 3.5vw + 0.5rem, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
  margin-bottom: var(--space-6);
}
.post__cover {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-7);
}
.post__body { font-size: var(--fs-lg); }
.prose { line-height: var(--lh-loose); color: var(--ink-900); }
.prose > * + * { margin-top: var(--space-4); }
.prose h2, .prose h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; margin-top: var(--space-6); }
.prose h2 { font-size: var(--fs-3xl); }
.prose h3 { font-size: var(--fs-2xl); }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.prose a { color: var(--accent-700); text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: var(--space-2); }
/* Break long unbroken strings (emails, URLs) so they don't force horizontal scroll at 320px. */
.prose, .wp-block-post-content { overflow-wrap: break-word; }

/* ── News / blog article body ──────────────────────────────
   The post-content wrapper (.single .entry-content) previously had no typographic styles,
   so articles used browser defaults (cramped line-height, no rhythm). Give it the
   same readable treatment as .prose: comfortable measure, generous line spacing
   and clear vertical rhythm between blocks. */
.single .entry-content {
  font-size: var(--fs-lg);
  line-height: 1.75;
  color: var(--ink-900);
  max-width: 44rem;      /* readable line length (~70–75 chars) */
  margin-inline: auto;
}
.single .entry-content > * + * { margin-top: var(--space-5); }   /* rhythm between blocks */
.single .entry-content p { margin: 0; }
.single .entry-content h2,
.single .entry-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-top: var(--space-8);              /* extra air before a new section */
  margin-bottom: 0;                         /* gap below comes from the next block's top margin */
}
.single .entry-content h2 { font-size: var(--fs-2xl); }
.single .entry-content h3 { font-size: var(--fs-xl); }
.single .entry-content a { color: var(--accent-700); text-decoration: underline; text-underline-offset: 2px; }
.single .entry-content ul, .single .entry-content ol { padding-left: 1.4rem; }
.single .entry-content li + li { margin-top: var(--space-2); }
.single .entry-content figure { margin: var(--space-7) 0; }
.single .entry-content img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.single .entry-content blockquote {
  margin: var(--space-6) 0;
  padding-left: var(--space-4);
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: var(--fg-muted);
}

/* ── Single article: wide header (breadcrumbs, title, cover), narrow body ── */
.article-head { padding-top: var(--space-7); padding-bottom: 0; }
.article-body { padding-top: var(--space-8); }

/* Breadcrumbs */
.breadcrumbs { margin-bottom: var(--space-5); }
.breadcrumbs__list {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  list-style: none; margin: 0; padding: 0;
  font-family: var(--font-display); font-size: var(--fs-sm);
}
.breadcrumbs__item { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--fg-muted); }
.breadcrumbs__item + .breadcrumbs__item::before { content: "\203A"; opacity: 0.55; } /* › */
.breadcrumbs__item a { color: var(--fg-muted); text-decoration: none; }
.breadcrumbs__item a:hover { color: var(--accent-700); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumbs__item [aria-current="page"] { color: var(--fg); font-weight: 600; }

/* Title — full container width, clearly separated from the body below */
.article-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0 0 var(--space-6);
  color: var(--fg);
  text-wrap: balance;
}

/* Cover — full container width, landscape 16:9 (standard blog hero ratio).
   object-fit: cover crops any source (square/portrait) to a consistent banner. */
.article-cover { margin: 0; }
.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  background: var(--bg-inverse);
  color: var(--fg-inverse);
  padding-block: var(--space-8) var(--space-5);
}
.footer__top {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 800px) {
  .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 500px) {
  .footer__top { grid-template-columns: minmax(0, 1fr); }
}
.footer__brand img { height: 50px; filter: brightness(0) invert(1); }
.footer__tagline { color: rgba(255,255,255,0.6); font-size: var(--fs-sm); max-width: 22rem; margin-top: var(--space-4); }
.footer__col h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--accent-300);
  margin-bottom: var(--space-4);
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.footer__col a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: var(--fs-base);
  transition: color var(--dur-fast);
}
.footer__col a:hover { color: var(--fg-inverse); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-5);
  font-size: var(--fs-xs);
  /* 0.7 over --surface-dark (#003a64) ≈ 6.3:1 — passes WCAG 1.4.3 AA.
     0.5 was 4.12:1 and failed on this 12px copyright text. */
  color: rgba(255,255,255,0.7);
}
.footer__legal { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.footer__legal a { color: rgba(255,255,255,0.7); text-decoration: underline; text-underline-offset: 3px; }

/* ── Reveal animation ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Tweaks panel ──────────────────────────────────────── */
.tweaks {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 150;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5);
  width: 320px;
  max-width: calc(100vw - 2rem);
  display: none;
  font-family: var(--font-body);
}
.tweaks[data-open="true"] { display: block; }
.tweaks__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}
.tweaks__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-lg);
}
.tweaks__close {
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  min-width: 32px; min-height: 32px;
}
.tweak {
  margin-bottom: var(--space-4);
}
.tweak__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-2);
  color: var(--fg-muted);
}
.tweak__seg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 4px;
  background: var(--ink-100);
  border-radius: var(--radius-sm);
  padding: 4px;
}
.tweak__seg button {
  background: transparent;
  border: 0;
  padding: 0.5rem;
  font-size: var(--fs-sm);
  font-family: var(--font-display);
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  min-height: 36px;
}
.tweak__seg button[aria-pressed="true"] {
  background: var(--bg-elevated);
  color: var(--fg);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}
.tweak__swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}
.tweak__swatch {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
  cursor: pointer;
  background: var(--bg-elevated);
  min-height: 44px;
}
.tweak__swatch[aria-pressed="true"] { border-color: var(--fg); }
.tweak__swatch-dots {
  display: flex; gap: 2px; height: 100%;
}
.tweak__swatch-dots span { flex: 1; border-radius: 2px; }


/* ── Heavy logistics / myevtruck ────────────────────────── */
.heavy {
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);    /* clean white surface — contrasts with the navy ODOS below */
  color: var(--fg);
  --heavy-sub:  #2a7ab0;             /* mid-blue, AA on white */
  --heavy-card: #d6e8f3;             /* very light blue card surface */
}
.heavy .eyebrow { color: #096c8c; } /* was --heavy-sub #2a7ab0 ≈ 3.9:1; #096c8c ≈ 5.4:1 (WCAG 1.4.3) */
.heavy__layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: var(--space-7);
  align-items: stretch;
}
@media (max-width: 900px) {
  .heavy__layout { grid-template-columns: 1fr; }
}
.heavy__copy {
  padding-block: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-self: center;
  order: 2;
}
.heavy__visual {
  order: 1;
}
@media (max-width: 900px) {
  .heavy__copy { order: 2; }
  .heavy__visual { order: 1; }
}
.heavy__eyebrow {
  color: var(--heavy-sub);
  margin: 0;
}
.heavy__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 22ch;
}
.heavy__sub {
  /* Match the body paragraph used in the "chi siamo" block (.about__copy p):
     muted grey, body font, regular weight — not the blue display sub-heading. */
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-lg);
  line-height: var(--lh-normal);
  max-width: 40ch;
  margin: 0;
}
.heavy__card {
  background: var(--heavy-card);
  color: #003a64;
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-5);
  font-style: italic;
  max-width: 38rem;
}
.heavy__card-lede {
  margin: 0 0 var(--space-3) 0;
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
}
.heavy__list {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.heavy__list li {
  font-size: var(--fs-base);
  line-height: var(--lh-snug);
}
.heavy__list strong { font-weight: 700; font-style: italic; }
.heavy__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.heavy__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 480px;
  box-shadow: var(--shadow-lg);
}
.heavy__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* --- Inline edit mode (Fase 3) --- */
/* When the admin bar is present (admins only), offset the page + the sticky
   nav so the fixed bar never overlaps them. Scoped via :has() so public
   visitors are unaffected. */
/* Renamed from `.admin-bar` → `.fleet220-inline-adminbar`: the bare `.admin-bar`
   class collides with the `admin-bar` class WordPress adds to <body> for
   logged-in users, which turned the whole page into a fixed 40px black bar
   ("page blocked + black side"). The Laravel inline-editor bar this styled is
   not used in WP (WordPress renders its own #wpadminbar). */
body:has(.fleet220-inline-adminbar) { padding-top: 40px; }
body:has(.fleet220-inline-adminbar) .nav { top: 40px; }

.fleet220-inline-adminbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  box-sizing: border-box;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.9rem;
  background: #111318;
  color: #f5f4ef;
  font-size: 0.8rem;
  line-height: 1.2;
  font-family: system-ui, -apple-system, sans-serif;
}
.admin-bar__brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.admin-bar__mode {
  opacity: 0.75;
}
.admin-bar__mode.is-editing {
  color: #ffd166;
  opacity: 1;
}
.admin-bar__btn {
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(245, 244, 239, 0.35);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
}
.admin-bar__btn:hover {
  border-color: rgba(245, 244, 239, 0.7);
}
.admin-bar__btn--primary {
  background: #ffd166;
  color: #111318;
  border-color: #ffd166;
  font-weight: 600;
}
.admin-bar__status {
  margin-left: auto;
  opacity: 0.8;
}

.inline-editable {
  outline-offset: 2px;
}
.inline-editable:hover,
.inline-editable:focus {
  outline: 1px dashed #ffd166;
  outline-offset: 2px;
}

/* Editable non-text fields (only present in edit mode: the directive emits
   nothing on the public site). */
[data-inline-field] { cursor: pointer; }
[data-inline-field="url"]:hover,
[data-inline-field="url"]:focus {
  outline: 1px dashed #ffd166;
  outline-offset: 2px;
}
[data-inline-field="image"] {
  outline: 2px dashed #ffd166;
  outline-offset: -2px;
}
[data-inline-field="image"]:hover { outline-color: #f0b429; }

/* Link-URL editor popover */
.inline-url-popover {
  position: absolute;
  z-index: 300;
  min-width: 18rem;
  max-width: min(90vw, 24rem);
  background: #fff;
  color: var(--ink-1000);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
}
.inline-url-popover label { display: block; font-weight: 600; margin-bottom: var(--space-2); }
.inline-url-popover input {
  display: block;
  width: 100%;
  margin-top: var(--space-1);
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
}
.inline-url-popover input:focus-visible { outline: 3px solid var(--accent-700); outline-offset: 1px; }
.inline-url-popover__actions { display: flex; gap: var(--space-2); margin-top: var(--space-3); }
.inline-url-popover__actions button {
  font: inherit;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  cursor: pointer;
}
.inline-url-popover__actions button:first-child { background: var(--accent-700); color: #fff; border-color: var(--accent-700); }

/* Block add/delete bars (edit mode only) */
.inline-block-bar {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  align-items: center;
  padding: var(--space-2);
  position: relative;
  z-index: 50;
}
.inline-block-bar button {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px dashed #f0b429;
  background: rgba(255, 209, 102, 0.15);
  color: var(--ink-900);
  cursor: pointer;
}
.inline-block-bar button:hover { background: rgba(255, 209, 102, 0.35); }
.inline-block-bar button:focus-visible { outline: 3px solid var(--accent-700); outline-offset: 2px; }

.inline-block-menu {
  position: absolute;
  z-index: 300;
  min-width: 13rem;
  max-height: 60vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
}
.inline-block-menu button {
  text-align: left;
  font: inherit;
  font-size: var(--fs-sm);
  padding: 0.5rem 0.7rem;
  border: 0;
  background: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ink-1000);
}
.inline-block-menu button:hover { background: var(--ink-50); }

/* ── FAQ (fleet220/faq) ─────────────────────────────────── */
/* Native <details>/<summary> accordion — styled to match the .acc__* look. */
.faq__list { margin-top: var(--space-7); }
.faq__item {
  border-top: 1px solid var(--border);
}
.faq__item:last-child { border-bottom: 1px solid var(--border); }
.faq__q {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-2xl);
  letter-spacing: -0.01em;
  color: var(--fg);
}
/* Remove the native disclosure marker (both engines). */
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__icon {
  flex: none;
  color: var(--accent);
  transition: transform var(--dur-base) var(--ease-out);
}
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a {
  padding: 0 0 var(--space-5);
  color: var(--fg-muted);
  max-width: 56rem;
  font-size: var(--fs-lg);
}
.faq__a a { color: var(--accent); text-decoration: underline; }
.faq__a p:first-child { margin-top: 0; }
.faq__a p:last-child { margin-bottom: 0; }
.faq__q:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Editor-only affordances (in-canvas repeater rows). */
.faq__item--edit { padding-block: var(--space-4); }
.faq__item--edit .faq__row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.faq__item--edit .faq__q {
  padding: 0;
  cursor: text;
  flex: 1;
}
.faq__item--edit .faq__a { padding: var(--space-3) 0 0; }
.faq__controls {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-top: var(--space-3);
  flex-wrap: wrap;
}

/* ── Accordion + media (fleet220/accordion-media) ─────────────── */
.acc-media__layout { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 900px) {
  .acc-media__layout--has-media {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
    gap: var(--space-9);
    align-items: center;
  }
  /* Image on the left: pull the accordion after the media column. */
  .acc-media__layout--rev .acc-media__accordion { order: 2; }
}
.acc-media__accordion { display: block; }
.acc-media__item { border-bottom: 1px solid var(--border); }
.acc-media__item:first-child { border-top: 1px solid var(--border); }
.acc-media__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  color: var(--fg);
}
.acc-media__q::-webkit-details-marker { display: none; }
.acc-media__q-text { flex: 1; }
.acc-media__icon {
  flex: none;
  display: inline-flex;
  color: var(--accent-700);
  transition: transform 0.2s ease;
}
details[open] > .acc-media__q .acc-media__icon { transform: rotate(45deg); }
.acc-media__a {
  padding: 0 0 var(--space-5);
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 48ch;
}
.acc-media__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.acc-media__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* "Free" image: whole image, no frame/crop (good for transparent PNGs). */
.acc-media__media--bare { border-radius: 0; overflow: visible; box-shadow: none; aspect-ratio: auto; background: transparent; }
.acc-media__media--bare img { height: auto; object-fit: contain; }

/* ── FAQ hub (fleet220/faq-hub): search + category chips + accordion ───── */
/* Controls are progressive enhancement — hidden until view.js marks the block ready. */
.faqhub:not(.is-ready) .faqhub__controls { display: none; }
.faqhub__controls { margin: var(--space-7) 0 var(--space-5); display: grid; gap: var(--space-4); }
.faqhub__search { position: relative; }
.faqhub__search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--fg-muted); pointer-events: none; }
.faqhub__search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  font: inherit;
  font-size: var(--fs-base);
  color: var(--fg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}
.faqhub__search-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.faqhub__chips { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.faqhub__chip {
  flex: none;
  cursor: pointer;
  padding: 0.4rem 0.9rem;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--fg-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}
.faqhub__chip:hover { color: var(--fg); border-color: var(--fg-muted); }
.faqhub__chip.is-active { color: #fff; background: var(--accent); border-color: var(--accent); }
.faqhub__cat { margin-top: var(--space-9); }
.faqhub__results > .faqhub__cat:first-of-type { margin-top: var(--space-5); }
.faqhub__cat[hidden] { display: none; }
/* Category headers stand out from the question rows: accent bar + bigger title + divider. */
.faqhub__cat-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xl);
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0 0 var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}
.faqhub__cat-title::before {
  content: "";
  flex: none;
  width: 0.32rem;
  align-self: stretch;
  min-height: 1.25em;
  border-radius: 3px;
  background: var(--accent);
}
.faqhub__cat .faq__list { margin-top: 0; }
.faqhub__item[hidden] { display: none; }
.faqhub__empty { color: var(--fg-muted); text-align: center; padding: var(--space-7) 0; }
@media (max-width: 640px) {
  .faqhub__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
  .faqhub__chips::-webkit-scrollbar { display: none; }
}

/* ── Certifications (fleet220/certifications): logo + name + description cards ── */
.certs__grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; margin-top: var(--space-7); }
@media (min-width: 560px) { .certs__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .certs__grid { grid-template-columns: repeat(4, 1fr); } }
.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
}
.cert-card__logo { display: flex; align-items: center; justify-content: center; height: 84px; margin-bottom: var(--space-2); }
.cert-card__logo img { max-height: 84px; max-width: 100%; width: auto; object-fit: contain; }
.cert-card__name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); color: var(--fg); margin: 0; }
.cert-card__desc { font-size: var(--fs-sm); color: var(--fg-muted); line-height: var(--lh-snug); margin: 0; }

/* Visually-hidden utility (screen-reader-only) — used for live status regions. */
.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;
}
/* "(PDF)" tag appended to footer document links. */
/* Inherit the footer link colour (dimming it dropped contrast below 4.5:1). */
.footer .link-pdf { font-size: 0.85em; }
