/* ═══════════════════════════════════════════════════════════════
   MOUNTAKING · v0.8 · stylesheet
   Flat minimal · palette gold WCAG AA · Space Grotesk + Inter
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink: #0A2540;
  --ink-deep: #051528;
  --royal: #1E5BA8;
  --royal-light: #5377A8;
  --gold-bright: #E8B333;
  --gold-mid: #AE8013;
  --gold-deep: #926C10;
  --limone: #F1E436;
  --teal: #0F6E56;
  --snow: #F7F9FC;
  --fog: #E5EAF0;
  --stone: #8A95A5;
  --green-it: #008C45;
  --white-it: #F4F5F0;
  --red-it: #CD212A;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --max-w: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--snow);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
.mtk-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 249, 252, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--fog);
}
.mtk-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
@media (min-width: 1024px) {
  .mtk-header__inner { padding: 0 2.5rem; height: 80px; }
}

.mtk-header__brand {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--ink);
}
.mtk-logo {
  height: 38px; width: auto;
}
@media (min-width: 1024px) {
  .mtk-logo { height: 44px; }
}
.mtk-brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}
@media (min-width: 1024px) {
  .mtk-brand-name { font-size: 22px; }
}

.mtk-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
@media (min-width: 768px) {
  .mtk-nav { display: flex; }
}
.mtk-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(10, 37, 64, 0.78);
  transition: color 150ms;
  padding: 0.5rem 0;
}
.mtk-nav a:hover { color: var(--ink); }
.mtk-nav a.gold {
  color: var(--gold-deep);
  font-weight: 600;
}
.mtk-nav a.gold:hover { color: var(--gold-mid); }

.mtk-burger {
  display: block; padding: 0.5rem;
  font-size: 24px; line-height: 1;
}
@media (min-width: 768px) { .mtk-burger { display: none; } }

.mtk-mobile-menu {
  display: none;
  border-top: 1px solid var(--fog);
  padding: 1rem 1.5rem;
}
.mtk-mobile-menu.open { display: block; }
.mtk-mobile-menu a {
  display: block;
  padding: 0.625rem 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════════
   EYEBROW · marquee KING scorrevole
   ═══════════════════════════════════════════════════════════════ */
.mtk-eyebrow {
  background: var(--ink);
  color: var(--gold-bright);
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}
.mtk-eyebrow__wrap {
  display: flex;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.mtk-eyebrow__track {
  display: flex;
  flex-shrink: 0;
  width: max-content;
  animation: mtk-marquee 60s linear infinite;
  will-change: transform;
  padding: 0.5rem 0;
}
.mtk-eyebrow__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}
.mtk-eyebrow__item {
  margin: 0 1.5rem;
  color: var(--gold-bright);
}
.mtk-eyebrow__item .king-soft {
  color: var(--snow);
  font-weight: 400;
  opacity: 0.75;
}
.mtk-eyebrow__sep {
  margin: 0 0.5rem;
  color: var(--stone);
  opacity: 0.5;
}
@keyframes mtk-marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .mtk-eyebrow__track { animation-duration: 180s; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO · niente sole, pattern grid + linee oro
   ═══════════════════════════════════════════════════════════════ */
.mtk-hero {
  position: relative;
  overflow: hidden;
}
.mtk-hero__inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem 3.5rem;
}
@media (min-width: 1024px) {
  .mtk-hero__inner { padding: 6rem 2.5rem 5rem; }
}
.mtk-hero__pattern {
  position: absolute; inset: 0;
  opacity: 0.04;
  pointer-events: none;
}
.mtk-hero__lines {
  position: absolute; right: 0; top: 0;
  width: 40%; height: 280px;
  pointer-events: none;
}

.mtk-hero__eyebrow {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.5rem;
}
.mtk-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 1100px;
}
.mtk-hero h1 em {
  font-style: normal;
  color: var(--gold-deep);
}
.mtk-hero__sub {
  margin-top: 1.75rem;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(10, 37, 64, 0.78);
  max-width: 640px;
}
@media (min-width: 1024px) {
  .mtk-hero__sub { font-size: 18px; }
}

.mtk-cta-row {
  margin-top: 2.5rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem;
}
.mtk-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: all 150ms;
  text-decoration: none;
}
.mtk-btn--primary {
  background: var(--ink);
  color: var(--snow);
}
.mtk-btn--primary:hover { background: var(--royal); }
.mtk-btn--ghost {
  background: var(--snow);
  color: var(--ink);
  border: 1px solid rgba(10, 37, 64, 0.15);
}
.mtk-btn--ghost:hover {
  background: var(--ink);
  color: var(--snow);
  border-color: var(--ink);
}

/* Stats row */
.mtk-stats {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
  max-width: 900px;
}
@media (min-width: 768px) {
  .mtk-stats { grid-template-columns: repeat(4, 1fr); margin-top: 5rem; }
}
.mtk-stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 52px);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.mtk-stat__num.gold { color: var(--gold-deep); }
.mtk-stat__lbl {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}
.mtk-stat__lbl .soft { color: rgba(138, 149, 165, 0.65); }

/* ═══════════════════════════════════════════════════════════════
   MAPPA generale
   ═══════════════════════════════════════════════════════════════ */
.mtk-section {
  background: var(--snow);
  border-top: 1px solid var(--fog);
}
.mtk-section--fog { background: rgba(229, 234, 240, 0.3); }
.mtk-section--ink {
  background: var(--ink);
  color: var(--snow);
  border-top-color: var(--ink);
}
.mtk-section--gold {
  background: var(--gold-bright);
  color: var(--ink);
}
.mtk-section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
@media (min-width: 1024px) {
  .mtk-section__inner { padding: 6rem 2.5rem; }
}
.mtk-section__head {
  display: flex; flex-direction: column; gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 1024px) {
  .mtk-section__head {
    flex-direction: row; align-items: end; justify-content: space-between;
    gap: 1.5rem; margin-bottom: 3.5rem;
  }
}
.mtk-section__eyebrow {
  font-family: var(--font-mono);
  font-weight: 700; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.75rem;
}
.mtk-section--ink .mtk-section__eyebrow,
.mtk-section--gold .mtk-section__eyebrow { color: var(--gold-bright); }
.mtk-section--gold .mtk-section__eyebrow { color: var(--ink); }

.mtk-section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 760px;
}
.mtk-section--ink h2 { color: var(--snow); }

.mtk-section__lead {
  margin-top: 0.75rem;
  font-size: 14px;
  color: var(--stone);
  line-height: 1.6;
  max-width: 460px;
}
@media (min-width: 1024px) {
  .mtk-section__lead { text-align: right; margin-top: 0; }
}
.mtk-section--ink .mtk-section__lead { color: rgba(247, 249, 252, 0.75); }

/* ═══════════════════════════════════════════════════════════════
   FILTRI MAPPA + canvas
   ═══════════════════════════════════════════════════════════════ */
.mtk-map-filters {
  display: flex; flex-wrap: wrap; gap: 0.625rem;
  margin-bottom: 1.25rem;
}
.mtk-filter {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.5rem 0.875rem;
  border-radius: 4px;
  border: 1px solid;
  cursor: pointer;
  transition: all 150ms;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.mtk-filter__dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
}
.mtk-filter--all {
  background: var(--ink); color: var(--snow); border-color: var(--ink);
}
.mtk-filter--sc { background: rgba(30, 91, 168, 0.08); color: var(--royal); border-color: rgba(30, 91, 168, 0.3); }
.mtk-filter--sc .mtk-filter__dot { background: var(--royal); }
.mtk-filter--am { background: rgba(232, 179, 51, 0.12); color: var(--gold-deep); border-color: rgba(174, 128, 19, 0.3); }
.mtk-filter--am .mtk-filter__dot { background: var(--gold-bright); }
.mtk-filter--fr { background: rgba(146, 108, 16, 0.08); color: var(--gold-mid); border-color: rgba(174, 128, 19, 0.25); }
.mtk-filter--fr .mtk-filter__dot { background: var(--gold-mid); }
.mtk-filter--ca { background: rgba(15, 110, 86, 0.08); color: var(--teal); border-color: rgba(15, 110, 86, 0.3); }
.mtk-filter--ca .mtk-filter__dot { background: var(--teal); }
.mtk-filter--sn { background: rgba(10, 37, 64, 0.06); color: var(--ink); border-color: rgba(10, 37, 64, 0.2); }
.mtk-filter--sn .mtk-filter__dot { background: var(--ink); }
.mtk-filter--tr { background: rgba(15, 110, 86, 0.06); color: var(--teal); border-color: rgba(15, 110, 86, 0.25); }
.mtk-filter--tr .mtk-filter__dot { background: #14a578; }
.mtk-filter--sk { background: rgba(83, 119, 168, 0.08); color: var(--royal-light); border-color: rgba(83, 119, 168, 0.3); }
.mtk-filter--sk .mtk-filter__dot { background: var(--royal-light); }
.mtk-filter--bp { background: rgba(146, 108, 16, 0.06); color: var(--gold-deep); border-color: rgba(146, 108, 16, 0.25); }
.mtk-filter--bp .mtk-filter__dot { background: var(--gold-deep); }
.mtk-filter--ri { background: rgba(174, 128, 19, 0.10); color: var(--gold-mid); border-color: rgba(174, 128, 19, 0.35); }
.mtk-filter--ri .mtk-filter__dot { background: var(--gold-mid); }
.mtk-filter:hover { filter: brightness(0.97); }

.mtk-map-wrap {
  position: relative;
  border-radius: 8px;
  border: 1px solid var(--fog);
  overflow: hidden;
  background: rgba(229, 234, 240, 0.3);
  box-shadow: 0 1px 2px rgba(10, 37, 64, 0.04);
}
.mtk-map-canvas {
  width: 100%;
  height: 480px;
}
@media (min-width: 1024px) {
  .mtk-map-canvas { height: 560px; }
}
.mtk-map-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(247, 249, 252, 0.85);
  backdrop-filter: blur(2px);
  pointer-events: none;
  z-index: 5;
}
.mtk-map-loading__inner {
  text-align: center;
}
.mtk-map-loading__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.5rem;
}
.mtk-map-loading__text {
  font-size: 14px;
  color: rgba(10, 37, 64, 0.6);
}
.mtk-map-watermark {
  position: absolute;
  bottom: 0.75rem; right: 0.75rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10, 37, 64, 0.32);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  z-index: 4;
}
.mtk-map-note {
  margin-top: 1rem;
  font-size: 12.5px;
  color: var(--stone);
  line-height: 1.55;
  max-width: 640px;
}

/* Marker tooltip Leaflet */
.leaflet-tooltip {
  background: var(--ink) !important;
  color: var(--snow) !important;
  border: 0 !important;
  border-radius: 4px !important;
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  padding: 0.4rem 0.625rem !important;
  box-shadow: 0 2px 8px rgba(10, 37, 64, 0.15) !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}
.leaflet-tooltip-top:before { border-top-color: var(--ink) !important; }

/* ═══════════════════════════════════════════════════════════════
   GRIGLIA ARCHIVI · niente emoji, solo numero+nome+stato
   ═══════════════════════════════════════════════════════════════ */
.mtk-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.125rem;
}
@media (min-width: 640px) { .mtk-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mtk-cards { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }

.mtk-card {
  position: relative;
  background: var(--snow);
  border: 1px solid var(--fog);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  transition: all 200ms;
  display: flex; flex-direction: column;
  min-height: 200px;
  text-decoration: none; color: inherit;
}
.mtk-card:hover {
  border-color: rgba(10, 37, 64, 0.3);
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.06);
  transform: translateY(-1px);
}
.mtk-card--soft {
  cursor: default;
  opacity: 0.62;
}
.mtk-card--soft:hover {
  border-color: var(--fog);
  box-shadow: none;
  transform: none;
}

.mtk-card__badge {
  align-self: start;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  border: 1px solid;
}
.mtk-card__badge--ok { background: rgba(15, 110, 86, 0.1); color: var(--teal); border-color: rgba(15, 110, 86, 0.2); }
.mtk-card__badge--mvp { background: rgba(30, 91, 168, 0.1); color: var(--royal); border-color: rgba(30, 91, 168, 0.2); }
.mtk-card__badge--ext { background: rgba(232, 179, 51, 0.15); color: var(--gold-deep); border-color: rgba(174, 128, 19, 0.2); }
.mtk-card__badge--soft { background: rgba(138, 149, 165, 0.1); color: rgba(10, 37, 64, 0.5); border-color: rgba(138, 149, 165, 0.2); }

.mtk-card__body {
  margin-top: auto; padding-top: 2rem;
}
.mtk-card__count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.mtk-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  margin-top: 0.5rem;
  transition: color 150ms;
}
.mtk-card:not(.mtk-card--soft):hover h3 { color: var(--royal); }
.mtk-card__sub {
  font-size: 12.5px;
  color: var(--stone);
  margin-top: 0.25rem;
  line-height: 1.4;
}
.mtk-card__arrow {
  position: absolute; top: 1.5rem; right: 1.5rem;
  color: rgba(10, 37, 64, 0.3);
  transition: color 150ms;
}
.mtk-card:not(.mtk-card--soft):hover .mtk-card__arrow { color: var(--royal); }

/* ═══════════════════════════════════════════════════════════════
   PRINCIPI · 3 colonne su scuro
   ═══════════════════════════════════════════════════════════════ */
.mtk-principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 3.5rem;
}
@media (min-width: 768px) {
  .mtk-principles { grid-template-columns: repeat(3, 1fr); gap: 3.5rem; margin-top: 5rem; }
}
.mtk-principle__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-bright);
}
.mtk-principle h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--snow);
  margin-top: 0.75rem;
}
.mtk-principle p {
  margin-top: 0.75rem;
  font-size: 14px;
  color: rgba(247, 249, 252, 0.75);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════
   NEWSLETTER
   ═══════════════════════════════════════════════════════════════ */
.mtk-newsletter h2 {
  color: var(--ink);
  max-width: 640px;
}
.mtk-newsletter__sub {
  margin-top: 0.75rem;
  font-size: 14px;
  color: rgba(10, 37, 64, 0.78);
  max-width: 580px;
  line-height: 1.65;
}
.mtk-newsletter__form {
  margin-top: 2rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  max-width: 600px;
}
@media (min-width: 640px) { .mtk-newsletter__form { flex-direction: row; } }
.mtk-input {
  flex: 1;
  padding: 0.875rem 1rem;
  background: var(--snow);
  border: 1px solid rgba(10, 37, 64, 0.2);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
}
.mtk-input::placeholder { color: rgba(10, 37, 64, 0.4); }
.mtk-input:focus { outline: 0; border-color: var(--ink); }
.mtk-newsletter__legal {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10, 37, 64, 0.6);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.mtk-footer {
  background: var(--ink);
  color: var(--snow);
  margin-top: 6rem;
}
.mtk-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}
@media (min-width: 1024px) {
  .mtk-footer__inner { padding: 5rem 2.5rem; }
}
.mtk-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .mtk-footer__grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}
@media (min-width: 1024px) { .mtk-footer__grid { gap: 4rem; } }

.mtk-footer__brand {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1rem;
}
.mtk-footer__brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
}
.mtk-footer__logo {
  height: 44px; width: auto;
}
.mtk-footer__desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(247, 249, 252, 0.7);
  max-width: 22rem;
}
.mtk-footer__claim {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.mtk-footer h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 1rem;
}
.mtk-footer ul { list-style: none; }
.mtk-footer li { margin-bottom: 0.625rem; }
.mtk-footer li a {
  font-size: 13.5px;
  color: rgba(247, 249, 252, 0.8);
  transition: color 150ms;
}
.mtk-footer li a:hover { color: var(--snow); }

.mtk-footer__edito {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(247, 249, 252, 0.1);
}
.mtk-footer__edito-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 249, 252, 0.5);
}
.mtk-footer__edito-name {
  margin-top: 0.375rem;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--snow);
}
.mtk-footer__edito-author {
  font-family: var(--font-display);
  font-size: 14px;
}
.mtk-footer__edito-author a {
  color: var(--snow);
  text-decoration: underline;
  text-decoration-color: rgba(247, 249, 252, 0.3);
  text-underline-offset: 5px;
  transition: color 150ms, text-decoration-color 150ms;
}
.mtk-footer__edito-author a:hover {
  color: var(--gold-bright);
  text-decoration-color: var(--gold-bright);
}

/* Bottom bar */
.mtk-bottom {
  background: var(--ink-deep);
  border-top: 1px solid rgba(247, 249, 252, 0.08);
}
.mtk-bottom__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  font-size: 11.5px;
  color: rgba(247, 249, 252, 0.55);
}
@media (min-width: 768px) {
  .mtk-bottom__inner { flex-direction: row; align-items: center; justify-content: space-between; padding: 1.25rem 2.5rem; }
}
.mtk-bottom__made {
  display: flex; align-items: center; gap: 1rem;
}
.mtk-tricolore {
  display: inline-flex; height: 4px; width: 40px;
  border-radius: 2px; overflow: hidden;
}
.mtk-tricolore > span { flex: 1; }
.mtk-tricolore > span:nth-child(1) { background: var(--green-it); }
.mtk-tricolore > span:nth-child(2) { background: var(--white-it); }
.mtk-tricolore > span:nth-child(3) { background: var(--red-it); }
.mtk-bottom__made-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mtk-bottom__legal {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.25rem 0.75rem;
}
.mtk-bottom__sep { color: rgba(247, 249, 252, 0.25); }
.mtk-bottom__legal a {
  color: rgba(247, 249, 252, 0.7);
  transition: color 150ms;
}
.mtk-bottom__legal a:hover { color: var(--snow); }

/* ═══════════════════════════════════════════════════════════════
   ARCHIVIO PAGES (sci-club, scuole-sci, ecc)
   ═══════════════════════════════════════════════════════════════ */
.mtk-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
@media (min-width: 1024px) {
  .mtk-page { padding: 6rem 2.5rem; }
}
.mtk-page__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.mtk-page h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 900px;
}
.mtk-page h1 em {
  font-style: normal;
  color: var(--gold-deep);
}
.mtk-page__intro {
  margin-top: 1.5rem;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(10, 37, 64, 0.78);
  max-width: 640px;
}

.mtk-page-stats {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--fog);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .mtk-page-stats { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}
.mtk-page-stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.mtk-page-stat__num.gold { color: var(--gold-deep); }
.mtk-page-stat__num.muted { color: rgba(10, 37, 64, 0.4); }
.mtk-page-stat__lbl {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}

.mtk-page-callout {
  margin-top: 3rem;
  background: rgba(229, 234, 240, 0.4);
  border: 1px solid var(--fog);
  border-radius: 8px;
  padding: 2rem;
  max-width: 720px;
}
@media (min-width: 768px) {
  .mtk-page-callout { padding: 2.5rem; }
}
.mtk-page-callout__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.5rem;
}
.mtk-page-callout h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.mtk-page-callout p {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(10, 37, 64, 0.75);
}

.mtk-page-note {
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ═══════════════════════════════════════════════════════════════
   PROSE per privacy/cookie
   ═══════════════════════════════════════════════════════════════ */
.mtk-prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
@media (min-width: 1024px) { .mtk-prose { padding: 6rem 2.5rem; } }
.mtk-prose h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 2.5rem;
}
.mtk-prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.mtk-prose p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(10, 37, 64, 0.8);
  margin-bottom: 1rem;
}
.mtk-prose strong { font-weight: 600; color: var(--ink); }
.mtk-prose code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(229, 234, 240, 0.5);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
}
.mtk-prose__notice {
  background: rgba(232, 179, 51, 0.12);
  border: 1px solid rgba(174, 128, 19, 0.25);
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
}
.mtk-prose__notice p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════════════════
   DETAIL PAGES · sprint v1.0
   ═══════════════════════════════════════════════════════════════════ */

.mtk-detail {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* Breadcrumb */
.mtk-breadcrumb {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--royal-light);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}
.mtk-breadcrumb a {
  color: var(--royal);
  text-decoration: none;
}
.mtk-breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.mtk-breadcrumb__sep {
  margin: 0 0.5rem;
  color: var(--gold-mid);
}
.mtk-breadcrumb__current {
  color: var(--ink);
  font-weight: 500;
}

/* Hero detail */
.mtk-detail-hero {
  border-bottom: 1px solid var(--fog);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}
.mtk-detail-hero__eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.mtk-detail-hero__h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}
.mtk-detail-hero__sub {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: var(--royal-light);
  margin: 0 0 1.25rem;
}
.mtk-detail-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Badges */
.mtk-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.mtk-badge--royal {
  background: rgba(30, 91, 168, 0.08);
  color: var(--royal);
  border-color: rgba(30, 91, 168, 0.25);
}
.mtk-badge--gold {
  background: rgba(232, 179, 51, 0.12);
  color: var(--gold-deep);
  border-color: rgba(174, 128, 19, 0.3);
}
.mtk-badge--teal {
  background: rgba(15, 110, 86, 0.08);
  color: var(--teal);
  border-color: rgba(15, 110, 86, 0.3);
}
.mtk-badge--warn {
  background: rgba(241, 228, 54, 0.18);
  color: var(--gold-deep);
  border-color: rgba(174, 128, 19, 0.35);
}
.mtk-badge--neutral {
  background: rgba(10, 37, 64, 0.06);
  color: var(--ink);
  border-color: rgba(10, 37, 64, 0.18);
}

/* Detail grid 2-col */
.mtk-detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 880px) {
  .mtk-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Section blocks dentro detail */
.mtk-detail-section {
  margin-bottom: 2.5rem;
}
.mtk-detail-section__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold-mid);
  margin: 0 0 1rem;
  letter-spacing: -0.005em;
}

/* Key-value pairs */
.mtk-data {
  list-style: none;
  margin: 0; padding: 0;
}
.mtk-data li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--fog);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}
.mtk-data li:last-child { border-bottom: none; }
.mtk-data__key {
  color: var(--royal-light);
  font-weight: 500;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 0.05rem;
}
.mtk-data__val {
  color: var(--ink);
  word-break: break-word;
}
.mtk-data__val a { color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid rgba(174, 128, 19, 0.4); }
.mtk-data__val a:hover { color: var(--gold-mid); border-bottom-color: var(--gold-mid); }
.mtk-data__val--muted { color: var(--royal-light); font-style: italic; }
@media (max-width: 600px) {
  .mtk-data li { grid-template-columns: 1fr; gap: 0.2rem; padding: 0.85rem 0; }
}

/* Pills (discipline / specializzazioni) */
.mtk-pills {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  list-style: none; margin: 0; padding: 0;
}
.mtk-pills li {
  background: rgba(30, 91, 168, 0.07);
  color: var(--royal);
  border: 1px solid rgba(30, 91, 168, 0.2);
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Mini mappa */
.mtk-mini-map {
  width: 100%;
  height: 380px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--fog);
  background: rgba(229, 234, 240, 0.3);
}
.mtk-no-map {
  padding: 2.5rem 1.5rem;
  background: rgba(229, 234, 240, 0.4);
  border: 1px dashed var(--fog);
  border-radius: 8px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  color: var(--royal-light);
  font-size: 0.95rem;
}

/* Contact buttons */
.mtk-contacts {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-top: 0.5rem;
}
.mtk-contacts a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  background: var(--ink);
  color: var(--gold-bright);
  transition: background 200ms;
}
.mtk-contacts a:hover { background: var(--royal); }
.mtk-contacts a.mtk-contacts__ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.mtk-contacts a.mtk-contacts__ghost:hover {
  background: var(--ink);
  color: var(--gold-bright);
}

/* Vicini */
.mtk-near {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  list-style: none; margin: 0; padding: 0;
}
.mtk-near li a {
  display: block;
  padding: 1rem 1.1rem;
  background: var(--snow);
  border: 1px solid var(--fog);
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 200ms, transform 200ms;
}
.mtk-near li a:hover {
  border-color: var(--gold-mid);
  transform: translateY(-2px);
}
.mtk-near__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
  line-height: 1.3;
}
.mtk-near__loc {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--royal-light);
}

/* Back CTA */
.mtk-back {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--fog);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.mtk-back a {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border-radius: 6px;
  border: 1px solid var(--fog);
  color: var(--royal);
  transition: all 200ms;
}
.mtk-back a:hover {
  border-color: var(--royal);
  background: rgba(30, 91, 168, 0.05);
}

/* Sources block */
.mtk-sources {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: rgba(229, 234, 240, 0.3);
  border-left: 3px solid var(--gold-mid);
  border-radius: 0 4px 4px 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--royal-light);
}
.mtk-sources strong { color: var(--ink); font-weight: 600; }
.mtk-sources a { color: var(--gold-deep); text-decoration: none; }
.mtk-sources a:hover { text-decoration: underline; }

/* Indice regionale */
.mtk-index-list {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}
.mtk-index-list li a {
  display: block;
  padding: 0.85rem 1.1rem;
  background: var(--snow);
  border: 1px solid var(--fog);
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  transition: all 180ms;
}
.mtk-index-list li a:hover {
  border-color: var(--gold-mid);
  background: rgba(232, 179, 51, 0.04);
}
.mtk-index-list__name {
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.15rem;
}
.mtk-index-list__loc {
  font-size: 0.82rem;
  color: var(--royal-light);
}

/* ═══════════════════════════════════════════════════════════════════
   SEARCH · header icon + Pagefind UI override
   ═══════════════════════════════════════════════════════════════════ */

.mtk-header__search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  margin-left: 0.4rem;
  transition: all 180ms;
}
.mtk-header__search:hover {
  border-color: var(--gold-mid);
  color: var(--gold-deep);
  background: rgba(232, 179, 51, 0.08);
}
.mtk-header__search svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .mtk-header__search { width: 32px; height: 32px; }
  .mtk-header__search svg { width: 16px; height: 16px; }
}

/* Pagefind UI - override colori per matchare palette Mountaking */
:root {
  --pagefind-ui-primary: #1E5BA8;          /* royal */
  --pagefind-ui-text: #0A2540;             /* ink */
  --pagefind-ui-background: #FFFFFF;
  --pagefind-ui-border: #E5EAF0;           /* fog */
  --pagefind-ui-tag: rgba(30, 91, 168, 0.07);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 6px;
  --pagefind-ui-image-border-radius: 4px;
  --pagefind-ui-image-box-ratio: 3/2;
  --pagefind-ui-font: 'Inter', system-ui, sans-serif;
}

.pagefind-ui {
  font-family: 'Inter', sans-serif;
}
.pagefind-ui__search-input {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  border-color: var(--fog);
  background: white;
  color: var(--ink);
}
.pagefind-ui__search-input:focus {
  border-color: var(--royal);
  outline: 2px solid rgba(30, 91, 168, 0.15);
}
.pagefind-ui__result-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}
.pagefind-ui__result-title a {
  color: var(--ink);
}
.pagefind-ui__result-title a:hover {
  color: var(--gold-deep);
}
.pagefind-ui__result-tags { color: var(--gold-deep); }
.pagefind-ui__filter-name { color: var(--royal); font-weight: 600; }

/* Pagina /cerca/ wrapper */
.mtk-search-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.mtk-search-page h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.5rem;
  letter-spacing: -0.015em;
}
.mtk-search-page__sub {
  font-family: 'Inter', sans-serif;
  color: var(--royal-light);
  margin: 0 0 2.5rem;
  font-size: 1.05rem;
}
.mtk-search-page__hint {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(229, 234, 240, 0.4);
  border-left: 3px solid var(--gold-mid);
  border-radius: 0 4px 4px 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--royal-light);
}
.mtk-search-page__hint strong { color: var(--ink); }
.mtk-search-page__hint code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  background: white;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  color: var(--gold-deep);
}

/* ═══════════════════════════════════════════════════════════════════
   LANDING NATIONALE · "Esplora per regione" + lista cammini
   ═══════════════════════════════════════════════════════════════════ */

.mtk-landing-cta {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.mtk-landing-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 200ms;
}
.mtk-landing-cta a.primary {
  background: var(--ink);
  color: var(--gold-bright);
}
.mtk-landing-cta a.primary:hover { background: var(--royal); }
.mtk-landing-cta a.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.mtk-landing-cta a.ghost:hover {
  background: var(--ink);
  color: var(--gold-bright);
}

.mtk-region-block {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.mtk-region-block__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5rem;
  letter-spacing: -0.005em;
}
.mtk-region-block__sub {
  font-family: 'Inter', sans-serif;
  color: var(--royal-light);
  margin: 0 0 2rem;
  font-size: 0.95rem;
}

.mtk-region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0; padding: 0;
}
.mtk-region-grid li a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  background: var(--snow);
  border: 1px solid var(--fog);
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  transition: all 180ms;
}
.mtk-region-grid li a:hover {
  border-color: var(--gold-mid);
  background: rgba(232, 179, 51, 0.04);
  transform: translateY(-1px);
}
.mtk-region-grid__name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}
.mtk-region-grid__count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--gold-deep);
  background: rgba(232, 179, 51, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* Cammini flat list */
.mtk-cammini-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.6rem;
  list-style: none;
  margin: 0; padding: 0;
}
.mtk-cammini-list li a {
  display: block;
  padding: 0.85rem 1.1rem;
  background: var(--snow);
  border: 1px solid var(--fog);
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  transition: all 180ms;
}
.mtk-cammini-list li a:hover {
  border-color: var(--teal);
  background: rgba(15, 110, 86, 0.04);
}
.mtk-cammini-list__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  line-height: 1.25;
}
.mtk-cammini-list__meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--royal-light);
}
.mtk-cammini-list__meta .cat {
  color: var(--teal);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE UX · v0.14
   ═══════════════════════════════════════════════════════════════════ */

/* Bottom bar mobile · sticky, solo mobile */
.mtk-bottom-bar {
  display: none;
}
@media (max-width: 768px) {
  .mtk-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(10, 37, 64, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--gold-deep);
    padding: 0.5rem 0.5rem env(safe-area-inset-bottom, 0.5rem);
    justify-content: space-around;
    box-shadow: 0 -4px 20px rgba(10, 37, 64, 0.25);
  }
  .mtk-bottom-bar a, .mtk-bottom-bar button {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 0.2rem;
    padding: 0.5rem 0.2rem;
    background: transparent;
    border: none;
    text-decoration: none;
    color: var(--gold-bright);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    transition: color 180ms;
    cursor: pointer;
  }
  .mtk-bottom-bar a:hover, .mtk-bottom-bar button:hover { color: var(--lemon, #F1E436); }
  .mtk-bottom-bar svg { width: 22px; height: 22px; stroke-width: 2; }
  /* Aggiungi padding-bottom al body così il footer non viene coperto */
  body { padding-bottom: 64px; }
}

/* Filtro by area + paginazione client-side */
.mtk-list-controls {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  align-items: center;
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(229, 234, 240, 0.4);
  border: 1px solid var(--fog);
  border-radius: 6px;
}
.mtk-list-controls__input {
  flex: 1 1 240px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--fog);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  background: white;
  color: var(--ink);
}
.mtk-list-controls__input:focus {
  outline: 2px solid rgba(30, 91, 168, 0.2);
  border-color: var(--royal);
}
.mtk-list-controls__select {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--fog);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  background: white;
  color: var(--ink);
  cursor: pointer;
}
.mtk-list-controls__count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--royal-light);
  margin-left: auto;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .mtk-list-controls { padding: 0.75rem; }
  .mtk-list-controls__count { width: 100%; text-align: right; }
}

.mtk-list-pagination {
  display: flex; justify-content: center; gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.mtk-list-pagination button {
  padding: 0.5rem 1rem;
  border: 1px solid var(--fog);
  background: white;
  color: var(--ink);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 180ms;
}
.mtk-list-pagination button:hover:not(:disabled) {
  border-color: var(--gold-mid);
  background: rgba(232, 179, 51, 0.05);
}
.mtk-list-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.mtk-list-pagination button.active {
  background: var(--ink);
  color: var(--gold-bright);
  border-color: var(--ink);
}

/* Liste flat ottimizzate per mobile */
@media (max-width: 600px) {
  .mtk-cammini-list {
    /* override rimosso v0.14.1 */
  }
  .mtk-region-grid {
    /* override rimosso v0.14.1 - vedi blocco in fondo per il nuovo grid 2-col mobile */
  }
}

/* Fix lista flat: limit altezza con scroll su mobile */
.mtk-flat-list-wrap {
  position: relative;
}

/* Prosa narrativa nelle schede */
.mtk-poi-prose {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--fog);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
}
.mtk-poi-prose p {
  margin: 0 0 1rem;
}
.mtk-poi-prose p:last-child {
  margin-bottom: 0;
}
.mtk-poi-prose strong {
  color: var(--gold-deep);
  font-weight: 600;
}

/* FAQ schema visivo */
.mtk-faq {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--fog);
}
.mtk-faq h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 1.5rem;
}
.mtk-faq details {
  border-bottom: 1px solid var(--fog);
  padding: 1rem 0;
}
.mtk-faq summary {
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.mtk-faq summary::-webkit-details-marker { display: none; }
.mtk-faq summary::after {
  content: "+";
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  color: var(--gold-deep);
  font-weight: 400;
  flex-shrink: 0;
}
.mtk-faq details[open] summary::after { content: "−"; }
.mtk-faq details[open] summary { color: var(--gold-deep); }
.mtk-faq__answer {
  margin-top: 0.75rem;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════
   v0.14.1 · FIX LISTE LANDING + GRIGLIA REGIONI
   Sostituisce le definizioni precedenti.
   ═══════════════════════════════════════════════════════════════════ */

/* ── LISTA FLAT (Elenco completo) ── */
.mtk-cammini-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mtk-cammini-list li a {
  display: block;
  padding: 0.85rem 1.1rem;
  background: var(--snow);
  border: 1px solid var(--fog);
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  transition: all 180ms;
}
.mtk-cammini-list li a:hover {
  border-color: var(--gold-mid);
  background: rgba(232, 179, 51, 0.04);
  transform: translateY(-1px);
}
.mtk-cammini-list .mtk-flat-name {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 0.3rem;
}
.mtk-cammini-list .mtk-flat-meta {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--royal-light);
  line-height: 1.4;
}
.mtk-cammini-list .mtk-flat-area {
  color: var(--gold-deep);
  font-weight: 500;
}
.mtk-cammini-list .mtk-flat-sub {
  color: var(--royal-light);
}
.mtk-cammini-list .mtk-flat-sep {
  margin: 0 0.5rem;
  color: var(--gold-mid);
  font-weight: 500;
}

@media (max-width: 600px) {
  .mtk-cammini-list {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .mtk-cammini-list li a {
    padding: 0.95rem 1rem;
  }
  .mtk-cammini-list .mtk-flat-name {
    font-size: 0.96rem;
    margin-bottom: 0.35rem;
  }
  .mtk-cammini-list .mtk-flat-meta {
    font-size: 0.82rem;
  }
}

/* ── GRIGLIA REGIONI (Esplora per regione) ── */
.mtk-region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mtk-region-grid li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--snow);
  border: 1px solid var(--fog);
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  transition: all 180ms;
}
.mtk-region-grid li a:hover {
  border-color: var(--gold-mid);
  background: rgba(232, 179, 51, 0.04);
  transform: translateY(-1px);
}
.mtk-region-grid__name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.25;
  flex: 1;
  min-width: 0;
}
.mtk-region-grid__count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold-deep);
  background: rgba(232, 179, 51, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .mtk-region-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
  }
  .mtk-region-grid li a {
    padding: 0.7rem 0.7rem;
    gap: 0.4rem;
  }
  .mtk-region-grid__name {
    font-size: 0.85rem;
  }
  .mtk-region-grid__count {
    font-size: 0.68rem;
    padding: 0.1rem 0.4rem;
  }
}

@media (max-width: 359px) {
  .mtk-region-grid {
    grid-template-columns: 1fr;
  }
}

/* ── BOTTOM BAR · padding body più aggressivo ── */
@media (max-width: 768px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

/* ── Header sticky non si sovrappone con bottom-bar ── */
@media (max-width: 768px) {
  .mtk-mobile-menu.open {
    /* non coprire la bottom-bar */
    bottom: 64px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   v0.14.1b · OVERRIDE MOBILE FORZATO
   Garantisce il rendering mobile corretto contro qualsiasi cascade.
   ═══════════════════════════════════════════════════════════════════ */

/* Mobile fino a 600px: 2 colonne forzate sulla griglia regioni */
@media screen and (max-width: 600px) {
  .mtk-region-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
  }
  .mtk-region-grid li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }
  .mtk-region-grid li a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.4rem !important;
    padding: 0.7rem 0.7rem !important;
    background: var(--snow) !important;
    border: 1px solid var(--fog) !important;
    border-radius: 6px !important;
    text-decoration: none !important;
  }
  .mtk-region-grid__name {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: var(--ink) !important;
  }
  .mtk-region-grid__count {
    font-size: 0.68rem !important;
    padding: 0.1rem 0.4rem !important;
    background: rgba(232, 179, 51, 0.1) !important;
    color: var(--gold-deep) !important;
    border-radius: 999px !important;
    flex-shrink: 0 !important;
  }
}

/* Tra 380 e 600 mantengo 2 colonne, sotto 380 vado a 1 colonna */
@media screen and (max-width: 359px) {
  .mtk-region-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Lista flat: forza il grid su 1 colonna su mobile e formattazione meta su 2 righe */
@media screen and (max-width: 600px) {
  .mtk-cammini-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }
  .mtk-cammini-list li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }
  .mtk-cammini-list li a {
    display: block !important;
    padding: 0.95rem 1rem !important;
    background: var(--snow) !important;
    border: 1px solid var(--fog) !important;
    border-radius: 6px !important;
    text-decoration: none !important;
  }
  .mtk-cammini-list .mtk-flat-name {
    display: block !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--ink) !important;
    line-height: 1.3 !important;
    margin-bottom: 0.35rem !important;
  }
  .mtk-cammini-list .mtk-flat-meta {
    display: block !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
  }
  .mtk-cammini-list .mtk-flat-area {
    color: var(--gold-deep) !important;
    font-weight: 500 !important;
  }
  .mtk-cammini-list .mtk-flat-sub {
    color: var(--royal-light) !important;
  }
  .mtk-cammini-list .mtk-flat-sep {
    margin: 0 0.5rem !important;
    color: var(--gold-mid) !important;
    font-weight: 500 !important;
  }
}

/* Bottom bar mobile: garantisce non copertura */
@media screen and (max-width: 768px) {
  body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
