/* Entrada Animada */
.intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #19afae 0%, #16999a 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeOut 1.6s ease-in-out 1.5s forwards;
}

.intro-logo {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: logoEntrance 1.7s ease-out;
  margin-bottom: 30px;
}

.intro-logo img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.intro-text {
  color: white;
  margin-top: -30px;
  font-size: 42px;
  font-weight: bold;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  animation: textEntrance 0.8s ease-out 0.5s both;
  font-family: 'Arial', sans-serif;
}

.main-content {
  opacity: 1;
  animation: showMainContent 0.8s ease-out 3.2s forwards;
}

@keyframes logoEntrance {
  0% {
    transform: scale(0) rotate(180deg);
    opacity: 1;
  }
  60% {
    transform: scale(1.2) rotate(-10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes textEntrance {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes showMainContent {
  to {
    opacity: 1;
  }
}

/* CSS Original do Site */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #ebebeb 0%, #f5f5f5 100%);
  color: #333;
  line-height: 1.6;
}

header {
  background: linear-gradient(135deg, #19afae 0%, #16999a 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 15px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
  animation: slideInLeft 0.8s ease-out;
}

.logo-container img {
  height: 50px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.logo-container h1 {
  font-size: 24px;
  margin: 0;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

nav {
  display: flex;
  flex: 1;
  justify-content: right;
  gap: 15px;
  flex-wrap: wrap;
  animation: slideInRight 0.8s ease-out;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 12px 18px;
  border-radius: 25px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.banner {
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 1s ease-out;
}

.banner img {
  width: 95%;
  max-height: 670px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
}

.banner img:hover {
  transform: scale(1.02) translateY(-5px);
}

.grid-container {
  display: block;
  width: 90%;
  margin: 60px auto;
}

#historia .card p{
  margin-top: -10px;
  /* Melhorando o espaçamento e quebra de linha em textos longos */
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.section {
  margin-bottom: 60px;
  display: flex;
  justify-content: center;
  animation: slideInUp 0.6s ease-out;
}

.card-row {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.card {
  background: linear-gradient(135deg, #19afae 0%, #16999a 100%);
  color: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 8px 25px rgba(25, 175, 174, 0.3);
  flex: 1;
  min-width: 300px;
  max-width: 32%;
  font-size: 14pt;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  /* Garantindo que o texto não seja cortado */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00d4aa, #00a693);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(25, 175, 174, 0.4);
}

.card h2 {
  color: #ffffff;
  font-size: 22pt;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 15px;
  margin-bottom: 25px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Seção de fotos melhorada - 3x3 grid ocupando 90% da largura */
#fotos .card {
  width: 90%;
  max-width: none;
  margin: 0 auto;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 25px;
  width: 100%;
}

.photo-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.4s ease;
  cursor: pointer;
}

.photo-grid img:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  filter: brightness(1.1);
}

/* Estilos para a seção de patrocinadores e parceiros */
.sponsors-partners {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 25px;
  width: 100%;
}

.sponsors-partners img {
  height: 100px;
  max-width: 200px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.sponsors-partners img:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
}

#contato .card a {
  color: #00d4aa;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

#contato .card a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 212, 170, 0.5);
}

footer {
  background: linear-gradient(135deg, #19afae 0%, #16999a 100%);
  color: white;
  text-align: center;
  padding: 30px;
  margin-top: 60px;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsividade Completa */

/* Tablets grandes e laptops pequenos */
@media (max-width: 1200px) {
  .grid-container {
    width: 95%;
  }
  
  .card {
    padding: 35px;
    font-size: 13.5pt;
  }
  
  .photo-grid img {
    height: 280px;
  }
  
  .sponsors-partners {
    gap: 25px;
  }
  
  .sponsors-partners img {
    height: 90px;
    max-width: 180px;
  }
}

/* Tablets */
@media (max-width: 968px) {
  .banner img {
    width: 98%;
    max-height: 500px;
  }
  
  .card {
    min-width: 280px;
    max-width: 45%;
    padding: 32px;
  }
  
  .card h2 {
    font-size: 20pt;
  }
  
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .photo-grid img {
    height: 240px;
  }
  
  #fotos .card {
    width: 95%;
  }
  
  .sponsors-partners {
    gap: 20px;
  }
  
  .sponsors-partners img {
    height: 80px;
    max-width: 160px;
  }
  
  .intro-text {
    font-size: 36px;
  }
}

/* Tablets pequenos e celulares grandes */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
  }
  
  .logo-container {
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
  }
  
  .logo-container h1 {
    font-size: 22px;
  }
  
  nav {
    justify-content: center;
    width: 100%;
    gap: 10px;
  }
  
  nav a {
    padding: 10px 15px;
    font-size: 14px;
  }
  
  .banner {
    padding: 30px 15px;
  }
  
  .banner img {
    width: 100%;
    max-height: 400px;
  }
  
  .grid-container {
    width: 95%;
    margin: 40px auto;
  }
  
  .section {
    margin-bottom: 40px;
  }
  
  .card-row {
    flex-direction: column;
    gap: 20px;
  }
  
  .card {
    max-width: 100%;
    min-width: auto;
    padding: 30px;
    font-size: 14pt;
    /* Melhorando a quebra de linha para textos longos */
    line-height: 1.7;
  }
  
  .card h2 {
    font-size: 19pt;
    margin-bottom: 20px;
  }
  
  /* Correção específica para o card História */
  #historia .card {
    padding: 25px 20px;
  }
  
  #historia .card p {
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: justify;
  }
  
  #fotos .card {
    width: 100%;
  }
  
  .photo-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .photo-grid img {
    height: 250px;
  }
  
  /* Correção para a seção de parceiros */
  .sponsors-partners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    align-items: center;
    justify-items: center;
    width: 100%;
  }
  
  .sponsors-partners img {
    width: 100%;
    max-width: 120px;
    height: auto;
    min-height: 60px;
    max-height: 80px;
  }

  .intro-text {
    font-size: 28px;
  }

  .intro-logo {
    width: 130px;
    height: 130px;
  }

  .intro-logo img {
    width: 110px;
    height: 110px;
  }
  
  footer {
    padding: 25px 20px;
    margin-top: 40px;
  }
  
  footer p {
    font-size: 14px;
  }
}

/* Celulares */
@media (max-width: 600px) {
  .logo-container h1 {
    font-size: 20px;
  }
  
  .logo-container img {
    height: 45px;
  }
  
  nav {
    gap: 8px;
  }
  
  nav a {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .banner {
    padding: 25px 10px;
  }
  
  .banner img {
    max-height: 350px;
  }
  
  .card {
    padding: 25px 20px;
    font-size: 13pt;
    line-height: 1.8;
  }
  
  .card h2 {
    font-size: 18pt;
  }
  
  /* Melhorias específicas para História em celulares */
  #historia .card {
    padding: 20px 15px;
  }
  
  #historia .card p {
    font-size: 13pt;
    line-height: 1.7;
    margin-bottom: 12px;
    text-align: justify;
  }
  
  .photo-grid img {
    height: 220px;
  }
  
  /* Melhorias para parceiros em celulares */
  .sponsors-partners {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 10px;
  }
  
  .sponsors-partners img {
    max-width: 100px;
    max-height: 70px;
  }
  
  .intro-text {
    font-size: 24px;
  }

  .intro-logo {
    width: 120px;
    height: 120px;
  }

  .intro-logo img {
    width: 100px;
    height: 100px;
  }
}

/* Celulares pequenos */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  
  header {
    padding: 15px 10px;
  }
  
  .logo-container {
    gap: 10px;
  }
  
  .logo-container h1 {
    font-size: 18px;
  }
  
  .logo-container img {
    height: 40px;
  }
  
  nav {
    flex-wrap: wrap;
    gap: 6px;
  }
  
  nav a {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .banner {
    padding: 20px 10px;
  }
  
  .banner img {
    max-height: 300px;
  }
  
  .grid-container {
    width: 98%;
    margin: 30px auto;
  }
  
  .section {
    margin-bottom: 30px;
  }
  
  .card {
    padding: 20px 15px;
    font-size: 12pt;
    border-radius: 12px;
  }
  
  .card h2 {
    font-size: 17pt;
    margin-bottom: 15px;
  }
  
  /* Ajustes específicos para História em telas muito pequenas */
  #historia .card {
    padding: 18px 12px;
  }
  
  #historia .card p {
    font-size: 12pt;
    line-height: 1.6;
    margin-bottom: 10px;
  }
  
  .photo-grid {
    gap: 12px;
  }
  
  .photo-grid img {
    height: 200px;
    border-radius: 10px;
  }
  
  /* Ajustes para parceiros em telas muito pequenas */
  .sponsors-partners {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 5px;
  }
  
  .sponsors-partners img {
    max-width: 90px;
    max-height: 60px;
    padding: 5px;
  }

  .intro-text {
    font-size: 20px;
    margin-top: -20px;
  }

  .intro-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
  }

  .intro-logo img {
    width: 80px;
    height: 80px;
  }
  
  footer {
    padding: 20px 15px;
  }
  
  footer p {
    font-size: 13px;
  }
  
  #contato .card p {
    font-size: 13pt;
    margin-bottom: 15px;
  }
}

/* Celulares muito pequenos */
@media (max-width: 360px) {
  .logo-container h1 {
    font-size: 16px;
  }
  
  nav a {
    padding: 5px 8px;
    font-size: 11px;
  }
  
  .card {
    padding: 18px 12px;
    font-size: 11pt;
  }
  
  .card h2 {
    font-size: 16pt;
  }
  
  /* Ajustes para História em telas extremamente pequenas */
  #historia .card {
    padding: 15px 10px;
  }
  
  #historia .card p {
    font-size: 11pt;
    line-height: 1.5;
  }
  
  .photo-grid img {
    height: 180px;
  }
  
  /* Ajustes para parceiros em telas extremamente pequenas */
  .sponsors-partners {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .sponsors-partners img {
    max-width: 80px;
    max-height: 50px;
  }
  
  .intro-text {
    font-size: 18px;
  }
  
  .intro-logo {
    width: 90px;
    height: 90px;
  }

  .intro-logo img {
    width: 70px;
    height: 70px;
  }
}

/* Orientação paisagem para celulares */
@media (max-height: 500px) and (orientation: landscape) {
  .intro-screen {
    padding: 20px;
  }
  
  .intro-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }
  
  .intro-logo img {
    width: 60px;
    height: 60px;
  }
  
  .intro-text {
    font-size: 20px;
    margin-top: -10px;
  }
  
  .banner img {
    max-height: 250px;
  }
  
  .photo-grid img {
    height: 150px;
  }
  
  /* Ajustes para parceiros em orientação paisagem */
  .sponsors-partners {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }
  
  .sponsors-partners img {
    max-height: 40px;
  }
}

      .intro-text {
        font-size: 20px;
        margin-top: -20px;
      }

      .intro-logo {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
      }

      .intro-logo img {
        width: 80px;
        height: 80px;
      }
      
      footer {
        padding: 20px 15px;
      }
      
      footer p {
        font-size: 13px;
      }
      
      #contato .card p {
        font-size: 13pt;
        margin-bottom: 15px;
      }
 
    
    /* Celulares muito pequenos */
    @media (max-width: 360px) {
      .logo-container h1 {
        font-size: 16px;
      }
      
      nav a {
        padding: 5px 8px;
        font-size: 11px;
      }
      
      .card {
        padding: 18px 12px;
        font-size: 11pt;
      }
      
      .card h2 {
        font-size: 16pt;
      }
      
      .photo-grid img {
        height: 180px;
      }
      
      .intro-text {
        font-size: 18px;
      }
      
      .intro-logo {
        width: 90px;
        height: 90px;
      }

      .intro-logo img {
        width: 70px;
        height: 70px;
      }
    }
    
    /* Orientação paisagem para celulares */
    @media (max-height: 500px) and (orientation: landscape) {
      .intro-screen {
        padding: 20px;
      }
      
      .intro-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
      }
      
      .intro-logo img {
        width: 60px;
        height: 60px;
      }
      
      .intro-text {
        font-size: 20px;
        margin-top: -10px;
      }
      
      .banner img {
        max-height: 250px;
      }
      
      .photo-grid img {
        height: 150px;
      }
    }
