/* ============================================
   RESET & BASE
   ============================================ */
   *, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.667;
    color: var(--color-white);
    background-color: var(--color-black);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Belanosima', sans-serif;
    font-weight: 400;
    line-height: 1.1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { background: none; border: none; cursor: pointer; color: inherit; font-family: inherit; }

/* ============================================
   VARIÁVEIS
   ============================================ */
:root {
    --color-blue: #1a3a9c;
    --color-yellow: #FFCD00;
    --color-white: #FFFDFA;
    --color-black: #000000;
    --color-gray: #8a8a8a;

    --header-height: 90px;
    --container-max: 1200px;
    --container-padding: 1.5rem;
    --grid-gap: 1.5rem;
    --section-padding: 6rem;
}

/* ============================================
   UTILITÁRIOS
   ============================================ */
.text-yellow { color: var(--color-yellow); }
.text-white { color: var(--color-white); }

/* ============================================
   GRID 12 COLUNAS (1200px)
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--grid-gap);
    align-items: center;
}

.col-1  { grid-column: span 1; }
.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

/* ============================================
   HEADER
   ============================================ */
.header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background-color: transparent;
}

.header .container,
.header .grid { height: 100%; }

.header__logo { display: flex; align-items: center; }
.header__logo img { height: 60px; width: auto; }

.header__nav-list {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    justify-content: flex-end;
}

.header__nav-list a {
    font-family: 'Belanosima', sans-serif;
    font-size: 1.25rem;
    color: var(--color-white);
    position: relative;
    transition: opacity 0.2s ease;
}

.header__nav-list a:hover { opacity: 0.85; }

.header__nav-list a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2px;
    background: var(--color-yellow);
    transition: width 0.3s ease;
}
.header__nav-list a:hover::after { width: 100%; }

.header__lang {
    padding: 0.25rem 0.75rem;
    border: 1.5px solid rgba(255,255,255,0.4);
    border-radius: 4px;
    font-size: 1rem !important;
}
.header__lang::after { display: none !important; }

.header__menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px; height: 24px;
    z-index: 110;
}

.header__menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.header__menu-toggle.is-active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.header__menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.header__menu-toggle.is-active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero__image { width: 100%; display: block; }

.hero__title {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    max-width: 700px;
    z-index: 2;
    pointer-events: none;
}

/* ============================================
   SEÇÃO ESPETÁCULO
   ============================================ */
.spectacle {
    background: var(--color-black);
    padding: var(--section-padding) 0;
    position: relative;
    min-height: 900px;
}

.spectacle__content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    padding-bottom: 4rem;
}

.spectacle__title {
    font-size: clamp(3rem, 7vw, 6rem);
    text-transform: uppercase;
    color: var(--color-white);
    line-height: 1.04;
    letter-spacing: 0.01em;
}

.spectacle__text {
    color: var(--color-gray);
    max-width: 520px;
    font-size: 1.125rem;
    line-height: 1.667;
}

.spectacle__woman {
    position: absolute;
    right: 0;
    top: -268px;
    height: 1211.9px;
    width: auto;
    pointer-events: none;
    z-index: 2;
}

/* ============================================
   SEÇÃO HISTÓRIA
   ============================================ */
.history {
    background: var(--color-black);
    padding: var(--section-padding) 0;
    position: relative;
}

.history__header,
.history__media,
.history__content { margin-bottom: 3rem; }

.history__header {
    min-height: 800px;
    align-items: end;
}

.history__eyebrow {
    display: block;
    font-family: 'Nunito', sans-serif;
    color: var(--color-yellow);
    font-size: 0.875rem;
    line-height: 1.714;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.history__title {
    font-size: clamp(2rem, 5vw, 4rem);
    text-transform: uppercase;
    color: var(--color-white);
    line-height: 1.125;
}

.history__image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    position: relative;
    z-index: 3;
}

.history__content {
    align-items: start;
}

.history__content p {
    color: var(--color-gray);
    font-size: 1.125rem;
    line-height: 1.667;
    margin-bottom: 1rem;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
    background: var(--color-black);
    padding: 4rem 0;
}

.timeline__item {
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    align-items: start;
}

.timeline__item:last-child {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.timeline__year {
    font-family: 'Belanosima', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--color-yellow);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: 0.01em;
}

.timeline__content h3 {
    color: var(--color-white);
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.timeline__content p {
    color: var(--color-gray);
    font-size: 1.125rem;
    line-height: 1.667;
}

/* ============================================
   SAMBÓDROMO
   ============================================ */
.sambodromo {
    background: var(--color-black);
    padding: var(--section-padding) 0;
}

.sambodromo__header,
.sambodromo__image,
.sambodromo__stats { margin-bottom: 3rem; }

.sambodromo__eyebrow {
    display: block;
    font-family: 'Nunito', sans-serif;
    color: var(--color-yellow);
    font-size: 0.875rem;
    line-height: 1.714;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.sambodromo__title {
    font-size: clamp(2rem, 5vw, 4rem);
    text-transform: uppercase;
    color: var(--color-white);
    line-height: 1.125;
}

.sambodromo__image img {
    width: 100%;
    border-radius: 4px;
}

.stat {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.stat__number {
    font-family: 'Belanosima', sans-serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--color-yellow);
    font-weight: 400;
    line-height: 1.125;
    margin-bottom: 0.5rem;
}

.stat__label {
    font-family: 'Nunito', sans-serif;
    font-size: 0.875rem;
    line-height: 1.714;
    color: var(--color-white);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.sambodromo__text {
    align-items: start;
}

.sambodromo__text p {
    color: var(--color-gray);
    font-size: 1.125rem;
    line-height: 1.667;
}

/* ============================================
   GALERIA
   ============================================ */
.gallery {
    background: var(--color-black);
    padding: var(--section-padding) 0;
}

.gallery__header {
    margin-bottom: 2rem;
    align-items: flex-end;
}

.gallery__figure {
    display: flex;
    align-items: flex-end;
    overflow: visible;
}

.gallery__figure-img {
    height: 380px;
    width: auto;
    display: block;
    margin-bottom: -1rem;
}

.gallery__title {
    font-size: clamp(2rem, 5vw, 4rem);
    text-transform: uppercase;
    color: var(--color-white);
    text-align: right;
    line-height: 1.125;
}

/* Grid assimétrico: 1 wide → tall-left + 2 stacked → 1 wide */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 420px 300px 300px 420px;
    gap: var(--grid-gap);
}

.gallery__item {
    overflow: hidden;
    border-radius: 4px;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery__item:hover img { transform: scale(1.05); }

.gallery__item--wide {
    grid-column: 1 / -1;
}

.gallery__item--tall {
    grid-column: span 6;
    grid-row: span 2;
}

.gallery__item:nth-child(3),
.gallery__item:nth-child(4) {
    grid-column: span 6;
}

/* ============================================
   CTA
   ============================================ */
.cta {
    background: var(--color-black);
    padding: var(--section-padding) 0;
    position: relative;
    overflow: visible;
    min-height: 660px;
}

.cta__content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.cta__title {
    font-size: clamp(3rem, 7vw, 6rem);
    text-transform: uppercase;
    color: var(--color-white);
    line-height: 1.04;
    letter-spacing: 0.01em;
}

.cta__text {
    color: var(--color-gray);
    max-width: 480px;
    font-size: 1.125rem;
    line-height: 1.667;
}

.cta__button {
    display: inline-block;
    background: var(--color-yellow);
    color: var(--color-black);
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-family: 'Belanosima', sans-serif;
    font-weight: 400;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.2s ease, background 0.2s ease;
    margin-top: 1rem;
}

.cta__button:hover {
    background: #ffd933;
    transform: translateY(-2px);
}

.cta__woman {
    position: absolute;
    right: max(0px, calc((100% - var(--container-max)) / 2 + 60px));
    bottom: 0;
    height: 120%;
    width: auto;
    pointer-events: none;
    z-index: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-black);
}

.footer__mountain {
    width: 100%;
    display: block;
    vertical-align: bottom;
    margin-bottom: -2px;
}

.footer__bar {
    background: var(--color-yellow);
    padding: 4rem 0 2rem;
    color: var(--color-black);
}

.footer__col h4 {
    font-family: 'Belanosima', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-black);
    margin-bottom: 1rem;
}

.footer__col p {
    font-size: 0.875rem;
    line-height: 1.714;
    margin-bottom: 1rem;
    color: var(--color-black);
}

.footer__logo {
    height: 60px;
    margin-bottom: 1rem;
}

.footer__col ul li { margin-bottom: 0.5rem; }

.footer__col ul a {
    font-size: 0.875rem;
    line-height: 1.714;
    color: var(--color-black);
    transition: opacity 0.2s;
}
.footer__col ul a:hover { opacity: 0.6; }

.footer__bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.2);
    text-align: center;
}
.footer__bottom p {
    font-size: 0.875rem;
    line-height: 1.714;
    color: rgba(0,0,0,0.7);
}

/* ============================================
   RESPONSIVO — DESKTOP MÉDIO (≤1200px)
   ============================================ */
@media (max-width: 1200px) {
    :root { --container-padding: 2rem; }
}

/* ============================================
   RESPONSIVO — TABLET (≤1024px)
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --header-height: 80px;
        --section-padding: 4.5rem;
        --grid-gap: 1.25rem;
    }

    .header__nav-list { gap: 1.5rem; }
    .header__nav-list a { font-size: 1.05rem; }
    .header__logo img { height: 48px; }

    .hero__title { width: 55%; }

    .spectacle__title { font-size: clamp(2rem, 5.5vw, 4rem); }

    .history__content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .history__content > div { grid-column: 1 / -1; }

    .sambodromo__stats .stat { grid-column: span 6; }

    .sambodromo__text {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .sambodromo__text > div { grid-column: 1 / -1; }

    .gallery__grid {
        grid-template-rows: 300px 240px 240px 300px;
    }
}

/* ============================================
   RESPONSIVO — MOBILE (≤768px)
   ============================================ */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
        --section-padding: 3rem;
        --container-padding: 1.25rem;
    }

    /* HEADER vira flex pro hambúrguer */
    .header .grid {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .header__menu-toggle { display: flex; }

    .header__nav {
        position: fixed;
        top: 0; right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: rgba(26, 58, 156, 0.97);
        padding: calc(var(--header-height) + 2rem) 2rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -4px 0 20px rgba(0,0,0,0.3);
    }
    .header__nav.is-open { right: 0; }
    .header__nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        justify-content: flex-start;
    }
    .header__logo img { height: 38px; }

    .hero__title { width: 70%; }

    /* ESPETÁCULO empilha */
    .spectacle__content { grid-column: 1 / -1; }
    .spectacle__title { font-size: clamp(2rem, 9vw, 3rem); }
    .spectacle__woman { height: 80%; right: -5%; bottom: 0; }

    .history__title { font-size: clamp(1.75rem, 7vw, 2.5rem); }

    /* TIMELINE empilha */
    .timeline__item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1.5rem 0;
    }
    .timeline__year,
    .timeline__content { grid-column: 1 / -1; }
    .timeline__year { font-size: 2.25rem; }
    .timeline__content h3 { font-size: 1.25rem; }

    .sambodromo__title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
    .sambodromo__stats .stat { grid-column: span 6; }
    .stat__number { font-size: 1.75rem; }
    .stat__label { font-size: 0.7rem; }

    .gallery__title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        text-align: right;
    }
    .gallery__figure-img { height: 260px; }
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 220px 180px 180px 220px;
    }
    .gallery__item--wide  { grid-column: 1 / -1; }
    .gallery__item--tall  { grid-column: span 1; grid-row: span 2; }
    .gallery__item:nth-child(3),
    .gallery__item:nth-child(4) { grid-column: span 1; }

    /* CTA empilha */
    .cta__content { grid-column: 1 / -1; }
    .cta__title { font-size: clamp(2rem, 9vw, 3rem); }
    .cta__button { width: 100%; text-align: center; }
    .cta__woman { height: 60%; right: 0; }

    /* FOOTER empilha */
    .footer__col { grid-column: 1 / -1; margin-bottom: 1.5rem; }
    .footer__bottom { grid-column: 1 / -1; }
}

/* ============================================
   RESPONSIVO — MOBILE PEQUENO (≤480px)
   ============================================ */
@media (max-width: 480px) {
    :root {
        --section-padding: 2.5rem;
        --container-padding: 1rem;
    }

    .header__logo img { height: 34px; }
    .hero__title { width: 80%; }

    .gallery__item { grid-column: 1 / -1; }
    .sambodromo__stats .stat { grid-column: 1 / -1; }

    .spectacle__title,
    .cta__title { font-size: 2.25rem; }
    .gallery__grid {
        grid-template-rows: 180px 150px 150px 180px;
    }
    .spectacle__woman { height: 65%; }
    .cta__woman { height: 50%; }

    .timeline__year { font-size: 2rem; }
}

/* ============================================
   ORIENTAÇÃO LANDSCAPE EM MOBILE
   ============================================ */
@media (max-width: 900px) and (orientation: landscape) {
    .hero__title { width: 40%; }