:root {
    --primary:    #cc1719;
    --secondary:  #ffcb00;
    --dark:       #1a0a0a;
    --background: #ffffff;
    --surface:    #f7f4f4;
    --text:       #1a1a1a;
    --muted:      rgba(26, 10, 10, 0.6);
    --white:      #ffffff;
    --font:   'Avory I PE Variable', 'Oswald', system-ui, -apple-system, sans-serif;
    --brand:  'Avory I PE Variable', 'Oswald', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--background);
}

/* ── Barra Gov ─────────────────────────────────────────── */
.barra-gov {
    background: var(--surface);
    border-bottom: 2px solid var(--primary);
    padding: 8px 0;
}
.container-gov {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.links-gov a {
    text-decoration: none;
    color: var(--dark);
    margin-left: 16px;
    text-transform: uppercase;
}
.links-gov a:hover { color: var(--primary); }

/* ── Header ────────────────────────────────────────────── */
header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border-bottom: 5px solid var(--secondary);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 120px;
}
.logo-area {
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
}
.logo-area svg,
.logo-area img {
    height: 96px;
    width: auto;
    display: block;
    fill: var(--white);
    cursor: pointer;
}

/* ── Menu ───────────────────────────────────────────────── */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}
.menu-item {
    font-family: var(--font);
    text-transform: uppercase;
    padding: 20px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    position: relative;
    color: var(--white);
    transition: color 0.2s;
    white-space: nowrap;
}
.menu-item:hover { color: var(--secondary); }
.search-btn { color: var(--white); padding: 20px 14px; cursor: pointer; }
.search-btn:hover { color: var(--secondary); }

/* ── Dropdown ───────────────────────────────────────────── */
.dropdown {
    display: none;
    position: absolute;
    background: var(--white);
    top: calc(100% - 2px);
    left: 0;
    min-width: 220px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    border-top: 3px solid var(--secondary);
    border-radius: 0 0 8px 8px;
}
.dropdown a {
    display: block;
    padding: 13px 18px;
    color: var(--dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(204, 23, 25, 0.1);
    transition: background 0.15s, color 0.15s;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover {
    background: var(--secondary);
    color: var(--dark);
}
.menu-item:hover .dropdown,
.dropdown.open { display: block; }

/* ── Submenu aninhado (Projeto) ─────────────────────────── */
.dropdown-item {
    display: block;
    padding: 13px 18px;
    color: var(--dark);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(204, 23, 25, 0.1);
    cursor: pointer;
    background: rgba(204, 23, 25, 0.05);
}
.dropdown-item:hover { background: var(--secondary); color: var(--dark); }
.submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 4px 8px 20px rgba(0,0,0,0.18);
    border-top: 3px solid var(--secondary);
    border-radius: 0 8px 8px 8px;
    z-index: 1100;
}
.has-submenu:hover .submenu,
.submenu.open { display: block; }

/* ── Banner ─────────────────────────────────────────────── */
.banner {
    width: 100%;
    height: clamp(220px, 36vw, 480px);
    background: var(--secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
/* bloco branco diagonal — elemento gráfico de contraste */
.banner::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 45%;
    height: 150%;
    background: rgba(255, 255, 255, 0.18);
    transform: skewX(-12deg);
    pointer-events: none;
}
/* faixa vermelha na base — ancora com o menu */
.banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary);
}
.banner-content { position: relative; z-index: 1; padding: 0 20px; }
.banner h2 {
    font-family: var(--brand);
    font-size: clamp(2.4rem, 7vw, 5.5rem);
    margin: 0;
    letter-spacing: 0.06em;
    color: var(--white);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    line-height: 1;
}
.banner p {
    margin: 20px 0 0;
    font-size: clamp(0.8rem, 1.8vw, 1rem);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(26, 10, 10, 0.65);
    font-weight: 700;
}

/* ── Seções Principais ──────────────────────────────────── */
main {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 320px;
}
section { display: none; }
section.active { display: block; animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

section h2 {
    font-family: var(--brand);
    color: var(--primary);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0;
    margin-bottom: 8px;
}
/* linha decorativa abaixo dos títulos */
section h2::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    background: var(--secondary);
    margin-top: 10px;
}
section p {
    line-height: 1.7;
    color: var(--muted);
    font-size: 1rem;
}

/* ── Slideshow de Fotos ─────────────────────────────────── */
.slideshow {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    user-select: none;
}
.slides { position: relative; }
.slide { display: none; }
.slide.active { display: block; }
.slide img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    border-radius: 8px;
    background: #000;
}
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    padding: 14px 18px;
    font-size: 1.4rem;
    cursor: pointer;
    border-radius: 4px;
    z-index: 10;
    transition: background 0.2s;
}
.slide-btn:hover { background: var(--primary); }
.slide-btn.prev { left: 8px; }
.slide-btn.next { right: 8px; }
.slide-dots {
    text-align: center;
    padding: 14px 0 4px;
}
.dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    margin: 0 5px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}
.dot.active { background: var(--primary); }

/* ── Conceito ───────────────────────────────────────────── */
.conceito-section {
    position: relative;
    overflow: hidden;
}
.conceito-decor {
    position: absolute;
    width: 120px;
    opacity: 0.18;
    pointer-events: none;
    right: 0;
}
.conceito-decor--top  { top: 0;    transform: scaleY(1); }
.conceito-decor--bottom { bottom: 0; transform: scaleY(-1); }
.conceito-p {
    max-width: 680px;
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 32px;
}
.conceito-img-full {
    margin-bottom: 36px;
}
.conceito-quote {
    border-left: 4px solid var(--primary);
    padding: 14px 22px;
    margin: 0 0 36px;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--dark);
    background: rgba(204,23,25,0.05);
    border-radius: 0 6px 6px 0;
    line-height: 1.65;
    max-width: 600px;
}
.conceito-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.conceito-duo--top { margin-bottom: 36px; }
@media (max-width: 600px) {
    .conceito-duo { grid-template-columns: 1fr; }
    .conceito-decor { width: 70px; }
}

/* ── Mural ──────────────────────────────────────────────── */
.mural-frame {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 60px rgba(0,0,0,0.25);
    cursor: zoom-in;
}
.mural-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, transparent 60%, rgba(0,0,0,0.35));
    pointer-events: none;
}
.mural-img,
.mural-frame img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}
.mural-frame:hover .mural-img,
.mural-frame:hover img { transform: scale(1.03); }
.mural-zoom {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 2;
    cursor: zoom-in;
}
.mural-zoom i {
    font-size: 1.8rem;
    color: #fff;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    pointer-events: none;
}
.mural-frame:hover .mural-zoom i { background: var(--primary); }

/* Lupa sobre a foto */
.slide { position: relative; }
.zoom-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
    cursor: zoom-in;
}
.zoom-overlay i {
    font-size: 3rem;
    color: #fff;
    background: rgba(0,0,0,0.45);
    border-radius: 50%;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.slide:hover .zoom-overlay { opacity: 1; }

/* Lightbox */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
#lightbox.open { display: flex; }
#lightbox-img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    cursor: default;
}
.lightbox-close {
    position: fixed;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.8rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

/* ── Formulário e Pesquisa ──────────────────────────────── */
.contact-form,
.search-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 520px;
}
input, textarea {
    padding: 14px 16px;
    border: 2px solid rgba(204, 23, 25, 0.2);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(204, 23, 25, 0.15);
    background: var(--white);
}
button {
    background: var(--secondary);
    color: var(--dark);
    border: none;
    padding: 15px 28px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 6px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
}
button:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(204, 23, 25, 0.3);
}

/* ── Rodapé ─────────────────────────────────────────────── */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 20px 40px;
}
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}
footer h3 {
    font-family: var(--brand);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    margin-bottom: 20px;
    margin-top: 0;
}
footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
footer li { margin-bottom: 6px; }
footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    transition: color 0.2s;
    line-height: 2;
}
footer a:hover { color: var(--secondary); }

/* ── Mobile Toggle ─────────────────────────────────────── */
.mobile-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--white);
    padding: 8px;
}

/* ── Responsividade ─────────────────────────────────────── */
@media (max-width: 992px) {
    .mobile-toggle { display: block; }

    .nav-menu {
        display: none;
        position: absolute;
        top: 120px;
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        border-top: 3px solid var(--secondary);
    }
    .nav-menu.open { display: flex; }

    .menu-item {
        width: 100%;
        padding: 16px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown {
        position: static;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.25);
    }
    .dropdown a {
        color: rgba(255, 255, 255, 0.85);
        padding-left: 36px;
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }
    .dropdown a:hover {
        background: var(--secondary);
        color: var(--dark);
    }

    .dropdown-item {
        color: rgba(255, 255, 255, 0.85);
        padding-left: 36px;
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }
    .submenu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        background: rgba(0, 0, 0, 0.2);
        z-index: auto;
    }
    .submenu a { padding-left: 52px; }

    .container-gov { flex-direction: column; gap: 8px; text-align: center; }

    .nav-container { height: 90px; }
    .logo-area img { height: 64px; }
}
