/* =========================================
   1. RESETS E VARIÁVEIS GERAIS
   ========================================= */
:root {
    --primary: #f59e0b; /* Laranja/Amber */
    --primary-hover: #d97706;
    --dark: #111827; /* Fundo quase preto */
    --darker: #0f0f0f; /* Fundo preto */
    --gray: #9ca3af;
    --white: #e5e5e5;
    --font-main: 'Arial', sans-serif;
    --font-display: 'Impact', 'Haettenschweiler', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Essencial para layouts não quebrarem */
}

body {
    font-family: var(--font-main);
    background-color: var(--darker);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden; /* Evita rolagem lateral indesejada no corpo todo */
}

/* =========================================
   2. UTILITÁRIOS
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%; /* Garante que não estoure em telas pequenas */
}

.text-primary { color: var(--primary); }
.text-black { color: black; }
.text-white { color: white; }
.text-center { text-align: center; }
.bold { font-weight: bold; }
.hidden { display: none; }
.full-width { width: 100%; }

/* =========================================
   3. BOTÕES
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s;
    border: none;
    gap: 10px;
}

.btn:hover { transform: scale(1.05); }

.btn-primary {
    background-color: var(--primary);
    color: black;
    clip-path: polygon(10% 0, 100% 0, 100% 80%, 90% 100%, 0 100%, 0 20%);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline:hover { background: var(--primary); color: black; }

.btn-white {
    background: white;
    color: black;
    font-weight: bold;
    clip-path: polygon(5% 0, 100% 0, 100% 80%, 95% 100%, 0 100%, 0 20%);
}

/* Estilo para botões menores (usado no flyer) */
.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 30px; /* Arredondado padrão */
}

.link-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 10px;
    display: inline-block;
    text-decoration: none;
}

/* =========================================
   4. NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    padding: 15px 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: 2px;
}

.logo-sub {
    color: white;
    font-size: 0.8rem;
    display: block;
    font-family: var(--font-main);
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover, .highlight-text { color: var(--primary); }

.btn-nav {
    border: 1px solid var(--primary);
    padding: 8px 15px;
    border-radius: 4px;
}

.menu-toggle { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 3px; background: white; margin: 5px auto; }

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero-section {
    min-height: 100vh;
    height: auto; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: url('pit.jpeg') center/cover no-repeat fixed;
    padding-top: 120px; 
    padding-bottom: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.9));
}

.hero-content { position: relative; z-index: 1; }

.presenter-box {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.presenter-logo {
    height: 150px;
    width: auto;
    filter: drop-shadow(0px 0px 20px rgba(255, 255, 255, 0.5));
    transition: transform 0.3s ease; 
}

.presenter-logo:hover { transform: scale(1.05); }

.presenter-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: white;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.9;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.hero-slogan {
    font-size: 1.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: #ddd;
}

.hero-date {
    display: inline-block;
    border-top: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    padding: 10px 0;
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 40px;
}

.hero-title-sm { font-family: var(--font-display); font-size: 3rem; text-transform: uppercase; }

/* =========================================
   6. SEÇÕES GERAIS E LAYOUT
   ========================================= */
.section { padding: 80px 0; }
.bg-dark { background-color: #1a1a1a; }
.bg-darker { background-color: #0f0f0f; }

.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-family: var(--font-display); font-size: 3rem; text-transform: uppercase; }
.divider { width: 80px; height: 3px; background: var(--primary); margin: 20px auto; }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.no-gap { gap: 0; }
.align-start { align-items: start; }

/* =========================================
   7. BARRA DE PATROCÍNIO MASTER
   ========================================= */
.master-sponsor-bar {
    background-color: var(--primary);
    padding: 15px 0;
    border-bottom: 4px solid black;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    position: relative;
    z-index: 10;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sponsor-label {
    color: black;
    font-weight: bold;
    text-transform: uppercase;
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.master-logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(2px 2px 0px rgba(255,255,255,0.2));
}

/* =========================================
   NOVO: BARRA DE DOWNLOAD DO FLYER
   ========================================= */
.flyer-bar {
    background-color: #1a1a1a; /* Fundo escuro sutil para separar */
    padding: 30px 0;
    border-bottom: 1px solid #333;
}

.flyer-text {
    margin-bottom: 15px; 
    color: #ccc; 
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

/* =========================================
   8. ESTILOS DE BANDAS (ROCKER STYLE)
   ========================================= */
.day-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.day-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.line-through {
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    width: 100%;
}

.bands-grid {
    display: grid;
    /* Padrão para PC: Responsivo automático */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.rock-card {
    background: #222;
    border: 1px solid #333;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.rock-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
    border-color: var(--primary);
}

.rock-img-box {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.rock-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.5s ease;
}

.rock-card:hover .rock-img-box img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.rock-time {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary);
    color: black;
    padding: 5px 15px;
    font-weight: bold;
    font-family: var(--font-display);
    font-size: 1.2rem;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

.highlight-time { background: white; color: black; }

.rock-content { padding: 20px; text-align: left; }
.rock-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.rock-content p { color: #aaa; font-size: 0.9rem; margin-bottom: 15px; }

.btn-insta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s;
}
.btn-insta:hover { color: white; }

.highlight-card { border: 1px solid var(--primary); }

/* =========================================
   9. ROTA CULTURAL E ESTILO ROTA (CLASSE NOVA)
   ========================================= */
.bg-image-rota {
    position: relative;
    background: url('https://images.unsplash.com/photo-1595240292780-6925501309d7?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center/cover;
}
.overlay-dark { position: absolute; inset: 0; background: rgba(0,0,0,0.85); }
.relative { position: relative; }
.flex-row { display: flex; align-items: center; gap: 40px; }
.col-half { flex: 1; }

.rota-preview {
    background: rgba(255,255,255,0.05);
    border: 1px solid #333;
    padding: 40px;
}

/* CLASSE ROTA (Abaulada com Vinheta) */
.rota {
    display: inline-block;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.rota img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}
.rota::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Vinheta disfarçada */
    box-shadow: inset 0 0 80px rgba(0,0,0,0.9);
    border-radius: 30px;
    pointer-events: none;
}

/* =========================================
   10. GEMINI E CTA BOXES
   ========================================= */
.form-box { background: rgba(255,255,255,0.05); padding: 30px; border: 1px solid #333; }
.result-box { background: #1a1a1a; padding: 30px; border: 2px solid #333; min-height: 300px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: var(--primary); font-weight: bold; margin-bottom: 5px; text-transform: uppercase; font-size: 0.9rem; }
.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    background: #000;
    border: 1px solid #444;
    color: white;
    font-size: 1rem;
}

.cta-box { padding: 60px; text-align: left; }
.cta-box h3 { font-family: var(--font-display); font-size: 2rem; margin: 15px 0; }

/* =========================================
   11. SEÇÃO DE PATROCINADORES GERAIS
   ========================================= */
.sponsors-section { border-top: 1px solid #333; padding-bottom: 40px; }
.sponsor-tier { margin-bottom: 50px; text-align: center; }

.tier-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: inline-block;
    border-bottom: 2px solid;
    padding-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.text-gold { color: #FFD700; border-color: #FFD700; }
.text-silver { color: #C0C0C0; border-color: #C0C0C0; }
.text-bronze { color: #CD7F32; border-color: #CD7F32; }
.text-gray { color: #666; border-color: #666; }

.sponsor-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.sponsor-item {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.sponsor-item img {
    display: block;
    width: auto;
    max-width: 100%;
    /*filter: grayscale(100%) opacity(0.7);*/
    transition: all 0.3s ease;
}
.sponsor-item:hover { background: rgba(255,255,255,0.1); transform: scale(1.05); border-color: #444; }
.sponsor-item:hover img { filter: grayscale(0%) opacity(1); }

.gold-grid .sponsor-item img { height: 80px; }
.silver-grid .sponsor-item img { height: 60px; }
.bronze-grid .sponsor-item img { height: 45px; }

.participativo-list { color: #888; font-size: 0.9rem; line-height: 1.8; max-width: 800px; margin: 0 auto; }
.participativo-list span { color: #bbb; font-weight: bold; }

/* =========================================
   12. FORMULÁRIO DE CADASTRO
   ========================================= */
.bg-gradient { background: linear-gradient(45deg, #d97706, #f59e0b); }

.card-float {
    background: rgba(0,0,0,0.9);
    max-width: 500px;
    margin: 40px auto 0;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transform: rotate(-1deg); /* Estilo padrão Desktop */
    width: 100%;
    border-radius: 4px;
}

.warning-box {
    background-color: #ffd700;
    color: black;
    padding: 15px;
    border: 3px solid black;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 30px;
    box-shadow: 5px 5px 0px rgba(0,0,0,0.5);
    max-width: 90%;
}

.form-container-custom { text-align: left; padding: 30px; }

.mc-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-group.full { grid-column: span 2; }

.input-group label {
    display: block;
    color: #ccc;
    font-size: 0.8rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: bold;
}

.mc-form input, .mc-form textarea {
    width: 100%;
    padding: 12px;
    background: #222;
    border: 1px solid #444;
    color: white;
    font-family: var(--font-main);
    border-radius: 4px;
    box-sizing: border-box; 
}

.mc-form input:focus, .mc-form textarea:focus {
    border-color: var(--primary);
    outline: none;
    background: #000;
}

.status-msg { margin-top: 15px; font-weight: bold; text-align: center; }

/* =========================================
   13. ICONES E LOADER
   ========================================= */
.icon { width: 24px; height: 24px; fill: currentColor; }
.icon-md { width: 48px; height: 48px; }
.icon-lg { width: 64px; height: 64px; fill: #666; }
.icon-sm { width: 18px; height: 18px; fill: currentColor; }

.loader {
    border: 4px solid #333;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

footer { background: black; padding: 40px; text-align: center; border-top: 1px solid #222; color: #666; }

/* =========================================
   14. NOVO: SEÇÃO DE ORGANIZADORES
   ========================================= */
.organizers-bar {
    background: #000;
    padding: 40px 0;
    border-top: 1px solid #222;
}

.organizer-logo {
    height: 100px;
    width: auto;
    filter: grayscale(0%);
    transition: transform 0.3s;
}

.organizer-logo:hover {
    transform: scale(1.1);
}

/* =========================================
   15. RESPONSIVIDADE (MOBILE)
   ========================================= */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding-top: 120px;
        padding-bottom: 50px;
    }

    .hero-title { 
        font-size: 2.5rem; 
        margin-top: 10px;
    }

    .presenter-logo { height: 100px; }
    
    /* Layouts quebram para coluna */
    .grid-2, .flex-row { 
        grid-template-columns: 1fr;
        flex-direction: column; 
    }
    
    /* --- OTIMIZAÇÃO DAS SEÇÕES "CAMINHOS" E "DESCANSO" NO MOBILE --- */
    .cta-box { 
        padding: 20px 20px; /* Reduzi de 40px para 20px */
        text-align: center; /* Centraliza tudo no mobile */
    }

    .cta-box h3 {
        font-size: 1.5rem; /* Diminui o tamanho do título */
        margin: 10px 0;
    }

    .cta-box p {
        font-size: 0.9rem; /* Texto um pouco menor */
        margin-bottom: 10px;
    }

    .cta-box .icon-md {
        width: 36px; /* Ícone menor */
        height: 36px;
    }

    .master-logo { height: 40px; }
    .sponsor-label { font-size: 1rem; }
    .gold-grid .sponsor-item img { height: 60px; }
    
    .organizer-logo { height: 80px; }
    
    /* --- GRID DUPLO DE BANDAS NO MOBILE --- */
    .bands-grid {
        grid-template-columns: 1fr 1fr !important; /* Força 2 colunas */
        gap: 15px; /* Espaço menor entre os cards */
    }

    .rock-img-box {
        height: 140px; /* Imagem um pouco mais baixa */
    }
    
    .rock-content {
        padding: 10px; /* Menos espaçamento interno */
    }
    
    .rock-content h3 {
        font-size: 1.1rem; /* Fonte do nome da banda menor */
    }
    
    .rock-content p {
        font-size: 0.8rem; /* Descrição menor */
        line-height: 1.2;
        margin-bottom: 10px;
    }
    
    .rock-time {
        font-size: 0.9rem;
        padding: 2px 10px;
    }

    /* --- CORREÇÃO ROTA CULTURAL NO MOBILE (MUDANÇA SOLICITADA) --- */
    /* Centraliza o texto "RODE PELA HISTÓRIA" e os parágrafos */
    #rota .flex-row {
        text-align: center;
    }
    
    /* Diminui e estiliza a imagem da Rota para ficar estilo "Foto Polaróide" */
    #rota .rota {
        width: 80%; /* Reduz a largura para não ocupar a tela toda */
        max-width: 250px; /* Limite máximo */
        margin: 30px auto 0; /* Centraliza horizontalmente e dá espaço */
        
        /* Efeito visual interessante: Borda branca e leve inclinação */
        border: 10px solid white;
        box-shadow: 0 10px 25px rgba(0,0,0,0.6);
        border-radius: 4px;
    }
    
    #rota .rota img {
        border-radius: 0; /* Remove arredondamento interno para parecer foto */
    }

    /* --- CORREÇÃO DO FORMULÁRIO --- */
    .card-float {
        transform: none !important;
        margin: 20px -10px !important; 
        width: auto !important;
        max-width: none !important;
        padding: 0 !important; 
        box-shadow: none !important;
        border: 2px solid var(--primary); 
        border-radius: 10px !important;
    }

    .form-container-custom { 
        padding: 25px !important; 
    }

    .mc-form .form-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .input-group, .input-group.full {
        grid-column: span 1 !important;
        width: 100%;
    }
    
    .mc-form input, .mc-form textarea {
        padding: 8px !important;
    }

    .warning-box {
        flex-direction: column;
        text-align: center;
        font-size: 0.9rem;
        padding: 10px;
    }

    #submitBtn {
        clip-path: none !important;
        border-radius: 30px !important;
    }
}
