*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4em;
    background-color: #F4F5F4;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    filter: drop-shadow(0rem 1rem 12px #0000004a);
    z-index: 1000;
}

header div{
    filter: drop-shadow(0rem 0.4rem 12px#0000007b);
}

nav{
    min-width: 30vh;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.link-nav{
    text-decoration: none;
    color: #2C3242;
    padding: 0.5em;
}

#inicio{
    min-height: 70vh;

    background-image: 
    linear-gradient(to bottom, #0113399d, #01133957),
    url('./assets/Fundo\ de\ Inicio\ Site\ 1.png');
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    color: #F4F5F4;
    box-shadow: 0em 4px 2em #00000068;
    scroll-margin-top: 100px;
}

#inicio h1{
    font-size: 2rem;
    font-weight: 900;
    margin-top: 3rem;
}

#inicio p{
    margin: 1rem 0rem;
    padding: 2rem;
    text-align: center;
    font-weight: 500;
    filter: drop-shadow(12px 12px 8px#000000d4);
}

.redirect-button{
    min-width: 40vh;
    min-height: 4vh;
    border: none;
    border-radius: 8px;
    color: #F4F5F4;
    background-color: #0467d8;
    filter: drop-shadow(0px 8px 12px#00000058);
    font-size: 0.8em;
}

#sobre{
    color: #616571;
    margin-top: 2rem;
}

#sobre h2{
    margin: 0em 0em 1em 1em;
    color: #03377b;
    filter: drop-shadow(0rem 0.4rem 12px#0000007b);
}

#sobre p{
    width: 80vw;
    margin: 0em 0em 0em 2em;
    filter: drop-shadow(0rem 0.4rem 12px#0000007b);
}

.marcacao{
    min-height: 20vh;
    margin-top: 12px;
    padding-top: 1rem;
    background-color: #0467d8;
    box-shadow: 0em 4px 2em #00000068;
}

.marcacao p{
    color: #F4F5F4;
}

#servicos{
    min-height: 36vh;
    margin: 2em 0em 1em 1em;
    display: flex;
    flex-direction: column;
    color: #03377b;
}

.carrossel-container{
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 1rem;
}

.carrossel-container::-webkit-scrollbar {
  display: none;
}

.carrossel-servicos {
    padding: 2rem;
    background: #f9f9f9;
    text-align: center;
}

.carrossel-servicos h2 {
    font-size: 2rem;
    color: #022042;
    margin-bottom: 1rem;
}

.carrossel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.servico-card {
    scroll-snap-align: center;
    flex: 0 0 90%; /* Ocupa 90% da largura da tela */
    background: #f4f5f4;
    border: 2px solid #03377b;
    border-radius: 1rem;
    display: flex;
    gap: 1rem;
    padding: 1rem;
    filter: drop-shadow(0rem 0rem 8px#00000045)
}

.icone img{
    max-width: 6rem;
}

.conteudo {
  text-align: left;
}

.conteudo h3 {
  color: #03377b;
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.conteudo p {
  color: #555;
  font-size: 0.9rem;
  margin: 0;
  filter: none;
}

/* Indicadores (bolinhas) */
.marcadores {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: #d2dfed;
  border-radius: 50%;
  transition: background 0.3s;
}

.dot.active {
  background-color: #0a58b2;
}


#contato{
    min-height: 92vh;
    padding: 2em 1em 0em 1em;
    background-color: #0467d8;
    color: #F4F5F4;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.redirecionamento{
    min-height: 44vh;
    display: flex;
    flex-direction: column;
}

.redirecionamento h2{
    font-size: xx-large;
    margin-bottom: 1em;
}

.redirecionamento p{
    margin-bottom: 2em;
}

.redirect-button-contato{
    min-width: 40vh;
    min-height: 4vh;
    margin-bottom: 3em;
    border: none;
    border-radius: 8px;
    color: #353535;
    background-color: #07e062;
    filter: drop-shadow(0px 8px 12px#00000058);
    font-size: 0.8em;
    font-weight: 500;
}

.midia{
    text-decoration: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.icon-midia{
    min-width: 3em;
}

.icon-midia-instagram{
   min-width: 3em;
   margin-left: 2em;
}  

.endereco{
    padding-top: 1rem;
    filter: drop-shadow(0px 8px 12px#00000058);
}

.mapa{
    width: 20rem;
    border-radius: 1rem;
}

footer{
    min-height: 1.7rem;
    font-size:x-small;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: #f4f5f465;
    background-color: #464B53;
}

/* Animação */
@keyframes slide-left-to-right {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-right-to-left {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Estado inicial */
.redirecionamento,
.endereco {
  opacity: 0;
  transform: translateY(50px);
}

/* Animação com delays diferentes */
.redirecionamento.animado {
  animation: slide-left-to-right 0.6s ease-in forwards;
  animation-delay: 0.3s;
}

.endereco.animado {
  animation: slide-right-to-left 0.6s ease-in forwards;
  animation-delay: 0.3s;
}


  @keyframes mola {
    0% {
      opacity: 0;
      transform: scale(0.5);
    }
    60% {
      opacity: 1;
      transform: scale(1.15);
    }
    80% {
      transform: scale(0.95);
    }
    100% {
      transform: scale(1);
    }
  }

@media screen and (min-width: 1024px) {

  header {
    justify-content: space-between;
    padding: 0 24vw;
  }

  nav {
    min-width: 30vw;
    justify-content: flex-end;
    gap: 2rem;
  }

  #inicio h1 {
    font-size: 4rem;
    margin-bottom: 1em;
  }

  #inicio p {
    font-size: 1.4rem;
    padding: 0 32vw;
    font-weight: 300;
  }

  .redirect-button {
    font-size: 1rem;
    min-width: 32vw;
    margin-top: 1em;
  }

  #sobre h2{
    margin-left: 26vw;
  }
  #sobre p {
    width: 44vw;
    margin-left: 27vw;
    font-size: 1.1rem;
  }

  .marcacao p{
    font-size: larger;
    font-weight: 600;
  }

  #servicos h2{
    margin-left: 25vw;
    margin-bottom: 1em;
  }

  .carrossel-wrapper {
    width: 80vw;
    margin: 0 auto;
  }

  .carrossel-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  overflow: visible;
  scroll-behavior: auto;
  padding: 2rem 0;
}

/* Dois primeiros cards lado a lado */
.servico-card {
  width: 40%;
  min-width: 300px;
  max-width: 400px;
}

/* Último card abaixo e centralizado */
.servico-card:nth-child(3) {
  width: 80%;
  margin: 0 auto;
}

  .marcadores{
    visibility: hidden;
  }

  #contato {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    text-align: left;
    padding: 2rem 20vw;
  }

  .redirecionamento {
    width: 40%;
    align-items: flex-start;
  }

  .redirect-button-contato {
    min-width: 18vw;
  }

  .midia {
    justify-content: flex-start;
  }

  .mapa {
    width: 24rem;
    height: auto;
  }

  .endereco {
    width: 40%;
    text-align: left;
  }

  .servico-card {
  opacity: 1;
  transform: scale(1);
  transition: none;
  }

  /* Estado inicial de invisibilidade para animar */
  .servico-card.oculto {
    opacity: 0;
    transform: scale(0.5);
  }

  /* Animação de mola */
  .servico-card.animado {
    animation: mola 0.8s ease-out forwards;
  }
}
