
/* BRF PREVIDENCIA - BASE DE SITE RESPONSIVO */
/* Somente largura e distribuicao dos elementos */

/* Conteudo geral mais largo */
body.brf-site-expanded .container {
    width: calc(100% - 64px) !important;
    max-width: 1680px !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

/* Cabeçalho acompanha a mesma largura */
body.brf-site-expanded .header-inner {
    max-width: 1680px !important;
}

/* Secoes e titulos com mais espaco */
body.brf-site-expanded .section-head {
    max-width: 100% !important;
}

body.brf-site-expanded .section-head > div {
    min-width: 0 !important;
    max-width: 100% !important;
}

/* Hero aproveita melhor o desktop */
@media (min-width: 1100px) {
    body.brf-site-expanded .hero-grid {
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns:
            minmax(0, 1.05fr)
            minmax(0, .95fr) !important;
        gap: clamp(28px, 4vw, 76px) !important;
    }
}

/* Secao de atualizacao cadastral */
body.brf-site-expanded #canais .brf-mix-heading,
body.brf-site-expanded #canais .brf-unificada-head {
    width: 100% !important;
    max-width: 100% !important;
}

body.brf-site-expanded #canais .brf-mix-grid,
body.brf-site-expanded #canais .brf-unificada-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(0, .95fr) !important;
    gap: clamp(24px, 3vw, 60px) !important;
}

/* Acesso ocupa sua coluna corretamente */
body.brf-site-expanded #canais .brf-mix-card,
body.brf-site-expanded #canais .brf-unificada-acesso {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

/* Ilustracao utiliza o espaco disponivel */
body.brf-site-expanded #canais .brf-mix-art,
body.brf-site-expanded #canais .brf-unificada-arte {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

/* Tutorial acompanha a nova largura */
body.brf-site-expanded #passo-a-passo .container {
    max-width: 1680px !important;
}

body.brf-site-expanded
#passo-a-passo .tutorial-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

/* Atendimento aproveita o container */
body.brf-site-expanded #duvidas .support-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

/* Tablet e celular */
@media (max-width: 900px) {

    body.brf-site-expanded .container {
        width: calc(100% - 36px) !important;
        max-width: 100% !important;
    }

    body.brf-site-expanded #canais .brf-mix-grid,
    body.brf-site-expanded #canais .brf-unificada-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 24px !important;
    }
}

@media (max-width: 480px) {

    body.brf-site-expanded .container {
        width: calc(100% - 32px) !important;
    }
}


/* BRF-HERO-ALINHADO-INICIO */

/* Alinhar a abertura com as margens do cabecalho */
@media (min-width: 901px) {

  body.brf-site-expanded .hero > .container.hero-grid {
    width: calc(100% - 64px) !important;
    max-width: 1600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    box-sizing: border-box !important;
  }

  body.brf-site-expanded .hero-grid > .hero-copy {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    justify-self: start !important;
  }

  body.brf-site-expanded .hero-grid > .hero-art {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-self: end !important;
  }

  body.brf-site-expanded .hero-art .hero-video {
    right: 0 !important;
    left: auto !important;
    max-width: 55% !important;
  }
}

/* Preservar o enquadramento no mobile */
@media (max-width: 900px) {

  body.brf-site-expanded .hero > .container.hero-grid {
    width: calc(100% - 36px) !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.brf-site-expanded .hero-grid > .hero-copy {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }
}

/* BRF-HERO-ALINHADO-FIM */

/* BRF-BANNER-JUNTO-CELULAR-INICIO */

/* Aproximar somente o banner branco do celular */
@media (min-width: 901px) {

    #inicio .hero-art .magazine-card {
        translate: clamp(70px, 8.5vw, 150px) 0 !important;
    }

}

/* Preservar o posicionamento mobile */
@media (max-width: 900px) {

    #inicio .hero-art .magazine-card {
        translate: 0 0 !important;
    }

}

/* BRF-BANNER-JUNTO-CELULAR-FIM */

/* BRF-TEXTO-ALINHADO-LOGO-INICIO */

@media (min-width: 901px) {

  /* Usar a mesma margem horizontal do cabecalho */
  body.brf-site-expanded #inicio > .container.hero-grid {
    width: calc(100% - 48px) !important;
    max-width: 1584px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Alinhar somente o bloco de texto */
  body.brf-site-expanded #inicio .hero-copy {
    position: relative !important;
    left: 0 !important;
    right: auto !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    transform: none !important;
    min-width: 0 !important;
  }

  body.brf-site-expanded #inicio .hero-copy h1,
  body.brf-site-expanded #inicio .hero-copy .edition,
  body.brf-site-expanded #inicio .hero-copy .hero-lead,
  body.brf-site-expanded #inicio .hero-copy .hero-actions {
    margin-left: 0 !important;
  }
}

/* BRF-TEXTO-ALINHADO-LOGO-FIM */

/* BRF-HOME-CENTRALIZADA-INICIO */

/* Centralizar os dois lados da abertura */
@media (min-width: 1100px) {

  body.brf-site-expanded #inicio > .container.hero-grid {

    width: calc(100% - 80px) !important;
    max-width: 1480px !important;

    margin-left: auto !important;
    margin-right: auto !important;

    padding-left: 0 !important;
    padding-right: 0 !important;

    left: auto !important;
    right: auto !important;
    transform: none !important;
  }

  /* Texto acompanha a nova coluna */
  body.brf-site-expanded #inicio .hero-copy {
    margin-left: 0 !important;
    padding-left: 0 !important;
    left: 0 !important;
    transform: none !important;
  }

  /* Arte acompanha a nova coluna */
  body.brf-site-expanded #inicio .hero-art {
    margin-right: 0 !important;
    justify-self: end !important;
  }
}

/* BRF-HOME-CENTRALIZADA-FIM */