@font-face { font-family: "Nunito"; src: url("nunito.ttf"); }
@font-face { font-family: "Citrus"; src: url("citrus.otf"); }

/* Correção do cabeçalho */
.mod_mr_cabecalho { position: relative !important; background: #002570 !important; }
#cabecalhoFixoBuffer { height: 0 !important; }


/* Definições básicas */
img { max-width: calc(100dvw - 80px); }
.btn { cursor: pointer; background: #F59607; color: black; display: inline-block; min-width: 200px; padding: 14px 18px; border: 0; border-radius: 26px; font-family: "Nunito"; font-size: 18px; font-weight: 700; text-decoration: none; }


/* Página */
.mr_rio_cidade_do_samba { width: 100%; display: flex; flex-direction: column; font-family: "Nunito"; font-size: 18px;
  nav { position: fixed; z-index: 999; display: flex; align-items: center; justify-content: space-between; padding: 10px 40px; width: calc(100% - 80px); transition: background 500ms linear;
    .nav_items { display: flex; gap: 40px; a { text-decoration: none; }}
    .nav_top a { transition: color 500ms linear; cursor: pointer; }
    .nav_top img { display: none; cursor: pointer; }
    &:not(.deepnav) .nav_top a { color: white !important }
  }
  .deepnav { background: white; box-shadow: 10px 0 10px #0005; .nav_top a { color: black } }
}

.nav_mobile { background: magenta; position: relative;
  > .nav_mobile_interno { position: absolute; right: 0; top: 100%; }
}


session { width: 100%;
  .container { max-width: 1200px }
}

.hero { overflow: hidden; position: relative; height: 720px;
  video { min-height: 720px; min-width: 100vw; position: absolute; z-index: 0; left: 50%; transform: translateX(-50%) }
  .filtro { position: absolute; width: 100%; height: 100%; background: #0009; z-index: 0; }
  .container { z-index: 1; display: flex; flex-direction: column; gap: 32px; justify-content: center; align-items: center; text-align: center; color: white; 
    > div:nth-child(1){ font-family: "Citrus"; font-size: 48px; }
    > div:nth-child(2){ font-size: 24px; }
    
  }
}

.faixa_conteudo { text-align: center; padding: 48px 0 60px;
  .container { display: flex; flex-direction: column; gap: 24px; max-width: calc(100dvw - 80px); align-items: center; }
  .titulo { font-family: "Citrus"; font-size: 32px; }
}

.faixa1 { background: url("bg_faixa1.png"), #121950; color: #FDE2BC; }
.faixa2 { background: url("bg_faixa2.png"), white; color: black; }
.faixa3 { background: url("bg_faixa3.png"), #FFAA2C; color: black; }
.faixa4 { background: url("bg_faixa4.png"), white; color: black; }
.faixa1, .faixa2, .faixa3, .faixa4 { background-position: top center; background-repeat: no-repeat; background-size: cover; }

.c_branco { color: white; }
.c_vermelho { color: #E6332A; }
.c_carmim { color: #9D2720; }
.c_azul { color: #121950; }

.conteudo_interno { line-height: 120%; width: min(calc(100vw - 80px), 720px); }
.ilustracao_com_play { position: relative;
  & img:not(.play){ margin-bottom: 20px }
  & img.play { position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); }
}

.grid_footer { text-align: center; background: #003E3C; color: white; padding: 40px 100px; width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 24px;
  > .footer_logos { display: grid; gap: 60px; align-items: center; grid-template-columns: max-content 1px max-content;
    > .footer_separador { background: white; justify-self: stretch; align-self: stretch; }
  }
  > .footer_expediente { font-size: 16px; font-weight: 400; }
}

.abas { display: grid; grid-gap: 12px; grid-template-columns: repeat(3, 1fr); margin-bottom: 12px; font-family: "Citrus"; font-size: 24px; line-height: 170%;
  > div { border: 2px solid var(--ic); border-radius: 50px; cursor: pointer; }
  > div:not(.selecionado) { color: var(--ic); background: white; &:hover { background: var(--ics); }}
  > div.selecionado { background: var(--ic); color: white; }
}
.abas_aba1 { --ic: #036F6B; --ics: #B0E0DE; }
.abas_aba2 { --ic: #E78A00; --ics: #F7DCB4; }
.abas_aba3 { --ic: #9D2720; --ics: #F3C0BE; }

.aba_mae { border: 2px solid var(--ic); color: var(--ic); padding: 12px 0; border-radius: 12px; &:not(.aba_ativa){ display: none; } }
.aba_samba { background: #B0E0DE; --ic: #005551; }
.aba_territorios { background: #F7DCB4; --ic: #814F04; }
.aba_personalidades { background: #FFD6D4; --ic: #9D2720; }

.aba_op { cursor: pointer; text-align: left; display: grid; align-items: center; font-weight: 700; grid-template-columns: 50px 1fr; padding: 6px 24px; &:hover{ background: rgba(0, 0, 0, 0.1); }}


/* Lightbox */
.cidade_do_samba_lightbox, .menu_mobile { opacity: 1; overflow: hidden; background: #0009; position: fixed; top: 0; z-index: 1000; width: 100dvw; height: 100dvh; display: flex; justify-content: center; transition: opacity 0.5s;
  > .modal { transform: translateY(0); background: white;  width: min(calc(100dvw - 40px), 680px); padding: 24px; transition: transform 0.5s;
    > .modal_header { display: grid; grid-template-columns: max-content 1fr max-content; align-items: center; font-family: "Citrus"; font-size: 40px; > #modal_thumb { margin-right: 20px; & img { max-height: 150px }} > #modal_titulo { letter-spacing: -1px }}
    > .modal_content { overflow-y: scroll; max-height: 60dvh; padding-right: 12px; font-family: "Nunito" }
    > .modal_footer { text-align: center; margin-top: 24px; 
      & button { background: #282F65; padding: 12px; font-family: "Nunito"; color: white; border-radius: 50px; font-size: 18px; font-weight: 700; }
    }
  }
}

.menu_mobile > .modal > .modal_header { grid-template-columns: 1fr max-content; margin-bottom: 24px; }

.grade_sabermais { width: min(calc(100dvw - 80px), 800px); }

.cidade_do_samba_lightbox { align-items: flex-end; > .modal { border-radius: 24px 24px 0 0; > .modal_header { height: 150px; }}}
.menu_mobile { align-items: flex-start; > .modal { border-radius: 0 0 24px 24px; 
  > .modal_content { display: flex; flex-direction: column; gap: 24px; align-items: center; overflow: hidden;
    a { font-weight: 700; color: #00857F; &:hover { color: #A46505 }}
  }
}}

.cidade_do_samba_lightbox.fechado, .menu_mobile.fechado { opacity: 0; pointer-events: none; }
.cidade_do_samba_lightbox.fechado > .modal {transform: translateY(100dvh);}
.menu_mobile.fechado > .modal {transform: translateY(-100dvh);}


/* Mobile */
@media (max-width: 695px) {
  .abas { grid-template-columns: 1fr; }
  .cidade_do_samba_lightbox > .modal {
    max-height: calc(100dvh - 20px); overflow: scroll;
    > .modal_header { grid-template-columns: 1fr max-content; grid-template-areas: "t e" "f f"; height: auto;
      > #modal_thumb { grid-area: f; text-align: center; max-height: initial; margin-right: initial; & img { max-height: initial; max-width: 100%; }}
      > #modal_titulo { grid-area: t; margin-bottom: 24px; line-height: 120%; }
      > #modal_fechar { grid-area: e }
    }
    > .modal_content { max-height: initial; padding-right: initial; overflow-y: initial; }
  }

  .grid_footer > .footer_logos { margin: 12px 0; justify-content: center; grid-template-columns: initial; gap: 20px; grid-template-rows: max-content 1px max-content; }
}

@media (max-width: 1140px) {
  .nav_top a { display: none; }
  .nav_top img { display: block !important; }
}