/*
 Theme Name:     Divi Child
 Theme URI:      https://brastub.com.br
 Description:    Tema de personalização.
 Author:         Weslley Matos
 Template:       Divi
 Version:        1.0.0
*/
 
/* Início da customização */
html, body { overflow-x: none; height: 100%; }

.hide { display: none!important; }

#contato .et-pb-contact-message {
  display: none;
}

/* Menu */
.mobile_menu_bar:before,
.mobile_menu_bar:after,
.et_toggle_slide_menu:after {
  color:#fff!important;
}

/* Estilos base do menu */
.barreto-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent; /* Transparente inicialmente */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Menu com scroll - estado sólido */
.barreto-header.scrolled {
  background-color: #2D2E83; /* Cor quando houver scroll */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.barreto-menu-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  transition: background-color 0.4s ease; /* Transição suave */
}

.barreto-logo img {
  height: 60px;
  width: auto;
  transition: all 0.3s ease;
}

.barreto-menu-wrapper {
  display: flex;
  align-items: center;
}

/* Menu principal desktop */
.barreto-nav {
  margin-left: auto;
}

.barreto-header ul.barreto-menu {
  padding: 0 0 0px 1em!important;
}

.barreto-menu {
  display: flex;
  list-style: none;
  list-style-type: none!important;
  margin: 0;
  padding: 0;
}

.barreto-menu > .menu-item {
  position: relative;
  margin: 0 15px;
}

.barreto-menu > .atualize > a {
  background-color: #006699;
  padding: 10px 20px!important;
}

.barreto-menu > .atualize > a:hover {
  color: #fff!important;
  background-color: #2d2e83;
}

.barreto-menu > .atualize > a:hover:after {
  background-color: #fff;
}

.barreto-menu > .menu-item > a {
  color: #fff;
  text-decoration: none;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 0;
  position: relative;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.barreto-menu > .menu-item > a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #2d2e83;
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.barreto-header.scrolled .barreto-menu > .menu-item > a:after {
  background-color: #fff;
}

.barreto-menu > .menu-item:hover > a,
.barreto-menu > .menu-item.current-menu-item > a {
  color: #2d2e83;
}

.barreto-menu > .menu-item:hover > a:after,
.barreto-menu > .menu-item.current-menu-item > a:after,
.barreto-header.scrolled .barreto-menu > .menu-item:hover > a:after,
.barreto-header.scrolled .barreto-menu > .menu-item.current-menu-item > a:after {
  width: 100%;
}

.barreto-header.scrolled .barreto-menu > .menu-item:hover > a,
.barreto-header.scrolled .barreto-menu > .menu-item.current-menu-item > a {
  color: #fff;
}

.barretp-header:not(.scrolled) {
  background: linear-gradient(to bottom, rgba(45, 46, 131, 0.7) 0%, rgba(45, 46, 131, 0.3) 100%);
  backdrop-filter: blur(5px);
}

/* Submenu desktop */
.menu-item-has-children .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 15px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 100;
}

.menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu .menu-item a {
  display: block;
  padding: 8px 25px;
  color: #555;
  font-size: 13px;
  transition: all 0.2s ease;
}

.sub-menu .menu-item a:hover {
  color: #2d2e83;
  background: #f9f9f9;
}

/* Botão hamburger mobile */
.barreto-menu-toggle {
  display: none;
  margin-left: 20px;
  cursor: pointer;
}

.hamburger {
  width: 24px;
  height: 18px;
  position: relative;
  transform: rotate(0deg);
  transition: all 0.3s ease;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #fff;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 8px;
}

.hamburger span:nth-child(3) {
  top: 16px;
}

/* Estilos para a marca no menu mobile */
.mobile-menu-brand {
  padding: 20px;
  margin-left: 10px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
}

.mobile-menu-brand img {
  max-height: 50px;
  width: auto;
  max-width: 100%;
}

/* Botão de fechar do menu mobile */
.mobile-menu-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #333;
  cursor: pointer;
  padding: 5px;
  z-index: 10;
  transition: all 0.3s ease;
}

.mobile-menu-close:hover {
  color: #e30613;
  transform: scale(1.1);
}

/* Restante do CSS permanece igual ao anterior, com pequenos ajustes */
.barreto-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 350px;
  height: 100vh;
  background: #fff;
  z-index: 1001;
  overflow-y: auto;
  transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
  padding-top: 0; /* Removido o padding top anterior */
}

.mobile-menu-container {
  height: calc(100vh - 91px); /* Ajuste para altura da marca + borda */
  overflow-y: auto;
}

.mobile-menu {
  list-style: none;
  list-style-type: none!important;
  padding: 0;
  margin: 0;
}

.mobile-menu-item {
  border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-item a {
  display: block;
  padding: 15px 25px;
  color: #212121;
  text-decoration: none;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 15px;
  transition: all 0.3s ease;
}

.mobile-menu-item.current-menu-item a,
.mobile-menu-item a:hover {
  color: #2d2e83;
}

/* Submenu mobile */
.mobile-sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mobile-sub-menu .menu-item a {
  padding-left: 40px;
  font-size: 14px;
  text-transform: none;
}

.menu-item-has-children .menu-expand {
  position: absolute;
  right: 20px;
  top: 15px;
  width: 15px;
  height: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-item-has-children .menu-expand:before,
.menu-item-has-children .menu-expand:after {
  content: '';
  position: absolute;
  background-color: #212121;
  transition: all 0.3s ease;
}

.menu-item-has-children .menu-expand:before {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.menu-item-has-children .menu-expand:after {
  width: 100%;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.menu-item-has-children.active .menu-expand:before {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.menu-item-has-children.active .menu-expand:after {
  background-color: #2d2e83;
}

.menu-item-has-children.active .mobile-sub-menu {
  max-height: 500px;
}

/* Rodapé do menu mobile */
.mobile-menu-footer {
  padding: 25px;
  margin-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.menu-contact-info {
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.menu-contact-info strong {
  color: #2d2e83;
  font-weight: 600;
}

.menu-contact-info p {
  margin-bottom: 15px;
}

/* Overlay */
.barreto-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

/* Estados ativos */
body.menu-open {
  overflow: hidden;
}

body.menu-open .barreto-mobile-menu {
  right: 0;
}

body.menu-open .barreto-menu-overlay {
  opacity: 1;
  visibility: visible;
}

body.menu-open .hamburger span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

body.menu-open .hamburger span:nth-child(2) {
  opacity: 0;
}

body.menu-open .hamburger span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

.texto-o-que-somos strong {
  color:#2D2E83;
}

/*** Responsive Styles Large Desktop And Above ***/
@media all and (min-width: 981px) {
  .et_pb_gutters3 #menu .et_pb_column_1_4 .et_pb_module {
    margin-bottom: 0%!important;
  } 
  .et_pb_section.et_section_specialty div.et_pb_row .et_pb_column .et_pb_column .et_pb_module.et-last-child,
  .et_pb_section.et_section_specialty div.et_pb_row .et_pb_column .et_pb_column .et_pb_module:last-child,
  .et_pb_section.et_section_specialty div.et_pb_row .et_pb_column .et_pb_row_inner .et_pb_column .et_pb_module.et-last-child,
  .et_pb_section.et_section_specialty div.et_pb_row .et_pb_column .et_pb_row_inner .et_pb_column .et_pb_module:last-child,
  .et_pb_section div.et_pb_row .et_pb_column .et_pb_module.et-last-child, .et_pb_section div.et_pb_row .et_pb_column .et_pb_module:last-child {
    margin-bottom: 0;
  }
  .et_pb_section_1_tb_header {
    max-width: 500px;
  }
}

/*** Responsive Styles Large Desktop And Above ***/
@media all and (min-width: 1405px) {
	  
}
 
/*** Responsive Styles Standard Desktop Only ***/
@media all and (min-width: 1100px) and (max-width: 1405px) {

}
 
/*** Responsive Styles Tablet And Below ***/
@media all and (max-width: 980px) {
  .barreto-nav {
    display: none;
  }
  
  .barreto-menu-toggle {
    display: block;
  }

	.et_pb_section_0_tb_body{
		padding-top:0px!important;
	}
  #main-header, #main-header .et_mobile_menu {
    background-color: rgba(255, 255, 255, 0)!important;
  }

}
 
/*** Responsive Styles Tablet Only ***/
@media all and (min-width: 768px) and (max-width: 980px) {

}
 
/*** Responsive Styles Smartphone Only ***/
@media all and (max-width: 767px) {

}
 
/*** Responsive Styles Smartphone Portrait ***/
@media all and (max-width: 479px) {

}

/*** Responsive Styles Smartphone Portrait ***/
@media all and (max-width: 350px) {

}