@import url('https://fonts.googleapis.com/css2?family=Gelasio:ital,wght@0,400..700;1,400..700&display=swap');

html[y2-theme="light"] {
    --cor-1: #1b1919;
    --cor-2: #6b0000;
    --cor-3: #ad0000;
    --cor-4: #fac81b;
    --cor-5: #424242;
    --cor-6: #b4b4b4;
    --cor-7: #ffffffcc;
}

html[y2-theme="dark"] {
    --cor-1: #000;
    --cor-2: #4e0000;
    --cor-3: #ad0000;
    --cor-4: #fac81b;
    --cor-5: #3b3b3b;
    --cor-6: #696969;
    --cor-7: #ffffffcc;
}

.gelasio {
    font-family: "Gelasio", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

.gelasio700 {
    font-family: "Gelasio", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

.xxp {
    padding: 0 0 0 6rem;
}

.icoBl {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 34rem;
    color: var(--verd8);
}

h4 {
    font-size: 2.4rem;
}

button.is-drk.is-sq.is-vis {
    z-index: 999999;
}

.cor1 {
    background: var(--cor-1);
}

.cor2 {
    background: var(--cor-2);
}

.cor3 {
    background: var(--cor-3);
}

.cor4 {
    background: var(--cor-4);
}

.cor5 {
    background: var(--cor-5);
}

.cor6 {
    background: var(--cor-6);
}

.cor7 {
    background: var(--cor-7);
}

.bgBase {
    background: linear-gradient(145deg, #bf0505 20%, #4d0000 100%);
}

iframe {
    height: 600px;
}

.blBg {
    background-image: url(../images/bg1.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    background-attachment: fixed;
    background-position: bottom;
}

.blBgf {
    background-image: url(../images/bg3.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top;
}

.bgFotos {
    background-image: url(../images/bg2.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tcor1 {
    color: var(--cor-1);
}

.tcor2 {
    color: var(--cor-2);
}

.tcor3 {
    color: var(--cor-3);
}

.tcor4 {
    color: var(--cor-4);
}

.tcor5 {
    color: var(--cor-5);
}

.tcor6 {
    color: var(--cor-6);
}

.tcor7 {
    color: var(--cor-7);
}

body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}



header {
    width: 100%;
    height: 100vh;
    background-image: url(../images/headerBg.png);
    background-size: cover;
    background-position: center left;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;

    .base {
        width: min(80%, 100%);
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .redes {
        position: absolute;
        z-index: 99;
        left: 1vh;
        display: flex;
        flex-direction: column;
        top: 38vh;
        font-size: 3.8rem;

        a {
            color: var(--cor-7);
            line-height: 1.4;
            text-shadow: 1px 1px 3px black;
            transition: all 0.3s ease-in-out;

            &:hover {
                color: var(--cor-4);
            }
        }
    }
}

.meu-panel {
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;

    ul {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    ul li {
        list-style: none;
        width: 100%;
        text-align: center;
    }

    ul li a {
        color: var(--cor-7);
        font-weight: 300;
        width: 100%;
        display: inline-block;
        height: 100%;
        padding: 12px 0;
        font-size: 2.8rem;
        margin: 2px 0;
        transition: all 0.3s ease-in-out;
        font-family: Bitter;

        &:hover {
            color: var(--cor-4);
            background-color: var(--cor-2);
        }
    }
}

section {
    width: 100%;
    min-height: 100vh;
    height: auto;
}

video.video-header {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 9990;
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

/* Estilos de Botão e Elementos Gerais */
button.bar {
    position: fixed;
    top: 2rem;
    right: 4rem;
    z-index: 9999;
    font-size: 4rem;
    color: white;
    mix-blend-mode: difference;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apoio {
    width: 100%;
    height: 40rem;
    color: black;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

h2 {
    font-size: 5rem;
    line-height: 1.8;
    font-family: 'Gelasio', serif;
}

h3 {
    font-size: 3rem;
    line-height: 1.8;
    font-family: 'Gelasio', serif;
}

article.bloco {
    display: flex;
    align-items: center;
    justify-content: center;

    .bl {
        width: min(70%, 100%);
        padding: 40px 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    .Bl-left {
        width: 50%;
        min-height: 100vh;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .Bl-right {
        width: 50%;
        min-height: 100vh;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    img.imgbl {
        width: 100%;
        height: 100vh;
        object-fit: cover;
    }

    p {
        font-size: 1.7rem;
        padding: 14px 0;
    }
}

@media (min-width: 993px) {

    article.bloco .Bl-left,
    article.bloco .Bl-right {
        position: relative;
        overflow: hidden;
    }

    article.bloco img.imgbl {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Galeria de Fotos */
.fotos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 15vw, 220px), 1fr));
    gap: 1rem;
    padding: clamp(1rem, 3vw, 2rem);
    list-style: none;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.fotos-grid li {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 1 / 1;
    background: var(--cor-5);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Transição apenas para box-shadow para não competir com transform/opacity da animação de scroll do Smooll */
    transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fotos-grid li:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 2;
    /* Transição para transform e box-shadow ativada apenas durante o estado de hover */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fotos-grid .bl {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.fotos-grid .imgfotos {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(20%);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
}

.fotos-grid li:hover .imgfotos {
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* Overlay sutil ao passar o mouse */
.fotos-grid li::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.6));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.fotos-grid li:hover::after {
    opacity: 1;
}

@media (max-width: 600px) {
    .fotos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.8rem;
        padding: 1rem;
    }

    .fotos-grid li {
        border-radius: 8px;
    }
}

/* Ajuste para seções 100vh com scroll interno (Galeria) */
section#galeria {
    overflow: hidden;
    /* Smooll gerencia isso, removido !important */
}

section#galeria article.bgFotos {
    height: 100vh !important;
    overflow: hidden !important;
}

section#galeria article.cor4 {
    height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: auto;
    /* Permite que o scroll continue para a próxima seção ao chegar no fim */
    padding: 4rem 2rem 10rem 2rem;
    display: block;
    -webkit-overflow-scrolling: touch;
}

/* Estilização da barra de rolagem interna */
section#galeria article.cor4::-webkit-scrollbar {
    width: 8px;
}

section#galeria article.cor4::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

section#galeria article.cor4::-webkit-scrollbar-thumb {
    background: var(--cor-4);
    border-radius: 10px;
    border: 2px solid var(--cor-4);
}

/* Main Footer Redesign */
.main-footer {
    border-top: 3px solid var(--cor-2);
    position: relative;
    z-index: 1000;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.footer-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
}

.footer-col-brand p {
    font-size: 1.6rem;
    line-height: 1.4;
    max-width: 400px;
    font-weight: 400;
}

.footer-col-links h3,
.footer-col-social h3 {
    font-size: 2.6rem;
    margin-bottom: 1.8rem;
    letter-spacing: 1px;
    font-weight: 300;
}

.footer-col-links ul {
    list-style: none;
    padding: 0;
}

.footer-col-links ul li {
    margin-bottom: 0.2rem;
}

.footer-col-links ul li a {
    color: var(--cor-7);
    text-decoration: none;
    font-size: 1.6rem;
    transition: color 0.3s ease;
}

.footer-col-links ul li a:hover {
    color: var(--cor-4);
}

.social-flex {
    display: flex;
    gap: 1.5rem;
}

.social-flex a {
    font-size: 5.2rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-flex a:hover {
    transform: translateY(-5px);
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: 1.4rem;
    letter-spacing: 1px;
}

/* Preloader */
#y2-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--cor-1, #1b1919);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#y2-preloader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.y2-preloader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.y2-preloader__logo {
    width: clamp(160px, 28vw, 260px);
    height: auto;
    animation: y2pre-pulse 1.1s ease-in-out infinite;
}

.y2-preloader__bar {
    width: clamp(160px, 28vw, 260px);
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.y2-preloader__bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--cor-4, #fac81b);
    border-radius: 2px;
    transition: width 0.3s ease;
    animation: y2pre-bar 2s ease-in-out forwards;
}

@keyframes y2pre-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.12);
        opacity: 0.8;
    }
}

@keyframes y2pre-bar {
    0% {
        width: 0%;
    }

    60% {
        width: 75%;
    }

    100% {
        width: 100%;
    }
}

/* Fix Branco no Final */
html,
body {
    margin: 0;
    padding: 0;
    height: auto !important;
    min-height: 100vh !important;
    background-color: var(--cor-1);
    /* Cor igual ao fundo do rodapé inferior para não sobrar branco */
    overflow-x: hidden;
}

main {
    overflow: visible !important;
}

@media (max-width: 992px) {

    /* RESET GLOBAL MOBILE */
    html,
    body,
    main {
        height: auto !important;
        min-height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow-y: auto !important;
        display: block !important;
    }

    /* Neutralização de Efeitos Smooll/Y2 - Spacers Técnicos */
    .pin-spacer,
    .sm-spacer,
    .scroll-spacer,
    [class*="spacer"] {
        display: block !important;
        position: relative !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        top: auto !important;
        left: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        /* Zera paddings inline residuais do pin no mobile */
        inset: auto !important;
        overflow: visible !important;
    }

    /* Neutralização de Efeitos Smooll/Y2 - Seções e Artigos Reais */
    section,
    article,
    [sm-section],
    [sm-animate],
    [sm-split],
    [data-y2-scr],
    .sm-animate-in,
    .y2-scr-in {
        display: block !important;
        position: relative !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        height: auto !important;
        min-height: auto !important;
        top: auto !important;
        left: auto !important;
        clip-path: none !important;
        filter: none !important;
        inset: auto !important;
        overflow: visible !important;
    }

    [sm-split] span {
        display: inline-block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* TIPOGRAFIA MOBILE */
    h2 {
        font-size: clamp(2.5rem, 8vw, 3.5rem) !important;
        text-align: center;
    }

    h3 {
        font-size: clamp(1.8rem, 6vw, 2.4rem) !important;
        text-align: center;
    }

    article.bloco p {
        font-size: 1.4rem !important;
        text-align: center;
    }

    /* COMPONENTES ESPECÍFICOS */

    /* Botão Menu */
    button.bar {
        top: 1.5rem !important;
        right: 1.5rem !important;
        font-size: 2.5rem !important;
    }

    /* Blocos de Conteúdo */
    article.bloco {
        flex-direction: column !important;
        padding: 0 !important;
    }

    article.bloco .Bl-left,
    article.bloco .Bl-right {
        width: 100% !important;
        min-height: auto !important;
        display: block !important;
    }

    article.bloco img.imgbl {
        height: 45vh !important;
        object-fit: cover !important;
    }

    article.bloco .bl {
        width: 100% !important;
        padding: 3rem 1.5rem !important;
        text-align: center;
    }

    /* Galeria */
    section#galeria article.bgFotos {
        height: 60vh !important;
    }

    section#galeria article.cor4 {
        padding: 3rem 1rem !important;
        height: auto !important;
    }

    .fotos-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 0.8rem !important;
        padding: 1rem !important;
    }

    /* Mapa */
    iframe {
        height: 350px !important;
    }

    /* Footer */
    .footer-container {
        padding: 4rem 1.5rem !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3.5rem;
    }

    .footer-col-brand p {
        margin: 0 auto;
        font-size: 1.4rem !important;
    }

    .footer-col-links h3,
    .footer-col-social h3 {
        font-size: 2.2rem !important;
        margin-bottom: 1.5rem !important;
    }

    .footer-col-links ul li a {
        font-size: 1.4rem !important;
    }

    .social-flex {
        justify-content: center;
        gap: 2.5rem;
    }

    .social-flex a {
        font-size: 4rem !important;
    }

    .footer-bottom p {
        font-size: 1rem !important;
    }

    /* Apoio Logos */
    .apoio {
        height: auto !important;
        padding: 4rem 1.5rem !important;
    }

    .apoio img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Marquee Styles */
.marquee-section {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--cor-4);
    padding: 1.2rem 0;
    overflow: hidden;
    width: 100%;
    position: absolute;
    bottom: 0;
    z-index: 10;
}

.marquee-track {
    display: flex;
    gap: 6rem;
    align-items: center;
    white-space: nowrap;
    width: max-content;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--cor-7);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-family: 'Montserrat', sans-serif;
}

.marquee-dot {
    width: 8px;
    height: 8px;
    background: var(--cor-4);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 10px var(--cor-4);
}

.marquee-outline {
    -webkit-text-stroke: 1px var(--cor-7);
    color: transparent;
}

/* Scrollbar Global */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--cor-24) var(--cor-1);
}

::-webkit-scrollbar {
    width: 10px !important;
    display: block !important;
}

::-webkit-scrollbar-track {
    background: var(--cor-1) !important;
}

::-webkit-scrollbar-thumb {
    background: var(--cor-3) !important;
    border-radius: 10px;
    border: 2px solid var(--cor-1) !important;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cor-2) !important;
}




@media(max-width: 782px) {
    .redes {
        top: 18vh !important;
        font-size: 2.8rem !important;
    }

    section {
        padding: 0 18px !important;
    }

    button.bar {
        top: 1rem !important;
        font-size: 4.5rem !important;
    }
}

.y2day-fab {
    display: none !important;
}

/* ==========================================================================
   LINHA DO TEMPO (TIMELINE)
   ========================================================================== */
.linhadotempo {
    padding: 6rem 0;
}

.container-timeline {
    width: min(95%, 1200px);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.timeline {
    position: relative;
    width: 100%;
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
}



/* Linha Vertical Central */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--cor-2);
    /* Vermelho Escuro */
    transform: translateX(-50%);
    border-radius: 2px;
    opacity: 0.8;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 2rem 4rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Alternância dos lados da linha do tempo */
.timeline-item:nth-child(even) {
    align-self: flex-start;
    text-align: right;
    padding-right: 5rem;
}

.timeline-item:nth-child(odd) {
    align-self: flex-end;
    text-align: left;
    padding-left: 5rem;
}

/* Bolinha indicadora no centro */
.timeline-dot {
    position: absolute;
    top: 3.2rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--cor-3);
    /* Vermelho vivo */
    border: 4px solid var(--cor-4);
    /* Dourado */
    box-shadow: 0 0 0 3px var(--cor-2);
    z-index: 5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:nth-child(even) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(odd) .timeline-dot {
    left: -10px;
}

/* Efeito Hover na bolinha */
.timeline-item:hover .timeline-dot {
    background: var(--cor-4);
    border-color: var(--cor-2);
    box-shadow: 0 0 15px var(--cor-2);
    transform: scale(1.25);
}

/* Card de Conteúdo */
.timeline-content {
    background: var(--cor-1);
    /* Contraste preto com fundo dourado */
    border: 1px solid rgba(107, 0, 0, 0.3);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover .timeline-content {
    border-color: var(--cor-2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.timeline-card-date {
    font-size: 2.4rem;
    color: var(--cor-4);
    /* Dourado destacado */
    margin-bottom: 1rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.timeline-content p {
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--cor-7);
    /* Branco opaco */
    margin: 0;
}

/* Alinhamento de textos do card baseado no lado */
.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: left;
}

/* Responsividade - Dispositivos Mobile */
@media (max-width: 992px) {
    .timeline-line {
        left: 20px;
        transform: none;
    }

    .timeline-item {
        width: 100% !important;
        align-self: flex-start !important;
        padding: 2rem 2rem 2rem 5rem !important;
        text-align: left !important;
    }

    .timeline-item:nth-child(even) .timeline-dot,
    .timeline-item:nth-child(odd) .timeline-dot {
        left: 10px !important;
        right: auto !important;
    }

    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        text-align: left !important;
    }

    .timeline-card-date {
        font-size: 2.2rem;
    }

    .timeline-content {
        padding: 2rem;
    }

    .timeline-content p {
        font-size: 1.4rem;
    }
}