/* ==========================================================================
   HERO DAS PÁGINAS INTERNAS — ESTRUTURA
   A aparência fica em pages/internal.css.
   ========================================================================== */

.gr-page-hero {
  position: relative;
  overflow: hidden;
}

.gr-page-hero__inner {
  position: relative;
  z-index: 2;
}

.gr-page-hero__title {
  max-width: 17ch;
}

.gr-page-hero__lead {
  max-width: 48rem;
}

.gr-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 2rem;
  align-items: start;
}

.gr-article {
  min-width: 0;
}

.gr-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.3rem;
  color: var(--gr-blue-700);
  font-family: var(--gr-font-light);
  font-size: 0.82rem;
}

.gr-article__featured {
  width: 100%;
  overflow: hidden;
  border-radius: var(--gr-radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--gr-shadow-lg);
}

.gr-article h2,
.gr-article h3 {
  font-family: var(--gr-font-callout);
  line-height: 1.05;
  
}

.gr-article h2 {
  font-size: 1.8rem;
}

.gr-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.8rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--gr-border);
  border-bottom: 1px solid var(--gr-border);
}

.gr-share a,
.gr-share button {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--gr-border);
  border-radius: 50%;
  color: var(--gr-blue-800);
  background: var(--gr-white);
}

.gr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.2rem 0;
}

.gr-gallery {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr;
  gap: 0.7rem;
  margin: 2rem 0 0.6rem;
}

.gr-gallery button {
  overflow: hidden;
  border: 0;
  border-radius: 1rem;
  padding: 0;
  background: none;
}

.gr-gallery button:first-child {
  grid-row: span 2;
}

.gr-gallery img {
  width: 100%;
  height: 100%;
  min-height: 12rem;
  object-fit: cover;
}

.gr-caption {
  margin-top: 0.35rem;
  color: var(--gr-muted);
  font-family: var(--gr-font-light);
  font-size: 0.78rem;
}

.gr-content-cta {
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: var(--gr-radius-md);
  color: var(--gr-white);
  background: linear-gradient(135deg, var(--gr-blue-900), var(--gr-green-700));
}

.gr-content-cta h3 {
  margin: 0 0 0.45rem;
  font-family: var(--gr-font-callout);
  font-size: 1.45rem;
  
}

.gr-content-cta p {
  color: rgba(255,255,255,0.76);
}

.gr-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.gr-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gr-filter {
  min-height: 2.45rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--gr-border);
  border-radius: 999px;
  color: var(--gr-blue-800);
  background: var(--gr-white);
  font-family: var(--gr-font-light);
}

.gr-filter.is-active {
  color: var(--gr-blue-950);
  background: var(--gr-yellow-500);
  border-color: transparent;
}

/* ==========================================================================
   16. FECHAMENTO E FOOTER
   ========================================================================== */
.gr-closing {
  color: var(--gr-white);
  background:
    radial-gradient(circle at 80% 0%, rgba(111, 161, 211, 0.22), transparent 20rem),
    linear-gradient(120deg, var(--gr-green-700), var(--gr-blue-900) 68%, var(--gr-blue-950));
}

.gr-closing__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.gr-closing__title {
  max-width: 14ch;
  color: var(--gr-white);
  font-size: clamp(2.7rem, 5vw, 5rem);
}

/* ==========================================================================
   16. FOOTER GLOBAL — FONTE OFICIAL: HOME
   O mesmo componente e a mesma aparência são usados em todas as páginas.
   ========================================================================== */
.gr-footer {
  color: var(--gr-white);
  background:
    radial-gradient(
      circle at 92% 0%,
      rgba(24, 189, 229, 0.12),
      transparent 24rem
    ),
    linear-gradient(
      145deg,
      #031842 0%,
      #06275f 58%,
      #0b438f 100%
    );
}

.gr-footer__main {
  display: grid;
  grid-template-columns:
    minmax(17rem, 1.28fr)
    repeat(3, minmax(9rem, 0.82fr));
  gap: 1rem;
  align-items: start;
  width: var(--gr-container-wide);
  margin-inline: auto;
  padding: 3.2rem 0;
}

.gr-footer__brand {
  min-width: 0;
  padding-right: clamp(0.6rem, 1.8vw, 1.5rem);
}

.gr-footer__logo {
  width: min(13rem, 76%);
  max-width: none;
  margin: 0 0 0.85rem;
  filter: none;
}

.gr-footer__brand p {
  max-width: 29rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  line-height: 1.48;
}

.gr-footer__social-title {
  margin: 1.15rem 0 0.7rem;
}

.gr-footer .gr-social-links {
  gap: 0.55rem;
}

.gr-footer .gr-social-links a {
  width: 2.75rem;
  height: 2.75rem;
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--gr-white);
  background: rgba(255, 255, 255, 0.08);
}

.gr-footer .gr-social-links a:hover {
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--gr-white);
  background: rgba(255, 255, 255, 0.15);
}

.gr-footer__main > div:not(.gr-footer__brand) {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.05rem;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 16px 34px rgba(1, 15, 48, 0.1);
}

.gr-footer h3 {
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.96);
  font-family: var(--gr-font-callout);
  font-size: 0.94rem;
}

.gr-footer ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--gr-font-light);
}

.gr-footer li {
  min-width: 0;
}

.gr-footer__main > div:not(.gr-footer__brand) a {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 2.45rem;
  padding: 0.52rem 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.72rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.84rem;
  line-height: 1.15;
  transition:
    border-color 220ms ease,
    background-color 220ms ease,
    transform 220ms ease;
}

.gr-footer__main > div:not(.gr-footer__brand) a:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--gr-white);
  background: rgba(255, 255, 255, 0.12);
}

.gr-footer__legal {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(2, 17, 48, 0.78);
}

.gr-footer__legal-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: var(--gr-container-wide);
  margin-inline: auto;
  padding: 1rem 0;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--gr-font-light);
  font-size: 0.76rem;
}

/* ==========================================================================
   17. MODAIS, CITY PANEL, COOKIES E FLOAT
   ========================================================================== */
.gr-overlay {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(1,10,30,0.78);
  backdrop-filter: blur(12px);
}

.gr-overlay.is-open {
  display: grid;
}

.gr-modal {
  width: min(94vw, 52rem);
  max-height: 90vh;
  overflow: auto;
  padding: 1.4rem;
  border-radius: 1.5rem;
  background: var(--gr-white);
  box-shadow: var(--gr-shadow-lg);
}

.gr-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.gr-modal__close {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--gr-border);
  border-radius: 50%;
  color: var(--gr-blue-900);
  background: var(--gr-white);
}

.gr-city-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.gr-city-option {
  min-height: 3.5rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--gr-border);
  border-radius: 0.9rem;
  color: var(--gr-blue-900);
  background: var(--gr-white);
  text-align: left;
}

/* ========================================================================== 
   MODAL GLOBAL DA GALERIA DE EVENTOS
   Compartilhado pela Home, Agenda, singles editoriais e futuros componentes do CMS.
   ========================================================================== */

:is([data-event-modal], [data-gallery-modal]) {
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
  padding-block: 1rem;
}

:is([data-event-modal], [data-gallery-modal]).is-open {
  display: flex;
}

:is([data-event-modal], [data-gallery-modal]) .gr-modal--gallery {
  width: min(94vw, 68rem);
  max-height: none;
  overflow: visible;
  padding: clamp(1.2rem, 2.5vw, 2rem);
  border-radius: 1.5rem;
}

:is([data-event-modal], [data-gallery-modal]) .gr-event-gallery-modal {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  height: clamp(18rem, 46vh, 31rem);
  min-height: 0;
  margin-top: 1.2rem;
  border-radius: 1.25rem;
  background: var(--gr-surface-2);
}

:is([data-event-modal], [data-gallery-modal]) .gr-event-modal__image {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}

:is([data-event-modal], [data-gallery-modal]) .gr-event-gallery-modal__nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  width: 3.15rem;
  height: 3.15rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: var(--gr-white);
  background: rgba(4, 27, 77, 0.72);
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    background-color 220ms ease,
    transform 220ms ease;
}

:is([data-event-modal], [data-gallery-modal]) .gr-event-gallery-modal__nav:hover {
  background: var(--gr-blue-800);
}

:is([data-event-modal], [data-gallery-modal]) .gr-event-gallery-modal__nav--prev {
  left: 1rem;
}

:is([data-event-modal], [data-gallery-modal]) .gr-event-gallery-modal__nav--next {
  right: 1rem;
}

:is([data-event-modal], [data-gallery-modal]) .gr-event-gallery-modal__thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 6.5rem;
  justify-content: start;
  gap: 0.65rem;
  margin: 0.85rem 0 1.2rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  padding-bottom: 0.3rem;
}

:is([data-event-modal], [data-gallery-modal]) .gr-event-gallery-modal__thumbs[hidden],
:is([data-event-modal], [data-gallery-modal]) .gr-event-gallery-modal__nav[hidden] {
  display: none;
}

:is([data-event-modal], [data-gallery-modal]) .gr-event-gallery-modal__thumbs button {
  position: relative;
  width: 100%;
  height: 4.6rem;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.8rem;
  background: var(--gr-surface-2);
  cursor: pointer;
}

:is([data-event-modal], [data-gallery-modal]) .gr-event-gallery-modal__thumbs button::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 0.2rem;
  background: var(--gr-blue-800);
  opacity: 0;
  transition: opacity 220ms ease;
}

:is([data-event-modal], [data-gallery-modal]) .gr-event-gallery-modal__thumbs button.is-active {
  border-color: var(--gr-yellow-500);
}

:is([data-event-modal], [data-gallery-modal]) .gr-event-gallery-modal__thumbs button.is-active::before {
  opacity: 1;
}

:is([data-event-modal], [data-gallery-modal]) .gr-event-gallery-modal__thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  object-position: center;
}


.gr-cookie {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 1300;
  width: min(100% - 2rem, 24rem);
  padding: 1rem;
  border: 1px solid var(--gr-border);
  border-radius: 1rem;
  background: var(--gr-white);
  box-shadow: var(--gr-shadow-lg);
}

.gr-cookie.is-hidden {
  display: none;
}

.gr-cookie p {
  margin: 0.4rem 0 0.8rem;
  font-size: 0.86rem;
}

.gr-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
  display: grid;
  gap: 0.65rem;
}

.gr-float a,
.gr-float button {
  width: 3.35rem;
  height: 3.35rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--gr-white);
  background: linear-gradient(135deg, var(--gr-blue-800), var(--gr-blue-600));
  box-shadow: var(--gr-shadow-md);
}

.gr-float a {
  background: linear-gradient(135deg, var(--gr-green-700), var(--gr-green-500));
}

.gr-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 1800;
  transform: translate(-50%, 1rem);
  opacity: 0;
  pointer-events: none;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  color: var(--gr-white);
  background: var(--gr-blue-950);
  box-shadow: var(--gr-shadow-lg);
  transition: opacity var(--gr-transition), transform var(--gr-transition);
}

.gr-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   18. ANIMAÇÕES DE REVELAÇÃO
   Conteúdo permanece visível quando JavaScript estiver indisponível.
   ========================================================================== */
[data-reveal] {
  opacity: 1;
  transform: none;
}

.gr-js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.gr-js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gr-js [data-reveal="left"] {
  transform: translateX(-22px);
}

.gr-js [data-reveal="right"] {
  transform: translateX(22px);
}

.gr-js [data-reveal="left"].is-visible,
.gr-js [data-reveal="right"].is-visible {
  transform: translateX(0);
}


/* ==========================================================================
   HEADER GLOBAL
   Os estados usam dois arquivos reais do logotipo: branco e colorido.
   Nenhum filtro ou máscara é aplicado à identidade visual.
   ========================================================================== */
.gr-site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1400;
}

.gr-logo {
  isolation: isolate;
}


/* ==========================================================================
   MODAL TERRITORIAL — REGIÃO E CIDADE
   ========================================================================== */
.gr-overlay[data-city-panel] {
  overflow-y: auto;
  padding: clamp(0.75rem, 2vw, 1.5rem);
}

.gr-territory-modal {
  width: min(96vw, 78rem);
  max-height: 92vh;
  padding: clamp(1.15rem, 2.2vw, 1.8rem);
  overflow: auto;
  border-radius: 1.8rem;
}

.gr-territory-modal__head {
  align-items: flex-start;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--gr-border);
}

.gr-territory-modal__breadcrumb {
  margin-bottom: 0.55rem;
  color: var(--gr-blue-700);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gr-territory-modal__location {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem;

    margin: 0;

    font-family: var(--gr-font-display);
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


/* “VOCÊ ESTÁ EM” */

.gr-territory-modal__location > span {
    font: inherit;
    color: var(--gr-blue-900, #1764c0);
}


/* NOME DA CIDADE */
.gr-territory-modal__location > span::after {
    content: ":";
}

.gr-territory-modal__location > strong {
    font: inherit;
    color: var(--gr-blue-700, #1764c0);
}

.gr-territory-modal__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(20rem, 0.88fr);
  gap: 1.15rem;
  margin-top: 1.15rem;
}

.gr-territory-modal__region,
.gr-territory-modal__cities {
  min-width: 0;
  padding: clamp(1rem, 1.8vw, 1.35rem);
  border: 1px solid var(--gr-border);
  border-radius: 1.35rem;
  background: #fbfcfe;
}

.gr-territory-modal__notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(12, 69, 155, 0.16);
  border-left: 0.28rem solid var(--gr-yellow-500);
  border-radius: 1rem;
  background: var(--gr-white);
}

.gr-territory-modal__notice-copy {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.gr-territory-modal__notice-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.85rem;
  color: var(--gr-blue-900);
  background: var(--gr-yellow-500);
  font-size: 1.2rem;
}

.gr-territory-modal__eyebrow {
  display: block;
  margin-bottom: 0.22rem;
  color: var(--gr-blue-700);
  font-family: var(--gr-font-light);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.gr-territory-modal__notice h3,
.gr-territory-modal__cities-head h3 {
  margin: 0;
  color: var(--gr-blue-950);
  font-family: var(--gr-font-callout);
  line-height: 1.04;
}

.gr-territory-modal__notice h3 {
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
}

.gr-territory-modal__state-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.gr-territory-modal__map {
  display: grid;
  place-items: center;
  min-height: 24rem;
  padding: 0.75rem 0.5rem 0.25rem;
}

.gr-territory-map__svg {
  display: block;
  width: 100%;
  height: 24rem;
  overflow: visible;
}

.gr-territory-modal__fallback {
  display: grid;
  gap: 0.5rem;
}

.gr-territory-modal__fallback > label {
  color: var(--gr-blue-950);
  font-family: var(--gr-font-light);
  font-size: 0.8rem;
  font-weight: 700;
}

.gr-territory-modal__cities {
  display: flex;
  flex-direction: column;
}

.gr-territory-modal__cities-head {
  padding-bottom: 1rem;
}

.gr-territory-modal__cities-head h3 {
  max-width: 24rem;
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
}

.gr-territory-modal__cities-head p {
  margin: 0.5rem 0 0;
  color: var(--gr-muted);
  font-family: var(--gr-font-light);
  font-size: 0.9rem;
}

.gr-territory-modal__city-select {
  margin-bottom: 0.15rem;
}

.gr-territory-modal__city-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.gr-territory-modal__city-list .gr-city-option {
  min-height: 2.95rem;
  padding: 0.62rem 0.78rem;
  border-radius: 0.82rem;
  font-size: 0.9rem;
  line-height: 1.12;
  cursor: pointer;
  transition:
    color var(--gr-transition),
    border-color var(--gr-transition),
    background-color var(--gr-transition),
    transform var(--gr-transition);
}

.gr-territory-modal__city-list .gr-city-option:hover,
.gr-territory-modal__city-list .gr-city-option:focus-visible,
.gr-territory-modal__city-list .gr-city-option.is-active {
  color: var(--gr-white);
  border-color: var(--gr-blue-800);
  background: var(--gr-blue-800);
  transform: translateY(-1px);
}


/* ==========================================================================
   AJUSTE FINAL DO FOOTER — RESPIRO ENTRE DESCRIÇÃO E REDES
   ========================================================================== */
.gr-footer__social-title {
  margin-top: 1.65rem;
  margin-bottom: 0.8rem;
}
