/*======================================
Theme Name: Mormaço
Description: Mormaço Editorial
Version: 1.0.1
Author: Mulher Gorila
Author URI: https://www.mulhergorila.com
Theme URI: https://www.mulhergorila.com/
Template: Divi
======================================*/


/* You can add your own CSS styles here. Use !important to overwrite styles if needed. */

/*B&W*/
.et-social-gorila {
	  -webkit-filter: grayscale(100%);
	  -webkit-filter: contrast(0);
  -webkit-transition: all 300ms ease;
     -moz-transition: all 300ms ease;
       -o-transition: all 300ms ease;
      -ms-transition: all 300ms ease;
          transition: all 300ms ease;
}

.et-social-gorila:hover {
  -webkit-filter: grayscale(0%);
  -webkit-filter: contrast(1);
}

/* Wrapper geral */
.mormaco-edicao {}

/* Índice */
.mormaco-indice {
  position: sticky;
  top: 100px; /* ajuste conforme header do site */
  padding: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
}

.mormaco-indice__title {
  font-weight: 700;
  margin-bottom: 12px;
}

.mormaco-indice__list {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.mormaco-indice__item { margin: 6px 0; }

.mormaco-indice__item--secao .mormaco-indice__link { font-weight: 700; }
.mormaco-indice__item--texto .mormaco-indice__link { padding-left: 0px; display: inline-block; }
.mormaco-indice__item--bloco .mormaco-indice__link { font-weight: 700; }

.mormaco-indice__link {
  text-decoration: none;
  color: #d3b07b;
}

.mormaco-indice__link.is-active {
  font-weight: 700;
  text-decoration: none;
}

.mormaco-indice__link.is-active::before {
  content: ""; /* Deixe vazio, pois vamos usar o elemento como um bloco */
  display: inline-block;
  width: 10px;  /* Largura do ícone */
  height: 30px; /* Altura do ícone */
  margin-right: 8px;
  vertical-align: middle;
  
  /* A cor que você quer que a gota tenha */
  background-color: #D4B17B; /* Mude para a cor do seu layout */

  /* O SVG atuando como um "molde" (máscara) */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg id='mormaço' xmlns='http://www.w3.org/2000/svg' version='1.1' viewBox='0 0 10 30'%3E%3C!-- Generator: Adobe Illustrator 30.0.0, SVG Export Plug-In . SVG Version: 2.1.1 Build 123) --%3E%3Cdefs%3E%3Cstyle%3E .st0 %7B fill: %23d3b07b; %7D %3C/style%3E%3C/defs%3E%3Cg id='LWPOLYLINE1'%3E%3Cpath class='st0' d='M6.1,1.5v19.7c0,1.5.3,3,.9,4.3.2.5.2,1.2,0,1.7-.5,1.1-1.8,1.6-2.8,1.1s-1.6-1.8-1.1-2.8c.6-1.4.9-2.8.9-4.3V1.5h2.1Z'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg id='mormaço' xmlns='http://www.w3.org/2000/svg' version='1.1' viewBox='0 0 10 30'%3E%3C!-- Generator: Adobe Illustrator 30.0.0, SVG Export Plug-In . SVG Version: 2.1.1 Build 123) --%3E%3Cdefs%3E%3Cstyle%3E .st0 %7B fill: %23d3b07b; %7D %3C/style%3E%3C/defs%3E%3Cg id='LWPOLYLINE1'%3E%3Cpath class='st0' d='M6.1,1.5v19.7c0,1.5.3,3,.9,4.3.2.5.2,1.2,0,1.7-.5,1.1-1.8,1.6-2.8,1.1s-1.6-1.8-1.1-2.8c.6-1.4.9-2.8.9-4.3V1.5h2.1Z'/%3E%3C/g%3E%3C/svg%3E");
  
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.mormaco-indice__item--secao .mormaco-indice__link.is-active {
  font-weight: 700;
  opacity: .9;
}

.mormaco-indice__item--texto .mormaco-indice__link.is-active {
  font-weight: 800;
}

.mormaco-indice__item--bloco .mormaco-indice__link.is-active {
  font-weight: 800;
}


/* Blocos */
.mormaco-bloco { scroll-margin-top: 110px; } /* importante para âncora não ficar sob o header */
.mormaco-bloco--secao { margin: 40px 0 20px; }
.mormaco-sec-title { margin: 0 0 8px; }

.mormaco-bloco--texto { margin-bottom: 30px; padding: 18px 0; border-bottom: 1px solid rgba(0,0,0,0.08); }
.mormaco-text-title { margin: 0 0 8px; }

.mormaco-bloco--livre { padding: 18px 0; }
.mormaco-livre-title { margin: 0 0 8px; }

/* Toggle */
.mormaco-toggle {
  margin-top: 10px;
}

/* ===== Mobile: barra sticky "Sumário" ===== */
@media (max-width: 980px) {
  /* Esconde o índice "sidebar" no mobile (a gente vai mostrar no painel) */
  .mormaco-indice {
    display: none !important;
  }

  /* Barra sticky */
  .mormaco-sumario-bar {
    position: sticky;
    top: 0;
    z-index: 99999;

    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 10px 12px;

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

  .mormaco-sumario-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    border: 1px solid rgba(0,0,0,0.12);
    background: #fff;
    border-radius: 999px;
    padding: 10px 12px;

    font-weight: 800;
    cursor: pointer;
  }

  .mormaco-sumario-icon {
    width: 18px;
    height: 12px;
    position: relative;
    display: inline-block;
  }
  .mormaco-sumario-icon span {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #111;
    border-radius: 999px;
  }
  .mormaco-sumario-icon span:nth-child(1) { top: 0; }
  .mormaco-sumario-icon span:nth-child(2) { top: 5px; }
  .mormaco-sumario-icon span:nth-child(3) { top: 10px; }

  /* Overlay */
  .mormaco-sumario-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  .mormaco-sumario-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  /* Painel dropdown (abaixo da barra) */
  .mormaco-sumario-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 58px; /* ajuste caso sua barra fique mais alta */
    z-index: 99999;

    background: #fff;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);

    max-height: 70vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;

    transform: translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;

    padding: 12px;
  }
  .mormaco-sumario-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Lista do índice no painel */
  .mormaco-sumario-panel .mormaco-indice {
    display: block !important;
    position: static !important;
    top: auto !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  /* ajuda a âncora não ficar escondida sob a barra sticky */
  .mormaco-bloco { scroll-margin-top: 90px; }

  /* Melhor área de toque no sumário mobile */
  .mormaco-sumario-panel .mormaco-indice__item {
    margin: 6px 0;
  }

  .mormaco-sumario-panel .mormaco-indice__link {
    display: block;
    padding: 12px 10px;
    border-radius: 8px;
    line-height: 1.4;
  }

  /* efeito visual ao tocar */
  .mormaco-sumario-panel .mormaco-indice__link:active {
    background: rgba(0,0,0,0.06);
  }

  /* destaque do ativo mais claro */
  .mormaco-sumario-panel .mormaco-indice__link.is-active {
    background: rgba(0,0,0,0.05);
    font-weight: 700;
  }

}


/* Fix mobile nav menu (Sticky) */
@media only screen and (max-width: 980px) {
    .et_fixed_nav #main-header, .et_fixed_nav #top-header, .et_non_fixed_nav.et_transparent_nav #main-header, .et_non_fixed_nav.et_transparent_nav #top-header {
        position: fixed;
    }
    .et_menu_container {
        width: 100% !important;
    }
    .et_header_style_left .logo_container {
        padding-left: 25px;
    }
    .mobile_menu_bar:before {
        padding-right: 25px;
    }
	.hide-on-mobile {display: none;}
}

.et_mobile_menu {
    overflow: scroll !important;
    max-height: 80vh;
}

.mobile_nav.opened .mobile_menu_bar:before {
 content: '\4d';
}

#et-top-navigation .et-cart-info { display: none; }

.mobile_menu_bar:before, .mobile_menu_bar:after, #top-menu li.current-menu-ancestor>a, #top-menu li.current-menu-item>a {
    color: #D3B07B;
}

.nav li ul {
  border-top: 3px solid #D3B07B !important;
}
