:root {
  --blue: #b30d00;
  --dark-blue: #343434;
  --river: #b30d00;
  --green: #7b6d48;
  --yellow: #d9b67c;
  --pink: #a65440;
  --purple: #77645b;
  --surface: #f3f3f3;
  --ink: #1f2a37;
  --muted: #5f6b7a;
  --body: Arial, system-ui, sans-serif;
  --display: Arial, system-ui, sans-serif;
  --radius: 16px;
  --shadow: 0 18px 45px rgba(52, 52, 52, 0.14);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--body);
  font-weight: 500;
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.14;
}

a {
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ink);
  box-shadow: 0 0 0 3px #fff;
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--dark-blue);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.container,
.footer-inner {
  width: min(1240px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: #fff;
  background: rgba(24, 21, 18, 0.94);
  transition: color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled,
.site-header.has-open-menu,
.site-header.is-solid {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 26px rgba(52, 52, 52, 0.1);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1240px, calc(100% - 2.5rem));
  min-height: 76px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(165px, 1fr) auto minmax(165px, 1fr);
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand img,
.logo {
  width: auto;
  height: 44px;
}


.logo-solid {
  display: none;
}

.is-scrolled .logo-light,
.has-open-menu .logo-light,
.is-solid .logo-light {
  display: none;
}

.is-scrolled .logo-solid,
.has-open-menu .logo-solid,
.is-solid .logo-solid {
  display: block;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
}

.primary-nav a {
  padding: 0.6rem 0.1rem;
  color: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.primary-nav a:hover {
  color: var(--yellow);
}

.is-scrolled .primary-nav a:hover,
.has-open-menu .primary-nav a:hover,
.is-solid .primary-nav a:hover {
  color: var(--river);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
}

.search-link {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: inherit;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.search-link:hover {
  background: rgba(255, 255, 255, 0.18);
}

.is-scrolled .search-link:hover,
.has-open-menu .search-link:hover {
  background: var(--surface);
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.language-switcher a {
  color: inherit;
  opacity: 1;
  min-width: 36px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.language-switcher a:hover,
.language-switcher a.is-active {
  opacity: 1;
}

.language-switcher a.is-active {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.language-switcher span {
  opacity: 0.5;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px 8px;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: transparent;
}

.menu-toggle > span:not(.visually-hidden) {
  display: block;
  width: 23px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] > span:nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] > span:nth-child(3) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] > span:nth-child(4) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: min(760px, 90svh);
  padding: 8rem 0 6rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20, 16, 12, 0.72), rgba(20, 16, 12, 0.66) 48%, rgba(20, 16, 12, 0.78));
  pointer-events: none;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(790px, calc(100% - 2rem));
  padding-block: 1rem;
}

.kicker {
  margin: 0 0 1rem;
  color: inherit;
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.kicker.blue {
  color: var(--river);
}

.kicker.pink {
  color: var(--pink);
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.3rem, 5.6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.3);
}

.hero-lead {
  max-width: 650px;
  margin: 1.4rem auto 0;
  color: #fff;
  font-size: 1.12rem;
}

.hero-lead p,
.lead p,
.promo-copy p,
.section-heading-copy p {
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.actions.align-left {
  justify-content: flex-start;
}

.button {
  display: inline-flex;
  min-height: 46px;
  padding: 0.72rem 1.4rem;
  align-items: center;
  justify-content: center;
  color: var(--dark-blue);
  background: var(--yellow);
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(52, 52, 52, 0.18);
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 28px rgba(52, 52, 52, 0.23);
}

.button.secondary {
  color: #fff;
  background: rgba(20, 16, 12, 0.56);
  border: 1px solid #fff;
  box-shadow: none;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 1.5rem;
  left: 50%;
  width: 27px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: scroll-cue 1.8s ease infinite;
  transform: translateX(-50%);
}

@keyframes scroll-cue {
  0%, 100% { opacity: 0.4; transform: translate(-50%, 0); }
  50% { opacity: 1; transform: translate(-50%, 10px); }
}

.section {
  padding: clamp(3.8rem, 7vw, 6rem) 0;
}

.surface {
  background: var(--surface);
}

.section h2 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(1.95rem, 3.5vw, 2.9rem);
  font-weight: 500;
}

.intro {
  max-width: 800px;
  text-align: center;
}

.lead {
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.wave {
  width: 120px;
  height: 28px;
  margin: 0 auto 0.75rem;
  background: url("data:image/svg+xml,%3Csvg width='120' height='24' viewBox='0 0 120 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 8 Q17 0 32 8 T62 8 T92 8 T118 8' stroke='%23B30D00' stroke-width='3.2' stroke-linecap='round' opacity='.85'/%3E%3Cpath d='M2 16 Q17 8 32 16 T62 16 T92 16 T118 16' stroke='%23B30D00' stroke-width='3.2' stroke-linecap='round' opacity='.42'/%3E%3C/svg%3E") center / contain no-repeat;
}

.segments-section {
  padding-top: 0.5rem;
}

.municipalities-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.municipalities-grid.is-single {
  max-width: 36rem;
}

.municipality-card {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(52, 52, 52, 0.12);
  text-decoration: none;
  isolation: isolate;
}

.municipality-card img,
.municipality-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.municipality-card img {
  z-index: -2;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.municipality-overlay {
  z-index: -1;
  background: linear-gradient(to top, rgba(20, 16, 12, 0.86), rgba(20, 16, 12, 0.66));
}

.municipality-card > div {
  padding: 1.1rem;
}

.municipality-card p,
.municipality-card h3 {
  margin: 0;
}

.municipality-card p {
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.municipality-card h3 {
  margin-top: 0.2rem;
  color: #fff;
  font-size: 1.18rem;
}

.municipality-card span:not(.municipality-overlay) {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
}

.municipality-card:hover img {
  transform: scale(1.06);
}

.segments-intro {
  max-width: 760px;
  margin: 0 auto 2.6rem;
  text-align: center;
}

.segments-intro p {
  margin: 0.75rem auto 0;
  color: var(--muted);
}

.segments-intro .region,
.segments-intro .block,
.section-head-region .region,
.section-head-region .block,
.promo-section .region,
.promo-section .block,
.region-homepage-hero,
.region-homepage-hero > .block,
.region-homepage-intro,
.region-homepage-intro > .block {
  display: contents;
}

.editable-section-heading {
  display: grid;
}

.segments-intro .editable-section-heading {
  justify-items: center;
}

.section-head-region .editable-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-head-region .kicker {
  color: var(--river);
}

.agenda-heading-region .kicker {
  color: var(--pink);
}

.section-heading-copy {
  margin-top: 0.75rem;
  color: var(--muted);
}

.segments-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.segment-card {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 305px;
  display: grid;
  align-items: end;
  padding: 1.5rem;
  overflow: hidden;
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(52, 52, 52, 0.09);
  isolation: isolate;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.segment-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(52, 52, 52, 0.2);
}

.segment-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(20, 16, 12, 0.86), rgba(20, 16, 12, 0.66) 70%);
}

.segment-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.segment-card:hover .segment-photo {
  transform: scale(1.055);
}

.segment-mark {
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--segment);
}

.segment-icon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--segment);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(52, 52, 52, 0.25);
}

.segment-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.segment-code {
  position: absolute;
  top: 1.5rem;
  right: 1rem;
  font-family: var(--display);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.segment-content h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.segment-content p {
  margin: 0.4rem 0 0;
  color: #fff;
  font-size: 0.87rem;
  line-height: 1.4;
}

.segment-content a {
  display: inline-flex;
  margin-top: 0.75rem;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
  opacity: 1;
  transform: none;
  text-decoration: underline;
  min-height: 44px;
  align-items: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.segment-content a::after {
  content: "›";
  margin-left: 0.4rem;
  font-size: 1.15em;
}

.segment-card:hover .segment-content a,
.segment-card:focus-within .segment-content a {
  opacity: 1;
  transform: none;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.map-shell {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border: 1px solid rgba(52, 52, 52, 0.14);
  border-radius: 20px;
  background: #e6eee4;
  box-shadow: 0 8px 30px rgba(52, 52, 52, 0.08);
}

.galera-map {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 410px;
}

.map-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  color: var(--blue);
  background: linear-gradient(24deg, transparent 47%, rgba(255, 255, 255, 0.8) 48% 52%, transparent 53%), #e9eee4;
}

.map-shell.is-ready .map-fallback {
  display: none;
}

.map-fallback strong {
  position: absolute;
  top: 44%;
  left: 45%;
  font-family: var(--display);
  font-size: 1.8rem;
}

.river {
  position: absolute;
  top: -10%;
  right: 8%;
  width: 30%;
  height: 130%;
  background: #9ec9db;
  transform: rotate(18deg);
}

.fallback-pin {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  background: var(--pink);
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 5px 12px rgba(52, 52, 52, 0.24);
  transform: rotate(-45deg);
}

.pin-one { top: 35%; left: 42%; }
.pin-two { top: 58%; left: 55%; background: var(--blue); }
.pin-three { top: 22%; left: 61%; background: var(--green); }

.leaflet-control-attribution {
  font-family: Arial, sans-serif;
  font-weight: 400;
}

.galera-leaflet-marker span {
  display: block;
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(52, 52, 52, 0.35);
}

.routes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.route-card {
  overflow: hidden;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(52, 52, 52, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 5px 22px rgba(52, 52, 52, 0.09);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.route-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(52, 52, 52, 0.16);
}

.route-card > img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.route-card__copy {
  padding: 1.25rem;
}

.route-card h3 {
  margin: 0.55rem 0 0;
  color: var(--blue);
  font-size: 1.35rem;
}

.route-card h3 + p {
  min-height: 4.2em;
  margin: 0.5rem 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.route-difficulty {
  display: inline-flex;
  padding: 0.25rem 0.65rem;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.route-difficulty.is-moderate { background: #86521e; }
.route-difficulty.is-difficult { background: #a0524a; }

.route-card dl {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(52, 52, 52, 0.1);
}

.route-card dl div {
  display: grid;
}

.route-card dt {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-card dd {
  margin: 0;
  color: var(--blue);
  font-weight: 900;
}

.app-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  overflow: hidden;
  color: #fff;
  background: var(--blue);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.app-copy {
  padding: clamp(2.2rem, 5vw, 4.3rem);
}

.app-panel h2 {
  color: #fff;
}

.app-copy > p:not(.kicker) {
  max-width: 570px;
  color: #fff;
  font-size: 1.05rem;
}

.app-panel > img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
}

.event-list {
  display: grid;
  gap: 1rem;
}

.event-card {
  position: relative;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) 40px;
  align-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(52, 52, 52, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(52, 52, 52, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: inherit;
  text-decoration: none;
}

.event-card:hover {
  transform: translateX(3px);
  box-shadow: 0 12px 26px rgba(52, 52, 52, 0.12);
}

.event-card time {
  align-self: stretch;
  min-height: 118px;
  display: grid;
  place-content: center;
  color: #fff;
  background: var(--pink);
  text-align: center;
}

.event-card:nth-child(2) time { background: var(--yellow); color: var(--dark-blue); }
.event-card:nth-child(3) time { background: var(--purple); }

.event-card time strong {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
}

.event-card time span {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.event-card > div {
  padding: 1rem 1.35rem;
}

.event-type {
  margin: 0 0 0.2rem;
  color: var(--pink);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-card h3 {
  margin: 0;
  color: var(--blue);
  font-size: 1.25rem;
}

.event-card h3 + p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.event-arrow {
  color: var(--river);
  font-family: var(--display);
  font-size: 2rem;
}

.site-footer {
  padding: 3.5rem 0 1.4rem;
  color: #fff;
  background: var(--dark-blue);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 3rem;
}

.footer-brand img {
  width: auto;
  height: 48px;
  margin-bottom: 1.4rem;
}

.footer-brand h2 {
  margin: 0;
  color: #fff;
  font-size: 1.55rem;
}

.footer-brand p {
  max-width: 520px;
  margin: 0.6rem 0 0;
  color: #e3e3e3;
}

.footer-nav {
  display: grid;
  gap: 0.55rem;
  min-width: 150px;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--yellow);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  color: #dedede;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
}

.drupal-content {
  min-height: 65vh;
  padding-top: 120px;
  padding-bottom: 5rem;
}

.simple-header {
  grid-template-columns: 1fr auto;
}

.back-home {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 1023px) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
  }

  .menu-toggle {
    display: block;
    grid-column: 2;
    grid-row: 1;
  }

  .header-actions {
    grid-column: 3;
  }

  .primary-nav {
    position: fixed;
    top: 76px;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 0.8rem 1.25rem 1.4rem;
    color: var(--blue);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 30px rgba(52, 52, 52, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .has-open-menu .primary-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .primary-nav a {
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid rgba(52, 52, 52, 0.09);
  }

  .segments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .municipalities-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .routes-grid {
    grid-template-columns: 1fr;
  }

  .route-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  }

  .route-card > img {
    height: 100%;
    min-height: 260px;
  }
}

@media (max-width: 760px) {
  .header-inner,
  .container,
  .footer-inner {
    width: min(100% - 2rem, 1240px);
  }

  .header-inner {
    gap: 0.45rem;
  }

  .logo,
  .brand img {
    height: 39px;
  }

  .language-switcher {
    display: flex;
    gap: 0;
  }

  .header-actions { gap: 0.2rem; }
  .brand img { max-width: min(32vw, 165px); height: auto; max-height: 44px; }

  .hero {
    min-height: 680px;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .segments-grid {
    grid-template-columns: 1fr;
  }

  .municipalities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-card {
    display: block;
  }

  .route-card > img {
    height: 220px;
    min-height: 0;
  }

  .segment-card {
    min-height: 290px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head-region .editable-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-panel {
    grid-template-columns: 1fr;
  }

  .app-panel > img {
    min-height: 270px;
  }

  .event-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .event-card time {
    min-height: 145px;
  }

  .event-arrow {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .actions .button { width: 100%; }
  .hero h1 { font-size: 2.35rem; }
  .event-card h3 { font-size: 1.08rem; }
  .event-card h3 + p { display: none; }
  .municipalities-grid { grid-template-columns: 1fr; }
}

/* Galera: municipal red, charcoal and clear surfaces. */
h1,h2,h3,.button {font-weight:700;}
.municipalities-grid {grid-template-columns: minmax(0, 720px); justify-content:center;}

/* Editorial text remains readable on narrow screens and on photographic cards. */
.hero-lead { line-height: 1.65; text-wrap: pretty; }
.route-card dl { flex-wrap: wrap; }
.segment-content a:hover, .footer-nav a:hover { text-decoration: underline; }
.drupal-content a { color: var(--blue); }
.drupal-content input:not([type="checkbox"]):not([type="radio"]),
.drupal-content textarea, .drupal-content select { max-width: 100%; }

.search-form .container-inline { display:flex; flex-wrap:wrap; align-items:flex-end; gap:1rem; margin-block:1.5rem; }
.search-form .form-item { display:grid; gap:0.5rem; max-width:100%; }
.search-form input { min-height:44px; padding:0.6rem 0.9rem; font:inherit; border:1px solid var(--muted); border-radius:8px; }
.search-form input[type="submit"] { background:var(--blue); color:#fff; border-color:var(--blue); cursor:pointer; }
.search-form input[type="submit"]:hover { background:#932917; }
.search-results { padding-inline-start:0; list-style:none; max-width:76ch; }
.search-results li { padding-block:1.5rem; border-bottom:1px solid #d4d4d4; }
.search-results h3 { font-size:1.4rem; line-height:1.3; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline:3px solid var(--ink); outline-offset:3px; box-shadow:0 0 0 3px #fff; }
