/* ========================================
   🎨 PALETA REFINADA: Ênfase no Dourado
======================================== */
:root {
  /* Cores de Ação (Vinho) */
  --color-primary: #A6345B;
  --color-primary-dark: #831843;
  --color-accent: #691140;

  /* 🎨 Cor de Ênfase Premium (Dourado) */
  --color-emphasis: #D4AF37; 
  --color-emphasis-dark: #B8860B;

  /* Cores de Base (Light Theme) */
  --color-bg-light: #FFFFFF;
  --color-bg-medium: #f8f9fa;
  --color-bg-dark: #111111;
  --color-text-dark: #212529;
  --color-text-light: #555555;
  --color-border: #dee2e6;
  
  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); /* Vinho */
  --gradient-emphasis: linear-gradient(135deg, var(--color-emphasis) 0%, var(--color-emphasis-dark) 100%); /* Dourado */
  
  /* Sombras */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-glow-wine: 0 0 40px rgba(166, 52, 91, 0.2); /* Sombra Vinho */
  --shadow-glow-gold: 0 0 40px rgba(212, 175, 55, 0.3); /* 🎨 Sombra Dourada */
  
  --radius: 12px;
  
  /* 🌟 MELHORIA: Altura do Header para cálculo do scroll */
  --header-height: 90px; 
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html {
  overflow-x: hidden;
  /* 🌟 MELHORIA PROFISSIONAL: Garante que o menu fixo não cubra o título ao navegar por âncoras */
  scroll-padding-top: var(--header-height);
}
/* ================================== */

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.6;
    background: var(--color-bg-light);
    color: var(--color-text-light);
}

h1, h2, h3, h4, h5, h6, .font-heading {
     font-family: 'Playfair Display', 'Times New Roman', serif;
     color: var(--color-text-dark);
}

.home-container {
  min-height: 100vh;
  position: relative;
}

.home-container::before {
  display: none;
}

/* ========================================
   🌟 MELHORIA: ACESSIBILIDADE (FOCO VISÍVEL)
======================================== */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 4px;
  transition: outline-offset 0.1s ease;
}
/* Remove o outline para cliques de mouse, mas mantém para teclado */
:focus:not(:focus-visible) {
  outline: none;
}
/* Garante que o foco em cards com role=button seja claro */
[role="button"]:focus-visible {
   box-shadow: 0 0 0 4px var(--color-bg-light), 0 0 0 7px var(--color-primary);
}


/* ========================================
   SCROLLBAR CUSTOMIZADA
======================================== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary); /* Vinho */
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-dark);
}

/* ========================================
   HEADER PROFISSIONAL (Com Ênfase)
======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease-in-out;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08); 
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--header-height); 
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.logo {
  cursor: pointer;
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  gap: 15px; /* 🎨 Espaço entre logo e texto */
  text-decoration: none;
}

.logo:hover {
  transform: scale(1.02); /* 🎨 Hover mais sutil */
}

.logo-img {
  /* 🎨 Logo aumentada */
  height: 220px;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}



.logo-text {
  /* 🎨 Texto da logo ativado */
  color: var(--color-text-dark);
  font-size: 1.5rem;
  font-weight: 800;
  display: block; /* 🎨 Ativado por padrão */
  font-family: 'Playfair Display', 'Times New Roman', serif;
}

.nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

 .nav a {
    color: var(--color-text-light);
    padding: 10px 0;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    cursor: pointer;
  }

.nav a:hover {
    color: var(--color-primary); /* Hover Vinho */
  }

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary); /* Sublinhado Vinho */
  border-radius: 3px;
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 10px var(--shadow-glow-wine); /* Glow Vinho */
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav-login-btn {
    background: var(--gradient-primary);
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}
.nav-login-btn:hover {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.nav-login-btn::after {
    display: none;
}


 .menu-toggle {
    display: none;
    font-size: 26px;
    color: var(--color-text-dark);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }

/* ========================================
   HERO SECTION
======================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  
  /* Define um "contexto de empilhamento"
      Isso garante que o z-index: -1 do banner 
      fique "preso" dentro desta seção. */
  isolation: isolate; 

  /* Corrigido: 'var(black)' não é válido. 
      Use uma variável CSS (ex: var(--header-height)) 
      ou um valor fixo (ex: 80px). 
      '0' é usado como padrão se a variável não existir. */
  padding-top: var(--header-height, 0); 
}

.hero-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  /* Coloca o banner atrás do conteúdo (texto, botões) 
      da .hero-section */
  z-index: -1; 
  
  /* Cor de fallback caso a imagem não carregue.
      Removemos a imagem de background daqui, 
      pois ela será controlada pela tag <img> */
  background-color: #222; /* Um cinza escuro de fallback */
}

/* A SOBREPOSIÇÃO PROFISSIONAL
    Esta é a camada de cor que fica entre
    a imagem e o texto. */
.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  /* Esta é a chave: 
      Uma cor preta (rgb(0,0,0)) com 50% de opacidade (0.5). 
      Ajuste o 0.5 para deixar mais claro ou escuro. */
  background-color: rgba(0, 0, 0, 0.5); 
  
  /* Opcional: um gradiente sutil é ainda mais profissional */
  /* background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3)); */

  /* Garante que a sobreposição fique em cima da imagem */
  z-index: 1; 
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  animation: kenBurns 15s ease-in-out infinite alternate;
  
  /* Removemos o filter. A sobreposição ::before 
      já faz o trabalho de escurecer,
      e de forma mais controlada. */
  /* filter: brightness(0.7) contrast(1.1); */
}

/* Animação Ken Burns (mantida como no original) */
@keyframes kenBurns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.6)
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 850px;
  padding: 2rem;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);
  animation: fadeUp 1s ease-in-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border-radius: 30px;
  padding: 8px 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  /* 🎨 Pulse agora usa o glow Dourado */
  animation: pulse-gold 2s ease-in-out infinite; 
}

@keyframes pulse-gold {
  /* 🎨 Pulse Dourado */
  0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.3); }
  50% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.6); }
}

.hero-title {
  /* 🌟 MELHORIA: Tipografia Fluida */
  font-size: clamp(2.5rem, 5vw + 1rem, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #fff;
}

/* 🎨 Texto de ênfase (Dourado) */
.gradient-text {
  color: var(--color-emphasis); /* Dourado */
}
/* Destaque dourado no hero */
.hero-title .gradient-text {
    color: var(--color-emphasis); /* Dourado */
}


.hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #f0f0f0;
}

.hero-description strong {
  color: var(--color-emphasis); /* Destaque Dourado */
  display: block;
  margin-top: 1rem;
  font-size: 1.4rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  gap: 0.5rem;
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-primary {
  /* Botão principal Vinho */
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(166, 52, 91, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(166, 52, 91, 0.5);
  background: var(--color-primary-dark); 
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  background: #fff;
  color: var(--color-primary);
  transform: translateY(-3px);
}

/* Botão Outline para fundo claro */
.btn-outline-dark {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}
.btn-outline-dark:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-3px);
}


.stats-grid {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

/* Card padrão para tema light */
.card {
  border-radius: var(--radius);
  background: var(--color-bg-light);
  color: var(--color-text-dark);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border);
  transform: translateY(-5px);
}

.stat-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  min-width: 150px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stat-content {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', 'Times New Roman', serif;
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ========================================
   SECTIONS
======================================== */
.section-container {
  padding: 100px 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.gradient-bg {
  background: var(--color-bg-medium);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  /* 🌟 MELHORIA: Tipografia Fluida */
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--color-text-dark);
  text-shadow: none;
  letter-spacing: -1px;
}

.section-title .gradient-text {
    /* 🎨 Texto de ênfase (Dourado) */
    color: var(--color-emphasis); 
}

.section-subtitle {
  font-size: 1.3rem;
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* ========================================
   VÍDEOS DOS EVENTOS
======================================== */
.videos-section {
  padding-top: 40px;
  padding-bottom: 60px;
  background: var(--color-bg-light);
  color: var(--color-text-dark);
  text-align: center;
}

.videos-section .section-header {
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.videos-section .section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  line-height: 1.2;
}

.videos-section .section-subtitle {
  font-size: 1.1rem;
  line-height: 1.5;
  max-width: 500px;
  margin: 0 auto;
  color: var(--color-text-light);
}

.videos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.video-card {
  background: #f1f1f1;
  border-radius: 40px;
  padding: 20px 15px 25px;
  width: 300px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.video-card::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 18px;
  background: #1a1a1a;
  border-radius: 10px;
  z-index: 2;
}

.video-wrapper {
  width: 100%;
  border-radius: 30px;
  overflow: hidden;
  margin-top: 35px;
  background: #000;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 30px;
}

.video-info {
  padding: 15px 10px 0;
  text-align: center;
}

.video-title {
  font-size: 1.1rem;
  color: var(--color-primary); /* Título Vinho */
  margin-bottom: 8px;
  font-weight: 600;
}

.video-description {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.4;
  max-width: 260px;
  margin: 0 auto;
}


/* ========================================
   FOTO DO TROFÉU
======================================== */
.trophy-section {
  padding: 100px 2rem;
  background: var(--color-bg-medium);
  overflow: hidden;
}

.trophy-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.trophy-image-wrapper {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s;
}

.trophy-image-wrapper:hover {
  transform: scale(1.05) rotate(2deg);
}

.trophy-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.trophy-content {
  color: var(--color-text-dark);
}

.trophy-content h2 {
  /* 🌟 MELHORIA: Tipografia Fluida */
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.trophy-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.trophy-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.trophy-highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-bg-light);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  font-size: 1.1rem;
}

.trophy-highlight i {
  font-size: 1.5rem;
  color: var(--color-emphasis); /* 🎨 Ícone Dourado */
}


/* ========================================
   SOBRE
======================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: var(--color-text-light);
}

.about-text p {
  font-size: 1.15rem;
  line-height: 1.8;
}

.about-text strong {
  color: var(--color-primary); /* Destaque Vinho */
}

.feature-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.feature-box {
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  background: var(--color-bg-light);
}

.feature-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow-gold); /* 🎨 Glow Dourado */
}

.feature-box .card-icon {
  font-size: 2.5rem;
  color: var(--color-emphasis); /* 🎨 Ícones Dourado */
}

.feature-box p {
  font-weight: 600;
  color: var(--color-text-dark);
  margin: 0.5rem 0 0 0;
}

.about-visual {
  background: var(--color-bg-medium);
  padding: 3rem;
  border-radius: 30px;
  text-align: center;
  border: 1px solid var(--color-border);
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.round-image {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--color-emphasis); /* 🎨 Borda Dourada */
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  animation: float 4s ease-in-out infinite;
}


@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.about-visual h3 {
  font-size: 2rem;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
}

.about-visual p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  margin: 0;
}

/* ========================================
   PILARES
======================================== */
.pilares-section {
  padding: 80px 20px;
  background: var(--color-bg-medium);
  color: var(--color-text-dark);
  text-align: center;
  overflow: hidden;
}

.pilares-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}

.pillar-card {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px 25px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.pillar-card:hover {
  transform: translateY(-5px);
  background: var(--color-bg-light);
  box-shadow: var(--shadow-glow-gold); /* 🎨 Sombra Dourada */
}

.pillar-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: inline-block;
  color: var(--color-emphasis); /* 🎨 Ícone Dourado */
}

.pillar-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-accent); /* Título Vinho Escuro */
  margin-bottom: 10px;
}

.pillar-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-light);
}

/* ========================================
   EVENTOS
======================================== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.event-card {
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-glow-wine); /* Glow Vinho */
}

.event-image {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 12px;
}

.event-image img {
  width: auto;       /* mantém largura original */
  height: 300px;     /* define um tamanho quadrado */
  object-fit: contain; /* garante que a imagem não corte nem estique */
  border-radius: 12px;
  image-rendering: crisp-edges;
}





.event-card:hover .event-image img {
  transform: scale(1.1);
}

.event-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-bg-medium);
  color: var(--color-primary); /* Vinho */
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.event-title {
  font-size: 1.5rem;
  margin: 1rem 0;
  color: var(--color-text-dark);
  font-weight: 700;
}

.event-description {
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.event-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1.5rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.event-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.event-info-item i {
  color: var(--color-primary); /* Ícone Vinho */
  font-size: 1.1rem;
}

.w-full {
  width: 100%;
}

/* ========================================
   GALERIA (COM SWIPER.JS)
======================================== */
.gallery-note {
  text-align: center;
  color: var(--color-text-light);
  font-size: 1rem;
  margin-bottom: 3rem;
  padding: 1rem;
  background: var(--color-bg-medium);
  border-radius: 10px;
}

.gallery-slider-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 0;
    position: relative;
}

.swiper-container {
    width: 100%;
    padding-bottom: 40px;
}

.swiper-slide.gallery-card {
    flex-shrink: 0;
    /* 🌟 MELHORIA: Removido width fixo. Deixa o JS (breakpoints) controlar. */
    /* width: 300px; */ 
    height: 300px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: var(--radius);
}

.gallery-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.gallery-image {
  width: 100%;
  height: 100%;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(107, 3, 58, 0.95) 0%, transparent 100%);
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.gallery-card:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay p {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
}

.swiper-pagination-bullet {
    background: rgba(0, 0, 0, 0.2);
}
.swiper-pagination-bullet-active {
    background: var(--color-primary); /* Paginação Vinho */
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--color-primary); /* Setas Vinho */
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: white;
    box-shadow: var(--shadow-md);
}
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.5rem;
    font-weight: 900;
}


/* ========================================
   DEPOIMENTOS
======================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow-gold); /* 🎨 Glow Dourado */
}

.testimonial-content {
  padding: 2rem;
}

.quote-icon {
  font-size: 3rem;
  color: var(--color-emphasis); /* 🎨 Citação Dourada */
  line-height: 1;
  margin-bottom: 1rem;
}

.testimonial-text {
  color: var(--color-text-light);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary); /* Fundo Vinho */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-author h4 {
  color: var(--color-text-dark);
  font-size: 1.1rem;
  margin: 0 0 0.25rem 0;
  font-family: 'Playfair Display', 'Times New Roman', serif;
}

.testimonial-author p {
  color: #9ca3af;
  font-size: 0.9rem;
  margin: 0;
}

/* ========================================
   CONTATO
======================================== */
.contact-section {
  background: var(--color-bg-light);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
  align-items: center;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-bg-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary); /* Ícone Vinho */
  flex-shrink: 0;
  font-size: 1.5rem;
}

.contact-card .card-header,
.contact-card .card-content {
  padding: 0;
}

.contact-card .card-title {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  font-family: 'Playfair Display', 'Times New Roman', serif;
}

.contact-card .card-content p {
  color: var(--color-text-light);
  margin: 0;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: start;
  margin-top: 1rem;
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-bg-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary); /* Ícone Vinho */
  text-decoration: none;
  transition: transform 0.3s, background 0.3s, color 0.3s;
  font-size: 1.5rem;
  border: 1px solid var(--color-border);
}

.social-link:hover {
  transform: scale(1.15);
  background: var(--gradient-primary); /* Fundo Vinho */
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.contact-form-card {
  box-shadow: var(--shadow-md);
  padding: 2rem;
}

.contact-form-card .card-header {
  margin-bottom: 1.5rem;
}
.contact-form-card .card-title {
  font-size: 1.5rem;
  color: var(--color-text-dark);
  font-family: 'Playfair Display', 'Times New Roman', serif;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--color-text-light);
}

.input, .textarea {
  display: flex;
  width: 100%;
  border-radius: 0.5rem;
  border: 2px solid var(--color-border);
  background: #ffffff;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  font-family: inherit;
  color: var(--color-text-dark);
}

.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--color-primary); /* Focus Vinho */
  box-shadow: 0 0 0 3px rgba(166, 52, 91, 0.1);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

/* ========================================
   MODAL DE INSCRIÇÃO
======================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: white;
  border-radius: var(--radius);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  padding: 2rem 2rem 1rem 2rem;
  border-bottom: 2px solid var(--color-bg-medium);
  position: relative;
}

.modal-header h2 {
  color: var(--color-text-dark);
  font-size: 1.75rem;
  margin: 0 0 0.5rem 0;
  font-family: 'Playfair Display', 'Times New Roman', serif;
}

.modal-header p {
  color: var(--color-text-light);
  margin: 0;
  font-size: 0.95rem;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-light);
  transition: color 0.3s;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--color-primary);
}

.modal-body {
  padding: 2rem;
}

.modal-event-info {
  background: var(--color-bg-medium);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.modal-event-info h3 {
  color: var(--color-text-dark);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-family: 'Playfair Display', 'Times New Roman', serif;
}

.modal-event-info p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ========================================
   FOOTER
======================================== */
.footer {
  background: linear-gradient(135deg, #c520b7, #000000);
  color: #fff;
  text-align: center;
  padding: 25px 10px; /* 🔹 diminuído (antes era ~60px) */
  font-family: 'Poppins', sans-serif;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* 🔹 espaço menor entre ícone e texto */
  font-size: 1.3rem; /* 🔹 antes 1.6rem */
  font-weight: 700;
  margin-bottom: 8px; /* 🔹 menos espaço abaixo */
}

.footer-logo-icon {
  font-size: 1.4rem; /* 🔹 ícone menor */
}

.footer p {
  font-size: 0.95rem; /* 🔹 texto mais compacto */
  margin: 6px 0;
  opacity: 0.9;
}

.footer-socials {
  margin: 10px 0;
}

.footer-socials a {
  color: #fff;
  font-size: 1.2rem; /* 🔹 ícones menores */
  margin: 0 6px;
  transition: opacity 0.3s;
}

.footer-socials a:hover {
  opacity: 0.7;
}

.footer-copy {
  font-size: 0.8rem; /* 🔹 texto de direitos reduzido */
  margin-top: 10px;
  opacity: 0.8;
}


/* ========================================
   CSS PARA ANIMAÇÕES DE SCROLL
======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.pilares-grid .pillar-card:nth-child(2) { transition-delay: 0.1s; }
.pilares-grid .pillar-card:nth-child(3) { transition-delay: 0.2s; }
.pilares-grid .pillar-card:nth-child(4) { transition-delay: 0.3s; }
.pilares-grid .pillar-card:nth-child(5) { transition-delay: 0.4s; }
.pilares-grid .pillar-card:nth-child(6) { transition-delay: 0.5s; }

.events-grid .event-card:nth-child(2) { transition-delay: 0.1s; }
.events-grid .event-card:nth-child(3) { transition-delay: 0.2s; }

.testimonials-grid .testimonial-card:nth-child(2) { transition-delay: 0.1s; }
.testimonials-grid .testimonial-card:nth-child(3) { transition-delay: 0.2s; }


/* ========================================
   PÁGINAS DE NOTÍCIAS (Light Theme)
======================================== */
.hidden {
    display: none !important;
}

.page-container {
    padding-top: 140px; /* 90px header + 50px espaço */
    padding-bottom: 60px;
    min-height: 100vh;
    background: var(--color-bg-medium);
    color: var(--color-text-dark);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.news-card {
  background: white;
  border-radius: var(--radius);
  color: var(--color-text-dark);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-glow-wine);
}

.news-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f3f4f6;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.news-card:hover .news-image img {
  transform: scale(1.1);
}

.news-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-bg-medium);
  color: var(--color-primary); /* Vinho */
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.news-title {
  font-size: 1.5rem;
  margin: 1rem 0;
  color: var(--color-text-dark);
  font-weight: 700;
}

.news-excerpt {
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Detalhe da Notícia */
.news-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 3rem;
    background: white;
    color: var(--color-text-dark);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.btn-back {
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    color: white;
}
.btn-back:hover {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-3px);
}

.news-detail-header {
    padding: 2rem 0;
}
.news-detail-header .news-badge {
    font-size: 1rem;
}
.news-detail-header h1 {
    font-size: 2.5rem;
    color: var(--color-text-dark);
    line-height: 1.2;
    margin: 1rem 0;
}
.news-detail-meta {
    font-size: 0.9rem;
    color: var(--color-text-light);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}
.news-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin: 2rem 0;
}
.news-detail-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #374151;
    padding-bottom: 3rem;
}
.news-detail-content p {
    margin-bottom: 1.5rem;
}
.news-detail-content strong {
  color: var(--color-primary);
}


/* ========================================
   RESPONSIVO
======================================== */
@media (max-width: 1024px) {
  html {
    /* 🌟 MELHORIA: Ajusta o scroll-padding para a altura do menu mobile, se for diferente */
    /* Assumindo que a altura do header não muda, mas se mudasse, seria aqui */
  }
  
  .about-grid,
  .contact-grid,
  .trophy-container {
    grid-template-columns: 1fr;
  }
  
  .trophy-image-wrapper {
      order: -1;
  }

  .hero-title {
    /* clamp() já cuida disso, mas podemos ajustar o máximo se necessário */
    font-size: clamp(2.2rem, 5vw + 1rem, 2.8rem);
  }

  .section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }

  .videos-grid {
    max-width: 350px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  /* 🎨 Logo text some no mobile */
  .logo-text {
      display: none;
  }
    
  /* Menu Hambúrguer */
  .menu-toggle {
    display: block;
  }
  
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 90px; /* 🎨 Ajustado para novo header */
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--color-border);
    z-index: 999;
  }
  
  .header.scrolled .nav {
      top: 90px; /* 🎨 Mantido 90px para consistência */
  }
  
  .nav.active {
    display: flex;
  }
  
  .nav a {
      padding: 1rem 2rem;
      text-align: center;
      width: 100%;
      color: var(--color-text-dark);
  }
  .nav a:hover {
      background: var(--color-primary);
      color: #fff !important;
  }
  .nav a::after {
      display: none;
  }
  
  .nav .nav-login-btn {
      margin: 0.5rem 2rem;
      text-align: center;
      justify-content: center;
  }
  /* Fim Menu Hambúrguer */


  .hero-title {
    font-size: clamp(2rem, 7vw, 2.2rem);
  }

  .section-title {
    font-size: clamp(1.8rem, 6vw, 2rem);
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-buttons .btn {
    width: 90%;
    margin: 0 auto;
  }

  .stats-grid {
      gap: 1rem;
  }
  .stat-card {
      padding: 1rem 1.5rem;
      min-width: 120px;
  }
  .stat-number {
      font-size: 2rem;
  }

  .events-grid,
  .messages-grid,
  .testimonials-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .feature-boxes {
    grid-template-columns: 1fr;
  }

  .section-container {
    padding: 60px 1.5rem;
  }

  .trophy-content h2 {
    font-size: 2rem;
  }
  
  .modal-content {
    margin: 1rem;
    padding: 0;
  }
  .modal-header, .modal-body {
      padding: 1.5rem;
  }
  .modal-header h2 {
      font-size: 1.5rem;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
      display: none;
  }

  /* Notícias no Mobile */
  .news-detail-container {
      padding: 1rem 1.5rem;
      border-radius: 0;
  }
  .news-detail-header h1 {
      font-size: 1.8rem;
  }
  .news-detail-image {
      height: 250px;
      margin: 1rem 0;
  }
}