/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #523827;
    background-color: #fff3d8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #873b4b;
    color: white;
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 60px;
    width: auto;
    margin: 0px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 16px;
    border-radius: 6px;
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: #ffe63d;
    background: rgba(255, 230, 61, 0.1);
    transform: translateY(-1px);
    text-shadow: 0 2px 4px rgba(255, 230, 61, 0.3);
}

.nav-link.active {
    color: #ffe63d;
    background: rgba(255, 230, 61, 0.2);
    font-weight: 600;
    border-radius: 4px;
    border-bottom: 2px solid #ffe63d;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    background: transparent;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* SUBMENU */
.nav-item-with-submenu {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #6d2c3a;
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    list-style: none;
    padding: 8px 0;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    border-top: 2px solid #ffe63d;
}

.submenu li {
    padding: 0;
}

.submenu a {
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.submenu a:hover {
    background: rgba(255, 230, 61, 0.1);
    color: #ffe63d;
    border-left-color: #ffe63d;
    transform: translateX(3px);
}

.submenu a.active {
    background: rgba(255, 230, 61, 0.15);
    color: #ffe63d;
    border-left-color: #ffe63d;
    font-weight: 600;
}

.nav-item-with-submenu:hover .submenu {
    display: block;
}

.nav-item-with-submenu>.nav-link::after {
    content: ' ▼';
    font-size: 0.8em;
}

/* Banner */
.banner {
    height: 60vh;
    background: linear-gradient(135deg, #873b4b 0%, #4b6a88 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-top: 76px;
}

.banner-content {
    z-index: 2;
}

.banner-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.banner-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 600px;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero-section {
    position: relative;
    margin-top: 76px;
    width: 100%;
    height: auto;
    max-height: 70vh;
    overflow: hidden;
}

.hero-content {
    position: relative;
    display: block;
    width: 100%;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 70vh;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Site Content */
.site-content {
    margin-top: 76px;
}

/* Propaganda Section */
.propaganda-section {
    padding: 4rem 0;
    background: #fff3d8;
}

.propaganda-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.propaganda-item {
    height: 200px;
    background: #ecba78;
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 8px;
    justify-content: center;
    color: #523827;
    font-weight: 500;
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.propaganda-item h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

/* Museus em Destaque */
.museus-destaque {
    padding: 4rem 0;
    background: #fff3d8;
}

.section-title {
    text-align: center;
    margin: 0 0 2.5rem 0;
    color: #523827;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #9f643d, #cb8659);
    border-radius: 3px;
}

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

.museu-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.museu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.museu-image {
    height: 200px;
    background: #ecba78;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #523827;
    font-weight: 500;
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.museu-card h3 {
    padding: 1.5rem;
    font-size: 1.3rem;
    color: #523827;
    text-align: center;
}

.btn-ver-mais {
    display: block;
    width: fit-content;
    margin: 0 auto 1.5rem;
    padding: 0.8rem 2rem;
    background: #9f643d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-ver-mais:hover {
    background: #cb8659;
}

/* Notícias */
.noticias {
    padding: 4rem 0;
    background: #fff3d8;
}

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

.noticia-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.noticia-card:hover {
    transform: translateY(-3px);
}

.noticia-image {
    height: 150px;
    background: #9f643d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
}

.noticia-card h3 {
    padding: 1rem 1.5rem 0.5rem;
    color: #523827;
    font-size: 1.2rem;
}

.noticia-card p {
    padding: 0 1.5rem;
    color: #634b43;
    line-height: 1.6;
}

.btn-ler-mais {
    display: inline-block;
    margin: 1rem 1.5rem 1.5rem;
    padding: 0.6rem 1.5rem;
    background: #9f643d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-ler-mais:hover {
    background: #cb8659;
}

/* Footer */
.footer {
    background: #ecba78;
    color: white;
    padding: 3rem 0 1.5rem;
    margin: 0;
}

.footer-marcas {
    background: #ecba78;
    color: white;
    padding: 3rem 0 1.5rem;
    margin: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: start;
    text-align: center;
}

.footer-content.single-section {
    grid-template-columns: 1fr;
    justify-items: center;
}

.section-title,
.footer-section h4 {
    text-align: center;
    position: relative;
    display: block;
    width: 100%;
}

.section-title::after,
.footer-section h4::after {
    left: 50%;
    transform: translateX(-50%);
}

.footer-section h4 {
    text-align: center;
    margin: 0 0 2rem 0;
    color: #523827;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #9f643d, #cb8659);
    border-radius: 3px;
}

/* Espaçamento maior entre Realizações e Parcerias */
.footer-section h4:nth-of-type(2) {
    margin-top: 3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section p {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ffe63d;
}

.social-links {
    display: flex;
    gap: 1rem;
    padding: 10px;
}

.social-links a {
    display: inline-block;
    width: 100px;
    height: 100px;
    background: #4b6a88;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.social-links a:hover {
    background: #ffe63d;
    color: #873b4b;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.social-btn {
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.social-btn.facebook { background: #1877f2; }
.social-btn.instagram { background: #e4405f; }
.social-btn.twitter { background: #1da1f2; }
.social-btn.whatsapp { background: #25d366; }

.social-btn:hover {
    background: #ffe63d;
    color: #873b4b;
}

.footer-bottom {
    text-align: center;
    color: #523827;
    padding: 1rem 0 0;
    margin: 0;
}

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

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 76px;
        left: 0;
        width: 100%;
        height: calc(100vh - 76px);
        background: #873b4b;
        flex-direction: column;
        padding: 2rem 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        z-index: 999;
        gap: 0;
        animation: slideDown 0.3s ease;
    }
    
    /* Padronização de altura dos cards em mobile/tablet */
    .museu-card {
        display: flex;
        flex-direction: column;
        height: 380px;
    }
    
    .museu-card h3 {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .noticia-card {
        display: flex;
        flex-direction: column;
        height: 450px;
    }
    
    .noticia-image {
        flex-shrink: 0;
    }
    
    .noticia-card h3 {
        flex-shrink: 0;
    }
    
    .noticia-card p {
        flex: 1;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
    }
    
    .btn-ler-mais {
        margin-top: auto;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link {
        display: block;
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        border-radius: 0;
    }
    
    /* Submenu no mobile */
    .nav-item-with-submenu .submenu {
        position: static;
        background: rgba(0, 0, 0, 0.2);
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        margin-top: 0;
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-item-with-submenu:hover .submenu {
        display: none;
    }
    
    .nav-item-with-submenu.submenu-open .submenu {
        display: block;
        max-height: 500px;
    }
    
    .submenu a {
        padding-left: 2.5rem !important;
        font-size: 1rem !important;
    }
    
    /* Indicador visual de submenu */
    .nav-item-with-submenu > .nav-link::after {
        content: ' ▼';
        font-size: 0.7em;
        transition: transform 0.3s ease;
        display: inline-block;
        margin-left: 5px;
    }
    
    .nav-item-with-submenu.submenu-open > .nav-link::after {
        transform: rotate(180deg);
    }

    .banner-title {
        font-size: 2rem;
    }

    .banner-subtitle {
        font-size: 1rem;
    }

    .propaganda-section .container {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .museus-grid,
    .noticias-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    /* Remover espaçamento do site-content em telas pequenas */
    .site-content {
        margin-top: 0 !important;
    }

    .container {
        padding: 0 15px;
    }

    .banner {
        height: 50vh;
    }

    .banner-title {
        font-size: 1.8rem;
    }

    .propaganda-item {
        padding: 2rem;
        min-height: 150px;
    }

    .propaganda-item h3 {
        font-size: 1.2rem;
    }
    
    /* Ajuste de altura dos cards para mobile pequeno */
    .museu-card {
        height: 360px;
    }
    
    .noticia-card {
        height: 420px;
    }
}

/* Footer logos */
.footer-section.logos {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 90px;
    width: auto;
    margin: 0.5rem;
    object-fit: contain;
}

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

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

@media (max-width: 768px) {
    .footer-section.logos {
        justify-content: center;
    }
}
