/* Estilos Gerais */
body {
    font-family:Arial, Helvetica, sans-serif;
    background-color: #131b23;
    color: #fefefe;
    font-size: 1em;
    letter-spacing: 0.2px;
    margin:0px;
}


@media (max-width: 425px) {
body h2 {
    font-size: 1.8em;
}

body h3 {
    text-align: center;
    font-size: 1em;
    letter-spacing: 2px;
    color:#fefefe;
    text-transform: uppercase;
    font-weight: bolder;
}

body h4 {
    font-size: 1.2em;
}

body p {
    font-size: 0.9em;
}

  }

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    transition: background-color 0.3s ease; 
}

header.sticky {
    position: fixed;
    top: 0;
    background-color: #131b23; 
    padding: 5px 20px; 
}

header h1 {
    font-size: 2em;
    color: #fff;
}

#logo {
    height: 110px; 
    width: auto;  
}

nav {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    background-color: transparent;
}

nav a {
    color: #fefefe;
    text-decoration: none;
    font-size: 1em;
    padding: 10px 20px;
    border-radius: 30px;
    background-color: #131b23; 
}

nav a:hover {
    background-color: #fefefe; 
    color: #131b23;
}


/* Menu Dropdown */
#nav-links {
    display: flex;
    gap: 20px;
}

ul, ol {
    list-style-type: none; 
    padding: 0; 
    margin: 0; 
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: #fff;
    border-radius: 5px;
}

/* Main */
main {
    width: 100%;
    text-align: center;
}


h2 {
    font-size: 2.2em;
}

h3 {
    text-align: center;
    font-size: 1em;
    letter-spacing: 2.2px;
    color:#fefefe;
    text-transform: uppercase;
    font-weight: bolder;
}

h4 {
    font-size: 1.4em;
}

h5 {
    font-size: 0.7em;
    font-weight: 300;
}

h5 a {
    font-weight: 600;
}

.welcome {
    font-size: 2.6em;
    color: #fefefe;
    text-shadow: 1px 1px 3px #444;
    padding: 10px;
}

.mensagem {
    color: #fefefe;
    font-size: 1.1em;
    text-shadow: 1px 1px 3px #444;
    margin: 0 auto;
    max-width: 880px;
    line-height: 24px;
}

/* Landing */
#landing {
    background-image: url("./Midia/HomeBackground.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center; 
    padding: 0;   
    height: 110vh; 
    position: relative;
    z-index: 0;   

    display: flex;
    flex-direction: column;
    align-items: center;     /* Centraliza horizontalmente, se necessário */
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 768px) {
#landing {
    background-image: url("./Midia/HomeBackground.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position-y:top;
    background-position-x:62%;
    padding: 0;   
    margin-top:48px;
    height: 110vh; 
    position: relative;
    z-index: 0; 

}}

@media (max-width: 425px) {
#landing {
    background-image: url("./Midia/HomeBackground.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position-y:top;
    background-position-x:62%;
    padding: 0;    
    margin-top:48px;
    height: 95vh; 
    position: relative;
    z-index: 0; 

}}

#landing .content {
    padding-top: 410px; /* Use um padding relativo em vez de fixo para maior responsividade */
    max-height: 100%; /* Garante que não ultrapasse o container */
    overflow:unset;
    box-sizing: border-box;
    width: 100%; /* Ajuste conforme o layout desejado */
}

@media (max-width: 768px) {
#landing .content {
    padding-top: 50%; /* Use um padding relativo em vez de fixo para maior responsividade */
    max-height: 100%; /* Garante que não ultrapasse o container */
    overflow:unset;
    box-sizing: border-box;
    width: 90%; /* Ajuste conforme o layout desejado */
}}

@media (max-width: 425px) {
#landing .content {
    padding-top: 60%; /* Use um padding relativo em vez de fixo para maior responsividade */
    max-height: 100%; /* Garante que não ultrapasse o container */
    overflow:unset;
    box-sizing: border-box;
    width: 85%; /* Ajuste conforme o layout desejado */
}}


/* Responsividade */
@media (max-width: 768px) {
    /* Header */
    header {
        justify-content: space-between;
        align-items: center;
        background-color: #131b23;

    }

    #logo {
        display: none;
    }

    .menu-title {
        display: block;
        font-size: 1.5em;
        color: #fff;
    }

    .menu-toggle {
        display: flex;
        padding:8px;
    }

    /* Menu dropdown */

    #nav-links {
        display: none;
        position: absolute;
        top: 45px; 
        right: 0;
        width: 100%;
        background-color: #131b23; 
        flex-direction: column;
        gap: 15px;
        padding: 20px 0; 
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); 
        border-radius: 0px; 
        z-index: 2;
        transition: all 0.3s ease; 
    }

    #nav-links.active {
        display: flex; 
    }

    #nav-links li {
        list-style-type: none; 
        margin: 0; 
    }

    #nav-links a {
        color: #fff; 
        text-decoration: none;
        font-size: 1.2em; 
        padding: 15px 20px; 
        display: block;
        text-align: center; 
        border-radius: 5px; 
        transition: background-color 0.3s ease, color 0.3s ease; 
    }

    #nav-links a:hover {
        background-color: #d1e0de; 
        color: #fff; 
    }

    #nav-links a:focus {
        outline: none; 
        background-color: #d1e0de; 
        color: #fff;
    }
}

/* Responsividade Telas Menores */

@media (max-width: 768px) {
    #nav-links a {
        font-size: 1em; 
        padding: 12px 15px; 
    }

    #logo {
        display: none;
    }


    .menu-title {
        font-size: 1.3em; 
    }

    #landing {
        padding: 100px 20px;
    }

    .welcome {
        font-size: 2.2em;
    }

    .mensagem {
        font-size: 0.9em;
    }
  }


@media (max-width: 425px) {
    header h1 {
        font-size: 1.6em;
    }

    nav a {
        font-size: 1em;
    }

    #landing {
        padding: 80px 10px;
    }

    .welcome {
        font-size: 1.8em;
    }

    .mensagem {
        font-size: 0.9em;
    }
}


/* Atendimentos */

#atendimentos {
    padding-top:120px;
    padding-bottom: 120px;
    color: #131b23;
    background-color: #fefefe;
  }

.atendimentos {
    color: #131b23;
  }


.especialidades {
    margin-left: auto;
    margin-right: auto;
    margin-top: 60px;
    margin-bottom: 80px;
    border: none;
}

div.gallery {
    border: 0px solid #ccc;
  }
  
  div.gallery:hover {
    border: none;
  }
  
  div.gallery img {
    width: 100%;
    height: auto;
    padding: 45px;
  }
  
  div.desc {
    padding: 25px 55px;
    line-height: 1.4em;
    text-align: center;
  }
  
  * {
    box-sizing: border-box;
  }
  
  .responsive {
    padding: 0 6px;
    float: left;
    width: 33%;
  }

  @media (max-width: 425px) {

    .responsive h4 {
      margin: 1px;
    
    }


    .especialidades {
    margin-left: auto;
    margin-right: auto;
    margin-top: 60px;
    margin-bottom: 80px;
    border: none;
}

  div.gallery {
    border: 0px solid #ccc;
  }
  
  div.gallery:hover {
    border: none;
  }
  
  div.gallery img {
    width: 100%;
    height: auto;
    padding: 45px;
  }
  
  div.desc {
    padding: 28px 28px 50px;
    line-height: 1.4em;
    font-size:0.9em;
    text-align: center;
  }

  }


  @media only screen and (max-width: 768px) {
    .responsive {
      width: 100%;
    }
  }
  
  .clearfix:after {
    content: "";
    display: table;
    clear: both;
  }

.agende {
    background-color: #131b23;
    color:#fefefe;
    padding:20px;
    font-size: 1em;
    border: none;
    border-radius: 50px;
    margin: 60px 3px 60px 3px;
    cursor:pointer;
}

.agende a {
    color:#fefefe;
    font-size: 1em;
    text-decoration: none;
}

.agende:hover {
    background-color: #d1e0de;
    color:#fefefe;
    padding:20px;
    font-size: 1em;
    border: none;
    border-radius: 50px;
}


/* Equipe */

#equipe {
    padding-top:120px;
    padding-bottom: 120px;
}

.perfil {
    width: 80%;
    margin-right: auto;
    margin-left: auto;
}
  
html {
    box-sizing: border-box;
  }
  
  *, *:before, *:after {
    box-sizing: inherit;
  }

  .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px; /* Espaçamento entre os cards */
}

  .column {
    float:left;
    margin-bottom: 16px;
    padding: 50px;
    width: calc(50% - 25px); /* Dois por linha, ajustando o gap */
    box-sizing: border-box;
  }

    .card {
    background-color: #fefefe;
    border-radius: 30px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  }
  
  .container {
    padding: 0 30px 30px;
    height: 17em;
    text-wrap:inherit;
    align-content: center;
  }
  
  .container::after, .row::after {
    content: "";
    clear: both;
    display: table;
  }
  
.title {
    text-align: center;
    font-size: 1em;
    letter-spacing: 1.2px;
    color:#fefefe;
    text-transform: uppercase;
    font-weight: bolder;
  }

.perfil h2 { 
    text-align: center;
    font-size: 1.6em;
    color:#131b23;
}

.perfil p {
    color:#131b23;
    line-height: 1.4em;
    max-width: 96%;
    margin-left:auto;
    margin-right: auto;
}


  @media screen and (max-width: 768px) {
    .column {
      width: 100%;
    }

    .perfil {
        width: 100%;
        margin-right: auto;
        margin-left: auto;
    }

    .perfil h2 { 
    font-size: 1.8em;
}

    .perfil p { 
    font-size: 0.9em;
}

    .row {
    gap: 0px; /* Espaçamento entre os cards */
}

  }
  
  @media screen and (max-width: 425px) {
    .column {
      width: 100%;
    }

    .perfil {
        width: 100%;
        margin-right: auto;
        margin-left: auto;
    }

    .perfil h2 { 
    font-size: 1.6em;
}


    .perfil p { 
    font-size: 0.9em;
}

  .column {
    padding: 20px;
  }

    .row {
    gap: 0px; /* Espaçamento entre os cards */
}

  }
  

  
/* Slideshow Section */

#espaco {
    padding-top: 60px;
    padding-bottom: 60px;
}

#espaco h2 {
    padding-bottom: 60px;
    color:#131b23;
}


.slideshow-container {
    position: relative;
    max-width: 100%;
    width: 100%;
    height: 500px; /* Altura fixa definida aqui */
    overflow: hidden; /* Impede conteúdo maior de ultrapassar */
    padding-bottom: 60px;
    margin: 50px auto;
    display: flex;
    align-items: center; /* Centraliza o conteúdo verticalmente */
    justify-content: center;
    background-color: #131b23; /* Opcional: fundo para casos sem imagem */
}


.mySlides {
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
}


.mySlides img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ajusta a imagem sem cortar */
}


/* Setas de navegação */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em; 
    width: 84px;
    height: 84px;
    text-align: center;
    font-weight: bold;
    color: #fefefe;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: none;
    line-height: 1;
    z-index: 1;
}

.prev {
    left: 1px;
    right: auto;
}

.next {
    left: auto;
    right: 1px;
}

/* Remove o efeito hover */
.prev:hover, .next:hover {
    color: #878788; 
} 

/* Responsividade */
@media (max-width: 768px) {
    .slideshow-container {
        height: 100%; /* Altura menor para dispositivos móveis */
        padding-top: 0;
    }
}

@media (max-width: 425px) {
    .slideshow-container {
        height: 100%; /* Altura menor para dispositivos móveis */
        padding-top: 0;
    }



}


/* Cursos */

#cursos {
    padding-top:120px;
    padding-bottom: 120px;
    background-color: #fefefe; 
    color: #131b23;
  }

#cursos h3 {
    color:#131b23;
}

#cursos p {
  max-width: 85%;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4em;
  padding-bottom: 30px;
}

.collapsible {
  background-color: #878788;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  padding: 18px;
  width: 80%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 1.1em;
  letter-spacing: 0.2px;
  margin-top: 8px;
}

.active, .collapsible:hover {
  background-color: #131b23; 
}

.copy {
  padding: 28px 18px;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  display: none;
  overflow: hidden;
  background-color: #f2f2f2;
}

.copy p {
  text-align:left;
  line-height: 1.4em;
}

.copy li {
  text-align:left;
  line-height: 1.4em;
  padding: 0px 38px;
}

ol {
  list-style-type: decimal; 
  padding-left: 20px;   
  margin-left:38px;
}

.copy ul {
  list-style-type: disc;   
  padding-left: 20px;      
}

li {
  margin-bottom: 5px;
}

.duvidas-container {
  text-align: center;
}

.duvidas {
    background-color: #131b23;
    color:#fefefe;
    padding:20px;
    font-size: 1em;
    border: none;
    border-radius: 50px;
    margin: 60px 6px 60px 6px;
    text-align: center;
    cursor: pointer;
}

.duvidas a {
    color:#fefefe;
    font-size: 1em;
    text-decoration: none;
}

.duvidas:hover {
    background-color: #d1e0de;
    color:#fefefe;
    padding:20px;
    font-size: 1em;
    border: none;
    border-radius: 50px;
}
  
@media (max-width: 768px) {
.copy p {
  text-align:left;
  line-height: 1.4em;
  font-size:0.9em;
}

.copy li {
  text-align:left;
  line-height: 1.4em;
  padding: 0px 38px;
  font-size:0.9em;

    }

.collapsible {
font-size:0.9em;

}}

/* Footer */

.footer {
    padding-bottom:6%;

}

.footer p {
    font-size: 0.9em;
    line-height: 1.4em;
    color:#f0ffff;
}

.footer a {
    font-size: 0.9em;
    line-height: 1.4em;
    color:#f0ffff;
    text-decoration:underline;
}

.footer a:hover {
    font-size: 0.9em;
    line-height: 1.4em;
    color:#666;
    text-decoration:underline;
}

.footer h3 {
    font-size: 0.8em;
    text-align: left;
}

.icons {
    padding:2px;
}


* {
    box-sizing: border-box;
  }
  
  .coluna {
    float: left;
    width: 33.3%;
    padding: 4%;
    height: 300px; 
  }
  
  .footer:after {
    content: "";
    display: table;
    clear: both;
  }
  
  @media screen and (max-width: 650px) {
    .coluna {
      width: 100%;
    }
  }

  /*Página Galeria*/

 #galeria main {
    padding-top:180px;
    padding-bottom: 120px;
    width: 90%;
    margin: auto;

  }

  #galeria h4 {
    text-align: left;
    margin:80px 0px 40px 10px;
  }

  legend {
    font-size:small;
    font-style: italic;
  }

/* Casos */

.galeria {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 90%;
  margin: 30px auto;
}

.galeria-item {
  position: relative;
  width: 100%;
  padding-top: 125%; /* 4:5 ratio (altura = 1.25 * largura) */
  overflow: hidden;
  border-radius: 5px;
}

.galeria-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: 5px;
}

.galeria-img:hover {
  transform: scale(1.05);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
}

/* Responsividade */
@media (max-width: 1024px) {
  .galeria {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .galeria {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 425px) {
  .galeria {
    grid-template-columns: 1fr;
  }
}