/* style.css - Banda Marcial Santanense (Clone) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&display=swap');

:root {
    --brand-red: #B30000;
    --brand-dark-red: #8B0000;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #F9F9F9;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* TOP BAR */
.top-bar {
    background-color: var(--brand-red);
    color: var(--white);
    font-size: 0.8rem;
    padding: 8px 0;
}

.top-bar-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-social span {
    margin-right: 15px;
    font-weight: 600;
}

.top-social a {
    color: var(--white);
    margin-right: 15px;
    font-size: 1rem;
}

/* HEADER */
.main-header {
    background-color: var(--white);
    border-bottom: 1px solid #eaeaea;
}

.header-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--brand-red);
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.main-nav a {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--brand-red);
    border-bottom: 2px solid var(--brand-red);
}

/* HERO SECTION */
.hero {
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 100%), url('../img/hero-bg.jpg') center/cover no-repeat;
    height: 600px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    max-width: 700px;
}

.hero h1 .red-text {
    color: var(--brand-red);
}

.hero p {
    color: var(--white);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 30px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-red {
    background-color: var(--brand-red);
    color: var(--white);
    border: 2px solid var(--brand-red);
}

.btn-red:hover {
    background-color: var(--brand-dark-red);
    border-color: var(--brand-dark-red);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

.btn-outline-red {
    background-color: transparent;
    color: var(--brand-red);
    border: 2px solid var(--brand-red);
}

.btn-outline-red:hover {
    background-color: var(--brand-red);
    color: var(--white);
}

/* SECTION COMMON */
.section {
    padding: 80px 0;
}

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

/* SOBRE NÓS */
.sobre-section {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.sobre-watermark {
    position: absolute;
    right: -100px;
    top: -50px;
    opacity: 0.05;
    width: 600px;
    pointer-events: none;
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.sobre-info h4 {
    color: var(--brand-red);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 700;
}

.sobre-info h2 {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.sobre-info p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.feature-item i {
    font-size: 2rem;
    color: var(--brand-red);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.feature-item p {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* PRÓXIMAS APRESENTAÇÕES */
.agenda-section {
    background-color: var(--bg-light);
    text-align: center;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-right: 15px;
}

.section-header .line {
    flex: 1;
    height: 1px;
    background-color: #ddd;
    position: relative;
}

.section-header .line::before {
    content: '';
    position: absolute;
    left: 0;
    top: -1px;
    width: 50px;
    height: 3px;
    background-color: var(--brand-red);
}

.agenda-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    text-align: left;
}

.agenda-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.agenda-img {
    height: 200px;
    background-color: #ddd;
    position: relative;
    background-size: cover;
    background-position: center;
}

.agenda-date {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--brand-red);
    color: var(--white);
    padding: 10px 15px;
    text-align: center;
    font-weight: 800;
    border-bottom-right-radius: 8px;
}

.agenda-date span {
    display: block;
    font-size: 1.2rem;
}

.agenda-date small {
    font-size: 0.7rem;
}

.agenda-content {
    padding: 20px;
}

.agenda-content h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.agenda-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light);
}

.agenda-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* GALERIA */
.galeria-section {
    background-color: var(--brand-red);
    color: var(--white);
    padding: 60px 0;
}

.galeria-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: center;
}

.galeria-info h4 {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    opacity: 0.8;
}

.galeria-info h2 {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 15px;
}

.galeria-info p {
    font-size: 0.9rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.galeria-images {
    display: flex;
    gap: 10px;
}

.galeria-img {
    flex: 1;
    height: 250px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 4px;
    background-size: cover;
    background-position: center;
}

/* CTA SECTION */
.cta-section {
    background-color: var(--white);
    padding: 50px 0;
    border-bottom: 1px solid #eaeaea;
}

.cta-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
}

.cta-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cta-icon {
    width: 60px;
    height: 60px;
    background: rgba(179, 0, 0, 0.1);
    color: var(--brand-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.cta-text h2 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.cta-text p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* FOOTER */
.site-footer {
    background-color: var(--brand-red);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

.footer-col h3 {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-nav li {
    margin-bottom: 8px;
}

.footer-nav a {
    font-size: 0.85rem;
    opacity: 0.9;
}

.footer-nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    opacity: 0.9;
    word-break: break-all;
}

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

.social-circle {
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-circle:hover {
    background-color: var(--white);
    color: var(--brand-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.75rem;
    opacity: 0.8;
}

/* PÁGINAS INTERNAS (Header clean) */
.page-header {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 60px 0 40px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--brand-red);
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* NOVO GRID DA GALERIA */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
    color: var(--white);
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* CONTATO GRID */
.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* RESPONSIVIDADE (MOBILE FIRST / @MEDIA) */
@media (max-width: 991px) {
    /* Header e Navegação */
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    /* Hero Section */
    .hero {
        height: 500px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    
    /* Sobre Nós */
    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Galeria Home */
    .galeria-grid {
        grid-template-columns: 1fr;
    }
    .galeria-images {
        flex-wrap: wrap;
    }
    .galeria-img {
        flex: 1 1 calc(50% - 10px);
        min-width: 120px;
    }
    
    /* Agenda Home */
    .agenda-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    /* Contato Grid */
    .contato-grid {
        grid-template-columns: 1fr;
    }

    /* Section Headers */
    .section-header {
        flex-direction: column !important;
        justify-content: center !important;
        text-align: center !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }
    .section-header h2 {
        margin-right: 0 !important;
        margin-bottom: 15px !important;
        font-size: 1.3rem !important;
    }
    .section-header .line {
        flex: none !important;
        width: 60px !important;
        height: 3px !important;
        background-color: var(--brand-red) !important;
    }
    .section-header .line::before {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Topbar sumir mobile */
    .top-bar {
        display: none;
    }
    
    /* Hero Menor */
    .hero {
        height: 400px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    
    /* Agenda Grid (1 coluna) */
    .agenda-grid {
        grid-template-columns: 1fr;
    }
    
    /* Features (1 coluna) */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* CTA */
    .cta-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .cta-info {
        flex-direction: column;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-contact li {
        justify-content: center;
    }
    .footer-social {
        justify-content: center;
    }
    
    /* Section paddings */
    .section {
        padding: 50px 0;
    }
    
    /* Galeria / Videos mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================
   PÁGINA INTEGRANTES (GENEALOGIA)
   ========================================= */
.integrantes-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}
.integrantes-filters .btn {
    border-radius: 20px;
}
.tree-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 20px 0;
}
.tree-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.tree-section-title {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
}
.tree-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    flex-wrap: wrap;
}
.tree-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 800px;
}
.tree-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.tree-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid var(--brand-red);
}
.tree-card .icon-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #999;
    margin-bottom: 10px;
    border: 2px solid #ccc;
}
.tree-card h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}
.tree-card p {
    font-size: 0.75rem;
    color: var(--brand-red);
    font-weight: 600;
}
.tree-card .years {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 5px;
}

@media (max-width: 768px) {
    .tree-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
