/* =====================================================================
   MORRO - ajustes para celular e tablet, todas as paginas do site
   (17/11/2026). Carregado em layouts/_header.blade.php para rotas site-*.
   ===================================================================== */

/* logotipo oficial no rodape */
footer .logo-footer img{width:220px;max-width:100%;height:auto}

@media (max-width:991px){
  /* ---------- cabecalho: logo, menu em pilula, redes sociais ---------- */
  header{
    position:relative !important;top:auto !important;left:auto !important;right:auto !important;
    margin:0 !important;width:auto !important;border-radius:0 0 24px 24px !important;
    background:#181818 !important;box-shadow:0 8px 20px rgba(0,0,0,.18) !important;padding:0 0 6px !important;
  }
  header > .container{width:auto !important;max-width:none !important;padding:0 12px !important}
  header > .container > .row{margin:0 !important}
  header > .container > .row:first-child{display:block !important}
  header > .container > .row > div{float:none !important;width:auto !important;max-width:none !important;padding:0 !important}
  header .logo-header{margin:14px auto 10px !important;text-align:center}
  header .logo-header a{display:inline-block}
  header .logo-header img{width:170px !important;max-width:70vw;height:auto;margin:0 auto;display:block}

  header .nav-menu{display:block !important;text-align:center !important;visibility:visible !important;opacity:1 !important}
  header .nav-menu > ul{
    display:flex !important;flex-wrap:wrap;justify-content:center;align-items:center;gap:0 !important;
    padding:4px 4px !important;margin:0 0 8px !important;border-radius:22px !important;
    background:rgba(255,255,255,.07) !important;border:1px solid rgba(255,255,255,.14) !important;
  }
  header .nav-menu > ul > li{display:block !important;margin:0 !important;padding:0 !important;float:none !important}
  header .nav-menu > ul > li > a{
    display:block !important;padding:8px 6px !important;font-size:13px !important;line-height:1.2;letter-spacing:.2px;
    color:#fff !important;white-space:nowrap;border-radius:999px;background:transparent !important;
  }
  header .nav-menu > ul > li > a:active{background:rgba(255,201,38,.2) !important}
  header .nav-menu li.shares{
    flex:1 1 100%;margin:2px 6px 0 !important;padding:8px 0 4px !important;
    border-top:1px solid rgba(255,255,255,.14) !important;border-left:0 !important;
  }
  header .nav-menu li.shares ul{display:flex !important;justify-content:center;gap:10px;padding:0 !important;margin:0 !important;border:0 !important;background:none !important}
  header .nav-menu li.shares ul li{margin:0 !important;padding:0 !important;display:block !important}
  header .nav-menu li.shares ul li a{
    display:flex !important;align-items:center;justify-content:center;width:36px !important;height:36px !important;
    padding:0 !important;border-radius:50% !important;color:#fff !important;background:transparent !important;
  }
  header .nav-menu li.shares svg{width:19px !important;height:19px !important;display:block}

  /* botao de menu (abre o acesso rapido Login/Agenda/Resultados/Top10) */
  header .btn-responsive{margin:0 0 2px !important;padding:0 !important;text-align:center}
  header .btn-responsive button{padding:2px 12px !important;line-height:1}
  header .btn-responsive .fa-2x{font-size:1.7em !important}

  /* conteudo nunca mais largo que a tela */
  img,video,iframe{max-width:100%}
  img{height:auto}
  table{max-width:100%}

  /* ---------- rodape ---------- */
  footer{padding-top:28px !important}
  footer .container{width:auto !important;padding:0 16px !important}
  footer .row > div{float:none !important;width:100% !important}
  footer .logo-footer,footer .partner-footer{text-align:center;margin-bottom:16px}
  footer .logo-footer img{width:190px;margin:0 auto}
  footer .partner-footer img{margin-left:auto;margin-right:auto}
  footer .shares,footer .infos{float:none !important;text-align:center;padding:0 !important;margin:0 0 10px !important}
  footer .infos li{margin:6px 0;line-height:1.4}
  footer .copy{text-align:center !important;margin:12px 0 0 !important}
}

@media (max-width:400px){
  header .nav-menu > ul > li > a{padding:8px 4px !important;font-size:12px !important}
}

/* ajuste 2 (celular): menu em uma linha so e banner do evento inteiro */
@media (max-width:991px){
  html body > header .nav-menu > ul{display:flex !important;flex-wrap:wrap !important;justify-content:center !important;align-items:center !important;gap:0 !important;padding:4px !important;margin:6px 0 0 !important;width:100% !important}
  html body > header .nav-menu > ul > li{margin:0 !important;padding:0 !important;float:none !important}
  html body > header .nav-menu > ul > li:not(.shares) > a{font-size:13px !important;padding:8px 7px !important;letter-spacing:0 !important;white-space:nowrap}
  html body > header .nav-menu > ul > li.shares{flex:1 0 100% !important;width:100% !important}
  html body > header .nav-menu{text-align:center !important;width:100% !important;max-width:none !important;flex:1 0 100% !important}
  html body > header .row > div{width:100% !important;max-width:none !important;flex:1 0 100% !important;float:none !important}
  body > section.banner-event img.hidden-xs{display:block !important}
  body > section.banner-event img.hidden-md{display:none !important}
}
@media (max-width:380px){
  html body > header .nav-menu > ul > li:not(.shares) > a{font-size:12px !important;padding:8px 5px !important}
}

/* ajuste 2c: no celular o cabecalho da Inicio nao fica transparente sobre o carrossel */
@media (max-width:991px){
  html:not(.s4-scrolled) body > header:has(+ section.slider), html body > header{background:#181818 !important;-webkit-backdrop-filter:none !important;backdrop-filter:none !important}
  html body > header + section.slider{margin-top:0 !important}
}
