* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html::-webkit-scrollbar-thumb {
    background: #8e9597;
}

html::-webkit-scrollbar-track {
    background: #fff;
}

body {
    font-size: 1rem;
    font-family: 'Playfair Display', serif;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffffef;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 5px;
    transition: box-shadow 0.3 ease;
    transition: transform 0.3s ease;
}

header.shadow {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
}

header a {
    margin: 10px;
}

#title_Ord {
    width: 30%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

#img_title {
    width: 20%;
    height: 20%;
    border-radius: 50%;
}

#h_1 {
    font-size: 150%;
}

#sec_H {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#abes_log {
    transition: transform 0.3s ease;
}

#abes_log:hover {
    transform: scale(1.05);
}

main {
    margin: 0 50px 100px 50px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 15px;
    position: relative;
    transition: transform 0.3 ease;
}

.nav-links li:hover {
    transform: scale(1.1);
}

.nav-links a {
    color: #333;
    text-decoration: none;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    padding: 10px;
    margin: 0;
    background: #f1f1f1;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.submenu li {
    margin: 0;
    width: 150px;
}

.submenu a {
    padding: 5px 10px;
    color: black;
}

.nav-links li:hover .submenu {
    display: block;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 25px;
    justify-content: space-between;
}

.bar {
    height: 5px;
    width: 100%;
    background-color: #333;
}

.sections {
    margin: 0 0 25px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#sec_contatos {
    align-items: center;
}

#div_cont {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#d_funcionamento {
    width: 25%;
    height: 100%;
    margin-right: 100px;
}

#d_contato {
    width: 25%;
    height: 100%;
    margin-left: 100px;
}

#cmc_log {
    scale: 0.8;
    box-shadow: -20px -10px 0px 0px #02e1ffcb;
}

iframe {
    box-shadow: -20px 0px 30px 0px #000000cb;
}

#trab {
    scale: 1.1;
    margin-top: 3.5%;
    margin-right: 3.5%;
    box-shadow: 20px -10px 10px 0px #02e1ffcb;
}

#div_historia {
    margin-right: 3.5%;
    border-radius: 10%;
    padding: 10px;
    box-shadow: -20px -10px 10px 0px #02e1ffcb;
}

#div_historia p {
    padding: 20px;
}

#div_trabalho {
    margin-top: 65px;
    border-radius: 10%;
    padding: 10px;
    box-shadow: 20px -10px 10px 0px #02e1ffcb;
}

#div_trabalho p {
    padding: 20px;
}

.cmc_l {
    width: 35%;
    height: 35%;
    border-radius: 20%;
}

#imagem {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

h3 {
    margin-left: 100px;
}

.paragraf {
    width: 35%;
    margin-top: 1.5%;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

#seg_div {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#func_divs {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

#func_only {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#div_tfun {
    width: 90%;
    height: fit-content;
    background-color: #ffffff;
    box-shadow: 0px -10px 20px 0px #000000;
    border-radius: 10px;
    border: none;
    padding: 25px;
    margin-bottom: 10px;
}

.t_fun {
    width: 90%;
    padding: 15px 0px;
    margin-left: 30px;
    border-radius: 10px;
    border: none;
    outline: none;
    text-transform: uppercase;
    text-align: center;
    font-weight: 800;
    letter-spacing: 2.5px;
    background-color: #ffffff;
    color: #000000;
    font-size: 1.5vw;
    transition: transform 0.3s ease;
}

.t_fun:hover {
    transform: scale(1.1);
}

#seg_subT_1 {
    margin-bottom: 30px;
}

#func_Lis {
    width: 80%;
    border-radius: 10px;
    border: none;
    outline: none;
    color: #000000;
    padding: 50px 10%;
    background-color: #ffffffd5;
    /* box-shadow: 0px 0px 30px 0px #000000; */
    display: flex;
    flex-direction: column;
    align-items: center;
}

#func_Lis li {
    align-items: center;
    margin: 10px;
}

.li_seg {
    transition: transform 0.3s ease;
    border: 1px solid #000000;
    padding: 10px;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.li_seg:hover {
    transform:scale(1.1);
}

#telas_flex {
    width: 100%;
    border-radius: 10px;
    transform: scale(1.0);
}

.seg_subT {
    text-decoration: underline;
    margin-left: 100px;
    font-size: 1.3vw;
}

.hr_cria {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.hr_f {
    width: 100%;
    text-align: center;
}

.btn_whats {
    width: 29%;
    height: 60px;
    padding: 15px 0px;
    margin: 25px;
    border-radius: 10px;
    border: none;
    outline: none;
    text-transform: uppercase;
    text-align: center;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: #ffffff;
    background-color: #09ff00;
    font-size: 1.5vw;
    display: flex;
    flex-direction: row;
    align-items: center;
    transition: transform 0.3s ease;
}

.btn_whats:hover {
    transform: scale(1.1);
}

.text_saiba {
    text-decoration: none;
    color: #ffffff;
}

.text_saiba:hover {
    text-decoration: underline;
}

#segments {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.carousel {
    width: 80%;
    overflow: hidden;
    border: 2px solid #ddd;
    border-radius: 10px;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 710px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #0078D7;
    color: white;
    font-size: 24px;
    padding: 50px 0;
}

.carousel-slide:nth-child(2) {
    background-color: #f39c12;
}

.carousel-slide:nth-child(3) {
    background-color: #e62222;
}

.carousel-slide:nth-child(4) {
    background-color: #27ae60;
}

.seg_contents {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0;
}

.cont_img {
    width:fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin: 10px;
}

.t_img_seg {
    font-size: 0.5em;
}

.img_seg {
    margin: 10px;
    border-radius: 45%;
    box-shadow: 30px 0px 40px -12px #000000;
}

.tex_seg {
    font-size: 80%;
    margin: 10px 10px 5px 20px;
    width: 50%;
}

.t_seg {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 20px 20px 5px 20px;
    text-decoration: underline;
}

.prev, .next {
    transform: translateY(-50%);
    background-color: transparent;
    color: rgb(0, 0, 0);
    font-size: 30px;
    border: none;
    padding: 20px;
    cursor: pointer;
    z-index: 1;
    border-radius: 50%;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(148, 148, 148, 0.7);
}

.link_ctt {
    text-decoration: none;
    color: #000000;
}

.link_ctt:hover {
    text-decoration: underline;
    color: #0078D7;
}

footer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    background-color: transparent;
    margin-top: 5px;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    display: none;
    transition: transform 0.3s ease;
}

.back-to-top:hover {
    background: #555;
    transform:scale(1.1)
}

body.scrolled .back-to-top {
    display: block;
}

.image-container {
    overflow: hidden;
}

.image {
    transition: opacity 0.3s ease;
}

.image-container:hover {
    .image {
        display: none;
    }
    opacity: 1;
    position: fixed;
    bottom: 10px;
    width: 100%;
    background-color: transparent;
    display: flex;
    background: url('../src/img/icons8-whatsapp.gif') no-repeat center center;
    align-items: end;
    background-size: cover;
}

#link_whatsapp {
    width: 50px;
}

.image-container::before {
  position: fixed;
  background-color: transparent;
  display: flex;
  align-items: end;
  background: url('../src/img/icons8-whatsapp.gif') no-repeat center center;
  background-size: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow: visible;
}

.image-container:hover::before {
  opacity: 1;
  background-color: transparent;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    width: 100%;
    text-align: center;
    position: absolute;
    top: 60px;
    left: 0;
    background-color: #333;
  }

  .nav-links li {
    margin: 20px 0;
  }

  .hamburger {
    display: flex;
  }

  .nav-links.active {
    display: block;
  }
}
