/* Variáveis de Cores (Paleta Terracota) */
/* ==========================================
   VARIÁVEIS DE CORES (Paleta Padrão: Verde Sálvia & Areia)
   ========================================== */
:root {
    /* Substituímos os tons terracota pelos tons Sálvia/Oliva mantendo o nome das variáveis 
     para não quebrar o seu CSS atual */
    --terracota-dark: #2C3E2D;
    /* Verde Oliva Escuro (Títulos principais) */
    --terracota-medium: #5A7258;
    /* Verde Sálvia (Botões e destaques) */
    --terracota-light: #C2B280;
    /* Areia / Dourado Fosco (Linhas e detalhes) */

    --creme: #FDFBF7;
    /* Off-white mais neutro/frio */
    --off-white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;

    --accent-color: #2C3E2D;
    /* Cor principal de botões de ação */
}

/* Reset Básico e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Evita arrastar para o lado no telemóvel */
html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.4;
    color: var(--text-dark);
    background-color: var(--off-white);
}

/* Trava a rolagem do fundo quando o menu está aberto */
body.no-scroll {
    overflow: hidden !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tipografia */
h1,
h2,
h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    color: var(--terracota-dark);
    margin-bottom: 15px;
}

h1 {
    font-size: 4rem;
    text-align: center;
    color: var(--creme);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--terracota-light), var(--terracota-medium));
    margin: 15px auto 0;
}

h3 {
    font-size: 2rem;
    color: var(--terracota-medium);
    margin-bottom: 10px;
    transition: color 0.4s ease;
}

h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    color: var(--terracota-dark);
    font-size: 1.5rem;
}

p {
    margin-bottom: 12px;
}

/* Seções */
.section-padded {
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
}

.bg-light {
    background: linear-gradient(45deg, var(--creme), var(--off-white), var(--creme));
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Componentes (Hero, Spotify, Botões, etc.) */
/* ==========================================
   SEÇÃO HERO (COM EFEITO KEN BURNS)
   ========================================== */
.hero {
    color: var(--creme);
    text-align: center;
    padding: 150px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* Impede que a imagem vaze da tela ao dar o zoom */
}

/* A imagem de fundo agora fica aqui para poder ser animada */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://plus.unsplash.com/premium_photo-1661322714570-40cdc1a2fa46?q=80&w=687&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center top/cover;
    z-index: 0;
    /* A mágica do Ken Burns: dura 25s, suave, e faz o efeito de vai e vem */
    animation: kenBurns 25s ease-in-out infinite alternate;
}

/* O filtro escuro (Overlay) passa para o ::after */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Mantém a legibilidade do texto */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Garante que os textos e botões fiquem acima da imagem animada */
}

/* Estilo para o logótipo na secção principal (Hero) */
.hero-logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
}

/* A Animação do Zoom */
@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
        /* Aumenta 15% do tamanho original suavemente */
    }
}

.tagline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--creme);
}

.countdown {
    font-size: 2em;
    font-weight: bold;
    margin-top: 20px;
    color: var(--creme);
    display: flex;
    justify-content: center;
    gap: 20px;
}

.countdown span {
    text-align: center;
}

.countdown span div {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.5em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spotify-embed-container {
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.spotify-embed-container iframe {
    width: 100%;
    display: block;
}

/* ==========================================
   BOTÕES REFINADOS (Estilo Editorial)
   ========================================== */
.btn-submit,
.btn-scroll {
    display: inline-block;
    background-color: var(--accent-color);
    color: white !important;
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 6px;
    /* Cantos levemente arredondados, mais sérios */
    margin-top: 30px;
    /* Transição suave e longa para cor, movimento e sombra */
    transition: background-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
    border: none;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 700;
    letter-spacing: 1px;
    /* Maior espaçamento entre as letras (elegância) */
    text-transform: uppercase;
    /* Letras maiúsculas ajudam no visual premium */
}

.btn-submit:hover,
.btn-scroll:hover {
    background-color: var(--terracota-dark);
    transform: translateY(-3px);
    /* Flutua levemente para cima em vez de esticar */
    /* Sombra suave com o tom terracota para dar um ar de luxo */
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.25);
}

/* Garante que não tenha mais resquícios da animação antiga no celular */
@media (max-width: 480px) {

    .btn-submit:hover,
    .btn-scroll:hover {
        transform: translateY(-2px);
    }
}

/* Navbar */
.navbar {
    background: transparent;
    border-bottom: 1px solid transparent;
    padding: 25px 0;
    /* Mais espaçado e elegante quando está no topo */
    position: fixed;
    /* Fixa no topo desde o início, sobrepondo a imagem */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Transição super suave para todas as propriedades */
    transition: background-color 0.4s ease, padding 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

/* Classe ativada pelo JS ao rolar a página para baixo */
.navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
    /* Fundo escuro levemente transparente */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 250, 240, 0.15);
    padding: 10px 0;
    /* Fica mais compacta para não roubar espaço de leitura */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--creme);
    text-decoration: none;
    font-weight: 700;
}

.nav-links ul {
    list-style: none;
    text-align: center;
    margin: 0;
    padding: 0;
}

.nav-links ul li {
    display: inline-block;
    margin: 0 12px;
}

.nav-links ul li a {
    color: var(--creme);
    text-decoration: none;
    font-weight: 500;
    font-size: 1em;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.nav-links ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--terracota-light);
    transition: width 0.4s ease;
}

.nav-links ul li a:hover::after,
.nav-links ul li a.active::after {
    width: 100%;
    left: 0;
}

.nav-links ul li a:hover,
.nav-links ul li a.active {
    color: var(--terracota-light);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--creme);
    border-radius: 3px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

/* Seção Nossa História */
.historia-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.historia-video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.historia-video video,
.historia-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.citacoes-wrapper {
    height: 380px;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

.citacoes-wrapper::-webkit-scrollbar {
    display: none;
}

.citacoes-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 140px 10px;
}

.card-citacao {
    background-color: white;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--terracota-medium);
    position: relative;
    text-align: left;
    scroll-snap-align: center;
    transform-origin: center center;
    will-change: transform, opacity;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-citacao:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--terracota-dark);
}

.quote-mark {
    position: absolute;
    top: -15px;
    right: 15px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 6rem;
    color: var(--terracota-light);
    opacity: 0.15;
    line-height: 1;
    user-select: none;
}

.citacao-texto {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    line-height: 1.4;
}

.citacao-autor {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--terracota-dark);
    display: block;
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.historia-texto {
    text-align: left;
}

.verse-text {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    margin-top: 30px;
    font-size: 1.5rem;
    color: var(--terracota-dark);
    text-align: center;
}

/* ==========================================
   NOVO FORMATO: LISTA DE PRESENTES HORIZONTAL
   ========================================== */
.gift-carousel-container {
    position: relative;
    margin-top: 40px;
    max-width: 750px;
    /* Sua alteração perfeita para o PC! */
    margin-left: auto;
    margin-right: auto;
}

.gifts-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* AUMENTADO: Mais respiro e elegância entre os itens */
    max-height: 540px;
    /* Levemente ajustado para compensar o novo espaçamento */
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 12px;
    padding-bottom: 20px;
}

/* Customizando a barra de rolagem dos presentes */
.gifts-grid::-webkit-scrollbar {
    width: 6px;
}

.gifts-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.gifts-grid::-webkit-scrollbar-thumb {
    background: var(--terracota-medium);
    border-radius: 8px;
}

/* A MÁGICA AQUI: Desativa as caixas do carrossel antigo para alinhar tudo perfeitamente */
.gift-slide {
    display: contents;
}

/* Força a exibição de TODOS os presentes (ignora o photo-hidden) */
.gift-item.gift-hidden {
    display: flex !important;
}

/* Esconde o botão "Ver Mais" antigo, pois a rolagem agora é natural */
#load-more-gifts {
    display: none !important;
}

/* Esconde as setas laterais do antigo carrossel do PC */
.carousel-btn {
    display: none !important;
}

/* O CARD HORIZONTAL EM SI */
.gift-item {
    display: flex !important;
    flex-direction: row;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    width: 100%;
    height: 140px;
    flex-shrink: 0;
    /* Impede que os cards sejam esmagados ou fiquem irregulares */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gift-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.gift-img {
    width: 38%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    /* Mãozinha indicando que pode clicar */
    transition: transform 0.4s ease, filter 0.3s ease;
}

.gift-img:hover {
    transform: scale(1.08);
    /* Dá um zoom suave na imagem por dentro da caixa */
    filter: brightness(0.9);
    /* Escurece de leve para destacar */
}

.gift-overlay {
    position: static;
    /* Remove a sobreposição escura */
    background: none;
    width: 62%;
    /* O texto ocupa a parte direita */
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.gift-overlay h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--terracota-dark);
    /* Título agora é escuro */
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.gift-overlay p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    /* Preço com cor de texto normal */
    margin: 0 0 12px 0;
}

.gift-buttons {
    display: flex;
    flex-direction: row;
    /* Botões ficam lado a lado */
    gap: 10px;
    width: 100%;
}

.btn-gift {
    flex: 1;
    background-color: var(--terracota-medium);
    color: white;
    padding: 8px 0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    /* Transição atualizada com box-shadow e transform */
    transition: background-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
    width: 100%;
}

.btn-gift:hover {
    background-color: var(--terracota-dark);
    transform: translateY(-2px);
    /* Flutuação delicada */
    box-shadow: 0 6px 15px rgba(139, 69, 19, 0.2);
}


.btn-comprar {
    background-color: transparent;
    border: 1.5px solid var(--terracota-medium);
    color: var(--terracota-medium);
}

.btn-comprar:hover {
    background-color: var(--terracota-medium);
    border-color: var(--terracota-medium);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(139, 69, 19, 0.2);
}

/* Área Oculta do PIX */
.pix-info-hidden {
    display: none;
    margin-top: 40px;
    padding: 30px;
    background-color: var(--off-white);
    border: 2px dashed var(--terracota-medium);
    border-radius: 8px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 0.5s;
}

.pix-qrcode {
    max-width: 200px;
    margin: 20px auto;
    display: block;
}


/* RSVP & Formulários */
.form-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 40px auto 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 800px;
}

.form-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Galeria de Fotos */
.gallery-grid {
    column-count: 3;
    column-gap: 15px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    break-inside: avoid;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.gallery-item {
    width: 100%;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* O zoom suave acontece na foto quando passa o mouse no wrapper */
.gallery-item-wrapper:hover .gallery-item {
    transform: scale(1.05);
    filter: brightness(0.85);
}

/* A Legenda do Fotógrafo */
/* A Legenda do Fotógrafo */
.photo-credit {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    /* pointer-events: none; FOI REMOVIDO PARA PERMITIR O CLIQUE */
    letter-spacing: 1px;
    z-index: 2;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    /* Remove o sublinhado padrão de links */
    transition: color 0.3s ease;
}

/* Efeito ao passar o mouse sobre o @ */
.photo-credit:hover {
    color: var(--terracota-light);
}

/* Para garantir que o link fique bonito dentro da foto aberta também */
.modal-caption a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.modal-caption a:hover {
    color: var(--terracota-light);
}

.photo-hidden {
    display: none !important;
}

#load-more-photos {
    display: none;
    margin: 30px auto;
    clear: both;
}

#load-more-photos {
    display: none;
    margin: 30px auto;
    clear: both;
}

.upload-section {
    margin-top: 50px;
    background-color: var(--creme);
    padding: 40px;
    border-radius: 8px;
}

/* ==========================================
   FOOTER (Rodapé Editorial)
   ========================================== */
.footer {
    /* Substituímos o terracota escuro por um tom de café/carvão quase preto. 
     Fica MUITO mais elegante e contrasta melhor com a paleta. */
    background-color: #1a1614;
    color: var(--creme);
    text-align: center;
    padding: 60px 20px 40px;
    /* Mais espaço para "respirar" */
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--terracota-light);
    margin-bottom: 20px;
    font-weight: 400;
    /* Peso normal, sem negrito, para mais leveza */
}

/* Linhazinha sutil de separação */
.footer-divider {
    width: 40px;
    height: 1px;
    background-color: rgba(253, 245, 230, 0.15);
    /* Creme bem transparente */
    margin: 0 auto 20px auto;
}

.footer-copy {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    /* Bem pequeno */
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Muito espaçado = elegância */
    opacity: 0.6;
    /* Deixa o texto quase como uma marca d'água */
    margin-bottom: 12px;
}

.footer-love {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: rgba(253, 245, 230, 0.7);
}

.footer-love span {
    color: var(--terracota-medium);
    font-style: normal;
    font-size: 1.1rem;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--terracota-medium);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    text-decoration: none;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* ==========================================
   CRÉDITOS DO DESENVOLVEDOR (NÓS)
   ========================================== */
.developer-credits {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.05); /* Linha muito subtil */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.developer-credits p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5); /* Quase uma marca d'água */
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.developer-credits strong {
  color: var(--terracota-light); /* Dá destaque ao seu nome */
  font-weight: 600;
}

.dev-links {
  display: flex;
  gap: 20px;
}

.dev-links a {
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease, transform 0.3s ease;
}

.dev-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor; /* O SVG herda a cor do link */
}

/* Efeito de hover elegante */
.dev-links a:hover {
  color: var(--terracota-light);
  transform: translateY(-3px); /* Dá um pulinho suave para cima */
}

/* Modal (Lightbox) da Galeria */
.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.9);
    animation: fadeIn 0.5s;
    align-items: center;
    justify-content: center;
}

#modal-image {
    max-height: 85vh;
    max-width: 90vw;
    object-fit: contain;
    animation: zoomIn 0.5s;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10;
}

.modal-caption {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 0;
    position: absolute;
    bottom: 25px;
    /* Deixa um respiro na parte inferior */
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 500;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9);
    /* Sombra forte para leitura fácil */
    z-index: 10;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
    }

    to {
        transform: scale(1);
    }
}

.modal .prev,
.modal .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
}

.modal .prev {
    left: 2vw;
}

.modal .next {
    right: 2vw;
    border-radius: 3px 0 0 3px;
}

.modal .prev:hover,
.modal .next:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Mural de Mensagens */
.message-form {
    max-width: 600px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-form input,
.message-form textarea {
    padding: 15px;
    border: 1px solid var(--terracota-light);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
}

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

.mural-container {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.message-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--terracota-medium);
    text-align: left;
}

.message-card h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--terracota-dark);
}

.message-card p {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.95rem;
}

.btn-delete {
    background: none;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 10px;
    padding: 5px;
    opacity: 0.6;
    transition: 0.3s;
}

.btn-delete:hover {
    opacity: 1;
    text-decoration: underline;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.message-date {
    font-size: 0.75rem;
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    opacity: 0.8;
}

/* Modal de Entrega */
#delivery-modal .delivery-content {
    background-color: var(--off-white);
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: zoomIn 0.4s;
}

#delivery-modal h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    color: var(--terracota-dark);
    margin-bottom: 15px;
}

#delivery-modal p {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

.address-box {
    background-color: white;
    border: 1.5px dashed var(--terracota-medium);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    color: var(--terracota-dark);
    font-size: 1.1rem;
}

.close-delivery-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10;
}

/* RSVP Integrado */
.rsvp-container {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--terracota-medium);
    max-width: 600px;
    margin: 40px auto 0;
    text-align: center;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
    margin: 10px 0 20px 0;
}

.radio-group label {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.radio-group input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--terracota-dark);
}

/* Tela de Bloqueio (Senha) - COM FOTO E EFEITO VIDRO */
body.locked {
    overflow: hidden !important;
}

/* Tela de Bloqueio (Senha) - COM FOTO E EFEITO VIDRO */
body.locked {
  overflow: hidden !important;
}

.access-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  
  /* 1. Cor sólida de segurança (Esconde o site se a imagem falhar) */
  background-color: var(--terracota-dark); 
  
  /* 2. Imagem de fundo com gradiente escurecedor (Substitua a URL pela foto do novo casal) */
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1607007657691-d504b980bbb1?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  /* 3. Desfoque forte para garantir que nada fique legível no fundo */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  
  transition: opacity 0.5s ease;
}

.access-content {
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    animation: zoomIn 0.5s;
}

.access-content h2 {
    color: var(--off-white);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.access-content p {
    color: var(--off-white);
    font-weight: 600;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.access-content input {
    width: 100%;
    padding: 15px;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid transparent;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    text-align: center;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.access-content input:focus {
    background: white;
    border-color: var(--terracota-light);
}

#access-error {
    color: #ffb3b3 !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* ==========================================
   PRESENTE INDISPONÍVEL / JÁ COMPRADO
   ========================================== */
.gift-item.indisponivel {
    pointer-events: none;
    /* Impede qualquer clique ou zoom */
    filter: grayscale(100%) opacity(0.6);
    /* Deixa cinza e meio transparente */
    position: relative;
}

/* O selo de "Já Presenteado" que fica por cima */
.gift-item.indisponivel::after {
    content: 'Já Presenteado ♥';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--terracota-dark);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

/* ==========================================
   Responsividade (Tablet e Celular)
   ========================================== */
@media (max-width: 992px) {
    .historia-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .historia-texto {
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .nav-brand {
        flex-grow: 1;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(46, 27, 13, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links ul {
        flex-direction: column;
    }

    .nav-links ul li {
        display: block;
        margin: 25px 0;
        text-align: center;
    }

    .nav-links ul li a {
        font-size: 1.8rem;
    }

    .navbar.nav-open .hamburger {
        background-color: transparent;
    }

    .navbar.nav-open .hamburger::before {
        transform: translateY(0px) rotate(45deg);
    }

    .navbar.nav-open .hamburger::after {
        transform: translateY(0px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5em;
    }

    h3 {
        font-size: 1.8em;
    }

    .hero {
        background-attachment: scroll;
    }

    .section-padded {
        padding: 60px 15px;
    }

    /* Ajustes finos do card horizontal para telas de celular menores */
    .gift-item {
        height: 125px;
        /* Deixa o card um pouquinho mais fino no celular */
    }

    .gift-overlay {
        padding: 10px 15px;
    }

    .gift-overlay h3 {
        font-size: 1.1rem;
    }

    .gift-overlay p {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .btn-gift {
        font-size: 0.75rem;
        padding: 6px 0;
    }

    #delivery-modal .delivery-content {
        padding: 30px 15px;
        width: 95%;
    }

    .address-box {
        padding: 15px 10px;
        font-size: 0.9rem;
        word-wrap: break-word;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2.2em;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .countdown {
        flex-direction: column;
        gap: 10px;
        font-size: 1.5em;
    }

    .btn-submit:hover,
    .btn-scroll:hover {
        padding-right: 35px;
    }

    .btn-submit:hover::after,
    .btn-scroll:hover::after {
        opacity: 0;
    }

    .gallery-grid {
        column-count: 1;
    }
}

@media (min-width: 769px) {
    .historia-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 60px;
        max-width: 1100px;
        margin: 40px auto 0;
    }

    .historia-video {
        flex: 0 0 auto;
        width: 100%;
        max-width: 450px;
        aspect-ratio: 9 / 16;
        border-radius: 12px;
    }

    .historia-video video,
    .historia-video img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .citacoes-wrapper {
        flex: 1;
        max-width: 500px;
        height: 600px;
    }
}

/* Estilo para o logótipo na secção principal (Hero) */
.hero-logo {
    max-width: 200px;
    /* Ajuste este valor para deixar o logo maior ou menor */
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    /* Centra a imagem e dá 20px de espaço para baixo */
}
