/* ================= HEADER ================= */
.head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;

    width: 100%;
    height: 90px;
    background-color: rgb(122, 5, 5);
    color: white;
    padding: 0 20px;
    box-sizing: border-box;
    position: fixed;

    top: 0;
    left: 0;
    z-index: 1001;
}

.head-left {
    position: relative;
}

.head-left img {
    height: 45px;
    position: relative;
    z-index: 1001;
}

.logo {
    position: relative;
    
}

.logo img {
    height: 55px;
    position: relative;
    z-index: 1001;
    margin-left: 45px;
}

.pill {
    display: flex;
    position: absolute;
    background-color: #ffffff;
    align-items: center;
    
    left: -155px;
    width: 300px;
    height: 80px;
    border-radius: 50px;

    z-index: 1000;
}

.head-titulo {
    font-size: 1.8rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: bold;
}

.btn-voltar {
    margin-left: auto;
    background-color: white;
    color: rgb(122, 5, 5);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-voltar:hover {
    background-color: #ddd;
}

/* ================= BODY ================= */
body {
    margin: 0;
    padding-top: 90px; /* espaço para header fixo desktop */
    background-color: white;
    font-family: Arial, sans-serif;
}

/* ================= SLIDER ================= */
#slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
}

#slider img {
    opacity: 0;
    position: absolute;

    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1.5s ease-in-out;
}

#slider img.selected {
    opacity: 1;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    z-index: 1;
}

/* ================= SOBRE ================= */
.sobre {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.texto {
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    position: relative;
    z-index: 2;
    color: aliceblue;
}

/* ================= CARTÕES ================= */
.caixa2 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.nome {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: bold;
}

.texto1 {
    width: 300px;
    border-radius: 14px;
    box-shadow: 5px 3px 5px 5px gray;
    background: white;
    text-align: center;
    padding: 10px;
    font-size: 20px;
    z-index: 2;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}

.texto1 img {
    width: 100%;
    height: 320px;
    border-radius: 10px;
    object-fit: cover;
}

.texto1:hover {
    background-color: azure;
}

.descricao {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background-color: #f2f2f2;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
}

/* ================= MEDIA (Design responsivo) ================= */

/* Smartphones pequenos */
@media (max-width: 480px) {

    .head {
        flex-wrap: wrap;
        height: auto;
        padding: 8px 10px;
        gap: 8px;
    }

    .head-left {
        order: 1;
    }

    .head-left img {
        height: 35px;
    }

    /* Botão voltar */
    .btn-voltar {
        position: relative;
        top: -4px;
        order: 2;

        margin-left: auto;

        padding: 6px 12px;
        font-size: 0.75rem;
        border-radius: 6px;

        background-color: white;
        color: rgb(122, 5, 5);

        display: inline-block;
    }

    /* Map logo → RIGHT */
    .logo {
        order: 2;
        margin-left: auto;
    }

    .logo img {
        height: 35px;
        margin-left: 0;
    }

    /* Pill (Muito grande e quebra os display em celulares com telas pequenas) */
    .pill {
        display: none;
    }

    /* Titulo */
    .head-titulo {
        flex: 1 1 100%;
        font-size: 1.2rem !important;

        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        

        min-width: 0;
        margin: 0;
    }

    

    body {
        padding-top: 70px;
    }
}

/* Smartphones médios / Tablets */
@media (max-width: 768px) {
    .head {
        flex-direction: row;
        height: 120px;
        padding: 0 15px;
    }

    .head-titulo {
        font-size: 0.5rem;
        margin-left: 15px;
        margin-top: 10px;
    }

    .pill {
        left: -50px;
        margin-left: -45px;
        width: 80px;
        height: 35px;
    }

    .btn-voltar {
        margin-left: auto;
        margin-top: 0;
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    body {
        padding-top: 70px;
    }

    .sobre {
        margin: 20px 10px;
        padding: 0 10px;
    }

    .texto {
        font-size: 1rem;
    }

    .texto1 {
        width: 90%;
        font-size: 16px;
    }

    .texto1 img {
        height: auto;
    }

    .caixa2 {
        gap: 10px;
    }

    .overlay {
        backdrop-filter: blur(3px);
    }
}

/* Tablets grandes e desktops menores */
@media (max-width: 1024px) {
    .head-titulo {
        font-size: 2rem;
    }

    .pill {
        left: -100px;
        width: 250px;
        height: 70px;
    }

    .texto1 {
        width: 45%;
    }
}