/* =========================================
   Página de Facilidades (Estrutura)
   ========================================= */

:root {
    --font-padrao: 'Inter', sans-serif;
    --cor-titulo: #0c0407;
    --cor-texto: #4c4c4c;
    --cor-subtitulo: #9e9b9c;
}

/* =========================================
   FACILIDADES (Padrão Unificado)
   ========================================= */



/* Títulos */
.about-title {
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    color: rgba(12, 4, 7, 0.4);
    font-weight: 700;
    margin-bottom: 20px;
}

.about-title-blacck {
    color: #0c0407;
}

.history-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    color: #0c0407;
    font-weight: 600;
    margin-bottom: 40px;
}

/* Cards Flip */
.card-front h3 {
    font-family: 'Inter', sans-serif;
    color: #4c4c4c;
    font-weight: 700;
    font-size: 1.3rem;
    margin-top: 15px;
}

.card-back h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    margin-bottom: 15px;
}

.card-back p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #fff; /* Texto branco no verso escuro */
    text-align: center; /* Centralizado no card funciona melhor que justificado */
}

/* Layout */
.section-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.history-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.history-content {
    flex: 1.2;
    min-width: 300px;
}

.history-gallery {
    position: relative;
    flex: 1;
    min-width: 300px;
    height: 400px;
}

/* --- Títulos e Textos --- */
.about-title {
    color: rgba(12, 4, 7, 0.4);
    font-size: 48px;
    line-height: 110%;
    letter-spacing: -0.03em;
    font-weight: 600;
    margin-bottom: 60px;
}
.about-titlle {
    font-size: 50px;
    line-height: 121%;
    font-family: 'Inter', sans-serif;
}
.about-title-blacck {
    color: #9e9b9c;
    font-weight: 800;
}

.historyy-subtitlle {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    color: black;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 20px;
    line-height: 1.5;
}
/* Texto estilo Jornal */

.history-text:last-child {
    margin-bottom: 0;
}

.section-text {
   font-family: var(--font-title-hist);
    font-size: 1.5rem;
    color: var(--color-dark-hist);
    font-weight: 500;
    margin-top: -42px;
    margin-bottom: 20px;
}

.section-text:last-child {
    margin-bottom: 0;
}
.p {
    display: block;
    margin-block-start: -2em;
    margin-block-end: 0em;
    margin-inline-start: 1px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}
/* --- Cards 3D (Flip Cards) --- */
.card-container {
    display: grid;
    grid-template-columns: repeat(3, 280px);
    justify-content: center;
    gap: 60px;
    width: 95%;
    margin: 25px auto;
}

.card {
    width: 280px;
    height: 350px;
    background-color: transparent;
    perspective: 1000px;
}

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

.card:hover .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;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Frente do Card */
.card-front {
    background-color: #ffffff;
}

.card-front i, 
.icone-wrapper i {
    font-size: 50px;
    color: var(--facilidades-primary);
    margin-bottom: 20px;
}

.card-front h3 {
    font-size: 1.25rem;
    margin: 0;
    color: #999;
    font-weight: bold;
}

/* Verso do Card */
.card-back {
    background-color: #999;
    color: #ffffff;
    transform: rotateY(180deg);
}

.card-back h4 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #fff;
    padding-bottom: 5px;
}

.card-back p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.card-back a {
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    margin-top: 20px;
    display: inline-block;
    font-size: 0.95rem;
    padding: 8px 15px;
    border: 1px solid #ffffff;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.card-back a:hover {
    background-color: #ffffff;
    color: #999;
}

/* --- Imagens e Animações --- */
.historry-image-wrapper {
    position: absolute;
    top: 56px;
    left: 0;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
}

.history-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: rotateOnLoad 0.8s ease-out forwards;
}

@keyframes rotateOnLoad {
    from { opacity: 0; transform: rotate(-5deg) scale(0.95); }
    to { opacity: 1; transform: rotate(0deg) scale(1); }
}

/* --- Responsividade --- */
@media (max-width: 991px) {
    .history-layout {
        flex-direction: column;
        gap: 40px;
    }
    
    .history-gallery {
        height: 300px;
        width: 100%;
    }
    
    .card-container {
        grid-template-columns: repeat(2, 280px);
    }
}

@media (max-width: 767px) {
    .about-title { font-size: 30px; }
    .history-subtitle { font-size: 2.5rem; }
    
    .card-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .card {
        margin: 0 auto;
    }
}