/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  overflow-x: hidden; /* Impede a barra de rolagem horizontal */
  width: 100%;
}

:root {
  /* Nova paleta de cores mais moderna e atraente */
  --primary-color: #0f766e;
  --primary-dark: #134e4a;
  --primary-light: #14b8a6;
  --accent-color: #f59e0b;
  --accent-light: #fbbf24;
  --accent-dark: #d97706;

  /* Neutros */
  --bg-color: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-light: #999999;
  --border-color: #e0e0e0;

  /* Sombras */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);

  /* Transições */
  --transition: all 0.3s ease;
}

/* Habilita smooth scrolling nativo para navegadores que suportam */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background-color: var(--bg-color);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / Navegação */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-color);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  /*margin-left: 205px;*/
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

/* Botões */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(15, 118, 110, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(15, 118, 110, 0.6);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  border-color: white;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: white;
  color: var(--primary-color);
  border-color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.3);
}

.btn-accent {
  background-color: var(--accent-color);
  color: white;
}

.btn-accent:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}

/* Nova seção hero com carrossel */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  overflow: hidden;
}

.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background-size: cover;
  background-position: center;
}

/* Garantir que imagens internas preencham o slide corretamente */
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide:nth-child(1) {
  background-image: url("/placeholder.svg?height=1080&width=1920");
}

.hero-slide:nth-child(2) {
  background-image: url("/placeholder.svg?height=1080&width=1920");
}

.hero-slide:nth-child(3) {
  background-image: url("/placeholder.svg?height=1080&width=1920");
}

.hero-slide:nth-child(4) {
  background-image: url("/placeholder.svg?height=1080&width=1920");
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Animação usada ao navegar para um destino via âncora */
.anchor-highlight {
  animation: anchorPulse 0.9s cubic-bezier(.2,.9,.3,1);
}

@keyframes anchorPulse {
  0% { transform: translateY(6px); opacity: 0; box-shadow: none; }
  40% { transform: translateY(0); opacity: 1; box-shadow: 0 12px 30px rgba(15,118,110,0.08); }
  100% { transform: translateY(0); opacity: 1; box-shadow: none; }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 118, 110, 0.55) 0%,
    rgba(19, 78, 74, 0.45) 50%,
    rgba(217, 119, 6, 0.35) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  color: white;
  animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  text-wrap: balance;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 22px;
  margin-bottom: 48px;
  line-height: 1.6;
  opacity: 0.98;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: 2px solid white;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.indicator:hover {
  background-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.indicator.active {
  background-color: white;
  width: 32px;
  border-radius: 6px;
}

/* Countdown Section */
.countdown-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.countdown-card {
  background-color: white;
  border-radius: 16px;
  padding: 48px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.countdown-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.countdown-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.countdown-description {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 40px;
}

.countdown {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.countdown-value {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent-color);
  line-height: 1;
  margin-bottom: 8px;
}

.countdown-label {
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
}

/* About Section */
.about-section {
  padding: 100px 20px;
  background-color: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.about-content h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 16px;
  margin-top: 32px;
}

.about-content h3:first-child {
  margin-top: 0;
}

.about-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.stat-card {
  background-color: white;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Projects Section */
.projects-section {
  padding: 100px 20px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.project-card {
  background-color: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.project-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.project-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.project-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-features {
  list-style: none;
}

.project-features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
  border-top: 1px solid var(--border-color);
}

.project-features li::before {
  content: "✓ ";
  color: var(--primary-color);
  font-weight: 700;
  margin-right: 8px;
}

/* News Section */
.news-section {
  padding: 100px 20px;
  background-color: var(--bg-secondary);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.news-card {
  background-color: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.news-card.featured {
  grid-column: span 2;
  flex-direction: row;
}

.news-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: var(--accent-color);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 1;
}

.news-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.news-card.featured .news-image {
  width: 50%;
  height: auto;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.news-date {
  font-size: 14px;
  color: var(--text-light);
}

.news-category {
  font-size: 14px;
  color: var(--primary-color);
  font-weight: 600;
}

.news-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-excerpt {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.news-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.news-link:hover {
  color: var(--primary-dark);
  gap: 8px;
}

.news-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.pagination-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.pagination-btn:hover,
.pagination-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Gallery Section */
.gallery-section {
  padding: 100px 20px;
  background-color: var(--bg-color);
}

.gallery-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 24px;
  background-color: white;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.gallery-item.hidden {
  display: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4));
  padding: 24px;
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Classe para remover zoom em imagens mal enquadradas */
.gallery-item.no-zoom:hover img,
.gallery-item.no-zoom img {
  transform: none !important;
}

/* Classe utilitária para ajustar o ponto de enquadramento (usar quando o foco da imagem está no topo) */
.gallery-item.position-top img {
  object-position: 50% 0%;
}

/* Utilitários para ajustar o deslocamento vertical do foco da imagem */
.gallery-item.position-top-0 img {
  object-position: 50% 0%;
}
.gallery-item.position-top-10 img {
  object-position: 50% 10%;
}
.gallery-item.position-top-20 img {
  object-position: 50% 20%;
}
.gallery-item.position-top-30 img {
  object-position: 50% 30%;
}
.gallery-item.position-top-40 img {
  object-position: 50% 40%;
}
.gallery-item.position-top-50 img {
  object-position: 50% 50%;
}

.gallery-overlay h4 {
  color: white;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  margin: 0;
}

.gallery-load-more {
  display: block;
  margin: 48px auto 0;
  padding: 16px 40px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-load-more:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Courses Section */
.courses-section {
  padding: 100px 20px;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.course-card {
  background-color: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.course-card.featured {
  border: 3px solid var(--accent-color);
}

.course-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: var(--accent-color);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 1;
}

.course-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-content {
  padding: 32px;
}

.course-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.course-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.course-info {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.course-duration,
.course-level {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Contact Section */
.contact-section {
  padding: 100px 20px;
  background-color: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info h3 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.contact-info > p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  gap: 16px;
}

.contact-icon {
  font-size: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  border-radius: 12px;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-details p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: white;
  border-radius: 12px;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary-dark);
  transform: translateY(-4px);
}

/* Contact Form */
.contact-form {
  background-color: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Novo bloco de contato estilizado */
.contact-card {
  background-color: white;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  align-items: center;
}

.contact-card h3 {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
  padding: 0;
}

.contact-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--text-primary);
  font-size: 15px;
}

.contact-list .contact-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: white;
  border-radius: 10px;
  flex-shrink: 0;
  font-size: 18px;
}

.contact-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.contact-card-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 968px) {
  .contact-card {
    grid-template-columns: 1fr;
  }
  .contact-card-right {
    order: -1;
  }
}

/* Footer */
.footer {
  background-color: var(--text-primary);
  color: white;
  padding: 64px 20px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.8;
}

.footer-links h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.footer-social-links {
  display: flex;
  gap: 12px;
}

.footer-social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: var(--transition);
}

.footer-social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-4px);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 14px;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 968px) {
  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: white;
    padding: 24px;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .menu-toggle {
    display: flex;
  }

  .header-content > .btn {
    display: none;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 18px;
  }
}

.text-design {
  text-decoration: none;
}

.icon-contact {
  height: 25px;
}

.position-top-20 img {
  object-position: 50% 20%;
}

.gallery-item.position-top img {
  object-position: 50% 0%;
}

/* Utilitários para ajustar o deslocamento vertical do foco da imagem */
.position-top-0 img {
  object-position: 50% 0%;
}.position-top-10 img {
  object-position: 50% 10%;
}.position-top-20 img {
  object-position: 50% 20%;
  object-position: 50% 30%;
}.position-top-40 img {
  object-position: 50% 40%;
}.position-top-50 img {
  object-position: 50% 50%;
}

/* Regras responsivas adicionais para celulares */
@media (max-width: 600px) {
  :root {
    --container-padding: 12px;
  }

  .container {
    padding: 0 var(--container-padding);
    max-width: 1000px;
  }

  /* Header */
  .header-content {
    padding: 0 15px; /* Mais espaço nas bordas */
  }

  .logo-img {
    width: 40px;
    height: 40px;
    margin-left: 0;
    margin-right: 8px;
  }

  .nav {
    top: 64px; /* alinhamento com altura reduzida do header */
    padding: 16px;
    gap: 14px;
  }

  .nav-link {
    font-size: 16px;
    padding: 8px 0;
  }

  .menu-toggle {
    display: flex;
    z-index: 1200;
  }

  .header-content > .btn {
    display: none;
  }

  /* Hero */
  .hero {
    padding: 80px 15px 40px;
    min-height: 80vh; /* Ajuste para não sobrar tanto espaço vazio */
    display: flex;
    align-items: center;
  }

  .hero-title {
    font-size: 1.8rem; /* Tamanho mais equilibrado para celular */
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .hero-indicators {
    bottom: 18px;
    gap: 8px;
  }

  .hero-actions {
    flex-direction: column; /* Botões um em cima do outro no celular */
    gap: 10px;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%; /* Botões ocupam a largura toda para facilitar o clique */
  }

  /* Ajustes de seções para empilhar */
  .about-grid,
  .projects-grid,
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Melhorias específicas para a seção 'Sobre' em telas pequenas */
  .about-grid {
    align-items: start;
  }

  .about-image {
    display: block;
    width: 100%;
    margin-bottom: 12px;
  }

  .about-image img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    display: block;
  }

  .about-content {
    padding: 0;
  }

  /* Forçar imagem acima do texto e maior destaque no mobile */
  .about-grid {
    display: flex;
    flex-direction: column;
  }

  .about-image {
    order: -1;
    align-self: stretch;
  }

  .about-image img {
    min-height: 180px;
    max-height: 60vh;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Galeria: uma coluna e gaps menores */
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* Duas colunas se couber, senão uma */
    gap: 10px;
  }

  .gallery-item {
    aspect-ratio: 1 / 1; /* Fotos quadradas no celular ficam mais organizadas */
  }

  /* Contato: em coluna única */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  /* Footer ajustes */
  .footer {
    padding: 40px 12px 24px;
  }

  .footer-grid {
    gap: 24px;
  }

  /* Diminuir espaçamento geral em telas pequenas */
  .section-header { margin-bottom: 36px; }
  .section-title { font-size: 28px; }
  .section-subtitle { font-size: 14px; }

  /* Botões maiores devem reduzir padding para caber melhor */
  .btn { padding: 10px 16px; }

  /* Garantir imagens dentro de cards não excedam a tela */
  img { max-width: 100%; height: auto; }
}

/* Ajustes para dispositivos móveis maiores / tablets para garantir 'Sobre' proporcional */
@media (max-width: 900px) {
  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .about-image {
    order: -1;
    width: 100%;
    margin: 0 0 12px 0;
  }

  .about-image img {
    width: 100%;
    height: auto;
    max-height: 55vh;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    display: block;
  }

  .about-content {
    padding: 0 4px;
  }

  .about-content h3 { font-size: 20px; }
  .about-content p { font-size: 15px; line-height: 1.7; }
}


/* =========================================
   CORREÇÃO FINAL - MOBILE
   ========================================= */

/* 1. Garante que o site não balance horizontalmente */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

@media (max-width: 600px) {

  /* --- CORREÇÃO DA IMAGEM GIGANTE --- */
  
  /* Define o tamanho exato do quadrado da imagem */
  .news-card.featured .news-image {
    width: 100% !important;
    height: 250px !important; /* Força a altura a ser 250px */
    min-height: 250px;
    display: block;
  }

  /* Faz a imagem preencher esse quadrado sem deformar */
  .news-card.featured .news-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Corta o excesso de altura */
    object-position: top center !important; /* Foca nos rostos */
  }

  /* Garante que o texto fique embaixo da foto */
  .news-card.featured {
    display: flex;
    flex-direction: column !important;
    height: auto !important;
    width: 100%;
  }
  
  /* Organiza a lista de notícias em coluna */
  .news-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  
  /* --- Outros Ajustes --- */
  .logo-img {
    margin: 0 10px 0 0;
  }
  
  .container {
    padding: 0 15px;
    overflow: hidden;
  }
  
  /* Esconde foto lateral do contato no celular */
  .contact-card-right {
    display: none; 
  }
  
  .contact-card {
     grid-template-columns: 1fr;
  }
}