/* ================================================================ */
/* RESET E BASE                                                    */
/* ================================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --vermelho-escuro: #8B0000;
    --vermelho: #C41E3A;
    --vermelho-claro: #DC143C;
    --dourado: #D4AF37;
    --dourado-claro: #FFD700;
    --branco: #FFFFFF;
    --branco-fumaca: #F5F5F5;
    --cinza-claro: #E8E8E8;
    --sombra: 0 8px 30px rgba(0,0,0,0.15);
    --transicao: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* Altura real da viewport no mobile (com fallback) */
    --vh: 1vh;
}

html {
    scroll-behavior: smooth;
    /* Evita zoom automático em inputs no iOS */
    -webkit-text-size-adjust: 100%;
    /* Impede scroll horizontal acidental */
    overflow-x: hidden;
}

body {
    font-family: 'Lato', sans-serif;
    color: #333;
    background: var(--branco-fumaca);
    /* REMOVIDO overflow-x: hidden (não é mais necessário com o reset acima) */
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    /* Melhora a renderização de texto em mobile */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Evita bounce scroll no iOS quando o conteúdo principal está oculto */
    position: relative;
}

/* Bloqueia scroll enquanto a tela inicial está ativa */
body.bloqueado {
    overflow: hidden;
    height: 100vh;
    position: fixed;
}

/* Bloqueia scroll até o conteúdo principal ser revelado */
body:not(.conteudo-aberto) {
    overflow: hidden;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
}

/* Libera scroll após a revelação */
body.conteudo-aberto {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    min-height: 100vh;
}

/**
*body.bloqueado {
*    overflow: hidden;
*    height: 100vh;
*    height: calc(var(--vh, 1vh) * 100);
*}
*/

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

/* ================================================================ */
/* TELA INICIAL - CORREÇÃO MOBILE                                  */
/* ================================================================ */
#tela-inicial {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Usa a variável --vh para altura real no mobile */
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    width: 100%;
    max-width: 100vw;
    background: linear-gradient(145deg, var(--vermelho-escuro) 0%, var(--dourado) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    overflow: hidden;
    /* Padding de segurança para telas com notch */
    padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) 
             env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
    /* Transição suave ao revelar */
    transition: opacity 1s ease, visibility 1s ease;
    /* Evita que o conteúdo "escape" em telas pequenas */
    box-sizing: border-box;
}

#tela-inicial.revelado {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Corações Container */
#coracoes-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.coracao {
    position: absolute;
    opacity: 0.4;
    pointer-events: none;
    will-change: transform;
    animation: flutuar var(--duracao, 8s) ease-in-out infinite alternate;
    /* Garante que corações não causem overflow */
    max-width: 80px;
    max-height: 80px;
}

@keyframes flutuar {
    0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
    25%  { transform: translate(10px, -15px) scale(1.1) rotate(5deg); }
    50%  { transform: translate(-5px, -30px) scale(0.95) rotate(-3deg); }
    75%  { transform: translate(15px, -10px) scale(1.05) rotate(4deg); }
    100% { transform: translate(-10px, -20px) scale(1) rotate(-2deg); }
}

/* Conteúdo Central */
.conteudo-inicial {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 600px;
    /* Centraliza verticalmente dentro do flex */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Evita que o conteúdo ultrapasse a tela */
    max-height: 100%;
    overflow: hidden;
}

.laco-wrapper {
    position: relative;
   /* width: clamp(140px, 45vw, 220px);*/
   /* height: clamp(140px, 45vw, 220px);*/
    /*margin: 0 auto 20px;*/
    width: clamp(200px, 65vw, 300px);
    height: clamp(200px, 65vw, 300px);
    margin: 0 auto 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
    /* Melhora a performance do clique em mobile */
    -webkit-tap-highlight-color: transparent;
    /* Impede seleção de texto */
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.laco-wrapper:active {
    transform: scale(0.97);
}

@media (hover: hover) {
    .laco-wrapper:hover {
        transform: scale(1.03);
    }
}

#laco-imagem {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 8px 25px rgba(0,0,0,0.3));
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.8s ease;
    /* Impede arraste da imagem */
    -webkit-user-drag: none;
    pointer-events: none;
}

.laco-wrapper.desfazendo #laco-imagem {
    transform: rotate(15deg) scale(0.8) translateY(-20px);
    opacity: 0;
}

.laco-brilho {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: brilho 3s ease-in-out infinite alternate;
}

@keyframes brilho {
    0%   { opacity: 0.3; transform: scale(1) rotate(0deg); }
    100% { opacity: 0.8; transform: scale(1.2) rotate(10deg); }
}

.titulo-principal {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 7vw, 4.5rem);
    color: var(--branco);
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    margin-bottom: 8px;
    line-height: 1.2;
    word-wrap: break-word;
}

.titulo-principal .ampersand {
    color: var(--dourado-claro);
    font-style: italic;
}

.subtitulo-inicial {
    font-size: clamp(0.85rem, 3.5vw, 1.6rem);
    color: rgba(255,255,255,0.85);
    font-weight: 300;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    line-height: 1.4;
}

.chamada-clique {
    font-size: clamp(0.7rem, 2.5vw, 1rem);
    color: rgba(255,255,255,0.6);
    letter-spacing: 3px;
    font-weight: 300;
    animation: pisca 2s ease-in-out infinite;
    line-height: 1.5;
}

@keyframes pisca {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.rodape-inicial {
    position: absolute;
    bottom: max(20px, env(safe-area-inset-bottom, 20px));
    left: 0;
    width: 100%;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: clamp(0.65rem, 2.5vw, 0.8rem);
    letter-spacing: 2px;
    z-index: 10;
    padding: 0 15px;
}

/* Ajuste específico para telas muito pequenas */
@media (max-width: 380px) {
    .laco-wrapper {
        width: 130px;
        height: 130px;
        margin-bottom: 15px;
    }
    .titulo-principal {
        font-size: 1.6rem;
    }
    .subtitulo-inicial {
        font-size: 0.8rem;
    }
    .chamada-clique {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }
}

/* Ajuste para telas em modo paisagem (landscape) */
@media (max-height: 500px) and (orientation: landscape) {
    .laco-wrapper {
        width: 100px;
        height: 100px;
        margin-bottom: 10px;
    }
    .titulo-principal {
        font-size: 1.5rem;
    }
    .subtitulo-inicial {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
    .chamada-clique {
        font-size: 0.65rem;
    }
    .rodape-inicial {
        display: none;
    }
}

/* ================================================================ */
/* CONTEÚDO PRINCIPAL - CORREÇÃO MOBILE                            */
/* ================================================================ */
#conteudo-principal {
    display: none;
    width: 100%;
    /* Evita overflow horizontal */
    overflow-x: hidden;
    /* Ativa aceleração de hardware para scroll suave */
    -webkit-overflow-scrolling: touch;
}

#conteudo-principal.visivel {
    display: block;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Seções Gerais */
.secao {
    padding: 60px 0;
    /* Evita overflow horizontal em mobile */
    overflow-x: hidden;
}

@media (max-width: 600px) {
    .secao {
        padding: 40px 0;
    }
}

.titulo-secao {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 5.5vw, 3rem);
    text-align: center;
    margin-bottom: 30px;
    color: var(--vermelho-escuro);
    line-height: 1.3;
    padding: 0 10px;
}

.titulo-secao::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--dourado), var(--vermelho));
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ================================================================ */
/* HERO                                                            */
/* ================================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    background: var(--branco);
    /*background: linear-gradient(135deg, var(--vermelho-escuro), var(--vermelho)); */
    /*background-size: cover; */
    /*background-position: center; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--branco);
    padding: 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--branco);
    /*background: linear-gradient(135deg, rgba(139,0,0,0.7), rgba(0,0,0,0.4));*/
    z-index: 1;
}

.hero-conteudo {
    position: relative;
    z-index: 2;
    padding: 20px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.hero-texto h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 9vw, 6rem);
    text-shadow: 0 4px 30px rgba(0,0,0,0.4);
    margin-bottom: 10px;
    line-height: 1.1;
    word-wrap: break-word;
}

.hero-texto .ampersand {
    color: var(--dourado-claro);
}

.hero-data {
    font-size: clamp(1rem, 4vw, 2.2rem);
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 15px;
    opacity: 0.95;
}

.hero-sub {
    font-size: clamp(0.85rem, 3vw, 1.2rem);
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.5;
    padding: 0 10px;
}

.hero-decoracao {
    font-size: 1.2rem;
    letter-spacing: 10px;
    opacity: 0.5;
}

.hero-scroll {
    position: absolute;
    bottom: max(20px, env(safe-area-inset-bottom, 20px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.7);
    font-size: clamp(0.65rem, 2.5vw, 0.8rem);
    letter-spacing: 1.5px;
    text-align: center;
    animation: sobeDesce 2s ease-in-out infinite;
    padding: 0 15px;
    width: 100%;
    max-width: 300px;
}

.hero-scroll i {
    display: block;
    font-size: 1.3rem;
    margin-top: 5px;
}

@keyframes sobeDesce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* ========================================================= */
/* SEÇÃO 2: BOAS-VINDAS (TEXTO EM UNIDADE SEPARADA)          */
/* =========================================================*/
.boas-vindas{
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 20px;
    /*background: var(--branco);*/
}



/* ================================================================ */
/* NOSSA HISTÓRIA                                                  */
/* ================================================================ */
.historia {
    background: var(--branco);
}

.linha-tempo {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 20px;
}

.linha-tempo::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom, var(--dourado), var(--vermelho-claro));
}

@media (max-width: 500px) {
    .linha-tempo::before {
        left: 24px;
    }
    .linha-tempo {
        padding-left: 0;
    }
}

.evento {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding-left: 5px;
}

@media (max-width: 500px) {
    .evento {
        gap: 14px;
    }
}

.evento-icone {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dourado), var(--vermelho));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--branco);
    font-size: 1rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

@media (max-width: 500px) {
    .evento-icone {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
}

.evento-conteudo {
    padding-top: 4px;
    flex: 1;
    min-width: 0;
}

.evento-conteudo h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    color: var(--vermelho-escuro);
    margin-bottom: 4px;
    line-height: 1.3;
}

.evento-conteudo p {
    color: #666;
    line-height: 1.6;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
}

/* ================================================================ */
/* DETALHES + CONTADOR                                             */
/* ================================================================ */
.detalhes {
    background: var(--branco-fumaca);
}

.detalhes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .detalhes-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

.detalhes-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--branco);
    padding: 16px 18px;
    border-radius: 10px;
    box-shadow: var(--sombra);
    transition: var(--transicao);
    /* Evita overflow */
    min-width: 0;
}

@media (hover: hover) {
    .info-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    }
}

.info-item i {
    font-size: 1.4rem;
    color: var(--vermelho);
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.info-item div {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.info-item strong {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    font-weight: 700;
}

.info-item span {
    font-size: clamp(0.85rem, 3vw, 1rem);
    font-weight: 400;
    color: #333;
    word-wrap: break-word;
}

.dress-code i {
    color: var(--dourado);
}

/* Contador Público */
.detalhes-contador {
    background: linear-gradient(145deg, var(--vermelho-escuro), #5a0000);
    padding: 25px 18px;
    border-radius: 16px;
    text-align: center;
    color: var(--branco);
    box-shadow: var(--sombra);
}

.detalhes-contador h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    margin-bottom: 18px;
    font-weight: 400;
    letter-spacing: 2px;
}

#contador-publico {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.contador-item {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 12px 14px;
    border-radius: 10px;
    min-width: 60px;
    flex: 1;
    max-width: 80px;
    border: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 400px) {
    .contador-item {
        min-width: 55px;
        padding: 10px 8px;
    }
    #contador-publico {
        gap: 6px;
    }
}

.contador-item span {
    display: block;
    font-size: clamp(1.5rem, 6vw, 3.2rem);
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: var(--dourado-claro);
    line-height: 1;
}

.contador-item label {
    font-size: clamp(0.6rem, 2.2vw, 0.7rem);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.75;
}

/* Mapa */
.mapa-container {
    margin-top: 30px;
    background: var(--branco);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--sombra);
}

@media (max-width: 600px) {
    .mapa-container {
        padding: 15px;
    }
}

.mapa-container h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 3.5vw, 1.3rem);
    color: var(--vermelho-escuro);
    margin-bottom: 15px;
    text-align: center;
}

.mapa-container iframe {
    display: block;
    width: 100%;
    height: 350px;
    border-radius: 10px;
    border: 0;
}

@media (max-width: 600px) {
    .mapa-container iframe {
        height: 280px;
    }
}

/* ================================================================ */
/* RSVP                                                            */
/* ================================================================ */
.rsvp {
    background: var(--branco);
}

.rsvp-texto {
    text-align: center;
    font-size: clamp(0.9rem, 3vw, 1.05rem);
    color: #666;
    max-width: 550px;
    margin: -10px auto 30px;
    padding: 0 15px;
    line-height: 1.6;
}

.form-rsvp {
    max-width: 700px;
    margin: 0 auto;
    background: var(--branco-fumaca);
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: var(--sombra);
}

@media (max-width: 600px) {
    .form-rsvp {
        padding: 20px 15px;
    }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.form-group label {
    font-size: clamp(0.75rem, 2.8vw, 0.85rem);
    font-weight: 700;
    color: #555;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 14px;
    border: 2px solid var(--cinza-claro);
    border-radius: 8px;
    font-size: 16px; /* 16px evita zoom automático no iOS */
    font-family: 'Lato', sans-serif;
    transition: var(--transicao);
    background: var(--branco);
    width: 100%;
    /* Evita zoom no iOS */
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dourado);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.full-width {
    grid-column: 1 / -1;
}

.form-acoes {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.btn {
    padding: 13px 28px;
    border: none;
    border-radius: 50px;
    font-size: clamp(0.85rem, 3vw, 1rem);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transicao);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Lato', sans-serif;
    -webkit-tap-highlight-color: transparent;
    /* Ocupa largura em mobile */
    flex: 1 1 auto;
    min-width: 200px;
    max-width: 320px;
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
}

.btn-confirmar {
    background: linear-gradient(135deg, var(--vermelho), var(--vermelho-claro));
    color: var(--branco);
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.35);
}

@media (hover: hover) {
    .btn-confirmar:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 30px rgba(196, 30, 58, 0.45);
    }
}

.btn-whatsapp {
    background: #25D366;
    color: var(--branco);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

@media (hover: hover) {
    .btn-whatsapp:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
    }
}

.mensagem-confirmacao {
    text-align: center;
    padding: 25px 20px;
    margin-top: 20px;
    background: #E8F5E9;
    border-radius: 12px;
    border-left: 6px solid #2E7D32;
}

.mensagem-confirmacao i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.mensagem-confirmacao p {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    color: #2E7D32;
    line-height: 1.5;
}

/* ================================================================ */
/* GALERIA                                                         */
/* ================================================================ */
.galeria {
    background: var(--branco-fumaca);
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .galeria-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .galeria-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}

.galeria-item {
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--cinza-claro);
    box-shadow: var(--sombra);
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

@media (hover: hover) {
    .galeria-item:hover img {
        transform: scale(1.05);
    }
}

.galeria-item::after {
    content: '✦';
    position: absolute;
    top: 8px;
    right: 12px;
    color: var(--dourado-claro);
    font-size: 1.1rem;
    opacity: 0;
    transition: var(--transicao);
}

@media (hover: hover) {
    .galeria-item:hover::after {
        opacity: 1;
    }
}

/* ================================================================ */
/* RODAPÉ                                                          */
/* ================================================================ */
.rodape {
    background: var(--vermelho-escuro);
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 35px 20px;
    padding-bottom: max(35px, calc(env(safe-area-inset-bottom, 0) + 25px));
    border-top: 3px solid var(--dourado);
}

.rodape-msg {
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.5;
}

.rodape-msg strong {
    color: var(--dourado-claro);
}

.rodape-redes {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.rodape-redes a {
    color: rgba(255,255,255,0.6);
    font-size: 1.4rem;
    transition: var(--transicao);
    display: inline-block;
    padding: 5px;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
    .rodape-redes a:hover {
        color: var(--dourado-claro);
        transform: translateY(-3px) scale(1.1);
    }
}

.rodape-copy {
    font-size: 0.75rem;
    opacity: 0.5;
    letter-spacing: 1.5px;
}

/* ================================================================ */
/* UTILITÁRIOS                                                      */
/* ================================================================ */
.ampersand {
    color: var(--dourado);
    font-style: italic;
}

/* Impede scroll quando a tela inicial está ativa */
body:not(.conteudo-aberto) {
    overflow: hidden;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
}

/* Quando o conteúdo é revelado, permite scroll */
body.conteudo-aberto {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
}

/* Scrollbar Customizada (apenas desktop) */
@media (min-width: 769px) {
    ::-webkit-scrollbar {
        width: 8px;
    }
    ::-webkit-scrollbar-track {
        background: var(--branco-fumaca);
    }
    ::-webkit-scrollbar-thumb {
        background: linear-gradient(to bottom, var(--dourado), var(--vermelho));
        border-radius: 10px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: var(--vermelho);
    }
}

/* ================================================================
   MISSÃO CONVIDADOS — CONTAGEM REGRESSIVA E BOTÕES
   ================================================================ */

.missao-convidados {
    background: linear-gradient(180deg, #FDF8F0 0%, #FFFFFF 100%);
    padding: 50px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 600px) {
    .missao-convidados {
        padding: 40px 15px 50px;
    }
}

/* Decoração de fundo */
.missao-convidados::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 500px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--dourado), transparent);
}

/* ----------------------------------------------------------------
   HEADER DA MISSÃO
---------------------------------------------------------------- */
.missao-header {
    max-width: 600px;
    margin: 0 auto 30px;
}

.missao-icone {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--vermelho), var(--vermelho-claro));
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 15px;
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.35);
    animation: pulseMissao 3s ease-in-out infinite;
}

@keyframes pulseMissao {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(196, 30, 58, 0.35);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(196, 30, 58, 0.5);
    }
}

.missao-subtitulo {
    font-size: clamp(0.9rem, 3vw, 1.05rem);
    color: #666;
    line-height: 1.6;
    font-style: italic;
    padding: 0 10px;
}

/* ----------------------------------------------------------------
   CONTAGEM REGRESSIVA
---------------------------------------------------------------- */
.missao-contagem {
    max-width: 700px;
    margin: 0 auto 35px;
    padding: 0 10px;
}

.fase-contagem {
    background: linear-gradient(145deg, var(--vermelho-escuro), #5a0000);
    padding: 30px 20px;
    border-radius: 20px;
    color: #FFFFFF;
    box-shadow: 0 12px 40px rgba(139, 0, 0, 0.25);
    animation: fadeIn 0.6s ease;
    position: relative;
    overflow: hidden;
}

/* Fase "durante" — destaque com brilho */
.fase-contagem.fase-ativa {
    background: linear-gradient(145deg, #8B0000 0%, #C41E3A 50%, #8B0000 100%);
    background-size: 200% 200%;
    animation: gradienteAnimado 4s ease infinite, fadeIn 0.6s ease;
}

@keyframes gradienteAnimado {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Fase "depois" — mais suave */
.fase-contagem.fase-encerrada {
    background: linear-gradient(145deg, #4A4A4A, #2D2D2D);
    opacity: 0.95;
}

.fase-contagem.fase-encerrada .fase-icone {
    background: rgba(255, 255, 255, 0.15);
    color: #FFD700;
}

/* Ícone da fase */
.fase-icone {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #FFD700;
    margin: 0 auto 15px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.fase-icone.pulso {
    animation: pulseIcone 1.5s ease-in-out infinite;
}

@keyframes pulseIcone {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
    }
}

.fase-titulo {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    color: #FFD700;
    margin-bottom: 8px;
    font-weight: 700;
}

.fase-data {
    font-size: clamp(0.75rem, 2.5vw, 0.9rem);
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
    margin-bottom: 22px;
}

/* Grid do contador */
.contador-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

@media (max-width: 400px) {
    .contador-grid {
        gap: 6px;
    }
}

.contador-bloco {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 14px 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.contador-bloco.destaque {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.4);
}

.contador-bloco span {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 6vw, 2.5rem);
    font-weight: 700;
    color: #FFD700;
    line-height: 1;
    word-break: keep-all;
}

.contador-bloco label {
    font-size: clamp(0.55rem, 2vw, 0.7rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 5px;
    white-space: nowrap;
}

/* ----------------------------------------------------------------
   BOTÕES DA MISSÃO (LADO A LADO)
---------------------------------------------------------------- */
.botoes-missao {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 10px;
}

@media (max-width: 480px) {
    .botoes-missao {
        gap: 10px;
    }
}

.btn-missao {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-radius: 14px;
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: left;
    min-height: 70px;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.btn-missao::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-missao:hover::before,
.btn-missao:active::before {
    opacity: 1;
}

.btn-galeria-missao {
    background: linear-gradient(135deg, var(--vermelho), var(--vermelho-claro));
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.3);
}

.btn-galeria-missao:hover,
.btn-galeria-missao:active {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(196, 30, 58, 0.45);
}

.btn-missoes-lista {
    background: linear-gradient(135deg, var(--dourado), var(--dourado-claro));
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.btn-missoes-lista:hover,
.btn-missoes-lista:active {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5);
}

.btn-missao > i {
    font-size: 1.6rem;
    flex-shrink: 0;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.btn-missao-texto {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.btn-missao-texto strong {
    font-size: clamp(0.95rem, 3.5vw, 1.05rem);
    line-height: 1.2;
    color: #FFFFFF;
}

.btn-missao-texto small {
    font-size: clamp(0.7rem, 2.5vw, 0.8rem);
    opacity: 0.85;
    font-weight: 400;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 480px) {
    .btn-missao {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 15px 10px;
        min-height: 110px;
        justify-content: center;
    }
    .btn-missao > i {
        font-size: 1.8rem;
    }
}

/* ----------------------------------------------------------------
   BOTÃO FLUTUANTE (durante o evento)
---------------------------------------------------------------- */
.btn-flutuante-enviar-missao {
    position: fixed;
    bottom: max(20px, calc(env(safe-area-inset-bottom, 0) + 20px));
    right: 20px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--vermelho), var(--vermelho-claro));
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 35px rgba(196, 30, 58, 0.55);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 900;
    animation: pulseFlutuante 3s ease-in-out infinite;
    -webkit-tap-highlight-color: transparent;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

@keyframes pulseFlutuante {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 35px rgba(196, 30, 58, 0.55);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 15px 45px rgba(196, 30, 58, 0.75);
    }
}

.btn-flutuante-enviar-missao:hover,
.btn-flutuante-enviar-missao:active {
    transform: scale(1.15);
    background: var(--vermelho-escuro);
}

.btn-flutuante-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-flutuante-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.85);
}

.btn-flutuante-enviar-missao:hover .btn-flutuante-tooltip {
    opacity: 1;
    right: 80px;
}

@media (max-width: 480px) {
    .btn-flutuante-enviar-missao {
        width: 58px;
        height: 58px;
        font-size: 1.3rem;
        bottom: max(15px, calc(env(safe-area-inset-bottom, 0) + 15px));
        right: 15px;
    }
    .btn-flutuante-tooltip {
        display: none;
    }
}

/* ----------------------------------------------------------------
   ANIMAÇÕES DE ENTRADA
---------------------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------------
   RESPONSIVIDADE EXTRA
---------------------------------------------------------------- */
@media (max-width: 360px) {
    .fase-contagem {
        padding: 22px 14px;
    }
    .fase-icone {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    .contador-bloco {
        padding: 10px 4px;
    }
    .btn-missao-texto small {
        display: none;
    }
}

/* ----------------------------------------------------------------
   TRANSIÇÃO SUAVE AO ENTRAR EM MODO EVENTO
---------------------------------------------------------------- */
body {
    transition: background 0.8s ease, color 0.8s ease;
}

body.modo-evento {
    padding-top: 0; /* gerenciado pelo JS */
}

/* Previne scroll horizontal em modo evento */
body.modo-evento {
    overflow-x: hidden;
}

/* ================================================================
   BLOQUEIO DO RSVP A PARTIR DE 15/11/2026
   ================================================================ */

/* ----------------------------------------------------------------
   AVISO DE PRAZO ENCERRADO
---------------------------------------------------------------- */
.aviso-rsvp-bloqueado {
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
    border: 2px solid #C62828;
    border-radius: 16px;
    padding: 30px 25px;
    max-width: 700px;
    margin: 0 auto 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 8px 30px rgba(198, 40, 40, 0.25);
    animation: fadeInAviso 0.6s ease;
}

@keyframes fadeInAviso {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.aviso-rsvp-icone {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #C62828, #8B0000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #FFFFFF;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.4);
}

.aviso-rsvp-texto {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.aviso-rsvp-texto h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 4vw, 1.35rem);
    color: #8B0000;
    margin-bottom: 8px;
    line-height: 1.3;
}

.aviso-rsvp-texto p {
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    color: #6D4C41;
    line-height: 1.6;
    margin-bottom: 10px;
}

.aviso-rsvp-texto strong {
    color: #C62828;
    font-weight: 700;
}

.aviso-rsvp-contato {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.6);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: clamp(0.8rem, 2.8vw, 0.9rem);
    color: #6D4C41;
    margin-top: 12px;
    line-height: 1.4;
}

.aviso-rsvp-contato i {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .aviso-rsvp-bloqueado {
        flex-direction: column;
        padding: 22px 18px;
        gap: 15px;
        text-align: center;
    }
    .aviso-rsvp-icone {
        margin: 0 auto;
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    .aviso-rsvp-texto {
        text-align: center;
    }
    .aviso-rsvp-contato {
        justify-content: center;
    }
}

/* ----------------------------------------------------------------
   BOTÃO WHATSAPP COM TEXTO DINÂMICO (estado bloqueado)
---------------------------------------------------------------- */
.btn-whatsapp.bloqueado {
    background: #B0BEC5 !important;
    color: #FFFFFF !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 0.75;
    position: relative;
    pointer-events: none;
}

.btn-whatsapp.bloqueado::after {
    content: '🔒';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #C62828;
    color: #FFFFFF;
    font-size: 0.7rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(198, 40, 40, 0.5);
}

/* Estado liberado (padrão antes de 15/11/2026) */
.btn-whatsapp.liberado {
    background: #25D366;
    color: #FFFFFF;
    animation: pulseLiberado 2s ease-in-out infinite;
}

@keyframes pulseLiberado {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
    }
    50% {
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    }
}

/* ================================================================
   GARANTIA GLOBAL DE SCROLL
   Todas as páginas de conteúdo permitem scroll por padrão
   ================================================================ */

body.pagina-galeria,
body.pagina-galeria-upload,
body.pagina-missoes,
body.pagina-recados,
body.pagina-presentes,
body.pagina-publica {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 100vh !important;
    position: relative !important;
}

/* Garante que o rodapé tenha espaço */
body.pagina-galeria .rodape-galeria,
body.pagina-galeria-upload .rodape-galeria,
body.pagina-missoes .rodape-galeria,
body.pagina-recados .rodape-galeria {
    margin-top: 40px !important;
    padding-bottom: 40px !important;
}

/* Bloqueio apenas quando explicitamente necessário */
body.bloqueado {
    overflow: hidden !important;
    height: 100vh !important;
    position: fixed !important;
    width: 100% !important;
}

/* Modais bloqueiam scroll apenas quando abertos */
body.modal-aberto {
    overflow: hidden !important;
}

/* ================================================================
   ACESSO AOS MÓDULOS INTERATIVOS
   ================================================================ */

.acesso-modulos {
    background: linear-gradient(180deg, #FDF8F0 0%, #FFFFFF 100%);
    padding: 60px 0;
}

.modulos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.modulo-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 30px 20px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.modulo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.modulo-card:hover::before {
    left: 100%;
}

.modulo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border-color: rgba(212, 175, 55, 0.4);
}

.modulo-icone {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #FFFFFF;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.4s ease;
}

.modulo-card:hover .modulo-icone {
    transform: scale(1.1) rotate(-8deg);
}

.modulo-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: #8B0000;
    margin: 0;
    font-weight: 700;
}

.modulo-card p {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.4;
    margin: 0;
}

/* Destaque especial para o Mural */
.modulo-card-mural {
    border-color: rgba(255, 215, 0, 0.3);
    background: linear-gradient(180deg, #FFFDF5, #FFFFFF);
}

.modulo-card-mural:hover {
    border-color: #D4AF37;
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.25);
}

/* Animação da pena */
.modulo-card-mural .modulo-icone i {
    animation: escritaPena 3s ease-in-out infinite;
}

@keyframes escritaPena {
    0%, 100% { transform: rotate(0deg); }
    25%      { transform: rotate(-15deg); }
    50%      { transform: rotate(10deg); }
    75%      { transform: rotate(-10deg); }
}

@media (max-width: 480px) {
    .modulos-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .modulo-card {
        padding: 20px 12px;
    }
    .modulo-icone {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
    .modulo-card h3 {
        font-size: 0.95rem;
    }
    .modulo-card p {
        font-size: 0.75rem;
    }
}

/* ================================================================
   AÇÕES EM MASSA
   ================================================================ */
.acoes-massa {
    position: sticky;
    top: 80px;
    z-index: 50;
    background: linear-gradient(135deg, #FFF8E1, #FFECB3);
    border: 2px solid #FFB300;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    box-shadow: 0 8px 25px rgba(255, 179, 0, 0.25);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-15px); }
    to   { opacity: 1; transform: translateY(0); }
}

.acoes-massa-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #E65100;
    font-size: 1rem;
}

.acoes-massa-info i {
    font-size: 1.3rem;
}

.acoes-massa-info strong {
    font-size: 1.2rem;
    font-weight: 700;
}

.acoes-massa-botoes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.acoes-massa-botoes .btn {
    padding: 10px 18px;
    font-size: 0.9rem;
}

.btn-danger {
    background: linear-gradient(135deg, #C62828, #B71C1C);
    color: #FFFFFF;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Lato', sans-serif;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(198, 40, 40, 0.4);
}

/* Checkbox nas fotos */
.foto-checkbox-wrapper {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.foto-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: #C41E3A;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border-radius: 4px;
}

.card-moderacao {
    position: relative;
}

.card-moderacao.selecionado {
    outline: 3px solid #C41E3A;
    outline-offset: -3px;
}

/* Notificação */
@keyframes slideIn {
    from { opacity: 0; transform: translateX(100%); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Responsivo */
@media (max-width: 600px) {
    .acoes-massa {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 15px;
    }
    
    .acoes-massa-botoes {
        flex-direction: column;
    }
    
    .acoes-massa-botoes .btn {
        width: 100%;
        justify-content: center;
    }
}


/* ================================================================
   BOTÃO ÚNICO DE CONFIRMAÇÃO — RSVP UNIFICADO
   Gradiente verde → vermelho com ícones WhatsApp + Check
   ================================================================ */

.form-acoes-unificado {
    display: flex;
    justify-content: center;
    margin-top: 25px;
    padding: 0 10px;
}

.btn-unico-confirmar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    max-width: 500px;
    padding: 18px 22px;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    box-shadow: 
        0 8px 30px rgba(37, 211, 102, 0.35),
        0 4px 15px rgba(196, 30, 58, 0.25);
    -webkit-tap-highlight-color: transparent;
    min-height: 70px;
    background: linear-gradient(135deg, 
        #25D366 0%, 
        #128C7E 25%, 
        #C41E3A 75%, 
        #8B0000 100%);
    background-size: 300% 300%;
    background-position: 0% 50%;
    transition: 
        background-position 0.6s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* Efeito de brilho diagonal */
.btn-unico-confirmar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transition: left 0.7s ease;
    pointer-events: none;
}

.btn-unico-confirmar:hover::before {
    left: 100%;
}

.btn-unico-confirmar:hover {
    background-position: 100% 50%;
    transform: translateY(-3px);
    box-shadow: 
        0 12px 40px rgba(37, 211, 102, 0.45),
        0 8px 25px rgba(196, 30, 58, 0.35);
}

.btn-unico-confirmar:active {
    transform: translateY(-1px) scale(0.99);
}

.btn-unico-confirmar:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    filter: grayscale(0.3);
}

/* Ícone WhatsApp (esquerda) */
.btn-unico-icone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease;
}

.btn-unico-confirmar:hover .btn-unico-icone {
    transform: scale(1.1) rotate(-8deg);
}

.btn-unico-icone i {
    font-size: 1.5rem;
    color: #25D366;
    transition: color 0.3s ease;
}

/* Texto central */
.btn-unico-texto {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    color: #FFFFFF;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-unico-texto strong {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.btn-unico-texto small {
    font-size: 0.78rem;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

/* Ícone check (direita) */
.btn-unico-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-unico-confirmar:hover .btn-unico-check {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(360deg);
}

.btn-unico-check i {
    font-size: 1.3rem;
    color: #FFFFFF;
}

/* Estado de envio (loading) */
.btn-unico-confirmar.enviando {
    background: linear-gradient(135deg, #FFA726 0%, #FB8C00 100%);
    cursor: wait;
}

.btn-unico-confirmar.enviando .btn-unico-icone i,
.btn-unico-confirmar.enviando .btn-unico-check i {
    animation: girar 1s linear infinite;
}

@keyframes girar {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Rodapé do formulário */
.rsvp-info-rodape {
    text-align: center;
    font-size: 0.82rem;
    color: #999;
    margin-top: 15px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.5;
    flex-wrap: wrap;
}

.rsvp-info-rodape i {
    color: #25D366;
    flex-shrink: 0;
}

.rsvp-info-rodape strong {
    color: #C41E3A;
    font-weight: 700;
}

/* Mensagem de confirmação pós-envio */
.mensagem-confirmacao-sub {
    font-size: 0.85rem;
    color: #666;
    margin-top: 8px;
    font-style: italic;
    line-height: 1.4;
}

/* ----------------------------------------------------------------
   RESPONSIVIDADE
---------------------------------------------------------------- */
@media (max-width: 480px) {
    .btn-unico-confirmar {
        flex-direction: row;
        padding: 14px 16px;
        min-height: 64px;
        gap: 10px;
    }

    .btn-unico-icone {
        width: 40px;
        height: 40px;
    }

    .btn-unico-icone i {
        font-size: 1.2rem;
    }

    .btn-unico-texto strong {
        font-size: 0.95rem;
    }

    .btn-unico-texto small {
        font-size: 0.68rem;
    }

    .btn-unico-check {
        width: 36px;
        height: 36px;
    }

    .btn-unico-check i {
        font-size: 1.1rem;
    }
}

/* ----------------------------------------------------------------
   ANIMAÇÃO DE PULSO (chamar atenção)
---------------------------------------------------------------- */
.btn-unico-confirmar:not(.enviando)::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 60px;
    background: linear-gradient(135deg, #25D366, #C41E3A);
    opacity: 0;
    z-index: -1;
    animation: pulseUnico 2.5s ease-in-out infinite;
}

@keyframes pulseUnico {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.02);
    }
}

/* ================================================================
   CAMPO DE PRESENÇA — RADIO BUTTONS CUSTOMIZADOS
   ================================================================ */

.presence-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

@media (max-width: 480px) {
    .presence-options {
        grid-template-columns: 1fr;
    }
}

.presence-option {
    cursor: pointer;
    position: relative;
}

.presence-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.presence-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: #FAFAFA;
    border: 2px solid #E8E8E8;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    min-height: 60px;
}

.presence-box i {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.presence-option:hover .presence-box {
    border-color: #D4AF37;
    background: #FFFDF7;
}

/* Estado: Sim, estarei presente */
.presence-option input[type="radio"][value="sim"]:checked + .presence-box {
    border-color: #2E7D32;
    background: #E8F5E9;
    color: #2E7D32;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.2);
}

.presence-option input[type="radio"][value="sim"]:checked + .presence-box i {
    color: #2E7D32;
}

/* Estado: Não poderei comparecer */
.presence-option input[type="radio"][value="nao"]:checked + .presence-box {
    border-color: #C62828;
    background: #FFEBEE;
    color: #C62828;
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.2);
}

.presence-option input[type="radio"][value="nao"]:checked + .presence-box i {
    color: #C62828;
}

/* Rótulo */
.form-group label small {
    font-weight: 400;
    color: #999;
    font-size: 0.8rem;
    font-style: italic;
}

/* ================================================================
   SELECT DE PRESENÇA — ESTILIZAÇÃO ESPECIAL
   ================================================================ */

.select-presence {
    width: 100%;
    padding: 14px 45px 14px 16px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    color: #333;
    background-color: #FAFAFA;
    border: 2px solid #E8E8E8;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Seta customizada */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    /* Remove aparência padrão */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-height: 52px;
    /* Impede zoom no iOS */
    font-size: 16px;
}

.select-presence:focus {
    outline: none;
    border-color: #D4AF37;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

.select-presence:hover {
    border-color: #D4AF37;
    background-color: #FFFFFF;
}

/* Estado válido (quando uma opção é escolhida) */
.select-presence:valid {
    border-color: #2E7D32;
    background-color: #F1F8E9;
    color: #2E7D32;
}

/* Estado inválido (quando vazio, após interação) */
.select-presence:invalid:not(:placeholder-shown) {
    border-color: #C62828;
    background-color: #FFEBEE;
}

/* Quando o valor for "nao", fica vermelho */
.select-presence:valid option[value="nao"]:checked {
    color: #C62828;
}

/* Label principal com asterisco */
.form-rsvp label[for="presence"] {
    font-weight: 700;
    color: #555;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

/* Ajuste para o placeholder da opção */
.select-presence option[value=""] {
    color: #999;
    font-style: italic;
}

/* Ajuste responsivo */
@media (max-width: 480px) {
    .select-presence {
        padding: 13px 40px 13px 14px;
        font-size: 15px;
    }
}

/* ================================================================
   SEÇÃO: NOSSOS PADRINHOS
   ================================================================ */

.padrinhos {
    background: linear-gradient(180deg, #FFFFFF 0%, #FDF8F0 100%);
    padding: 80px 0;
}

@media (max-width: 600px) {
    .padrinhos {
        padding: 60px 0;
    }
}

/* ----------------------------------------------------------------
   TEXTO INTRODUTÓRIO
---------------------------------------------------------------- */
.padrinhos-intro {
    text-align: center;
    font-size: clamp(1rem, 3vw, 1.15rem);
    color: #555;
    max-width: 750px;
    margin: -20px auto 50px;
    padding: 0 20px;
    line-height: 1.7;
    font-style: italic;
    font-family: 'Playfair Display', serif;
}

@media (max-width: 600px) {
    .padrinhos-intro {
        margin-bottom: 35px;
        padding: 0 15px;
    }
}

/* ----------------------------------------------------------------
   GRID DE CASAIS (6 fotos)
---------------------------------------------------------------- */
.padrinhos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 0 15px;
}

@media (max-width: 900px) {
    .padrinhos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .padrinhos-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 350px;
    }
}

/* ----------------------------------------------------------------
   CARD DO PADRINHO
---------------------------------------------------------------- */
.padrinho-card {
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: fadeInPadrinho 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeInPadrinho {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger para entrada em cascata */
.padrinhos-grid .padrinho-card:nth-child(1) { animation-delay: 0.1s; }
.padrinhos-grid .padrinho-card:nth-child(2) { animation-delay: 0.2s; }
.padrinhos-grid .padrinho-card:nth-child(3) { animation-delay: 0.3s; }
.padrinhos-grid .padrinho-card:nth-child(4) { animation-delay: 0.4s; }
.padrinhos-grid .padrinho-card:nth-child(5) { animation-delay: 0.5s; }
.padrinhos-grid .padrinho-card:nth-child(6) { animation-delay: 0.6s; }

/* Foto */
.padrinho-foto {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 18px;
    max-width: 220px;
    box-shadow:
        0 8px 25px rgba(139, 0, 0, 0.15),
        0 0 0 5px #FFFFFF,
        0 0 0 8px #D4AF37;
    transition: all 0.4s ease;
    cursor: pointer;
    background: #E8E8E8;
}

@media (max-width: 900px) {
    .padrinho-foto {
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .padrinho-foto {
        max-width: 200px;
    }
}

.padrinho-card:hover .padrinho-foto {
    transform: scale(1.05);
    box-shadow:
        0 12px 40px rgba(139, 0, 0, 0.25),
        0 0 0 5px #FFFFFF,
        0 0 0 8px #D4AF37;
}

.padrinho-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.padrinho-card:hover .padrinho-foto img {
    transform: scale(1.1);
}

/* Overlay de coração */
.padrinho-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(196, 30, 58, 0.4),
        rgba(139, 0, 0, 0.6)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50%;
}

.padrinho-overlay i {
    color: #FFD700;
    font-size: 2.5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transform: scale(0.5);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.padrinho-card:hover .padrinho-overlay {
    opacity: 1;
}

.padrinho-card:hover .padrinho-overlay i {
    transform: scale(1);
}

/* Info (nome + relação) */
.padrinho-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 3vw, 1.15rem);
    color: #8B0000;
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.padrinho-parentesco {
    font-size: 0.75rem;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* ----------------------------------------------------------------
   SUBTÍTULO — PADRINHOS INDIVIDUAIS
---------------------------------------------------------------- */
.padrinhos-subtitulo {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    color: #8B0000;
    text-align: center;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
}

.padrinhos-subtitulo i {
    color: #D4AF37;
    font-size: 1.3em;
    animation: crownFloat 3s ease-in-out infinite;
}

@keyframes crownFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(-5deg); }
}

/* ----------------------------------------------------------------
   GRID DE INDIVIDUAIS (2 fotos)
---------------------------------------------------------------- */
.padrinhos-individuais {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 500px;
    margin: 0 auto 50px;
    padding: 0 15px;
}

@media (max-width: 480px) {
    .padrinhos-individuais {
        gap: 30px;
        max-width: 350px;
    }
}

/* Estilo especial para padrinhos individuais */
.padrinho-individual .padrinho-foto {
    box-shadow:
        0 8px 25px rgba(139, 0, 0, 0.15),
        0 0 0 5px #FFFFFF,
        0 0 0 8px #FFD700,
        0 0 25px rgba(255, 215, 0, 0.4);
    animation: pulsePadrinho 3s ease-in-out infinite;
}

@keyframes pulsePadrinho {
    0%, 100% {
        box-shadow:
            0 8px 25px rgba(139, 0, 0, 0.15),
            0 0 0 5px #FFFFFF,
            0 0 0 8px #FFD700,
            0 0 25px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow:
            0 12px 35px rgba(139, 0, 0, 0.2),
            0 0 0 5px #FFFFFF,
            0 0 0 8px #FFD700,
            0 0 40px rgba(255, 215, 0, 0.7);
    }
}

.padrinho-individual .padrinho-overlay {
    background: linear-gradient(135deg,
        rgba(212, 175, 55, 0.5),
        rgba(139, 0, 0, 0.7)
    );
}

/* ----------------------------------------------------------------
   MENSAGEM FINAL
---------------------------------------------------------------- */
.padrinhos-mensagem {
    text-align: center;
    padding: 30px 20px;
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, #FFF8E1, #FFFDF7);
    border-radius: 20px;
    border: 2px dashed rgba(212, 175, 55, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.padrinhos-mensagem i {
    font-size: 2rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.padrinhos-mensagem p {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: #8B0000;
    font-style: italic;
    line-height: 1.5;
    font-weight: 700;
}

/* ----------------------------------------------------------------
   RESPONSIVIDADE EXTRA
---------------------------------------------------------------- */
@media (max-width: 360px) {
    .padrinho-foto {
        max-width: 160px;
    }

    .padrinho-info h3 {
        font-size: 0.95rem;
    }

    .padrinho-parentesco {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
    }
}


