/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f5f7fa;
  color: #333;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  height: 130px;
  background: #0000ff;
  color: white;
  padding: 15px 40px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.logo {
  display: flex;
  border: 8px solid #000;
  border-radius: 50%;
}

.logo img {
  width: 100px;
  border: 6px solid #fff;
  border-radius: 50%;
}

nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  opacity: 0.7;
}

nav a.active {
  opacity: 1;
  border-bottom: 2px solid #ff7a18;
}

/* HERO */
.hero {
  height: 60vh;
  background: linear-gradient(rgba(0,0,0,.1), rgba(0,0,0,.4)),
              url("img/foto.jpg") center / cover;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

/* SEÇÕES RESUMO */
section.resumo {
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 120px 40px;
  max-width: 1200px;
  margin: auto;

  /* Corrige scroll com header sticky */
  scroll-margin-top: 120px;

  opacity: 0;
  transform: translateY(50px);
  transition: 0.8s;
}

section.resumo.show {
  opacity: 1;
  transform: translateY(0);
}

/* Alternância SOMENTE no desktop */
@media (min-width: 769px) {
  section.resumo:nth-child(even) {
    flex-direction: row-reverse;
  }
}

.resumo img {
  width: 100%;
  max-width: 480px;
  border-radius: 15px;
}

.resumo button {
  margin-top: 20px;
}

/* BOTÕES */
button {
  background: #ff7a18;
  border: none;
  padding: 12px 25px;
  color: white;
  border-radius: 25px;
  cursor: pointer;
}

/* CAROUSEL */
.carousel {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 320px;
  overflow: hidden;
  border-radius: 15px;
}

.carousel-item {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.carousel-item.active {
  opacity: 1;
}

/* CONTATO */
.contato {
  text-align: center;
  background: #0000ff;
  color: white;
}

/* WHATSAPP */
.whatsapp {
  position: fixed;
  bottom: 15px;
  right: 15px;
  background: #25d366;
  color: white;
  font-size: 26px;
  padding: 5px;
  border-radius: 50%;
  text-decoration: none;
  opacity: 0.5;
  transition: 1s;
}

.whatsapp i {
  padding: 10px;
  border: 2px solid;
  border-radius: 50%;
}

.whatsapp:hover {
  opacity: 1;
}

/* FOOTER */
.footer-turismo {
  background-image: url("img/foto.jpg");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.footer-overlay {
  padding: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.center {
  display: flex;
  align-items: center;
  gap: 50px;
}

.footer-content {
  margin: 0 auto;
  text-align: center;
}

.footer-content h2 {
  font-size: 26px;
  margin-bottom: 20px;
}

.footer-contato p {
  margin: 8px 0;
  font-size: 16px;
}

.footer-copy {
  margin-top: 25px;
  font-size: 14px;
  opacity: 0.8;
}

/* MOBILE */
@media (max-width: 768px) {

  section.resumo {
    flex-direction: column;
    text-align: center;
    padding: 60px 15px;
    height: auto;
    scroll-margin-top: 120px;
  }

  .carousel,
  .resumo img {
    width: 100%;
    max-width: 100%;
  }

  nav {
    display: flex;
    flex-direction: column;
  }

  .center {
    flex-direction: column;
  }
}
