:root {
    --primary-color: #6a1b9a;
    --primary-dark: #4a148c;
    --secondary-color: #ffca28;
    --accent-color: #ff4081;
    --text-light: #f3e5f5;
    --text-dark: #212121;
    --bg-dark: #12002b;
    --bg-card: #240046;
    --gradient-main: linear-gradient(135deg, #4a148c 0%, #7b1fa2 100%);
    --gradient-gold: linear-gradient(45deg, #ffca28, #ffd54f, #ffca28);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.5);
    --font-heading: 'Fredoka One', cursive;
    --font-body: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--bg-dark);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--bg-dark);
}

/* Header */
.main-header {
    background: transparent;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    background: rgba(18, 0, 43, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--secondary-color);
}

.logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
}

/* Mobile Ticket Button */
.mobile-ticket-btn {
    display: none;
}

/* Mobile Menu Overlay - Adicionado para corrigir funcionalidade */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 0, 43, 0.98);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px;
    overflow-y: auto;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mobile-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.mobile-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.mobile-close:hover {
    transform: rotate(90deg);
    color: var(--accent-color);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.mobile-nav .nav-item {
    font-size: 1.5rem;
    color: var(--text-light);
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s;
    display: block; /* Garante que links ocupem espaço */
}

.mobile-nav .nav-item:hover,
.mobile-nav .nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
    transform: translateX(10px);
}

.mobile-nav .nav-item i {
    margin-right: 15px;
    width: 30px;
}

/* Scroll To Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--bg-dark);
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #4a148c 0%, #12002b 100%);
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png') repeat; /* Optional pattern */
    opacity: 0.1;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 0 0 20px rgba(255, 202, 40, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

/* Section Common */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.section-subtitle {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0.7;
}

/* Avisos */
.avisos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.aviso-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--accent-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.aviso-card:hover {
    transform: translateY(-5px);
}

.aviso-card.importante { border-color: #ff1744; }
.aviso-card.novidade { border-color: #00e676; }
.aviso-card.alerta { border-color: #ff9100; }

.aviso-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Agenda */
.agenda-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.agenda-item {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    box-shadow: var(--shadow-sm);
}

.agenda-image {
    width: 300px;
    position: relative;
}

.agenda-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agenda-details {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    width: fit-content;
}

.status-em_cartaz { background: #00e676; color: #000; }
.status-em_breve { background: #ff9100; color: #000; }
.status-encerrado { background: #ff1744; color: #fff; }

.agenda-location {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.agenda-address {
    margin-bottom: 20px;
    opacity: 0.8;
}

.schedule-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.schedule-day {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    min-width: 80px;
}

.schedule-day.active {
    border: 1px solid var(--secondary-color);
}

.day-name {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.day-time {
    font-size: 0.8rem;
}

/* Ingressos */
.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.ticket-card {
    background: var(--bg-card);
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ticket-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-gold);
}

.ticket-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(106, 27, 154, 0.3);
}

.platform-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

/* Atrações */
.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.attraction-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
}

.attraction-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.attraction-card:hover .attraction-img {
    transform: scale(1.1);
}

.attraction-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(20px);
    transition: transform 0.3s;
}

.attraction-card:hover .attraction-info {
    transform: translateY(0);
}

.attraction-title {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

/* Galeria */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Footer */
.main-footer {
    background: #0a001a;
    padding: 80px 0 20px;
    margin-top: 80px;
    border-top: 5px solid var(--secondary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Fix para footer quebrado */
.footer-col {
    word-break: break-word; /* Evita que palavras longas quebrem o layout */
    min-width: 0; /* Permite que o flex item encolha abaixo do conteúdo mínimo */
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Garante que ícones não estourem se forem muitos */
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0; /* Impede que ícones sejam esmagados */
}

.social-link:hover {
    background: var(--secondary-color);
    color: var(--bg-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    /* Mobile Ticket Button Visibility */
    .mobile-ticket-btn {
        display: inline-block;
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .agenda-item {
        flex-direction: column;
    }
    
    .agenda-image {
        width: 100%;
        height: 200px;
    }

    .agenda-details, 
    .aviso-card,
    .ticket-card {
        padding: 20px;
    }
}

/* Responsividade para logo com nome longo */
@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem;
    }
    .logo img {
        height: 35px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}
