/* Registrar Rams W01 Bold local e definir Comfortaa como fonte base desta página */
@font-face {
    font-family: "Rams W01";
    src: url("../font/Rams W01 Bold.woff2") format("woff2"),
         url("../font/Rams W01 Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Estilos gerais */
body {
    margin: 0;
    padding: 0;
    font-family: "Comfortaa", "Lexend", sans-serif;
    background-color: #fafafa;
    line-height: 1.6;
}

.title-about {
    font-size: 0px;
}

/* Estilos para desktop (min-width: 1201px) */
@media (min-width: 1201px) {
    .main {
        max-width: 1400px;
        margin: 0 auto;
        padding: 80px 40px 60px;
        display: flex;
        flex-direction: column;
        gap: 120px;
    }

    .section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        align-items: center;
        min-height: 500px;
    }

    /* Alternância de layout para criar ritmo visual */
    .section:nth-child(even) {
        grid-template-columns: 1fr 1fr;
    }

    .section:nth-child(odd) {
        grid-template-columns: 1fr 1fr;
    }

    .section .image {
        position: relative;
        overflow: hidden;
        border-radius: 8px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }

    .section .image:hover {
        transform: translateY(-5px);
    }

    .section .image img {
        width: 100%;
        height: 500px;
        object-fit: cover;
        display: block;
        transition: transform 0.3s ease;
    }

    /* Overlay de hover nas imagens clicáveis (about, dialog) */
    .hover-card { position: relative; }
    .hover-card .hover-link { display: block; position: relative; text-decoration: none; }
    .hover-card h3,
    .hover-card h2 {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        opacity: 0;
        color: #ffffff !important;
        text-align: center;
        text-shadow: 0 2px 8px rgba(0,0,0,.45);
        transition: opacity .3s ease;
        pointer-events: none;
        z-index: 2;
        white-space: nowrap;
        overflow: visible;
        width: 90%;
        text-transform: uppercase;
        font-family: "Rams W01", "Lexend", sans-serif;
    }
    .hover-card h3 { top: 45%; font-size: 48px; font-weight: 700; }
    .hover-card h2 { top: 64%; font-size: 14px; font-weight: 400; }
    .hover-card:hover img { filter: blur(3px) brightness(.6); transform: scale(1.04); }
    .hover-card:hover h3, .hover-card:hover h2 { opacity: 1; }

    /* Ajuste específico para a imagem Mariela_2.jpg na seção "who" */
    .who .image img {
        object-position: center 20%;
    }

    .section .image:hover img {
        transform: scale(1.02);
    }

    .section .content {
        padding: 0;
        max-width: 500px;
        transition: opacity 0.3s ease;
    }

    .section h3 {
        font-size: 48px;
        font-weight: 700;
        margin-bottom: 30px;
        color: #2c2c2c;
        line-height: 1.2;
        letter-spacing: -0.5px;
        text-transform: uppercase;
        font-family: "Rams W01", "Lexend", sans-serif !important;
    }

    /* Textos usam Comfortaa */
    .section p {
        font-size: 18px;
        line-height: 1.8;
        font-weight: 400;
        color: #555;
        margin-bottom: 25px;
        text-align: left;
        hyphens: none;
        margin-right: 0;
    }

    .section p:last-child {
        margin-bottom: 0;
    }

    /* Espaçamento específico para o footer */
    .main + footer {
        margin-top: 20px !important;
    }
}

/* Estilos para dispositivos com até 1200px de largura (mobile) */
@media (max-width: 1200px) {
    .main {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .section {
        overflow-y: hidden;
        box-sizing: border-box;
        display: flex;
        align-items: center;
    }

    .section .image img {
        width: 410px;
        margin-bottom: 15px;
        object-fit: cover;
        display: block;
    }

    /* Mobile: desativa overlay e esconde os títulos dentro das imagens */
    .hover-card .hover-link h3,
    .hover-card .hover-link h2 {
        display: none !important;
    }

    .section .content {
        padding: 25px;
        overflow-y: auto;
    }

    .section h3 {
        font-size: 35px;
        font-weight: 700;
        margin-bottom: 5px;
        text-transform: uppercase;
        font-family: "Rams W01", "Lexend", sans-serif !important;
    }

    p {
        text-align: left;
        hyphens: none;
        font-weight: 400;
        margin-right: 50px;
    }

    /* Alterando o layout da seção */
    .section {
        flex-direction: column;
        align-items: center;
    }

    /* Estilos para a imagem */
    .section .image img {
        width: 100%;
        object-fit: cover;
        display: block;
        margin-left: 0;
    }

    /* Estilos para o conteúdo (título e texto) */
    .section .content {
        text-align: center; /* centraliza o título */
        padding: 0; /* sem padding extra nas laterais */
        margin: 0;
    }

    /* Estilos específicos para o título h3 dentro da seção */
    .section h3 {
        margin: 0;
    }

    /* Título mantém proximidade original à margem no mobile */

    .section p{
        margin: 25px;
    }
}
