* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 30px rgba(0,0,0,0.15);
}

nav img {
  height: 80px;
  width: auto;
  margin-right: 2rem;
  transition: height 0.3s ease;
}

nav a[href="/"]:has(img) {
  position: absolute;
  left: calc((100% - 1200px) / 2);
  display: inline-flex;
  align-items: center;
  padding: 0;
  width: auto;
  height: auto;
  pointer-events: all;
}

nav a[href="/"]:has(img)::after {
  display: none;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  max-width: 1200px;
  margin: 0;
}

nav li {
  margin: 0 2rem;
  display: flex;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  transition: color 0.3s ease;
  cursor: pointer;
  display: inline-block;
  padding: 0.8rem 0;
}

nav a:hover {
  color: #d4001c;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #d4001c, #ff4444);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a.active {
  color: #d4001c;
}

nav a.active::after {
  width: 100%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: absolute;
  right: 2rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
  height: calc(100vh - 100px);
  margin-top: 100px;
  /*background-color: #1a1a1a;*/
  background-image: url('../img/hero.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  background-color: #fdfdfd;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*background: rgba(0, 0, 0, 0.3);*/
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
  letter-spacing: 2px;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  padding: 1rem 3rem;
  background: white;
  color: #d4001c;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  cursor: pointer;
  border: none;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.cta-button-about {
  margin-top: 80px;
  display: inline-block;
  padding: 1rem 3rem;
  background:#d4001c ;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
.cta-button-about:hover {

  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* Sections */
section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  font-size: 3rem;
  margin-bottom: 3rem;
  text-align: center;
  color: #d4001c;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #d4001c, #ff4444);
  border-radius: 2px;
}

/* Sobre Nós Section */
.sobre-content {
  display: flex;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sobre-text {
  width: 50%;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555;
}

.sobre-image {
  width: 50%;
  /*height: 400px;*/
  background: linear-gradient(135deg, #d4001c, #ff4444);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(212, 0, 28, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}
.sobre-image img {
  width: 100%;
}

.sobre-image:hover {
  transform: scale(1.05);
}

/* Eventos Carousel Section */
.eventos-section {
  padding: 6rem 2rem;
  background: white;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

.carousel-track-container {
  overflow: hidden;
  padding: 2rem 0;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s ease;
}

.evento-card {
  min-width: calc(33.333% - 1.5rem);
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.evento-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(212, 0, 28, 0.2);
  border-color: #d4001c;
}

.evento-image {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border-bottom: 2px solid #e0e0e0;
}
.evento-image img {
  width: 100%;
}

.evento-info {
  padding: 2rem;
  text-align: center;
}

.evento-info h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.evento-info p {
  color: #666;
  line-height: 1.6;
  font-size: 1rem;
}

.ver-mais-btn {
  display: block;
  width: calc(100% - 4rem);
  margin: 0 2rem 2rem 2rem;
  padding: 0.8rem 2rem;
  background: white;
  color: #333;
  border: 2px solid #333;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ver-mais-btn:hover {
  background: #d4001c;
  color: white;
  border-color: #d4001c;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 2px solid #d4001c;
  color: #d4001c;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.carousel-btn:hover {
  background: #d4001c;
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: #d4001c;
  width: 30px;
  border-radius: 6px;
}

/* Statistics Section */
.stats-section {
  padding: 6rem 2rem;
  background: white;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 20px;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: grayscale(100%);
}

.stat-number {
  font-size: 4rem;
  font-weight: bold;
  color: #d4001c;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: #333;
  font-weight: 500;
  border-top: 2px solid #333;
  padding-top: 0.8rem;
  margin-top: 0.8rem;
}

/* Parceiros Section */
#parceiros {
  /*background: linear-gradient(135deg, #f5f5f5 0%, #e9e9e9 100%);*/
  padding: 6rem 2rem;
}

.parceiros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.parceiro-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.parceiro-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(212, 0, 28, 0.2);
}

.parceiro-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #d4001c, #ff4444);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: bold;
}

.parceiro-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.parceiro-card p {
  color: #666;
  line-height: 1.6;
}

/* Sobre Nós Page Styles */
.sobre-page {
  padding-top: 100px;
  min-height: 100vh;
}

.timeline-section {
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.timeline-header {
  text-align: center;
  margin-bottom: 4rem;
}

.timeline-header h2 {
  font-size: 2.5rem;
  color: #d4001c;
  margin-bottom: 1rem;
}

.timeline-container {
  position: relative;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 40px;
  transform: none;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #d4001c, #ff4444);
  top: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 4rem;
  position: relative;
}

.timeline-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.timeline-year {
  background: white;
  border: 4px solid #d4001c;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: #d4001c;
  z-index: 10;
  position: relative;
}

.timeline-year.empty{
  background: #d4001c;
}

.timeline-image {
  width: 100%;
  max-width: 350px;
  height: auto;
  background: #f0f0f0;
  border: 2px solid #ddd;
  display: block;
}

.timeline-text {
  max-width: 500px;
}

.timeline-text h3 {
  color: #d4001c;
  margin-bottom: 0.5rem;
}

.timeline-text p {
  line-height: 1.8;
  color: #555;
}

/* Team Sections */
.team-section {
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.team-section h3 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 3rem;
  text-align: center;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 4rem;
  justify-content: center;
}

.team-member {
  text-align: center;
  width: 200px;
}

.member-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #f0f0f0;
  border: 3px solid #d4001c;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.member-name {
  font-weight: bold;
  margin-bottom: 0.3rem;
  color: #333;
}

.member-role {
  color: #666;
  font-size: 0.9rem;
}

/* Partners Section */
.partners-section {
  padding-top: calc(100px + 4rem);
  padding-bottom: 4rem;
  padding-left: 2rem;
  padding-right: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.partners-section h2 {
  font-size: 2.5rem;
  color: #d4001c;
  margin-bottom: 3rem;
  text-align: center;
}

.partners-section h3 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 3rem;
  text-align: center;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 4rem;
  justify-content: center;
}

.partner-item {
  text-align: center;
  width: 200px;
}

.partner-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #f0f0f0;
  border: 3px solid #d4001c;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
}

.partner-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-photo-placeholder {
  background: #f0f0f0;
}

.partner-name {
  font-weight: bold;
  margin-bottom: 0.3rem;
  color: #333;
}

.partner-city {
  color: #666;
  font-size: 0.9rem;
}

/* Contactos Page Styles */
.contactos-page {
  padding-top: 80px;
  min-height: 100vh;
  background: #f8f9fa;
}

.contactos-hero {
  background: linear-gradient(135deg, #d4001c 0%, #8b0000 100%);
  color: white;
  text-align: center;
  padding: 5rem 2rem;
}

.contactos-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.contactos-hero p {
  font-size: 1.3rem;
  opacity: 0.95;
}

.contactos-content {
  padding: 4rem 2rem;
}

/* Top section: 3 cards + form side by side */
.contactos-top-section {
  max-width: 1400px;
  margin: 0 auto 4rem auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contactos-info-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Bottom section: 2 cards side by side */
.contactos-bottom-section {
  max-width: 1400px;
  margin: 0 auto 4rem auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contactos-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.contactos-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(212, 0, 28, 0.15);
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-card h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.contact-card p {
  color: #666;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.contact-card p.secondary {
  color: #999;
}

.contact-card a {
  color: #d4001c;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: #8b0000;
  text-decoration: underline;
}

.social-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  color: white;
}

.social-btn span {
  font-size: 1.5rem;
}

.social-btn.facebook {
  background: #1877f2;
  color: white;
}

.social-btn.facebook:hover {
  background: #145dbf;
  transform: translateX(5px);
}

.social-btn.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.instagram:hover {
  transform: translateX(5px);
  opacity: 0.9;
}

.social-btn.youtube {
  background: #ff0000;
  color: white;
}

.social-btn.youtube:hover {
  background: #cc0000;
  transform: translateX(5px);
}

/* Contact Form */
.contactos-form-section {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.form-container {
  padding: 3rem;
}

.form-container h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 0.5rem;
  text-align: left;
}

.form-container h2::after {
  display: none;
}

.form-subtitle {
  color: #666;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #d4001c;
  box-shadow: 0 0 0 3px rgba(212, 0, 28, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: 100%;
  padding: 1.2rem 2rem;
  background: linear-gradient(135deg, #d4001c, #ff4444);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 0, 28, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Map Section */
.map-section {
  max-width: 1400px;
  margin: 0 auto;
}

.map-section h2 {
  margin-bottom: 2rem;
  color: #333;
}

.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
/* Footer */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 3rem 2rem;
}

footer p {
  margin-bottom: 1rem;
}

.social-links {
  margin-top: 1.5rem;
}

.social-links a {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #d4001c;
}

/* Responsive */
@media (max-width: 768px) {
  /* Base font size for mobile */
  body {
    font-size: 16px;
    line-height: 1.7;
  }

  /* Mobile Navigation */
  .hamburger {
    display: flex;
  }

  nav {
    padding: 1.2rem 2rem;
    min-height: 90px;
  }

  nav img {
    height: 60px;
    margin-right: 0;
  }

  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem 2rem;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 999;
  }

  nav ul.active {
    right: 0;
  }

  nav li {
    margin: 1rem 0;
    width: 100%;
  }

  nav a {
    font-size: 1.4rem;
    width: 100%;
    display: block;
    padding: 0.5rem 0;
  }

  nav a[href="/"]:has(img) {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
  }

  /* Hero Section Mobile */
  .hero {
    height: 50vh;
    min-height: 400px;
    margin-top: 90px;
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }

  .cta-button {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }

  /* Sections Mobile */
  section {
    padding: 3rem 1.5rem;
  }

  h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  h2::after {
    width: 80px;
    height: 3px;
    bottom: -10px;
  }

  h3 {
    font-size: 1.4rem;
  }

  p {
    font-size: 1rem;
    line-height: 1.7;
  }

  /* Sobre Nós Section Mobile */
  .sobre-content {
    flex-direction: column;
    gap: 2rem;
  }

  .sobre-text {
    width: 100%;
    font-size: 1rem;
    line-height: 1.8;
  }

  .sobre-text p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .sobre-image {
    width: 100%;
    border-radius: 15px;
  }

  .cta-button-about {
    margin-top: 1.5rem;
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }

  /* Timeline Mobile - Simplificado e Otimizado */
  .timeline-section {
    padding: 2rem 1rem;
  }

  .timeline-header h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .timeline-container {
    padding: 1rem 0;
  }

  .timeline-line {
    left: 20px;
    width: 3px;
  }

  .timeline-item {
    display: block !important;
    grid-template-columns: 1fr !important;
    padding-left: 65px;
    margin-bottom: 2.5rem;
    gap: 0;
    position: relative;
  }

  .timeline-content {
    display: block !important;
    grid-template-columns: 1fr !important;
    gap: 0;
  }

  .timeline-year {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    font-size: 0.85rem;
    border-width: 3px;
    margin: 0;
  }

  .timeline-text {
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .timeline-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #d4001c;
  }

  .timeline-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
  }

  .timeline-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-top: 0.5rem;
    border-radius: 8px;
  }

  .team-grid {
    justify-content: center;
  }

  .team-member {
    width: 150px;
  }

  .partners-grid {
    justify-content: center;
  }

  .partner-item {
    width: 150px;
  }

  /* Statistics Section Mobile */
  .stats-section {
    padding: 3rem 1rem;
  }

  .stats-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
    border-radius: 15px;
  }

  .stat-card {
    padding: 1.5rem 1rem;
  }

  .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
  }

  .stat-number {
    font-size: 3rem;
    margin-bottom: 0.5rem;
  }

  .stat-label {
    font-size: 0.95rem;
    padding-top: 0.6rem;
    margin-top: 0.6rem;
  }

  /* Eventos Carousel Section Mobile */
  .eventos-section {
    padding: 3rem 1rem;
  }

  .carousel-container {
    padding: 0 35px;
  }

  .carousel-track-container {
    padding: 1.5rem 0;
  }

  .carousel-track {
    gap: 1rem;
  }

  .evento-card {
    min-width: 100%;
    border-radius: 12px;
  }

  .evento-image {
    height: 250px;
  }

  .evento-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .evento-info {
    padding: 1.5rem;
  }

  .evento-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }

  .evento-info p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 1.3rem;
    border-width: 2px;
  }

  .carousel-btn.prev {
    left: 0;
  }

  .carousel-btn.next {
    right: 0;
  }

  .carousel-dots {
    gap: 0.7rem;
    margin-top: 1.5rem;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }

  .carousel-dot.active {
    width: 25px;
  }
  .contactos-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }

  .contactos-hero p {
    font-size: 1.3rem;
  }

  .contactos-hero {
    padding: 3rem 1.5rem;
  }

  .contactos-content {
    padding: 2rem 1rem;
  }

  .contactos-top-section {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .contactos-info-top {
    display: flex !important;
    flex-direction: column !important;
    order: 2;
    width: 100%;
  }

  .contactos-form-section {
    order: 1;
    width: 100%;
  }

  .contactos-bottom-section {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .contactos-container {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  .contact-card {
    padding: 1.5rem;
    width: 100%;
    max-width: 100%;
  }

  .contact-icon {
    font-size: 2rem;
  }

  .contact-card h3 {
    font-size: 1.3rem;
  }

  .contactos-form-section {
    width: 100%;
    max-width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-container {
    padding: 2rem 1.5rem;
  }

  .form-container h2 {
    font-size: 1.5rem;
  }

  .map-section {
    padding: 0 1rem;
  }

  .map-section h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  .map-container iframe {
    height: 300px;
  }

  .social-buttons {
    gap: 0.8rem;
  }

  .social-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
  }

}

/* Extra mobile styles for contactos */
@media (max-width: 992px) {
  .contactos-top-section {
    display: flex !important;
    flex-direction: column !important;
  }

  .contactos-bottom-section {
    display: flex !important;
    flex-direction: column !important;
  }

  .contactos-info-top {
    display: flex !important;
    flex-direction: column !important;
  }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Hero Section Tablet */
  .hero h1 {
    font-size: 3.5rem;
  }

  .hero p {
    font-size: 1.3rem;
  }

  /* Sections Tablet */
  section {
    padding: 5rem 2rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  /* Sobre Nós Tablet */
  .sobre-content {
    gap: 3rem;
  }

  .sobre-text {
    font-size: 1.1rem;
  }

  /* Statistics Tablet */
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    padding: 3rem 2rem;
  }

  .stat-number {
    font-size: 3.5rem;
  }

  /* Eventos Carousel Tablet */
  .carousel-container {
    padding: 0 50px;
  }

  .evento-card {
    min-width: calc(50% - 1rem);
  }

  .evento-image {
    height: 280px;
  }

  .carousel-btn {
    width: 45px;
    height: 45px;
    font-size: 1.8rem;
  }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
  /* Hero Section Small Mobile */
  .hero {
    height: 45vh;
    min-height: 350px;
  }

  .hero h1 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }

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

  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

  /* Sections Small Mobile */
  section {
    padding: 2.5rem 1rem;
  }

  h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  /* Sobre Nós Small Mobile */
  .sobre-text {
    font-size: 0.95rem;
  }

  .cta-button-about {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

  /* Statistics Small Mobile */
  .stats-section {
    padding: 2.5rem 0.5rem;
  }

  .stats-container {
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-icon {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  /* Eventos Carousel Small Mobile */
  .eventos-section {
    padding: 2.5rem 0.5rem;
  }

  .carousel-container {
    padding: 0 30px;
  }

  .evento-image {
    height: 200px;
  }

  .evento-info {
    padding: 1.2rem;
  }

  .evento-info h3 {
    font-size: 1.1rem;
  }

  .evento-info p {
    font-size: 0.9rem;
  }

  .carousel-btn {
    width: 30px;
    height: 30px;
    font-size: 1.1rem;
  }
}


/* Scroll Animation */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Page Container */


.page.active {
  display: block;
}
