/* Theme base inspirado em estética premium, com espaçamento confortável e tipografia moderna */
:root {
  --brand-primary: #1b3a6b; /* azul escuro */
  --brand-accent: #c9a227; /* dourado sofisticado */
  --text-color: #1f2937;
  --muted-color: #6b7280;
  --bg-soft: #f7f8fa;
}

html, body { width: 100%; overflow-x: hidden; }
body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji';
  color: var(--text-color);
  background: #fff;
}

h1, h2, h3, h4, .display-1, .display-2, .display-3 {
  font-family: 'Lora', serif;
}

.btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.btn-primary:hover { filter: brightness(1.04); }

/* Hero */
.hero {
  background: radial-gradient(1200px 600px at 5% 10%, rgba(201,162,39,0.12), transparent),
              radial-gradient(1000px 500px at 95% 30%, rgba(27,58,107,0.12), transparent);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="80" cy="80" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="40" cy="60" r="1" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}
.hero .hero-card {
  --hero-tilt: 0deg; --hero-pan: 0deg; --hero-depth: 0px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(27,58,107,0.08);
  transform: perspective(800px) rotateX(var(--hero-tilt)) rotateY(var(--hero-pan)) translateZ(var(--hero-depth));
  transition: transform 0.3s ease;
}
.hero .hero-card:hover {
  transform: perspective(800px) rotateX(var(--hero-tilt)) rotateY(var(--hero-pan)) translateZ(calc(var(--hero-depth) + 8px));
  box-shadow: 0 20px 40px rgba(27,58,107,0.12);
}

/* Cards de categorias */
.category-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 20px rgba(0,0,0,0.04);
  overflow: hidden;
  position: relative;
}
.category-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(27,58,107,0.15);
  border-color: var(--brand-primary);
}
.category-card { --overlay-angle: 90deg; --overlay-opacity: 0.4; }
.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(var(--overlay-angle), transparent, rgba(255,255,255,var(--overlay-opacity)), transparent);
  transition: left 0.5s;
}
.category-card:hover::before {
  left: 100%;
}
.category-icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-soft); border-radius: 12px; color: var(--brand-primary);
}

/* Benefícios */
.benefit-item { border-bottom: 1px dashed #e5e7eb; padding-bottom: .75rem; margin-bottom: .75rem; }

/* Depoimentos */
.testimonial { border: 1px solid #e5e7eb; border-radius: 16px; padding: 1.5rem; background: #fff; }

/* WhatsApp flutuante */
#whatsapp-float { 
  position: fixed; 
  bottom: 24px; 
  right: 24px; 
  width: 56px; 
  height: 56px; 
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  z-index: 1000;
  animation: pulse 2s infinite;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Responsividade melhorada */
@media (max-width: 768px) {
  /* Hero Section */
  .hero { padding: 2rem 0 !important; }
  .hero h1 { font-size: 2rem !important; line-height: 1.2; }
  .hero .lead { font-size: 1rem; margin-bottom: 1.5rem !important; }
  .hero .hero-card { 
    padding: 1rem !important; 
    margin-top: 2rem;
    transform: none !important; /* Remove 3D effects on mobile */
  }
  .hero .hero-card:hover { transform: none !important; }
  
  /* Buttons */
  .hero .d-flex.gap-2 { 
    flex-direction: column; 
    gap: 0.75rem !important; 
  }
  .hero .btn { 
    width: 100%; 
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
  
  /* Categories */
  .category-card { 
    margin-bottom: 1rem; 
    min-height: 200px;
    transform: none !important; /* Remove hover effects on mobile */
  }
  .category-card:hover { transform: none !important; }
  
  /* WhatsApp */
  #whatsapp-float { 
    bottom: 16px; 
    right: 16px; 
    width: 48px; 
    height: 48px; 
  }
  
  /* Navigation */
  .navbar-nav { text-align: center; }
  .navbar-nav .nav-link { padding: 0.75rem 1rem; }
  
  /* Carousel */
  .carousel-item img { height: 250px !important; }
  /* Melhor compatibilidade de gesto: permita pan vertical e swipe horizontal no carrossel */
  .carousel { touch-action: pan-y; }
  .carousel img { -webkit-user-drag: none; user-select: none; }
  
  /* Benefits */
  .benefit-item { 
    padding: 1rem; 
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
  }
}

@media (max-width: 576px) {
  /* Typography */
  .hero h1 { font-size: 1.75rem !important; }
  .hero .lead { font-size: 0.95rem; }
  
  /* Container */
  .container { 
    padding-left: 1rem; 
    padding-right: 1rem; 
  }
  
  /* Cards */
  .category-card { 
    padding: 1.5rem !important; 
    min-height: 180px;
  }
  
  /* Hero card image */
  .hero .hero-card img { height: 200px !important; }
  
  /* Sections spacing */
  .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  
  /* Text adjustments */
  .display-5 { font-size: 1.75rem !important; }
  .fs-5 { font-size: 1rem !important; }
  
  /* Icons and small elements */
  .category-icon { width: 40px; height: 40px; }
  .hero .d-flex.align-items-center.gap-3 { 
    flex-direction: column; 
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }
  .hero .d-flex.align-items-center.gap-3 > * {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}

/* Touch improvements for mobile */
@media (hover: none) and (pointer: coarse) {
  .category-card:hover,
  .hero-card:hover,
  .btn:hover {
    transform: none !important;
  }
  
  .category-card,
  .hero-card {
    transition: none;
  }
}

/* Header */
.navbar .navbar-brand { overflow: hidden; }
.navbar .navbar-brand.brand-has-image span { display: none !important; }

/* Hero title animation support */
.hero .hero-title { position: relative; display: inline-block; }

/* Footer */
footer { background: var(--bg-soft); }

/* Layout: compensar header fixo só em páginas sem hero no topo */
body:not(.over-hero) { padding-top: var(--navbar-height, 64px); }

/* Hero background cover mode */
.hero.bg-cover { position: relative; overflow: hidden; }
.hero.bg-cover .hero-media { position: absolute; inset: 0; z-index: 0; }
.hero.bg-cover .hero-media img, .hero.bg-cover .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero.bg-cover::after { content: ''; position: absolute; inset: 0; z-index: 1; background:
  /* reduzir a intensidade da máscara para que a imagem apareça mais sob o header */
  linear-gradient(90deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.10) 100%),
  radial-gradient(1200px 600px at 5% 10%, rgba(201,162,39,0.08), transparent),
  radial-gradient(1000px 500px at 95% 30%, rgba(27,58,107,0.08), transparent);
  pointer-events: none;
}
.hero.bg-cover .container { position: relative; z-index: 2; }
.hero.bg-cover .display-5, .hero.bg-cover .hero-title { color: #fff; }
.hero.bg-cover .hero-lead, .hero.bg-cover .text-muted, .hero.bg-cover small { color: #e5e7eb !important; }
.hero.bg-cover .btn-outline-primary { color: #fff; border-color: #fff; }
.hero.bg-cover .btn-outline-primary:hover { background: #fff; color: var(--brand-primary); }

/* Altura: ocupar 100% da viewport (inclui cabeçalho fixo por cima) */
.hero.bg-cover {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero.bg-cover .container { padding-top: 2rem; padding-bottom: 2.5rem; }

/* Melhor compatibilidade com mobile: usar svh quando suportado */
@supports (height: 100svh) {
  .hero.bg-cover { min-height: 100svh; }
}
@supports (height: 100svh) {
  @media (max-width: 768px) {
    .hero.bg-cover { min-height: calc(100svh - var(--navbar-height, 56px)); }
  }
}

/* Navbar sobre a hero (transparente) */
.navbar-over-hero {
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  transition: background-color .3s ease, box-shadow .3s ease, color .3s ease;
}
.navbar-over-hero .nav-link { color: #fff; }
.navbar-over-hero .nav-link:hover { color: #f3f4f6; }
.navbar-over-hero .navbar-brand span { color: #fff; }
/* Ajustes mobile para header sobre a hero */
.navbar-over-hero .navbar-toggler {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

/* Força o ícone do hambúrguer branco no mobile */
.navbar-over-hero .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Fundo ao abrir o menu colapsado em telas pequenas */
@media (max-width: 991.98px) {
  .navbar-over-hero .navbar-collapse {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: saturate(180%) blur(8px);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.5rem;
  }
  .navbar-over-hero .nav-link {
    color: #fff;
  }
  .navbar-over-hero .nav-link:hover {
    color: #fff;
    opacity: 0.85;
  }
}
.navbar-over-hero .navbar-toggler {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

/* Força o ícone do hambúrguer branco no mobile */
.navbar-over-hero .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Fundo ao abrir o menu colapsado em telas pequenas */
@media (max-width: 991.98px) {
  .navbar-over-hero .navbar-collapse {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: saturate(180%) blur(8px);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.5rem;
  }
  .navbar-over-hero .nav-link {
    color: #fff;
  }
  .navbar-over-hero .nav-link:hover {
    color: #fff;
    opacity: 0.85;
  }
}
.navbar-solid {
  background: #fff !important;
  border-bottom: 1px solid #e5e7eb !important;
}
.navbar-solid .nav-link { color: var(--text-color); }

/* ==== Botão hambúrguer animado (toggler) ==== */
.navbar .navbar-toggler.hamburger-btn { border: none; padding: .25rem; line-height: 1; }
.navbar-over-hero .navbar-toggler.hamburger-btn { color: #fff; }
.navbar-solid .navbar-toggler.hamburger-btn { color: var(--text-color); }

.hamburger-svg { height: 2rem; width: 2rem; transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1); display: block; }
.hamburger-svg .line { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1), stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1); }
.hamburger-svg .line-top-bottom { stroke-dasharray: 12 63; }
.navbar-toggler.hamburger-btn.is-open .hamburger-svg { transform: rotate(-45deg); }
.navbar-toggler.hamburger-btn.is-open .hamburger-svg .line-top-bottom { stroke-dasharray: 20 300; stroke-dashoffset: -32.42; }

/* Ajuste: remover o ícone padrão quando o novo hambúrguer estiver ativo */
.navbar .navbar-toggler.hamburger-btn .navbar-toggler-icon { display: none !important; }

/* Espaço para evitar sobreposição de conteúdo com header transparente (opcional)
.hero.bg-cover .container { padding-top: clamp(1rem, 2vh, 2rem); }
*/
.hero.bg-cover .container { padding-top: 2rem; padding-bottom: 2.5rem; }

/* Melhor compatibilidade com mobile: usar svh quando suportado */
@supports (height: 100svh) {
  .hero.bg-cover { min-height: calc(100svh - var(--navbar-height, 64px)); }
}
@supports (height: 100svh) {
  @media (max-width: 768px) {
    .hero.bg-cover { min-height: calc(100svh - var(--navbar-height, 56px)); }
  }
}
/* ===== Showcase de Eventos Realizados (estilo referência Wedy) ===== */
.section-showcase { background: var(--bg-soft); }
.section-showcase .section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; }
.section-showcase .section-head .lead { color: var(--muted-color); }

/* ===== Ornamentação dourada (swooshes) ===== */
:root { --gold-1:#C9A227; --gold-2:#E8D18E; --gold-3:#AF8C1A; }
.gold-bg { position: relative; background-color: #f5f5f5; border-radius: 16px; }
.gold-bg::before,
.gold-bg::after { content:""; position:absolute; inset:0; pointer-events:none; border-radius: inherit; }
/* Coloca dois ornamentos (canto superior esquerdo e inferior direito) */
.gold-bg::before { 
  background-image: url('../img/gold-ornament.svg'), url('../img/gold-ornament.svg');
  background-repeat: no-repeat, no-repeat;
  background-position: left 8px top 8px, right 8px bottom 8px;
  background-size: 220px 220px, 220px 220px;
  opacity: 0.85;
}
/* Coloca mais dois ornamentos discretos (superior direito e inferior esquerdo) */
.gold-bg::after {
  background-image: url('../img/gold-ornament.svg'), url('../img/gold-ornament.svg');
  background-repeat: no-repeat, no-repeat;
  background-position: right 12px top 16px, left 12px bottom 16px;
  background-size: 160px 160px, 160px 160px;
  opacity: 0.45;
}

/* Wrapper de imagem com destaque dourado */
.ornamented-img { position: relative; border-radius: 14px; overflow: hidden; }
.ornamented-img img { display:block; width:100%; height:auto; object-fit: cover; }
.ornamented-img::after { content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; box-shadow: 0 0 0 3px rgba(201,162,39,0.35) inset; }

/* Título com pequeno sublinhado dourado */
.gold-underline { position: relative; display:inline-block; }
.gold-underline::after { content:""; position:absolute; left:0; right:0; bottom:-6px; height:3px; border-radius:2px; background: linear-gradient(90deg, var(--gold-1), var(--gold-2), var(--gold-3)); }

.showcase-grid { display:grid; gap: 1rem; }
.showcase-card { position: relative; overflow: hidden; border-radius: 24px; background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,0.06); }
.showcase-card .media { position:absolute; inset:0; z-index:0; }
.showcase-card .media img { width:100%; height:100%; object-fit:cover; }
.showcase-card::after { content:''; position:absolute; inset:0; z-index:1; background: linear-gradient(180deg, rgba(0,0,0,0.25) 15%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.0) 100%); }
.showcase-card .content { position:absolute; z-index:2; inset:auto 0 0 0; padding: 1.25rem 1.25rem 1.5rem; color:#fff; }
.showcase-card .content .kicker { text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; opacity:.9; }
.showcase-card .content .title { font-family:'Lora', serif; font-weight:700; font-size: clamp(1rem, 2.2vw, 1.4rem); line-height:1.1; }
.showcase-card .content .meta { opacity:.85; }

/* Aspect ratios para variar o layout */
.showcase-card.aspir { aspect-ratio: 16/9; }
.showcase-card.tall { aspect-ratio: 3/4; }
.showcase-card.square { aspect-ratio: 1/1; }

/* Paletas suaves por card */
.showcase-card.theme-pink::after { background: linear-gradient(180deg, rgba(218,173,189,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.0) 100%); }
.showcase-card.theme-blue::after { background: linear-gradient(180deg, rgba(160,184,214,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.0) 100%); }
.showcase-card.theme-olive::after { background: linear-gradient(180deg, rgba(171,180,156,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.0) 100%); }
.showcase-card.theme-sand::after { background: linear-gradient(180deg, rgba(222,205,183,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.0) 100%); }
.showcase-card.theme-mint::after { background: linear-gradient(180deg, rgba(186,217,201,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.0) 100%); }
.showcase-card.theme-black::after { background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.0) 100%); }

/* Grid responsivo com layout tipo mosaico */
@media (max-width: 575.98px) { .showcase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 576px) and (max-width: 767.98px) { .showcase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) and (max-width: 991.98px) { .showcase-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) and (max-width: 1199.98px) { .showcase-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .showcase-grid { grid-template-columns: repeat(5, 1fr); } }

/* Variações de span para criar ritmo visual */
@media (min-width: 992px) {
  .showcase-card.span-2 { grid-column: span 2; }
  .showcase-card.span-3 { grid-column: span 3; }
}

/* Efeito hover suave */
.showcase-card:hover { transform: translateY(-4px); transition: transform .25s ease, box-shadow .25s ease; box-shadow: 0 16px 32px rgba(0,0,0,0.08); }

/* Rolagem horizontal opcional no mobile */
@media (max-width: 576px) {
  .showcase-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; }
  .showcase-card { scroll-snap-align: start; }
}
/* ===== Marquee de imagens (3 linhas com rolagem) ===== */
.section-showcase-marquee { background: var(--bg-soft); }
.marquee-row { position: relative; overflow: hidden; padding: .5rem 0; }
.marquee-row::before,
.marquee-row::after { content:''; position:absolute; top:0; bottom:0; width:8%; z-index:3; pointer-events:none; }
.marquee-row::before { left:0; background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0)); }
.marquee-row::after { right:0; background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0)); }

.marquee-track { display:flex; gap: 1rem; align-items:center; width:max-content; will-change: transform; }
.marquee-row.left .marquee-track { animation: marquee-left var(--speed, 50s) linear infinite; }
.marquee-row.right .marquee-track { animation: marquee-right var(--speed, 50s) linear infinite; }
.marquee-row:hover .marquee-track { animation-play-state: paused; }

.marquee-item { flex: 0 0 auto; border-radius: 18px; overflow:hidden; box-shadow: 0 10px 24px rgba(0,0,0,0.06); background:#000; }
.marquee-item img { display:block; width: auto; height: var(--height, 180px); object-fit: cover; opacity:.95; }

/* alturas por linha */
.marquee-row.row-1 .marquee-item img { --height: 180px; }
.marquee-row.row-2 .marquee-item img { --height: 160px; }
.marquee-row.row-3 .marquee-item img { --height: 180px; }

@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Acessibilidade: reduzir movimento se preferido pelo usuário */
@media (prefers-reduced-motion: reduce) {
  .marquee-row .marquee-track { animation: none; }
}
/* Efeito hover suave */
.showcase-card:hover { transform: translateY(-4px); transition: transform .25s ease, box-shadow .25s ease; box-shadow: 0 16px 32px rgba(0,0,0,0.08); }

/* Rolagem horizontal opcional no mobile */
@media (max-width: 576px) {
  .showcase-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; }
  .showcase-card { scroll-snap-align: start; }
}
/* Ajuste: remover máscaras nas bordas para não parecerem espaços em branco */
.marquee-row::before,
.marquee-row::after { display: none !important; width: 0 !important; }

/* Ajuste: manter rolagem automática mesmo com hover */
.marquee-row:hover .marquee-track { animation-play-state: running !important; }

/* Page background from "Eventos realizados" onwards */
.page-bg-gold { position: relative; background-color: #fff; }
.page-bg-gold::before {
  content: '';
  position: absolute; /* antes estava fixed e cobria a hero */
  inset: 0; /* ocupa apenas a área do wrapper */
  background-image: url('../img/fundo-linhas-douradas.png');
  background-repeat: no-repeat;
  background-position: right top;
  background-size: 620px auto;
  pointer-events: none;
  z-index: 0;
}
.page-bg-gold > * { position: relative; z-index: 1; }
@media (max-width: 992px) { .page-bg-gold::before { background-size: 380px auto; } }
@media (max-width: 576px) { .page-bg-gold::before { background-size: 280px auto; } }
/* Tornar as seções internas transparentes para o ornamento aparecer */
.page-bg-gold section, .page-bg-gold .bg-light { background-color: transparent !important; }
.page-bg-gold .bg-light { background-color: transparent !important; }

/* ====== Eventos Hero (slideshow + chips) ====== */
.events-hero { min-height: 65vh; position: relative; }
.events-hero .hero-media { position: absolute; inset: 0; overflow: hidden; }
.events-hero .hero-media .carousel,
.events-hero .hero-media .carousel-inner,
.events-hero .hero-media .carousel-item { height: 100%; }
.events-hero .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.events-hero .events-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 18, 18, 0.45) 0%, rgba(18, 18, 18, 0.20) 50%, rgba(18, 18, 18, 0.05) 100%); pointer-events: none; }

.events-hero .hero-title { color: #fff; }
.events-hero .text-muted { color: rgba(255,255,255,.85)!important; }

/* Chips animados */
.chip-cloud { position: relative; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .25rem; padding: .35rem .6rem; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(2px); font-size: .85rem; animation: floatY 6s ease-in-out infinite; }
.chip:nth-child(2) { animation-duration: 7s; }
.chip:nth-child(3) { animation-duration: 8s; }
.chip:nth-child(4) { animation-duration: 7.5s; }
.chip:nth-child(5) { animation-duration: 6.5s; }

@keyframes floatY {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

@media (max-width: 991.98px) {
  .events-hero { min-height: 56vh; }
}
/* Remover qualquer overlay/cinza da hero de eventos */
.hero.bg-cover.events-hero::after { content: none !important; background: none !important; display: none !important; }
.events-hero .events-hero-overlay { display: none !important; }

/* Fazer a imagem preencher toda a tela de abertura */
.hero.bg-cover.events-hero { min-height: 100vh; }
@supports (height: 100svh) { .hero.bg-cover.events-hero { min-height: 100svh; } }

/* Garantir que as imagens do carousel cubram toda a altura da hero */
.events-hero .hero-media .carousel-item img { height: 100% !important; max-height: none !important; object-fit: cover; }
/* =====================
   Theme.css — ajustes atuais
   ===================== */

/* Hero: imagem deve cobrir toda a viewport quando houver .no-overlay */
.hero.bg-cover.no-overlay {
  min-height: 100vh;
  min-height: 100svh;
}
.hero.bg-cover.no-overlay::after {
  display: none !important;
  background: none !important;
}
.hero.bg-cover.no-overlay .hero-media,
.hero.bg-cover.no-overlay .hero-media picture,
.hero.bg-cover.no-overlay .hero-media img,
.hero.bg-cover.no-overlay .hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; object-position: center; display: block;
}

/* Garantir que qualquer regra genérica não sobrescreva o comportamento do hero sem overlay */
@media (max-width: 576px) {
  .hero.bg-cover.no-overlay { min-height: 100vh; min-height: 100svh; }
}

/* ===== Showcase de Eventos Realizados (estilo referência Wedy) ===== */
.section-showcase { background: var(--bg-soft); }
.section-showcase .section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; }
.section-showcase .section-head .lead { color: var(--muted-color); }

/* ===== Ornamentação dourada (swooshes) ===== */
:root { --gold-1:#C9A227; --gold-2:#E8D18E; --gold-3:#AF8C1A; }
.gold-bg { position: relative; background-color: #f5f5f5; border-radius: 16px; }
.gold-bg::before,
.gold-bg::after { content:""; position:absolute; inset:0; pointer-events:none; border-radius: inherit; }
/* Coloca dois ornamentos (canto superior esquerdo e inferior direito) */
.gold-bg::before { 
  background-image: url('../img/gold-ornament.svg'), url('../img/gold-ornament.svg');
  background-repeat: no-repeat, no-repeat;
  background-position: left 8px top 8px, right 8px bottom 8px;
  background-size: 220px 220px, 220px 220px;
  opacity: 0.85;
}
/* Coloca mais dois ornamentos discretos (superior direito e inferior esquerdo) */
.gold-bg::after {
  background-image: url('../img/gold-ornament.svg'), url('../img/gold-ornament.svg');
  background-repeat: no-repeat, no-repeat;
  background-position: right 12px top 16px, left 12px bottom 16px;
  background-size: 160px 160px, 160px 160px;
  opacity: 0.45;
}

/* Wrapper de imagem com destaque dourado */
.ornamented-img { position: relative; border-radius: 14px; overflow: hidden; }
.ornamented-img img { display:block; width:100%; height:auto; object-fit: cover; }
.ornamented-img::after { content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; box-shadow: 0 0 0 3px rgba(201,162,39,0.35) inset; }

/* Título com pequeno sublinhado dourado */
.gold-underline { position: relative; display:inline-block; }
.gold-underline::after { content:""; position:absolute; left:0; right:0; bottom:-6px; height:3px; border-radius:2px; background: linear-gradient(90deg, var(--gold-1), var(--gold-2), var(--gold-3)); }

.showcase-grid { display:grid; gap: 1rem; }
.showcase-card { position: relative; overflow: hidden; border-radius: 24px; background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,0.06); }
.showcase-card .media { position:absolute; inset:0; z-index:0; }
.showcase-card .media img { width:100%; height:100%; object-fit:cover; }
.showcase-card::after { content:''; position:absolute; inset:0; z-index:1; background: linear-gradient(180deg, rgba(0,0,0,0.25) 15%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.0) 100%); }
.showcase-card .content { position:absolute; z-index:2; inset:auto 0 0 0; padding: 1.25rem 1.25rem 1.5rem; color:#fff; }
.showcase-card .content .kicker { text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; opacity:.9; }
.showcase-card .content .title { font-family:'Lora', serif; font-weight:700; font-size: clamp(1rem, 2.2vw, 1.4rem); line-height:1.1; }
.showcase-card .content .meta { opacity:.85; }

/* Aspect ratios para variar o layout */
.showcase-card.aspir { aspect-ratio: 16/9; }
.showcase-card.tall { aspect-ratio: 3/4; }
.showcase-card.square { aspect-ratio: 1/1; }

/* Paletas suaves por card */
.showcase-card.theme-pink::after { background: linear-gradient(180deg, rgba(218,173,189,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.0) 100%); }
.showcase-card.theme-blue::after { background: linear-gradient(180deg, rgba(160,184,214,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.0) 100%); }
.showcase-card.theme-olive::after { background: linear-gradient(180deg, rgba(171,180,156,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.0) 100%); }
.showcase-card.theme-sand::after { background: linear-gradient(180deg, rgba(222,205,183,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.0) 100%); }
.showcase-card.theme-mint::after { background: linear-gradient(180deg, rgba(186,217,201,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.0) 100%); }
.showcase-card.theme-black::after { background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.0) 100%); }

/* Grid responsivo com layout tipo mosaico */
@media (max-width: 575.98px) { .showcase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 576px) and (max-width: 767.98px) { .showcase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) and (max-width: 991.98px) { .showcase-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) and (max-width: 1199.98px) { .showcase-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .showcase-grid { grid-template-columns: repeat(5, 1fr); } }

/* Variações de span para criar ritmo visual */
@media (min-width: 992px) {
  .showcase-card.span-2 { grid-column: span 2; }
  .showcase-card.span-3 { grid-column: span 3; }
}

/* Efeito hover suave */
.showcase-card:hover { transform: translateY(-4px); transition: transform .25s ease, box-shadow .25s ease; box-shadow: 0 16px 32px rgba(0,0,0,0.08); }

/* Rolagem horizontal opcional no mobile */
@media (max-width: 576px) {
  .showcase-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; }
  .showcase-card { scroll-snap-align: start; }
}
/* ===== Marquee de imagens (3 linhas com rolagem) ===== */
.section-showcase-marquee { background: var(--bg-soft); }
.marquee-row { position: relative; overflow: hidden; padding: .5rem 0; }
.marquee-row::before,
.marquee-row::after { content:''; position:absolute; top:0; bottom:0; width:8%; z-index:3; pointer-events:none; }
.marquee-row::before { left:0; background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0)); }
.marquee-row::after { right:0; background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0)); }

.marquee-track { display:flex; gap: 1rem; align-items:center; width:max-content; will-change: transform; }
.marquee-row.left .marquee-track { animation: marquee-left var(--speed, 50s) linear infinite; }
.marquee-row.right .marquee-track { animation: marquee-right var(--speed, 50s) linear infinite; }
.marquee-row:hover .marquee-track { animation-play-state: paused; }

.marquee-item { flex: 0 0 auto; border-radius: 18px; overflow:hidden; box-shadow: 0 10px 24px rgba(0,0,0,0.06); background:#000; }
.marquee-item img { display:block; width: auto; height: var(--height, 180px); object-fit: cover; opacity:.95; }

/* alturas por linha */
.marquee-row.row-1 .marquee-item img { --height: 180px; }
.marquee-row.row-2 .marquee-item img { --height: 160px; }
.marquee-row.row-3 .marquee-item img { --height: 180px; }

@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* Acessibilidade: reduzir movimento se preferido pelo usuário */
@media (prefers-reduced-motion: reduce) {
  .marquee-row .marquee-track { animation: none; }
}
/* Efeito hover suave */
.showcase-card:hover { transform: translateY(-4px); transition: transform .25s ease, box-shadow .25s ease; box-shadow: 0 16px 32px rgba(0,0,0,0.08); }

/* Rolagem horizontal opcional no mobile */
@media (max-width: 576px) {
  .showcase-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; }
  .showcase-card { scroll-snap-align: start; }
}
/* Ajuste: remover máscaras nas bordas para não parecerem espaços em branco */
.marquee-row::before,
.marquee-row::after { display: none !important; width: 0 !important; }

/* Ajuste: manter rolagem automática mesmo com hover */
.marquee-row:hover .marquee-track { animation-play-state: running !important; }

/* Page background from "Eventos realizados" onwards */
.page-bg-gold {
  background: #fff url('../img/fundo-linhas-douradas.png') right top no-repeat fixed;
  background-size: 620px auto;
}

@media (max-width: 992px) {
  .page-bg-gold { background-size: 380px auto; }
}
@media (max-width: 576px) {
  .page-bg-gold { background-size: 280px auto; }
}

/* Make inner sections transparent so the background is visible */
.page-bg-gold section { background-color: transparent !important; }
.page-bg-gold .bg-light { background-color: transparent !important; }

/* ====== Eventos Hero (slideshow + chips) ====== */
.events-hero { min-height: 65vh; position: relative; }
.events-hero .hero-media { position: absolute; inset: 0; overflow: hidden; }
.events-hero .hero-media .carousel,
.events-hero .hero-media .carousel-inner,
.events-hero .hero-media .carousel-item { height: 100%; }
.events-hero .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.events-hero .events-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 18, 18, 0.45) 0%, rgba(18, 18, 18, 0.20) 50%, rgba(18, 18, 18, 0.05) 100%); pointer-events: none; }

.events-hero .hero-title { color: #fff; }
.events-hero .text-muted { color: rgba(255,255,255,.85)!important; }

/* Chips animados */
.chip-cloud { position: relative; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .25rem; padding: .35rem .6rem; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(2px); font-size: .85rem; animation: floatY 6s ease-in-out infinite; }
.chip:nth-child(2) { animation-duration: 7s; }
.chip:nth-child(3) { animation-duration: 8s; }
.chip:nth-child(4) { animation-duration: 7.5s; }
.chip:nth-child(5) { animation-duration: 6.5s; }

@keyframes floatY {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

@media (max-width: 991.98px) {
  .events-hero { min-height: 56vh; }
}
/* Remover qualquer overlay/cinza da hero de eventos */
.hero.bg-cover.events-hero::after { content: none !important; background: none !important; display: none !important; }
.events-hero .events-hero-overlay { display: none !important; }

/* Fazer a imagem preencher toda a tela de abertura */
.hero.bg-cover.events-hero { min-height: 100vh; }
@supports (height: 100svh) { .hero.bg-cover.events-hero { min-height: 100svh; } }

/* Garantir que as imagens do carousel cubram toda a altura da hero */
.events-hero .hero-media .carousel-item img { height: 100% !important; max-height: none !important; object-fit: cover; }
/* ===== Texto do hero da Home: branco com borda/contorno preto ===== */
body.home .hero .hero-title {
  color: #fff;
  /* Contorno nativo (Chrome/Safari/Edge) 
  -webkit-text-stroke: -1px #fff;  */
  /* Fallback para Firefox: múltiplas sombras simulando borda 
  text-shadow:
    0 0 1px #ffffff,
    0 1px 2px rgba(255, 255, 255, 0.9),
    0 -1px 2px rgba(255, 255, 255, 0.9),
    1px 0 2px rgba(255, 255, 255, 0.9),
    -1px 0 2px rgba(255, 255, 255, 0.9),
    1px 1px 2px rgba(255, 255, 255, 0.9),
    -1px -1px 2px rgba(255, 255, 255, 0.9);*/
}

body.home .hero .hero-lead {
  color: #fff;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.85),
    0 0 1px rgba(0,0,0,0.85);
}

/* ==== Carrosséis dos cards: mostrar controles e indicadores apenas no hover/focus ==== */
.card .carousel .carousel-control-prev,
.card .carousel .carousel-control-next,
.card .carousel .carousel-indicators { opacity: 0; transition: opacity .2s ease-in-out; }
.card .carousel:hover .carousel-control-prev,
.card .carousel:hover .carousel-control-next,
.card .carousel:hover .carousel-indicators,
.card .carousel:focus-within .carousel-control-prev,
.card .carousel:focus-within .carousel-control-next,
.card .carousel:focus-within .carousel-indicators { opacity: 1; }

/* Melhor gesto no mobile: evitar arrasto da imagem e permitir swipe suave */
.card .carousel { touch-action: pan-y; }
.card .carousel img { -webkit-user-drag: none; user-select: none; }

/* ====== Fix: evitar distorção das imagens nos carrosséis dos cards ====== */
/* Faça o carrossel ocupar 100% da área do wrapper .ratio */
.card .ratio > .carousel,
.card .ratio > .carousel .carousel-inner,
.card .ratio > .carousel .carousel-item { height: 100%; }

/* Garanta que as imagens preencham sem distorcer (cover) */
.card .ratio > .carousel .carousel-item img {
  width: 100%;
  height: 100% !important; /* sobrepõe regras genéricas de altura fixa */
  object-fit: cover;
}

/* No mobile, mantenha altura 100% dentro do ratio ao invés de 250px fixos */
@media (max-width: 768px) {
  .card .ratio > .carousel .carousel-item img { height: 100% !important; }
}
