/* RC88 · Atlante delle Rotte: un solo ingresso, due modi complementari.
   È una fascia d'ingresso, non una vetrina: tutta la fascia è cliccabile e
   porta all'Atlante. Nessun pulsante separato, nessuna etichetta ripetuta,
   nessuno spazio verticale sprecato. */
.routes-atlas-home-banner {
  width: min(var(--home-feature-max-width, 1120px), calc(100% - (var(--home-feature-gutter, 24px) * 2)));
  margin: 10px auto 14px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(224, 183, 105, .4);
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 50%, rgba(205, 143, 65, .26), transparent 26%),
    linear-gradient(108deg, #172d2b 0%, #1c4540 56%, #2b2623 100%);
  box-shadow: 0 8px 18px rgba(35, 31, 22, .13);
}

/* Un unico pulsante che riempie la fascia: il testo stesso è il comando. */
.routes-atlas-home-hit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 11px clamp(13px, 2.5vw, 20px);
  border: 0;
  background: transparent;
  color: #fffaf0;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease;
}

.routes-atlas-home-hit:hover {
  background: rgba(255, 255, 255, .06);
}

.routes-atlas-home-hit:focus-visible {
  outline: 3px solid rgba(242, 201, 120, .6);
  outline-offset: -3px;
}

.routes-atlas-home-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

/* Disegnino d'identificazione: una mappa piegata con un percorso tratteggiato
   che finisce sul segnaposto. Sta a sinistra del titolo, così il banner si
   riconosce al volo anche scorrendo la Home di fretta. */
.routes-atlas-home-art {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 250, 240, .3);
  border-radius: 13px;
  background: linear-gradient(150deg, #fffdf8 0%, #f7e7c6 62%, #eccf9c 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .45), 0 6px 14px rgba(12, 30, 28, .28);
  transform: rotate(-6deg);
  transition: transform .18s ease;
  flex: none;
}

.routes-atlas-home-art svg {
  display: block;
  width: 32px;
  height: 32px;
}

.routes-atlas-art-road { stroke: #1c4540; }
.routes-atlas-art-start { fill: #1c4540; }
.routes-atlas-art-pin { fill: #c8953f; }
.routes-atlas-art-pin-dot { fill: #fffdf8; }

.routes-atlas-home-hit:hover .routes-atlas-home-art {
  transform: rotate(-2deg) translateY(-1px);
}

/* Titolo e descrizione su una sola riga ottica: l'etichetta
   «STORIE · PERCORSI · FUGHE» ripeteva il titolo e allungava la fascia. */
.routes-atlas-home-title {
  display: block;
  margin: 0;
  color: #fffaf0;
  font: 900 clamp(1.7rem, 3.6vw, 2.35rem)/1.08 Georgia, serif;
  letter-spacing: -.02em;
}

.routes-atlas-home-lead {
  display: -webkit-box;
  max-width: 72ch;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 250, 240, .76);
  font: 600 clamp(.92rem, 1.25vw, 1.08rem)/1.34 system-ui, sans-serif;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.routes-atlas-home-arrow {
  color: #f2c978;
  font-size: 1.3rem;
  line-height: 1;
  transition: transform .18s ease;
}

.routes-atlas-home-hit:hover .routes-atlas-home-arrow {
  transform: translateX(3px);
}

.routes-atlas-switcher { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; padding: 7px; border: 1px solid rgba(29,75,67,.14); border-radius: 13px; background: rgba(29,75,67,.06); }
.routes-atlas-switch { min-height: 40px; padding: 0 13px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #667874; font: 850 .72rem/1 system-ui, sans-serif; cursor: pointer; }
.routes-atlas-switch:hover { background: rgba(29,75,67,.08); color: #1d4b43; }
.routes-atlas-switch.is-active { border-color: rgba(200,149,63,.65); background: #fffdf8; color: #1d4b43; box-shadow: 0 4px 12px rgba(29,52,48,.08); }
.routes-atlas-switch:focus-visible { outline: 3px solid rgba(200,149,63,.45); outline-offset: 2px; }
.routes-atlas-switcher--dark { border-color: rgba(247,242,232,.16); background: rgba(255,255,255,.05); }
.routes-atlas-switcher--dark .routes-atlas-switch { color: #b7afa2; }
.routes-atlas-switcher--dark .routes-atlas-switch:hover { background: rgba(255,255,255,.08); color: #f7f2e8; }
.routes-atlas-switcher--dark .routes-atlas-switch.is-active { border-color: rgba(255,191,71,.62); background: rgba(255,191,71,.14); color: #ffcf68; box-shadow: none; }

@media (max-width: 650px) {
  .routes-atlas-home-banner { border-radius: 13px; margin-top: 10px; margin-bottom: 12px; }
  .routes-atlas-home-hit { gap: 9px; padding: 11px 13px; }
  .routes-atlas-home-art { width: 40px; height: 40px; border-radius: 11px; }
  .routes-atlas-home-art svg { width: 28px; height: 28px; }
  .routes-atlas-home-title { font-size: clamp(1.68rem, 7.2vw, 2.05rem); }
  .routes-atlas-home-lead { font-size: .92rem; -webkit-line-clamp: 2; }
  .routes-atlas-switcher { gap: 5px; }
  .routes-atlas-switch { flex: 1 1 145px; min-height: 43px; }
}

@media (prefers-reduced-motion: reduce) {
  .routes-atlas-home-hit,
  .routes-atlas-home-arrow,
  .routes-atlas-home-art { transition: none; }
}
