body, html {
  margin: 0;
  padding: 0;
  font-family: Roboto, sans-serif;
  color: black;
  background-color: white;
  max-width: 100%;
  scroll-behavior: smooth;
}

@media(max-width: 768px){
  body, html{
    overflow-x: hidden;
  }
}

* {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;         
  text-decoration: none;  
}

#loading {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loading.fade-out {
  animation: fadeBlur 1s ease forwards;
}

@keyframes fadeBlur {
  0%   { opacity: 1; filter: blur(0px); }
  100% { opacity: 0; filter: blur(10px); }
}

.logo-draw {
    width: 50%;
    height: 50%;
}

.logo-draw path {
    stroke-dasharray: 11194.4892578125;   
    stroke-dashoffset: 11194.4892578125; 
    animation: draw 5s linear forwards infinite;
    filter: drop-shadow(0 0 6px #ff8000);
}

@keyframes draw {
    0%   { stroke-dashoffset: 11194.4892578125; }
    70%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 11194.4892578125; }
}

main{
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  #home-img {
    left: 0; 
    width: 100%; 
  }
}

img.logos/logo-janela {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

/* MAIN */

#home {
  display: flex;
  align-items: center;   
  justify-content: center; 
}

#main-text{
  position: absolute; 
  z-index: 1;
  color: white; 
  text-align: center; 
  padding: 10px; 
  /* top: 70%;
  left: 45%; */
}

#main-title{
  background-color: white;
  color:#ff7e00;
  box-shadow: 0px 0px 80px black;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 25px;
  animation: pulse 1.3s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 153, 0, 0.89); }
  70% { box-shadow: 0 0 0 20px rgba(255, 126, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 126, 0, 0); }
}

#main-text >a {
  color:white;
  text-decoration: none;
}

#main-text > p{
  box-shadow: 0px 0px 80px black;
}

#home-img {
  position: relative;
  left: 0; 
  top: 0;
  width: 100%;
  max-width: 100%; 
  height: auto;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
}

#background-box {
  position: absolute;
  top: 10;
  right: 0;
  margin: 0;
  background-image: url("../images/public/orange-background.png");
  height: 35em;
  width: 100%;
  z-index: -5;
}

/* SECTION 1 PHOENIX */
#a-phoenix{
  position: relative; 
  z-index: 0;
  overflow-x: clip;
}

.heading-with-lines {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4vw; 
  margin-top:2vw;
  font-weight: bold;
  position: relative;
  text-align: center;
}

.heading-with-lines::before,
.heading-with-lines::after {
  content: "";
  flex: 1;
  height: 3px; 
  background-color: #ccc;
  margin: 10px 10px; 
}

.faded-grey-logo {
  width: 40vw;
  position: absolute;
  z-index: -1; 
  opacity: 0.2;
  transform: translate(80vw, -3vw); 
}

.phoenix-container {
  display: flex;
  position: relative; 
  z-index: 0;
  align-items: center;
  gap:20px;
  max-width: 97%;
  margin: 40px auto;
  padding: 20px 40px;
  font-family: 'Roboto';
}

.phoenix-big-block{
  width:48%;
}

.phoenix-text {
  padding: 15px 15px 10px 0px;
  border-radius: 12px;
}

.phoenix-text p {
  font-size: 18px;
  line-height: 1.6;
}

.phoenix-stats {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  width: 100%; 
  margin-top: 15px;
  gap: 15px;
}


.phoenix-stats a{
  text-decoration: none;
  color:black;
}

.stat-box {
  flex: 1; 
  text-align: center;
  /* padding: 15px; */
  padding: 3.4%;
  background: #eeeeee;
  border-radius: 12px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  min-width: 80px; 
  transition: transform 0.2s ease-in-out;
}

.stat-box:hover {
  background-color: rgb(255, 167, 2);
  color: white;
  transition: all 0.3s ease;
}

.stat-box:hover .estatistica{
  color:white;
  transition: all 0.4s ease;  
}

.estatistica {
  color: #ff7e00;
  font-size: 3.3vw;
  transition: all 0.3s ease;
}

.phoenix-image {
  width: 50%;
  overflow: hidden;
}

.phoenix-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  filter: contrast(1.2) saturate(1.3) brightness(0.9) sepia(0.08);
}

.phoenix-container2 {
  background-color: #ff7e00;
  clip-path: polygon(0 10%, 50% 0, 100% 10%, 100% 90%, 50% 100%, 0 90%);
  max-width: 97%;
  margin: 40px auto 70px;
  padding: 80px 40px 100px;
  font-family: 'Roboto';
}

.phoenix-container2 h2{
   font-size: 35px;
   text-align: center;
   margin:50px 0;
}

.valores-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:20px 250px ;
  text-align: center;
}

.valor{
  display: flex;
  flex-direction: column;
  align-items: center; 
  text-align: center; 
  width: 8vw;
  gap: 10px;
}

.valor h1{
  font-size: 25px;
  margin:15px 0;
  color:white;
}

.img-valor{
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
  background-color: white;
  border-radius: 100%;
  width: 100%;
}

#missao{
  padding:20px 10% 0;
  text-align: center;
  font-size: 21px;
}

#eventos-texto{
  padding:30px 10%;
  text-align: center;
  font-size: 18px;
}

.galeria {
  column-count: 3;
  column-gap: 20px;
  padding: 20px;
}

.item-galeria {
  position: relative;
  margin-bottom: 20px;
  break-inside: avoid;  
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.item-galeria img {
  width: 100%;
  display: block;
}

.item-galeria p{
  padding:0 10% 5px 0;
}

.legenda-item {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 10px;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  background:linear-gradient(to top, rgba(0, 0, 0, 0.7) 30%, transparent 100%);
}

.item-galeria:hover .legenda-item {
  opacity: 1;
}

.popup-carousel {
opacity: 0;
  pointer-events: none; 
  transition: opacity 0.4s ease;
  display: flex;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
}

.popup-carousel.show {
  opacity: 1;
  pointer-events: auto; /* enable interaction */
}

.popup-carousel img {
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.popup-carousel p {
  color: white;
  margin-top: 10px;
  font-size: 1.2rem;
  max-width: 80vw;
  text-align: left;
}

.arrow {
  position: absolute;
  top: 50%;
  font-size: 3rem;
  color: white;
  padding: 10px;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
  -webkit-tap-highlight-color: transparent;
}

.left-arrow {
  left: 20px;
}

.right-arrow {
  right: 20px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) and (max-width: 1024px) {
  #main-text{
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .heading-with-lines {
    font-size: 6vw;
  }

  .estatistica {
    font-size: 5vw;
  }

  .valor {
    width: 14vw;
  }

  .valores-container {
    flex-wrap: wrap;
    justify-content: center;
    gap:45px;
    margin: 20px 140px;
  }

  #missao {
    padding: 30px 10%;
  }

  .phoenix-container2 {
    padding: 60px 20px 80px;
  }
}

@media (max-width: 767px) {
  #main-title{
    display: none;
  }

  #main-text{
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width:fit-content;
  }
  #home{
    justify-content: center;
  }

  .galeria {
    column-count: 2;
    padding: 10px;
  }

  .phoenix-text p {
    font-size: 16px;
  }

  .estatistica {
    font-size: 6vw;
  }

  .valores-container{
    flex-wrap: wrap;
    justify-content: center;
    gap:45px;
    margin: 20px 0px;
  }

  .valor {
    width: 18vw;
  }

  #missao {
    padding: 30px 5%;
  }

  #eventos-texto {
    font-size: 18px;
    padding: 20px 15px 10px;
  }

  .heading-with-lines {
    font-size: 7vw;
    margin-top: 4vw;
  }

    .phoenix-big-block{
    width:95%;
    align-items: center;
    justify-content: center;
  }

  .phoenix-container {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }

    .phoenix-container2 h1{
    font-size: 16px;
  }

  .phoenix-text, .phoenix-image {
      align-items: center;
      justify-content: center;
      width:auto;
  }

  .phoenix-stats {
      justify-content: center;
      gap: 15px;
  }
}

@media (max-width: 480px) {

  #main-text{
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .galeria {
    column-count: 2;
    padding: 5px;
  }
  .item-galeria p{
    text-align: center;
    font-size: 12px;
  }
  .estatistica {
    font-size: 7vw;
  }

  .stat-box{
    min-width: 0;

  }

  .phoenix-container {
    padding: 10px 15px;
  }

  .phoenix-container2 {
    padding: 60px 10px 60px;
  }

  .phoenix-container2 h1{
    font-size: 16px;
  }

  .valores-container{
    margin: 20px 5px;
  }

  #missao{
    font-size: 18px;
    padding: 30px 3% 100px;

  }

  .heading-with-lines::before,
  .heading-with-lines::after {
    margin: 5px;
  }
}