/* ===========================================================
 * Média34 — custom theme stylesheet
 * Design System: Mille Miglia Heritage (Tinos + PT Serif)
 * Palette: deep red #9b0000 (competitor) + warm amber + cream
 * =========================================================== */

:root {
  --b86-primary:    #9b0000;
  --b86-accent:     #c9a04a;
  --b86-text:       #1a0a05;
  --b86-text-soft:  #6b3a1f;
  --b86-bg:         #FBF7EE;
  --b86-surface:    #FFFFFF;
  --b86-line:       #e8dbc0;
  --b86-shadow:     0 8px 24px rgba(26, 10, 5, 0.08);
  --b86-shadow-lg:  0 18px 48px rgba(26, 10, 5, 0.15);

  --b86-font-headings: "Tinos", "Times New Roman", Georgia, serif;
  --b86-font-body:     "PT Serif", "Georgia", "Times New Roman", serif;

  --b86-content-w:  1240px;
  --b86-radius:     4px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--b86-bg);
  color: var(--b86-text);
  font-family: var(--b86-font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--b86-primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: #7a0000; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--b86-font-headings);
  font-weight: 700;
  color: var(--b86-text);
  line-height: 1.25;
  letter-spacing: -0.005em;
}

/* === MAIN: NO GAP UNDER HEADER === */
main, .b86-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
  min-height: 50vh;
}

/* === LAYOUT CONTAINER === */
.b86-wrap, .b86-container {
  max-width: var(--b86-content-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* =========================================================
 * HEADER — logo-left-menu-center-cta-right (CTA disabled)
 * ========================================================= */
.b86-header {
  background: var(--b86-surface);
  border-bottom: 3px solid var(--b86-primary);
  position: sticky;
  top: 0;
  z-index: 800;
  box-shadow: 0 2px 12px rgba(26, 10, 5, 0.04);
}
.b86-header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.75rem;
  max-width: var(--b86-content-w);
  margin: 0 auto;
  padding: .85rem 1.25rem;
}
.b86-brand-link { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.b86-brand-logo { height: 44px; width: auto; max-width: 200px; }
.b86-brand-name {
  font-family: var(--b86-font-headings);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--b86-text);
  letter-spacing: -.005em;
  line-height: 1;
  /* Casing style B = Title Case, no text-transform */
}

/* DESKTOP nav — centered after brand */
.b86-nav-desktop { display: none; flex: 1; }
.b86-nav-desktop-list,
.b86-nav-desktop-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.b86-nav-desktop-list li { position: relative; }
.b86-nav-desktop-list a {
  color: var(--b86-text);
  font-family: var(--b86-font-headings);
  font-weight: 700;
  font-size: .95rem;
  padding: .45rem .15rem;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.b86-nav-desktop-list a:hover,
.b86-nav-desktop-list .current-menu-item > a,
.b86-nav-desktop-list .current-cat > a {
  color: var(--b86-primary);
  border-bottom-color: var(--b86-primary);
}

@media (min-width: 1024px) {
  .b86-nav-desktop { display: flex; }
  .b86-burger { display: none !important; }
}

/* MEGA MENU — layout B (grid 3 columns of mini-cards) */
.b86-mega-trigger { position: relative; }
.b86-mega {
  display: none;
  position: absolute;
  left: 50%;
  top: calc(100% + .65rem);
  transform: translateX(-50%);
  width: min(820px, 92vw);
  background: var(--b86-surface);
  border: 1px solid var(--b86-line);
  border-top: 4px solid var(--b86-primary);
  box-shadow: var(--b86-shadow-lg);
  padding: 1.25rem;
  z-index: 900;
  border-radius: 0 0 var(--b86-radius) var(--b86-radius);
}
.b86-mega-trigger:hover .b86-mega,
.b86-mega-trigger:focus-within .b86-mega { display: block; }
.b86-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.b86-mega-card { display: block; color: var(--b86-text); text-decoration: none; border: 1px solid var(--b86-line); border-radius: var(--b86-radius); overflow: hidden; background: var(--b86-bg); transition: transform .2s ease, box-shadow .2s ease; }
.b86-mega-card:hover { transform: translateY(-3px); box-shadow: var(--b86-shadow); }
.b86-mega-card-img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--b86-line); }
.b86-mega-card-body { padding: .65rem .75rem .85rem; }
.b86-mega-card-title { font-family: var(--b86-font-headings); font-size: .95rem; line-height: 1.3; margin: 0 0 .35rem; color: var(--b86-text); }
.b86-mega-card-date { font-size: .75rem; color: var(--b86-text-soft); letter-spacing: .04em; text-transform: uppercase; margin: 0; }
.b86-mega-empty { grid-column: 1 / -1; text-align: center; padding: 1rem .5rem; color: var(--b86-text-soft); }
.b86-mega-empty a { color: var(--b86-primary); font-weight: 700; }

@media (max-width: 1023px) { .b86-mega { display: none !important; } }

/* BURGER (mobile only) */
.b86-burger {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: .35rem;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--b86-text);
}
.b86-burger svg { width: 24px; height: 24px; }

/* MOBILE drawer — HIDDEN by default, .is-open in mobile only */
.b86-nav-mobile { display: none; }
@media (max-width: 1023px) {
  .b86-nav-mobile.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 86%;
    max-width: 380px;
    background: #ffffff;
    padding: 4.5rem 1.5rem 2rem;
    z-index: 9998;
    overflow-y: auto;
    box-shadow: -12px 0 36px rgba(26, 10, 5, 0.28);
  }
  .b86-nav-mobile-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .b86-nav-mobile-list li { border-bottom: 1px solid var(--b86-line); }
  .b86-nav-mobile-list a {
    display: block;
    padding: 1rem .25rem;
    color: #1a0a05;
    font-family: var(--b86-font-headings);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
  }
  .b86-nav-mobile-list a:hover { color: var(--b86-primary); }
  .b86-nav-mobile-close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: #1a0a05;
    font-size: 1.6rem;
    line-height: 1;
    padding: .35rem .55rem;
  }
  .b86-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 10, 5, 0.55);
    z-index: 9990;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }
  .b86-nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }
}

/* =========================================================
 * HERO — latest-edition style
 * Editorial classic, no overlay (image only since no video)
 * ========================================================= */
.b86-hero {
  position: relative;
  background: var(--b86-surface);
  border-bottom: 1px solid var(--b86-line);
  overflow: hidden;
}
.b86-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: var(--b86-content-w);
  margin: 0 auto;
  min-height: 480px;
}
.b86-hero-text {
  padding: 3.5rem 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.b86-hero-edition {
  font-family: var(--b86-font-headings);
  font-style: italic;
  font-weight: 400;
  font-size: .95rem;
  color: var(--b86-primary);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin: 0 0 .85rem;
}
.b86-hero-title {
  font-family: var(--b86-font-headings);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 1.1rem;
  color: var(--b86-text);
}
.b86-hero-sub {
  font-family: var(--b86-font-body);
  font-size: 1.1rem;
  color: var(--b86-text-soft);
  line-height: 1.55;
  margin: 0 0 1.75rem;
  max-width: 32rem;
}
.b86-hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; }
.b86-hero-bg-wrap {
  position: relative;
  min-height: 480px;
  background: var(--b86-line);
}
.b86-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.b86-hero-stamp {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: var(--b86-primary);
  color: #fff;
  font-family: var(--b86-font-headings);
  font-style: italic;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  padding: .4rem .85rem;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .b86-hero-grid { grid-template-columns: 1fr; }
  .b86-hero-text { padding: 2.25rem 1.25rem; order: 2; }
  .b86-hero-bg-wrap { order: 1; min-height: 280px; }
}

/* =========================================================
 * EDITORIAL BLOCK — 400-700 words SEO (after hero)
 * ========================================================= */
.b86-editorial {
  background: var(--b86-bg);
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--b86-line);
}
.b86-editorial-inner { max-width: 920px; margin: 0 auto; padding: 0 1.25rem; }
.b86-editorial-eyebrow {
  font-family: var(--b86-font-headings);
  font-style: italic;
  font-size: .95rem;
  color: var(--b86-primary);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin: 0 0 .65rem;
}
.b86-editorial h2 {
  font-family: var(--b86-font-headings);
  font-size: 2.2rem;
  margin: 0 0 1.25rem;
  line-height: 1.15;
  color: var(--b86-text);
}
.b86-editorial p {
  font-family: var(--b86-font-body);
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--b86-text);
  margin: 0 0 1.15rem;
}
.b86-editorial h3 {
  font-family: var(--b86-font-headings);
  font-size: 1.4rem;
  margin: 2rem 0 .75rem;
  color: var(--b86-text);
}
.b86-editorial .b86-editorial-quote {
  border-left: 4px solid var(--b86-accent);
  padding: .25rem 0 .25rem 1.25rem;
  margin: 1.5rem 0;
  font-family: var(--b86-font-headings);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--b86-text-soft);
}
.b86-editorial-line {
  background: var(--b86-surface);
  border: 1px solid var(--b86-line);
  border-radius: var(--b86-radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0 0;
}
.b86-editorial-line h3 { margin-top: 0; color: var(--b86-primary); }
.b86-editorial a { color: var(--b86-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.b86-editorial a:hover { color: #7a0000; }

/* =========================================================
 * SECTIONS BY CATEGORY (since articles_home_layout = by-category)
 * ========================================================= */
.b86-cats-section {
  padding: 3rem 0 2rem;
}
.b86-cat-block {
  margin-bottom: 3.25rem;
}
.b86-cat-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid var(--b86-primary);
  padding-bottom: .6rem;
  margin-bottom: 1.25rem;
}
.b86-cat-block-title {
  font-family: var(--b86-font-headings);
  font-size: 1.7rem;
  margin: 0;
  color: var(--b86-text);
}
.b86-cat-block-title a { color: var(--b86-text); text-decoration: none; }
.b86-cat-block-title a:hover { color: var(--b86-primary); }
.b86-cat-block-see {
  font-family: var(--b86-font-headings);
  font-style: italic;
  font-size: .9rem;
  color: var(--b86-primary);
}
.b86-cat-block-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.b86-cat-block-empty {
  font-style: italic;
  color: var(--b86-text-soft);
  background: var(--b86-surface);
  border: 1px dashed var(--b86-line);
  padding: 1.25rem;
  border-radius: var(--b86-radius);
  text-align: center;
}

/* ARTICLE CARDS */
.b86-card {
  background: var(--b86-surface);
  border: 1px solid var(--b86-line);
  border-radius: var(--b86-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.b86-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--b86-shadow-lg);
}
.b86-card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.b86-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--b86-line);
}
.b86-card-img-fallback {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--b86-primary), var(--b86-accent));
}
.b86-card-body {
  padding: 1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  flex: 1;
}
.b86-card-cat {
  font-family: var(--b86-font-headings);
  font-style: italic;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--b86-primary);
  margin: 0;
}
.b86-card-title {
  font-family: var(--b86-font-headings);
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0;
  color: var(--b86-text);
}
.b86-card-meta { font-size: .8rem; color: var(--b86-text-soft); margin-top: auto; letter-spacing: .04em; }

/* =========================================================
 * RUBRIQUES GRID (categories with image cards)
 * ========================================================= */
.b86-rubriques {
  padding: 3rem 0;
  background: var(--b86-surface);
  border-bottom: 1px solid var(--b86-line);
}
.b86-section-head { text-align: center; margin-bottom: 2.25rem; }
.b86-section-eyebrow {
  font-family: var(--b86-font-headings);
  font-style: italic;
  font-size: .95rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--b86-primary);
  margin: 0 0 .35rem;
}
.b86-section-title {
  font-family: var(--b86-font-headings);
  font-size: 2rem;
  margin: 0;
  color: var(--b86-text);
}
.b86-rubriques-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.b86-rubrique-card {
  position: relative;
  border-radius: var(--b86-radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
  color: #fff;
  text-decoration: none;
  background: var(--b86-primary);
}
.b86-rubrique-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform .35s ease;
}
.b86-rubrique-card:hover .b86-rubrique-card-img { transform: scale(1.05); }
.b86-rubrique-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(26, 10, 5, 0.82) 100%);
  z-index: 2;
}
.b86-rubrique-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.1rem 1.1rem;
  z-index: 3;
}
.b86-rubrique-card-title {
  font-family: var(--b86-font-headings);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* =========================================================
 * TOOL EMBED ON HOME
 * ========================================================= */
.b86-tool-home {
  background: var(--b86-bg);
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--b86-line);
}
.b86-tool-home-inner { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }
.b86-tool-home h2 {
  font-family: var(--b86-font-headings);
  font-size: 2rem;
  margin: 0 0 .65rem;
  color: var(--b86-text);
  text-align: center;
}
.b86-tool-home-intro {
  text-align: center;
  font-family: var(--b86-font-body);
  font-size: 1.05rem;
  color: var(--b86-text-soft);
  max-width: 38rem;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

/* =========================================================
 * METRICS LINKS block (b86_render_metrics_links callback)
 * ========================================================= */
.b86-metrics {
  padding: 2.5rem 0;
  background: var(--b86-surface);
  border-bottom: 1px solid var(--b86-line);
}

/* =========================================================
 * CTA BUTTONS — spotlight_hover_button animation
 * ========================================================= */
.b86-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  font-family: var(--b86-font-headings);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--b86-radius);
  cursor: pointer;
  border: 2px solid transparent;
  font-size: .9rem;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.b86-btn--cta {
  background: var(--b86-primary);
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.b86-btn--cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 120px at var(--b86-mx, 50%) var(--b86-my, 50%), rgba(255,255,255,0.32), transparent 70%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
  z-index: 1;
}
.b86-btn--cta > * { position: relative; z-index: 2; }
.b86-btn--cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(155, 0, 0, 0.28);
  color: #fff;
}
.b86-btn--cta:hover::before { opacity: 1; }
.b86-btn--outline {
  background: transparent;
  color: var(--b86-primary);
  border-color: var(--b86-primary);
}
.b86-btn--outline:hover {
  background: var(--b86-primary);
  color: #fff;
}

/* =========================================================
 * CTR — top_announcement_bar
 * ========================================================= */
.b86-ctr {
  background: var(--b86-primary);
  color: #fff;
  font-size: .9rem;
  padding: .45rem 0;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.b86-ctr-track {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: b86-ctr-marquee 32s linear infinite;
}
.b86-ctr-track > span { padding-right: 4rem; font-family: var(--b86-font-body); letter-spacing: .02em; }
.b86-ctr:hover .b86-ctr-track { animation-play-state: paused; }
@keyframes b86-ctr-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* =========================================================
 * CTO — floating_coupon_box
 * ========================================================= */
.b86-cto {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9000;
  background: var(--b86-accent);
  color: #1a0a05;
  padding: 1rem 1.25rem 1rem 1.1rem;
  border-radius: 6px;
  box-shadow: 0 14px 38px rgba(0,0,0,0.22);
  max-width: 300px;
  font-family: var(--b86-font-body);
  animation: b86-cto-float 4.5s ease-in-out infinite;
}
.b86-cto-title {
  font-family: var(--b86-font-headings);
  font-weight: 700;
  margin: 0 0 .3rem;
  font-size: 1rem;
  line-height: 1.25;
  color: #1a0a05;
}
.b86-cto-text { margin: 0 0 .6rem; font-size: .88rem; line-height: 1.4; color: #1a0a05; }
.b86-cto-link {
  display: inline-block;
  background: var(--b86-primary);
  color: #fff;
  padding: .45rem .85rem;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.b86-cto-link:hover { background: #7a0000; color: #fff; }
.b86-cto-close {
  position: absolute;
  top: 6px;
  right: 9px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #1a0a05;
  font-size: 1.1rem;
  line-height: 1;
  padding: 2px 5px;
  font-weight: 700;
}
.b86-cto-close:hover { color: var(--b86-primary); }
@keyframes b86-cto-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 640px) { .b86-cto { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* =========================================================
 * SINGLE / CATEGORY layout — single-bottom variant
 * ========================================================= */
.b86-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  background: var(--b86-primary);
}
.b86-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.b86-cat-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--b86-content-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.75) 100%);
}
.b86-cat-hero-title {
  font-family: var(--b86-font-headings);
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin: 0 0 1rem;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
}
.b86-cat-intro {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1rem;
}
.b86-cat-intro p {
  font-family: var(--b86-font-body);
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--b86-text);
  margin: 0 0 1.1rem;
}
.b86-cat-articles {
  max-width: var(--b86-content-w);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* =========================================================
 * SINGLE post
 * ========================================================= */
.b86-single { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.25rem 3rem; }
.b86-single-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.15; margin: 0 0 .85rem; }
.b86-single-meta { color: var(--b86-text-soft); font-size: .9rem; margin: 0 0 2rem; letter-spacing: .04em; }
.b86-single-content { font-size: 1.075rem; line-height: 1.8; }
.b86-single-content p { margin: 0 0 1.15rem; }
.b86-single-content h2 { font-size: 1.65rem; margin: 2rem 0 .9rem; color: var(--b86-text); }
.b86-single-content h3 { font-size: 1.3rem; margin: 1.6rem 0 .65rem; color: var(--b86-text); }
.b86-single-content img { margin: 1.5rem auto; border-radius: var(--b86-radius); }
.b86-single-content blockquote {
  border-left: 4px solid var(--b86-accent);
  padding: .25rem 0 .25rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--b86-text-soft);
}

/* =========================================================
 * PAGE (default — including a-propos, contact)
 * ========================================================= */
.b86-page { max-width: 860px; margin: 0 auto; padding: 2.5rem 1.25rem 3rem; }
.b86-page-title { font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin: 0 0 1.5rem; color: var(--b86-text); }
.b86-page p { font-size: 1.05rem; line-height: 1.75; margin: 0 0 1.15rem; }
.b86-page h2 { font-size: 1.6rem; margin: 2rem 0 .9rem; color: var(--b86-text); }
.b86-persona-photo {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 1.5rem auto;
  border-radius: var(--b86-radius);
  box-shadow: var(--b86-shadow);
}
.b86-contact-form { margin: 2rem 0; }

/* =========================================================
 * FOOTER — heritage_italian, 4 columns
 * ========================================================= */
.b86-footer {
  background: #1a0a05;
  color: #f5ece0;
  padding: 3.5rem 0 0;
  margin-top: 3rem;
}
.b86-footer-inner {
  max-width: var(--b86-content-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 900px) { .b86-footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 580px) { .b86-footer-inner { grid-template-columns: 1fr; gap: 2rem; } }

.b86-footer-col h3, .b86-footer-title {
  font-family: var(--b86-font-headings);
  font-size: .95rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--b86-accent);
  margin: 0 0 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(201, 160, 74, 0.3);
}
.b86-footer-logo {
  display: block;
  width: 130px;
  height: auto;
  margin-bottom: 1rem;
  filter: brightness(1) contrast(1);
}
.b86-footer-brand-pitch {
  font-family: var(--b86-font-body);
  font-size: .95rem;
  line-height: 1.6;
  color: #e8d8c0;
  margin: 0 0 1.1rem;
}
.b86-footer-brand-cta {
  display: inline-block;
  color: var(--b86-accent);
  font-family: var(--b86-font-headings);
  font-style: italic;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--b86-accent);
  padding-bottom: 2px;
}
.b86-footer-brand-cta:hover { color: #fff; border-bottom-color: #fff; }
.b86-footer-links { list-style: none; padding: 0; margin: 0; }
.b86-footer-links li { margin-bottom: .55rem; }
.b86-footer-links a {
  color: #f5ece0;
  text-decoration: none;
  font-size: .95rem;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.b86-footer-links a:hover { color: var(--b86-accent); border-bottom-color: var(--b86-accent); }

.b86-footer-social { display: flex; gap: .75rem; margin-top: .85rem; flex-wrap: wrap; }
.b86-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(245, 236, 224, 0.06);
  color: #f5ece0;
  border-radius: 50%;
  text-decoration: none;
  font-size: .85rem;
  transition: background .15s, color .15s;
}
.b86-footer-social a:hover { background: var(--b86-accent); color: #1a0a05; }

.b86-footer-bottom {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(245, 236, 224, 0.12);
  padding: 1.25rem 1.25rem 1.5rem;
  text-align: center;
  font-size: .85rem;
  color: rgba(245, 236, 224, 0.7);
  font-style: italic;
}

/* =========================================================
 * Utilities & responsive
 * ========================================================= */
.b86-screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .b86-hero-text { padding: 2rem 1.25rem; }
  .b86-section-title { font-size: 1.6rem; }
  .b86-editorial h2 { font-size: 1.7rem; }
}

/* Print-friendly */
@media print {
  .b86-header, .b86-footer, .b86-cto, .b86-ctr { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Validator: cap hauteur hero cat v2 */
body section[class*="cat-hero"], body div[class*="cat-hero"], body section[class*="category-hero"], body div[class*="category-hero"] { position: relative !important; height: 320px !important; max-height: 320px !important; min-height: 200px !important; padding: 0 !important; overflow: hidden !important; display: flex !important; align-items: center !important; border: none !important; box-shadow: none !important; }
body [class*="cat-hero"] > img, body [class*="cat-hero-bg"], body [class*="cat-hero"] img, body [class*="category-hero"] img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-height: 320px !important; object-fit: cover !important; z-index: 0 !important; border: none !important; }
body [class*="cat-hero"] > [class*="container"], body [class*="cat-hero"] > [class*="wrap"], body [class*="cat-hero"] > [class*="inner"], body [class*="cat-hero"] > div { position: relative !important; z-index: 2 !important; max-width: 900px !important; margin: 0 auto !important; padding: 1.5rem 2rem !important; background: transparent !important; }
body [class*="cat-hero"] h1, body [class*="category-hero"] h1 { color: #ffffff !important; font-size: clamp(2rem, 5vw, 3.5rem) !important; margin: 0 !important; font-weight: 800 !important; text-shadow: 0 3px 12px rgba(0,0,0,.85), 0 0 30px rgba(0,0,0,.5) !important; }
body [class*="cat-hero"][style*="background-image"] { background-size: cover !important; background-position: center !important; }
body [class*="cat-hero"] [class*="breadcrumb"], body [class*="cat-hero"] nav[aria-label*="riane"], body [class*="cat-hero"] nav[aria-label*="readcrumb"] { display: none !important; }

/* Validator: nav-mobile drawer hidden by default v2 */
/* Drawer/burger menu mobile : hidden par defaut, visible mobile+is-open */
[class*="-nav-mobile"]:not(.is-open), [id*="-nav-mobile"]:not(.is-open), [class*="-drawer"]:not(.is-open), [class*="-burger-menu"]:not(.is-open), [class*="-mobile-menu"]:not(.is-open) { display: none !important; }
@media (max-width: 980px) {
  [class*="-nav-mobile"].is-open, [id*="-nav-mobile"].is-open, [class*="-drawer"].is-open, [class*="-burger-menu"].is-open, [class*="-mobile-menu"].is-open { display: flex !important; flex-direction: column !important; position: fixed !important; top: 0 !important; right: 0 !important; bottom: 0 !important; width: 86% !important; max-width: 380px !important; background: #fff !important; padding: 4.5rem 1.5rem 2rem !important; z-index: 9999 !important; overflow-y: auto !important; box-shadow: -10px 0 30px rgba(0,0,0,0.3) !important; }
}

/* Validator: drawer-mobile height fix v1 */
/* Force height:100vh sur le drawer ouvert : top:0;bottom:0 sans !important peut etre overrides par Claude → on impose 100vh. */
/* [2026-06-06] Broadening : ajout patterns supplementaires (X-nav sans 'mobile', X-side, X-menu-drawer, etc.) sinon le validator manque les sites comme artois-moto.com qui utilise fe8-nav (sans 'mobile' dans le nom). */
@media (max-width: 1023px) {
  [class*="-nav-mobile"].is-open, [id*="-nav-mobile"].is-open, [class*="-drawer"].is-open, [class*="-burger-menu"].is-open, [class*="-mobile-menu"].is-open, [class*="-side-nav"].is-open, [class*="-side-menu"].is-open, [class*="-offcanvas"].is-open, nav[aria-label*="mobile" i].is-open, nav[aria-label*="Menu mobile" i].is-open, nav[id*="nav"].is-open[class*="-nav"]:not([class*="desktop"]) { height: 100vh !important; min-height: 100vh !important; max-height: 100vh !important; }
}

/* Validator: footer logo no-filter v1 */
footer img, [class*="-footer"] img, [role="contentinfo"] img, footer [class*="logo"], [class*="-footer"] [class*="logo"] { filter: none !important; mix-blend-mode: normal !important; opacity: 1 !important; }
footer[class*="dark"] img, footer[class*="black"] img, [class*="-footer"][class*="dark"] img, [class*="-footer"][class*="black"] img { filter: brightness(0) invert(1) !important; }

/* Validator: header-hero gap fix v1 */
/* Bug recurrent : <main class="X-main"> a padding-top:30px qui creait un
 * gap entre header sticky et hero/cat-hero. Force padding-top:0 sur le
 * wrapper <main> + margin-top:0 sur le 1er hero enfant. */
body > main, body > [role="main"], main[class*="-main"], [id="main"] { padding-top: 0 !important; }
main > [class*="-hero"]:first-child, main > [class*="-cat-hero"]:first-child, main > [class*="-category-hero"]:first-child { margin-top: 0 !important; }
/* Fallback : si sibling direct du header */
header + section, header + [class*="-hero"], header + [class*="-cat-hero"], header + [class*="-category-hero"], [class*="-header"] + section, [class*="-header"] + [class*="-hero"], [class*="-header"] + [class*="-cat-hero"], [class*="-header"] + [class*="-category-hero"] { margin-top: 0 !important; padding-top: 0 !important; }
section[class*="-hero"]:first-of-type, section[class*="-cat-hero"]:first-of-type, section[class*="-category-hero"]:first-of-type { margin-top: 0 !important; }

/* Validator: contraste lisible header+menu-mobile+footer v2 */
[class*="-nav-mobile"], [id*="-nav-mobile"], [class*="-drawer"], [class*="-burger-menu"], [class*="-mobile-menu"], [class*="-side-nav"] { background: #ffffff !important; }
[class*="-nav-mobile"] *, [id*="-nav-mobile"] *, [class*="-drawer"] *, [class*="-burger-menu"] *, [class*="-mobile-menu"] *, [class*="-side-nav"] * { color: #0a0a0a !important; }
[class*="-nav-mobile"] a, [id*="-nav-mobile"] a, [class*="-drawer"] a, [class*="-burger-menu"] a, [class*="-mobile-menu"] a { color: #0a0a0a !important; font-weight: 600 !important; }
[class*="-nav-mobile"] a:hover, [class*="-drawer"] a:hover, [class*="-burger-menu"] a:hover, [class*="-mobile-menu"] a:hover { color: #000 !important; opacity: 0.7 !important; }
footer *, [class*="-footer"] *, [role="contentinfo"] * { color: #1a1a1a !important; }
footer a, [class*="-footer"] a, [role="contentinfo"] a { color: #1a1a1a !important; text-decoration: underline !important; text-decoration-color: currentColor !important; text-underline-offset: 3px !important; font-weight: 600 !important; }
footer a:hover, [class*="-footer"] a:hover, [role="contentinfo"] a:hover { color: #000 !important; opacity: 1 !important; }
footer h1, footer h2, footer h3, footer h4, footer h5, [class*="-footer"] h1, [class*="-footer"] h2, [class*="-footer"] h3, [class*="-footer"] h4, [class*="-footer"] h5 { color: #0a0a0a !important; font-weight: 700 !important; }
footer p, footer span, footer li, [class*="-footer"] p, [class*="-footer"] span, [class*="-footer"] li { color: #2a2a2a !important; }
footer[class*="dark"] *, footer[class*="black"] *, [class*="-footer"][class*="dark"] *, [class*="-footer"][class*="black"] *, footer[style*="background:#0"] *, footer[style*="background: #0"] *, footer[style*="background:#1"] *, footer[style*="background: #1"] *, footer[style*="background:#2"] *, footer[style*="background: #2"] * { color: #f5f5f5 !important; }
footer[class*="dark"] a, [class*="-footer"][class*="dark"] a, footer[style*="background:#0"] a, footer[style*="background:#1"] a { color: #ffffff !important; }
header a, [class*="-header"] a, [role="banner"] a { text-shadow: none !important; }
header a:hover, [class*="-header"] a:hover { opacity: 0.7 !important; }
[class*="-nav-mobile"] [class*="-btn"], [class*="-footer"] [class*="-btn"] { border: 1.5px solid currentColor !important; }

/* Validator: burger button always visible+clickable v2 */
/* === Burger button : VISIBLE + CLIQUABLE garanti === */
[class*="-burger"], [class*="burger-menu"], [class*="menu-toggle"], button[aria-controls*="nav"], button[aria-label*="menu" i] { color: #1a1a1a !important; pointer-events: auto !important; cursor: pointer !important; z-index: 100 !important; position: relative !important; user-select: none !important; -webkit-tap-highlight-color: transparent !important; background: rgba(255,255,255,0.92) !important; border-radius: 8px !important; border: 1.5px solid rgba(0,0,0,0.15) !important; box-shadow: 0 1px 3px rgba(0,0,0,0.12) !important; padding: 8px !important; }
[class*="-burger"] svg, [class*="burger-menu"] svg, [class*="menu-toggle"] svg, button[aria-controls*="nav"] svg { stroke: #1a1a1a !important; fill: none !important; pointer-events: none !important; stroke-width: 2.5 !important; width: 22px !important; height: 22px !important; }
[class*="-burger"] svg path, [class*="-burger"] svg line, [class*="-burger"] svg rect, [class*="-burger"] svg polyline { stroke: #1a1a1a !important; stroke-width: 2.5 !important; fill: none !important; }
[class*="-burger"]:hover, [class*="-burger"]:focus { background: rgba(255,255,255,1) !important; border-color: rgba(0,0,0,0.3) !important; outline: 2px solid rgba(0,0,0,0.15) !important; outline-offset: 1px !important; }
/* Si le header est sombre : inverse en clair (detection elargie) */
[class*="-header"][style*="background:#0"] [class*="-burger"], [class*="-header"][style*="background:#1"] [class*="-burger"], [class*="-header"][style*="background:#2"] [class*="-burger"], [class*="-header"][style*="background-color:#0"] [class*="-burger"], [class*="-header"][style*="background-color:#1"] [class*="-burger"], [class*="-header"][style*="background-color:#2"] [class*="-burger"], [class*="-header"][class*="dark"] [class*="-burger"], [class*="-header"][class*="black"] [class*="-burger"], [class*="-header"][class*="--dark"] [class*="-burger"], [class*="-header"][class*="-night"] [class*="-burger"] { color: #f5f5f5 !important; background: rgba(0,0,0,0.55) !important; border-color: rgba(255,255,255,0.4) !important; box-shadow: 0 1px 3px rgba(0,0,0,0.4) !important; }
[class*="-header"][style*="background:#0"] [class*="-burger"] svg, [class*="-header"][style*="background:#1"] [class*="-burger"] svg, [class*="-header"][class*="dark"] [class*="-burger"] svg, [class*="-header"][class*="black"] [class*="-burger"] svg { stroke: #f5f5f5 !important; }
@media (max-width: 1023px) {
  [class*="-burger"], button[aria-controls*="nav"] { display: inline-flex !important; align-items: center !important; justify-content: center !important; min-width: 44px !important; min-height: 44px !important; }
}
@media (min-width: 1024px) {
  [class*="-burger"], button[aria-controls*="nav"] { display: none !important; }
}

/* Validator: nav-mobile-list visible inside open drawer v1 */
/* Burger drawer ouvert : la UL des liens DOIT etre visible. */
[class*="-nav-mobile"].is-open ul, [id*="-nav-mobile"].is-open ul, [class*="-nav-mobile"].is-open [class*="-nav-mobile-list"], [class*="-drawer"].is-open ul, [class*="-burger-menu"].is-open ul { display: block !important; visibility: visible !important; height: auto !important; max-height: none !important; overflow: visible !important; padding: 0 !important; margin: 0 !important; list-style: none !important; }
[class*="-nav-mobile"].is-open ul li, [id*="-nav-mobile"].is-open ul li, [class*="-drawer"].is-open ul li, [class*="-burger-menu"].is-open ul li { display: list-item !important; height: auto !important; padding: 0 !important; margin: 0 !important; list-style: none !important; }
[class*="-nav-mobile"].is-open ul li a, [id*="-nav-mobile"].is-open ul li a, [class*="-drawer"].is-open ul li a, [class*="-burger-menu"].is-open ul li a { display: block !important; padding: 0.9rem 0 !important; text-decoration: none !important; border-bottom: 1px solid rgba(0,0,0,0.08) !important; font-size: 1rem !important; }
