/* ==========================================================================
   CULTURA TRINACIONAL — Agenda
   Layout inspirado no mockup aprovado em 25/09/2026.
   Mantém dados reais, filtros e navegação existentes.
   ========================================================================== */

.agenda-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(98, 126, 173, 0.18);
  background:
    radial-gradient(circle at 78% 20%, rgba(16, 109, 181, .20), transparent 34%),
    linear-gradient(180deg, #061426 0%, #071426 70%, #07111f 100%);
}

.agenda-hero-inner {
  position: relative;
  min-height: 286px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr);
  align-items: center;
  gap: 22px;
  padding-top: 34px;
  padding-bottom: 36px;
}

.agenda-hero-copy {
  position: relative;
  z-index: 4;
  max-width: 610px;
}

.agenda-hero h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 850;
  line-height: .94;
  letter-spacing: -2.5px;
  text-shadow: 0 5px 24px rgba(0, 0, 0, .36);
}

.agenda-hero .subtitle {
  max-width: 570px;
  margin: 0 0 14px;
  color: #c1ccdd;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.32;
}

.agenda-hero .slogan {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  color: #fff;
  font-size: clamp(15px, 1.7vw, 20px);
  font-weight: 650;
  letter-spacing: -.25px;
}

.agenda-hero .slogan-part {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.agenda-hero .slogan-part strong {
  font-size: 1.3em;
  line-height: 1;
  font-weight: 900;
}

.agenda-hero .slogan-ar strong { color: #3fc7f3; }
.agenda-hero .slogan-br strong { color: #b9d842; }
.agenda-hero .slogan-py strong { color: #ff5964; }
.agenda-hero .slogan-dot { color: #43c7d9; opacity: .92; }

.agenda-hero-visual {
  position: absolute;
  z-index: 1;
  top: 24px;
  right: 0;
  width: min(40%, 440px);
  height: 230px;
  overflow: visible;
  border-radius: 54% 14% 18% 46% / 28% 14% 18% 38%;
  isolation: isolate;
}

.agenda-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, #061426 0%, rgba(6,20,38,.74) 9%, rgba(6,20,38,.12) 42%, transparent 68%),
    linear-gradient(180deg, rgba(3,10,23,.05), rgba(3,10,23,.18));
  pointer-events: none;
  border-radius: inherit;
}

.agenda-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 50%;
  filter: saturate(1.08) contrast(1.03) brightness(.96);
  transform: scale(1.04);
}

.agenda-hero-slides,
.agenda-hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
}

.agenda-hero-slides {
  overflow: hidden;
  border-radius: inherit;
  background: #0b1b30;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
  touch-action: pan-y;
}

.agenda-hero-slide {
  opacity: 0;
  transform: scale(1.025);
  transition: opacity .7s ease, transform 5.5s ease;
}

.agenda-hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.agenda-hero-slide img {
  display: block;
}

.agenda-hero-dots {
  position: absolute;
  z-index: 6;
  right: 18px;
  bottom: -18px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.agenda-hero-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  box-shadow: none;
  transition: width .2s ease, background-color .2s ease;
}

.agenda-hero-dots button.is-active {
  width: 20px;
  background: #159bea;
}

.agenda-ribbon {
  position: absolute;
  z-index: 3;
  left: -12%;
  bottom: 18px;
  width: 124%;
  height: 18px;
  border-radius: 999px;
  transform-origin: right center;
  transform: rotate(8deg);
  opacity: .96;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.agenda-ribbon-blue {
  bottom: 82px;
  height: 34px;
  background: linear-gradient(90deg, #0f57c8, #1bb5f1);
}
.agenda-ribbon-green {
  bottom: 62px;
  height: 29px;
  background: linear-gradient(90deg, #087748, #1dad66);
}
.agenda-ribbon-yellow {
  bottom: 43px;
  height: 25px;
  background: linear-gradient(90deg, #f0c225, #ffd743);
}
.agenda-ribbon-red {
  bottom: 24px;
  height: 22px;
  background: linear-gradient(90deg, #ef3b49, #ff5a5f);
}

html[data-theme="light"] .agenda-hero {
  border-bottom-color: rgba(24, 67, 120, .12);
  background:
    radial-gradient(circle at 78% 20%, rgba(33, 181, 241, .12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

html[data-theme="light"] .agenda-hero h1 { color: #08265d; text-shadow: none; }
html[data-theme="light"] .agenda-hero .subtitle { color: #263d60; }
html[data-theme="light"] .agenda-hero .slogan { color: #112c56; }
html[data-theme="light"] .agenda-hero-visual::after {
  background:
    linear-gradient(90deg, #f8fbff 0%, rgba(248,251,255,.76) 9%, rgba(248,251,255,.06) 42%, transparent 68%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.08));
}

/* --------------------------------------------------------------------------
   Área funcional
   -------------------------------------------------------------------------- */

.agenda-main {
  position: relative;
  z-index: 6;
  padding-top: 18px;
  padding-bottom: 34px;
}

.search-box {
  position: relative;
  margin: 0 0 14px;
}

.search-box svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #73819b;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 12px 42px 12px 44px;
  border: 1px solid #233452;
  border-radius: 16px;
  background: #0b172b;
  color: #fff;
  font-size: 14px;
}

.search-box input::placeholder { color: #74809a; }
.search-box input:focus {
  outline: none;
  border-color: rgba(34,211,238,.62);
  box-shadow: 0 0 0 3px rgba(34,211,238,.08);
}

.search-box .search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #7d8aa3;
}
.search-box.has-value .search-clear { display: flex; }

.range-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, 660px);
  margin: 0 auto 14px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid #294263;
  border-radius: 999px;
  background: rgba(5, 16, 31, .86);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.range-tab {
  min-height: 48px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  color: #c1cadd;
  font-size: 15px;
  font-weight: 680;
  white-space: nowrap;
  transition: .2s ease;
}

.range-tab[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(120deg, #1767ec 0%, #0d9eea 57%, #27d4ee 100%);
  box-shadow: 0 7px 20px rgba(8, 135, 226, .24), inset 0 1px 0 rgba(255,255,255,.22);
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.filter-select-wrap {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: 50px;
  padding-left: 38px;
  border: 1px solid #233b5d;
  border-radius: 999px;
  background: rgba(7, 20, 38, .92);
  color: #16d4ef;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.filter-select-wrap > svg {
  position: absolute;
  left: 13px;
  width: 19px;
  height: 19px;
  pointer-events: none;
}

.filter-select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 34px 0 3px;
  border: 0;
  outline: 0;
  appearance: none;
  color: #edf3fb;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b8c6db' stroke-width='2.2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")
    no-repeat right 12px center / 14px 14px;
  font-size: 13px;
  font-weight: 540;
  text-overflow: ellipsis;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agenda-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 34%) minmax(0, 1fr) 42px;
  align-items: stretch;
  min-height: 132px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(58, 91, 128, .48);
  border-radius: 18px;
  background:
    radial-gradient(circle at 95% 0%, rgba(18,64,105,.14), transparent 34%),
    linear-gradient(110deg, #071426 0%, #08182c 100%);
  box-shadow: 0 10px 25px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.018);
  color: inherit;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.agenda-card:hover {
  transform: translateY(-2px);
  border-color: rgba(34,211,238,.38);
  box-shadow: 0 13px 30px rgba(0,0,0,.22);
}

.agenda-card .thumb {
  position: relative;
  min-width: 0;
  height: 100%;
  min-height: 132px;
  overflow: hidden;
  border-radius: 17px 0 0 17px;
  background: #0d2036;
}

.agenda-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 72%, rgba(5,17,31,.14));
  pointer-events: none;
}

.agenda-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.agenda-card .thumb .category-tag {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 12px;
  overflow: hidden;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg,#2563eb,#22d3ee);
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
  font-size: 10px;
  line-height: 1;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-tag[data-cat="musica"] { background: linear-gradient(135deg,#1268e8,#21c9f0); }
.category-tag[data-cat="cultura"],
.category-tag[data-cat="comunidade"],
.category-tag[data-cat="feiras"] { background: linear-gradient(135deg,#0e9f55,#29ca73); }
.category-tag[data-cat="teatro"],
.category-tag[data-cat="danca"],
.category-tag[data-cat="artes-cenicas"] { background: linear-gradient(135deg,#ef2539,#ff4b51); }
.category-tag[data-cat="gastronomia"] { color:#141008; background: linear-gradient(135deg,#f5a900,#ffd62d); }
.category-tag[data-cat="cinema"] { background: linear-gradient(135deg,#7c3aed,#a855f7); }
.category-tag[data-cat="artes"],
.category-tag[data-cat="artes-visuais"] { background: linear-gradient(135deg,#6d36e8,#9a4cf3); }

.agenda-card .info {
  min-width: 0;
  align-self: center;
  padding: 15px 12px 14px 16px;
}

.agenda-card .sponsored-tag {
  display: inline-flex;
  margin: 0 0 5px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #151006;
  background: linear-gradient(135deg,#e9a300,#f7d33b);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.agenda-card .title {
  margin: 0 0 9px;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -.28px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.agenda-card .category-chip {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 9px;
  padding: 4px 10px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  background: transparent;
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .35px;
}
.agenda-card .category-chip[data-cat="music"] { color:#38bdf8; }
.agenda-card .category-chip[data-cat="theatre"] { color:#4ade80; }
.agenda-card .category-chip[data-cat="arts"] { color:#facc15; }
.agenda-card .category-chip[data-cat="crafts"] { color:#d97706; }
.agenda-card .category-chip[data-cat="capoeira"] { color:#14b8a6; }
.agenda-card .category-chip[data-cat="carnival"] { color:#ec4899; }
.agenda-card .category-chip[data-cat="cinema"] { color:#a78bfa; }
.agenda-card .category-chip[data-cat="circus"] { color:#f97316; }
.agenda-card .category-chip[data-cat="community"] { color:#eab308; }
.agenda-card .category-chip[data-cat="dance"] { color:#fb7185; }
.agenda-card .category-chip[data-cat="fairs"] { color:#fb923c; }
.agenda-card .category-chip[data-cat="festivities"] { color:#e879f9; }
.agenda-card .category-chip:not([data-cat="music"]):not([data-cat="theatre"]):not([data-cat="arts"]):not([data-cat="crafts"]):not([data-cat="capoeira"]):not([data-cat="carnival"]):not([data-cat="cinema"]):not([data-cat="circus"]):not([data-cat="community"]):not([data-cat="dance"]):not([data-cat="fairs"]):not([data-cat="festivities"]) { color:#ef4444; }

.agenda-card .meta-row {
  display: grid;
  gap: 7px;
  color: #bdc7d8;
  font-size: 12.5px;
}

.agenda-card .meta-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.agenda-card .meta-item,
.agenda-card .country-item {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.agenda-card .meta-item svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #20d6ed;
}

.agenda-card .location-item {
  max-width: 50%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.agenda-card .country-item {
  color: #eef3fb;
}

.agenda-card .country-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  font-size: 21px;
  line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.2));
}

.agenda-card .price-item {
  color: #d6deea;
}

.agenda-card .card-arrow {
  align-self: center;
  justify-self: center;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #284566;
  border-radius: 50%;
  color: #fff;
  background: rgba(11,31,53,.82);
}

.agenda-card .card-arrow svg {
  width: 18px;
  height: 18px;
}

/* anúncios e estados */
.agenda-main .ad-slot:empty { display: none; }
.agenda-main .ad-slot:not(:empty) { margin: 14px 0; }

.state-box {
  display: flex;
  min-height: 190px;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  color: #77849c;
  text-align: center;
  font-size: 15px;
}

.skeleton {
  min-height: 132px;
  border-radius: 18px;
  background: linear-gradient(90deg,#08172a 25%,#10223a 38%,#08172a 63%);
  background-size: 400% 100%;
  animation: agenda-skeleton 1.35s ease infinite;
}
@keyframes agenda-skeleton {
  from { background-position: 100% 50%; }
  to { background-position: 0 50%; }
}

/* --------------------------------------------------------------------------
   Celular: segue o mockup aprovado
   -------------------------------------------------------------------------- */

@media (max-width: 639px) {
  .agenda-hero-inner {
    min-height: 238px;
    display: block;
    padding-top: 24px;
    padding-bottom: 28px;
  }

  .agenda-hero-copy {
    width: 56%;
    max-width: none;
  }

  .agenda-hero h1 {
    margin-bottom: 9px;
    font-size: clamp(34px, 10.4vw, 42px);
    line-height: .93;
    letter-spacing: -2.2px;
  }

  .agenda-hero .subtitle {
    margin-bottom: 10px;
    font-size: clamp(12px, 3.45vw, 14px);
    line-height: 1.25;
  }

  .agenda-hero .slogan {
    gap: 4px;
    font-size: clamp(10px, 2.9vw, 12px);
  }

  .agenda-hero-visual {
    top: 20px;
    right: 0;
    width: 47%;
    height: 174px;
    border-radius: 58% 14% 18% 49% / 30% 14% 18% 42%;
  }

  .agenda-hero-visual::after {
    background:
      linear-gradient(90deg, #061426 0%, rgba(6,20,38,.78) 12%, rgba(6,20,38,.04) 50%, transparent 78%),
      linear-gradient(180deg, rgba(3,10,23,.04), rgba(3,10,23,.12));
  }

  .agenda-hero-visual img {
    object-position: 50% 50%;
    transform: scale(1.07);
  }

  .agenda-hero-dots {
    right: 10px;
    bottom: -17px;
  }

  .agenda-hero-dots button {
    width: 6px;
    height: 6px;
  }

  .agenda-hero-dots button.is-active { width: 19px; }

  .agenda-ribbon-blue { bottom: 73px; height: 27px; }
  .agenda-ribbon-green { bottom: 57px; height: 23px; }
  .agenda-ribbon-yellow { bottom: 42px; height: 20px; }
  .agenda-ribbon-red { bottom: 28px; height: 18px; }

  .agenda-main {
    margin-top: -9px;
    padding-top: 0;
  }

  /* O mockup aprovado não mostra a busca no celular. A busca por ?q= continua funcionando. */
  .agenda-main .search-box {
    display: none;
  }

  .range-tabs {
    position: relative;
    z-index: 4;
    width: 100%;
    margin-bottom: 12px;
  }

  .range-tab {
    min-height: 46px;
    padding: 8px 10px;
    font-size: 14px;
  }

  .filter-row {
    gap: 6px;
    margin-bottom: 12px;
  }

  .filter-select-wrap {
    min-height: 48px;
    padding-left: 31px;
  }

  .filter-select-wrap > svg {
    left: 10px;
    width: 16px;
    height: 16px;
  }

  .filter-select {
    min-height: 46px;
    padding-right: 24px;
    background-position: right 7px center;
    background-size: 12px 12px;
    font-size: 10.5px;
  }

  .agenda-list { gap: 8px; }

  .agenda-card {
    grid-template-columns: minmax(118px, 37%) minmax(0, 1fr) 38px;
    min-height: 118px;
    border-radius: 15px;
  }

  .agenda-card .thumb {
    min-height: 118px;
    border-radius: 14px 0 0 14px;
  }

  .agenda-card .info {
    padding: 11px 5px 10px 11px;
  }

  .agenda-card .title {
    margin-bottom: 7px;
    font-size: clamp(13px, 3.7vw, 15.5px);
    line-height: 1.14;
  }

  .agenda-card .meta-row {
    gap: 6px;
    font-size: clamp(9.8px, 2.75vw, 12px);
  }

  .agenda-card .meta-line {
    gap: 7px;
    flex-wrap: nowrap;
  }

  .agenda-card .meta-item svg {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
  }

  .agenda-card .location-item {
    max-width: 53%;
  }

  .agenda-card .country-item {
    gap: 3px;
  }

  .agenda-card .country-flag {
    font-size: 17px;
  }

  .agenda-card .card-arrow {
    width: 31px;
    height: 31px;
  }

  .agenda-card .card-arrow svg {
    width: 15px;
    height: 15px;
  }

  .site-footer {
    display: none;
  }
}

@media (max-width: 370px) {
  .agenda-hero-copy { width: 65%; }
  .agenda-hero h1 { font-size: 40px; }
  .agenda-hero .subtitle { font-size: 13px; }

  .filter-row {
    overflow-x: auto;
    grid-template-columns: repeat(3, 132px);
    padding-bottom: 3px;
    scrollbar-width: none;
  }
  .filter-row::-webkit-scrollbar { display: none; }

  .agenda-card {
    grid-template-columns: 112px minmax(0,1fr) 32px;
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .agenda-hero-inner { min-height: 330px; }
  .agenda-card { grid-template-columns: 190px minmax(0,1fr) 46px; }
}

@media (min-width: 900px) {
  .agenda-main { max-width: 1060px; }
  .range-tabs { margin-top: 4px; }
  .agenda-card .thumb { min-height: 145px; }
  .agenda-card { min-height: 145px; }
}

@media (prefers-reduced-motion: reduce) {
  .agenda-card,
  .range-tab,
  .agenda-hero-slide,
  .agenda-hero-dots button { transition: none; }
}


/* Correções visuais pós-teste — 25/09/2026 */
.agenda-hero-flags {
  position: absolute;
  z-index: 5;
  top: 20%;
  right: 6%;
  left: 18%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}
.agenda-hero-flags span {
  display: block;
  font-size: clamp(24px, 3.5vw, 38px);
  line-height: 1;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.45));
  transform: rotate(-2deg);
}
.agenda-hero-flags span:nth-child(2) { transform: translateY(-8px) rotate(1deg); }
.agenda-hero-flags span:nth-child(3) { transform: translateY(5px) rotate(2deg); }

@media (max-width: 639px) {
  .agenda-hero-inner {
    min-height: 238px;
  }

  .agenda-hero-copy {
    width: 56%;
  }

  .agenda-hero h1 {
    font-size: clamp(34px, 10.4vw, 42px);
    letter-spacing: -1.6px;
  }

  .agenda-hero-visual {
    top: 20px;
    width: 47%;
    height: 174px;
    border-radius: 58% 14% 18% 49% / 30% 14% 18% 42%;
  }

  .agenda-hero-visual img {
    object-position: 56% 50%;
    transform: scale(1.04);
  }

  .agenda-hero-flags {
    top: 18%;
    left: 20%;
    right: 5%;
  }

  .agenda-hero-flags span {
    font-size: clamp(20px, 6vw, 27px);
  }

  .agenda-ribbon {
    left: -18%;
    width: 136%;
    transform: rotate(7deg);
  }

  .agenda-ribbon-blue { bottom: 63px; height: 24px; }
  .agenda-ribbon-green { bottom: 49px; height: 20px; }
  .agenda-ribbon-yellow { bottom: 36px; height: 17px; }
  .agenda-ribbon-red { bottom: 24px; height: 15px; }

  .filter-row {
    gap: 5px;
  }

  .filter-select-wrap {
    min-height: 46px;
    padding-left: 25px;
  }

  .filter-select-wrap > svg {
    left: 8px;
    width: 14px;
    height: 14px;
  }

  .filter-select {
    min-height: 44px;
    padding-left: 1px;
    padding-right: 18px;
    background-position: right 5px center;
    background-size: 10px 10px;
    font-size: 8.4px;
    letter-spacing: -0.14px;
  }
}

/* Filtros da Agenda: alinhamento com os períodos e leitura no celular. */
.filter-row {
  width: min(100%, 660px);
  margin: 0 auto 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  padding-bottom: 0;
}

.filter-row > .filter-select {
  box-sizing: border-box;
  min-height: 50px;
  padding: 12px 28px 12px 12px;
  border: 1px solid rgba(34, 211, 238, .48);
  border-radius: 14px;
  background-color: #0d2036;
  background-position: right 9px center;
  background-size: 13px 13px;
  color: #f4fbff;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.filter-row > .filter-select:hover {
  border-color: #22d3ee;
  background-color: #102b45;
}

.filter-row > .filter-select:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 2px;
  border-color: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34,211,238,.12);
}

.filter-row > .filter-select option {
  background: #0d2036;
  color: #f4fbff;
}

/* Carrossel da Agenda: somente o contorno orgânico nas quatro cores da marca. */
.agenda-hero .agenda-ribbon {
  width: auto;
  height: auto;
  border-style: solid;
  border-top-color: transparent;
  border-right-color: transparent;
  border-radius: 62% 0 0 56% / 28% 0 0 42%;
  background: none;
  box-shadow: none;
  opacity: .98;
  transform: none;
}

.agenda-hero .agenda-ribbon-blue {
  inset: 0;
  border-width: 0 0 7px 7px;
  border-bottom-color: #22b8f0;
  border-left-color: #22b8f0;
}

.agenda-hero .agenda-ribbon-green {
  inset: 7px 0 7px 7px;
  border-width: 0 0 6px 6px;
  border-bottom-color: #16b85b;
  border-left-color: #16b85b;
}

.agenda-hero .agenda-ribbon-yellow {
  inset: 13px 0 13px 13px;
  border-width: 0 0 6px 6px;
  border-bottom-color: #f5c928;
  border-left-color: #f5c928;
}

.agenda-hero .agenda-ribbon-red {
  inset: 19px 0 19px 19px;
  border-width: 0 0 5px 5px;
  border-bottom-color: #ef3340;
  border-left-color: #ef3340;
}

@media (max-width: 639px) {
  .agenda-hero .agenda-ribbon {
    border-radius: 68% 0 0 62% / 31% 0 0 46%;
  }

  .agenda-hero .agenda-ribbon-blue { inset: 0; border-width: 0 0 5px 5px; }
  .agenda-hero .agenda-ribbon-green { inset: 5px 0 5px 5px; border-width: 0 0 5px 5px; }
  .agenda-hero .agenda-ribbon-yellow { inset: 10px 0 10px 10px; border-width: 0 0 4px 4px; }
  .agenda-hero .agenda-ribbon-red { inset: 14px 0 14px 14px; border-width: 0 0 4px 4px; }

  .filter-row {
    gap: 6px;
    margin-bottom: 16px;
  }

  .filter-row > .filter-select {
    min-height: 48px;
    padding: 11px 20px 11px 7px;
    border-radius: 12px;
    background-position: right 6px center;
    background-size: 10px 10px;
    font-size: clamp(14px, 4vw, 16px);
  }
}


/* ==========================================================================
   EXPERIÊNCIA NO COMPUTADOR — Agenda (tela de 1100px ou mais)
   Celular e tablet não mudam.
   ========================================================================== */
@media (min-width: 1100px) {
  .agenda-main { max-width: 1180px; }
  .agenda-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  /* anúncios, avisos e botão "ver mais" ocupam a linha inteira */
  .agenda-list > :not(.agenda-card) { grid-column: 1 / -1; }
  .agenda-card { min-height: 150px; }
}

/* ===== PC: topo da Agenda (carrossel maior + botão ao lado do título) ===== */
@media (min-width: 1100px) {
  html body .agenda-hero .agenda-intro {
    grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
    align-items: center; gap: 48px;
    padding-top: 22px; padding-bottom: 14px; margin-bottom: 6px;
  }
  html body .agenda-hero .agenda-hero__copy {
    display: grid; grid-template-columns: auto auto;
    grid-template-areas: "title cta" "sub sub";
    justify-content: start; align-items: center; column-gap: 40px; row-gap: 18px;
  }
  html body .agenda-hero .agenda-hero__copy h1 {
    grid-area: title; margin: 0; max-width: 7.2ch;
    font-size: clamp(60px, 5.4vw, 92px); line-height: .98;
  }
  html body .agenda-hero .agenda-hero__copy .agenda-route-cta {
    grid-area: cta; margin: 0; padding: 17px 32px; font-size: 17px;
  }
  html body .agenda-hero .agenda-hero__copy .subtitle {
    grid-area: sub; max-width: 30ch; font-size: clamp(21px, 1.7vw, 28px); line-height: 1.35;
  }
  html body .agenda-mini-carousel { width: 100%; max-width: 560px; justify-self: end; }
  html body .agenda-mini-carousel__name { font-size: 18px; margin-top: 12px; }
  html body .agenda-mini-carousel__dots { margin-top: 6px; gap: 10px; }
  html body .agenda-mini-carousel__dots button { width: 11px; height: 11px; }
}

/* ===== Filtro de cidades com sigla + bandeira (Agenda e Mapa) ===== */
.filter-row.filter-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ct-dd { position: relative; min-width: 0; }
.ct-dd__btn {
  box-sizing: border-box; width: 100%; min-height: 50px; padding: 10px 30px 10px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid rgba(34, 211, 238, .48); border-radius: 14px;
  background: #0d2036 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23c6d4e6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4.2l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 9px center / 12px 12px;
  color: #f4fbff; font: inherit; font-size: 16px; font-weight: 650; line-height: 1.25; text-align: left;
  cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.ct-dd__btn:hover, .ct-dd.is-open .ct-dd__btn { border-color: #22d3ee; background-color: #102b45; }
.ct-dd__btn:focus-visible { outline: 2px solid #22d3ee; outline-offset: 2px; box-shadow: 0 0 0 4px rgba(34,211,238,.12); }
.ct-dd__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-dd__tag {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px 3px 5px; border-radius: 999px;
  background: rgba(148, 163, 184, .16); font-size: .78em; letter-spacing: .02em;
}
.ct-dd__tag img { display: block; width: 22px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.ct-dd__tag b { font-weight: 800; }
.ct-dd__list {
  position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; min-width: 100%; width: max-content; max-width: min(92vw, 340px);
  margin: 0; padding: 6px; list-style: none; max-height: 340px; overflow-y: auto;
  background: #0d2036; border: 1px solid rgba(34, 211, 238, .55); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}
.ct-dd__list[hidden] { display: none; }
.ct-dd__list li {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 12px; border-radius: 10px; color: #f4fbff; font-size: 16px; font-weight: 600; cursor: pointer;
}
.ct-dd__list li:hover, .ct-dd__list li:focus-visible { background: rgba(34, 211, 238, .16); outline: none; }
.ct-dd__list li[aria-selected="true"] { background: rgba(34, 211, 238, .24); }
.ct-dd__list .ct-dd__name { white-space: normal; }
html[data-theme="light"] .ct-dd__btn { background-color: #eef4fc; border-color: #a8c4df; color: #142139; }
html[data-theme="light"] .ct-dd__list { background: #fff; border-color: #a8c4df; box-shadow: 0 18px 40px rgba(20, 33, 57, .18); }
html[data-theme="light"] .ct-dd__list li { color: #142139; }
html[data-theme="light"] .ct-dd__tag { background: rgba(20, 33, 57, .08); }
@media (max-width: 480px) {
  .ct-dd__btn { min-height: 48px; padding: 10px 24px 10px 9px; font-size: clamp(14px, 4vw, 16px); background-position: right 7px center; }
  .ct-dd__tag { padding: 2px 6px 2px 4px; gap: 4px; }
  .ct-dd__tag img { width: 18px; height: 12px; }
}
