* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta neutra e clean */
    --primary-dark: #2c3e50;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #7a7a7a;
    --border-color: #e0e0e0;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #f5f5f5;
    --accent: #3498db;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
    min-height: 100vh;
}

/* Banner KV - Centralizado */
.kv-banner {
    width: 100%;
    background: transparent;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.kv-image {
    width: 100%;
    max-width: 720px;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* Container principal - Coluna centralizada com sombra */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
    background: var(--bg-white);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
    min-height: calc(100vh - 200px);
}

/* Navegação por abas */
.tabs-navigation {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--bg-white);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.tab-button {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 18px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    font-family: inherit;
    position: relative;
}

.tab-button:hover {
    background: var(--bg-light);
}

.tab-button.active {
    border-bottom-color: var(--primary-dark);
    background: transparent;
}

.tab-button.active .tab-dia {
    color: var(--primary-dark);
    font-weight: 700;
}

.tab-dia {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-medium);
    transition: all 0.2s ease;
}

.tab-data {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
}

/* Conteúdo das abas */
.tabs-content {
    position: relative;
    padding: 20px;
    min-height: 400px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Programação */
.programacao {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-programacao {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 18px;
    padding: 18px;
    background: var(--bg-light);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.item-programacao:hover {
    background: var(--bg-white);
    border-color: var(--primary-dark);
    box-shadow: var(--shadow);
}

.horario {
    display: flex;
    align-items: center;
    justify-content: center;
}

.horario-texto {
    display: inline-block;
    background: var(--primary-dark);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    letter-spacing: 0.5px;
}

.detalhes {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.atividade {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.4;
}

.local {
    font-size: 0.85rem;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.icon-local {
    color: var(--text-light);
    flex-shrink: 0;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px 20px;
    color: var(--text-light);
    font-size: 0.85rem;
    background: var(--bg-white);
}

/* RESPONSIVO - MOBILE */
@media (max-width: 768px) {
    .kv-banner {
        padding: 0;
    }

    .kv-image {
        border-radius: 0;
        box-shadow: none;
    }

    .container {
        box-shadow: none;
        min-height: auto;
    }

    .tabs-navigation {
        position: static;
    }

    .tab-button {
        padding: 16px 10px;
    }

    .tab-dia {
        font-size: 0.8rem;
    }

    .tab-data {
        font-size: 0.7rem;
    }

    .tabs-content {
        padding: 15px;
    }

    .item-programacao {
        grid-template-columns: 85px 1fr;
        gap: 15px;
        padding: 16px;
    }

    .horario-texto {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .atividade {
        font-size: 0.95rem;
    }

    .local {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .tab-button {
        padding: 14px 8px;
    }

    .tab-dia {
        font-size: 0.75rem;
    }

    .tab-data {
        font-size: 0.65rem;
    }

    .tabs-content {
        padding: 12px;
    }

    .item-programacao {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
    }

    .horario {
        justify-content: flex-start;
    }

    .horario-texto {
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    .atividade {
        font-size: 0.9rem;
    }

    .local {
        font-size: 0.75rem;
    }

    .footer {
        padding: 25px 15px 15px;
        font-size: 0.8rem;
    }
}

/* Print styles */
@media print {
    .kv-banner {
        max-height: 150px;
        overflow: hidden;
        padding: 0;
    }

    .container {
        box-shadow: none;
    }

    .tabs-navigation {
        display: none;
    }

    .tab-panel {
        display: block !important;
        page-break-inside: avoid;
    }

    .item-programacao {
        page-break-inside: avoid;
        box-shadow: none;
    }

    .item-programacao:hover {
        transform: none;
        box-shadow: none;
    }
}
