*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --green-dark: #38440c;
    --green-main: #48580c;
    --green-light: #7ec623;
    --green-ultra-light: #eaf6d9;
    --green-hero: #6ab317;
    --yellow: #f5c518;
    --white: #ffffff;
    --gray-bg: #f5f5f5;
    --gray-light: #eeeeee;
    --text-dark: #48580c;
    --footer-bg: #f0f0f0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    margin: 0;
    padding: 0;
}

html,
body {
    overflow-x: hidden;
}


img,
video {
    max-width: 100%;
    height: auto;
}

/* ── NAVBAR ─────────────────────────────── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(to bottom,
            rgba(26, 58, 8, 0.4),
            rgba(56, 68, 12, 0.2));

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
    height: 60px;
    gap: 100px;
}

.nav-brand {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
    line-height: 1.1;

}

.nav-brand img {
    width: 90px;
    border-right: var(--green-ultra-light) 1px solid;
    padding-right: 10px;
}

.nav-brand .brand-sub {
    font-size: 0.48rem;
    color: var(--green-ultra-light);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-left: 5px;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: var(--green-ultra-light);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
}

/* ── HERO ─────────────────────────────── */
.hero {
    position: relative;
    width: 100%;
    top: -60px;
    overflow: hidden;
    background: var(--green-hero);
    height: 665px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* controle */
.mobile {
    display: none;
}

/* ── SECTION TITLE ─────────────────── */
.section-title {
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--green-main);
    margin-bottom: 6px;
}



.section-arrow {
    text-align: center;
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 28px;
}

/* ── STATS ────────────────────────── */
.stats {
    background: var(--white);
    padding: 0px 40px 60px;
    text-align: center;
}

.stats .tagline {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
}

.stats .tagline span {
    color: var(--green-main);
    font-weight: 900;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 90px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: row;
}

.stat-number {
    font-family: 'Open Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--green-main);
    align-items: center;
}

.stat-plus {
    font-size: 2.2rem !important;
}

.stat-label {
    font-size: 1.0rem;
    color: #4a6e20;
    margin-top: 12px;
    margin-left: 5px;
    line-height: 0.9;
    text-align: start;
}

.stat-label em {
    font-size: 0.72rem;
    color: #4a6e20;
}

/* ── HISTORY ──────────────────────── */
.history {
    background: var(--gray-bg);
    padding: 48px 40px 70px;
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.history-text {
    flex: 1;
    max-width: 355px;
}

.history-text h2 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.history-text p {
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--green-main);
    text-align: justify;
}

.history-section {
    padding: 0px 40px 40px;
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.history-text-section {
    flex: 1;
    max-width: 810px;
}

.history-text-section h2 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.history-text-section p {
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--green-main);
    text-align: justify;
}

.btn-saiba {
    display: inline-block;
    background: var(--green-main);
    color: var(--white);
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 10px 22px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-saiba:hover {
    background: var(--green-dark);
}

.stack {
    position: relative;
    width: 370px;
    height: 285px;
}

/* estilo base das imagens */
.stack .img {
    position: absolute;
    width: 160px;
    height: 110px;
    object-fit: cover;
    border: 4px solid white;
    border-radius: 4px;
    background: #ccc;
}

/* cada imagem com posição e rotação */
/* CSS */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 99998;
    flex-direction: column;
}

#lightbox.active {
    display: flex;
}

#lb-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
    z-index: 2;
}

#lb-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

#lb-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

#lb-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#lb-img {
    max-width: 100%;
    max-height: 580px;
    object-fit: contain;
    transition: opacity 0.18s;
    will-change: opacity;
    backface-visibility: hidden;
    z-index: 1;
    pointer-events: none;
}

#lb-img.fade {
    opacity: 0;
}

.lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateZ(10px);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
    z-index: 999999;
}

#lb-prev {
    left: 16px;
}

#lb-next {
    right: 16px;
}

#lb-thumbs {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.6);
    overflow-x: auto;
}

.lb-thumb {
    width: 60px;
    height: 44px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.lb-thumb.active {
    opacity: 1;
    border-color: #fff;
}

.img1 {
    top: -40px;
    left: 20px;
    transform: rotate(-6deg);
    z-index: 1;
    width: 230px !important;
    height: 150px !important;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.img1:hover {
    transform: rotate(-6deg) scale(1.03);
}

.img2 {
    top: 70px;
    left: 120px;
    transform: rotate(4deg);
    z-index: 2;
    width: 230px !important;
    height: 150px !important;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.img2:hover {
    transform: rotate(4deg) scale(1.03);
}

.img3 {
    top: 190px;
    left: 10px;
    transform: rotate(-2deg);
    z-index: 3;
    width: 230px !important;
    height: 150px !important;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.img3:hover {
    transform: rotate(-2deg) scale(1.03);
}

/* ── ATRAÇÕES ─────────────────────── */
.attractions {
    background: var(--white);
    padding: 48px 40px;
    text-align: center;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 760px;
    margin: 0 auto 24px;
}

.photo-grid-item {
    border-radius: 3px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--gray-light);
    transition: transform 0.3s ease-in-out;
}

.photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.photo-grid-item:hover {
    transform: scale(1.03);
}

.btn-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
    padding: 40px 0px;
}

.btn-outline {
    display: inline-block;
    color: var(--white);
    background: var(--green-main);
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 9px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--green-dark);
    color: var(--white);
}

/* ── VIDEO ────────────────────────── */
.video-section {
    margin-top: 40px;
    background: var(--gray-bg);
    padding: 0px 40px 0px;
    display: flex;
    justify-content: center;
}

.video-wrap {
    top: -50px;
    bottom: -50px;
    width: 100%;
    max-width: 680px;
    aspect-ratio: 16/9;
    background: #111;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.video-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d5a1b, #6ab317);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ── LOCALIZAÇÃO ──────────────────── */
.location {
    padding-top: 1px;
    ;
    background: var(--gray-bg);
    text-align: center;
}

.map-wrap {
    width: 100%;
    margin: 0 auto;
    height: 500px;
    overflow: hidden;
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ── MAPA DA FEIRA (page 2) ───────── */
.fair-map {
    background: var(--white);
    text-align: center;
}

.fair-map-img {
    width: 100%;
    max-width: 900px;
    border-radius: 8px;
    margin: 0 auto 32px;
    display: block;
}

.expositores-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 16px;
}

.lista-de-nomes {
    font-family: 'Open Sans', sans-serif;
    font-weight: 900;
    font-size: 2.6rem;
    color: var(--green-dark);
    margin: 20px 0 40px;
    font-style: italic;
}

/* ── FOOTER ───────────────────────── */
footer {
    background: var(--footer-bg);
    padding: 40px;
    display: grid;
    grid-template-columns: max-content auto max-content;
    justify-content: center;
    align-items: center;
    gap: 100px;
}

.footer-brand,
.footer-contact {
    display: flex;
    flex-direction: column;
}

.footer-brand .brand-name {
    font-family: 'Open Sans', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: var(--green-dark);
    letter-spacing: 2px;
}

.footer-brand .brand-sub {
    font-size: 0.6rem;
    color: #48580c;
    margin-top: 2px;
}

.footer-links {
    list-style: none;
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
}

.footer-links a {
    font-size: 0.78rem;
    color: #48580c;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--green-main);
}

.footer-mascot {
    width: 180px;
    object-fit: contain;
    align-items: center;
}

.footer-contact .social-row {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #48580c;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.8rem;
    text-decoration: none;
}

.footer-contact h4 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.footer-contact p {
    font-size: 0.75rem;
    color: #48580c;
    line-height: 1.6;
    margin: 0;
}

/* ── RESPONSIVE ───────────────────── */
@media (max-width: 768px) {
    .desktop {
            display: none;
    }
    
    .mobile {
            display: block;
    }

    footer {
        display: grid;
        grid-template-columns: 1fr;
        padding: 28px 20px;
        gap: 24px;
        text-align: center;
    }

    nav {
        padding: 0 16px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 42px;
        left: 0;
        right: 0;
        background: #1a3a08;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 18px;
        z-index: 99;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        height: 575px;
    }

    .hero-desktop {
        display: none;
    }

    .hero-mobile {
        display: block;
    }

    .stats {
        padding: 0px 20px 48px;
        margin-top: -20px;
    }

    .stats .tagline {
        font-size: 1.15rem;
    }

    .stats-row {
        gap: 28px;
    }

    .stat-number {
        font-size: 1.7rem;
    }

    .history {
        flex-direction: column;
        text-align: center;
    }

    .history-text p {
        text-align: justify;
    }

    .stack {
        padding-top: 150px;
        top: 70px;
        position: relative;
        width: 370px;
        height: 285px;
    }

    .history-images {
        max-width: 100%;
    }

    .attractions {
        padding: 32px 20px;
    }

    .photo-grid {
        gap: 6px;
    }

    #lb-img {
        max-width: 100%;
        max-height: 580px;
        object-fit: contain;
        transition: opacity 0.18s;
        will-change: opacity;
        backface-visibility: hidden;
        z-index: 1;
    }

    .lb-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 9999;
    }

    .video-section {
        padding: 0 20px 0px;
    }

    .location {
        padding-top: 1px;
        padding-bottom: 32px;
    }

    .map-wrap {
        height: 240px;
    }

    .fair-map {
        padding: 32px 20px;
    }

    .lista-de-nomes {
        font-size: 1.8rem;
    }

    .footer {
        display: grid;
        grid-template-columns: 1fr;
        padding: 28px 20px;
        gap: 24px;
        text-align: center;
        justify-content: center;
    }

    .footer-brand .brand-name {
        font-size: 1.5rem;
    }

    .footer-mascot {
        justify-self: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-contact .social-row {
        justify-content: center;
    }
}