:root {
  --accent: #c471ed;
  --accent2: #6e8efb;
  --bg: #faf8ff;
  --card: #ffffff;
  --muted: #666
}

/* Compensação global para anchors; usa a variável --header-height se você já tiver *

/* aplicar especificamente na seção Início (id "inicio") */
#inicio {
  scroll-margin-top: calc(var(--header-height) + 6px);
}


* {
  box-sizing: border-box
}

body {
  font-family: Inter, system-ui, Segoe UI, Roboto, Apple Color Emoji, Segoe UI Emoji, Arial;
  background: var(--bg);
  margin: 0;
  color: #111
}

header {
  color: #fff;
  padding: 28px 20px
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px
}

nav {
  display: flex;
  gap: 12px;
  align-items: center
}

nav a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 600
}

.hero {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between
}

.hero .left {
  max-width: 640px
}

.hero h1 {
  margin: 0;
  font-size: clamp(22px, 4vw, 36px)
}

.hero p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.95)
}

section {
  margin: 28px 0
}

.card {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(30, 30, 60, 0.06);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px
}

.full {
  grid-column: 1/-1
}

.gift {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #eee
}

.gift .meta {
  display: flex;
  gap: 12px;
  align-items: center
}

.btn {
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  border: 0;
  cursor: pointer
}

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent)
}

.muted {
  color: var(--muted)
}

form input,
form textarea,
select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e6e6f0
}

.rsvp-row {
  display: flex;
  gap: 8px
}

.rsvp-row>* {
  flex: 1
}

.mural-list {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.mural-item {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #f0eefb;
  background: linear-gradient(180deg, #fff, #fbf9ff)
}

footer {
  padding: 20px;
  text-align: center;
  color: #777
}

@media(max-width:800px) {
  .grid {
    grid-template-columns: 1fr
  }

  .hero {
    flex-direction: column;
    align-items: flex-start
  }
}

/* ===== HERO HEADER COM VÍDEO ===== */
.hero-header {
  position: relative;
  width: 100%;
  height: 90vh;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  overflow: hidden;
}

/* Vídeo de fundo */
.hero-header video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

/* Overlay escuro sobre o vídeo */
.hero-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* ===== NAV ===== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 40px;
  background: #9a01c4e6; /* ou transparente, ou preto */
  backdrop-filter: none;
  transform: translateY(0);
  transition: transform 360ms cubic-bezier(.2,.9,.2,1), box-shadow 300ms;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}


.logo {
  font-family: 'Great Vibes', cursive;
  font-size: 38px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #f8d7ff;
}

/* ===== HERO CONTENT ===== */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-top: auto;
  padding: 80px 60px;
  text-align: left;
}

.hero-content h1 {
  font-family: 'Melinda',"great vibes", cursive;
  font-size: clamp(56px, 8vw, 96px);
  margin-bottom: 10px;
  line-height: 1.1;
  text-shadow: 2px 3px 10px rgba(0, 0, 0, 0.6);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3px;
  font-size: 18px;
}

.hero-content .muted {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 800px) {
  .top-nav {
    flex-direction: column;
    gap: 10px;
    padding: 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-content {
    padding: 60px 20px;
    text-align: center;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 64px;
  }
}

/* ===== RESPONSIVO ===== */
@media (max-width: 800px) {
  .top-nav {
    flex-direction: column;
    gap: 10px;
    padding: 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-content {
    padding: 60px 20px;
    text-align: center;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 64px;
  }
}

@font-face {
  font-family: 'Melinda';
  src: url('/fonts/Melinda.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.guest-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
}

.guest-name {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e6e6f0;
}

.attend-options {
  display: flex;
  gap: 10px;
}

.remove-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #c33;
  transition: transform 0.2s ease;
}

.remove-btn:hover {
  transform: scale(1.1);
}

.autocomplete-wrapper {
  position: relative;
  flex: 1;
}

.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  max-height: 180px;
  overflow-y: auto;
  z-index: 5;
  display: block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.autocomplete-list li {
  padding: 8px 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.autocomplete-list li:hover {
  background: #f5f5ff;
}

.guest-name {
  border: 1px solid #e6e6f0;
  border-radius: 8px;
  outline: none;
  box-shadow: none;
}

.guest-name:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(196, 113, 237, 0.2);
  /* borda roxa suave ao focar */
}

/* garante que a logo seja um elemento flexível e à direita */
.top-nav {
  display: flex;
  justify-content: space-between; /* já estava */
  align-items: center;
  padding: 20px 60px;
  box-sizing: border-box;
}

/* força a ordem: nav-links primeiro, logo por último (direita) */


.logo {          /* faz a logo ficar à direita no flex */
  display: flex;
  align-items: center;
  gap: 10px;
}

/* estilo da imagem da logo */
.logo-img {
  display: block;
  width: 64px;          /* ajuste o tamanho conforme quiser (48-96px são comuns) */
  height: 64px;
  object-fit: cover;    /* mantém aspecto e preenche a área */
  border-radius: 8px;   /* se quiser cantos arredondados; remova se quiser quadrada/perfeita */
   filter: brightness(0) invert(1); /* ← transforma roxo em branco */
}

/* responsividade: em telas pequenas colocamos a logo antes/numa linha separada */
@media (max-width: 800px) {
  .top-nav {
    flex-direction: column;
    gap: 10px;
    padding: 20px;
  }
  /* na versão mobile, deixamos a logo acima (opcional) */
  .nav-links { order: 2; }
  .logo { order: 1; }
  .logo-img {
    width: 72px;
    height: 72px;
  }
}

/* ===== SUAVE FADE DO VÍDEO ===== */
.hero-header video {
  opacity: 0;
  transition: opacity 2s ease-in-out;
  filter:none;
}

.hero-header video.visible {
  opacity: 1;
}

/* Efeito extra de escurecimento suave no final */
.fade-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  z-index: 2;
  pointer-events: none;
}

.mapa a {
  color: inherit;                 /* usa a cor do texto local, não azul */
  text-decoration: none;          /* remove o sublinhado padrão */
  position: relative;             /* necessário pro pseudo-elemento funcionar */
  font-weight: 500;               /* deixa o texto um pouco mais forte */
  transition: color 0.3s ease;    /* animação suave da cor */
}

/* cria a linha que aparece ao passar o mouse */
.mapa a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: currentColor; /* usa a cor atual do texto */
  transition: width 0.3s ease;
}

/* efeito no hover */
.mapa a:hover::after {
  width: 100%;
}

/* ===== SMOOTH SCROLL & FIXED NAV ===== */
/* Smooth behavior for anchor navigation (basic) */
html {
  scroll-behavior: smooth;
}

/* Make top nav fixed and stylized for show/hide on scroll */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 40px; /* ajusta se quiser mais/menos espaço */
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  backdrop-filter: blur(6px);
  transform: translateY(0);
  transition: transform 360ms cubic-bezier(.2,.9,.2,1), box-shadow 300ms;
  z-index: 9999;
  box-shadow: none;
}

/* hidden state (when scrolling down) */
.top-nav.hidden {
  transform: translateY(-110%);
  box-shadow: none;
}

/* visible state (when scrolling up) : subtle shadow */
.top-nav.visible {
  transform: translateY(0);
  box-shadow: 0 8px 24px rgba(20,20,40,0.08);
}

/* ensure hero content isn't hidden under fixed nav */
.hero-content {
  margin-top: 36px; /* espaço interno para não colidir com nav */
}

/* push the main content down so fixed nav doesn't cover sections when linking */
main.container {
  padding-top: 88px; /* ajuste conforme a altura real do seu nav (padrão ~88px) */
}

/* Make link hover feel smooth */
.nav-links a {
  transition: color 220ms ease, transform 220ms ease;
}
.nav-links a:hover {
  transform: translateY(-2px);
}

/* When a link is active (clicked), give subtle focus */
.nav-links a:active {
  transform: translateY(0);
}

/* Slightly smoother video fade (already had, but reforçar) */
.hero-header video {
  transition: opacity 1200ms cubic-bezier(.2,.9,.2,1), transform 900ms ease;
  will-change: opacity, transform;
}

/* Optional: tiny shadow under hero header when scrolled */
.header-shadow {
  box-shadow: 0 8px 30px rgba(10,10,30,0.06);
}

/* ===== NAV TRANSPARENTE NO TOPO / ROXA AO SUBIR ===== */

/* estado inicial: transparente */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 40px;
  background: transparent;
  backdrop-filter: none;
  transform: translateY(0);
  transition:
    background 300ms ease,
    backdrop-filter 300ms ease,
    transform 360ms cubic-bezier(.2,.9,.2,1),
    box-shadow 300ms ease;
  z-index: 9999;
  box-shadow: none;
}

/* quando o usuário rola para baixo -> nav sobe e some */
.top-nav.hidden {
  transform: translateY(-110%);
}

/* quando o usuário rola para cima -> nav aparece com fundo roxo */
.top-nav.scrolled-up {
  background: rgba(196, 113, 237, 0.55); /* roxo translúcido */
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* quando chegar no topo novamente: volta a ficar transparente */
.top-nav.at-top {
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

/* corrige o deslocamento do conteúdo por causa do nav fixo */
main.container {
  padding-top: 88px; /* ajuste conforme o tamanho do seu nav real */
}

/* ===== Timeline / Carrossel (4 itens por página, 16 fotos total) ===== */
.timeline-section .history-intro { margin-bottom: 18px; color: #333; }

.timeline-wrap { width:100%; overflow:hidden; position:relative; }
.timeline-carousel {
  display:flex;
  flex-wrap:nowrap;            /* evita quebra */
transition: transform 900ms cubic-bezier(.25,.8,.25,1); /* bem suave */
  will-change: transform;
}

/* cada grupo é uma "página" ocupando 100% do container */
.timeline-group {
  flex: 0 0 100%;
  display:flex;
  gap:18px;
  justify-content:center;
  align-items:center;
  padding:24px 10px;
  box-sizing:border-box;
  position:relative;
}

/* linha do tempo sutil */
.timeline-group::before {
  content:"";
  position:absolute;
  left:6%;
  right:6%;
  height:2px;
  top:50%;
  background: linear-gradient(90deg, rgba(0,0,0,0.06), rgba(0,0,0,0.04));
  z-index:0;
  border-radius:2px;
}

/* itens (4 por grupo) */
.timeline-item {
  width: calc((100% - 3 * 18px) / 4); /* 4 itens por página */
  max-width: 240px;
  background:#fff;
  padding:8px;
  border-radius:8px;
  border:6px solid #fff;
  box-shadow: 0 10px 30px rgba(10,10,30,0.08);
  position:relative;
  transform-origin:center;
  z-index:2;
  text-align:center;
}

.timeline-item img {
  display:block;
  width:100%;
  height:140px;
  object-fit:cover;
  border-radius:6px;
}

.timeline-item figcaption {
  margin-top:8px;
  font-size:13px;
  color:#444;
}

/* rotações esporádicas para o visual "polaroid" */
.timeline-item:nth-child(1) { transform: rotate(-3deg); margin-top:-18px; }
.timeline-item:nth-child(2) { transform: rotate(2deg); margin-top:8px; }
.timeline-item:nth-child(3) { transform: rotate(-1deg); margin-top:-6px; }
.timeline-item:nth-child(4) { transform: rotate(3deg); margin-top:14px; }

/* controles */
.timeline-controls {
   display:flex;
    justify-content:center; 
    align-items:center; 
    gap:12px; 
    margin-top:12px;
  
  }
.timeline-dots { display:flex; gap:8px; align-items:center; }
.timeline-dots button {
  width:10px; height:10px; border-radius:50%; border:none;
  background: rgba(0,0,0,0.12); transition:transform 180ms ease, background 180ms ease; cursor:pointer;
}
.timeline-dots button.active { background: var(--accent); transform: scale(1.25); border-radius: 50%; }

/* responsivo: 3 itens por página em medium, 2 em mobile */

@media (max-width:600px) {
  .timeline-item { width: calc((100% - 1 * 8px) / 2); max-width:160px; }
}

/* ===== Correções: dots, botões e largura do container ===== */

/* Aumenta a largura máxima do container do site */
.container {
  max-width: 1200px; /* aumente para 1300px se quiser ainda mais largo */
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Garantir que as bolinhas fiquem pequenas (dots de paginação) */
.timeline-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.12);
  transition: transform 180ms ease, background 180ms ease;
  cursor: pointer;
  box-shadow: none; /* remove qualquer sombra indesejada */
}
.timeline-dots button.active {
  background: var(--accent);
  transform: scale(1.25);
}

/* Estilo específico só para os botões Prev/Next (não afeta as dots)
   Usamos IDs para evitar que regras genéricas alterem as bolinhas */
#timelinePrev,
#timelineNext {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;           /* sem preenchimento */
  border: 2px solid var(--accent);   /* borda roxa */
  color: var(--accent);              /* seta roxa */
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

/* hover: sutil destaque (borda levemente mais escura e leve scale) */
#timelinePrev:hover,
#timelineNext:hover {
  transform: scale(1.08);
  border-color: var(--accent2);
  color: var(--accent2);
}

/* quando desabilitado (início/fim) */
#timelinePrev:disabled,
#timelineNext:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* caso exista regra genérica anterior que tornava .timeline-controls button grande,
   a especificidade pelos IDs acima garante que estes estilos prevaleçam. */
/* Arredondar apenas as imagens da seção Localização */
#localizacao img {
  border-radius: 10px;   /* ajuste o valor para mais ou menos arredondado */
  overflow: hidden;
}

/* ===== Dropdown Presentes (header) ===== */
.nav-links { display:flex; gap:18px; align-items:center; }

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown .dropdown-toggle {
  background: transparent;
  border: none;
  color: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
}

/* menu dropdown (invisível por padrão) */
.nav-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(10,10,30,0.12);
  padding: 8px;
  display: none;
  flex-direction: column;
  z-index: 99999;
  border: 1px solid rgba(0,0,0,0.04);
}

/* link dentro do dropdown */
.nav-dropdown .dropdown-item {
  display: block;
  padding: 10px 12px;
  color: #3a2a4a;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: background 160ms ease, color 160ms ease;
}
.nav-dropdown .dropdown-item:hover {
  background: rgba(196,113,237,0.08);
  color: var(--accent);
}

/* show dropdown on hover (desktop) */
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: flex;
}

/* mobile: toggle class 'open' via JS (handled in presents.html too) */
.nav-dropdown.open .dropdown-menu { display:flex; }

.section-default {
  max-width: 1100px;
  margin: 40px auto;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(0,0,0,0.08);
}

/* NAV - uniformizar tamanho e alinhamento dos itens (inclui dropdown) */
.top-nav .nav {
  display:flex;
  gap: 12px;
  align-items: center;
}

.top-nav .nav a,
.top-nav .nav .dropdown-toggle {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  font-size: 15px;         /* ajuste se suas outras letras são maiores/menores */
  line-height: 1;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  min-height: 40px;        /* garante alinhamento vertical */
  box-sizing: border-box;
}

/* garante que dropdown não quebre a altura do nav */
.top-nav .nav-dropdown { display: inline-flex; align-items: center; }

/* se "Presentes" tiver uma classe específica, por exemplo .nav-item-presentes,
   você pode forçar o mesmo tamanho com: */
.top-nav .nav-item-presentes > a {
  padding: 10px 14px;
}

/* Força alinhamento do texto (caso esteja desalinhado verticalmente) */
.top-nav .nav a span, .top-nav .nav .dropdown-toggle span {
  display:inline-block;
  transform: translateY(0); /* reset que pode neutralizar offsets */
}

/* Estilo extra para dropdown-menu alinhado com o botão */
.top-nav .nav-dropdown .dropdown-menu {
  margin-top: 6px;
  transform-origin: top center;
}

/* opcional: se o botão Presentes estiver menor por conta de font-weight, iguala o peso */
.top-nav .nav a, .top-nav .nav .dropdown-toggle { font-weight: 500; }

/* FLIP CARD para timeline */
.timeline-item { perspective: 900px; }
.flip-card { width:100%; height:100%; cursor:pointer; outline:none; }
.flip-inner {
  transition: transform 600ms cubic-bezier(.2,.9,.3,1);
  transform-style: preserve-3d;
  position: relative;
}
.flip-front, .flip-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  position: absolute;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:8px;
  box-sizing:border-box;
}
.flip-front img { width:100%; height:140px; object-fit:cover; border-radius:6px; display:block; }
.flip-back {
  transform: rotateY(180deg);
  background:#fff;
  border-radius:6px;
  padding:12px;
  color:#333;
  text-align:center;
  box-shadow: 0 10px 30px rgba(10,10,30,0.06);
}
.flip-card.is-flipped .flip-inner { transform: rotateY(180deg); }

/* Ajustes do flip para manter moldura e legenda legível */
.timeline-item { perspective: 900px; }
.flip-card { width:100%; height:100%; cursor:pointer; outline:none; }
.flip-inner {
  transition: transform 600ms cubic-bezier(.2,.9,.3,1);
  transform-style: preserve-3d;
  position: relative;
}
.flip-front, .flip-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  position: absolute;
  inset: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:8px;
  box-sizing:border-box;
  overflow: hidden; /* importante: mantém legenda/moldura dentro */
  border-radius:8px;
  border: 6px solid #f5f1ee; /* cor da moldura — ajuste se quiser */
  background-clip: padding-box;
  box-shadow: 0 6px 18px rgba(10,10,30,0.06);
}
.flip-front img {
  width:100%;
  height:140px;
  object-fit:cover;
  border-radius:4px;
  display:block;
  /* para a imagem não cobrir a moldura visualmente, reduzimos seu tamanho interno */
  box-sizing:border-box;
}
.flip-back {
  transform: rotateY(180deg);
  background: #fff;
  padding:14px;
  color:#222;
}
.flip-back figcaption {
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  white-space: normal;          /* permite quebra */
  word-break: break-word;       /* evita overflow sem quebra */
  overflow-wrap: anywhere;
  line-height:1.28;
  font-size:0.95rem;
  padding:4px;
}
.flip-card.is-flipped .flip-inner { transform: rotateY(180deg); }

/* ==== Ajustes para o cartão flip da timeline: usar MESMA moldura e manter legenda dentro ==== */
/* alvo apenas os .timeline-item que contêm .flip-card para não afetar outros cards */
.timeline-item .flip-card {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
}

/* flip-inner mantém 3D mas garante altura mínima igual à imagem */
.timeline-item > .flip-card .flip-inner {
  position: relative;        /* já estava, reafirmamos */
  transform-style: preserve-3d;
  transition: transform 600ms cubic-bezier(.2,.9,.3,1);
  min-height: 140px;        /* faz o container ter mesma altura que as imagens padrão */
  box-sizing: border-box;
  overflow: visible;
}

/* removemos bordas duplicadas nas faces e colocamos overflow hidden
   para que a legenda/back não "escape" para fora da moldura */
.timeline-item > .flip-card .flip-front,
.timeline-item > .flip-card .flip-back {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;               /* padding movido pro .flip-card para uniformizar */
  box-sizing: border-box;
  border: none;             /* evita a borda dupla (timeline-item já tem border) */
  border-radius: 6px;       /* mesma curva das imagens */
  overflow: hidden;         /* legenda/back fica dentro da moldura */
  background: #fff;         /* garante fundo parecido com os outros cards */
  backface-visibility: hidden;
}

/* imagem frontal com mesmo comportamento dos outros .timeline-item img */
.timeline-item > .flip-card .flip-front img {
  display: block;
  width: 100%;
  height: 140px;            /* mesmo tamanho das outras imagens na timeline */
  object-fit: cover;
  border-radius: 4px;       /* leve arredondamento interno à moldura */
  box-sizing: border-box;
  margin: 0;
}

/* face traseira (legenda) — fica centralizada e dentro da moldura */
.timeline-item > .flip-card .flip-back {
  transform: rotateY(180deg);
  padding: 12px;
  color: #333;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* figcaption dentro do back — controla quebras e overflow */
.timeline-item > .flip-card .flip-back figcaption {
  margin: 0;
  padding: 4px 6px;
  font-size: 0.95rem;
  line-height: 1.28;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* manter o comportamento de flip (classe is-flipped já adicionada pelo JS) */
.timeline-item > .flip-card.is-flipped .flip-inner {
  transform: rotateY(180deg);
}

.alt{
  color: var(--muted);
  font-size: 30px;
}

#rsvp p{
  font-size: 1.1rem ;
}

/* ===== COUNTDOWN (HOME) ===== */

.countdown-wrap {
  position: relative;
  margin: 40px auto 0;
  text-align: center;
}

.countdown-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(48px, 5vw, 62px);
  color: var(--accent);
  margin-bottom: 20px;
}

/* grid dos cards */
.countdown-grid {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* card individual */
.time-card {
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 5px 17px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform .3s ease;
}

.time-card:hover {
  transform: translateY(-4px);
}

/* número */
.time-number {
  font-size: 42px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

/* legenda */
.time-label {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--accent);
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  .time-card {
    width: 90px;
    height: 90px;
  }

  .time-number {
    font-size: 30px;
  }

  .time-label {
    font-size: 10px;
  }
}

/* ===== MURAL DE MENSAGENS (NOVO) ===== */

.mural-section {
  max-width: 1000px;
  margin: 60px auto;
  padding: 32px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 10px 32px rgba(30,30,60,0.08);
}

.mural-section h2 {
  text-align: center;
  margin-bottom: 6px;
}

.mural-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 28px;
}

/* ===== FORM ===== */

.mural-form {
  max-width: 520px;
  margin: 0 auto 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mural-form input,
.mural-form textarea {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e6e6f0;
  font-family: inherit;
  font-size: 15px;
}

.mural-form textarea {
  resize: none;
  min-height: 90px;
}

.mural-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#muralContador {
  font-size: 13px;
  color: var(--muted);
}

.mural-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.mural-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(196,113,237,.35);
}

/* ===== GRID DE MENSAGENS ===== */

.mural-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.mural-card {
  background: linear-gradient(180deg, #fff, #fbf9ff);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(30,30,60,.08);
  border: 1px solid #f0eefb;
}

.mural-card strong {
  display: block;
  color: var(--accent);
  margin-bottom: 6px;
  font-size: 14px;
}

.mural-card p {
  margin: 0;
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

/* ===== MOBILE ===== */

@media (max-width: 600px) {
  .mural-section {
    padding: 24px 18px;
  }

  .mural-form {
    max-width: 100%;
  }
}

/* ===== MURAL – LAYOUT PADRÃO DO SITE ===== */

.mural-form-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 28px;
}

/* coluna esquerda */
.mural-col-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

/* coluna direita */
.mural-col-right textarea {
  width: 100%;
  min-height: 120px;
  resize: none;
}

/* inputs */
#muralNome,
#muralTexto {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e6e6f0;
  font-family: inherit;
}

/* contador */
#muralContador {
  font-size: 13px;
}

/* grid das mensagens */
.mural-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

/* card de mensagem */
.mural-card {
  background: linear-gradient(180deg, #fff, #fbf9ff);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #f0eefb;
  box-shadow: 0 6px 20px rgba(30,30,60,.06);
}

.mural-card strong {
  display: block;
  color: var(--accent);
  margin-bottom: 6px;
  font-size: 14px;
}

.mural-card p {
  margin: 0;
  font-size: 14px;
  color: #333;
}

/* ===== MOBILE ===== */
@media (max-width: 700px) {
  .mural-form-row {
    grid-template-columns: 1fr;
  }
}

/* ===== MAPA PREVIEW ===== */

/* ===== MAPA GOOGLE (ESTILO CLIENTE) ===== */

.mapa-btn {
  display: inline-block;
  margin-bottom: 16px;
  text-decoration: none;
}

.mapa-embed {
  width: 260px;
  height: 260px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(30,30,60,0.12);
  margin-bottom: 18px;
  text-decoration: none;
}


.mapa-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;

}

@media (max-width: 600px) {
  .mapa-embed {
    width: 100%;
    height: 300px;
  }
}

/* ===== SPOTIFY PLAYER FIXO ===== */

/* ===== SPOTIFY PLAYER FIXO ===== */

.spotify-player {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 320px;
  height: 80px;
  z-index: 9999;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  background: #000;
}

.spotify-player iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Mobile */
@media (max-width: 600px) {
  .spotify-player {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 12px;
    width: 95%;
  }
}

@media (max-width: 360px) {
  body {
    font-size: 0.95rem;
  }

  .presente-card {
    padding: 0.8rem;
  }
}

.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: #ffff;
  cursor: pointer;
}




.timeline-item {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.timeline-item img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {

  .timeline-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .timeline-item {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .timeline-item img {
    position: static;
    width: 100%;
    height: auto;
    object-fit: unset;
    display: block;
  }

  .timeline-controls {
    display: none;
  }
}

/* ===== MENU HAMBURGUER - MOBILE ===== */
@media (max-width: 768px) {

  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
     box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  }

  .nav-links {
    display: none;
    flex-direction:column;
    background: #c471eda2;
    position: absolute;
    top: 100%;
    width: 60%;
    align-items: center;
    justify-content: center;
    border-radius: 8%;
  }

  .nav-links.active {
    display: flex;
  }
}

/* ===== TIMELINE / FOTOS – CORREÇÃO DEFINITIVA ===== */

