@charset "UTF-8";

/*--------------------------------------------------------------
# Font & Color Variables
--------------------------------------------------------------*/
/* Fonts */
:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Ubuntu", sans-serif;
  --nav-font: "Poppins", sans-serif;
}

/* Global Colors */
:root { 
  --background-color: #ffffff;
  --default-color: #363f40;
  --heading-color: #1f2f31;
  --accent-color: #2e7bbf;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
}

/* Nav Menu Colors */
:root {
  --nav-color: #363f40;
  --nav-hover-color: #099aa7;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #363f40;
  --nav-dropdown-hover-color: #099aa7;
}

/* Color Presets */
.light-background {
  --background-color: #f7f9f9;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #021418;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #11262a;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --background-color: rgba(255, 255, 255, 0);
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 0;
  transition: all 0.5s;
  z-index: 997;
  min-height: 80px;
  top: 0;
}

.header .logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.index-page .header .logo img {
  margin-top: 15px;
}

.header .logo img {
  height: 85px;
  width: auto;
  max-height: 60px;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

/* Exibe a logo normal nas páginas que não são a index */
body:not(.index-page) .logo {
  justify-content: center !important;
  width: 100%;
}

body:not(.index-page) .logo img {
  display: block;
  opacity: 1;
  margin: 0 auto !important;
  margin-left: 220px !important;
  transform: translateX(0) !important;
}

.header .logo img.logo-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .header .logo img {
    height: 50px;
  }
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

.header .logo h1 span {
  color: var(--accent-color);
}

.header .btn-getstarted,
.header .btn-getstarted:focus {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-size: 14px;
  padding: 8px 26px;
  margin: 0;
  border-radius: 4px;
  transition: 0.3s;
  white-space: nowrap;
  min-width: 160px;
  text-align: center;
  display: inline-block;
}

.header .btn-getstarted {
  margin-left: 25px !important;
  width: auto !important;
  padding: 8px 26px !important;
}

.header .btn-getstarted:hover,
.header .btn-getstarted:focus:hover {
  color: var(--contrast-color);
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
}



/* Global Header on Scroll */
.scrolled .header {
  --background-color: #ffffff;
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
  padding: 0;
  min-height: 80px;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu a,
  .navmenu a:focus,
  .navmenu li:hover > a,
  .navmenu .active,
  .navmenu .active:focus {
    color: #000000 !important;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 15px;
    font-size: 16px;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu li:last-child a {
    padding-right: 0;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    max-height: 400px;
    overflow-y: auto;
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Realce de sublinhado no hover dos itens de menu */
.navmenu ul li a {
  position: relative;
}

.navmenu ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -1px;
  left: 0;
  right: 0;
  background: #2e7bbf;
  transition: width 0.4s ease;
  margin: 0 auto;
}

.navmenu ul li a:hover::after {
  width: 100%;
}

.navmenu .dropdown > a::after {
  display: none;
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .mobile-nav-active .navmenu ul {
    display: block !important;
  }

  .navmenu a {
    font-size: 17px;
    font-weight: 500;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 15px;
    font-size: 16px;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    border: 2px solid transparent;
    border-radius: 20px;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
    z-index: 9997;
  }

  .mobile-nav-active .navmenu ul {
    display: block !important;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    margin: 0 20px;
    padding: 20px 0;
    border-radius: 10px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }

  .btn-getstarted {
    font-size: 17px;
    padding: 10px 22px;
  }
}

/* Estilo adicional para mobile */
@media (max-width: 1199px) {
  .header {
    min-height: 80px !important;
    padding: 0 !important;
  }


}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  background: linear-gradient(135deg, #2e7bbf 0%, #1a5a8f 50%, #3f97d3 100%);
  color: #ffffff;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

/* Ondas decorativas */
.footer::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -15%;
  width: 900px;
  height: 900px;
  background: rgba(26, 60, 100, 0.4);
  border-radius: 45% 55% 60% 40%;
  z-index: 0;
  pointer-events: none;
}

.footer::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 1000px;
  height: 1000px;
  background: rgba(35, 80, 130, 0.35);
  border-radius: 60% 40% 50% 50%;
  z-index: 0;
  pointer-events: none;
}

.footer-top::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 25%;
  width: 700px;
  height: 700px;
  background: rgba(45, 100, 150, 0.25);
  border-radius: 50% 50% 45% 55%;
  z-index: 0;
  pointer-events: none;
}

.footer-top::after {
  content: '';
  position: absolute;
  top: -30%;
  right: 5%;
  width: 600px;
  height: 600px;
  background: rgba(30, 75, 120, 0.3);
  border-radius: 40% 60% 55% 45%;
  z-index: 0;
  pointer-events: none;
}

/* Conteúdo acima das ondas */
.footer,
.footer .footer-top,
.footer .footer-top *,
.footer .copyright,
.footer .copyright * {
  position: relative;
  z-index: 5 !important;
  pointer-events: auto !important;
}

/* Footer Top */
.footer .footer-top {
  padding: 60px 0 40px;
  position: relative;
  z-index: 10;
}

/* Garante que TODO conteúdo fique acima das bolhas */
.footer .footer-top * {
  position: relative;
  z-index: 10;
}

.footer .logo-section,
.footer .footer-links,
.footer .footer-contact-section,
.footer .social-links,
.footer .contact-info,
.footer h4,
.footer ul,
.footer li,
.footer a,
.footer p {
  position: relative;
  z-index: 10;
}

.footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 25px 0;
  position: relative;
  z-index: 10;
}

/* Logo Section */
.footer .logo-section {
  margin-bottom: 10px;
  margin-top: 0;
}

.footer .logo-rodape {
  max-width: 280px;
  width: auto;
  height: auto;
  display: block;
  margin: -70px 30px 10px 0; /* 20px puxa levemente para a esquerda */
}




.footer .tagline {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-style: italic;
  margin-top: -40px;
  margin-bottom: 0;
    margin-left: 28px;

}

/* Títulos das seções */
.footer h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Links */
.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul li {
  padding: 8px 0;
  transition: all 0.3s ease;
}

.footer .footer-links ul a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer .footer-links ul a:hover {
  color: #ffffff;
  padding-left: 5px;
}

/* Redes Sociais */
.footer .social-links {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 18px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer .social-links a:hover {
  background: #ffffff;
  color: #2e7bbf;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Informações de Contato */
.footer .contact-info p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer .contact-info i {
  color: #ffffff;
  font-size: 16px;
  margin-top: 2px;
}

/* Copyright */
.footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 25px 0;
  position: relative;
  z-index: 1;
}

.footer .copyright p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  font-size: 13px;
}

.footer .company-info {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  margin-bottom: 10px;
}

.footer .privacy-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  text-decoration: underline;
  transition: color 0.3s ease;
  cursor: pointer !important;
  position: relative;
  z-index: 999 !important;
  pointer-events: auto !important;
}

.footer .privacy-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Responsividade */
@media (max-width: 768px) {
  .footer .footer-top {
    padding: 40px 0 30px;
  }
  
  .footer .social-links {
    justify-content: center;
  }
  
  .footer .footer-about,
  .footer .footer-links,
  .footer .footer-contact-section {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .footer .logo-rodape {
    margin-left: auto;
    margin-right: auto;
  }
  
  .footer .contact-info p {
    justify-content: center;
  }
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background-color: var(--background-color);
  transition: all 0.6s ease-out;
  width: 100%;
  height: 100vh;
}

#preloader:before,
#preloader:after {
  content: "";
  position: absolute;
  border: 4px solid var(--accent-color);
  border-radius: 50%;
  animation: animate-preloader 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

#preloader:after {
  animation-delay: -0.5s;
}

@keyframes animate-preloader {
  0% {
    width: 10px;
    height: 10px;
    top: calc(50% - 5px);
    left: calc(50% - 5px);
    opacity: 1;
  }
  100% {
    width: 72px;
    height: 72px;
    top: calc(50% - 36px);
    left: calc(50% - 36px);
    opacity: 0;
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

#scroll-top {
  display: none !important;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  position: relative;
  padding-top: 100px;
}

.page-title .heading {
  padding: 80px 0;
}

.page-title .heading h1 {
  font-size: 38px;
  font-weight: 500;
}

.page-title .heading .heading-title {
  font-size: 38px;
  font-weight: 500;
}

.page-title nav {
  background-color: color-mix(in srgb, var(--default-color), transparent 96%);
  padding: 20px 0;
}

.page-title nav ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}

.page-title nav ol li+li {
  padding-left: 10px;
}

.page-title nav ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 90px;
  overflow: clip;
}

@media (max-width: 1199px) {
  section,
  .section {
    scroll-margin-top: 66px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:before {
  content: "";
  position: absolute;
  display: block;
  width: 160px;
  height: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 60%);
  left: 0;
  right: 0;
  bottom: 1px;
  margin: auto;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Departments Section
--------------------------------------------------------------*/
.departments .department-item {
  background-color: rgba(63, 151, 211, 0.15);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 30px color-mix(in srgb, var(--default-color), transparent 90%);
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 140px;
  max-height: 180px;
}

@media (max-width: 768px) {
  .departments .department-item {
    border-radius: 15px;
    min-height: 160px;
  }
}

.departments .department-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px color-mix(in srgb, var(--default-color), transparent 85%);
}

.departments .department-item:hover .department-overlay {
  opacity: 1;
  visibility: visible;
}

.departments .department-item:hover .department-image img {
  transform: scale(1.1);
}

.departments .department-item:hover .department-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #ff6b6b 20%));
}

.departments .department-item:hover .department-icon i {
  color: var(--contrast-color);
}

.departments .department-item .department-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .departments .department-item .department-content {
    padding: 18px 15px;
  }
}

.departments .department-item .department-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

@media (max-width: 576px) {
  .departments .department-item .department-header {
    gap: 12px;
    margin-bottom: 10px;
  }
}

.departments .department-item .department-icon {
  width: 50px;
  height: 50px;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s ease;
}

@media (max-width: 576px) {
  .departments .department-item .department-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
  }
}

.departments .department-item .department-icon i {
  font-size: 24px;
  color: var(--accent-color);
  transition: all 0.3s ease;
}

@media (max-width: 576px) {
  .departments .department-item .department-icon i {
    font-size: 20px;
  }
}

.departments .department-item .department-info {
  flex: 1;
}

.departments .department-item .department-info h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--heading-color);
  font-family: var(--heading-font);
  letter-spacing: -0.3px;
  line-height: 1.3;
}

@media (max-width: 576px) {
  .departments .department-item .department-info h3 {
    font-size: 17px;
  }
}

.departments .department-item .department-info .department-category {
  font-size: 13px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 576px) {
  .departments .department-item .department-info .department-category {
    font-size: 12px;
  }
}

.departments .department-item p {
  font-size: 14px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  margin-bottom: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 576px) {
  .departments .department-item p {
    font-size: 13px;
  }
}

.departments .department-item .department-features {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.departments .department-item .department-features .feature-badge {
  background: color-mix(in srgb, var(--accent-color), transparent 85%);
  color: var(--accent-color);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

@media (max-width: 576px) {
  .departments .department-item .department-features .feature-badge {
    font-size: 10px;
    padding: 4px 8px;
  }
}

.departments .department-item .department-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

@media (max-width: 576px) {
  .departments .department-item .department-image {
    height: 140px;
  }
}

.departments .department-item .department-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.departments .department-item .department-image .department-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.departments .department-item .department-image .department-overlay .department-link {
  width: 50px;
  height: 50px;
  background: var(--contrast-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 18px;
  transition: all 0.3s ease;
}

@media (max-width: 576px) {
  .departments .department-item .department-image .department-overlay .department-link {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }
}

.departments .department-item .department-image .department-overlay .department-link:hover {
  transform: scale(1.1);
  color: var(--accent-color);
}

.departments .department-item.h-100 {
  height: auto !important;
}

/*--------------------------------------------------------------
# WhatsApp Flutuante
--------------------------------------------------------------*/
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  left: 20px;
  z-index: 1000;
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
  text-decoration: none;
}

.whatsapp-float a:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
  background: #20bd5a;
}

.whatsapp-float i {
  font-size: 32px;
  color: white;
}

/* Animação de pulsar */
@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Responsivo */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-float a {
    width: 55px;
    height: 55px;
  }
  
  .whatsapp-float i {
    font-size: 28px;
  }
}

/*--------------------------------------------------------------
# Logo específica para página about
--------------------------------------------------------------*/
.about-page .logo-home {
  height: 130px !important;
  max-height: 130px !important;
  width: auto;
  margin-top: -10px;
  margin-left: -1200px;
  position: relative;
  z-index: 20;
}

/*--------------------------------------------------------------
# Bloco branco do menu para index-page
--------------------------------------------------------------*/
.index-page .navmenu-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  margin: 0;
  padding: 20px 0;
  background: rgba(255, 255, 255, 1);
  z-index: 10;
  transform: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.index-page .navmenu-wrapper > * {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

.index-page .header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  justify-content: center !important;
}

.index-page .header .navmenu,
.index-page .header .btn-getstarted {
  margin: 0;
}



@media (max-width: 768px) {
  .index-page .navmenu-wrapper {
    padding: 10px 15px;
  }
  
  .index-page .navmenu ul {
    font-size: 14px;
  }
  
  .header .btn-getstarted {
    padding: 6px 15px;
    font-size: 13px;
  }
}

.header .container {
  height: 80px;
  align-items: center;
}

/* Logo index-page */
.index-page .logo-home {
  height: 130px !important;
  max-height: 130px !important;
  width: auto;
  margin-top: -10px;
  margin-left: -1200px;
  position: relative;
  z-index: 20;
}

.index-page .logo-normal {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.index-page.scrolled .logo-home {
  display: none;
  opacity: 0;
}

.index-page.scrolled .logo-normal {
  display: block;
  opacity: 1;
  height: 130px !important;
  max-height: 130px !important;
  width: auto;
  margin-top: -10px;
  margin-left: -2500px;
  position: relative;
  z-index: 20;
  transition: 0.3s ease, transform 0.3s ease;
  animation: 0.8s ease-out forwards;
}

.index-page.scrolled .logo {
  justify-content: center;
  margin: 0 auto;
}

.nav-item.dropdown {
  margin-right: 30px;
}

.index-page.scrolled .logo-normal {
  display: block;
  opacity: 1;
  animation: fadeInDown 0.8s ease-out forwards;
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-40px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.index-page .header {
  background: none;
}

/*--------------------------------------------------------------
# Search Box - Barra de Pesquisa
--------------------------------------------------------------*/
.search-box {
  position: relative;
}

.search-box .form-control {
  padding-left: 45px;
  border-radius: 25px;
  border: 2px solid #e9ecef;
  padding: 12px 20px 12px 45px;
}

.search-box .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--accent-color), transparent 80%);
  outline: none;
}

.search-box i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 18px;
}

/*--------------------------------------------------------------
# Utilities - Form Controls
--------------------------------------------------------------*/
.form-control,
.form-select {
  color: var(--default-color);
  background-color: var(--surface-color);
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--accent-color), transparent 80%);
  outline: none;
}

.form-control::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
}

/*--------------------------------------------------------------
# Button Utilities
--------------------------------------------------------------*/
.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #385ca7;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 120px;
  justify-content: center;
}

.btn-contact:hover {
  background: #385ca7;
  color: white;
  transform: translateY(-2px);
}

/*--------------------------------------------------------------
# Container & Layout
--------------------------------------------------------------*/
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col-lg-6 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 992px) {
  .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.col-md-6 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 768px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.gy-4 {
  --bs-gutter-y: 1.5rem;
}

.gy-4 > * {
  margin-top: var(--bs-gutter-y);
}

/*--------------------------------------------------------------
# Utility Classes
--------------------------------------------------------------*/
.d-flex {
  display: flex !important;
}

.align-items-center {
  align-items: center !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.text-center {
  text-align: center !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.position-relative {
  position: relative !important;
}

.fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

/*--------------------------------------------------------------
# Responsividade Adicional
--------------------------------------------------------------*/
@media (max-width: 992px) {
  .page-title .heading {
    padding: 60px 0;
  }
  
  .page-title .heading h1,
  .page-title .heading .heading-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-title {
    padding-top: 80px;
  }
  
  .page-title .heading {
    padding: 40px 0;
  }
  
  .page-title .heading h1,
  .page-title .heading .heading-title {
    font-size: 28px;
  }
  
  section,
  .section {
    padding: 40px 0;
  }
}

/*--------------------------------------------------------------
# Estilos específicos para margin/padding
--------------------------------------------------------------*/
.col-lg-8 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 992px) {
  .col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
}

.col-lg-3 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 992px) {
  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/*--------------------------------------------------------------
# Animações AOS (caso use)
--------------------------------------------------------------*/
[data-aos] {
  pointer-events: auto;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/*--------------------------------------------------------------
# Estilos para links gerais
--------------------------------------------------------------*/
a {
  background-color: transparent;
}

a:active,
a:hover {
  outline: 0;
}

/*--------------------------------------------------------------
# Reset de estilos básicos
--------------------------------------------------------------*/
* {
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
}

img {
  vertical-align: middle;
  border-style: none;
}

ul {
  margin-top: 0;
  margin-bottom: 1rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/*--------------------------------------------------------------
# Estilo teste linha azul (forçado)
--------------------------------------------------------------*/
.navmenu ul li a {
  position: relative !important;
}

.navmenu ul li a::after {
  content: '' !important;
  position: absolute !important;
  width: 0 !important;
  height: 2px !important;
  bottom: -1px !important;
  left: 0 !important;
  right: 0 !important;
  background: #2e7bbf !important;
  transition: width 0.4s ease !important;
  margin: 0 auto !important;
}

.navmenu ul li a:hover::after {
  width: 100% !important;
}

.navmenu .dropdown > a::after {
  display: none !important;
}











/* ========== HEADER MOBILE - ABOUT PAGE ========== */
@media (max-width: 1199px) {
  /* Altura e estrutura do header */
  .header {
    min-height: 80px !important;
    height: 80px !important;
    padding: 0 !important;
  }


  
    /* Esconde o botão "Agendar Consulta" no mobile/tablet */
  .header .btn-getstarted {
    display: none !important;
  }
  
  .header .container {
    min-height: 80px !important;
    height: 80px !important;
    padding: 0 15px !important;
    display: flex;
    align-items: center;
    position: relative !important;
  }
  
  /* Quando o menu mobile está ativo */
  body.mobile-nav-active .header,
  body.mobile-nav-active .header .container {
    min-height: 80px !important;
    height: 80px !important;
  }
  
  /* Logo no mobile - ABOUT */
  body:not(.index-page) .logo-normal {
    height: 50px !important;
    max-height: 50px !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
  }
  
  /* Esconde logo-home na about */
  body:not(.index-page) .logo-home {
    display: none !important;
  }
  
  /* Ícone do menu mobile (hambúrguer) */
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 24px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 9999;
    position: absolute;
    right: 15px;
    top: 25px;
    margin: 0;
  }
  
  /* X preto no menu mobile quando ativo */
  .mobile-nav-active .mobile-nav-toggle {
    color: #000000 !important;
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 32px;
    z-index: 9999;
  }
  
  /* Container do menu */
  .navmenu {
    padding: 0;
    z-index: 9997;
  }
  
  /* Menu escondido por padrão */
  .navmenu ul {
    display: none !important;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }
  
/* Bloco branco do menu mobile quando ativo */
body.mobile-nav-active .navmenu ul {
  display: block !important;
  position: fixed;
  top: 60px !important;
  right: 20px;
  left: auto;
  background: #fff;
  width: 260px;
  padding: 5px 10px !important;
  border-radius: 12px;
  min-height: 450px !important;
  max-height: calc(100vh - 120px) !important;
  overflow-y: auto !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
}
  
  /* Estilo dos links do menu */
  .navmenu a {
    font-size: 17px;
    font-weight: 500;
  }
  
  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 15px;
    font-size: 16px;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    border: 2px solid transparent;
    border-radius: 20px;
  }
  
  /* Ícone do dropdown */
  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }
  
  .navmenu .dropdown > a i.toggle-dropdown {
    display: inline-flex !important;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
    border-radius: 50%;
  }
  
  /* Hover dos links */
  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }
  
  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: #3f97d3 !important;
  }
  
  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }
  
  /* Dropdowns no mobile */
  /* Dropdowns no mobile */
.navmenu .dropdown ul {
  position: static;
  display: none;
  box-shadow: none;
  padding: 0;
  margin: 10px 20px;
  background-color: var(--nav-dropdown-background-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 8px;
  transition: all 0.4s ease-in-out;
  max-height: 0;
  overflow: hidden;
}

.navmenu .dropdown.dropdown-active ul {
  display: block !important;
  max-height: 2000px !important;
  padding: 10px 0 !important;
  overflow-y: auto;
}

/* Estilo dos itens do dropdown */
.navmenu .dropdown ul li {
  width: 100%;
  padding: 0;
  margin: 0;
}

.navmenu .dropdown ul li a {
  padding: 12px 20px !important;
  font-size: 14px !important;
  color: var(--nav-dropdown-color) !important;
  display: block !important;
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.navmenu .dropdown ul li a:hover {
  background: rgba(46, 123, 191, 0.1) !important;
  color: var(--nav-dropdown-hover-color) !important;
}

/* Ícone de rotação quando dropdown está ativo */
.navmenu .dropdown.dropdown-active > a i.toggle-dropdown {
  transform: rotate(180deg);
  background-color: var(--accent-color) !important;
  color: white !important;
}
  
  .navmenu .dropdown.active ul {
    display: block !important;
    max-height: 1000px;
    background-color: rgba(33, 37, 41, 0.03);
  }
  
  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }
  
  .navmenu .dropdown > a {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
  }
  
  .navmenu .dropdown > a .toggle-dropdown {
    margin-left: auto;
  }
  
  /* Força dropdowns fechados no mobile */
  body.mobile-nav-active .navmenu .dropdown ul {
    display: none !important;
  }
  
  body.mobile-nav-active .navmenu .dropdown.active ul {
    display: block !important;
  }
  
  /* Itens do menu mobile */
  .navmenu ul li {
    width: 100%;
    margin-bottom: 8px;
  }
  
  .navmenu ul li a {
    display: block;
    padding: 12px 15px;
    background: transparent;
    border-radius: 6px;
    color: #363f40;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.3s ease;
  }
  
  .navmenu ul li a:hover {
    background: #f8f9fa;
  }
  
  /* Previne overflow quando menu está ativo */
  .mobile-nav-active {
    overflow: hidden;
  }
  
  .mobile-nav-active .navmenu {
    position: relative;
    overflow: hidden;
    inset: 0;
    background: transparent;
    transition: 0.3s;
    z-index: 9997;
  }
}

/* ========== MOBILE ESPECÍFICO (768px) - ABOUT ========== */
@media (max-width: 768px) {
  /* Logo menor em telas muito pequenas - ABOUT */
  body:not(.index-page) .logo-normal {
    height: 45px !important;
    max-height: 45px !important;
    margin-top: -15px !important;
    margin-left: 0 !important;
    margin-bottom: 0 !important;
  }
  
  .header .logo {
    margin-top: -20px !important;
    margin-bottom: 0 !important;
    padding: 5px 0 !important;
  }
  
  .header {
    min-height: 65px !important;
    padding: 8px 0 !important;
  }
  
  .header .container {
    min-height: auto !important;
    padding: 8px 15px !important;
  }
  
  /* Esconde botão "Agendar Consulta" no mobile */
  .header .btn-getstarted {
    display: none !important;
  }
  
  /* Ajusta a posição da logo para baixo - ABOUT */
  body:not(.index-page) .logo img,
  body:not(.index-page) .logo-normal img {
    margin-top: 30px !important;
    position: relative !important;
    z-index: 10000 !important;
  }
}

/* ========== CORREÇÃO APÓS SCROLL - ABOUT ========== */
.header.header-scrolled,
.header.scrolled,
.header.fixed-top {
  background: #fff !important;
  z-index: 9999 !important;
  opacity: 1 !important;
  transition: all 0.3s ease;
}

.header.header-scrolled .container,
.header.scrolled .container {
  min-height: 70px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* ========== GARANTE VISIBILIDADE DA LOGO - ABOUT ========== */
body:not(.index-page) .logo-normal {
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-block !important;
  position: relative !important;
  z-index: 10000 !important;
}

body:not(.index-page) .logo-home {
  display: none !important;
}

/* ========== NAVMENU-WRAPPER (SEM FUNDO BRANCO NA ABOUT) ========== */
body:not(.index-page) .navmenu-wrapper {
  background: transparent !important;
  padding: 0 !important;
}

/* ============================================
   CORREÇÃO DEFINITIVA - LOGO FIXA NO MOBILE
   ============================================ */

@media (max-width: 1199px) {
  /* Força o tamanho fixo da logo em TODAS as situações */
  .header .logo img,
  .header.scrolled .logo img,
  header.scrolled .logo img,
  body.scrolled .header .logo img,
  body:not(.index-page) .logo img,
  body:not(.index-page) .logo-normal,
  body:not(.index-page).scrolled .logo img,
  .logo-home,
  .logo-normal {
    height: 70px !important;
    max-height: 70px !important;
    min-height: 70px !important;
    width: auto !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    transform: none !important;
    scale: 1 !important;
    transition: none !important;
    animation: none !important;
  }

  /* Posiciona a logo no CANTO ESQUERDO */
  .header .logo,
  .header.scrolled .logo,
  body:not(.index-page) .logo {
    transform: none !important;
    transition: none !important;
    animation: none !important;
    margin: 0 !important;
    margin-right: auto !important;
    padding: 0 !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  /* Container do header alinha itens nas pontas */
  .header .container,
  .header.scrolled .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 15px !important;
  }

  /* Fixa a altura do header */
  .header,
  .header.scrolled,
  header,
  header.scrolled {
    min-height: 70px !important;
    max-height: 70px !important;
    height: 70px !important;
    padding: 0 !important;
  }

  .header .container,
  .header.scrolled .container {
    min-height: 70px !important;
    max-height: 70px !important;
    height: 70px !important;
  }

  /* Remove qualquer centralização forçada */
  body:not(.index-page) .logo {
    justify-content: flex-start !important;
    width: auto !important;
    margin-left: 0 !important;
  }
}

/* Tablets menores e celulares */
@media (max-width: 768px) {
  .header .logo img,
  .logo-home,
  .logo-normal {
    height: 70px !important;
    max-height: 70px !important;
    min-height: 70px !important;
  }
  
  .header,
  .header.scrolled {
    min-height: 65px !important;
    max-height: 65px !important;
    height: 65px !important;
  }
  
  .header .logo {
    justify-content: flex-start !important;
  }
}

/* ========== CORREÇÃO FINAL DROPDOWN MOBILE ========== */
@media (max-width: 1199px) {
  
  /* FORÇA TODOS os dropdowns a ficarem ESCONDIDOS por padrão */
  .navmenu .dropdown ul,
  body.mobile-nav-active .navmenu .dropdown ul {
    display: none !important;
    max-height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    overflow: hidden !important;
  }
  
  /* SÓ mostra quando tiver a classe dropdown-active */
  .navmenu .dropdown.dropdown-active ul,
  body.mobile-nav-active .navmenu .dropdown.dropdown-active ul {
    display: block !important;
    max-height: 2000px !important;
    padding: 10px 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow-y: auto !important;
  }
  
  /* Remove bordas e estilos desnecessários dos links principais */
  .navmenu .dropdown > a {
    border: none !important;
  }
  
  /* Estilo dos itens dropdown */
  .navmenu .dropdown ul li a {
    padding: 12px 20px !important;
    font-size: 14px !important;
    border: none !important;
    border-radius: 0 !important;
  }
  
  /* Ícone girado quando dropdown está ativo */
  .navmenu .dropdown.dropdown-active > a i.toggle-dropdown {
    transform: rotate(180deg) !important;
    background-color: var(--accent-color) !important;
    color: white !important;
  }
}

/* ======== CORREÇÃO FINAL - SUBMENU MOBILE ======== */
@media (max-width: 1199px) {

  /* Mantém o menu branco centralizado */
  body.mobile-nav-active .navmenu ul {
    display: block !important;
    position: fixed;
    top: 80px !important;
    right: 15px !important;
    left: auto !important;
    margin: 0 auto;
    background: #fff;
    width: 90%;
    max-width: 320px;
    padding: 15px 10px !important;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    overflow-y: auto;
    max-height: calc(100vh - 100px);
  }

  /* 🔹 Submenu escondido inicialmente */
  .navmenu .dropdown ul {
    display: none;
    background: #fff;
    margin-top: 5px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    position: static !important; /* ← ESSENCIAL */
  }

  /* 🔹 Quando ativo, aparece logo abaixo */
  .navmenu .dropdown.dropdown-active > ul {
    display: block !important;
  }

  /* 🔹 Links do submenu */
  .navmenu .dropdown ul li a {
    display: block;
    padding: 10px 20px;
    font-size: 15px;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul li a:hover {
    color: var(--accent-color);
  }

  /* 🔹 Ícone da seta gira */
  .navmenu .dropdown > a i {
    transition: transform 0.3s ease;
  }

  .navmenu .dropdown.dropdown-active > a i {
    transform: rotate(180deg);
    background: var(--accent-color);
    color: #fff;
  }
}



/* ========== FIXA O HEADER NO MOBILE - REDUZIDO ========== */
@media (max-width: 1199px) {
  /* FIXA A ALTURA DO HEADER EM 65PX */
  .header {
    min-height: 65px !important;
    max-height: 65px !important;
    height: 65px !important;
    padding: 0 !important;
  }

  .header .container {
    min-height: 65px !important;
    max-height: 65px !important;
    height: 65px !important;
    padding: 0 15px !important;
    display: flex;
    align-items: center;
    position: relative !important;
  }

  /* QUANDO O MENU MOBILE ESTÁ ATIVO */
  body.mobile-nav-active .header {
    min-height: 65px !important;
    max-height: 65px !important;
    height: 65px !important;
    overflow: visible !important;
  }

  body.mobile-nav-active .header .container {
    min-height: 65px !important;
    max-height: 65px !important;
    height: 65px !important;
  }

  /* GARANTE QUE O MENU NÃO EMPURRA O HEADER */
  body.mobile-nav-active .navmenu {
    position: absolute !important;
    top: 0 !important;
    height: 0 !important;
  }


}


/*--------------------------------------------------------------
# Esconde "Agendar Consulta" do dropdown em Desktop
--------------------------------------------------------------*/
@media (min-width: 1200px) {
  /* Esconde o item "Agendar Consulta" dentro do dropdown "Fale Conosco" */
  .navmenu .dropdown ul li:last-child {
    display: none !important;
  }
  
  /* OU se você quiser ser mais específico e seguro, use isso: */
  .navmenu .dropdown ul li a[href*="wa.me"] {
    display: none !important;
  }
  
  /* Esconde o <li> pai do link do WhatsApp */
  .navmenu .dropdown ul li:has(a[href*="wa.me"]) {
    display: none !important;
  }
}


/* ========================================================================
   CORREÇÃO DEFINITIVA DA LOGO ENTRE 1200px E 1400px
   ======================================================================== */
@media (min-width: 1200px) and (max-width: 1400px) {
  
  /* Logo Home (antes do scroll) - POSICIONADA À ESQUERDA */
  .index-page .logo-home {
    height: 130px !important;
    max-height: 130px !important;
    width: auto !important;
    margin-top: 15px !important; /* ← Aumentei de -10px para 15px - desce a logo */
    margin-left: -50px !important;
    position: relative !important;
    z-index: 20 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
  }
  
  /* Logo Normal (depois do scroll) - POSICIONADA À ESQUERDA */
  .index-page.scrolled .logo-normal {
    display: block !important;
    opacity: 1 !important;
    height: 130px !important;
    max-height: 130px !important;
    width: auto !important;
    margin-top: 15px !important; /* ← Aumentei de -10px para 15px - desce a logo */
    margin-left: -50px !important;
    position: relative !important;
    z-index: 20 !important;
    visibility: visible !important;
  }
  
  /* Esconde logo-home quando rolar */
  .index-page.scrolled .logo-home {
    display: none !important;
  }
  
  /* Esconde logo-normal antes de rolar */
  .index-page .logo-normal {
    display: none !important;
    opacity: 0 !important;
  }
  
  /* POSICIONA O CONTAINER DA LOGO À ESQUERDA */
  .index-page .logo,
  .index-page.scrolled .logo {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    margin: 0 !important;
    margin-right: auto !important;
  }
  
  /* Garante que o header container distribua os elementos corretamente */
  .index-page .header .container,
  .index-page.scrolled .header .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
}


/* ========================================================================
   CORREÇÃO DEFINITIVA DA LOGO ENTRE 1200px E 1400px
   ======================================================================== */
@media (min-width: 1200px) and (max-width: 1400px) {
  
  /* Logo Home (antes do scroll) - POSICIONADA À ESQUERDA */
  .index-page .logo-home {
    height: 130px !important;
    max-height: 130px !important;
    width: auto !important;
    margin-top: 15px !important; /* ← Aumentei de -10px para 15px - desce a logo */
    margin-left: -50px !important;
    position: relative !important;
    z-index: 20 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
  }
  
  /* Logo Normal (depois do scroll) - POSICIONADA À ESQUERDA */
  .index-page.scrolled .logo-normal {
    display: block !important;
    opacity: 1 !important;
    height: 130px !important;
    max-height: 130px !important;
    width: auto !important;
    margin-top: 15px !important; /* ← Aumentei de -10px para 15px - desce a logo */
    margin-left: -50px !important;
    position: relative !important;
    z-index: 20 !important;
    visibility: visible !important;
  }
  
  /* Esconde logo-home quando rolar */
  .index-page.scrolled .logo-home {
    display: none !important;
  }
  
  /* Esconde logo-normal antes de rolar */
  .index-page .logo-normal {
    display: none !important;
    opacity: 0 !important;
  }
  
  /* POSICIONA O CONTAINER DA LOGO À ESQUERDA */
  .index-page .logo,
  .index-page.scrolled .logo {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    margin: 0 !important;
    margin-right: auto !important;
  }
  
  /* Garante que o header container distribua os elementos corretamente */
  .index-page .header .container,
  .index-page.scrolled .header .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
}

/* Ajuste apenas para telas em torno de 1200px */
@media (min-width: 1180px) and (max-width: 1250px) {
  .navmenu {
    margin-left: 110px !important; /* pode ajustar o valor */
  }
}


/* FIX EXATO: logo fica na MESMA posição antes e depois do scroll */
@media (min-width: 1180px) and (max-width: 1250px) {

  /* Logo antes do scroll */
  .index-page .logo-home {
    margin-left: -20px !important; /* puxa para a esquerda */
  }

  /* Logo depois do scroll */
  .index-page.scrolled .logo-normal {
    margin-left: -20px !important; /* MESMA posição depois do scroll */
  }

  .index-page .logo-home img,
  .index-page.scrolled .logo-normal img {
    transform: none !important;
  }
}

