/* ===== VARIÁVEIS E ESTILOS GLOBAIS ===== */
:root {
    --primary-color: #8B4513;  /* Marrom mais quente */
    --secondary-color: #DEB887;  /* Bege mais suave */
    --accent-color: #D2691E;  /* Marrom mais vibrante */
    --text-color: #4A4A4A;
    --light-bg: #FFF8DC;  /* Bege bem claro */
    --white: #FFF8DC;
    --warm-accent: #FFB6C1;  /* Rosa suave */
}

/* ===== SEÇÃO DE EVENTOS ===== */
#eventos {
    padding: 40px 20px;
    background-color: var(--light-bg);
    text-align: center;
}

#eventos h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 40px;
    font-weight: bold;
}

#eventos .cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Estilos Gerais dos Cards */
.card {
    perspective: 1000px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--light-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 300px; /* Novo */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

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

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

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
}

.card-front {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-back {
    background-color: var(--primary-color);
    color: #fff;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box; /* Novo */
}

.card-back h2 {
    margin: 0 0 15px 0; /* Modificado */
    font-size: 24px;
    color: #fff;
    line-height: 1.4; /* Novo */
}

.card-back p {
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
    margin-top: 0; /* Novo */
    padding: 0 10px; /* Novo */
}

/* Estilos Específicos para Cada Tipo de Card */
.card.vertical {
    width: 300px;
    height: 500px;
}

.card.quase-quadrado {
    width: 350px;
    height: 400px;
}

.card.horizontal {
    width: 500px;
    height: 300px;
}

/* Responsividade */
@media (max-width: 768px) {
    .card.vertical,
    .card.quase-quadrado,
    .card.horizontal {
        width: 100%;
        height: auto;
        aspect-ratio: 3/4;
    }
    
    .card.horizontal {
        aspect-ratio: 16/9;
    }

    #eventos h1 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    #eventos h1 {
        font-size: 1.8rem;
    }
    
    .card-back h2 {
        font-size: 20px;
    }
    
    .card-back p {
        font-size: 14px;
    }
}