/* ==========================================================================
   RESPONSIVIDADE GLOBAL
   Único arquivo responsável por breakpoints do projeto.
   ========================================================================== */

@media (max-width: 1180px) {
  .gr-header__actions .gr-btn {
    display: none;
  }

  .gr-content-layout,
  .gr-legal-layout {
    grid-template-columns: 1fr;
  } 

  .gr-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gr-page-participate .gr-participate-support__heading {
    grid-column: 1 / -1;
  }

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

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

  .gr-archive-grid--three,
  .gr-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gr-page-home .gr-city-overview__grid,
  .gr-page-home .gr-flags__grid--news,
  .gr-page-home .gr-agenda__grid--refined,
  .gr-page-home .gr-listen__grid--form-first {
    grid-template-columns: 1fr;
  }

  .gr-page-home .gr-city-card-grid--two,
  .gr-page-home .gr-form-topic-grid--main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gr-page-home .gr-form--integrated .gr-form-topic-grid--main > .gr-topic {
    grid-column: auto;
  }


  /* Mesmo com três ou mais entregas, tablet mantém no máximo duas colunas. */
  .gr-page-home
  .gr-city-card-grid--two:has(> .gr-city-story-card:nth-child(3)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* O perfil deixa de ser sticky quando as colunas viram uma só. */
  .gr-page-home .gr-city-profile {
    position: static;
    top: auto;
  }
}

@media (max-width: 920px) {
  :root {
    --gr-header-height: 5.4rem;
  }

  .gr-header__inner {
    padding-block: 0.5rem;
  }

  .gr-menu-toggle {
    display: grid;
  }

  .gr-nav {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 1rem;
    left: 1rem;
    display: none;
    max-height: calc(100vh - var(--gr-header-height) - 2rem);
    overflow-y: auto;
    padding: 0.8rem;
    border: 1px solid var(--gr-border);
    border-radius: 1.1rem;
    background: var(--gr-white);
    box-shadow: var(--gr-shadow-lg);
  }

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

  .gr-nav a,
  .gr-page-home .gr-site-header:not(.is-scrolled) .gr-nav a {
    padding: 0.8rem 0.9rem;
    border-radius: 0.75rem;
    color: var(--gr-blue-950);
  }

  .gr-nav a:hover,
  .gr-nav a.is-active {
    color: var(--gr-blue-950);
    background: var(--gr-yellow-500);
  }

  /*
   * O seletor territorial continua legível quando o menu vira hambúrguer.
   * Não escondemos o nome da cidade: o texto ocupa o espaço disponível e
   * pode quebrar em até duas linhas sem empurrar o botão do menu.
   */
  .gr-header__actions {
    min-width: 0;
    flex-shrink: 1;
  }

  .gr-city-button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.45rem;

    min-width: 7.5rem;
    max-width: clamp(8.5rem, 22vw, 12.5rem);
    padding-inline: 0.7rem;
  }

  .gr-city-button span {
    display: block;
    min-width: 0;
    overflow: hidden;
  }

  .gr-city-button strong {
    display: -webkit-box;
    overflow: hidden;

    font-size: clamp(0.74rem, 1.45vw, 0.9rem);
    line-height: 1.08;
    text-align: left;
    white-space: normal;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

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

  .gr-gallery button:first-child {
    grid-row: auto;
    grid-column: 1 / -1;
  }


  /* Galeria global de encontros: mosaico equilibrado no tablet. */
  .gr-meeting-gallery--mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 17rem 12rem 12rem 12rem;
    min-height: 0;
  }

  .gr-meeting-gallery--mosaic .gr-meeting-card:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .gr-meeting-gallery--mosaic .gr-meeting-card:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .gr-meeting-gallery--mosaic .gr-meeting-card:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .gr-meeting-gallery--mosaic .gr-meeting-card:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
  }

  .gr-meeting-gallery--mosaic .gr-meeting-card:nth-child(5) {
    grid-column: 2;
    grid-row: 3;
  }

  .gr-meeting-gallery--mosaic .gr-meeting-card:nth-child(6) {
    grid-column: 1 / 3;
    grid-row: 4;
  }
}

/* ==========================================================================\n   HEADER — FAIXA FLUIDA ENTRE TABLET E MOBILE
   Usa uma única faixa para qualquer largura entre 721px e 920px.
   ========================================================================== */

@media (min-width: 721px) and (max-width: 920px) {
  .gr-header__inner {
    gap: clamp(0.5rem, 1.35vw, 0.9rem);
  }

  .gr-logo {
    flex: 0 1 auto;
    width: clamp(9rem, 18vw, 10.75rem);
  }

  .gr-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(0.45rem, 1vw, 0.65rem);
    margin-left: auto;
  }

  .gr-city-button {
    width: clamp(8.75rem, 24vw, 12rem);
    min-width: 0;
    min-height: 3rem;
    max-width: 100%;
  }

  .gr-menu-toggle {
    flex: 0 0 3rem;
    width: 3rem;
    height: 3rem;
  }
}

@media (max-width: 720px) {
  :root {
    --gr-container: min(100% - 1.25rem, 76rem);
    --gr-container-wide: min(100% - 1.25rem, 86rem);
  }

  .gr-section,
  .gr-internal-section {
    padding-block: 3.5rem;
  }

  .gr-page-internal .gr-page-hero {
    padding: calc(var(--gr-header-height) + 3.2rem) 0 3.2rem;
  }

  .gr-page-internal .gr-page-hero__title,
  .gr-page-internal .gr-page-hero__lead {
    max-width: 100%;
  }

  .gr-archive-grid,
  .gr-archive-grid--three,
  .gr-card-grid,
  .gr-contact-grid,
  .gr-form-grid,
  .gr-stats-grid,
  .gr-sidebar,
  .gr-footer__main {
    grid-template-columns: 1fr;
  }

  .gr-field--full {
    grid-column: auto;
  }

  .gr-footer__legal-inner,
  .gr-closing__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .gr-city-list {
    grid-template-columns: 1fr;
  }

  .gr-search-form {
    grid-template-columns: 1fr;
  }

  .gr-page-home .gr-city-card-grid--two,
  .gr-page-home .gr-form-topic-grid--main,
  .gr-page-home .gr-campaign-content-grid {
    grid-template-columns: 1fr;
  }


  /* No mobile, qualquer quantidade de entregas ocupa uma única coluna. */
  .gr-page-home
  .gr-city-card-grid--two:has(> .gr-city-story-card:nth-child(3)) {
    grid-template-columns: 1fr;
  }

  .gr-page-home .gr-flags .gr-accordion__content-inner {
    padding-inline: 1.1rem;
  }
.gr-page-home .gr-event--city {
    grid-template-columns: 4.2rem 1fr auto;
  }

  .gr-page-home .gr-event__city,
  .gr-page-home .gr-event__body {
    grid-column: 2;
  }

  .gr-page-home .gr-event__city {
    min-height: auto;
    padding-right: 0;
    border-right: 0;
  }

  .gr-page-home .gr-event--city > i {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .gr-quote,
  blockquote.gr-quote {
    padding: 1.25rem 1.1rem 1.25rem 3.3rem;
  }

  .gr-quote::before {
    left: 0.8rem;
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .gr-logo {
    width: 10.5rem;
  }

  .gr-header__actions {
    gap: 0.45rem;
  }

  .gr-city-button,
  .gr-menu-toggle {
    width: 2.8rem;
    height: 2.8rem;
    padding: 0;
    justify-content: center;
  }

  .gr-page-home .gr-flag-nav {
    grid-template-columns: 1fr;
  }

  .gr-pagination a,
  .gr-pagination span {
    width: 2.45rem;
    height: 2.45rem;
  }
}

/* ==========================================================================
   HERO HOME — COMPOSIÇÃO RESPONSIVA CONSOLIDADA
   Uma única fonte para texto, imagem, botões e quote em todos os breakpoints.
   O quote permanece centralizado no corpo e desce no tablet para não cobrir o rosto.
   ========================================================================== */

@media (max-width: 1180px) {
  .gr-page-home .gr-hero__inner {
    grid-template-columns:
      minmax(0, 1.06fr)
      minmax(20rem, 0.94fr);
    gap: clamp(0.75rem, 1.6vw, 1.5rem);

    /* Valores-base do quote para notebooks e tablets largos. */
    --gr-hero-quote-top: 66%;
    --gr-hero-quote-width: min(16rem, 62%);
  }

  .gr-page-home .gr-hero__title {
    font-size: clamp(3rem, 5.25vw, 4.15rem);
  }

  .gr-page-home .gr-hero__title.has-long-city {
    font-size: clamp(2.78rem, 4.8vw, 3.8rem);
  }

  .gr-page-home .gr-hero__title.has-very-long-city {
    font-size: clamp(2.5rem, 4.3vw, 3.45rem);
  }

  .gr-page-home .gr-hero__person {
    position: relative;
    min-width: 0;
  }

  .gr-page-home .gr-hero__person img {
    width: min(36rem, 112%);
    max-width: none;
  }

  .gr-page-home .gr-hero__quote {
    top: var(--gr-hero-quote-top);
    left: 50%;
    width: var(--gr-hero-quote-width);
    padding: 0.95rem 1rem 0.9rem 3rem;
    transform: translate(-50%, -50%);
  }

  .gr-page-home .gr-hero__quote::after {
    top: -0.76rem;
    bottom: auto;
    left: 68%;
    background: var(--gr-hero-quote-bg);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
  }

  .gr-page-home .gr-hero__quote-mark {
    left: 0.82rem;
    font-size: 2.8rem;
  }

  .gr-page-home .gr-hero__quote p {
    font-size: 0.9rem;
  }
}

/* Tablets em retrato e dobráveis: mantém duas colunas, mas leva a fala ao tórax. */
@media (min-width: 721px) and (max-width: 920px) {
  .gr-page-home .gr-hero__inner {
    grid-template-columns:
      minmax(0, 1.04fr)
      minmax(15rem, 0.76fr);
    gap: 0.5rem;

    --gr-hero-quote-top: 70%;
    --gr-hero-quote-width: min(14.75rem, 68%);
  }

  .gr-page-home .gr-hero__content {
    padding-bottom: 4.75rem;
    transform: none;
  }

  .gr-page-home .gr-hero__title {
    font-size: clamp(2.75rem, 5.7vw, 3.55rem);
  }

  .gr-page-home .gr-hero__title.has-long-city {
    font-size: clamp(2.5rem, 5.2vw, 3.2rem);
  }

  .gr-page-home .gr-hero__title.has-very-long-city {
    font-size: clamp(2.3rem, 4.8vw, 2.92rem);
  }

  .gr-page-home .gr-hero__person img {
    width: min(32rem, 120%);
  }

  .gr-page-home .gr-hero__quote p {
    font-size: 0.86rem;
    line-height: 1.28;
  }
}

/* Mobile aprovado: texto primeiro e retrato completo abaixo. */
@media (max-width: 720px) {
  .gr-page-home .gr-hero,
  .gr-page-home .gr-hero__inner {
    min-height: auto;
  }

  .gr-page-home .gr-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: 100%;
    padding-top: calc(var(--gr-header-height) + 1.15rem);
    padding-right: 1rem;
    padding-left: 1rem;

    /* A posição aprovada no mobile já deixa o rosto livre. */
    --gr-hero-quote-top: 59%;
    --gr-hero-quote-width: min(17rem, 82%);
  }

  .gr-page-home .gr-hero__content {
    align-self: auto;
    width: 100%;
    max-width: none;
    padding-block: 2.4rem 1.15rem;
    transform: none;
  }

  .gr-page-home .gr-hero__title,
  .gr-page-home .gr-hero__title.has-long-city,
  .gr-page-home .gr-hero__title.has-very-long-city {
    max-width: 100%;
    font-size: clamp(2.45rem, 10.8vw, 3.3rem);
    line-height: 0.95;
  }

  .gr-page-home .gr-hero__text {
    max-width: 100%;
    font-size: clamp(1rem, 4.4vw, 1.18rem);
    line-height: 1.45;
  }

  .gr-page-home .gr-hero__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    width: 100%;
  }

  .gr-page-home .gr-hero__actions .gr-btn {
    min-width: 0;
    min-height: 3rem;
    justify-content: center;
    padding: 0.72rem 0.45rem;
    font-size: clamp(0.69rem, 3.3vw, 0.84rem);
    line-height: 1.05;
    text-align: center;
    white-space: nowrap;
  }

  .gr-page-home .gr-hero__person {
    position: relative;
    min-height: clamp(29rem, 112vw, 35rem);
    margin-top: 0;
    padding-top: 0;
    align-items: flex-end;
    justify-content: center;
  }

  .gr-page-home .gr-hero__person img {
    width: min(34rem, 118vw);
    max-width: none;
    margin-inline: auto;
    transform: translateX(1.5%);
  }

  .gr-page-home .gr-hero__quote {
    z-index: 4;
    padding: 1rem 1rem 0.92rem 3.15rem;
  }

  .gr-page-home .gr-hero__quote-mark {
    top: 0.55rem;
    left: 0.85rem;
    font-size: 2.85rem;
  }

  .gr-page-home .gr-hero__quote p {
    font-size: 0.88rem;
    line-height: 1.28;
  }

  .gr-page-home .gr-hero__quote cite {
    margin-top: 0.45rem;
    font-size: 0.64rem;
  }
}

@media (max-width: 480px) {
  .gr-page-home .gr-hero__inner {
    padding-right: 0.8rem;
    padding-left: 0.8rem;
    --gr-hero-quote-width: min(16rem, 86%);
  }

  .gr-page-home .gr-hero__title,
  .gr-page-home .gr-hero__title.has-long-city,
  .gr-page-home .gr-hero__title.has-very-long-city {
    font-size: clamp(2.25rem, 10.7vw, 2.9rem);
  }

  .gr-page-home .gr-hero__actions {
    gap: 0.42rem;
  }

  .gr-page-home .gr-hero__actions .gr-btn {
    padding-inline: 0.4rem;
    font-size: clamp(0.66rem, 2.9vw, 0.78rem);
  }

  .gr-page-home .gr-hero__person {
    min-height: clamp(27rem, 118vw, 31rem);
  }

  .gr-page-home .gr-hero__person img {
    width: min(31rem, 124vw);
  }
}

/* ========================================================================== 
   GALERIA GLOBAL DE EVENTOS — MOBILE
   ========================================================================== */

@media (max-width: 720px) {
  :is([data-event-modal], [data-gallery-modal]) {
    padding: 0.5rem;
  }

  :is([data-event-modal], [data-gallery-modal]) .gr-modal--gallery {
    width: min(96vw, 42rem);
    max-height: none;
    overflow: visible;
    padding: 1rem;
    border-radius: 1.15rem;
  }

  :is([data-event-modal], [data-gallery-modal]) .gr-event-gallery-modal {
    height: min(42vh, 22rem);
    margin-top: 1rem;
    border-radius: 1rem;
  }

  :is([data-event-modal], [data-gallery-modal]) .gr-event-gallery-modal__nav {
    width: 2.7rem;
    height: 2.7rem;
  }

  :is([data-event-modal], [data-gallery-modal]) .gr-event-gallery-modal__thumbs {
    grid-auto-columns: 5.5rem;
  }

  :is([data-event-modal], [data-gallery-modal]) .gr-event-gallery-modal__thumbs button {
    height: 4rem;
  }

  .gr-meeting-gallery--mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 0.8rem;
  }

  .gr-meeting-gallery--mosaic .gr-meeting-card,
  .gr-meeting-gallery--mosaic .gr-meeting-card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    min-height: 13rem;
  }

  .gr-meeting-gallery--mosaic .gr-meeting-card:first-child {
    min-height: 17rem;
  }
}

@media (max-width: 47.99rem) {
  .gr-page-agenda .gr-event-card {
    grid-template-columns: 5.75rem minmax(0, 1fr);
  }

  .gr-page-agenda .gr-event-card .gr-link-arrow {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* ==========================================================================
   PÁGINAS INTERNAS — COMPOSIÇÕES EDITORIAIS
   ========================================================================== */

@media (max-width: 960px) {
  .gr-about-intro__grid,
  .gr-method-card,
  .gr-internal-layout,
  .gr-campaign-feature,
  .gr-feeling-band,
  .gr-local-legacy {
    grid-template-columns: 1fr;
  }

  .gr-about-pillars,
  .gr-method-steps,
  .gr-legacy-strip,
  .gr-impact-grid,
  .gr-mini-timeline,
  .gr-route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gr-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gr-actions-flags-showcase__head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .gr-flags-grid--hierarchy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .gr-flags-grid--hierarchy[data-count] .gr-flag-card {
    grid-column: auto;
    grid-row: auto;
  }

  .gr-flags-grid--hierarchy[data-count] .gr-flag-card--health {
    grid-column: 1 / -1;
  }

  .gr-page-actions .gr-flag-card--health {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 24rem;
  }

  .gr-page-actions .gr-flag-card--education,
  .gr-page-actions .gr-flag-card--infrastructure,
  .gr-page-actions .gr-flag-card--development {
    grid-column: auto;
    grid-row: auto;
  }

  .gr-city-context,
  .gr-campaign-opening {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .gr-feeling-band img {
    max-height: 24rem;
  }

}

@media (max-width: 640px) {
  .gr-about-pillars,
  .gr-method-steps,
  .gr-legacy-strip,
  .gr-impact-grid,
  .gr-mini-timeline,
  .gr-route-grid,
  .gr-sidebar,
  .gr-flags-grid--hierarchy {
    grid-template-columns: 1fr;
  }

  .gr-about-timeline .gr-timeline::before {
    left: 0.35rem;
  }

  .gr-about-timeline .gr-timeline article {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding-left: 2rem;
  }

  .gr-about-timeline .gr-timeline article::before {
    left: 0;
  }

  .gr-timeline__year {
    text-align: left;
  }

  .gr-about-intro__stamp {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .gr-city-context {
    align-items: stretch;
  }

  .gr-city-select-card {
    min-width: 0;
  }

  .gr-page-actions .gr-flag-card--health {
    grid-column: auto;
    min-height: 22rem;
  }

  .gr-flags-grid--hierarchy[data-count] .gr-flag-card,
  .gr-flags-grid--hierarchy[data-count] .gr-flag-card--health {
    grid-column: auto;
    grid-row: auto;
  }

  .gr-section-heading--split,
  .gr-about-closing {
    align-items: flex-start;
    flex-direction: column;
  }

  .gr-deliveries-list article,
  .gr-next-event,
  .gr-agenda-list article {
    grid-template-columns: 1fr;
  }

  .gr-deliveries-list article .gr-link-arrow,
  .gr-agenda-list article .gr-link-arrow {
    justify-self: start;
  }

  .gr-campaign-feature img {
    min-height: 16rem;
  }


}

/* ==========================================================================
   MODAL TERRITORIAL — RESPONSIVO
   ========================================================================== */
@media (max-width: 980px) {
  .gr-territory-modal__grid {
    grid-template-columns: 1fr;
  }

  .gr-territory-modal__map,
  .gr-territory-map__svg {
    min-height: 21rem;
    height: 21rem;
  }
}

@media (max-width: 720px) {
  .gr-overlay[data-city-panel] {
    place-items: start center;
    padding: 0.55rem;
  }

  .gr-territory-modal {
    width: 100%;
    max-height: calc(100vh - 1.1rem);
    border-radius: 1.25rem;
  }

  .gr-territory-modal__head {
    gap: 0.75rem;
  }

  .gr-territory-modal__location > strong {
    font-size: clamp(1.55rem, 7vw, 2.2rem);
  }

  .gr-territory-modal__notice {
    align-items: stretch;
    flex-direction: column;
  }

  .gr-territory-modal__state-button {
    width: 100%;
  }

  .gr-territory-modal__map,
  .gr-territory-map__svg {
    min-height: 18rem;
    height: 18rem;
  }

  .gr-territory-modal__city-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .gr-territory-modal__city-list {
    grid-template-columns: 1fr;
  }

  .gr-location-select select {
    font-size: 0.94rem;
  }
}

/* ==========================================================================
   HOME — AJUSTES RESPONSIVOS COMPLEMENTARES
   Mantém aqui somente menu, formulário e footer.
   O hero possui um bloco consolidado próprio.
   ========================================================================== */

/* ==========================================================================
   02. MENU RESPONSIVO
   Remove a linha decorativa do menu desktop e cria separadores reais.
   ========================================================================== */

@media (max-width: 920px) {
  .gr-page-home .gr-nav {
    top: calc(100% + 0.55rem);
    right: 0.75rem;
    left: 0.75rem;

    gap: 0;
    align-content: start;

    max-height: min(72vh, 31rem);
    padding: 0.55rem;

    overflow-y: auto;

    border: 1px solid rgba(12, 69, 155, 0.16);
    border-radius: 1.2rem;

    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 55px rgba(4, 27, 77, 0.22);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .gr-page-home .gr-nav a,
  .gr-page-home .gr-site-header:not(.is-scrolled) .gr-nav a,
  .gr-page-home .gr-site-header.is-scrolled .gr-nav a {
    min-height: 3.2rem;
    display: flex;
    align-items: center;

    padding: 0.78rem 0.9rem;

    border: 0;
    border-bottom: 1px solid rgba(12, 69, 155, 0.11);
    border-radius: 0;

    color: var(--gr-blue-950);
    background: transparent;

    font-size: 1rem;
    line-height: 1.1;
  }

  .gr-page-home .gr-nav a:last-child {
    border-bottom: 0;
  }

  .gr-page-home .gr-nav a::after {
    display: none;
  }

  .gr-page-home .gr-nav a:hover {
    color: var(--gr-blue-950);
    background: rgba(237, 204, 35, 0.18);
  }

  .gr-page-home .gr-nav a.is-active {
    margin-block: 0.15rem;

    border-bottom-color: transparent;
    border-radius: 0.8rem;

    color: var(--gr-blue-950);
    background: var(--gr-yellow-500);
  }

  .gr-page-home .gr-nav a.is-active + a {
    border-top: 1px solid rgba(12, 69, 155, 0.11);
  }
}


/* ==========================================================================
   03. MOBILE — HEADER
   O header não acompanha o scroll.
   A composição do hero está centralizada no bloco responsivo próprio.
   ========================================================================== */

@media (max-width: 720px) {
  :root {
    --gr-header-height: 5.15rem;
  }

  /* Header da Home não fica fixo no mobile. */
  .gr-page-home .gr-site-header,
  .gr-page-home .gr-site-header.is-scrolled {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
  }

  .gr-page-home .gr-site-header::before,
  .gr-page-home .gr-site-header.is-scrolled::before {
    background:
      linear-gradient(
        90deg,
        rgba(3, 24, 66, 0.86) 0%,
        rgba(6, 39, 95, 0.76) 58%,
        rgba(12, 69, 155, 0.64) 100%
      );

    border-bottom-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 24px rgba(3, 24, 66, 0.1);

    backdrop-filter: blur(7px) saturate(112%);
    -webkit-backdrop-filter: blur(7px) saturate(112%);
  }

  .gr-page-home .gr-site-header .gr-logo__white,
  .gr-page-home .gr-site-header.is-scrolled .gr-logo__white {
    opacity: 1;
  }

  .gr-page-home .gr-site-header .gr-logo__blue,
  .gr-page-home .gr-site-header.is-scrolled .gr-logo__blue {
    opacity: 0;
  }

  .gr-page-home .gr-header__inner {
    gap: 0.45rem;
    padding: 0.55rem 0.8rem;
  }

  .gr-page-home .gr-logo {
    width: 9rem;
  }

  .gr-page-home .gr-header__actions {
    min-width: 0;
    margin-left: auto;
    gap: 0.42rem;
  }

  .gr-page-home .gr-city-button,
  .gr-page-home .gr-site-header.is-scrolled .gr-city-button {
    width: auto;
    min-width: 0;
    max-width: 8.7rem;
    height: 2.85rem;

    padding: 0.5rem 0.62rem;

    border-color: rgba(255, 255, 255, 0.28);
    color: var(--gr-white);
    background: rgba(255, 255, 255, 0.08);
  }

  .gr-page-home .gr-city-button span {
    display: block;
    min-width: 0;
    overflow: hidden;
  }

  .gr-page-home .gr-city-button strong {
    display: block;
    overflow: hidden;

    color: inherit;

    font-size: 0.76rem;
    line-height: 1;

    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .gr-page-home .gr-menu-toggle,
  .gr-page-home .gr-site-header.is-scrolled .gr-menu-toggle {
    display: grid;

    flex: 0 0 auto;

    width: 2.85rem;
    height: 2.85rem;
    padding: 0;

    border-color: rgba(255, 255, 255, 0.28);
    border-radius: 0.92rem;

    color: var(--gr-white);
    background: rgba(255, 255, 255, 0.08);
  }

  /* ==========================================================================
     04. FORMULÁRIO MOBILE
     Pautas em duas colunas e todos os campos em uma única coluna real.
     ========================================================================== */

  .gr-page-home .gr-listen__grid--form-first {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gr-page-home .gr-form--integrated {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1rem;
  }

  .gr-page-home .gr-form--integrated .gr-form__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
  }

  .gr-page-home .gr-form--integrated .gr-field,
  .gr-page-home .gr-form--integrated .gr-field--full {
    min-width: 0;
    grid-column: 1 / -1;
  }

  .gr-page-home .gr-form--integrated .gr-form-topic-grid--main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.7rem;
  }

  .gr-page-home .gr-form--integrated .gr-topic {
    min-width: 0;
    min-height: 3.65rem;

    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.55rem;

    padding: 0.62rem;
    border-radius: 0.95rem;
  }

  .gr-page-home .gr-form--integrated .gr-topic:last-child {
    grid-column: 1 / -1;
  }

  .gr-page-home .gr-form--integrated .gr-topic__icon {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 0.75rem;
  }

  .gr-page-home .gr-form--integrated .gr-topic strong {
    overflow-wrap: anywhere;
    font-size: 0.82rem;
    line-height: 1.05;
  }

  .gr-page-home .gr-form--integrated .gr-field input,
  .gr-page-home .gr-form--integrated .gr-field select,
  .gr-page-home .gr-form--integrated .gr-field textarea {
    width: 100%;
    min-width: 0;
  }

  .gr-page-home .gr-form--integrated .gr-field textarea {
    min-height: 7rem;
  }

  .gr-page-home .gr-form--integrated .gr-consent {
    width: 100%;
    padding: 0.85rem;
  }

  .gr-page-home .gr-form--integrated button[type="submit"] {
    width: 100%;
    justify-content: center;
  }


  /* ==========================================================================
     05. FOOTER MOBILE
     Marca em largura total, navegação equilibrada e institucional organizado.
     ========================================================================== */

  .gr-theme-vs1 .gr-footer__main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 1.5rem 1rem;

    width: var(--gr-container-wide);
    padding: 2.5rem 0 2.1rem;
  }

  .gr-theme-vs1 .gr-footer__brand {
    grid-column: 1 / -1;
    padding-bottom: 0.3rem;
  }

  .gr-theme-vs1 .gr-footer__logo {
    max-width: 12rem;
    margin-bottom: 0.7rem;
  }

  .gr-theme-vs1 .gr-footer__brand p {
    max-width: 31rem;
    margin: 0 0 1rem;

    font-size: 0.92rem;
    line-height: 1.45;
  }

  .gr-theme-vs1 .gr-footer__social-title {
    margin: 0.9rem 0 0.7rem;
  }

  .gr-theme-vs1 .gr-footer__main > div:not(.gr-footer__brand) {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .gr-theme-vs1 .gr-footer__main > div:nth-child(4) {
    grid-column: 1 / -1;
  }

  .gr-theme-vs1 .gr-footer__main > div:nth-child(4) ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
  }

  .gr-theme-vs1 .gr-footer h3 {
    margin: 0 0 0.65rem;
    font-size: 0.92rem;
  }

  .gr-theme-vs1 .gr-footer ul {
    gap: 0.5rem;
  }

  .gr-theme-vs1 .gr-footer a,
  .gr-theme-vs1 .gr-footer li {
    font-size: 0.9rem;
    line-height: 1.35;
  }

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

  .gr-theme-vs1 .gr-footer .gr-social-links a {
    width: 2.75rem;
    height: 2.75rem;
  }

  .gr-theme-vs1 .gr-footer__legal-inner {
    width: var(--gr-container-wide);

    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;

    padding: 0.85rem 4.2rem 0.85rem 0;

    font-size: 0.78rem;
    line-height: 1.35;
  }

  /* Flutuantes menores para não esmagar o conteúdo do footer. */
  .gr-page-home .gr-float {
    right: 0.7rem;
    bottom: 0.7rem;
    gap: 0.5rem;
  }

  .gr-page-home .gr-float a,
  .gr-page-home .gr-float button {
    width: 2.9rem;
    height: 2.9rem;
  }
}

/* ==========================================================================
   06. CELULARES MENORES
   ========================================================================== */

@media (max-width: 480px) {
  .gr-page-home .gr-header__inner {
    padding-inline: 0.65rem;
  }

  .gr-page-home .gr-logo {
    width: 8.35rem;
  }

  .gr-page-home .gr-city-button,
  .gr-page-home .gr-site-header.is-scrolled .gr-city-button {
    max-width: 7.2rem;
    height: 2.7rem;
  }

  .gr-page-home .gr-menu-toggle,
  .gr-page-home .gr-site-header.is-scrolled .gr-menu-toggle {
    width: 2.7rem;
    height: 2.7rem;
  }

  .gr-page-home .gr-form--integrated .gr-topic strong {
    font-size: 0.76rem;
  }

  .gr-theme-vs1 .gr-footer__main {
    gap: 1.35rem 0.8rem;
  }
}

/* ==========================================================================
   AJUSTES FINAIS — INSTAGRAM, BANDEIRAS, SELETOR E FOOTER
   Este bloco fica no final do arquivo para prevalecer sem alterar os demais
   componentes já aprovados.
   ========================================================================== */


/* ==========================================================================
   01. TABLET E MOBILE — INSTAGRAM ARRASTÁVEL
   ========================================================================== */

@media (max-width: 920px) {
  .gr-page-home .gr-social-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(76vw, 24rem);
    justify-content: start;
    gap: 0.85rem;
    overflow-x: auto;
    padding: 0.2rem 0.15rem 0.85rem;
    scroll-behavior: smooth;
    scroll-padding-inline: 0.15rem;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-color: rgba(12, 69, 155, 0.38) transparent;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .gr-page-home .gr-social-card {
    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    border-radius: 1.05rem;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .gr-page-home .gr-social-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /*
   * No tablet/mobile a imagem é o conteúdo principal.
   * Remove tanto o texto quanto o degradê usado para leitura desse texto.
   */
  .gr-page-home .gr-social-card__copy,
  .gr-page-home .gr-social-card::after {
    display: none;
  }

  .gr-page-home .gr-social-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: fit-content;
    margin: 0.7rem auto 0;
    padding: 0.52rem 0.8rem;
    border-radius: 999px;
    color: var(--gr-blue-800);
    background: rgba(12, 69, 155, 0.08);
    font-size: 0.82rem;
    font-weight: 700;
  }

  .gr-page-home .gr-social-swipe-hint .bi-hand-index-thumb {
    font-size: 1.05rem;
    animation: gr-social-swipe-hand 1.8s ease-in-out infinite;
  }
}

@keyframes gr-social-swipe-hand {
  0%,
  100% {
    transform: translateX(-0.15rem);
  }

  50% {
    transform: translateX(0.15rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gr-page-home .gr-social-swipe-hint .bi-hand-index-thumb {
    animation: none;
  }
}


/* ==========================================================================
   02. TABLET E MOBILE — BANDEIRAS EM DUAS COLUNAS
   ========================================================================== */

@media (max-width: 920px) {
  .gr-page-home .gr-flag-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 1.25rem;
  }

  .gr-page-home .gr-flag-nav__item {
    grid-template-columns: 2.55rem minmax(0, 1fr) auto;
    gap: 0.6rem;

    min-width: 0;
    min-height: 4.65rem;
    padding: 0.72rem;

    border-right: 1px solid var(--gr-border);
    border-bottom: 1px solid var(--gr-border);
  }

  .gr-page-home .gr-flag-nav__item:nth-child(2n) {
    border-right: 0;
  }

  .gr-page-home .gr-flag-nav__item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .gr-page-home .gr-flag-nav__icon {
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 0.85rem;
  }

  .gr-page-home .gr-flag-nav__item strong {
    overflow: hidden;
    font-size: 0.92rem;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .gr-page-home .gr-flag-nav__item small {
    display: none;
  }
}


/* ==========================================================================
   03. MOBILE — SELETOR DE CIDADE DO HEADER
   Nome longo em duas linhas, sem cortar como “Apare...”.
   ========================================================================== */

@media (max-width: 720px) {
  .gr-page-home .gr-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .gr-page-home .gr-header__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;

    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .gr-page-home .gr-city-button,
  .gr-page-home .gr-site-header.is-scrolled .gr-city-button {
    width: 100%;
    max-width: none;
    min-height: 3.2rem;
    height: auto;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.45rem;

    padding: 0.5rem 0.6rem;
  }

  .gr-page-home .gr-city-button span {
    display: block;
    min-width: 0;
    overflow: visible;
  }

  .gr-page-home .gr-city-button strong {
    display: -webkit-box;
    overflow: hidden;

    color: inherit;

    font-size: clamp(0.66rem, 2.45vw, 0.78rem);
    line-height: 1.08;
    text-align: left;
    text-overflow: clip;
    white-space: normal;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .gr-page-home .gr-city-button > i:first-child,
  .gr-page-home .gr-city-button > i:last-child {
    flex: none;
  }
}

/* ==========================================================================
   04. FOOTER MOBILE — COMPOSIÇÃO EDITORIAL MAIS LIMPA
   Marca no topo, um painel visual de navegação e um painel institucional.
   ========================================================================== */

@media (max-width: 720px) {
  .gr-theme-vs1 .gr-footer {
    background:
      radial-gradient(
        circle at 92% 0%,
        rgba(24, 189, 229, 0.12),
        transparent 17rem
      ),
      linear-gradient(
        155deg,
        #031842 0%,
        #06275f 58%,
        #0c459b 100%
      );
  }

  .gr-theme-vs1 .gr-footer__main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    row-gap: 1.15rem;
    column-gap: 0;

    width: var(--gr-container-wide);
    padding: 2.35rem 0 2rem;
  }

  /* Marca */
  .gr-theme-vs1 .gr-footer__brand {
    grid-column: 1 / -1;

    display: grid;
    justify-items: start;

    padding: 0 0 0.9rem;
  }

  .gr-theme-vs1 .gr-footer__logo {
    width: min(13rem, 72%);
    max-width: none;
    margin: 0 0 0.8rem;
  }

  .gr-theme-vs1 .gr-footer__brand p {
    max-width: 31rem;
    margin: 0;

    color: rgba(255, 255, 255, 0.82);

    font-size: 0.92rem;
    line-height: 1.48;
  }

  .gr-theme-vs1 .gr-footer__social-title {
    margin: 1.15rem 0 0.65rem;
  }

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

  .gr-theme-vs1 .gr-footer .gr-social-links a {
    width: 2.75rem;
    height: 2.75rem;

    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
  }

  /*
   * Navegue + Conteúdo formam visualmente um único painel,
   * embora continuem em dois blocos no HTML.
   */
  .gr-theme-vs1 .gr-footer__main > div:nth-child(2),
  .gr-theme-vs1 .gr-footer__main > div:nth-child(3) {
    min-width: 0;
    padding: 1rem;

    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);

    background: rgba(255, 255, 255, 0.065);
  }

  .gr-theme-vs1 .gr-footer__main > div:nth-child(2) {
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1.1rem 0 0 1.1rem;
  }

  .gr-theme-vs1 .gr-footer__main > div:nth-child(3) {
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0 1.1rem 1.1rem 0;
  }

  .gr-theme-vs1 .gr-footer__main > div:nth-child(2) h3,
  .gr-theme-vs1 .gr-footer__main > div:nth-child(3) h3 {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
  }

  .gr-theme-vs1 .gr-footer__main > div:nth-child(2) ul,
  .gr-theme-vs1 .gr-footer__main > div:nth-child(3) ul {
    display: grid;
    gap: 0.45rem;
  }

  .gr-theme-vs1 .gr-footer__main > div:nth-child(2) a,
  .gr-theme-vs1 .gr-footer__main > div:nth-child(3) a {
    display: flex;
    align-items: center;

    min-height: 2.35rem;
    padding: 0.5rem 0.62rem;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.72rem;

    background: rgba(255, 255, 255, 0.055);

    font-size: 0.82rem;
    line-height: 1.15;
  }

  .gr-theme-vs1 .gr-footer__main > div:nth-child(2) a:hover,
  .gr-theme-vs1 .gr-footer__main > div:nth-child(3) a:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
  }

  /* Institucional vira um segundo painel, mais compacto. */
  .gr-theme-vs1 .gr-footer__main > div:nth-child(4) {
    grid-column: 1 / -1;

    padding: 1rem;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1.1rem;

    background: rgba(3, 24, 66, 0.3);
  }

  .gr-theme-vs1 .gr-footer__main > div:nth-child(4) h3 {
    margin: 0 0 0.75rem;
    font-size: 0.92rem;
  }

  .gr-theme-vs1 .gr-footer__main > div:nth-child(4) ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .gr-theme-vs1 .gr-footer__main > div:nth-child(4) a {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 2.45rem;
    padding: 0.5rem;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.07);

    font-size: 0.8rem;
    line-height: 1.1;
    text-align: center;
  }

  .gr-theme-vs1 .gr-footer__legal {
    background: rgba(2, 17, 48, 0.76);
  }

  .gr-theme-vs1 .gr-footer__legal-inner {
    width: var(--gr-container-wide);

    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;

    padding: 0.85rem 4rem 0.85rem 0;

    color: rgba(255, 255, 255, 0.72);

    font-size: 0.75rem;
    line-height: 1.35;
  }
}


/* ==========================================================================
   05. CELULARES MENORES
   ========================================================================== */

@media (max-width: 480px) {
  .gr-page-home .gr-header__inner {
    grid-template-columns: minmax(7.4rem, 0.82fr) minmax(0, 1.18fr);
    padding-inline: 0.62rem;
  }

  .gr-page-home .gr-logo {
    width: min(7.8rem, 100%);
  }

  .gr-page-home .gr-city-button,
  .gr-page-home .gr-site-header.is-scrolled .gr-city-button {
    min-height: 3rem;
    padding-inline: 0.5rem;
  }

  .gr-page-home .gr-city-button strong {
    font-size: clamp(0.61rem, 2.35vw, 0.7rem);
  }

  .gr-page-home .gr-menu-toggle,
  .gr-page-home .gr-site-header.is-scrolled .gr-menu-toggle {
    width: 2.7rem;
    height: 2.7rem;
  }

  .gr-page-home .gr-flag-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gr-theme-vs1 .gr-footer__main > div:nth-child(2),
  .gr-theme-vs1 .gr-footer__main > div:nth-child(3) {
    padding: 0.8rem;
  }

  .gr-theme-vs1 .gr-footer__main > div:nth-child(2) a,
  .gr-theme-vs1 .gr-footer__main > div:nth-child(3) a {
    padding-inline: 0.5rem;
    font-size: 0.76rem;
  }
}

/* ==========================================================================
   AJUSTE FINAL — CENTRALIZAÇÃO DO FOOTER E SELETOR DINÂMICO DA CIDADE
   ========================================================================== */

@media (max-width: 720px) {
  /* Bloco de marca e redes centralizado. */
  .gr-theme-vs1 .gr-footer__brand {
    justify-items: center;
    text-align: center;
  }

  .gr-theme-vs1 .gr-footer__logo {
    margin-right: auto;
    margin-left: auto;
  }

  .gr-theme-vs1 .gr-footer__brand p {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .gr-theme-vs1 .gr-footer__social-title {
    width: 100%;
    text-align: center;
  }

  .gr-theme-vs1 .gr-footer__brand .gr-social-links {
    justify-content: center;
    width: 100%;
  }

  /* Direitos e observação centralizados. */
  .gr-theme-vs1 .gr-footer__legal-inner {
    align-items: center;
    padding-right: 0;
    padding-left: 0;
    text-align: center;
  }

  /* O botão cresce conforme o nome, dentro do espaço disponível. */
  .gr-page-home .gr-header__actions {
    grid-template-columns: auto auto;
    justify-content: end;
  }

  .gr-page-home .gr-city-button,
  .gr-page-home .gr-site-header.is-scrolled .gr-city-button {
    width: max-content;
    min-width: 8rem;
    max-width: 11.5rem;
  }

  .gr-page-home .gr-city-button strong {
    font-size: 0.92rem;
  }

  /* Nomes médios: mantém bom destaque sem estourar o header. */
  .gr-page-home[data-city-name-size="medium"] .gr-city-button,
  body.gr-page-home[data-city-name-size="medium"] .gr-city-button {
    max-width: 10rem;
  }

  .gr-page-home[data-city-name-size="medium"] .gr-city-button strong,
  body.gr-page-home[data-city-name-size="medium"] .gr-city-button strong {
    font-size: 0.84rem;
  }

  /* Nomes longos: duas linhas e fonte menor somente quando necessário. */
  .gr-page-home[data-city-name-size="long"] .gr-city-button,
  body.gr-page-home[data-city-name-size="long"] .gr-city-button {
    min-width: 9.6rem;
    max-width: 11.5rem;
  }

  .gr-page-home[data-city-name-size="long"] .gr-city-button strong,
  body.gr-page-home[data-city-name-size="long"] .gr-city-button strong {
    font-size: 0.74rem;
    line-height: 1.05;
  }
}

@media (max-width: 480px) {
  .gr-page-home .gr-city-button,
  .gr-page-home .gr-site-header.is-scrolled .gr-city-button {
    min-width: 6.8rem;
    max-width: 8.3rem;
  }

  .gr-page-home .gr-city-button strong {
    font-size: 0.82rem;
  }

  .gr-page-home[data-city-name-size="medium"] .gr-city-button,
  body.gr-page-home[data-city-name-size="medium"] .gr-city-button {
    max-width: 7.7rem;
  }

  .gr-page-home[data-city-name-size="medium"] .gr-city-button strong,
  body.gr-page-home[data-city-name-size="medium"] .gr-city-button strong {
    font-size: 0.74rem;
  }

  .gr-page-home[data-city-name-size="long"] .gr-city-button,
  body.gr-page-home[data-city-name-size="long"] .gr-city-button {
    min-width: 7.4rem;
    max-width: 8.3rem;
  }

  .gr-page-home[data-city-name-size="long"] .gr-city-button strong,
  body.gr-page-home[data-city-name-size="long"] .gr-city-button strong {
    font-size: 0.64rem;
  }
}

/* ==========================================================================
   PADRONIZAÇÃO FINAL — MODAL MOBILE, FORM TABLET E FOOTER TABLET
   Desktop do modal permanece intocado.
   ========================================================================== */


/* ==========================================================================
   01. TABLET — FORMULÁRIO EM LARGURA REAL
   ========================================================================== */

@media (min-width: 721px) and (max-width: 1180px) {
  .gr-page-home .gr-listen__grid--form-first {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
    align-items: start;
  }

  .gr-page-home .gr-form--integrated {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .gr-page-home .gr-form--integrated .gr-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .gr-page-home .gr-form--integrated .gr-field--full {
    grid-column: 1 / -1;
  }

  .gr-page-home .gr-form--integrated .gr-form-topic-grid--main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gr-page-home .gr-form--integrated .gr-form-topic-grid--main > .gr-topic {
    grid-column: auto;
  }

  .gr-page-home .gr-form--integrated button[type="submit"] {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   02. TABLET — FOOTER COM MARCA + TRÊS PAINÉIS EM LINHA
   A marca permanece alinhada à esquerda.
   ========================================================================== */

@media (min-width: 721px) and (max-width: 1180px) {
  .gr-theme-vs1 .gr-footer__main {
    grid-template-columns:
      minmax(13.5rem, 1.05fr)
      repeat(3, minmax(7rem, 0.82fr));

    gap: 0.75rem;

    width: var(--gr-container-wide);
    padding: 2.7rem 0;
  }

  .gr-theme-vs1 .gr-footer__brand {
    justify-items: start;
    padding-right: 0.5rem;
    text-align: left;
  }

  .gr-theme-vs1 .gr-footer__logo {
    width: min(10.5rem, 76%);
    margin-right: 0;
    margin-left: 0;
  }

  .gr-theme-vs1 .gr-footer__brand p {
    margin-right: 0;
    margin-left: 0;

    font-size: 0.8rem;
    line-height: 1.42;
    text-align: left;
  }

  .gr-theme-vs1 .gr-footer__social-title {
    width: auto;
    margin-top: 0.9rem;
    text-align: left;
  }

  .gr-theme-vs1 .gr-footer__brand .gr-social-links {
    justify-content: flex-start;
    width: auto;
  }

  .gr-theme-vs1 .gr-footer .gr-social-links a {
    width: 2.35rem;
    height: 2.35rem;
  }

  .gr-theme-vs1 .gr-footer__main > div:not(.gr-footer__brand) {
    padding: 0.72rem;
    border-radius: 0.9rem;
  }

  .gr-theme-vs1 .gr-footer h3 {
    margin-bottom: 0.6rem;
    font-size: 0.78rem;
  }

  .gr-theme-vs1 .gr-footer__main > div:not(.gr-footer__brand) a {
    min-height: 2.2rem;
    padding: 0.42rem 0.48rem;

    font-size: 0.7rem;
    line-height: 1.12;
  }

  .gr-theme-vs1 .gr-footer__legal-inner {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;

    width: var(--gr-container-wide);
    padding: 0.72rem 0;

    font-size: 0.68rem;
    text-align: left;
  }
}


/* ==========================================================================
   03. MODAL TERRITORIAL — SOMENTE MOBILE
   Compacta o cabeçalho sem alterar desktop ou tablet.
   ========================================================================== */

@media (max-width: 720px) {
  .gr-overlay[data-city-panel] {
    padding: 0.45rem;
  }

  .gr-territory-modal {
    width: 100%;
    max-height: calc(100vh - 0.9rem);
    padding: 0.85rem;
    border-radius: 1.15rem;
  }

  .gr-territory-modal__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: start;

    padding-bottom: 0.85rem;
  }

  .gr-territory-modal__head > div {
    min-width: 0;
  }

  .gr-territory-modal__breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.22rem 0.4rem;

    max-width: 100%;
    margin-bottom: 0.45rem;

    font-size: 0.62rem;
    line-height: 1.2;
    letter-spacing: 0.06em;
  }

  .gr-territory-modal__breadcrumb::before {
    flex: 0 0 auto;
    width: 1.15rem;
    height: 0.16rem;
  }

  .gr-territory-modal__location {
    gap: 0.2rem;

    font-size: clamp(0.82rem, 3.8vw, 0.98rem);
    line-height: 1.18;
    letter-spacing: 0.025em;
  }

  .gr-territory-modal__location > span,
  .gr-territory-modal__location > strong {
    font: inherit;
  }

  .gr-territory-modal__head .gr-modal__close {
    width: 2.45rem;
    height: 2.45rem;
  }

  .gr-territory-modal__grid {
    gap: 0.8rem;
    margin-top: 0.85rem;
  }

  .gr-territory-modal__region,
  .gr-territory-modal__cities {
    padding: 0.75rem;
    border-radius: 1.05rem;
  }

  .gr-territory-modal__notice {
    gap: 0.65rem;
    padding: 0.7rem;
  }

  .gr-territory-modal__notice-copy {
    gap: 0.62rem;
  }

  .gr-territory-modal__notice-icon {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 0.72rem;
    font-size: 1rem;
  }

  .gr-territory-modal__eyebrow {
    margin-bottom: 0.12rem;
    font-size: 0.62rem;
    letter-spacing: 0.07em;
  }

  .gr-territory-modal__notice h3 {
    font-size: 1rem;
    line-height: 1.06;
  }

  .gr-territory-modal__state-button {
    min-height: 2.8rem;
    padding: 0.62rem 0.8rem;
    font-size: 0.82rem;
  }

  .gr-territory-modal__map,
  .gr-territory-map__svg {
    min-height: 16rem;
    height: 16rem;
  }

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

  .gr-territory-modal__cities-head h3 {
    font-size: 1.12rem;
  }

  .gr-territory-modal__cities-head p {
    margin-top: 0.35rem;
    font-size: 0.78rem;
  }
}




/* ==========================================================================
   07. TABLET
   ========================================================================== */

@media (max-width: 1180px) {
  .gr-page-about .gr-about-intro__grid {
    grid-template-columns:
      minmax(17rem, 0.82fr)
      minmax(0, 1.18fr);

    gap: 2rem;
  }

  .gr-page-about .gr-about-photo-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gr-page-about .gr-about-photo-gallery__item--wide {
    grid-column: 1 / -1;
  }

  .gr-page-about .gr-history-track {
    grid-auto-columns: calc((100% - 1.5rem) / 3);
  }
}


/* ==========================================================================
   08. MOBILE
   ========================================================================== */

@media (max-width: 720px) {
  .gr-page-about .gr-about-intro__grid {
    grid-template-columns: 1fr;
  }

  .gr-page-about .gr-about-intro__stamp {
    right: 0.85rem;
    bottom: 1rem;
  }

  .gr-page-about .gr-about-photo-gallery__head,
  .gr-page-about .gr-history-section__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .gr-page-about .gr-about-photo-gallery__head {
    display: flex;
    gap: 1rem;
  }

  .gr-page-about .gr-about-photo-gallery__grid {
    grid-template-columns: 1fr;
  }

  .gr-page-about .gr-about-photo-gallery__item--wide {
    grid-column: auto;
  }

  .gr-page-about .gr-about-photo-gallery__item {
    min-height: 15rem;
  }

  .gr-page-about .gr-history-section__navigation {
    justify-items: start;

    width: 100%;
  }

  .gr-page-about .gr-history-section__controls {
    justify-content: space-between;

    width: 100%;
  }

  .gr-page-about .gr-history-track {
    grid-auto-columns: min(84vw, 17rem);
  }

  .gr-page-about .gr-history-card__open {
    min-height: 20.5rem;
  }

  .gr-page-about .gr-modal--gallery {
    width: min(96vw, 72rem);
    padding: 0.9rem;
  }

  .gr-page-about .gr-event-gallery-modal {
    height: clamp(17rem, 52vh, 28rem);
  }

  .gr-page-about .gr-event-gallery-modal__nav {
    width: 2.55rem;
    height: 2.55rem;
  }

  .gr-page-about .gr-history-modal__content {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   09. REDUÇÃO DE MOVIMENTO
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .gr-page-about .gr-history-track-viewport {
    scroll-behavior: auto;
  }
}


@media (max-width: 720px) {
  .gr-page-about .gr-about-intro__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .gr-page-about
  .gr-about-intro__meta
  .gr-about-share {
    justify-content: flex-start;
  }
}


/* ==========================================================================
   12. RESPONSIVO DA SEÇÃO MEMÓRIA
   Fica no próprio componente; não precisa alterar o site.css.
   ========================================================================== */

@media (max-width: 1180px) {
  .gr-page-about .gr-about-gallery-section {
    padding-block: clamp(3.5rem, 6vw, 5rem);
  }
}

@media (max-width: 720px) {
  .gr-page-about .gr-about-gallery-section {
    padding-block: 3rem;
  }

  .gr-page-about
  .gr-about-gallery-section
  .gr-about-photo-gallery {
    row-gap: 1.5rem;
  }

  .gr-page-about
  .gr-about-gallery-section
  .gr-about-photo-gallery__head p {
    max-width: 32rem;

    color: rgba(255, 255, 255, 0.72);
  }
}



/* ==========================================================================
   09. RESPONSIVIDADE
   ========================================================================== */

@media (max-width: 1180px) {

  .gr-page-home .gr-state-plan__header {
    grid-template-columns:
      minmax(0, 1.12fr)
      minmax(10.3rem, 0.88fr);
  }

  .gr-page-home .gr-state-plan__visual {
    min-height: 13rem;
  }

  .gr-page-home .gr-state-plan__cover {
    width: min(100%, 10.5rem);
  }

  .gr-page-home .gr-state-plan__territory {
    left: -0.35rem;
    min-width: 10rem;
  }

}


@media (max-width: 980px) {

  .gr-page-home .gr-flags__grid--news {
    grid-template-columns: minmax(0, 1fr);
  }

  .gr-page-home .gr-state-plan {
    min-height: 0;
  }

  .gr-page-home .gr-state-plan__header {
    grid-template-columns:
      minmax(0, 1.35fr)
      minmax(11rem, 0.65fr);
  }

  .gr-page-home .gr-state-plan__visual {
    min-height: 14rem;
  }

}


@media (max-width: 700px) {

  .gr-page-home .gr-state-plan {
    gap: 0.9rem;
    padding: 1.1rem;
    border-radius: 1.35rem;
  }

  .gr-page-home .gr-state-plan__header {
    grid-template-columns: minmax(0, 1fr);
  }

  .gr-page-home .gr-state-plan__intro h3 {
    font-size: clamp(1.65rem, 8.5vw, 2.2rem);
  }

  .gr-page-home .gr-state-plan__visual {
    justify-items: center;
    min-height: 13.5rem;
    padding: 0.2rem 1rem 1rem;
  }

  .gr-page-home .gr-state-plan__cover {
    width: 10.2rem;
    transform: rotate(1.5deg);
  }

  .gr-page-home .gr-state-plan__territory {
    left: 50%;
    bottom: 0.2rem;

    min-width: 10.8rem;

    transform: translateX(-58%) rotate(-1.5deg);
  }

  .gr-page-home .gr-state-plan__axes {
    grid-template-columns: minmax(0, 1fr);
  }

  .gr-page-home .gr-state-plan__axis {
    padding: 0.95rem;
  }

  .gr-page-home .gr-state-plan__actions {
    grid-template-columns: minmax(0, 1fr);
  }

}


@media (max-width: 440px) {

  .gr-page-home .gr-state-plan__commitment {
    grid-template-columns: minmax(0, 1fr);
  }

  .gr-page-home .gr-state-plan__commitment-icon {
    width: 2.45rem;
    height: 2.45rem;
  }

  .gr-page-home .gr-state-plan__document-copy {
    align-items: start;
  }

  .gr-page-home .gr-state-plan__actions .gr-btn {
    width: 100%;
  }

}

/* ==========================================================================
   HOME — TRAJETÓRIA REGIONAL
   Responsividade transferida de pages/home.css.
   ========================================================================== */

@media (max-width: 1180px) {
  .gr-page-home .gr-region-history .gr-history-track {
    grid-auto-columns: minmax(15.5rem, calc((100% - 2rem) / 3));
  }
}

@media (max-width: 860px) {
  .gr-page-home .gr-region-history .gr-history-section__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .gr-page-home .gr-region-history__tools {
    width: 100%;
    justify-items: stretch;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .gr-page-home .gr-region-history .gr-history-section__navigation {
    justify-items: end;
  }
}

@media (max-width: 680px) {
  .gr-page-home .gr-region-history__tools {
    grid-template-columns: minmax(0, 1fr);
  }

  .gr-page-home .gr-region-history .gr-history-section__navigation {
    justify-items: start;
  }


  .gr-page-home .gr-region-history__tabs {
    width: calc(100vw - 2rem);
    overflow-x: auto;
    flex-wrap: nowrap;
    margin-inline: -0.1rem;
    padding: 0.1rem 0.1rem 0.45rem;
    scrollbar-width: none;
  }

  .gr-page-home .gr-region-history__tabs::-webkit-scrollbar {
    display: none;
  }

  .gr-page-home .gr-region-history__tabs button {
    flex: 0 0 auto;
  }

  .gr-page-home .gr-region-history .gr-history-track {
    grid-auto-columns: minmax(16.5rem, 86%);
    gap: 0.85rem;
  }

  .gr-page-home .gr-region-history .gr-history-card__open {
    min-height: 23rem;
  }
}

@media (max-width: 420px) {

  .gr-page-home .gr-region-history .gr-history-track {
    grid-auto-columns: 91%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gr-page-home .gr-region-history .gr-history-track-viewport {
    scroll-behavior: auto;
  }

  .gr-page-home .gr-region-history .gr-history-card__open,
  .gr-page-home .gr-region-history .gr-history-card__media img,
  .gr-page-home .gr-region-history .gr-history-section__controls button {
    transition: none;
  }
}

/* ==========================================================================
   HOME — ÚLTIMAS NOTÍCIAS
   Responsividade transferida de pages/home.css.
   ========================================================================== */

@media (max-width: 1100px) {
  .gr-page-home .gr-latest-news__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .gr-page-home .gr-latest-news__featured > a {
    min-height: 27rem;
  }

  .gr-page-home .gr-latest-news__featured-media {
    min-height: 27rem;
  }

  .gr-page-home .gr-latest-news__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .gr-page-home .gr-latest-news__item > a {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 9rem auto;
    min-height: 0;
  }

  .gr-page-home .gr-latest-news__item-content {
    justify-content: flex-start;
    padding: 1rem 2.8rem 1.05rem 1rem;
  }
}

@media (max-width: 780px) {
  .gr-page-home .gr-latest-news__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .gr-page-home .gr-latest-news__featured > a {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 19rem auto;
    min-height: 0;
  }

  .gr-page-home .gr-latest-news__featured-media {
    min-height: 19rem;
  }

  .gr-page-home .gr-latest-news__featured-content {
    justify-content: flex-start;
  }

  .gr-page-home .gr-latest-news__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .gr-page-home .gr-latest-news__item > a {
    grid-template-columns: 7.5rem minmax(0, 1fr);
    grid-template-rows: none;
    min-height: 8.7rem;
  }
}

@media (max-width: 480px) {
  .gr-page-home .gr-latest-news__head .gr-btn {
    width: 100%;
  }

  .gr-page-home .gr-latest-news__featured > a {
    grid-template-rows: 15.5rem auto;
  }

  .gr-page-home .gr-latest-news__featured-media {
    min-height: 15.5rem;
  }

  .gr-page-home .gr-latest-news__featured-content {
    padding: 1.25rem;
  }

  .gr-page-home .gr-latest-news__featured-content h3 {
    font-size: 1.55rem;
  }

  .gr-page-home .gr-latest-news__item > a {
    grid-template-columns: 6.3rem minmax(0, 1fr);
  }

  .gr-page-home .gr-latest-news__item-content {
    padding: 0.85rem 2.4rem 0.85rem 0.85rem;
  }

  .gr-page-home .gr-latest-news__item-meta time {
    display: none;
  }
}

/* ==========================================================================
   FOCAWEB — SITE SHELL RESPONSIVO
   Menu, submenu e rodapé compartilhados pela Home e páginas internas.
   ========================================================================== */

@media (max-width: 1180px) {
  .gr-theme-vs1 .gr-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .gr-theme-vs1 .gr-header__inner {
    position: relative;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.65rem;
  }

  .gr-theme-vs1 .gr-logo {
    width: clamp(8.9rem, 20vw, 10.6rem);
  }

  .gr-theme-vs1 .gr-menu-toggle {
    display: grid;
  }

  .gr-theme-vs1 .gr-nav {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - var(--gr-header-height) - 1.5rem);
    margin: 0;
    padding: 0.8rem;
    overflow-y: auto;
    border: 1px solid rgba(12, 69, 155, 0.14);
    border-radius: 1.05rem;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 24px 58px rgba(4, 27, 77, 0.22);
  }

  .gr-theme-vs1 .gr-nav.is-open {
    display: grid;
    gap: 0.35rem;
  }

  .gr-theme-vs1 .gr-nav__item,
  .gr-theme-vs1 .gr-nav__dropdown-toggle,
  .gr-theme-vs1 .gr-site-header:not(.is-scrolled) .gr-nav__item,
  .gr-theme-vs1 .gr-site-header.is-scrolled .gr-nav__item {
    width: 100%;
    min-height: 3rem;
    justify-content: space-between;
    padding: 0.78rem 0.9rem;
    border: 0;
    border-radius: 0.78rem;
    color: var(--gr-blue-950);
    background: transparent;
    font-size: 1rem;
    line-height: 1.1;
  }

  .gr-theme-vs1 .gr-nav__item:hover,
  .gr-theme-vs1 .gr-nav__item.is-active,
  .gr-theme-vs1 .gr-nav__dropdown-toggle:hover,
  .gr-theme-vs1 .gr-nav__dropdown-toggle.is-active,
  .gr-theme-vs1 .gr-nav__dropdown.is-open > .gr-nav__dropdown-toggle {
    color: var(--gr-blue-950);
    background: var(--gr-yellow-500);
  }

  .gr-theme-vs1 .gr-nav__item::after,
  .gr-theme-vs1 .gr-nav__dropdown-toggle::after {
    display: none;
  }

  .gr-theme-vs1 .gr-nav__dropdown {
    display: grid;
    width: 100%;
  }

  .gr-theme-vs1 .gr-nav__submenu {
    position: static;
    display: none;
    width: 100%;
    margin-top: 0.3rem;
    padding: 0.35rem;
    border: 0;
    border-radius: 0.8rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: #f5f8fc;
    box-shadow: none;
    transform: none;
  }

  .gr-theme-vs1 .gr-nav__dropdown:hover .gr-nav__submenu,
  .gr-theme-vs1 .gr-nav__dropdown:focus-within .gr-nav__submenu {
    display: none;
  }

  .gr-theme-vs1 .gr-nav__dropdown.is-open .gr-nav__submenu,
  .gr-theme-vs1 .gr-nav__dropdown.is-open:hover .gr-nav__submenu,
  .gr-theme-vs1 .gr-nav__dropdown.is-open:focus-within .gr-nav__submenu {
    display: grid;
  }

  .gr-theme-vs1 .gr-nav__submenu::before {
    display: none;
  }

  .gr-theme-vs1 .gr-nav__submenu-link {
    min-height: 3rem;
  }

  .gr-theme-vs1 .gr-header__actions {
    gap: 0.5rem;
  }

  .gr-theme-vs1 .gr-city-button {
    min-width: 0;
    width: clamp(8.5rem, 25vw, 11rem);
  }
}

@media (max-width: 720px) {
  .gr-theme-vs1 {
    --gr-header-height: 5.4rem;
  }

  .gr-theme-vs1 .gr-header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding-block: 0.55rem;
  }

  .gr-theme-vs1 .gr-logo {
    width: clamp(7.8rem, 31vw, 9.2rem);
  }

  .gr-theme-vs1 .gr-header__actions .gr-btn {
    display: none;
  }

  .gr-theme-vs1 .gr-city-button {
    width: min(10rem, 42vw);
    padding-inline: 0.68rem;
  }

  .gr-theme-vs1 .gr-nav {
    right: 0;
    left: 0;
  }

  .gr-theme-vs1 .gr-footer__main {
    grid-template-columns: 1fr;
    padding-block: 2.4rem;
  }

  .gr-theme-vs1 .gr-footer__brand {
    padding-right: 0;
  }

  .gr-theme-vs1 .gr-footer__legal-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 460px) {
  .gr-theme-vs1 .gr-logo {
    width: 7.5rem;
  }

  .gr-theme-vs1 .gr-city-button {
    width: min(8.7rem, 41vw);
  }

  .gr-theme-vs1 .gr-city-button > i:first-child {
    display: none;
  }
}


/*
 * Ponte invisível de hover.
 * O submenu começa 0,6rem abaixo do botão. Sem esta área transparente, o
 * cursor abandona .gr-nav__dropdown antes de alcançar o painel e ele fecha.
 */
@media (min-width: 921px) {
  .gr-theme-vs1 .gr-nav__dropdown::before {
    content: "";
    position: absolute;
    top: 100%;
    right: -1rem;
    z-index: 19;
    width: calc(100% + 2rem);
    height: 0.8rem;
    background: transparent;
  }

  .gr-theme-vs1 .gr-nav__submenu {
    z-index: 20;
  }
}


/* ==========================================================================
   PÁGINA NOTÍCIAS
   Colar no final de assets/css/responsive/site.css
   ========================================================================== */

@media (max-width: 760px) {
  .gr-page-news .gr-news-archive__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gr-page-news .gr-latest-news__item > a {
    grid-template-rows: 12rem auto;
  }
}

@media (max-width: 480px) {
  .gr-page-news .gr-latest-news__item > a {
    grid-template-rows: 10rem auto;
  }

  .gr-page-news .gr-latest-news__item-content {
    padding: 0.9rem;
  }

  .gr-page-news .gr-latest-news__item-meta {
    font-size: 0.68rem;
  }

  .gr-page-news .gr-latest-news__item h2 {
    font-size: 1.08rem;
  }
}


@media (max-width: 1100px) {
  .gr-page-home .gr-latest-news__item > a {
    min-height: 0;
  }
}

@media (max-width: 780px) {
  .gr-page-home .gr-latest-news__item p {
    padding-right: 0.5rem;
    font-size: 0.76rem;
  }
}

@media (max-width: 480px) {
  .gr-page-home .gr-latest-news__item p {
    font-size: 0.74rem;
    -webkit-line-clamp: 2;
  }
}



/*
 * Ponte invisível de hover.
 * O submenu começa 0,6rem abaixo do botão. Sem esta área transparente, o
 * cursor abandona .gr-nav__dropdown antes de alcançar o painel e ele fecha.
 */
@media (min-width: 921px) {
  .gr-theme-vs1 .gr-nav__dropdown::before {
    content: "";
    position: absolute;
    top: 100%;
    right: -1rem;
    z-index: 19;
    width: calc(100% + 2rem);
    height: 0.8rem;
    background: transparent;
  }

  .gr-theme-vs1 .gr-nav__submenu {
    z-index: 20;
  }
}
/* Mantém texto e seta legíveis dentro do painel branco. */
.gr-theme-vs1 .gr-nav__submenu-link > span:not(.gr-nav__submenu-icon) {
  color: inherit;
}




/* ==========================================================================
   PÁGINA ATUAÇÃO — RESPONSIVIDADE DO ACORDEÃO TERRITORIAL
   Destino: assets/css/responsive/site.css

   SUBSTITUIR:
   remova integralmente o bloco antigo:
   "PÁGINA ATUAÇÃO — RESPONSIVIDADE DO HERO COM ACORDEÃO"
   ========================================================================== */

@media (max-width: 980px) {
    .gr-page-actions .gr-city-flag-accordion__button {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .gr-page-actions .gr-city-flag-accordion__count {
        display: none;
    }
}

@media (max-width: 760px) {
    .gr-page-actions .gr-city-flag-accordion {
        gap: 0.8rem;
    }

    .gr-page-actions .gr-city-flag-accordion__item {
        border-radius: 1.25rem;
    }

    .gr-page-actions .gr-city-flag-accordion__button {
        gap: 0.85rem;
        min-height: 6.25rem;
        padding: 1rem;
    }

    .gr-page-actions .gr-city-flag-accordion__icon {
        width: 3.25rem;
        height: 3.25rem;
        border-radius: 0.9rem;
        font-size: 1.25rem;
    }

    .gr-page-actions .gr-city-flag-accordion__toggle {
        width: 2.55rem;
        height: 2.55rem;
    }

    .gr-page-actions .gr-city-flag-accordion__heading small {
        font-size: 0.84rem;
    }

    .gr-page-actions .gr-city-flag-accordion__content-inner {
        padding: 0 1rem 1rem;
    }

    .gr-page-actions .gr-city-flag-accordion__delivery {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.85rem;
        padding: 1.1rem 0;
    }

    .gr-page-actions .gr-city-flag-accordion__delivery > .gr-link-arrow {
        grid-column: 2;
        justify-self: start;
        margin-top: 0.15rem;
    }

    .gr-page-actions .gr-city-flag-accordion__area-link {
        justify-self: start;
    }
}

@media (max-width: 520px) {
    .gr-page-actions .gr-city-flag-accordion__button {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
    }

    .gr-page-actions .gr-city-flag-accordion__heading strong {
        font-size: 1.16rem;
    }

    .gr-page-actions .gr-city-flag-accordion__heading small {
        display: none;
    }

    .gr-page-actions .gr-city-flag-accordion__delivery {
        grid-template-columns: 1fr;
    }

    .gr-page-actions .gr-city-flag-accordion__delivery .gr-delivery-icon {
        width: 3.25rem;
        height: 3.25rem;
    }

    .gr-page-actions .gr-city-flag-accordion__delivery > .gr-link-arrow {
        grid-column: 1;
    }
}


/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 1180px) {
    .gr-page-actions .gr-local-legacy {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gr-page-actions .gr-local-legacy__intro > p {
        max-width: 800px;
    }

    .gr-page-actions .gr-impact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gr-page-actions .gr-impact-grid article {
        height: 160px;
        min-height: 160px;
    }
}

@media (max-width: 700px) {
    .gr-page-actions .gr-impact-grid {
        grid-template-columns: 1fr;
    }

    .gr-page-actions .gr-impact-grid article {
        height: auto;
        min-height: 140px;
    }
}

/* ==========================================================================
   PÁGINA AGENDA — RESPONSIVIDADE
   Origem consolidada: antigo assets/css/pages/agenda.css
   ========================================================================== */

@media (max-width: 1180px) {
  .gr-page-agenda .gr-agenda-list--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .gr-page-agenda .gr-next-event--soft {
    grid-template-columns: 1fr;
  }

  .gr-page-agenda .gr-agenda-list--cards {
    grid-template-columns: 1fr;
  }

  .gr-page-agenda .gr-agenda-list--cards article {
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }

  .gr-page-agenda .gr-agenda-list--cards time {
    width: 4.5rem;
    min-height: 5rem;
  }
}


/* Ajuste final do footer em telas menores. */
@media (max-width: 720px) {
  .gr-theme-vs1 .gr-footer__social-title {
    margin-top: 1.35rem;
    margin-bottom: 0.75rem;
  }
}

/* Em celulares estreitos, os títulos longos permanecem inteiros e legíveis. */
@media (max-width: 560px) {
  .gr-page-home .gr-form--integrated .gr-form-topic-grid--main {
    grid-template-columns: minmax(0, 1fr);
  }

  .gr-page-home .gr-form--integrated .gr-form-topic-grid--main > .gr-topic,
  .gr-page-home .gr-form--integrated .gr-topic:last-child {
    grid-column: auto;
  }
}

/* ==========================================================================
   HEADER V2 — MENU COMPACTO, BUSCA EXPANSÍVEL E DOIS ESTADOS
   ========================================================================== */
.gr-theme-vs1 {
  --gr-header-height: 7.25rem;
  --gr-header-control-height: 3.25rem;
}

.gr-theme-vs1 .gr-header__inner {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(1rem, 1.7vw, 2rem);
  min-height: var(--gr-header-height);
  padding-block: 0.95rem;
  transition:
    min-height 240ms ease,
    padding 240ms ease;
}

.gr-theme-vs1 .gr-logo {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: clamp(12rem, 14vw, 15rem);
  transition: width 240ms ease;
}

.gr-theme-vs1 .gr-header__tools {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 0.55rem;
  min-width: 0;
}

.gr-theme-vs1 .gr-header__actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.gr-theme-vs1 .gr-menu-toggle--primary,
.gr-theme-vs1 .gr-header-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  height: var(--gr-header-control-height);
  min-height: var(--gr-header-control-height);
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--gr-header-text);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 8px 22px rgba(3, 24, 66, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.gr-theme-vs1 .gr-menu-toggle--primary {
  width: auto;
  min-width: 7.25rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  font-family: var(--gr-header-font-family);
  font-size: var(--gr-header-font-size);
  font-weight: var(--gr-header-font-weight);
}

.gr-theme-vs1 .gr-menu-toggle--primary > [data-menu-icon] {
  font-size: 1.28rem;
}

.gr-theme-vs1 .gr-menu-toggle__chevron {
  font-size: 0.72rem;
  transition: transform 180ms ease;
}

.gr-theme-vs1 .gr-menu-toggle--primary[aria-expanded="true"] .gr-menu-toggle__chevron {
  transform: rotate(180deg);
}

.gr-theme-vs1 .gr-header-search-toggle {
  flex: 0 0 auto;
  width: var(--gr-header-control-height);
  padding: 0;
  border-radius: 50%;
  font-size: 1.12rem;
}

.gr-theme-vs1 .gr-menu-toggle--primary:hover,
.gr-theme-vs1 .gr-header-search-toggle:hover {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.gr-theme-vs1 .gr-site-header.is-scrolled .gr-menu-toggle--primary,
.gr-theme-vs1 .gr-site-header.is-scrolled .gr-header-search-toggle {
  border-color: rgba(12, 69, 155, 0.18);
  color: var(--gr-blue-950);
  background: rgba(12, 69, 155, 0.055);
  box-shadow: none;
}

.gr-theme-vs1 .gr-site-header.is-scrolled .gr-menu-toggle--primary:hover,
.gr-theme-vs1 .gr-site-header.is-scrolled .gr-header-search-toggle:hover {
  border-color: rgba(12, 69, 155, 0.32);
  background: rgba(12, 69, 155, 0.1);
}

.gr-theme-vs1 .gr-nav {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 0;
  z-index: 30;
  display: none;
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: minmax(min-content, 1fr);
  align-items: start;
  gap: 0.5rem;
  width: min(52rem, calc(100vw - 2rem));
  max-height: calc(100vh - var(--gr-header-height) - 1.5rem);
  margin: 0;
  padding: 0.8rem;
  overflow-x: auto;
  overflow-y: auto;
  border: 1px solid rgba(12, 69, 155, 0.14);
  border-radius: 1.35rem;
  opacity: 1;
  visibility: visible;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 26px 64px rgba(3, 24, 66, 0.24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform-origin: top left;
}

.gr-theme-vs1 .gr-nav.is-open {
  display: grid;
  animation: gr-header-panel-in 180ms ease both;
}

@keyframes gr-header-panel-in {
  from {
    opacity: 0;
    transform: translateY(-0.45rem) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.gr-theme-vs1 .gr-nav__item,
.gr-theme-vs1 .gr-nav__dropdown-toggle,
.gr-theme-vs1 .gr-site-header:not(.is-scrolled) .gr-nav__item,
.gr-theme-vs1 .gr-site-header.is-scrolled .gr-nav__item {
  width: 100%;
  min-height: 3.45rem;
  justify-content: space-between;
  margin: 0;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(12, 69, 155, 0.11);
  border-radius: 0.9rem;
  color: var(--gr-blue-950);
  background: #f7f9fc;
  font-size: 1rem;
  line-height: 1.15;
}

.gr-theme-vs1 .gr-nav__item:hover,
.gr-theme-vs1 .gr-nav__item.is-active,
.gr-theme-vs1 .gr-nav__dropdown-toggle:hover,
.gr-theme-vs1 .gr-nav__dropdown.is-active > .gr-nav__dropdown-toggle,
.gr-theme-vs1 .gr-nav__dropdown.is-open > .gr-nav__dropdown-toggle {
  border-color: rgba(242, 213, 28, 0.62);
  color: var(--gr-blue-950);
  background: rgba(242, 213, 28, 0.22);
}

.gr-theme-vs1 .gr-nav__item::after,
.gr-theme-vs1 .gr-nav__dropdown-toggle::after,
.gr-theme-vs1 .gr-nav__dropdown::before {
  display: none;
}

.gr-theme-vs1 .gr-nav__dropdown {
  display: grid;
  width: 100%;
}

.gr-theme-vs1 .gr-nav .gr-nav__submenu,
.gr-theme-vs1 .gr-nav__dropdown:hover .gr-nav__submenu,
.gr-theme-vs1 .gr-nav__dropdown:focus-within .gr-nav__submenu {
  position: static;
  display: none;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.4rem;
  border: 0;
  border-radius: 0.85rem;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: #eef3f9;
  box-shadow: none;
  transform: none;
}

.gr-theme-vs1 .gr-nav__dropdown.is-open .gr-nav__submenu,
.gr-theme-vs1 .gr-nav__dropdown.is-open:hover .gr-nav__submenu,
.gr-theme-vs1 .gr-nav__dropdown.is-open:focus-within .gr-nav__submenu {
  display: grid;
}

.gr-theme-vs1 .gr-nav__submenu::before {
  display: none;
}

.gr-theme-vs1 .gr-header-search {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 0;
  z-index: 31;
  display: none;
  gap: 0.7rem;
  width: min(40rem, calc(100vw - 2rem));
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(12, 69, 155, 0.14);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 26px 64px rgba(3, 24, 66, 0.24);
}

.gr-theme-vs1 .gr-header-search.is-open {
  display: grid;
  animation: gr-header-panel-in 180ms ease both;
}

.gr-theme-vs1 .gr-header-search > label {
  color: var(--gr-blue-950);
  font-family: var(--gr-font-heading);
  font-size: 1.15rem;
  font-weight: 800;
}

.gr-theme-vs1 .gr-header-search__field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.5rem;
  padding-left: 1rem;
  border: 1px solid rgba(12, 69, 155, 0.2);
  border-radius: 999px;
  background: #f7f9fc;
}

.gr-theme-vs1 .gr-header-search__field > i {
  color: var(--gr-blue-700);
  font-size: 1.05rem;
}

.gr-theme-vs1 .gr-header-search__field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--gr-blue-950);
  background: transparent;
  font: inherit;
}

.gr-theme-vs1 .gr-header-search__field input::placeholder {
  color: var(--gr-muted);
}

.gr-theme-vs1 .gr-header-search__field button {
  align-self: stretch;
  min-width: 6.25rem;
  padding-inline: 1rem;
  border: 0;
  border-radius: 999px;
  color: var(--gr-blue-950);
  background: var(--gr-yellow-500);
  font-family: var(--gr-header-font-family);
  font-weight: 800;
  cursor: pointer;
}

@media (min-width: 721px) {
  .gr-theme-vs1 .gr-site-header.is-scrolled .gr-header__inner {
    min-height: 5.35rem;
    padding-block: 0.48rem;
  }

  .gr-theme-vs1 .gr-site-header.is-scrolled .gr-logo {
    width: clamp(10rem, 11vw, 11.7rem);
  }
}

@media (max-width: 1180px) {
  .gr-theme-vs1 .gr-header__actions .gr-btn {
    display: none;
  }

  .gr-theme-vs1 .gr-nav,
  .gr-theme-vs1 .gr-header-search {
    left: 0;
  }
}

@media (max-width: 920px) {
  .gr-theme-vs1 {
    --gr-header-height: 6.65rem;
  }

  .gr-theme-vs1 .gr-header__inner {
    gap: 0.75rem;
    padding-block: 0.8rem;
  }

  .gr-theme-vs1 .gr-logo {
    width: clamp(10rem, 22vw, 12rem);
  }

  .gr-theme-vs1 .gr-nav,
  .gr-theme-vs1 .gr-header-search {
    right: 0;
    left: 0;
    width: 100%;
  }

  .gr-theme-vs1 .gr-nav {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(min-content, 1fr);
  }
}

@media (max-width: 720px) {
  .gr-theme-vs1 {
    --gr-header-height: 5.7rem;
    --gr-header-control-height: 2.7rem;
  }

  .gr-theme-vs1 .gr-nav {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    grid-auto-columns: auto;
    width: calc(100vw - 2rem);
    overflow-x: hidden;
  }

  .gr-theme-vs1 .gr-site-header,
  .gr-theme-vs1 .gr-site-header.is-scrolled,
  .gr-theme-vs1.gr-page-home .gr-site-header,
  .gr-theme-vs1.gr-page-home .gr-site-header.is-scrolled {
    position: absolute;
    top: 0;
  }

  .gr-theme-vs1 .gr-site-header::before,
  .gr-theme-vs1 .gr-site-header.is-scrolled::before {
    background:
      linear-gradient(
        90deg,
        rgba(3, 24, 66, 0.88) 0%,
        rgba(6, 39, 95, 0.8) 58%,
        rgba(12, 69, 155, 0.68) 100%
      );
    border-bottom-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 24px rgba(3, 24, 66, 0.1);
    backdrop-filter: blur(7px) saturate(112%);
    -webkit-backdrop-filter: blur(7px) saturate(112%);
  }

  .gr-theme-vs1 .gr-site-header .gr-logo__white,
  .gr-theme-vs1 .gr-site-header.is-scrolled .gr-logo__white {
    opacity: 1;
  }

  .gr-theme-vs1 .gr-site-header .gr-logo__blue,
  .gr-theme-vs1 .gr-site-header.is-scrolled .gr-logo__blue {
    opacity: 0;
  }

  .gr-theme-vs1 .gr-header__inner,
  .gr-theme-vs1.gr-page-home .gr-header__inner {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.35rem;
    min-height: var(--gr-header-height);
    padding: 0.55rem 0.7rem;
  }

  .gr-theme-vs1 .gr-logo,
  .gr-theme-vs1.gr-page-home .gr-logo {
    width: clamp(6.6rem, 25vw, 7.5rem);
  }

  .gr-theme-vs1 .gr-header__tools {
    gap: 0.28rem;
  }

  .gr-theme-vs1 .gr-menu-toggle--primary,
  .gr-theme-vs1 .gr-header-search-toggle,
  .gr-theme-vs1 .gr-site-header.is-scrolled .gr-menu-toggle--primary,
  .gr-theme-vs1 .gr-site-header.is-scrolled .gr-header-search-toggle {
    width: var(--gr-header-control-height);
    min-width: var(--gr-header-control-height);
    height: var(--gr-header-control-height);
    padding: 0;
    border-color: rgba(255, 255, 255, 0.28);
    border-radius: 0.82rem;
    color: var(--gr-white);
    background: rgba(255, 255, 255, 0.09);
  }

  .gr-theme-vs1 .gr-menu-toggle--primary > [data-menu-label],
  .gr-theme-vs1 .gr-menu-toggle__chevron {
    display: none;
  }

  .gr-theme-vs1 .gr-header__actions,
  .gr-theme-vs1.gr-page-home .gr-header__actions {
    justify-self: end;
    min-width: 0;
    margin-left: 0;
  }

  .gr-theme-vs1 .gr-city-button,
  .gr-theme-vs1.gr-page-home .gr-city-button,
  .gr-theme-vs1 .gr-site-header.is-scrolled .gr-city-button,
  .gr-theme-vs1.gr-page-home .gr-site-header.is-scrolled .gr-city-button {
    width: min(7.2rem, 31vw);
    min-width: 0;
    max-width: none;
    height: var(--gr-header-control-height);
    min-height: var(--gr-header-control-height);
    padding: 0.45rem 0.55rem;
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--gr-white);
    background: rgba(255, 255, 255, 0.09);
  }

  .gr-theme-vs1 .gr-city-button strong,
  .gr-theme-vs1.gr-page-home .gr-city-button strong {
    display: block;
    overflow: hidden;
    font-size: 0.72rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .gr-theme-vs1 .gr-nav,
  .gr-theme-vs1 .gr-header-search {
    top: calc(100% + 0.4rem);
    right: 0.7rem;
    left: 0.7rem;
    width: auto;
  }

  .gr-theme-vs1 .gr-nav {
    grid-template-columns: 1fr;
    max-height: calc(100vh - var(--gr-header-height) - 1rem);
  }

  .gr-theme-vs1 .gr-header-search {
    padding: 0.85rem;
  }

  .gr-theme-vs1 .gr-header-search__field {
    grid-template-columns: auto minmax(0, 1fr);
    border-radius: 1rem;
  }

  .gr-theme-vs1 .gr-header-search__field button {
    grid-column: 1 / -1;
    min-height: 2.9rem;
    border-radius: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gr-theme-vs1 .gr-nav.is-open,
  .gr-theme-vs1 .gr-header-search.is-open {
    animation: none;
  }
}

/* ==========================================================================
   FOOTER V2 — LINKS ATUAIS, HIERARQUIA E RESPIRO DA MARCA
   ========================================================================== */
.gr-theme-vs1 .gr-footer__main {
  grid-template-columns:
    minmax(19rem, 1.35fr)
    repeat(3, minmax(10rem, 0.75fr));
  gap: clamp(0.8rem, 1.2vw, 1.2rem);
  align-items: start;
  padding-block: clamp(3rem, 5vw, 4.25rem);
}

.gr-theme-vs1 .gr-footer__brand {
  display: block;
  padding: 0 clamp(1rem, 2.5vw, 2.5rem) 0 0;
  text-align: left;
}

.gr-theme-vs1 .gr-footer__logo {
  width: min(14.5rem, 82%);
  margin: 0 0 1rem;
}

.gr-theme-vs1 .gr-footer__brand p {
  max-width: 31rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  line-height: 1.58;
}

.gr-theme-vs1 .gr-footer__social-title {
  margin: 2rem 0 0.85rem;
  color: var(--gr-white);
  font-size: 1rem;
}

.gr-theme-vs1 .gr-footer .gr-social-links {
  justify-content: flex-start;
  gap: 0.62rem;
}

.gr-theme-vs1 .gr-footer .gr-social-links a {
  width: 2.9rem;
  height: 2.9rem;
}

.gr-theme-vs1 .gr-footer__links {
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.15rem;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.09),
      rgba(255, 255, 255, 0.045)
    );
  box-shadow: 0 16px 34px rgba(1, 15, 48, 0.12);
}

.gr-theme-vs1 .gr-footer__links h3 {
  margin: 0 0 0.85rem;
  padding: 0 0.15rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--gr-white);
  font-size: 0.96rem;
}

.gr-theme-vs1 .gr-footer__links ul {
  gap: 0.48rem;
}

.gr-theme-vs1 .gr-footer__links :is(a, .gr-footer__search) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.65rem;
  padding: 0.58rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.84rem;
  font-family: inherit;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.gr-theme-vs1 .gr-footer__links :is(a, .gr-footer__search)::after {
  content: "→";
  color: var(--gr-yellow-500);
  font-size: 1rem;
  transition: transform 180ms ease;
}

.gr-theme-vs1 .gr-footer__links :is(a, .gr-footer__search):hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--gr-white);
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-1px);
}

.gr-theme-vs1 .gr-footer__links :is(a, .gr-footer__search):hover::after {
  transform: translateX(0.18rem);
}

.gr-theme-vs1 .gr-footer__legal-inner {
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-size: 0.76rem;
}

@media (min-width: 721px) and (max-width: 1180px) {
  .gr-theme-vs1 .gr-footer__main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    padding-block: 3rem;
  }

  .gr-theme-vs1 .gr-footer__brand {
    grid-column: 1 / -1;
    padding: 0 0 1rem;
  }

  .gr-theme-vs1 .gr-footer__logo {
    width: min(13.5rem, 45%);
  }

  .gr-theme-vs1 .gr-footer__brand p {
    max-width: 38rem;
  }

  .gr-theme-vs1 .gr-footer__social-title {
    margin-top: 1.65rem;
  }
}

@media (max-width: 720px) {
  .gr-theme-vs1 .gr-footer__main {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    padding-block: 2.7rem 2.25rem;
  }

  .gr-theme-vs1 .gr-footer__brand {
    grid-column: auto;
    padding: 0 0 1.15rem;
  }

  .gr-theme-vs1 .gr-footer__logo {
    width: min(13rem, 70%);
  }

  .gr-theme-vs1 .gr-footer__brand p {
    max-width: 32rem;
    font-size: 0.93rem;
  }

  .gr-theme-vs1 .gr-footer__social-title {
    margin: 1.75rem 0 0.8rem;
  }

  .gr-theme-vs1 .gr-footer__links {
    padding: 1rem;
  }

  .gr-theme-vs1 .gr-footer__links :is(a, .gr-footer__search) {
    min-height: 2.75rem;
    font-size: 0.9rem;
  }

  .gr-theme-vs1 .gr-footer__legal-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.9rem 3.8rem 0.9rem 0;
    font-size: 0.74rem;
    line-height: 1.35;
  }
}

/* ==========================================================================
   HEADER V2.2 — ESTADOS VISÍVEIS E SUBMENU INDEPENDENTE
   Este fechamento precisa permanecer depois das regras históricas do header.
   ========================================================================== */
.gr-theme-vs1 .gr-site-header .gr-nav {
  right: 0;
  left: 0;
  width: 100%;
  max-height: none;
  overflow: visible;
}

.gr-theme-vs1 .gr-site-header .gr-nav.is-open .gr-nav__item,
.gr-theme-vs1 .gr-site-header .gr-nav.is-open .gr-nav__dropdown-toggle {
  border: 1px solid rgba(12, 69, 155, 0.16);
  color: var(--gr-blue-950);
  background: #f5f8fc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.gr-theme-vs1 .gr-site-header .gr-nav.is-open .gr-nav__item:hover,
.gr-theme-vs1 .gr-site-header .gr-nav.is-open .gr-nav__dropdown-toggle:hover {
  border-color: rgba(12, 69, 155, 0.38);
  color: var(--gr-blue-950);
  background: #e8f1fb;
  box-shadow: 0 8px 20px rgba(4, 27, 77, 0.09);
  transform: translateY(-1px);
}

.gr-theme-vs1 .gr-site-header .gr-nav.is-open .gr-nav__item.is-active,
.gr-theme-vs1 .gr-site-header .gr-nav.is-open .gr-nav__dropdown.is-active > .gr-nav__dropdown-toggle,
.gr-theme-vs1 .gr-site-header .gr-nav.is-open .gr-nav__dropdown.is-open > .gr-nav__dropdown-toggle {
  border-color: rgba(214, 177, 0, 0.72);
  color: var(--gr-blue-950);
  background: #fff7c9;
  box-shadow:
    inset 0 0 0 1px rgba(242, 213, 28, 0.32),
    0 8px 20px rgba(4, 27, 77, 0.08);
}

.gr-theme-vs1 .gr-site-header .gr-nav.is-open .gr-nav__dropdown {
  position: relative;
  z-index: 1;
}

.gr-theme-vs1 .gr-site-header .gr-nav.is-open .gr-nav__dropdown.is-open {
  z-index: 3;
}

.gr-theme-vs1 .gr-site-header .gr-nav.is-open .gr-nav__dropdown .gr-nav__submenu,
.gr-theme-vs1 .gr-site-header .gr-nav.is-open .gr-nav__dropdown:hover .gr-nav__submenu,
.gr-theme-vs1 .gr-site-header .gr-nav.is-open .gr-nav__dropdown:focus-within .gr-nav__submenu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: auto;
  left: 0;
  width: 100%;
  min-width: min(21rem, calc(100vw - 2rem));
  margin: 0;
  padding: 0.5rem;
  border: 1px solid rgba(12, 69, 155, 0.15);
  border-radius: 1rem;
  background: rgba(245, 249, 253, 0.99);
  box-shadow: 0 22px 48px rgba(4, 27, 77, 0.2);
}

.gr-theme-vs1 .gr-site-header .gr-nav.is-open .gr-nav__dropdown:not(.is-open) .gr-nav__submenu {
  display: none;
}

.gr-theme-vs1 .gr-site-header .gr-nav.is-open .gr-nav__dropdown.is-open .gr-nav__submenu {
  display: grid;
}

.gr-theme-vs1 .gr-site-header .gr-nav.is-open .gr-nav__submenu-link {
  color: var(--gr-blue-950);
  background: transparent;
}

.gr-theme-vs1 .gr-site-header .gr-nav.is-open .gr-nav__submenu-link:hover {
  border-color: rgba(12, 69, 155, 0.16);
  color: var(--gr-blue-950);
  background: #ffffff;
}

.gr-theme-vs1 .gr-site-header .gr-nav.is-open .gr-nav__submenu-link.is-active {
  border-color: rgba(214, 177, 0, 0.58);
  color: var(--gr-blue-950);
  background: #fff7c9;
}

@media (max-width: 720px) {
  .gr-theme-vs1 .gr-site-header .gr-nav {
    right: 0.7rem;
    left: 0.7rem;
    width: auto;
    max-height: calc(100vh - var(--gr-header-height) - 1rem);
    overflow-y: auto;
  }

  .gr-theme-vs1 .gr-site-header .gr-nav.is-open .gr-nav__item,
  .gr-theme-vs1 .gr-site-header .gr-nav.is-open .gr-nav__dropdown-toggle {
    min-height: 3.15rem;
  }

  .gr-theme-vs1 .gr-site-header .gr-nav.is-open .gr-nav__dropdown .gr-nav__submenu,
  .gr-theme-vs1 .gr-site-header .gr-nav.is-open .gr-nav__dropdown:hover .gr-nav__submenu,
  .gr-theme-vs1 .gr-site-header .gr-nav.is-open .gr-nav__dropdown:focus-within .gr-nav__submenu {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 0.4rem;
    padding: 0.4rem;
    border: 0;
    background: #edf3f9;
    box-shadow: none;
  }
}

/* Centraliza texto dos itens principais do menu (não afeta o submenu) */
.gr-nav__item,
.gr-nav__dropdown-toggle,
.gr-theme-vs1 .gr-nav__item,
.gr-theme-vs1 .gr-nav__dropdown-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

/* Botão de cidade centralizado no mobile */
@media (max-width: 720px) {
  .gr-city-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 0.4rem;
  }

  .gr-city-button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

/* Correção do cabeçalho — SOMENTE mobile, não afeta desktop/tablet */
@media (max-width: 720px) {
  .gr-menu-toggle--primary,
  .gr-header-search-toggle,
  .gr-theme-vs1 .gr-menu-toggle--primary,
  .gr-theme-vs1 .gr-header-search-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .gr-header__inner,
  .gr-theme-vs1 .gr-header__inner {
    grid-template-columns: auto 1fr auto !important;
  }

  .gr-header__actions,
  .gr-theme-vs1 .gr-header__actions {
    justify-self: end !important;
    min-width: 0 !important;
  }

  .gr-city-button,
  .gr-theme-vs1 .gr-city-button {
    width: clamp(4.8rem, 26vw, 8rem) !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex-shrink: 1 !important;
  }

  .gr-city-button span,
  .gr-theme-vs1 .gr-city-button span {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .gr-city-button strong,
  .gr-theme-vs1 .gr-city-button strong {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

/* Formulário de pautas (Home) — blocos com largura proporcional ao texto,
   sem encolher fonte, quebrando linha automaticamente quando necessário. */
.gr-page-home .gr-form--integrated .gr-form-topic-grid--main {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.7rem;
}

.gr-page-home .gr-form--integrated .gr-form-topic-grid--main > .gr-topic {
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
}

.gr-page-home .gr-form--integrated .gr-topic strong {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
}
