@charset "UTF-8";

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== BODY E FUNDO ===== */
body {
    background: linear-gradient(
        135deg,
        #020659,
        #328BD9,
        #44AFF2,
        #6BD9F2,
        #79F2F2
    );
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    color: white;
    font-family: 'kalam', coursive;
    cursor: url('./imagens/pontinhagaleria.cur'), auto;
}

a {
    cursor: url('./imagens/Link.cur'), pointer;
}

/* ===== GRID BASE ===== */
.container {
    display: grid;
    grid-template-columns: 220px 1fr 220px; /* para desktop */
    grid-template-rows: auto auto 1fr auto auto;
    grid-gap: 20px;
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 5px;
}

/* ===== HEADER ===== */
.header-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
    grid-column: 1 / -1;
}

.header-bg {
    width: auto;
    height: 100%;
    max-width: 500px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* ===== TEXTO INFINITO (MARQUEE) ===== */
.marquee-container {
    grid-column: 1 / -1;
    overflow: hidden;
    white-space: nowrap;
    background: rgba(0, 38, 102, 0.35);
    border-radius: 5px;
    height: 2.5rem;
    display: flex;
    margin: 0 auto 25px auto;
    max-width: 800px;
    padding: 0 1rem;
    align-items: center;
    backdrop-filter: blur(5px);
}

.marquee {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 45s linear infinite;
    font-weight: bold;
    color: #79F2F2;
    font-family: "Michroma", sans-serif;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ===== ASIDES ===== */
.aside01, .aside02 {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.aside01 { grid-column: 1 / 2; }
.aside02 { grid-column: 3 / 4; }

.flutuante {
    max-width: 100%;
    height: auto;
    animation: floatY 3s ease-in-out infinite;
    filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.3));
}

@keyframes floatY {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

/* ===== MAIN ===== */
main {
    grid-column: 2 / 3;
    background: rgba(0, 38, 102, 0.2);
    border-radius: 20px;
    line-height: 1.6;
    padding: 30px 40px;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    max-width: 750px;
    margin: 0 auto;
}

main h1 {
    text-align: center;
    font-family: "Michroma", sans-serif;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(50, 139, 217, 0.7);
}

main p {
    text-align: justify;
    margin-bottom: 20px;
    color: #FFFFFF;
}

/* ===== IMAGEM FLUTUANTE MOBILE ===== */
.flutuante-mobile {
    display: none;
    text-align: center;
    margin: 25px 0;
}

.flutuante-mobile img {
    width: 180px;
    height: auto;
    animation: floatY 3s ease-in-out infinite;
}

/* ===== BOTÃO VOLTAR ===== */
.back-button {
    grid-column: 1 / -1;
    text-align: center;
    margin: 2rem 0;
}

.back-button a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    border: 1.5px solid #44AFF2;
    border-radius: 6px;
    transition: 0.3s ease;
    font-family: "Michroma", sans-serif;
}

.back-button a:hover {
    background-color: white;
    color: #020659;
    box-shadow: 0 0 15px #44AFF2;
}

/* ===== FOOTER ===== */
footer {
    grid-column: 1 / -1;
    text-align: center;
    font-family: "Michroma", sans-serif;
    color: #020659;
    padding: 20px 0;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #020659; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #328BD9, #44AFF2, #6BD9F2, #79F2F2);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #79F2F2, #6BD9F2, #44AFF2, #328BD9);
}
* { scrollbar-width: thin; scrollbar-color: #44AFF2 #020659; }

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 900px) {
    .container { grid-template-columns: 1fr; }
    .aside01, .aside02 { display: none; }
    .flutuante-mobile { display: block; margin: 25px auto; }
    main { grid-column: 1 / -1; max-width: 90%; padding: 20px; }
    .header-container { height: 220px; }
    .marquee { font-size: 0.9rem; animation-duration: 20s; }
}

@media (max-width: 600px) {
    .header-container {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
    }

    .header-bg {
        max-width: 90%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .marquee-container {
        max-width: 100%;
        padding: 0 1rem;
    }

    .marquee { font-size: 0.85rem; }
}

/* ===== OCULTAR BARRA DE ROLAGEM VERTICAL NO MOBILE (SEM PERDER ROLAGEM) ===== */
@media (max-width: 900px) {
    ::-webkit-scrollbar {
        display: none;
    }

    * {
        scrollbar-width: none;
    }

    body {
        -ms-overflow-style: none;
        overflow-y: scroll;
    }
}
