/* Reset Básico e Fontes */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

/* Header e Navegação */
header {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

body h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #005a8d;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #005a8d;
  /* Azul do logo */
  font-weight: 600;
  font-size: 1.5rem;
}

.logo img {
  height: 60px;
  margin-right: 10px;
}

.logo {
  -webkit-tap-highlight-color: transparent;
}

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

.nav-links li {
  padding: 0 15px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #00a99d;
  /* Verde do logo */
}

.locales-options {
  border: 2px solid #000;
  border-radius: 10px;
  padding: 4px;
  font-weight: bold;
}

.locales-options option {
  border: 2px solid #00a99d;
  font-weight: bold;
}

/* DARK MODE */
.container-dark-mode {
  width: 60px;
  height: 30px;
  border: 2px solid #000;
  border-radius: 999px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  background: #fdfdfd;
  cursor: pointer;
}

.content-dark-mode {
  background: url("../img/ico/day.png") no-repeat center center;
  background-size: 22px 22px;
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow: 0px 0px 0px 2px #000;
  cursor: pointer;
  transition: 0.2s;
}

.container-dark-mode.active .content-dark-mode {
  transform: translatex(30px);
  background: url("../img/ico/night.png") no-repeat center center;
  background-size: 22px 22px;
}

#btn-mobile {
  display: none;
  cursor: pointer;
}

/* Estilo das 3 barrinhas do ícone */
#btn-mobile .bar {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px auto;
  background-color: #333;
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}

#btn-mobile,
.nav-links a {
  -webkit-tap-highlight-color: transparent;
}

/* Seção Hero */
.hero-section {
  position: relative;
  padding-top: 70px;
  height: calc(100vh - 70px);
  background: url("../img/hero.jpg") no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-section::after {
  content: "";
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.hero-section h1 {
  position: relative;
  font-size: 3.5rem;
  margin-bottom: 20px;
  z-index: 1;
}

.hero-section p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px;
  z-index: 1;
  position: relative;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  background: #ffcb05;
  color: #333;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  z-index: 1;
  position: relative;
  transition: 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  background: #e6b804;
  scale: 1.03;
}

.map-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.map-container {
  display: flex;
  align-items: center;
  gap: 100px;
}

.map-image-content {
  flex-basis: 45%;
}

.map-image-content img {
  max-width: 520px;
  border-radius: 12px;
}

.map-text-content {
  flex-basis: 55%;
}

.map-text-content h2 {
  font-size: 2.5rem;
  color: #005a8d;
  text-align: left;
}

.map-text-content > p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  text-align: left;
}

.map-features-list {
  list-style: none;
  padding: 0;
}

.map-features-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  text-align: left;
}

.map-features-list .feature-icon {
  font-size: 2rem;
  margin-right: 20px;
  margin-top: 5px;
  color: #00a99d;
}

.map-features-list h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #333;
}

.map-features-list p {
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
}

@media (max-width: 768px) {
  .map-container {
    flex-direction: column;
    text-align: center;
  }

  .map-text-content h2,
  .map-text-content > p,
  .map-features-list li {
    text-align: center;
  }

  .map-features-list li {
    flex-direction: column;
    align-items: center;
  }

  .map-features-list .feature-icon {
    margin-right: 0;
    margin-bottom: 10px;
  }
}

.content-section,
.features-section,
.gallery-section,
.carousel-section,
.events-section,
.team-section {
  padding: 80px 0;
  text-align: center;
}

.content-section p,
.carousel-section p,
.events-section p,
.team-section p {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
}

/* Seção de funcionalidades */
.features-section {
  background-color: #f9f9f9;
}

.features-section .container {
  display: flex;
  justify-content: space-around;
  gap: 30px;
  flex-wrap: wrap;
}

.feature-box {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  width: 45%;
  min-width: 300px;
}

.feature-box h3 {
  color: #00a99d;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.feature-box ul {
  list-style: none;
  text-align: left;
}

.feature-box ul li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1rem;
}

.bullet-item {
  position: relative;
  padding-left: 20px;
  list-style: none;
}

.bullet-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  background-color: #00a896;
  /* Verde */
  border-radius: 50%;
}

/* Seção da Galeria */
.gallery-section {
  background-color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Seção do Carrossel */
.carousel-section {
  background: #f9f9f9;
}

.carousel-container {
  position: relative;
  max-width: 800px;
  margin: auto;
  overflow: hidden;
  border-radius: 8px;
}

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

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  display: block;
  height: 500px;
  object-fit: cover;
}

.carousel-slide .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 90, 141, 0.7);
  color: #fff;
  padding: 15px;
  font-size: 1.2rem;
  font-weight: 600;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  color: #333;
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.carousel-button:hover {
  background-color: #fff;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Seção de Eventos */
.events-section {
  background: #fff;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.event-card {
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.event-content {
  padding: 25px;
}

.event-content h3 {
  font-size: 1.5rem;
  color: #00a99d;
  margin-bottom: 10px;
}

.event-content p {
  font-size: 1rem;
  margin: 0;
}

/* Seção da Equipe */
.team-section {
  background: #f9f9f9;
}

.team-members {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.member {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 200px;
}

.member h4 {
  color: #00a99d;
}

.member span {
  font-size: 0.9rem;
  color: #555;
}

/* Seção de contato */
.contact-section {
  padding: 80px 0;
  background: #fff;
  text-align: center;
}

#contact-form {
  max-width: 700px;
  margin: 40px auto 0;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 15px;
  border-radius: 5px;
  border: 1px solid #ddd;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: #00a99d;
}

#contact-form textarea {
  resize: none;
}

#contact-form button {
  border: none;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
}

#contact-form input.valid {
  border-color: #2ecc71;
}

#contact-form input.invalid {
  border-color: #e74c3c;
}

.error-message {
  color: #e74c3c;
  font-size: 0.9rem;
  text-align: left;
  margin-top: 5px;
  display: none;
}

/* Estilos do Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 40px;
  border-radius: 8px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  text-align: center;
  position: relative;
  animation: slide-down 0.5s ease-out;
}

@keyframes slide-down {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-button {
  color: #aaa;
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-button:hover,
.close-button:focus {
  color: #000;
}

.modal h2 {
  color: #00a99d;
  margin-bottom: 15px;
}

/* Footer */
footer {
  background: #005a8d;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

footer p {
  margin-bottom: 5px;
}

/* Video flutuante */
#frameless-video-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 280px;
  max-width: 90%;
  z-index: 1001;
  background-color: transparent;
  transition: all 0.4s ease-in-out;
}

.video-wrapper-local {
  position: relative;
  width: 100%;
  padding-top: 177.78%;
  /* Proporção 9:16 */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: visibility 0.2s, opacity 0.2s;
  visibility: visible;
  opacity: 1;
}

#frameless-video-player video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#toggle-frameless-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 20px;
  font-weight: bold;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  z-index: 1002;
  opacity: 0;
  transition: all 0.3s ease;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#frameless-video-player:hover #toggle-frameless-btn {
  opacity: 1;
}

/* Esconde o conteúdo do card */
.minimized-card-icon,
.minimized-card-text {
  display: none;
}

.minimized-card-icon img {
  width: 28px;
}

#frameless-video-player.minimized {
  width: 160px;
  height: 60px;
}

#frameless-video-player.minimized .video-wrapper-local {
  visibility: hidden;
  opacity: 0;
}

#frameless-video-player.minimized #toggle-frameless-btn {
  opacity: 1;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  border-radius: 8px;
  background-color: #005a8d;
  justify-content: flex-start;
  padding: 0 15px;
}

/* Mostra o conteúdo do card e esconde o ícone de traço */
#frameless-video-player.minimized .minimized-card-icon,
#frameless-video-player.minimized .minimized-card-text {
  display: inline;
}

#frameless-video-player.minimized .maximized-icon {
  display: none;
}

.minimized-card-icon {
  font-size: 24px;
  margin-right: 10px;
}

.minimized-card-text {
  font-size: 14px;
  font-weight: 600;
}

/* Responsividade */
/* Regras para telas de 880px ou menores */
@media (max-width: 880px) {
  header {
    box-shadow: none !important;
  }

  .carousel-button {
    background: transparent;
    color: #fff;
  }

  .carousel-button:hover {
    background-color: transparent;
    -webkit-tap-highlight-color: transparent;
  }

  /* Mostra o botão hambúrguer */
  #btn-mobile {
    display: block;
  }

  /* Anima o botão para virar um "X" quando ativo */
  #btn-mobile.active .bar:nth-child(2) {
    opacity: 0;
  }

  #btn-mobile.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(135deg);
  }

  #btn-mobile.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-135deg);
  }

  /* Estiliza o painel do menu que desliza */
  .nav-links {
    position: fixed;
    right: -100%;
    top: 70px;
    flex-direction: column;
    background-color: #fff;
    width: 100%;
    height: calc(100% - 70px);
    text-align: center;
    transition: right 0.4s ease-in-out;
    padding-top: 20px;
    gap: 10px;
  }

  body.dark-active .nav-links.active a {
    color: #f1f1f1;
  }
  body.dark-active .nav-links {
    background: #333;
  }

  /* A classe 'active' traz o menu para a tela */
  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    padding: 15px 0;
  }

  .nav-links li a {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .feature-box {
    width: 100%;
  }

  .carousel-slide img {
    height: 300px;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* --- geral --- */
  .content-section,
  .features-section,
  .gallery-section,
  .carousel-section,
  .events-section,
  .team-section,
  .contact-section {
    padding: 60px 0;
  }

  /* --- Hero --- */
  .hero-section h1 {
    font-size: 2.2rem;
    line-height: 1.3;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .content-section h2,
  .features-section h2,
  .gallery-section h2,
  .carousel-section h2,
  .events-section h2,
  .team-section h2,
  .contact-section h2 {
    font-size: 2rem;
  }

  .content-section p,
  .carousel-section p,
  .events-section p,
  .team-section p,
  .contact-section p {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  #frameless-video-player {
    width: 160px;
  }

  #frameless-video-player.minimized {
    width: 140px;
    height: 40px;
  }

  .minimized-card-text {
    font-size: 11px;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .carousel-slide img {
    height: 350px;
  }
  .modal-content {
    top: 30%;
  }
}

@media (max-width: 470px) {
  .map-image-content img {
    width: 300px;
    border-radius: 12px;
  }

  .map-container {
    gap: 40px;
  }
}

@media (max-width: 331px) {
  .container-dark-mode.active .content-dark-mode {
    transform: translateX(20px);
  }
  .content-dark-mode {
    width: 18px;
    height: 18px;
    background-size: 18px 18px;
  }

  .container-dark-mode {
    width: 42px;
    height: 24px;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    background: #fdfdfd;
  }
  .container-menu .logo img {
    width: 90px;
    height: 40px;
  }
  .locales-options {
    height: 24px;
    font-size: 12px;
    border: 1px solid #333;
    outline: none;
  }
}

/* DARK MODE CONFIG */
body.dark-active,
body.dark-active section:nth-child(even) {
  background-color: #1e1e1e;
}

body.dark-active section:nth-child(odd) {
  background-color: #121212;
}

body.dark-active header {
  background: #1e1e1e;
  box-shadow: rgba(0, 0, 0, 1) 0px 4px 6px -1px,
    rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

body.dark-active .nav-links a {
  color: #f1f1f1;
}
body.dark-active .nav-links a:hover {
  color: #00a99d;
}

body.dark-active .container-dark-mode.active .content-dark-mode {
  box-shadow: 0px 0 0 2px #f1f1f1;
  background: url("../img/ico/night-dark-mode.png") no-repeat center center;
  background-size: 18px 18px;
}

body.dark-active #btn-mobile .bar {
  background: #f1f1f1;
}

body.dark-active .locales-options {
  background-color: #333;
  color: #f1f1f1;
  border: 2px solid #f1f1f1;
}

body.dark-active .map-section h4 {
  color: #00a99d;
}

body.dark-active .container-dark-mode {
  background: #333;
  border: 2px solid #f1f1f1;
}

body.dark-active h2,
body.dark-active p {
  color: #e1e1e1;
}
body.dark-active .team-section .member,
body.dark-active .team-section .member span {
  background-color: #1e1e1e;
  color: #e1e1e1;
}

body.dark-active .team-section .member {
  box-shadow: rgba(0, 0, 0, 1) 0px 4px 6px -1px,
    rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

body.dark-active .features-section .feature-box {
  background: #121212;
  box-shadow: rgba(0, 0, 0, 1) 0px 4px 6px -1px,
    rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

body.dark-active .features-section .feature-box li {
  color: #f1f1f1;
}

body.dark-active .event-card {
  background: #121212;
  box-shadow: rgba(0, 0, 0, 1) 0px 4px 6px -1px,
    rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

body.dark-active .carousel-slide .caption {
  background-color: rgba(0, 0, 0, 0.6);
}

body.dark-active .carousel-container {
  box-shadow: rgba(0, 0, 0, 1) 0px 4px 6px -1px,
    rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

body.dark-active #contact-form input,
body.dark-active #contact-form textarea {
  background: #f1f1f1;
}

body.dark-active .footer {
  background: #1e1e1e;
}

body.dark-active #frameless-video-player.minimized #toggle-frameless-btn {
  background: #333;
  box-shadow: rgba(255, 255, 255, 0.1) 0px 0px 2px,
    rgba(255, 255, 255, 0.1) 0px 0px 2px;
}

body.dark-active .video-wrapper-local {
  box-shadow: rgba(0, 0, 0, 1) 0px 4px 6px -1px,
    rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

body.dark-active .modal-content h2 {
  color: #00a99d;
}

body.dark-active .modal-content p {
  color: #333;
}

