/* CSS Principal da Página História */

/* Importando estilos de seções */
@import url('./partials/section-um.css');
@import url('./partials/section-dois.css');
@import url('./partials/section-tres.css');

/* Estilos gerais para melhorar a renderização e qualidade visual */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Estilos gerais da página */
body {
    background: linear-gradient(to bottom, #B6D5C0, #B6D5C0);
}

/* GARANTIR QUE OS CONTROLES DE MÚSICA ESTEJAM VISÍVEIS */
.pagina-historia .music-controls-desktop,
.pagina-historia .music-controls-mobile {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1000 !important;
}

.pagina-historia .music-controls-mobile {
    position: relative !important;
    z-index: 1001 !important;
}

.pagina-historia .music-controls-mobile .music-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* FORÇAR BOTÃO DESKTOP A APARECER SEMPRE (mesmo em mobile) */
.pagina-historia .music-controls-desktop {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1002 !important;
}

/* REGRAS EXTREMAMENTE ESPECÍFICAS PARA SOBRESCREVER QUALQUER CSS GLOBAL */
body.pagina-historia .top-menu .menu-container .music-controls-desktop,
body.pagina-historia header.top-menu .menu-container .music-controls-desktop {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1002 !important;
}

/* Garantir que o botão desktop seja visível em todas as resoluções */
@media (max-width: 768px) {
    .pagina-historia .music-controls-desktop,
    body.pagina-historia .top-menu .menu-container .music-controls-desktop,
    body.pagina-historia header.top-menu .menu-container .music-controls-desktop {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-left: var(--spacing-md) !important;
    }
}

@media (max-width: 576px) {
    .pagina-historia .music-controls-desktop,
    body.pagina-historia .top-menu .menu-container .music-controls-desktop,
    body.pagina-historia header.top-menu .menu-container .music-controls-desktop {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-left: var(--spacing-sm) !important;
    }
}

/* Container principal */
.historia-container {
    max-width: var(--container-xl);
    margin: var(--spacing-md) auto var(--spacing-lg);
    padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-2xl);
    background: linear-gradient(to bottom, #DDEBE1, #DDEBE1);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

@media (max-width: 576px) {
    .historia-container {
        max-width: 92%;
        margin: var(--spacing-sm) auto var(--spacing-md);
        padding: var(--spacing-lg) var(--spacing-md) var(--spacing-xl);
    }
}

@media (max-width: 400px) {
    .historia-container {
        max-width: 95%;
        padding: var(--spacing-md) var(--spacing-sm) var(--spacing-lg);
    }
}

/* Seção da história do casal */
.historia-casal {
    display: flex;
    align-items: center;
    gap: var(--spacing-2xl); /* Reduzido de 4rem */
    margin-bottom: var(--spacing-2xl); /* Reduzido de 3rem */
    margin-top: 0;
}

.foto-casal {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    position: relative;
    background: transparent;
    border: none;
}

.foto-casal::before {
    display: none;
}

.foto-casal::after {
    display: none;
}

.foto-casal img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
    box-shadow: 0 0 30px rgba(16, 31, 0, 0.6);
}

.foto-casal img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(16, 31, 0, 0.8);
}

.texto-historia {
    flex: 2;
}

.texto-historia h1 {
    color: #000000;
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.texto-historia p {
    color: #000000;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Carrossel de fotos */
.carrossel-fotos {
    position: relative;
    height: 800px;
    overflow: hidden;
    margin: 4rem 0;
}

.carrossel-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrossel-track {
    display: flex;
    position: absolute;
    left: 0;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
    gap: 3rem;
}

.slide {
    position: relative;
    width: 400px;
    height: 500px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efeitos para slides não ativos */
.slide:not(.active) {
    transform: scale(0.8);
    opacity: 0.5;
}

/* Efeito para slide ativo */
.slide.active {
    transform: scale(1.1);
    opacity: 1;
    z-index: 2;
}

/* Efeito hover */
.slide:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Botões de navegação */
.carrossel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(16, 31, 0, 0.8);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    transition: all 0.3s ease;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carrossel-btn:hover {
    background: #101F00;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.carrossel-btn.prev {
    left: 20px;
}

.carrossel-btn.next {
    right: 20px;
}

/* Indicadores de slide */
.carrossel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #101F00;
    transform: scale(1.2);
}

/* Responsividade */
@media (max-width: 992px) {
    .historia-casal {
        flex-direction: column;
        gap: 2rem;
    }

    .foto-casal img {
        width: 350px;
        height: 350px;
    }

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

    .texto-historia h1 {
        font-size: 2rem;
    }

    .carrossel-fotos {
        height: 650px;
    }

    .slide {
        width: 350px;
        height: 450px;
    }
}

@media (max-width: 768px) {
    .foto-casal img {
        width: 300px;
        height: 300px;
    }

    .texto-historia h1 {
        font-size: 1.8rem;
    }

    .texto-historia p {
        font-size: 1rem;
    }

    .carrossel-fotos {
        height: 550px;
    }

    .slide {
        width: 280px;
        height: 380px;
    }

    .carrossel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .foto-casal img {
        width: 250px;
        height: 250px;
    }

    .texto-historia h1 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .texto-historia p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .carrossel-fotos {
        height: 450px;
        margin: 3rem 0;
    }

    .slide {
        width: 220px;
        height: 320px;
    }

    .carrossel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 400px) {
    .foto-casal img {
        width: 200px;
        height: 200px;
    }

    .texto-historia h1 {
        font-size: 1.4rem;
    }

    .texto-historia p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }

    .carrossel-fotos {
        height: 380px;
        margin: 2rem 0;
    }

    .slide {
        width: 180px;
        height: 260px;
    }

    .carrossel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Adicionando breakpoint para telas muito pequenas */
@media (max-width: 360px) {
    .historia-container {
        max-width: 98%;
        padding: 12px 0.6rem 1.2rem;
    }
    
    .foto-casal img {
        width: 180px;
        height: 180px;
    }
    
    .texto-historia h1 {
        font-size: 1.3rem;
    }
    
    .texto-historia p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .carrossel-fotos {
        height: 340px;
    }
    
    .slide {
        width: 160px;
        height: 240px;
    }
    
    .carrossel-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .padrinhos-section {
        padding: 1.8rem 0.6rem;
        border-radius: 20px;
    }
    
    .titulo-padrinhos h2 {
        font-size: 1.4rem;
    }
    
    .texto-padrinhos p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .foto-padrinhos {
        width: 240px;
        height: 180px;
    }
    
    .padrinhos-grid {
        gap: 0.5rem;
    }
    
    .card-padrinho {
        height: 100px;
    }
    
    .card-front i {
        font-size: 1.2rem;
    }
    
    .card-front h4 {
        font-size: 0.85rem;
    }
    
    .card-back p {
        font-size: 0.8rem;
    }
    
    .timer-item span:first-child {
        font-size: 1.6rem;
    }
    
    .timer-label {
        font-size: 0.65rem;
    }
    
    .titulo-contagem {
        font-size: 1.2rem;
    }
    
    .data-casamento {
        font-size: 1rem;
    }
    
    .cerimonia-section,
    .recepcao-section {
        padding: 2rem 0.8rem;
        border-radius: 20px;
    }
    
    .igreja-imagem,
    .recepcao-imagem {
        max-width: 260px; /* AUMENTADO: de 220px para 260px */
    }
}

/* Divisor Ornamentado */
.divisor-transparente {
    height: 100px;
    width: 100%;
    position: relative;
    margin: 3rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
}

.divisor-transparente {
    display: none;
}

.linha-divisor {
    display: none;
}

.divisor-transparente::before {
    content: "❦";
    position: absolute;
    top: 50%;
    left: calc(50% - 100px);
    transform: translateY(-50%) rotate(90deg);
    color: #101F00;
    font-size: 1.5rem;
    opacity: 0.7;
}

.divisor-transparente::after {
    content: "❦";
    position: absolute;
    top: 50%;
    left: calc(50% + 100px);
    transform: translateY(-50%) rotate(90deg);
    color: #101F00;
    font-size: 1.5rem;
    opacity: 0.7;
}

.coracao-pequeno, .coracao-grande {
    display: none;
}

.divisor-transparente .divisor-ornamento {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.divisor-transparente .divisor-ornamento::before {
    content: "✿";
    color: #101F00;
    font-size: 2rem;
    margin: 0 15px;
    text-shadow: 0 0 10px rgba(182, 213, 192, 0.6);
}

.divisor-transparente .divisor-ornamento::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, 
        #101F00 0%, 
        transparent 40%, 
        transparent 60%, 
        #101F00 100%);
    transform: translate(-50%, -50%);
    z-index: -1;
}

@keyframes heartBeat {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    14% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    28% {
        transform: translate(-50%, -50%) scale(1);
    }
    42% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    70% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Seção dos Padrinhos */
.padrinhos-section {
    padding: 3rem 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 1s ease forwards;
    background: linear-gradient(to bottom, #ffffff, #B6D5C0);
    border-radius: 50px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.titulo-padrinhos {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.titulo-padrinhos h2 {
    font-size: 2.5rem;
    color: #101F00;
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(182, 213, 192, 0.3);
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.5s;
    text-transform: none;
}

.decoracao-titulo {
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #101F00 50%, 
        transparent 100%);
    margin: 0 auto;
    position: relative;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.8s;
    overflow: visible;
}

.decoracao-titulo::before {
    content: '♥';
    position: absolute;
    color: #101F00;
    font-size: 1.2rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
    background-color: #DDEBE1;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    z-index: 2;
    box-shadow: 0 0 5px rgba(221, 235, 225, 0.8);
    text-align: center;
    vertical-align: middle;
    animation: heartBeat 2s infinite;
}

.decoracao-titulo::after {
    display: none;
}

.texto-padrinhos {
    color: #101F00;
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: center;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.texto-padrinhos p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2C3E50;
    text-align: justify;
    margin: 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.texto-padrinhos p::after {
    display: none;
}

.texto-padrinhos p:hover {
    transform: scale(1.03) translateY(-3px);
    color: #101F00;
    text-shadow: 0 0 12px rgba(16, 31, 0, 0.3);
    transition: all 0.4s ease;
}

.paragrafo-destacado {
    font-style: italic;
    margin-bottom: 2.5rem !important;
}



/* Animações */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .titulo-padrinhos h2 {
        font-size: 2.2rem;
    }
    
    .texto-padrinhos {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .texto-padrinhos p {
        font-size: 1rem;
        line-height: 1.6;
        margin: 0;
        padding: 1.5rem;
    }
    
    .paragrafo-destacado {
        font-size: 1.05rem;
    }
}

@media (max-width: 576px) {
    .padrinhos-section {
        padding: 2.5rem 1rem;
        border-radius: 30px;
    }
    
    .titulo-padrinhos h2 {
        font-size: 1.8rem;
    }
    
    .texto-padrinhos {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .texto-padrinhos p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin: 0;
        padding: 1.3rem;
    }
    
    .paragrafo-destacado {
        font-size: 1rem;
        margin-bottom: 1.8rem !important;
    }
}

@media (max-width: 400px) {
    .padrinhos-section {
        padding: 2rem 0.8rem;
        border-radius: 25px;
    }
    
    .titulo-padrinhos h2 {
        font-size: 1.6rem;
    }
    
    .texto-padrinhos {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .texto-padrinhos p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin: 0;
        padding: 1.2rem;
    }
    
    .paragrafo-destacado {
        font-size: 0.95rem;
        margin-bottom: 1.5rem !important;
    }
}

/* Container da Foto dos Padrinhos */
.foto-padrinhos-container {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0;
    perspective: 1000px;
}

.foto-padrinhos {
    position: relative;
    width: 500px;
    height: 375px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
    opacity: 0;
    transform: translateY(50px) rotateX(20deg);
    animation: fotoEntrada 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.5s;
}

.foto-padrinhos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.efeito-brilho {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(151, 168, 0, 0.2),
        transparent
    );
    animation: brilho 3s infinite;
}

/* Animações Melhoradas */
@keyframes fotoEntrada {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(20deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes brilho {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: -100%;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efeitos de Hover Melhorados */
.foto-padrinhos:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

.foto-padrinhos:hover img {
    transform: scale(1.05);
}

/* Responsividade para a Foto */
@media (max-width: 992px) {
    .foto-padrinhos {
        width: 450px;
        height: 338px;
    }
}

@media (max-width: 768px) {
    .foto-padrinhos {
        width: 400px;
        height: 300px;
    }
}

@media (max-width: 576px) {
    .foto-padrinhos {
        width: 320px;
        height: 240px;
    }
}

@media (max-width: 400px) {
    .foto-padrinhos {
        width: 280px;
        height: 210px;
    }
}

/* Lista de Padrinhos */
.lista-padrinhos {
    margin: 3rem 0;
}

.subtitulo-padrinhos {
    color: #101F00;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.5s;
}

.padrinhos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
    width: 100%;
}

.card-padrinho {
    perspective: 1000px;
    height: 140px;
    cursor: pointer;
    opacity: 0;
}

.card-padrinho:nth-child(1) { animation: cardAppear 0.5s ease forwards 0.1s; }
.card-padrinho:nth-child(2) { animation: cardAppear 0.5s ease forwards 0.2s; }
.card-padrinho:nth-child(3) { animation: cardAppear 0.5s ease forwards 0.3s; }
.card-padrinho:nth-child(4) { animation: cardAppear 0.5s ease forwards 0.4s; }
.card-padrinho:nth-child(5) { animation: cardAppear 0.5s ease forwards 0.5s; }
.card-padrinho:nth-child(6) { animation: cardAppear 0.5s ease forwards 0.6s; }
.card-padrinho:nth-child(7) { animation: cardAppear 0.5s ease forwards 0.7s; }
.card-padrinho:nth-child(8) { animation: cardAppear 0.5s ease forwards 0.8s; }
.card-padrinho:nth-child(9) { animation: cardAppear 0.5s ease forwards 0.9s; }
.card-padrinho:nth-child(10) { animation: cardAppear 0.5s ease forwards 1s; }
.card-padrinho:nth-child(11) { animation: cardAppear 0.5s ease forwards 1.1s; }
.card-padrinho:nth-child(12) { animation: cardAppear 0.5s ease forwards 1.2s; }

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card-padrinho.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.8rem;
}

.card-front {
    background: linear-gradient(145deg, rgba(182, 213, 192, 0.8), rgba(182, 213, 192, 0.7));
    border: 1px solid #B6D5C0;
    color: #101F00;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-front i {
    color: #101F00;
    font-size: 1.6rem;
    margin-bottom: 8px;
    animation: pulse 2s infinite;
}

.card-front h4 {
    font-size: 1.1rem;
    margin: 0;
}

.card-back {
    background: linear-gradient(135deg, #3E4D1A, #101F00);
    color: #fff;
    transform: rotateY(180deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: none;
}

.card-back p {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsividade para os cards */
@media (max-width: 1200px) {
    .padrinhos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .padrinhos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .subtitulo-padrinhos {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .padrinhos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-padrinho {
        height: 140px;
    }
    
    .card-front i {
        font-size: 1.5rem;
    }
    
    .card-front h4 {
        font-size: 1rem;
    }
    
    .card-back p {
        font-size: 0.95rem;
    }
    
    .subtitulo-padrinhos {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .padrinhos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .card-padrinho {
        height: 140px;
    }
    
    .card-front i {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }
    
    .card-front h4 {
        font-size: 0.95rem;
    }
    
    .card-back p {
        font-size: 0.9rem;
    }
    
    .subtitulo-padrinhos {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 400px) {
    .padrinhos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }
    
    .card-padrinho {
        height: 140px;
    }
    
    .card-front i {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }
    
    .card-front h4 {
        font-size: 0.9rem;
    }
    
    .card-back p {
        font-size: 0.85rem;
    }
    
    .subtitulo-padrinhos {
        font-size: 1.4rem;
        margin-bottom: 1.3rem;
    }
    
    .card-front, .card-back {
        padding: 0.6rem;
    }
}

/* Contagem Regressiva - Estilo Minimalista */
.pagina-historia .contagem-regressiva {
    margin: 0 auto 2.5rem auto !important;
    text-align: center !important;
    animation: fadeIn 1.5s ease forwards !important;
    padding: 1.8rem !important;
    max-width: 700px !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.pagina-historia .titulo-contagem {
    font-size: 2rem !important;
    color: #101F00 !important;
    margin-bottom: 1.8rem !important;
    font-weight: 600 !important;
    position: relative !important;
    display: inline-block !important;
}

.pagina-historia .timer {
    display: flex !important;
    justify-content: center !important;
    gap: 2rem !important;
    margin-bottom: 1.2rem !important;
    flex-wrap: nowrap !important; /* Evitar quebra de linha */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 var(--spacing-sm) !important;
}

.pagina-historia .timer-item {
    text-align: center !important;
    min-width: 80px !important;
    flex-shrink: 0 !important; /* Não permitir que encolha */
    padding: 0 var(--spacing-xs) !important;
    box-sizing: border-box !important;
}

.pagina-historia .timer-item span:first-child {
    font-size: 4rem !important;
    font-weight: bold !important;
    color: #101F00 !important;
    padding: 0.5rem 0 !important;
    line-height: 1 !important;
    position: relative !important;
    display: block !important;
}

.pagina-historia .timer-label {
    font-size: 0.95rem !important;
    color: #000000 !important;
    margin-top: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    display: block !important;
}

.pagina-historia .data-casamento {
    font-size: 1.5rem !important;
    color: #000000 !important;
    margin-top: 1.8rem !important;
    font-style: italic !important;
    position: relative !important;
    display: inline-block !important;
}



/* Media queries para responsividade */

/* Tablets grandes (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .pagina-historia .contagem-regressiva {
        padding: 1.8rem !important;
        margin-bottom: 2.2rem !important;
        max-width: 100% !important;
    }
    
    .pagina-historia .timer {
        gap: 1.8rem !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .pagina-historia .timer-item {
        min-width: 70px !important;
        flex-shrink: 0 !important;
    }
    
    .pagina-historia .timer-item span:first-child {
        font-size: 3.2rem !important;
        line-height: 1 !important;
    }
    
    .pagina-historia .timer-label {
        font-size: 0.85rem !important;
        margin-top: 0.7rem !important;
        line-height: 1 !important;
    }
    
    .pagina-historia .titulo-contagem {
        font-size: 1.8rem !important;
        margin-bottom: 1.6rem !important;
    }
    
    .pagina-historia .data-casamento {
        font-size: 1.3rem !important;
        margin-top: 1.6rem !important;
    }
}
@media (max-width: 768px) {
    .pagina-historia .contagem-regressiva {
        padding: 1.5rem !important;
        margin-bottom: 2rem !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .pagina-historia .timer {
        gap: 1.2rem !important; /* Reduzido para 1.2rem */
        flex-wrap: nowrap !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 var(--spacing-sm) !important;
    }
    
    .pagina-historia .timer-item {
        min-width: 55px !important; /* Reduzido para 55px */
        flex-shrink: 0 !important;
        padding: 0 var(--spacing-xs) !important;
    }
    
    .pagina-historia .timer-item span:first-child {
        font-size: 2.2rem !important; /* Reduzido para 2.2rem */
        line-height: 1 !important;
    }
    
    .pagina-historia .timer-label {
        font-size: 0.75rem !important; /* Reduzido para 0.75rem */
        margin-top: 0.5rem !important;
        line-height: 1 !important;
    }
    
    .pagina-historia .titulo-contagem {
        font-size: 1.4rem !important; /* Reduzido para 1.4rem */
        margin-bottom: 1.3rem !important;
    }
    
    .pagina-historia .data-casamento {
        font-size: 1.1rem !important; /* Reduzido para 1.1rem */
        margin-top: 1.3rem !important;
    }
}

@media (max-width: 576px) {
    .pagina-historia .contagem-regressiva {
        padding: 1.2rem !important;
        margin-bottom: 1.8rem !important;
        text-align: center !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .pagina-historia .timer {
        gap: 0.8rem !important; /* Reduzido ainda mais para 0.8rem */
        justify-content: center !important;
        flex-wrap: nowrap !important;
        padding: 0 var(--spacing-xs) !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .pagina-historia .timer-item {
        text-align: center !important;
        min-width: 40px !important; /* Reduzido para 40px */
        flex-shrink: 0 !important;
        padding: 0 var(--spacing-xs) !important;
    }
    
    .pagina-historia .timer-item span:first-child {
        font-size: 1.6rem !important; /* Reduzido para 1.6rem */
        line-height: 1 !important;
    }
    
    .pagina-historia .timer-label {
        font-size: 0.6rem !important; /* Reduzido para 0.6rem */
        margin-top: 0.4rem !important;
        letter-spacing: 0.5px !important;
        line-height: 1 !important;
    }
    
    .pagina-historia .titulo-contagem {
        font-size: 1.2rem !important; /* Reduzido para 1.2rem */
        margin-bottom: 1rem !important;
    }
    
    .pagina-historia .data-casamento {
        font-size: 0.9rem !important; /* Reduzido para 0.9rem */
        margin-top: 1rem !important;
    }
}

@media (max-width: 400px) {
    .pagina-historia .contagem-regressiva {
        padding: 0.8rem !important;
        margin-bottom: 1.5rem !important;
        text-align: center !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .pagina-historia .timer {
        gap: 0.6rem !important; /* Reduzido para 0.6rem */
        justify-content: center !important;
        flex-wrap: nowrap !important;
        padding: 0 var(--spacing-xs) !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .pagina-historia .timer-item {
        text-align: center !important;
        min-width: 35px !important; /* Reduzido para 35px */
        flex-shrink: 0 !important;
        padding: 0 2px !important;
    }
    
    .pagina-historia .timer-item span:first-child {
        font-size: 1.3rem !important; /* Reduzido para 1.3rem */
        line-height: 1 !important;
    }
    
    .pagina-historia .timer-label {
        font-size: 0.55rem !important; /* Reduzido para 0.55rem */
        letter-spacing: 0.3px !important;
        line-height: 1 !important;
        margin-top: 0.3rem !important;
    }
    
    .pagina-historia .titulo-contagem {
        font-size: 1rem !important; /* Reduzido para 1rem */
        margin-bottom: 0.8rem !important;
    }
    
    .pagina-historia .data-casamento {
        font-size: 0.8rem !important; /* Reduzido para 0.8rem */
        margin-top: 0.8rem !important;
    }
}

/* Dispositivos muito pequenos (até 320px) */
@media (max-width: 320px) {
    .pagina-historia .contagem-regressiva {
        padding: 0.6rem !important;
        margin-bottom: 1.2rem !important;
        text-align: center !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .pagina-historia .timer {
        gap: 0.4rem !important; /* Reduzido para 0.4rem */
        justify-content: center !important;
        flex-wrap: nowrap !important;
        padding: 0 4px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .pagina-historia .timer-item {
        text-align: center !important;
        min-width: 30px !important; /* Reduzido para 30px */
        flex-shrink: 0 !important;
        padding: 0 1px !important;
    }
    
    .pagina-historia .timer-item span:first-child {
        font-size: 1.1rem !important; /* Reduzido para 1.1rem */
        line-height: 1 !important;
    }
    
    .pagina-historia .timer-label {
        font-size: 0.5rem !important; /* Reduzido para 0.5rem */
        letter-spacing: 0.2px !important;
        line-height: 1 !important;
        margin-top: 0.2rem !important;
    }
    
    .pagina-historia .titulo-contagem {
        font-size: 0.9rem !important; /* Reduzido para 0.9rem */
        margin-bottom: 0.6rem !important;
    }
    
    .pagina-historia .data-casamento {
        font-size: 0.7rem !important; /* Reduzido para 0.7rem */
        margin-top: 0.6rem !important;
    }
}

/* Desktop - Sem scrollbar no contador regressivo */
@media (min-width: 1200px) {
    .pagina-historia .contagem-regressiva {
        overflow: hidden !important;
    }
    
    .pagina-historia .timer {
        overflow: hidden !important;
        overflow-x: hidden !important;
    }
}

/* Todas as resoluções - Sem scrollbar no contador regressivo */
.pagina-historia .contagem-regressiva {
    overflow: hidden !important;
}

.pagina-historia .timer {
    overflow: hidden !important;
    overflow-x: hidden !important;
}

/* ====== Seção de Cerimônia ====== */
.cerimonia-section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 2rem auto 0;
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 1s ease forwards;
    background: linear-gradient(to bottom, #ffffff, #B6D5C0);
    border-radius: 50px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    color: #101F00;
}

.titulo-cerimonia {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.titulo-cerimonia h2 {
    font-size: 3rem;
    color: #101F00;
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(182, 213, 192, 0.3);
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.5s;
    text-transform: none;
}

/* Container para as imagens da igreja */
.igreja-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.subtitulo-igreja {
    color: #101F00;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
    position: relative;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.3s;
}

.subtitulo-igreja::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #101F00, transparent);
}

.igreja-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    justify-content: center;
    width: 100%;
}

.igreja-card {
    perspective: 1000px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.4s;
    width: 100%;
}

.igreja-imagem {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    background: transparent;
    width: 100%;
    max-width: 350px;
    height: auto;
    margin: 0 auto;
    /* REMOVIDO: cursor: zoom-in; */
}

.igreja-imagem img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Mantém a imagem inteira sempre visível */
    transition: all 0.5s ease;
    display: block;
    max-height: 400px; /* Limita altura para profissionalismo */
}

.igreja-imagem:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

/* Classe especial para ajustar a posição da imagem da igreja */
.igreja-imagem.igreja-principal img {
    object-position: center center;
}

.igreja-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, 
                rgba(0, 0, 0, 0.9) 0%, 
                rgba(0, 0, 0, 0.7) 40%, 
                rgba(0, 0, 0, 0.4) 70%, 
                transparent 100%);
    padding: 3rem 1.5rem 1.5rem;
    transition: all 0.5s ease;
}

.igreja-overlay h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
    transform: translateY(0);
    transition: all 0.5s ease;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    line-height: 1.4;
}

.igreja-imagem:hover .igreja-overlay {
    background: linear-gradient(to top, rgba(16, 31, 0, 0.9), rgba(16, 31, 0, 0.6), transparent);
    padding-bottom: 2rem;
}

.igreja-imagem:hover .igreja-overlay h3 {
    color: #B6D5C0;
    transform: translateY(-5px);
}

/* Cartões de informação */
.cerimonia-info {
    display: flex;
    gap: 2rem;
    margin: 3rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.info-card {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(182, 213, 192, 0.1), rgba(182, 213, 192, 0.2));
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.6s;
    border: 1px solid rgba(182, 213, 192, 0.3);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    background: linear-gradient(145deg, rgba(182, 213, 192, 0.2), rgba(182, 213, 192, 0.3));
}

.info-icon {
    font-size: 2rem;
    color: #101F00;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.info-texto {
    flex: 1;
}

.info-texto h4 {
    font-size: 1.3rem;
    color: #101F00;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.info-texto p {
    font-size: 1rem;
    color: #333;
    margin: 0.3rem 0;
    line-height: 1.4;
}

/* Mensagem da cerimônia */
.cerimonia-mensagem {
    text-align: center;
    margin: 3.5rem 0;
    padding: 2rem;
    background: linear-gradient(145deg, rgba(16, 31, 0, 0.03), rgba(16, 31, 0, 0.07));
    border-radius: 15px;
    border-left: 3px solid #B6D5C0;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
}

.mensagem-convite {
    background: linear-gradient(145deg, rgba(182, 213, 192, 0.1), rgba(182, 213, 192, 0.2));
    border-left: 3px solid #101F00;
    border-right: 3px solid #101F00;
    margin: 2rem 0 3rem;
    padding: 2.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.mensagem-convite p {
    font-size: 1.35rem !important;
    font-weight: 500 !important;
    line-height: 1.8 !important;
    color: #101F00 !important;
    font-family: 'Cormorant Garamond', serif !important;
    letter-spacing: 0.03em !important;
}

.cerimonia-mensagem p {
    font-size: 1.4rem;
    font-style: italic;
    color: #101F00;
    margin: 0 0 1rem 0;
    line-height: 1.6;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
}

.cerimonia-mensagem span {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

/* Mapa incorporado */
.mapa-container {
    margin: 3rem 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.7s;
    border: 3px solid rgba(182, 213, 192, 0.3);
}

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

/* Responsividade para a seção de cerimônia */
@media (max-width: 992px) {
    .titulo-cerimonia h2 {
        font-size: 2.3rem;
    }
    
    .subtitulo-igreja {
        font-size: 1.8rem;
    }
    
    .igreja-card {
        width: 100%;
    }
    
    .igreja-imagem {
        height: auto; /* Altura automática para mostrar imagem completa */
        max-height: 350px; /* Limite máximo para profissionalismo */
    }
    
    .igreja-imagem img {
        max-height: 350px; /* Garantir que a imagem não exceda */
    }
    
    .igreja-cards {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .titulo-cerimonia h2 {
        font-size: 2rem;
    }
    
    .subtitulo-igreja {
        font-size: 1.6rem;
    }
    
    .igreja-cards {
        grid-template-columns: 1fr;
    }
    
    .igreja-imagem {
        height: auto; /* Altura automática para mostrar imagem completa */
        max-height: 300px; /* Limite máximo para smartphones */
    }
    
    .igreja-imagem img {
        max-height: 300px; /* Garantir que a imagem não exceda em smartphones */
    }
    
    .cerimonia-info {
        flex-direction: column;
        align-items: center;
    }
    
    .info-card {
        min-width: 80%;
    }
    
    .cerimonia-mensagem p {
        font-size: 1.2rem;
    }
    
    .mensagem-convite p {
        font-size: 1.2rem !important;
        line-height: 1.6 !important;
    }
    
    .mapa-container {
        margin: 2rem 0;
    }
    
    .mapa-container iframe {
        height: 350px;
    }
}

/* Media queries adicionais para telas menores */
@media (max-width: 576px) {
    .cerimonia-section,
    .recepcao-section {
        padding: 3rem 1.2rem;
        border-radius: 30px;
    }
    
    .titulo-cerimonia h2,
    .titulo-recepcao h2 {
        font-size: 1.7rem;
    }
    
    .subtitulo-igreja,
    .subtitulo-recepcao {
        font-size: 1.3rem;
    }
    
    .igreja-cards,
    .recepcao-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .igreja-imagem,
    .recepcao-imagem {
        height: auto;
        max-width: 320px; /* AUMENTADO: de 280px para 320px */
    }
    
    .igreja-overlay h3 {
        font-size: 1.2rem;
    }
    
    .mensagem-convite p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
}

@media (max-width: 400px) {
    .cerimonia-section,
    .recepcao-section {
        padding: 2.5rem 1rem;
        border-radius: 25px;
    }
    
    .titulo-cerimonia h2,
    .titulo-recepcao h2 {
        font-size: 1.5rem;
    }
    
    .subtitulo-igreja,
    .subtitulo-recepcao {
        font-size: 1.2rem;
    }
    
    .igreja-imagem,
    .recepcao-imagem {
        max-width: 280px; /* AUMENTADO: de 240px para 280px */
    }
    
    .igreja-overlay h3 {
        font-size: 1.1rem;
    }
    
    .mensagem-convite {
        padding: 1.3rem;
    }
    
    .mensagem-convite p {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }
    
    .info-card,
    .detalhe-card {
        padding: 1rem;
        gap: 0.7rem;
    }
    
    .info-icon,
    .detalhe-icon {
        font-size: 1.5rem;
    }
    
    .info-texto h4,
    .detalhe-texto h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .info-texto p,
    .detalhe-texto p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
}

/* ====== Seção de Recepção ====== */
.recepcao-section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 2rem auto 0;
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 1s ease forwards;
    background: linear-gradient(to bottom, #DDEBE1, #B6D5C0);
    border-radius: 50px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    color: #101F00;
}

.titulo-recepcao {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.titulo-recepcao h2 {
    font-size: 3rem;
    color: #101F00;
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(182, 213, 192, 0.3);
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.5s;
    text-transform: none;
}

.recepcao-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.subtitulo-recepcao {
    color: #101F00;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.3s;
}

.subtitulo-recepcao::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #101F00, transparent);
}

.recepcao-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.4s;
}

.recepcao-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #101F00;
}

.recepcao-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    justify-content: center;
    width: 100%;
}

.recepcao-card {
    perspective: 1000px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
    width: 100%;
}

.recepcao-imagem {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    background: transparent;
    width: 100%;
    max-width: 450px; /* AUMENTADO: de 350px para 450px */
    height: auto;
    margin: 0 auto;
    /* REMOVIDO: cursor: zoom-in; */
}

.recepcao-imagem:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.recepcao-imagem img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Mantém a imagem inteira sempre visível */
    transition: all 0.5s ease;
    display: block;
    max-height: 450px; /* Limita altura para profissionalismo - maior que igreja */
}

/* Detalhes da recepção */
.recepcao-detalhes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    width: 100%;
}

.detalhe-card {
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(16, 31, 0, 0.05), rgba(16, 31, 0, 0.1));
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.6s;
    border: 1px solid rgba(16, 31, 0, 0.1);
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.detalhe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    background: linear-gradient(145deg, rgba(16, 31, 0, 0.1), rgba(16, 31, 0, 0.15));
}

.detalhe-icon {
    font-size: 2.2rem;
    color: #101F00;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    flex: 0 0 auto;
}

.detalhe-texto {
    flex: 1;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detalhe-texto h4 {
    font-size: 1.3rem;
    color: #101F00;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    text-align: left;
}

.detalhe-texto p {
    font-size: 1rem;
    color: #333;
    margin: 0.3rem 0;
    line-height: 1.4;
    text-align: left;
}

/* Mensagem da recepção */
.recepcao-mensagem {
    text-align: center;
    margin: 3.5rem 0;
    padding: 2rem;
    background: linear-gradient(145deg, rgba(16, 31, 0, 0.03), rgba(16, 31, 0, 0.07));
    border-radius: 15px;
    border-left: 3px solid #101F00;
    border-right: 3px solid #101F00;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.7s;
}

.recepcao-mensagem p {
    font-size: 1.4rem;
    font-style: italic;
    color: #101F00;
    margin: 0;
    line-height: 1.6;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
}

/* Mapa da recepção */
.recepcao-mapa {
    margin: 3rem 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
    border: 3px solid rgba(16, 31, 0, 0.1);
}

.recepcao-mapa iframe {
    display: block;
    width: 100%;
}

/* Responsividade para a seção de recepção */
@media (max-width: 992px) {
    .titulo-recepcao h2 {
        font-size: 2.3rem;
    }
    
    .subtitulo-recepcao {
        font-size: 1.8rem;
    }
    
    .recepcao-card {
        width: 100%;
    }
    
    .recepcao-intro p {
        font-size: 1.1rem;
    }
    
    .recepcao-cards {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    .recepcao-imagem {
        height: auto; /* Altura automática para mostrar imagem completa */
        max-height: 400px; /* Limite máximo para profissionalismo */
    }
    
    .recepcao-imagem img {
        max-height: 400px; /* Garantir que a imagem não exceda */
    }
}

@media (max-width: 768px) {
    .titulo-recepcao h2 {
        font-size: 2rem;
    }
    
    .subtitulo-recepcao {
        font-size: 1.6rem;
    }
    
    .recepcao-intro p {
        font-size: 1rem;
    }
    
    .recepcao-cards {
        grid-template-columns: 1fr;
    }
    
    .recepcao-imagem {
        height: auto; /* Altura automática para mostrar imagem completa */
        max-height: 350px; /* Limite máximo para smartphones */
    }
    
    .recepcao-imagem img {
        max-height: 350px; /* Garantir que a imagem não exceda em smartphones */
    }
    
    .recepcao-detalhes {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .recepcao-mensagem p {
        font-size: 1.2rem;
    }
    
    .recepcao-mapa iframe {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .recepcao-detalhes {
        grid-template-columns: 1fr;
    }
    
    .detalhe-card {
        padding: 1.2rem;
        height: auto;
        min-height: 100px;
    }
    
    .detalhe-icon {
        font-size: 1.8rem;
    }
    
    .detalhe-texto h4 {
        font-size: 1.1rem;
    }
    
    .detalhe-texto p {
        font-size: 0.9rem;
    }
}

/* Divisor Elegante */
.divisor-elegante {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 50px auto;
    width: 80%;
    max-width: 800px;
    position: relative;
}

.divisor-elegante {
    display: none;
}



.igreja-imagem, .recepcao-imagem {
    position: relative;
}

/* REMOVIDO: Ícones de lupa conforme solicitado pelo usuário */

/* REMOVIDO: CSS de zoom conforme solicitado pelo usuário */



/* Botão mapa */
.cerimonia-botao {
    text-align: center;
    margin: 2rem 0;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1s;
}

.botao-mapa {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(145deg, #101F00, #3E4D1A);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.botao-mapa i {
    margin-right: 0.5rem;
}

.botao-mapa:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
    background: linear-gradient(145deg, #3E4D1A, #101F00);
}

/* Botão da recepção */
.recepcao-botao {
    text-align: center;
    margin: 2rem 0;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.9s;
}

.recepcao-botao-mapa {
    background: linear-gradient(145deg, #3E4D1A, #101F00);
}

.recepcao-botao-mapa:hover {
    background: linear-gradient(145deg, #101F00, #3E4D1A);
}

/* Melhorar espaçamento e tamanho dos botões */
@media (max-width: 576px) {
    .botao-mapa {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {
    .botao-mapa {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .botao-mapa {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .cerimonia-botao,
    .recepcao-botao {
        margin: 1.5rem 0;
    }
}

/* Popup de Alerta para Login */
.popup-alerta {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.popup-alerta-content {
    background: linear-gradient(to bottom, #ffffff, #f8f8f8);
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: scaleIn 0.4s ease;
    border: 1px solid rgba(62, 77, 26, 0.3);
}

.popup-alerta h3 {
    color: #3E4D1A;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.popup-alerta p {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.popup-alerta-botoes {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-fechar, .btn-login {
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-fechar {
    background-color: #e0e0e0;
    color: #555;
    border: none;
}

.btn-login {
    background: linear-gradient(135deg, #3E4D1A, #101F00);
    color: white;
    border: none;
}

.btn-fechar:hover {
    background-color: #d0d0d0;
    transform: translateY(-2px);
}

.btn-login:hover {
    background: linear-gradient(135deg, #4e5f20, #1c2e04);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@keyframes scaleIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .popup-alerta-content {
        width: 85%;
        padding: 1.5rem;
    }
    
    .popup-alerta h3 {
        font-size: 1.4rem;
    }
    
    .popup-alerta p {
        font-size: 1rem;
    }
    
    .btn-fechar, .btn-login {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .popup-alerta-content {
        width: 90%;
        padding: 1.25rem;
    }
}

/* ========================================
   SEÇÃO DOS PAJENS
   ======================================== */

.pajens-section {
    margin: 4rem 0;
    padding: 3rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.titulo-pajens {
    margin-bottom: 3rem;
    position: relative;
}

.titulo-pajens h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.foto-pajens-container {
    margin: 2rem 0 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.foto-pajens {
    width: 500px; /* AUMENTADO: de 400px para 500px */
    height: 312px; /* AUMENTADO: de 250px para 312px (mantendo proporção) */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

.foto-pajens img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.foto-pajens:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.foto-pajens:hover img {
    transform: scale(1.1);
}

.lista-pajens {
    margin: 2rem 0;
}

.subtitulo-pajens {
    font-size: 1.3rem;
    color: #34495E;
    margin-bottom: 2rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.pajens-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

.card-pajem {
    perspective: 1000px;
    opacity: 0;
    transform: translateY(30px);
    /* CARDS QUADRADOS RESPONSIVOS */
    aspect-ratio: 1;
    min-height: 120px;
    width: 100%;
}

.card-pajem:nth-child(1) { animation: cardAppear 0.5s ease forwards 0.1s; }
.card-pajem:nth-child(2) { animation: cardAppear 0.5s ease forwards 0.2s; }
.card-pajem:nth-child(3) { animation: cardAppear 0.5s ease forwards 0.3s; }
.card-pajem:nth-child(4) { animation: cardAppear 0.5s ease forwards 0.4s; }

.card-pajem .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.card-pajem.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-pajem .card-front, 
.card-pajem .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card-pajem .card-front {
    background: linear-gradient(145deg, rgba(182, 213, 192, 0.8), rgba(182, 213, 192, 0.7));
    border: 1px solid #B6D5C0;
    color: #101F00;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-pajem .card-front i {
    color: #101F00;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    animation: pulse 2s infinite;
}

.card-pajem .card-front h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.card-pajem .card-back {
    background: linear-gradient(135deg, #3E4D1A, #101F00);
    color: #fff;
    transform: rotateY(180deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: none;
}

.card-pajem .card-back p {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    text-align: center;
    line-height: 1.3;
    color: white; /* Cor padrão branca */
}

/* Alternativa: usar spans para controle preciso */
.card-pajem .card-back .nome-pajem {
    color: #FFD700 !important; /* Dourado para o nome */
    font-weight: 600;
    display: block;
}

.card-pajem .card-back .desc-pajem {
    color: white !important; /* Branco para a descrição */
    font-weight: 400;
    font-size: 0.85em;
    margin-top: 0.2rem;
}

.texto-pajens {
    margin: 3rem auto;
    max-width: 800px;
    padding: 0 2rem;
}

.texto-pajens p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2C3E50;
    text-align: justify;
    margin: 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Responsividade para pajens - MESMO PADRÃO DOS PADRINHOS */

/* Desktop Grande - 4 colunas */
@media (min-width: 1200px) {
    .pajens-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
    
    .card-pajem {
        min-height: 140px;
    }
    
    .card-pajem .card-front i {
        font-size: 1.8rem;
    }
    
    .card-pajem .card-front h4 {
        font-size: 1rem;
    }
    
    .card-pajem .card-back p {
        font-size: 0.9rem;
    }
}

/* Tablet/Desktop Médio - 3 colunas */
@media (max-width: 1199px) and (min-width: 768px) {
    .pajens-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .card-pajem {
        min-height: 130px;
    }
    
    .card-pajem .card-front i {
        font-size: 1.6rem;
    }
    
    .card-pajem .card-front h4 {
        font-size: 0.95rem;
    }
    
    .card-pajem .card-back p {
        font-size: 0.85rem;
    }
    
    .foto-pajens {
        width: 450px; /* AUMENTADO: de 350px para 450px */
        height: 280px; /* AUMENTADO: de 220px para 280px */
    }
}

/* Smartphones - Grid inteligente 2 ou 3 colunas */
@media (max-width: 767px) {
    .pajens-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 10px;
    }
    
    .card-pajem {
        min-height: 110px;
    }
    
    .card-pajem .card-front i {
        font-size: 1.4rem;
    }
    
    .card-pajem .card-front h4 {
        font-size: 0.85rem;
        line-height: 1.2;
        padding: 0 0.2rem;
    }
    
    .card-pajem .card-back p {
        font-size: 0.8rem;
        line-height: 1.3;
        padding: 0 0.2rem;
    }
    
    .foto-pajens {
        width: 350px; /* AUMENTADO: de 280px para 350px */
        height: 220px; /* AUMENTADO: de 180px para 220px */
    }
}

/* Smartphones com mais espaço - 3 colunas */
@media (max-width: 767px) and (min-width: 480px) {
    .pajens-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .card-pajem {
        min-height: 95px;
    }
    
    .card-pajem .card-front h4 {
        font-size: 0.8rem;
    }
    
    .card-pajem .card-back p {
        font-size: 0.75rem;
    }
}

/* Smartphones muito pequenos - forçar 2 colunas maiores (substituindo a regra antiga) */
@media (max-width: 400px) {
    .pajens-section {
        margin: 2rem 0;
        padding: 2rem 0;
    }
    
    .pajens-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 8px;
    }
    
    .card-pajem {
        min-height: 100px;
    }
    
    .card-pajem .card-front i {
        font-size: 1.3rem;
    }
    
    .card-pajem .card-front h4 {
        font-size: 0.9rem;
    }
    
    .card-pajem .card-back p {
        font-size: 0.75rem;
    }
    
    .subtitulo-pajens {
        font-size: 1rem;
    }
    
    .foto-pajens {
        width: 300px; /* AUMENTADO: de 240px para 300px */
        height: 187px; /* AUMENTADO: de 150px para 187px */
    }
    
    .texto-pajens {
        padding: 0 1rem;
    }
    
    .texto-pajens p {
        font-size: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 400px) {
    .pajens-section {
        margin: 1.5rem 0;
        padding: 1.5rem 0;
    }
    
    .titulo-pajens h2 {
        font-size: 2rem;
    }
    
    .texto-pajens {
        padding: 0 0.5rem;
    }
    
    .texto-pajens p {
        font-size: 0.9rem;
        padding: 1rem;
    }
    
    .foto-pajens {
        width: 250px; /* AUMENTADO: de 200px para 250px */
        height: 156px; /* AUMENTADO: de 125px para 156px */
    }
}

/* ===== BOTÃO VOLTAR AO TOPO ===== */
.btn-voltar-topo {
    position: fixed;
    bottom: 120px; /* Posicionado acima do rodapé */
    right: 30px;
    width: 70px; /* Um pouco maior */
    height: 70px; /* Um pouco maior */
    background: linear-gradient(135deg, #3E4D1A, #101F00);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px; /* Um pouco maior */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 99999 !important; /* SEMPRE ACIMA DO RODAPÉ */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-voltar-topo.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-voltar-topo:hover {
    background: linear-gradient(135deg, #101F00, #3E4D1A);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-voltar-topo:active {
    transform: translateY(-1px);
}

.btn-voltar-topo i {
    transition: transform 0.3s ease;
}

.btn-voltar-topo:hover i {
    transform: translateY(-2px);
}

/* Responsividade do botão voltar ao topo */
@media (max-width: 768px) {
    .btn-voltar-topo {
        bottom: 100px; /* Posicionado acima do rodapé no mobile */
        right: 20px;
        width: 60px; /* Um pouco maior */
        height: 60px; /* Um pouco maior */
        font-size: 24px; /* Um pouco maior */
    }
}

@media (max-width: 576px) {
    .btn-voltar-topo {
        bottom: 90px; /* Posicionado acima do rodapé no mobile */
        right: 15px;
        width: 55px; /* Um pouco maior */
        height: 55px; /* Um pouco maior */
        font-size: 22px; /* Um pouco maior */
    }
}

@media (max-width: 400px) {
    .btn-voltar-topo {
        bottom: 80px; /* Posicionado acima do rodapé no mobile */
        right: 10px;
        width: 50px; /* Um pouco maior */
        height: 50px; /* Um pouco maior */
        font-size: 20px; /* Um pouco maior */
    }
}



/* ===== CARDS DE TEXTO SIMPLES ===== */
.card-texto-simples {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.card-texto-simples:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.texto-simples {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Responsividade para cards de texto simples */
@media (max-width: 768px) {
    .card-texto-simples {
        max-width: 90%;
        padding: 2rem;
    }
    
    .texto-simples {
        font-size: 1rem;
        line-height: 1.7;
    }
}

@media (max-width: 576px) {
    .card-texto-simples {
        max-width: 95%;
        padding: 1.5rem;
        margin: 1.5rem auto;
    }
    
    .texto-simples {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

@media (max-width: 400px) {
    .card-texto-simples {
        padding: 1.2rem;
        margin: 1rem auto;
    }
    
    .texto-simples {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* ===== PÁGINA HISTÓRIA - CSS LIMPO E ORGANIZADO ===== */

/* ===== CONFIGURAÇÕES GERAIS ===== */
.pagina-historia {
    background: linear-gradient(135deg, #B6D5C0 0%, #A8C9B4 50%, #B6D5C0 100%);
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    color: #101F00;
    overflow-x: hidden;
}

/* CORREÇÃO: Garantir que não haja overlays interferindo */
.pagina-historia::before,
.pagina-historia::after {
    display: none !important;
}

.main-content {
    padding-top: 0;
    min-height: calc(100vh - 60px);
    position: relative;
    z-index: 1;
}

/* CORREÇÃO: Garantir que não haja overlays interferindo */
.main-content::before,
.main-content::after {
    display: none !important;
}

