/* =========================================================
   DOWNTOWN — RESPONSIVIDADE GLOBAL
   ========================================================= */

/* Elementos exclusivos do reader mobile */
.reader-mobile-header,
.reader-controls,
.reader-close-mobile {
  display: none;
}

/* =========================================================
   TABLETS E TELAS INTERMEDIÁRIAS
   ========================================================= */

@media (max-width: 1000px) {
  img,
  video,
  canvas,
  svg {
    max-width: 100%;
  }

  .section {
    padding-left: 6%;
    padding-right: 6%;
  }

  .site-footer__top,
  .home-footer__top {
    gap: 50px;
  }

  .magazine-grid,
  .dtreview-grid,
  .reverence-content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

/* =========================================================
   MOBILE PRINCIPAL
   ========================================================= */

@media (max-width: 768px) {
  html {
    overflow-x: hidden;
  }

  body {
    width: 100%;
    overflow-x: hidden;
  }

  body.reader-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  main,
  section,
  header,
  footer {
    min-width: 0;
  }

  h2 {
    font-size: clamp(1.9rem, 9vw, 3rem);
    line-height: 0.98;
    overflow-wrap: anywhere;
  }

  h3 {
    overflow-wrap: anywhere;
  }

  p {
    font-size: 0.98rem;
  }

  .section {
    padding: 68px 20px;
  }

  .eyebrow,
  .section-label {
    letter-spacing: 0.18em;
  }

  /* -------------------------
     NAVBAR GLOBAL
     ------------------------- */

  .home-navbar {
    height: 70px;
    padding: 0 18px;
  }

  .home-navbar__logo {
    width: 40px;
    height: 40px;
  }

  .home-navbar__toggle {
    display: block;
    position: relative;
    z-index: 10002;
  }

  .home-navbar__links {
    padding: 100px 24px 50px;
  }

  .home-navbar__links a {
    font-size: clamp(1.75rem, 8.5vw, 2.8rem);
  }

  /* -------------------------
     HEROES DAS PÁGINAS
     ------------------------- */

  .magazine-hero,
  .dtreview-hero,
  .reverence-hero,
  .dsa-hero {
    min-height: 78svh;
    padding: 110px 20px 70px;
  }

  .magazine-hero h1,
  .dtreview-hero h1 {
    font-size: clamp(2.35rem, 11vw, 4rem);
    line-height: 0.92;
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
  }

  .reverence-hero-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .reverence-hero h1 {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 26px;

    font-size: clamp(2.15rem, 9.5vw, 3.4rem);
    line-height: 0.96;
    letter-spacing: 0.01em;

    text-align: center;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .magazine-hero p,
  .dtreview-hero p,
  .reverence-hero p {
    max-width: 34rem;
  }

  .dsa-hero-content {
    width: 100%;
    padding: 0;
  }

  .dsa-hero-content span {
    font-size: 0.72rem;
    letter-spacing: 0.35em;
  }

  .dsa-hero-content h1 {
    font-size: clamp(4rem, 24vw, 6.5rem);
    letter-spacing: 0.02em;
  }

  .dsa-hero-content p {
    font-size: 1rem;
  }

  /* -------------------------
     HOME
     ------------------------- */

  .home-hero {
    min-height: 100svh;
  }

  .home-hero__overlay {
    background:
      linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.28) 60%, rgba(0,0,0,.35) 100%);
  }

  .home-hero__content {
    width: 100%;
    padding: 130px 20px 120px;
  }

  .home-hero__title {
    font-size: clamp(2.6rem, 11vw, 4.2rem);
    line-height: 0.92;
  }

  .home-hero__description {
    margin-top: 22px;
    font-size: 0.98rem;
  }

  .home-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-hero__button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .home-hero__footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .home-spotlight,
  .home-latest,
  .home-manifesto {
    padding-left: 20px;
    padding-right: 20px;
  }

  .home-spotlight__header,
  .home-latest__header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home-latest__grid {
    grid-template-columns: 1fr;
  }

  .home-latest-card,
  .home-latest-card--large,
  .home-latest-card--wide {
    grid-column: auto;
  }

  .home-manifesto__top,
  .home-manifesto__bottom {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* -------------------------
     MAGAZINE
     ------------------------- */

  .magazine-outdoor-section {
    padding: 55px 20px;
  }

  .magazine-outdoor {
    height: 500px;
    border-radius: 4px;
  }

  .magazine-outdoor-slide {
    padding: 34px 24px;
  }

  .magazine-outdoor-content {
    max-width: 100%;
  }

  .magazine-outdoor-content h3 {
    font-size: clamp(2rem, 9.5vw, 3.1rem);
  }

  .magazine-outdoor-content p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .year-filter {
    gap: 9px;
    margin-bottom: 20px;
  }

  .year-filter button {
    flex: 1 1 auto;
    min-height: 42px;
    padding: 9px 13px;
    font-size: 0.7rem;
  }

  .magazine-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .magazine-cover {
    height: auto;
    aspect-ratio: 1 / 1.414;
  }

  .magazine-info {
    padding: 22px;
  }

  .magazine-card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .magazine-card-actions .btn,
  .magazine-card-actions button {
    width: 100%;
    text-align: center;
  }

  /* -------------------------
     MAGAZINE READER
     ------------------------- */

  .reader-close-desktop {
    display: none;
  }

  .reader-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;

    display: none;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;

    background: #080808;
    overflow: hidden;
    backdrop-filter: none;
  }

  .reader-overlay.active {
    display: grid;
  }

  .reader-mobile-header {
    width: 100%;
    min-height: 68px;
    padding: max(10px, env(safe-area-inset-top)) 16px 10px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    border-bottom: 1px solid rgba(255,255,255,.12);
    background: rgba(8,8,8,.96);

    position: relative;
    z-index: 10;
  }

  .reader-mobile-title {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .reader-mobile-title span {
    color: rgba(255,255,255,.5);
    font-size: .65rem;
    letter-spacing: .13em;
    line-height: 1;
    text-transform: uppercase;
  }

  .reader-mobile-title strong {
    max-width: calc(100vw - 100px);
    color: #fff;
    font-family: "Old Standard TT", serif;
    font-size: 1rem;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .reader-close-mobile {
    position: static;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
    background: transparent;
    color: #fff;
  }

  .reader-info {
    display: none;
  }

  .reader-book-area {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .flipbook {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .flipbook-page img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
  }

  .reader-controls {
    width: 100%;
    min-height: 66px;
    padding: 10px 14px max(10px, env(safe-area-inset-bottom));

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;

    border-top: 1px solid rgba(255,255,255,.12);
    background: rgba(8,8,8,.98);

    position: relative;
    z-index: 10;
  }

  .reader-control-button {
    min-height: 42px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border: 1px solid rgba(255,255,255,.18);
    background: transparent;
    color: #fff;

    font-family: "Oswald", sans-serif;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .reader-control-button:last-child {
    justify-self: end;
  }

  .reader-control-button:disabled {
    opacity: .3;
  }

  .reader-page-counter {
    min-width: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #fff;
    font-size: .78rem;
    letter-spacing: .08em;
  }

  .reader-page-divider,
  #readerTotalPages {
    color: rgba(255,255,255,.5);
  }

  .reader-loading-box {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 30px;
  }

  /* -------------------------
     DSA
     ------------------------- */

  .dsa-main {
    padding: 68px 20px;
  }

  .dsa-intro {
    margin-bottom: 50px;
  }

  .dsa-intro h2,
  .ranking-header h2 {
    font-size: clamp(2.1rem, 10vw, 3.25rem);
  }

  .dsa-intro p {
    font-size: 1rem;
  }

  .certification-grid {
    margin-bottom: 70px;
  }

  .cert-card {
    padding: 26px 22px;
  }

  .ranking-section {
    margin-bottom: 80px;
  }

  .ranking-card {
    grid-template-columns: 42px 72px minmax(0, 1fr);
    gap: 13px;
    padding: 14px;
  }

  .ranking-position {
    font-size: 2rem;
  }

  .ranking-cover {
    width: 72px;
    height: 72px;
  }

  .ranking-info {
    min-width: 0;
  }

  .ranking-info h3 {
    font-size: 1.25rem;
    overflow-wrap: anywhere;
  }

  .ranking-meta {
    grid-column: 2 / 4;
    width: 100%;
    align-items: flex-start;
  }

  .ranking-streams {
    font-size: 1rem;
  }

  /* -------------------------
     DT REVIEW + ARTIGO
     ------------------------- */

  .dtreview-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .dtreview-info {
    padding: 22px;
  }

  .dtreview-info h3 {
    font-size: 1.75rem;
  }

  .single-review-hero {
    min-height: 82svh;
    padding: 110px 20px 60px;
  }

  .single-review-hero h2 {
    font-size: clamp(2.25rem, 10vw, 3.8rem);
    letter-spacing: .02em;
    overflow-wrap: anywhere;
  }

  .single-review-content {
    padding: 68px 20px;
  }

  .single-review-text {
    font-size: 1rem;
    line-height: 1.8;
  }

  /* -------------------------
     REVERENCE
     ------------------------- */

  .reverence-outdoor-section {
    padding: 55px 20px;
  }

  .reverence-outdoor {
    min-height: 500px;
  }

  .outdoor-slide {
    padding: 34px 24px;
  }

  .outdoor-content h3 {
    font-size: clamp(2rem, 9.5vw, 3.1rem);
  }

  .reverence-switch-section {
    padding: 55px 20px 35px;
  }

  .reverence-year-selector {
    align-items: stretch;
  }

  .reverence-year-btn {
    flex: 1 1 120px;
    padding: 12px 16px;
  }

  .reverence-year-header {
    min-height: 440px;
    padding: 100px 20px 60px;
  }

  .reverence-year-header h2 {
    font-size: clamp(2.25rem, 10vw, 3.75rem);
  }

  .reverence-section-block {
    padding: 68px 20px;
  }

  .reverence-content-grid,
  .reverence-gallery-grid {
    grid-template-columns: 1fr;
  }

  .reverence-content-card-body {
    padding: 22px;
  }

  /* -------------------------
     FOOTERS
     ------------------------- */

  .site-footer,
  .home-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-footer__top,
  .home-footer__top {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .site-footer__navigation,
  .home-footer__navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .site-footer__bottom,
  .home-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  /* -------------------------
     TIPOGRAFIA MOBILE — FOOTER
     ------------------------- */

  .site-footer h2,
  .site-footer h3,
  .home-footer h2,
  .home-footer h3,
  .site-footer__title,
  .home-footer__title,
  .site-footer__brand,
  .home-footer__brand {
    max-width: 100%;
    font-size: clamp(1.55rem, 7.5vw, 2.4rem);
    line-height: 1;
    letter-spacing: 0.02em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .site-footer__navigation h4,
  .home-footer__navigation h4,
  .site-footer__label,
  .home-footer__label {
    font-size: 0.78rem;
    line-height: 1.25;
    letter-spacing: 0.12em;
  }

  .site-footer a,
  .home-footer a,
  .site-footer p,
  .home-footer p {
    overflow-wrap: normal;
    word-break: normal;
  }
}

/* =========================================================
   CELULARES ESTREITOS
   ========================================================= */

@media (max-width: 430px) {
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-navbar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .home-hero__content,
  .home-spotlight,
  .home-latest,
  .home-manifesto,
  .dsa-main,
  .single-review-content,
  .reverence-section-block,
  .magazine-outdoor-section,
  .reverence-outdoor-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-footer,
  .home-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-footer__navigation,
  .home-footer__navigation {
    grid-template-columns: 1fr;
  }

  .reader-control-label {
    display: none;
  }

  .reader-control-button {
    width: 46px;
    padding: 0;
    font-size: 1rem;
  }

  .ranking-card {
    grid-template-columns: 34px 62px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 10px;
  }

  .ranking-cover {
    width: 62px;
    height: 62px;
  }

  .ranking-position {
    font-size: 1.65rem;
  }

  /* Tipografia para celulares estreitos */
  .magazine-hero h1,
  .dtreview-hero h1 {
    font-size: clamp(2.15rem, 10.5vw, 3.15rem);
    letter-spacing: 0.015em;
  }

  .home-hero__title {
    font-size: clamp(2.35rem, 11vw, 3.45rem);
  }

  .dsa-hero-content h1 {
    font-size: clamp(3.55rem, 22vw, 5.4rem);
  }

  .home-spotlight__title,
  .spotlight-card__title,
  .magazine-outdoor-content h3,
  .outdoor-content h3,
  .single-review-hero h2,
  .reverence-year-header h2 {
    font-size: clamp(1.9rem, 9vw, 2.75rem);
    line-height: 0.98;
    letter-spacing: 0.01em;
  }
}

/* =========================================================
   DESTAQUES — FORMATO MOBILE GLOBAL
   Home, Magazine e Reverence
========================================================= */

@media (max-width: 768px) {

  /* =======================================================
     HOME — CABEÇALHO DO SPOTLIGHT
  ======================================================= */

  .home-spotlight {
    padding: 80px 18px;
  }

  .home-spotlight__header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;

    margin-bottom: 36px;
    padding-bottom: 24px;
  }

  .home-spotlight__title {
    font-size: clamp(2.45rem, 10vw, 3.6rem);
    line-height: 0.9;
  }

  .home-spotlight__intro {
    max-width: 100%;
    margin: 0;
  }


  /* =======================================================
     HOME — CARD DE DESTAQUE
  ======================================================= */

  .home-spotlight-slides {
    min-height: 0;
  }

  .home-spotlight-slide {
    width: 100%;
  }

  .home-spotlight-slide.active {
    position: relative;
  }

  .spotlight-card {
    width: 100%;

    min-height: 0;
    max-height: none;
    aspect-ratio: auto;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border-radius: 14px;
  }

  /* Imagem quadrada */

  .spotlight-card__media,
  .spotlight-card__media:link,
  .spotlight-card__media:visited {
    position: relative;
    inset: auto;

    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;

    flex-shrink: 0;
  }

  .spotlight-card__media::after {
    display: none;
  }

  .spotlight-card__image {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
  }

  /* Informações abaixo da imagem */

  .spotlight-card__content {
    position: relative;

    width: 100%;
    height: auto;

    margin: 0;
    padding: 30px 24px 34px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    background: #080808;
  }

  .spotlight-card__meta {
    gap: 14px;
    padding-bottom: 16px;
  }

  .spotlight-card__title {
    max-width: 100%;

    margin-top: 28px;

    font-size: clamp(2.05rem, 9vw, 3rem);
    line-height: 0.92;
  }

  .spotlight-card__description {
    max-width: 100%;

    margin-top: 20px;

    font-size: 0.95rem;
    line-height: 1.65;
  }

  .spotlight-card__button,
  .spotlight-card__link {
    margin-top: 28px;
  }


  /* =======================================================
     HOME — CONTROLES DO CARROSSEL
  ======================================================= */

  .home-spotlight-controls {
    margin-top: 22px;

    grid-template-columns: auto 1fr;
    gap: 16px;
  }

  .home-spotlight-arrows {
    gap: 8px;
  }

  .home-spotlight-arrow {
    width: 42px;
    height: 42px;
  }

  .home-spotlight-dots {
    justify-content: flex-end;
  }

  .home-spotlight-counter {
    display: none;
  }


  /* =======================================================
     MAGAZINE — SEÇÃO DE DESTAQUES
  ======================================================= */

  .magazine-outdoor-section {
    padding: 70px 18px;
  }

  .magazine-outdoor {
    width: 100%;
    height: auto;
    min-height: 0;

    border-radius: 14px;
  }

  .magazine-outdoor-slide {
    width: 100%;

    padding: 0;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    background: #111;
  }

  .magazine-outdoor-slide.active {
    position: relative;
  }

  .magazine-outdoor-slide::before {
    display: none;
  }

  /* Imagem quadrada */

  .magazine-outdoor-slide img {
    position: relative;
    inset: auto;

    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;

    display: block;

    object-fit: cover;
    object-position: center;

    flex-shrink: 0;
  }

  /* Informações abaixo */

  .magazine-outdoor-content {
    position: relative;

    width: 100%;
    max-width: none;

    padding: 30px 24px 34px;

    background: #111;
  }

  .magazine-outdoor-content h3 {
    margin-bottom: 18px;

    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 0.94;
  }

  .magazine-outdoor-content p {
    max-width: 100%;
    margin-bottom: 24px;
  }

  .magazine-outdoor-content a {
    width: 100%;

    padding: 14px 20px;

    text-align: center;
  }

  .magazine-outdoor-dots {
    margin-top: 18px;
  }

  .magazine-outdoor-loading {
    height: auto;
    min-height: 400px;
  }


  /* =======================================================
     REVERENCE — SEÇÃO DE DESTAQUES
  ======================================================= */

  .reverence-outdoor-section {
    padding: 70px 18px;
  }

  .reverence-outdoor {
    width: 100%;
    min-height: 0;
    height: auto;

    border-radius: 14px;
  }

  .outdoor-slide {
    width: 100%;

    padding: 0;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    background: #111;
  }

  .outdoor-slide.active {
    position: relative;
  }

  .outdoor-slide::before {
    display: none;
  }

  /* Imagem quadrada */

  .outdoor-slide img {
    position: relative;
    inset: auto;

    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;

    display: block;

    object-fit: cover;
    object-position: center;

    flex-shrink: 0;
  }

  /* Informações abaixo */

  .outdoor-content {
    position: relative;

    width: 100%;
    max-width: none;

    padding: 30px 24px 34px;

    background: #111;
  }

  .outdoor-content h3 {
    margin-bottom: 18px;

    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 0.94;
  }

  .outdoor-content p {
    max-width: 100%;
    margin-bottom: 24px;
  }

  .outdoor-content a {
    width: 100%;

    padding: 14px 20px;

    text-align: center;
  }

  .outdoor-dots {
    margin-top: 18px;
  }

  .outdoor-loading {
    height: auto;
    min-height: 400px;
  }
}

/* =========================================================
   AJUSTE FINAL — CELULARES ESTREITOS
   Mantido no fim do arquivo para ter prioridade
========================================================= */

@media (max-width: 430px) {
  .magazine-hero h1,
  .dtreview-hero h1{
    font-size: clamp(2.15rem, 10.5vw, 3.15rem);
    line-height: 0.96;
    letter-spacing: 0.015em;
  }

  /* REVERENCE — título principal em celulares estreitos */
  .reverence-hero {
    padding-left: 18px;
    padding-right: 18px;
    overflow: hidden;
  }

  .reverence-hero-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .reverence-hero h1 {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 24px;
    padding: 0;

    font-size: clamp(2rem, 9.2vw, 2.75rem);
    line-height: 0.96;
    letter-spacing: 0;

    text-align: center;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .reverence-hero p:not(.eyebrow) {
    width: 100%;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
    padding-inline: 4px;
  }

  .home-hero__title {
    font-size: clamp(2.35rem, 11vw, 3.45rem);
    line-height: 0.96;
  }

  .dsa-hero-content h1 {
    font-size: clamp(3.55rem, 22vw, 5.4rem);
    line-height: 0.9;
  }

  .home-spotlight__title,
  .spotlight-card__title,
  .magazine-outdoor-content h3,
  .outdoor-content h3,
  .single-review-hero h2,
  .reverence-year-header h2 {
    font-size: clamp(1.9rem, 9vw, 2.75rem);
    line-height: 0.98;
    letter-spacing: 0.01em;
  }

  .site-footer h2,
  .site-footer h3,
  .home-footer h2,
  .home-footer h3,
  .site-footer__title,
  .home-footer__title,
  .site-footer__brand,
  .home-footer__brand {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }
}

/* =========================================================
   AJUSTES FINAIS — NAVBAR E FOOTER MOBILE
========================================================= */

@media (max-width: 768px) {

  /* =======================================================
     NAVBAR MOBILE
  ======================================================= */

  .home-navbar__links {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100vh;
    height: 100dvh;

    padding:
      max(92px, calc(env(safe-area-inset-top) + 82px))
      24px
      max(36px, calc(env(safe-area-inset-bottom) + 24px));

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    gap: 12px;

    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;

    box-sizing: border-box;
  }

  .home-navbar__links a {
    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 8px 0;

    font-size: clamp(1.75rem, 8vw, 2.65rem);
    line-height: 1;
    letter-spacing: 0.01em;

    overflow-wrap: normal;
    word-break: normal;

    box-sizing: border-box;
  }

  /* Garante espaço após o último link */
  .home-navbar__links a:last-child {
    margin-bottom: 24px;
  }


  /* =======================================================
     FOOTER MOBILE
  ======================================================= */

  .site-footer__brand,
  .home-footer__brand {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .site-footer__logo,
  .home-footer__logo {
    display: block;

    width: fit-content;
    max-width: 100%;

    margin: 0 0 18px;

    font-size: clamp(2.6rem, 13vw, 4.2rem);
    line-height: 0.95;
    letter-spacing: -0.02em;

    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;

    box-sizing: border-box;
  }

  .site-footer__brand p,
  .home-footer__brand p {
    width: 100%;
    max-width: 30rem;

    margin: 0;

    font-size: 0.9rem;
    line-height: 1.65;
  }
}


/* =========================================================
   AJUSTES PARA CELULARES ESTREITOS
========================================================= */

@media (max-width: 430px) {

  .home-navbar__links {
    padding-left: 20px;
    padding-right: 20px;
    gap: 8px;
  }

  .home-navbar__links a {
    font-size: clamp(1.65rem, 8vw, 2.3rem);
    padding: 7px 0;
  }

  .site-footer__logo,
  .home-footer__logo {
    font-size: clamp(2.35rem, 12vw, 3.45rem);
    letter-spacing: -0.025em;
  }
}
