h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 140%;
  color: #004069;
}

h3 {
  font-size: 36px;
  font-weight: 500;
  line-height: 140%;
  color: #004069;
}

section {
  margin: 3rem 0;
}


.extensao-box {
  background: linear-gradient(90deg, #3498db, #004080);
  border-top-right-radius: 80px;
  border-bottom-right-radius: 80px;
  height: 100%;
  min-height: 160px;
  position: relative;
  z-index: 2;
  padding-left: var(--bs-gutter-x, 1.5rem);
}

.divisao-extensao {
  min-height: 160px;
}

/* Cobre parte da imagem */
.extensao-img-wrapper {
  margin-left: -30%;
  overflow: hidden;
  z-index: 1;
  position: relative;
}

.divisao-extensao {
  h1 {
    font-size: 35px;
    font-weight: 700;
    line-height: 120%;
    color: #ffffff;
  }

  svg {
    width: 40px;
    height: 40px;
    margin-right: .5rem;
  }

  h5 {
    font-size: 35px;
  }

  i.fa-solid {
    font-size: 3.5em;
  }

  a,
  p {
    color: #ffffff;
  }
}


.btn-cta {
  color: #fff;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  border-radius: 40px;
  background: #f58220;
  height: auto;
  padding: 12px 35px;
  align-items: center;
  transition: ease-in 0.2s;
  width: max-content;
  border: none;
  display: flex;
  justify-content: center;
  text-align: center;
  text-wrap-mode: nowrap;

  &:hover {
    background-color: #e46b00;
    color: #f9f9f9;
  }
}

input[type="email"],
input[type="tel"],
input[type="password"],
input[type="text"],
.form-select {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 1px solid #3189BF;
  border-radius: 12px;
  font-size: 16px;
  outline: none;
  background-color: #F3F5F7;
  transition: border-color 0.3s ease;
}

.form-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23F58220' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

input[type="email"],
input[type="tel"],
input[type="password"],
input[type="text"]:focus,
.form-select:focus {
  border-color: #007bff;
}

.input-wrapper i,
.select-wrapper i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #F58220;
  pointer-events: none;
}

.input-wrapper,
.select-wrapper {
  position: relative;
  margin-top: 20px;
}

#menu {
  padding: 20px 0;
}

/* MENU - CUSTOM */
#header {
  position: relative;
  z-index: 999;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Customizações do header */
.custom-header {
  background-color: #ffffff;
  padding: 10px 0;
  height: 90px;
  z-index: 999;
}

.logo-alfama {
  max-height: 62px;
  width: auto;
}

.menu-item {
  position: relative;

  &.current_page_item {
    &::after {
      content: '';
      position: absolute;
      bottom: -8px;
      left: 0;
      width: 100%;
      height: 3px;
      background-color: #F58220;
      border-radius: 2px;
    }

    a {
      color: #004069;
      font-weight: 600;
    }
  }

  a {
    color: #585757;
    font-size: 16px;
    line-height: 160%;
  }
}


.header-social-icons {
  gap: 15px;
}

.header-social-icons .social-link {
  color: #FFFFFF;
  /* azul escuro Alfama */
  font-size: 20px;
  transition: color 0.3s ease;
  aspect-ratio: 1/1;
}

.header-social-icons .social-link i {
  padding: 6px;
  border-radius: 50px;
  background: #003865;
  aspect-ratio: 1 / 1;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
  display: flex;
}

.header-social-icons .social-link:hover {
  color: #f26522;
  /* laranja no hover */
}

a.btn-aluno {
  background: linear-gradient(90deg, #F58220, #F4A14E);
  background-size: 200% 200%;
  background-position: left center;
  color: #fff;
  padding: 0px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: background-position 0.5s ease;
  height: 50px;
  display: flex;
  align-items: center;
}

.btn-aluno i {
  margin-right: 8px;
  font-size: 18px;
}

a.btn-aluno:hover {
  background-position: right center;
  color: #fff;
}

/* Menu navbar centralizado */
.navbar-nav {
  align-items: center;
  gap: 30px;
}

/* ==========================================================================
   6. Footer - The bottom of every page
   ========================================================================== */

footer {
  background-color: #F6F8FA;

  img {
    max-width: 100%;
    height: auto;
  }

  .btn-whatsapp {
    background-color: #F58220;
    color: white;

    &:hover {
      background-color: #e0741b;
      color: white;
    }
  }

  .btn-phone {
    background-color: #004069;
    color: white;

    &:hover {
      background-color: #002d4a;
      color: white;
    }
  }


  .btn-email {
    border: 1px solid #F58220;
    color: #F58220;
    background-color: transparent;

    &:hover {
      background-color: #F58220;
      color: white;
    }
  }


  .contact-btn {
    border-radius: 999px;
    padding: 1rem 3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    text-align: left;
    width: 25%;
    justify-content: center;
  }

  .contact-label {
    display: block;
    font-size: 1rem;
    line-height: 1;
  }

  .contact-info {
    font-weight: 600;
    font-size: 1.4rem;
  }

  .borda {
    border-top: 1px solid rgba(44, 115, 163, 0.3);
    border-bottom: 1px solid rgba(44, 115, 163, 0.3);
  }

  .footer-title {
    color: #004069;
    font-weight: 600;
    font-size: 16px;
  }

  .menu-item a {
    color: #585757;
    font-size: 16px;
    line-height: 260%;
  }

  .unidades-section {
    padding: 3rem 1rem;
  }

  .unidade-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 100%;
  }

  .unidade-card {
    h6 {
      font-weight: 700;
      color: #004069;
      margin-bottom: 0.25rem;
    }

    small {
      display: block;
      font-weight: 500;
      margin-bottom: 0.75rem;
      color: #444;
    }

    p {
      font-size: 0.875rem;
      color: #333;
      margin-bottom: 0.5rem;
    }

    i {
      color: #F58220;
      margin-right: 5px;
    }
  }

}

/* ==========================================================================
   8. Media Queries -
   ========================================================================== */
@media (min-width: 1400px) {
  .navbar-brand {
    display: block !important;
  }

  .menu-principal-container {
    margin-left: auto !important;
  }
}

@media (min-width: 1200px) and (max-width: 1400px) {
  .logo-alfama {
      max-height: 42px;
      width: auto;
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  .navbar-nav {
    gap: 25px;
  }
}

@media (min-width: 768px) and (max-width: 1200px) {
  .navbar-brand {
    display: none !important;
  }
}

@media (max-width: 768px) {

  .navbar-brand img {
    width: 150px;
  }

  .navbar.custom-header {
    padding: 0;
    height: auto;
  }

  .navbar-brand {
    display: block !important;
  }

  /* PAGE & SINGLE - TEMPLATE SHIT */
  .post+.post {
    margin-top: 30px;
  }

  /*DISPLAY SHIT*/
  .tablet {
    display: block;
  }

  .slider-container .cycle-slideshow {
    height: auto;
  }

  .slider-container .display-container {
    display: block;
  }

  .slider-container .display-container .txt {
    position: absolute;
    top: 40%;
    z-index: 999;
    width: 100%;
    text-align: center;
    padding: 20px;
  }

  .slider-container .display-next,
  .slider-container .display-prev {
    display: none;
  }

  .divisao-extensao {
    min-height: 160px;

    a,
    p {
      text-wrap-mode: nowrap;
      overflow-x: clip;
      font-size: 12px;
    }

    .extensao-box {
      min-height: 160px;
    }

    h5 {
      font-size: 30px;
    }
  }

  .img-front {
    img {
      max-height: 500px;
    }
  }

}

@media (max-width: 768px) {

  /* MENU - TEMPLATE SHIT */
  #menu {
    padding: 0;
  }

  .navbar-collapse li {
    float: none;
  }

  .navbar-collapse a {
    padding: 0;
    line-height: 45px;
  }

  /* Sub Menu Things */
  .navbar-collapse .sub-menu {
    max-height: 0px !important;
    padding: 0 0 0 20px;
    margin: 0;
    overflow: hidden;
    opacity: 0;
    transition: 1s ease;
  }

  .navbar-collapse .menu-item-has-children.opened .sub-menu {
    max-height: 200px !important;
    opacity: 1;
  }

  /* CONTATO - TEMPLATE SHIT */
  .label-file span {
    display: none;
  }

  /*GALLERY WP SHIT*/
  .gallery-item {
    width: 100%;
    max-width: 100% !important;
  }

  .divisao-extensao h1 {
    font-size: 30px;
  }

  .divisao-extensao i.fa-solid {
    font-size: 3em;
  }
}

/* Popup Mobile */
.popup-mobile {
  display: none;
  /* Começa oculto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  font-family: Arial, sans-serif;
}

.popup-content p {
  font-size: 16px;
  margin-bottom: 20px;
}

.popup-content button {
  padding: 10px 20px;
  background: #f7931e;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}
