/* ==========================================================================
   Bike & More — Portale turistico
   Design system / stylesheet principale
   ========================================================================== */

:root {
  /* Palette */
  --bm-green-900: #143024;
  --bm-green-800: #1a3d2e;
  --bm-green-700: #1f5240;
  --bm-green-600: #2c6a52;
  --bm-green-500: #3c7d63;
  --bm-green-300: #8fb6a3;
  --bm-ochre-700: #9a6a25;
  --bm-ochre: #c1873b;
  --bm-ochre-300: #e3c486;
  --bm-terra: #b4502f;
  --bm-water: #2f6f8f;
  --bm-cream: #f7f3ea;
  --bm-cream-2: #efe7d7;
  --bm-card: #fffdf8;
  --bm-ink: #21271f;
  --bm-ink-soft: #444b3f;
  --bm-muted: #767b6c;
  --bm-line: #e4ddcc;
  --bm-line-soft: #efe9dc;

  /* Difficoltà */
  --bm-diff-facile: #3c7d63;
  --bm-diff-media: #c1873b;
  --bm-diff-impegnativo: #b4502f;

  /* Tipografia */
  --bm-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --bm-sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Misure */
  --bm-maxw: 1240px;
  --bm-gutter: clamp(20px, 5vw, 64px);
  --bm-radius: 16px;
  --bm-radius-sm: 10px;
  --bm-radius-lg: 26px;
  --bm-shadow-sm: 0 2px 10px rgba(20, 48, 36, 0.06);
  --bm-shadow: 0 14px 40px rgba(20, 48, 36, 0.12);
  --bm-shadow-lg: 0 28px 70px rgba(20, 48, 36, 0.20);
  --bm-header-h: 78px;
}

/* ------------------------------------------------------------------ Reset */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--bm-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--bm-ink);
  background: var(--bm-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--bm-serif);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

::selection { background: var(--bm-ochre-300); color: var(--bm-green-900); }

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

.bm-section { padding-block: clamp(56px, 8vw, 110px); }
.bm-section--tight { padding-block: clamp(40px, 5vw, 64px); }
.bm-section--cream2 { background: var(--bm-cream-2); }
.bm-section--green {
  background: var(--bm-green-800);
  color: #eef3ee;
}

.bm-eyebrow {
  font-family: var(--bm-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bm-ochre-700);
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.bm-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--bm-ochre);
}
.bm-section--green .bm-eyebrow { color: var(--bm-ochre-300); }
.bm-section--green .bm-eyebrow::before { background: var(--bm-ochre-300); }

.bm-h2 { font-size: clamp(32px, 4.6vw, 56px); }
.bm-h3 { font-size: clamp(24px, 2.6vw, 32px); }
.bm-lead {
  font-size: clamp(18px, 1.5vw, 21px);
  color: var(--bm-ink-soft);
  max-width: 60ch;
  line-height: 1.65;
}
.bm-section--green .bm-lead { color: #cfe0d6; }

.bm-section-head { margin-bottom: clamp(34px, 4vw, 56px); }
.bm-section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------- Buttons */
.bm-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.bm-btn svg { width: 18px; height: 18px; }
.bm-btn:hover { transform: translateY(-2px); }
.bm-btn--primary { background: var(--bm-ochre); color: #fff; box-shadow: 0 10px 24px rgba(193, 135, 59, 0.32); }
.bm-btn--primary:hover { background: var(--bm-ochre-700); }
.bm-btn--green { background: var(--bm-green-700); color: #fff; }
.bm-btn--green:hover { background: var(--bm-green-800); }
.bm-btn--ghost { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.bm-btn--ghost:hover { background: rgba(255, 255, 255, 0.14); }
.bm-btn--outline { border-color: var(--bm-line); color: var(--bm-green-800); background: var(--bm-card); }
.bm-btn--outline:hover { border-color: var(--bm-green-500); color: var(--bm-green-800); }

.bm-textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--bm-green-700);
}
.bm-textlink svg { width: 16px; height: 16px; transition: transform 0.18s ease; }
.bm-textlink:hover svg { transform: translateX(4px); }

/* ------------------------------------------------------------------ Header */
.bm-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--bm-header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}
.bm-header .bm-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
}
.bm-header.is-solid {
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--bm-line), 0 10px 30px rgba(20, 48, 36, 0.06);
}

.bm-brand { display: flex; align-items: center; gap: 12px; }
.bm-brand__mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bm-green-700);
  color: #fff;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}
.bm-brand__mark svg { width: 24px; height: 24px; }
.bm-brand__text { display: flex; flex-direction: column; line-height: 1; }
.bm-brand__name {
  font-family: var(--bm-serif);
  font-size: 23px;
  font-weight: 700;
  color: var(--bm-green-800);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.bm-brand__sub {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bm-muted);
  font-weight: 600;
  margin-top: 3px;
  white-space: nowrap;
}
.bm-header--transparent:not(.is-solid) .bm-brand__name { color: #fff; }
.bm-header--transparent:not(.is-solid) .bm-brand__sub { color: rgba(255,255,255,0.8); }
.bm-header--transparent:not(.is-solid) .bm-brand__mark {
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(4px);
}

.bm-nav { display: flex; align-items: center; gap: 4px; }
.bm-nav a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--bm-ink-soft);
  transition: background 0.18s ease, color 0.18s ease;
}
.bm-nav a:hover { background: rgba(31, 82, 64, 0.08); color: var(--bm-green-800); }
.bm-nav a.is-active { color: var(--bm-green-800); font-weight: 600; }
.bm-nav a.is-active::after {
  content: ""; display: block; height: 2px; width: 18px;
  margin: 3px auto 0; border-radius: 2px; background: var(--bm-ochre);
}
.bm-header--transparent:not(.is-solid) .bm-nav a { color: rgba(255,255,255,0.92); }
.bm-header--transparent:not(.is-solid) .bm-brand__name,
.bm-header--transparent:not(.is-solid) .bm-brand__sub,
.bm-header--transparent:not(.is-solid) .bm-nav a {
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
.bm-header--transparent:not(.is-solid) .bm-nav a:hover { background: rgba(255,255,255,0.16); color: #fff; }

.bm-header__actions { display: flex; align-items: center; gap: 14px; }

.bm-burger {
  display: none;
  width: 44px; height: 44px;
  border: none; background: transparent;
  border-radius: 10px;
  position: relative;
}
.bm-burger span,
.bm-burger span::before,
.bm-burger span::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 22px; height: 2px;
  background: var(--bm-green-800);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.bm-burger span { top: 21px; }
.bm-burger span::before { top: -7px; }
.bm-burger span::after { top: 7px; }
.bm-header--transparent:not(.is-solid) .bm-burger span,
.bm-header--transparent:not(.is-solid) .bm-burger span::before,
.bm-header--transparent:not(.is-solid) .bm-burger span::after { background: #fff; }
body.bm-menu-open .bm-burger span { background: transparent; }
body.bm-menu-open .bm-burger span::before { top: 0; transform: rotate(45deg); background: var(--bm-green-800); }
body.bm-menu-open .bm-burger span::after { top: 0; transform: rotate(-45deg); background: var(--bm-green-800); }

/* Mobile drawer */
.bm-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bm-cream);
  padding: calc(var(--bm-header-h) + 24px) var(--bm-gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
body.bm-menu-open .bm-mobile-nav { opacity: 1; transform: none; pointer-events: auto; }
.bm-mobile-nav a {
  font-family: var(--bm-serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--bm-green-800);
  padding: 12px 0;
  border-bottom: 1px solid var(--bm-line);
}
.bm-mobile-nav .bm-btn { margin-top: 22px; justify-content: center; }

/* --------------------------------------------------------------- Hero */
.bm-hero {
  position: relative;
  min-height: min(92vh, 880px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.bm-hero .bm-hero__media { position: absolute; inset: 0; }
.bm-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 27% 49%, rgba(5,15,11,0.80) 0%, rgba(8,22,16,0.64) 34%, rgba(10,23,18,0.28) 62%, transparent 82%),
    radial-gradient(ellipse at 54% 64%, rgba(5,15,11,0.34) 0%, transparent 52%),
    linear-gradient(180deg, rgba(15,34,26,0.40) 0%, rgba(15,34,26,0.16) 34%, rgba(15,34,26,0.54) 100%);
}
.bm-hero__inner { position: relative; z-index: 2; padding-top: calc(var(--bm-header-h) + 28px); padding-bottom: clamp(48px, 8vw, 96px); width: 100%; }
.bm-hero__inner::before {
  content: none;
}
.bm-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--bm-ochre-300);
  margin-bottom: 22px;
}
.bm-hero__eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--bm-ochre-300); }
.bm-hero h1 {
  font-size: clamp(50px, 9vw, 124px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  text-shadow: 0 4px 18px rgba(0,0,0,0.55), 0 18px 54px rgba(0,0,0,0.45);
}
.bm-hero h1 em { font-style: italic; color: var(--bm-ochre-300); }
.bm-hero__sub {
  font-size: clamp(17px, 1.8vw, 22px);
  max-width: 54ch;
  color: #fff;
  line-height: 1.55;
  margin-bottom: 34px;
  font-weight: 500;
  text-shadow: 0 2px 16px rgba(0,0,0,0.64);
}
.bm-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.bm-hero__stats {
  display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 60px);
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.22);
}
.bm-hero__stat .n { font-family: var(--bm-serif); font-size: clamp(34px, 4vw, 46px); font-weight: 600; line-height: 1; }
.bm-hero__stat .n,
.bm-hero__stat .l { text-shadow: 0 2px 14px rgba(0,0,0,0.55); }
.bm-hero__stat .l { font-size: 13px; letter-spacing: 0.06em; color: rgba(255,255,255,0.9); margin-top: 8px; text-transform: uppercase; }

.bm-scrollcue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 3; color: rgba(255,255,255,0.7); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.bm-scrollcue::after {
  content: ""; width: 1px; height: 34px;
  background: linear-gradient(rgba(255,255,255,0.7), transparent);
  animation: bm-cue 2s ease-in-out infinite;
}
@keyframes bm-cue { 0%,100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; } 50% { transform: scaleY(1); opacity: 1; transform-origin: top; } }

/* --------------------------------------------------------- Media / images */
.bm-media {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--bm-green-600), var(--bm-green-800));
  isolation: isolate;
}
.bm-media::before {
  /* pattern di base placeholder */
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 13px);
  z-index: 0;
}
.bm-media__label {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 18px;
  color: rgba(255,255,255,0.85);
  font-family: var(--bm-sans);
}
.bm-media__label svg { width: 26px; height: 26px; opacity: 0.7; }
.bm-media__label span {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  max-width: 80%;
}
.bm-media img {
  position: relative; z-index: 2;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.bm-media img.is-loaded { opacity: 1; }
/* varianti di tinta per categoria del placeholder */
.bm-media[data-tone="water"] { background: linear-gradient(135deg, #356f87, #1b4254); }
.bm-media[data-tone="ochre"] { background: linear-gradient(135deg, #b9863f, #7c5621); }
.bm-media[data-tone="terra"] { background: linear-gradient(135deg, #b4502f, #7a3320); }
.bm-media[data-tone="plum"] { background: linear-gradient(135deg, #7a4f86, #4b2f56); }
.bm-media[data-tone="nature"] { background: linear-gradient(135deg, #4f8a52, #234a2a); }

/* --------------------------------------------------------------- Badges */
.bm-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em;
  background: rgba(31,82,64,0.08);
  color: var(--bm-green-800);
  white-space: nowrap;
}
.bm-badge__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--bm-green-600); }
.bm-badge--ghost { background: rgba(255,255,255,0.16); color: #fff; backdrop-filter: blur(4px); }
.bm-badge--solid { background: var(--bm-green-700); color: #fff; }
.bm-badge--cat { background: var(--bm-cream-2); color: var(--bm-ink-soft); }

.bm-badge-diff {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  color: #fff;
}
.bm-badge-diff::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.85); }
.bm-badge-diff[data-diff="Facile"] { background: var(--bm-diff-facile); }
.bm-badge-diff[data-diff="Media"] { background: var(--bm-diff-media); }
.bm-badge-diff[data-diff="Impegnativo"] { background: var(--bm-diff-impegnativo); }

.bm-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* --------------------------------------------------------------- Cards */
.bm-grid { display: grid; gap: clamp(20px, 2.4vw, 30px); }
.bm-grid--2 { grid-template-columns: repeat(2, 1fr); }
.bm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.bm-grid--4 { grid-template-columns: repeat(4, 1fr); }
.bm-grid--auto { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

.bm-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--bm-card);
  color: var(--bm-ink);
  border: 1px solid var(--bm-line-soft);
  border-radius: var(--bm-radius);
  overflow: hidden;
  box-shadow: var(--bm-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.bm-card:hover { transform: translateY(-5px); box-shadow: var(--bm-shadow); border-color: var(--bm-line); }
.bm-card__media { aspect-ratio: 4 / 3; position: relative; }
.bm-card__media .bm-card__badges {
  position: absolute; z-index: 3; left: 14px; top: 14px; right: 14px;
  display: flex; justify-content: space-between; gap: 8px; align-items: flex-start;
}
.bm-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.bm-card__map {
  margin: -2px 22px 0;
  height: 122px;
  border-radius: 12px;
  border: 1px solid var(--bm-line-soft);
  background:
    linear-gradient(90deg, rgba(31,82,64,0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(31,82,64,0.055) 1px, transparent 1px),
    linear-gradient(135deg, #f7f3ea, #efe7d7);
  background-size: 24px 24px, 24px 24px, auto;
  position: relative;
  overflow: hidden;
  flex: none;
}
.bm-card__map svg { width: 100%; height: 100%; display: block; }
.bm-card__map path {
  fill: none;
  stroke: var(--bm-green-700);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bm-card__map .bm-route-glow {
  stroke: rgba(255,255,255,0.85);
  stroke-width: 8;
}
.bm-card__map .bm-route-start { fill: var(--bm-green-700); }
.bm-card__map .bm-route-end { fill: var(--bm-terra); }
.bm-card__map-label {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255,253,248,0.88);
  color: var(--bm-green-800);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bm-card__kicker { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bm-ochre-700); }
.bm-card__title { font-size: 24px; line-height: 1.12; color: var(--bm-green-900); }
.bm-card a.bm-card__title:hover { color: var(--bm-green-700); }
.bm-card__text { color: var(--bm-ink-soft); font-size: 15px; line-height: 1.55; }
.bm-card__foot {
  margin-top: auto; padding-top: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--bm-line-soft);
}
.bm-card__stretch { display: none; }

/* Route metrics row */
.bm-metrics { display: flex; flex-wrap: wrap; gap: 16px 20px; }
.bm-metric { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--bm-ink-soft); font-weight: 500; }
.bm-metric svg { width: 17px; height: 17px; color: var(--bm-green-500); flex: none; }
.bm-metric b { font-weight: 600; color: var(--bm-ink); }

/* --------------------------------------------------------------- Comuni */
.bm-comuni-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.bm-comune-card {
  position: relative;
  border-radius: var(--bm-radius);
  overflow: hidden;
  min-height: 230px;
  display: flex; align-items: flex-end;
  color: #fff;
  border: 1px solid var(--bm-line-soft);
  box-shadow: var(--bm-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bm-comune-card:hover { transform: translateY(-4px); box-shadow: var(--bm-shadow); }
.bm-comune-card .bm-media { position: absolute; inset: 0; }
.bm-comune-card .bm-media::after {
  content: ""; position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(180deg, rgba(15,34,26,0) 30%, rgba(15,34,26,0.86) 100%);
}
.bm-comune-card__body { position: relative; z-index: 4; padding: 18px 20px 20px; width: 100%; }
.bm-comune-card__name { font-size: 23px; font-weight: 600; }
.bm-comune-card__meta {
  font-size: 13px;
  color: #fff;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(8, 20, 15, 0.52);
  text-shadow: 0 1px 8px rgba(0,0,0,0.55);
}
.bm-comune-card__cap {
  position: absolute; z-index: 4; top: 14px; left: 14px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255,255,255,0.18); backdrop-filter: blur(4px);
  padding: 4px 10px; border-radius: 999px;
}

/* --------------------------------------------------------- Project / split */
.bm-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.bm-split--reverse .bm-split__media { order: -1; }
.bm-split__media { border-radius: var(--bm-radius-lg); overflow: hidden; aspect-ratio: 4 / 3.2; box-shadow: var(--bm-shadow); }
.bm-feature-list { display: grid; gap: 18px; margin-top: 30px; }
.bm-feature {
  display: flex; gap: 16px; align-items: flex-start;
}
.bm-feature__ic {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  display: grid; place-items: center;
  background: rgba(31,82,64,0.09); color: var(--bm-green-700);
}
.bm-feature__ic svg { width: 22px; height: 22px; }
.bm-feature h4 { font-family: var(--bm-sans); font-size: 16px; font-weight: 600; margin-bottom: 3px; }
.bm-feature p { margin: 0; font-size: 14.5px; color: var(--bm-muted); line-height: 1.5; }

/* Partner / loghi strip */
.bm-partners { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.bm-partner {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: var(--bm-radius-sm);
  background: var(--bm-card); border: 1px solid var(--bm-line-soft);
  font-size: 14px; font-weight: 600; color: var(--bm-ink-soft);
}
.bm-partner small { display: block; font-weight: 500; color: var(--bm-muted); font-size: 12px; letter-spacing: 0.02em; }
.bm-partner__dot { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--bm-green-700); color: #fff; }
.bm-partner__dot svg { width: 18px; height: 18px; }

/* Quick access tiles */
.bm-explore { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bm-explore__tile {
  position: relative;
  border-radius: var(--bm-radius);
  padding: 26px 24px 28px;
  background: var(--bm-card);
  border: 1px solid var(--bm-line-soft);
  min-height: 200px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}
.bm-explore__tile:hover { transform: translateY(-4px); box-shadow: var(--bm-shadow); border-color: var(--bm-line); }
.bm-explore__tile .ic {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--bm-green-700); color: #fff;
}
.bm-explore__tile .ic svg { width: 24px; height: 24px; }
.bm-explore__tile h3 { font-family: var(--bm-sans); font-size: 19px; font-weight: 600; }
.bm-explore__tile p { margin: 6px 0 0; font-size: 14px; color: var(--bm-muted); }
.bm-explore__tile .n { position: absolute; right: 22px; top: 20px; font-family: var(--bm-serif); font-size: 44px; color: var(--bm-line); font-weight: 600; line-height: 1; }
.bm-explore__tile:hover .n { color: var(--bm-ochre-300); }

/* --------------------------------------------------------------- Page hero */
.bm-pagehero {
  position: relative;
  padding-top: calc(var(--bm-header-h) + 70px);
  padding-bottom: 60px;
  color: #fff;
  overflow: hidden;
}
.bm-pagehero .bm-pagehero__media { position: absolute; inset: 0; }
.bm-pagehero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,23,18,0.72), rgba(10,23,18,0.24)),
    linear-gradient(180deg, rgba(15,34,26,0.62), rgba(15,34,26,0.82));
}
.bm-pagehero__inner { position: relative; z-index: 2; }
.bm-pagehero h1 { font-size: clamp(38px, 6vw, 70px); margin-bottom: 16px; }
.bm-pagehero p { max-width: 60ch; color: rgba(255,255,255,0.9); font-size: 18px; }
.bm-breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 13px; color: rgba(255,255,255,0.8); margin-bottom: 22px; font-weight: 500; }
.bm-breadcrumb a:hover { color: #fff; }
.bm-breadcrumb svg { width: 14px; height: 14px; opacity: 0.6; }

/* --------------------------------------------------------------- Filters */
.bm-filterbar {
  position: sticky; top: var(--bm-header-h); z-index: 40;
  background: rgba(247,243,234,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bm-line);
  padding-block: 16px;
}
.bm-filterbar__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.bm-filter-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bm-filter-group__label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bm-muted); }
.bm-pill {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--bm-line);
  background: var(--bm-card); font-size: 14px; font-weight: 500; color: var(--bm-ink-soft);
  transition: all 0.16s ease; display: inline-flex; align-items: center; gap: 7px;
}
.bm-pill:hover { border-color: var(--bm-green-500); color: var(--bm-green-800); }
.bm-pill.is-active { background: var(--bm-green-700); border-color: var(--bm-green-700); color: #fff; }
.bm-pill.is-active .bm-badge__dot { background: rgba(255,255,255,0.9); }
.bm-pill__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.bm-filter-count { margin-left: auto; font-size: 14px; color: var(--bm-muted); font-weight: 500; }
.bm-filter-count b { color: var(--bm-green-800); font-weight: 700; }

.bm-empty { text-align: center; padding: 60px 20px; color: var(--bm-muted); }
.bm-empty svg { width: 44px; height: 44px; opacity: 0.4; margin-bottom: 14px; }

/* --------------------------------------------------------------- Maps */
.bm-map { width: 100%; height: 100%; min-height: 360px; border-radius: var(--bm-radius); z-index: 1; }
.bm-map-wrap { border-radius: var(--bm-radius); overflow: hidden; border: 1px solid var(--bm-line); box-shadow: var(--bm-shadow-sm); }
.bm-static-map {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: grid;
  place-items: center;
  position: relative;
  background:
    linear-gradient(90deg, rgba(31,82,64,0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(31,82,64,0.06) 1px, transparent 1px),
    #e4eadf;
  background-size: 38px 38px, 38px 38px, auto;
}
.bm-static-map svg { width: 100%; height: 100%; }
.bm-static-map__water { fill: none; stroke: rgba(47,111,143,0.42); stroke-width: 28; stroke-linecap: round; }
.bm-static-map__route { fill: none; stroke: var(--bm-green-700); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.bm-static-map__route--main { stroke: var(--bm-ochre); stroke-width: 7; }
.bm-static-map__pins circle { fill: var(--bm-green-800); stroke: #fff; stroke-width: 3; }
.bm-static-map__pins text { font: 600 14px var(--bm-sans); fill: var(--bm-green-900); paint-order: stroke; stroke: rgba(255,255,255,0.78); stroke-width: 4; }
.bm-static-map > span {
  position: absolute;
  left: 18px;
  top: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,253,248,0.9);
  color: var(--bm-green-800);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.leaflet-container { font-family: var(--bm-sans); background: #dfeae3; }
.bm-leaflet-pin {
  background: var(--bm-green-700);
  width: 30px; height: 30px; border-radius: 50% 50% 50% 2px;
  transform: rotate(45deg);
  box-shadow: 0 4px 10px rgba(20,48,36,0.35);
  border: 2px solid #fff;
  display: grid; place-items: center;
}
.bm-leaflet-pin svg { width: 14px; height: 14px; transform: rotate(-45deg); color: #fff; }
.bm-leaflet-pin[data-kind="ochre"] { background: var(--bm-ochre); }
.bm-leaflet-pin[data-kind="water"] { background: var(--bm-water); }
.bm-leaflet-pin[data-kind="start"] { background: var(--bm-green-600); }
.bm-leaflet-pin[data-kind="end"] { background: var(--bm-terra); }
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--bm-shadow); }
.leaflet-popup-content { margin: 14px 16px; font-size: 14px; }
.bm-popup__cat { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bm-ochre-700); font-weight: 700; }
.bm-popup__title { font-family: var(--bm-serif); font-size: 19px; font-weight: 600; margin: 2px 0 6px; color: var(--bm-green-800); }
.bm-popup a { color: var(--bm-green-700); font-weight: 600; font-size: 13px; }

/* --------------------------------------------------------------- Detail */
.bm-detail-head { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.bm-gallery { display: grid; gap: 12px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: clamp(320px, 46vw, 540px); }
.bm-gallery > .bm-media { border-radius: 14px; cursor: pointer; }
.bm-gallery > .bm-media:first-child { grid-row: 1 / 3; }
.bm-gallery > .bm-media:nth-child(n+2) { display: none; }
.bm-gallery--multi > .bm-media:nth-child(2),
.bm-gallery--multi > .bm-media:nth-child(3) { display: block; }
.bm-gallery--multi { grid-template-columns: 2fr 1fr; }
.bm-gallery--multi > .bm-media:nth-child(n+4) { display: none; }
.bm-gallery--full { grid-template-columns: 2fr 1fr 1fr; }
.bm-gallery--full > .bm-media:nth-child(n+2) { display: block; }
.bm-gallery--full > .bm-media:nth-child(n+5) { display: none; }

.bm-prose p { color: var(--bm-ink-soft); line-height: 1.72; margin: 0 0 18px; }
.bm-prose p:first-child { font-size: 19px; color: var(--bm-ink); }

.bm-infocard {
  background: var(--bm-card); border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius); padding: 26px; box-shadow: var(--bm-shadow-sm);
}
.bm-infocard h3 { font-family: var(--bm-sans); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bm-muted); margin-bottom: 16px; font-weight: 700; }
.bm-info-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--bm-line-soft); font-size: 15px; }
.bm-info-row:last-of-type { border-bottom: none; }
.bm-info-row .k { color: var(--bm-muted); display: flex; align-items: center; gap: 9px; }
.bm-info-row .k svg { width: 16px; height: 16px; color: var(--bm-green-500); }
.bm-info-row .v { font-weight: 600; text-align: right; }
.bm-coord { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }

/* Stats grid for route */
.bm-statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.bm-stat {
  background: var(--bm-card); border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius-sm); padding: 20px;
}
.bm-stat .ic { color: var(--bm-green-500); margin-bottom: 12px; }
.bm-stat .ic svg { width: 22px; height: 22px; }
.bm-stat .n { font-family: var(--bm-serif); font-size: 32px; font-weight: 600; line-height: 1; color: var(--bm-green-800); }
.bm-stat .l { font-size: 13px; color: var(--bm-muted); margin-top: 6px; }

.bm-elevation { background: var(--bm-card); border: 1px solid var(--bm-line); border-radius: var(--bm-radius); padding: 24px; box-shadow: var(--bm-shadow-sm); }
.bm-elevation__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.bm-elevation__head h3 { font-family: var(--bm-sans); font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.bm-elevation__head h3 svg { width: 19px; height: 19px; color: var(--bm-green-500); }
.bm-chart-box { position: relative; height: 240px; }

/* Route map + timeline layout */
.bm-route-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; align-items: start; }
.bm-tl-card { background: var(--bm-card); border: 1px solid var(--bm-line); border-radius: var(--bm-radius); padding: 24px 26px; box-shadow: var(--bm-shadow-sm); }
.bm-tl-title { font-family: var(--bm-sans); font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.bm-tl-title svg { width: 19px; height: 19px; color: var(--bm-green-500); }
.bm-tl { position: relative; }
.bm-tl::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--bm-line); }
.bm-tl__item { position: relative; padding: 9px 0 9px 26px; }
.bm-tl__dot { position: absolute; left: 0; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--bm-green-600); border: 2px solid var(--bm-card); box-shadow: 0 0 0 2px var(--bm-green-300); }
.bm-tl__item:first-child .bm-tl__dot { background: var(--bm-green-700); box-shadow: 0 0 0 2px var(--bm-green-500); }
.bm-tl__item:last-child .bm-tl__dot { background: var(--bm-terra); box-shadow: 0 0 0 2px #e0a890; }
.bm-tl__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bm-tl__name { font-weight: 600; font-size: 15px; color: var(--bm-ink); }
.bm-tl__km { font-size: 13px; color: var(--bm-muted); font-variant-numeric: tabular-nums; flex: none; }

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

/* --------------------------------------------------------------- Lightbox */
.bm-lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(12, 24, 18, 0.92);
  display: none; align-items: center; justify-content: center;
  padding: 40px;
}
.bm-lightbox.is-open { display: flex; }
.bm-lightbox img { max-width: 90vw; max-height: 84vh; border-radius: 12px; box-shadow: var(--bm-shadow-lg); }
.bm-lightbox__close { position: absolute; top: 24px; right: 28px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.08); color: #fff; font-size: 22px; }
.bm-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.08); color: #fff; display: grid; place-items: center; }
.bm-lightbox__nav svg { width: 22px; height: 22px; }
.bm-lightbox__nav--prev { left: 28px; }
.bm-lightbox__nav--next { right: 28px; }
.bm-lightbox__count { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.8); font-size: 14px; letter-spacing: 0.08em; }

/* --------------------------------------------------------------- Footer */
.bm-footer { background: var(--bm-green-900); color: #cdd9d0; padding-top: clamp(56px, 7vw, 88px); }
.bm-footer a:hover { color: #fff; }
.bm-footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.bm-footer__brand .bm-brand__name { color: #fff; }
.bm-footer__brand .bm-brand__sub { color: rgba(255,255,255,0.6); }
.bm-footer__brand p { margin: 20px 0 0; font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,0.7); max-width: 36ch; }
.bm-footer__col h4 { font-family: var(--bm-sans); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 16px; font-weight: 700; }
.bm-footer__col a { display: block; padding: 6px 0; font-size: 15px; color: rgba(255,255,255,0.82); }
.bm-footer__funded { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.72); }
.bm-footer__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.bm-footer__badge { font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; padding: 7px 13px; border-radius: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.85); }
.bm-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 26px; font-size: 13px; color: rgba(255,255,255,0.55); }

/* --------------------------------------------------------------- Utils */
.bm-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2,0.7,0.2,1); }
.bm-reveal.is-in { opacity: 1; transform: none; }
.bm-mt-0 { margin-top: 0; }
.bm-center { text-align: center; }
.bm-center .bm-eyebrow { justify-content: center; }
.bm-center .bm-lead { margin-inline: auto; }
.bm-divider-wave { height: 1px; background: var(--bm-line); margin: 0; border: 0; }

/* --------------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
  .bm-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .bm-explore { grid-template-columns: repeat(2, 1fr); }
  .bm-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .bm-nav, .bm-header__actions .bm-btn { display: none; }
  .bm-burger { display: block; }
  .bm-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .bm-split { grid-template-columns: 1fr; }
  .bm-split--reverse .bm-split__media { order: 0; }
  .bm-detail-head { grid-template-columns: 1fr; }
  .bm-gallery { height: clamp(280px, 60vw, 420px); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bm-grid--2, .bm-grid--3, .bm-grid--4 { grid-template-columns: 1fr; }
  .bm-explore { grid-template-columns: 1fr 1fr; }
  .bm-comuni-grid { grid-template-columns: 1fr 1fr; }
  .bm-footer__top { grid-template-columns: 1fr; gap: 30px; }
  .bm-gallery { grid-template-columns: 1fr !important; grid-template-rows: auto; height: auto; }
  .bm-gallery > .bm-media { aspect-ratio: 16/10; }
  .bm-gallery > .bm-media:nth-child(n+3) { display: none !important; }
  .bm-hero__stats { gap: 22px 30px; }
  .bm-filterbar { position: static; }
}
@media (max-width: 430px) {
  .bm-explore, .bm-comuni-grid { grid-template-columns: 1fr; }
}
