/**
 * CEEPT - Centro Ecológico Educativo do Paul de Tornada
 * Custom Styles
 * Extracted from inline styles for modularity
 */

/* Base Styles */
body {
  font-family: sans-serif;
  background-color: #fff;
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  color: white;
  overflow: hidden;
}

.hero-image-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-image-wrapper img.active {
  opacity: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero .content {
  position: relative;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  color: white;
}

.hero h1 {
  font-size: 3rem;
}

.viewer-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 400px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.8;
}

/* Navbar Styles */
.logo {
  height: 60px;
}

/* Dropdowns abrem com hover no desktop */
@media (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* Menu dropdown: maior, branco e com sombra */
.custom-dropdown {
  min-width: 260px;
  padding: 1rem 0;
  border: none;
  border-radius: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.custom-dropdown .dropdown-item {
  padding: 0.75rem 1.5rem;
  font-weight: 400;
  font-size: 0.95rem;
  color: #333;
}

.custom-dropdown .dropdown-item:hover {
  background-color: #f8f9fa;
  color: #006400;
}

/* Menu geral */
.navbar-nav .nav-link {
  font-weight: 400;
  font-size: 1rem;
  color: #333 !important;
}

/* Intro Section */
.intro-ceept {
  background: url('../img/bkdegrade.png') center/cover no-repeat;
  background-size: cover;
  padding: 2rem 1rem;
  color: white;
  width: 100%;
}

/* Wave Divider */
.custom-shape-divider-bottom-1755072121 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.custom-shape-divider-bottom-1755072121 svg {
    position: relative;
    display: block;
    width: calc(163% + 1.3px);
    height: 48px;
}

.custom-shape-divider-bottom-1755072121 .shape-fill {
    fill: #FFFFFF;
}

/* Three Blocks Section */
.bloco-wrapper {
  overflow: hidden;
  height: 360px;
  position: relative;
}

.bloco-img {
  width: 100%;
  height: 100%;
  position: relative;
}

.bloco-img-inner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.texto-hover {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 2;
  color: white;
  transition: opacity 0.4s ease;
}

.bloco-img h2 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.bloco-img p {
  font-size: 1rem;
  margin: 0;
}

.bloco-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.4);
  z-index: 1;
  transition: background-color 0.4s;
}

.bloco-img:hover .bloco-img-inner {
  transform: scale(1.1);
}

.bloco-img:hover .texto-hover {
  opacity: 0;
}

.bloco-img:hover::after {
  background-color: rgba(0,0,0,0.1);
}

.texto-hoverout {
  position: absolute;
  bottom: 0rem;
  z-index: 2;
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 0.75rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bloco-img:hover .texto-hoverout {
  opacity: 1;
}

.texto-hoverout p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Video Section */
.video-section {
  position: relative;
  height: 80vh;
  overflow: hidden;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: blur(3px) brightness(50%);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}

.video-content {
  position: relative;
  z-index: 2;
}

.play-button {
  font-size: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 50%;
}

/* Activities Cards */
.cardTitlecolor {
  color: #4e7b8a;
}

/* Stats Section */
.stats .icon i {
  color: white;
}

/* Footer */
footer {
  background-color: #f2f2f2;
  color: #111;
  font-size: 0.95rem;
  padding: 3rem 1rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

footer h5 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
}

footer p, footer a {
  font-size: 0.95rem;
  color: #111;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer .row.text-center.text-md-start.align-items-center img {
  max-height: 55px;
  object-fit: contain;
  margin: auto;
}

footer .row.text-center.text-md-start.align-items-center {
  border-bottom: 1px solid #ccc;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

footer .d-flex a {
  font-weight: normal;
  margin-right: 1rem;
}

footer .bi {
  margin-right: 0.3rem;
  vertical-align: middle;
}

footer .img-fluid {
  object-fit: contain;
  filter: grayscale(0%);
}

/* Utility Classes */
.section {
  padding: 4rem 1rem;
}

.section.dark {
  background: #222;
  color: #fff;
}

.custom-shadow {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 0 2px rgba(255, 255, 255, 0.07) !important;
}

.shadow-contrast {
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.15),
    0 0 2px rgba(255, 255, 255, 0.06);
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  #atividades .card {
    margin-bottom: 3rem;
  }

  .logobottom {
    max-width: 100px;
  }

  .social-links-mobile {
    flex-direction: row !important;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Video Modal Responsive */
@media (min-width: 575.98px) {
  /* 16:9 no desktop - já é o padrão do Bootstrap */
}

@media (max-width: 575.98px) {
  #fccnModal .ratio {
    --bs-aspect-ratio: 75%; /* 4:3 */
  }
}

@media (max-width: 360px) {
  #fccnModal .ratio {
    --bs-aspect-ratio: 100%; /* 1:1 */
  }
}
  .map-embed {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3; /* ajusta se quiseres 16/9, etc. */
  }
  .map-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }