@font-face {
    font-family: 'Thunderhouse';
    src: url('../img/thunderhouse.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Piepie';
    src: url('../img/PiepieW01-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #F2F1EC;
    --red: #A84142;
    --cyan: #02AFC8;
    --orange: #D68C4F;
    --yellow: #FCDC67;
    --green: #7F8F48;
    --black: #1a1a1a;
    --font-display: 'Outfit', 'Syne', sans-serif;
    --font-thunderhouse: 'Thunderhouse', sans-serif;
    --font-piepie: 'Piepie', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    overflow-x: hidden;
    width: 100%;
    background-color: var(--bg);
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    color: var(--black);
    font-family: var(--font-body);
    line-height: 1.4;
    scroll-behavior: smooth;
}

html.no-scroll,
body.no-scroll {
    overflow: hidden !important;
}

/* Fibrous Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Contemporary Collage Background Elements */
.collage-blob {
    position: absolute;
    z-index: -1;
    filter: blur(40px);
    opacity: 0.4;
    animation: mineral-drift 20s infinite alternate ease-in-out;
}

@keyframes mineral-drift {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    100% {
        transform: translate(50px, 100px) rotate(15deg) scale(1.2);
    }
}

.map-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, #000 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.05;
    z-index: -1;
}

/* Layout Structure */
header {
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    mix-blend-mode: multiply;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

header.scrolled {
    background: rgba(242, 241, 236, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    mix-blend-mode: normal;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: -2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

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

.btn-cta {
    background: var(--green);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn-cta svg {
    flex-shrink: 0;
    /* Impede que o ícone seja esmagado se o texto for muito longo em telas pequenas */
    display: block;
    /* Remove o espaçamento fantasma inferior padrão de elementos inline */
}

.btn-cta:hover {
    transform: translateY(-3px) rotate(-1deg);
    box-shadow: 5px 5px 0px var(--yellow);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--black);
    transition: all 0.3s ease;
}

.btn-mobile-only {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: stretch;
    padding: 0 5%;
    position: relative;
}

.hero-text {
    align-self: center;
    padding-top: 100px;
    padding-bottom: 2rem;
}


.hero-title-main {
    font-family: var(--font-thunderhouse);
    font-weight: normal;
    font-size: clamp(8rem, 10vw, 12rem);
    line-height: 0.85;
    color: var(--red);
    text-transform: uppercase;
    margin: 0;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.hero-title-bottom {
    margin-top: -0.2rem;
    font-size: clamp(7.5rem, 8vw, 10rem);
}

.hero-subtitle-box {
    background-color: var(--bg);
    display: inline-block;
    padding: 0.5rem 1rem 0.2rem 1rem;
    margin: -0.5rem 0 0 0;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    transform: rotate(-1deg);
}

.hero-subtitle {
    font-family: var(--font-piepie);
    font-size: clamp(1.5rem, 2.5vw, 3rem);
    line-height: 1;
    color: var(--red);
    text-transform: uppercase;
}

.hero-image-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 100px;
    /* clears header */
}

.cutout-frame {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.cutout-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    display: block;
}

/* Sections Strategy */
section {
    padding: 8rem 10%;
    position: relative;
}

.section-title {
    font-family: var(--font-piepie);
    font-weight: normal;
    font-size: 4rem;
    text-transform: uppercase;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::after {
    content: "";
    height: 40px;
    flex-grow: 1;
    background: var(--green);
    clip-path: polygon(0 45%, 100% 0, 100% 100%, 0 55%);
}

.historia-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

/* History Mosaic */
.history-mosaic {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
}

.mosaic-item {
    position: absolute;
    width: 75%;
    padding: 0.8rem;
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mosaic-item img {
    width: 100%;
    display: block;
    filter: grayscale(1) contrast(1.2);
    mix-blend-mode: multiply;
    transition: all 0.4s ease;
}

.mosaic-item:hover {
    z-index: 10 !important;
    transform: scale(1.05) rotate(0deg) !important;
}

.mosaic-item:hover img {
    filter: grayscale(0) contrast(1);
    mix-blend-mode: normal;
}

/* Grids */
.proposals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.proposal-card {
    background: var(--bg);
    border: 3px solid var(--black);
    padding: 2rem;
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.proposal-card:nth-child(1) {
    border-top: 15px solid var(--orange);
}

.proposal-card:nth-child(2) {
    border-top: 15px solid var(--green);
}

.proposal-card:nth-child(3) {
    border-top: 15px solid var(--cyan);
}

.proposal-card:nth-child(4) {
    border-top: 15px solid var(--red);
}

.proposal-card:nth-child(5) {
    border-top: 15px solid var(--yellow);
}

.proposal-card:hover {
    transform: scale(1.02);
    box-shadow: 12px 12px 0px var(--black);
}

.proposal-card h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 4rem 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--black);
    transform: translateX(-50%);
    opacity: 0.2;
}

.timeline-item {
    width: 45%;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
}

.timeline-number {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: 10rem;
    font-weight: 900;
    color: var(--yellow);
    line-height: 1;
    opacity: 0.9;
}

.timeline-item:nth-child(odd) .timeline-number {
    left: 125%;
}

.timeline-item:nth-child(even) .timeline-number {
    right: 125%;
}

.timeline-content {
    background: white;
    padding: 2rem;
    box-shadow: 8px 8px 0px var(--orange);
    border: 2px solid var(--black);
}

.timeline-date {
    font-family: var(--font-display);
    color: var(--red);
    font-size: 1.5rem;
}

/* Media / News Section */
.news-marquee {
    overflow: hidden;
    background: var(--black);
    color: var(--yellow);
    padding: 1rem 0;
    white-space: nowrap;
    margin-bottom: 4rem;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
    font-family: var(--font-piepie);
    font-size: 2rem;
    text-transform: uppercase;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--cyan);
    padding: 4rem;
    color: white;
    clip-path: polygon(2% 0%, 100% 5%, 98% 100%, 0% 95%);
    word-break: break-word;
}

.contact-container>* {
    min-width: 0;
}

.contact-container input,
.contact-container textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    color: white;
    font-family: var(--font-body);
}

.contact-container input::placeholder,
.contact-container textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Footer */
footer {
    padding: 4rem 10%;
    background: var(--bg);
    border-top: 10px solid var(--black);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: var(--black);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s;
}

.social-icon:hover {
    background: var(--red);
    transform: rotate(15deg);
}

/* Eli na Mídia Slider */
.midia-slider-wrapper {
    position: relative;
}

.insta-item {
    flex: 0 0 clamp(280px, 72%, 360px);
    position: relative;
    scroll-snap-align: start;
}

.midia-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 1rem;
    cursor: grab;
}

.midia-slider::-webkit-scrollbar {
    display: none;
}

.midia-slider:active {
    cursor: grabbing;
}

.midia-card {
    flex: 0 0 clamp(260px, 78%, 340px);
    background: white;
    border: 2px solid var(--black);
    padding: 2rem;
    box-shadow: 8px 8px 0px var(--black);
    text-decoration: none;
    color: var(--black);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.midia-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px var(--black);
}

.midia-tag {
    display: inline-block;
    color: white;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    letter-spacing: 1px;
    width: fit-content;
}

.midia-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.3;
    text-transform: uppercase;
    flex-grow: 1;
}

.midia-excerpt {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.6;
}

.midia-link {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--red);
    margin-top: auto;
}

.midia-controls {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.midia-btn {
    width: 52px;
    height: 52px;
    background: var(--black);
    color: var(--yellow);
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.midia-btn:hover {
    background: var(--red);
    transform: scale(1.1);
}

/* Testimonials Slider Cards - Light & Subtle Design */
.testimonial-card {
    flex: 0 0 clamp(300px, 80%, 420px);
    background: #FFFFFF;
    border: 2px solid var(--black);
    padding: 2.2rem 2rem 2rem;
    box-shadow: 6px 6px 0px var(--black);
    color: var(--black);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.2rem;
    scroll-snap-align: start;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 10px 10px 0px var(--black);
}

.testimonial-quote {
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 0.8;
    color: var(--red);
    margin-bottom: -0.5rem;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #222;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
}

.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--black);
    flex-shrink: 0;
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.testimonial-author-info strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--black);
    text-transform: uppercase;
}

.testimonial-author-info span {
    font-size: 0.85rem;
    color: #555;
}

/* GALERIA MOSAICO */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    grid-auto-rows: 240px;
    grid-auto-flow: dense;
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 3px solid var(--black);
    background: #000;
    box-shadow: 6px 6px 0px var(--black);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 4px;
}

.gallery-item:hover {
    transform: translate(-3px, -3px);
    box-shadow: 10px 10px 0px var(--red);
    z-index: 2;
}

.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);
}

/* Dynamic spans for mosaic rhythm */
.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

/* Gallery Hidden Items & Load More */
.gallery-item-hidden {
    display: none !important;
}

.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: "🔍 Ampliar foto";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    color: var(--yellow);
    font-family: var(--font-display);
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
    text-transform: uppercase;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    pointer-events: none;
    text-align: center;
}

.gallery-item:hover::after {
    transform: translateY(0);
}

/* LIGHTBOX MODAL STYLES */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
}

.lightbox-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 92vw;
    max-height: 90vh;
    gap: 1.5rem;
}

.lightbox-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 85vw;
    max-height: 82vh;
}

.lightbox-figure img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border: 3px solid var(--black);
    box-shadow: 10px 10px 0px var(--yellow);
    background: #000;
}

.lightbox-caption {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--yellow);
    margin-top: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.85);
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--yellow);
    box-shadow: 4px 4px 0px var(--red);
}

.lightbox-close {
    position: absolute;
    top: -2.8rem;
    right: 0;
    background: var(--red);
    color: white;
    border: 2px solid var(--black);
    font-size: 1.8rem;
    line-height: 1;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 4px 4px 0px var(--yellow);
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: var(--yellow);
    color: var(--black);
    transform: scale(1.1);
}

.lightbox-nav {
    background: var(--black);
    color: var(--yellow);
    border: 2px solid var(--yellow);
    font-size: 1.8rem;
    width: 54px;
    height: 54px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 6px 6px 0px var(--red);
    transition: transform 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}

.lightbox-nav:hover {
    background: var(--red);
    color: white;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .lightbox-content {
        flex-direction: column;
        gap: 0.8rem;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
    }

    .lightbox-figure img {
        max-height: 55vh;
    }

    .lightbox-caption {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }
}

/* Scroll Reveal Styles */
.reveal-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobilização Grid */
.mobi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mobi-card {
    position: relative;
    padding: 1.5rem;
    min-height: 220px;
    border-radius: 8px;
    color: white;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: left;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid var(--black);
    box-shadow: 6px 6px 0px var(--black);
}

.mobi-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0px var(--black);
}

.mobi-card svg {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
}

.mobi-card span {
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.2;
    font-weight: 700;
}

/* Tablet Adjustments */
@media (max-width: 1024px) {
    header {
        justify-content: space-between;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .btn-desktop-only {
        display: none;
    }

    /* Removemos o .btn-mobile-only genérico e usamos o blindado aqui dentro! */
    .nav-links a.btn-cta.btn-mobile-only {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 15px;
        margin-top: 1rem;
        /* Adicionado da sua regra anterior */
        box-sizing: border-box;
    }

    .nav-links a.btn-cta.btn-mobile-only svg {
        flex-shrink: 0;
        margin: 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 100%;
        height: 100vh;
        /* Fallback */
        height: 100dvh;
        background: var(--black);
        border-left: 2px solid var(--black);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        transition: right 0.4s ease;
        z-index: 100;
        gap: 1.8rem;
    }

    .nav-links a {
        color: white;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn.active .hamburger-line {
        background-color: white;
    }

    .mobile-menu-btn.active .hamburger-line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .hamburger-line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .btn-desktop-only {
        display: none;
    }

    .btn-mobile-only {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        height: auto;
        padding-top: 5rem;
        gap: 3rem;
    }

    .hero-text {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .hero-image-container {
        height: 400px;
    }

    .historia-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .history-mosaic {
        width: 70%;
        margin: 0 auto;
    }

    .mobi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 2rem;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    section {
        padding: 4rem 6%;
    }

    header {
        padding: 1.2rem 6%;
    }

    .nav-links {
        width: 100vw;
        border-left: none;
    }

    .btn-cta {
        width: 100%;
        text-align: center;
    }

    .hero {
        padding: 0 3%;
        gap: 0;
    }

    .hero-text {
        padding-top: 90px;
    }

    .hero-image-container {
        padding-top: 0;
        height: auto;
        margin-top: 0.5rem;
    }

    .hero-title-main {
        font-size: clamp(4rem, 23.5vw, 9rem);
    }

    .hero-subtitle {
        font-size: clamp(1.5rem, 5.5vw, 2.8rem);
    }

    .news-marquee .marquee-content {
        font-size: 1.5rem;
    }

    .history-mosaic {
        width: 90%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 260px;
    }

    .gallery-item.large,
    .gallery-item.wide {
        grid-column: span 1;
    }

    .gallery-item.large,
    .gallery-item.tall {
        grid-row: span 1;
    }

    .mobi-grid {
        grid-template-columns: 1fr;
    }

    .proposals-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item {
        width: 100%;
        margin-left: 0 !important;
        display: flex;
        flex-direction: row !important;
        align-items: flex-start;
        gap: 1rem;
    }

    .timeline-number {
        position: static;
        transform: none;
        font-size: 4rem;
        color: var(--yellow);
        opacity: 0.9;
    }

    .timeline-item:nth-child(odd) .timeline-number,
    .timeline-item:nth-child(even) .timeline-number {
        left: auto;
        right: auto;
    }

    .timeline-content {
        padding: 1.2rem;
        flex: 1;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
        padding: 2.2rem 1.5rem;
        clip-path: none;
        border-radius: 12px;
    }

    .section-title {
        font-size: 2.2rem;
        flex-wrap: wrap;
    }

    footer {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        text-align: center;
    }
}
/* ==========================================================================
   ESTILOS DA GALERIA (FRONT-PAGE)
   ========================================================================== */
.galeria-moderna {
    display: flex;
    flex-wrap: wrap;
    background: var(--bg);
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.galeria-info-side {
    background: var(--red);
    flex: 1 1 350px;
    padding: 6rem 5% 6rem 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    color: #fff;
}

.galeria-info-side .galeria-title-main {
    font-family: var(--font-thunderhouse);
    font-weight: 400; /* Regular conforme solicitado */
    font-size: clamp(5rem, 8vw, 8rem);
    line-height: 0.9;
    color: #fff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.galeria-info-side p {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    max-width: 90%;
}

.galeria-link {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    font-size: 1.1rem;
    text-underline-offset: 4px;
}

.galeria-image-side {
    flex: 2 1 600px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.galeria-main-photo {
    width: 100%;
    height: 700px;
    object-fit: cover;
    display: block;
}

.galeria-event-info {
    position: absolute;
    bottom: 120px; /* Imediatamente acima do slider (120px compensa o box do slider) */
    left: 0;
    width: 100%;
    padding: 4rem 2rem 1.5rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    color: white;
    z-index: 5;
    pointer-events: none;
    text-align: center; /* Centralizado conforme solicitado */
}

.galeria-thumbs-wrapper {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    padding: 10px 2rem;
    gap: 1rem;
    z-index: 10;
}

.galeria-thumbs-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    flex-grow: 1;
    padding-bottom: 10px;
}

.galeria-thumbs-container::-webkit-scrollbar {
    display: none;
}

.galeria-thumb {
    width: 90px;
    height: 90px;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
    opacity: 0.7;
    transition: all 0.3s ease;
    scroll-snap-align: start;
    flex-shrink: 0;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.galeria-thumb.active {
    border-color: var(--yellow);
    opacity: 1;
    transform: scale(1.1);
}

.galeria-thumb:hover {
    opacity: 1;
}

.galeria-nav-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid transparent;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
}

.galeria-nav-btn:hover {
    background: var(--yellow);
    color: var(--black);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .galeria-info-side {
        padding: 4rem 5%;
    }
    .galeria-main-photo {
        height: 500px;
    }
    .galeria-event-info {
        bottom: 100px;
        padding: 3rem 1rem 1rem 1rem;
    }
    .galeria-thumbs-wrapper {
        padding: 10px 1rem;
        bottom: 10px;
    }
    .galeria-thumb {
        width: 70px;
        height: 70px;
    }
}

