/* ==========================================================================
   Itaminense — Breakpoints: 1280 / 1024 / 768 / 480
   ========================================================================== */

/* ---- 1280px ------------------------------------------------------------ */
@media (max-width: 1280px) {
  .o-topHeader {
    padding: 15px 40px;
  }

  .o-header {
    padding: 0 40px;
  }

  .footer-sitemap {
    grid-template-columns: repeat(4, 1fr);
  }

  .o-menu__nav {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .players-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

/* ---- 1024px ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .o-hero {
    height: calc(100vh - 95px);
    min-height: 480px;
    padding: 100px 0 40px;
  }

  .section-title h2 {
    font-size: 30px;
  }

  .section-header {
    margin-bottom: var(--spacing-xl);
  }

  .videos-grid,
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- 768px -------------------------------------------------------------- */
@media (max-width: 768px) {
  /* barra utilitária: sobra só o lema e o contato */
  .o-topHeader {
    height: 42px;
    padding: 12px 16px;
    justify-content: space-between;
  }

  .o-topHeader__left {
    display: none;
  }

  .o-topHeader a,
  .o-topHeader__title {
    font-size: 13px;
  }

  /* barra flutuante encolhe e sobe */
  .o-header {
    top: 58px;
    height: 34px;
    padding: 0 16px;
  }

  .a-logoSponsor {
    width: 46px;
    height: 34px;
    border-radius: 8px;
  }

  .o-header__sponsors figure:nth-child(3) {
    display: none;
  }

  .o-header__logo {
    width: 58px;
    height: 58px;
    top: 12px;
  }

  .a-btnIcon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 13px;
  }

  .o-nlBtn {
    width: 42px;
    height: 42px;
    right: 14px;
    bottom: 100px; /* acima da barra de navegação */
  }

  /* hero */
  .o-hero {
    height: calc(100vh - 80px);
    min-height: 420px;
    padding: 90px 0 30px;
  }

  .o-hero__background {
    padding: 0 14px;
  }

  .o-hero__background figure {
    border-radius: 18px;
  }

  /* Sombra sob o cabeçalho, com transição suave para a foto. */
  .o-hero__background figure::after {
    background:
      linear-gradient(
        180deg,
        rgba(10, 28, 63, 0.92) 0,
        rgba(10, 28, 63, 0.72) 60px,
        rgba(10, 28, 63, 0.3) 120px,
        rgba(10, 28, 63, 0) 200px
      ),
      linear-gradient(
        180deg,
        rgba(10, 28, 63, 0) 45%,
        rgba(10, 28, 63, 0.55) 100%
      );
  }

  .o-hero__content {
    padding: 0 20px 20px;
  }

  /* barra de navegação inferior */
  .o-navBar {
    bottom: 10px;
    height: 64px;
    width: calc(100% - 20px);
    max-width: 440px;
  }

  .o-navBar ul {
    height: 64px;
  }

  /* os 5 itens dividem o espaço; o bloco da partida mantém largura fixa */
  .o-navBar > ul > li:not(.m-navBarPush) {
    flex: 1;
    min-width: 0;
  }

  .a-navItem {
    width: 100%;
    height: 64px;
    gap: 5px;
    padding: 10px 2px;
  }

  .a-navItem i {
    font-size: 17px;
  }

  .a-navItem__text {
    font-size: 12px;
  }

  .a-navItem.-active::after {
    bottom: 5px;
    width: 18px;
  }

  .m-navBarPush {
    flex: 0 0 86px;
    width: 86px;
    height: 64px;
    padding: 8px 6px;
  }

  /* o selo não pode vazar da pílula */
  .m-navBarPush__next {
    left: auto;
    right: 0;
    transform: none;
    font-size: 8px;
    padding: 2px 5px;
  }

  .m-navBarPush__date {
    font-size: 11px;
  }

  .m-navBarPush__logos img {
    width: 15px;
    height: 15px;
  }

  /* painel "Mais" */
  .o-menu {
    padding: 36px 20px 100px;
  }

  .o-menu__nav {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  /* conteúdo geral */
  .section-padding {
    padding-top: var(--spacing-xl);
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
  }

  .section-title h2 {
    font-size: 26px;
  }

  .game-card {
    height: 400px;
    padding: 28px;
  }

  .game-card-date-big {
    font-size: 32px;
  }

  .news-grid,
  .players-grid,
  .people-grid,
  .videos-grid,
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-wrapper {
    padding: var(--spacing-lg) var(--spacing-md);
  }

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

  .footer-sitemap {
    grid-template-columns: repeat(2, 1fr);
  }

  .single-container {
    padding: 110px var(--container-padding) var(--spacing-lg);
  }

  .page-title {
    font-size: 28px;
  }

  .post-hero img {
    height: 240px;
  }

  .desktop {
    display: none;
  }

  .mobile {
    display: block;
  }
}

/* ---- 480px -------------------------------------------------------------- */
@media (max-width: 480px) {
  .o-topHeader {
    padding: 12px 14px;
  }

  .o-topHeader a,
  .o-topHeader__title {
    font-size: 11px;
    letter-spacing: 0.2px;
  }

  .o-header__sponsors figure:nth-child(2) {
    display: none;
  }

  .o-hero {
    min-height: 380px;
  }

  .a-navItem__text {
    font-size: 11px;
  }

  .m-navBarPush {
    flex: 0 0 74px;
    width: 74px;
  }

  .news-grid,
  .players-grid,
  .people-grid,
  .videos-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    height: 360px;
    padding: 22px;
  }

  .section-title h2 {
    font-size: 22px;
  }

  .footer-sitemap,
  .o-menu__nav {
    grid-template-columns: 1fr;
  }
}
