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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Main content area to push footer down */
main, .galeria-container {
    flex: 1;
}

/* Header */
.header {
    background: linear-gradient(135deg, #49326b, #49326b);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    padding: 1rem 0;
}

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

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

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.nav-logo h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

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

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: #ffd700;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd700;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    min-height: 2.75rem;
    min-width: 2.75rem;
    justify-content: center;
    align-items: center;
    border-radius: 0.25rem;
}

.bar {
    width: 1.5625rem;
    height: 0.1875rem;
    background: white;
    margin: 0.1875rem 0;
    transition: 0.3s;
    border-radius: 0.09375rem;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9), rgba(233, 236, 239, 0.9));
    padding: 2rem 0;
    position: relative;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    justify-content: space-between;
}

.hero-content {
    flex: 0 0 400px;
    text-align: left;
    z-index: 2;
    margin-right: auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #49326b;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.hero-image {
    flex: 0 0 50%;
    max-width: 50%;
    margin-left: auto;
    margin-right: 40px;
}

.hero-img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.875rem;
    text-decoration: none;
    border-radius: 1.5625rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    min-height: 2.75rem;
    min-width: 2.75rem;
    line-height: 1.2;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #49326b, #49326b);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(73, 50, 107, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #49326b;
    border: 2px solid #49326b;
}

.btn-secondary:hover {
    background: #49326b;
    color: white;
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    min-height: 2.5rem;
    min-width: 2.5rem;
}

/* Sections */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    color: #49326b;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.625rem;
    left: 50%;
    transform: translateX(-50%);
    width: 5rem;
    height: 0.1875rem;
    background: #ffd700;
}

/* Sobre Section */
.sobre {
    background: white;
}

.sobre-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}

.sobre-text p {
    font-size: 1.0625rem;
    margin-bottom: 1.25rem;
    color: #555;
    text-align: justify;
    line-height: 1.6;
}

.sobre-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Eventos Section */
.eventos {
    background: #f8f9fa;
}

.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

/* Quando há apenas 1 evento, centraliza */
.eventos-grid:has(.evento-card:only-child) {
    grid-template-columns: 1fr;
    max-width: 350px;
}

/* Quando há 2-4 eventos, organiza em linha */
@media (min-width: 768px) {
    .eventos-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .eventos-grid:has(.evento-card:nth-child(2):last-child) {
        grid-template-columns: repeat(2, 1fr);
        max-width: 720px;
    }
    
    .eventos-grid:has(.evento-card:nth-child(3):last-child) {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1080px;
    }
    
    .eventos-grid:has(.evento-card:nth-child(4):last-child) {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1200px;
    }
}
}

.evento-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.evento-card:hover {
    transform: translateY(-5px);
}

.evento-img {
    width: 100%;
    height: 325px;
    object-fit: contain;
    object-position: center;
    background: #f8f9fa;
}

.no-events-message {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 2rem 0;
    grid-column: 1 / -1;
}

.no-events-message h3 {
    color: #49326b;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.no-events-message p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.evento-content {
    padding: 1.25rem;
}

.evento-content h3 {
    color: #49326b;
    margin-bottom: 0.5rem;
    font-size: 1.1875rem;
}

.evento-data {
    color: #ffd700;
    font-weight: 500;
    margin-bottom: 0.875rem;
}

/* Galeria Section */
.galeria {
    background: white;
}

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

.album-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.album-card:hover {
    transform: translateY(-5px);
}

.album-cover {
    width: 100%;
    height: 250px;
    object-fit: contain;
    object-position: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album-cover:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Modal para visualização ampliada */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s ease;
}

.image-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.image-modal-close:hover {
    color: #ccc;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.album-info {
    padding: 1.25rem;
    text-align: center;
}

.album-info h3 {
    color: #49326b;
    margin-bottom: 0.5rem;
    font-size: 1.1875rem;
}

.album-info p {
    color: #666;
    margin-bottom: 0.875rem;
}

/* Staff Section */
.staff {
    background: #f8f9fa;
}

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

.staff-card {
    background: white;
    border-radius: 0.9375rem;
    padding: 1.75rem;
    text-align: center;
    box-shadow: 0 0.3125rem 1.25rem rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-5px);
}

.staff-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid #49326b;
}

.staff-info h3 {
    color: #49326b;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.staff-cargo {
    color: #ffd700;
    font-weight: 500;
}

/* Contato Section */
.contato {
    background: white;
}

.contato-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.contato-info h3 {
    color: #49326b;
    margin-bottom: 1.75rem;
    font-size: 1.375rem;
}

.contato-item {
    margin-bottom: 1.25rem;
}

.contato-item strong {
    color: #49326b;
    display: block;
    margin-bottom: 0.5rem;
}

.contato-form {
    background: #f8f9fa;
    padding: 1.75rem;
    border-radius: 0.9375rem;
}

.contato-form input,
.contato-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.875rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    min-height: 2.75rem;
}

.contato-form input:focus,
.contato-form textarea:focus {
    outline: none;
    border-color: #49326b;
}

/* Footer */
.footer {
    background: #33155c;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.footer-logo h3 {
    color: white;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 1rem;
    color: #ffd700;
}

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

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

.footer-links a:hover {
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #58137a;
    color: #ccc;
}

/* Responsive Design */

/* Large Tablets */
@media screen and (max-width: 1024px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .sobre-content {
        gap: 2rem;
    }
    
    .contato-content {
        gap: 2rem;
    }
    
    .eventos-grid,
    .galeria-albums {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.75rem;
    }
    
    .staff-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.75rem;
    }
}

/* Small Tablets / Large Phones */
@media screen and (max-width: 900px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        max-width: 900px;
        padding: 0 20px;
    }
    
    .hero-content {
        order: 1;
        flex: none;
        margin-right: 0;
        text-align: center;
    }
    
    .hero-image {
        flex: none;
        max-width: 700px;
        margin: 0 auto;
    }
    
    .hero-img {
        height: 540px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        max-width: 100%;
    }
    
    .eventos-grid,
    .galeria-albums {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .staff-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    /* Navigation */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: #49326b;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 1.5rem 0;
        gap: 0.75rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 0.75rem 0;
    }
    
    /* Hero */
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .hero-content {
        text-align: center;
        flex: none;
    }
    
    .hero-image {
        flex: none;
        max-width: 100%;
        order: -1;
        margin: 0;
    }
    
    .hero-img {
        height: 400px;
    }
    
    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 0.75rem;
    }
    
    /* Sections */
    section {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 1.875rem;
        margin-bottom: 2.5rem;
    }
    
    /* Sobre */
    .sobre-content {
        text-align: center;
        gap: 2rem;
    }
    
    /* Cards */
    .evento-card,
    .album-card,
    .staff-card {
        margin-bottom: 1rem;
    }
    
    .eventos-grid,
    .galeria-albums {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .staff-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
    }
    
    /* Contato */
    .contato-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-logo {
        justify-content: center;
    }
}

/* Mobile */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        min-height: 44px;
        margin-bottom: 6px;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    .eventos-grid,
    .galeria-albums,
    .staff-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .staff-card {
        padding: 1.25rem;
    }
    
    .contato-form {
        padding: 1.25rem;
    }
    
    .evento-content,
    .album-info {
        padding: 1.25rem;
    }
    
    .evento-content h3,
    .album-info h3 {
        font-size: 1.1rem;
    }
    
    .staff-info h3 {
        font-size: 1rem;
    }
    
    .sobre-text p {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
}

/* Extra Small Mobile */
@media screen and (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }
    
    .staff-card,
    .contato-form,
    .evento-content,
    .album-info {
        padding: 1rem;
    }
    
    .nav-logo h1 {
        font-size: 1.25rem;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
}

/* TV/Large Screens */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .nav-container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .eventos-grid,
    .galeria-albums {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .staff-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.sobre-content,
.evento-card,
.album-card,
.staff-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
.nav-link:focus,
.btn:focus,
input:focus,
textarea:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero,
    section {
        page-break-inside: avoid;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 85px;
    right: 20px;
    z-index: 9999;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.whatsapp-popup {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.whatsapp-header {
    background: #25D366;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whatsapp-header h4 {
    margin: 0;
    font-size: 16px;
}

.whatsapp-close {
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

.whatsapp-body {
    padding: 20px;
}

.whatsapp-body p {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.4;
}

.whatsapp-chat-btn {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.whatsapp-chat-btn:hover {
    background: #128C7E;
    color: white;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .whatsapp-popup {
        width: 280px;
        right: -10px;
    }
    
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
}

/* Botão WhatsApp Footer - Estilo Customizado */
.footer-bottom .btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    margin-top: 10px;
}

.footer-bottom .btn:hover {
    background: linear-gradient(135deg, #128C7E, #25D366);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    color: white;
    text-decoration: none;
}

.footer-bottom .btn i {
    font-size: 1rem;
}

/* Responsivo para o botão do footer */
@media (max-width: 768px) {
    .footer-bottom .btn {
        font-size: 0.8rem;
        padding: 6px 12px;
        margin-top: 8px;
    }
}