/* Estilos gerais */
:root {
    --primary-color: #E30613; /* Vermelho da FABOM */
    --secondary-color: #333333; /* Cinza escuro */
    --accent-color: #808080; /* Cinza médio */
    --light-color: #f5f5f5;
    --dark-color: #222222;
    --font-primary: 'Arial', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--light-color);
}

/* Header */
header {
    background: linear-gradient(to right, var(--light-color), #e0e0e0);
    padding: 2rem;
    text-align: center;
    border-bottom: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.05) 0%, rgba(255, 255, 255, 0) 50%);
    z-index: 0;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.logo {
    height: 100px;
    object-fit: contain;
}

header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

header h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 3rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

section h2 {
    background-color: var(--primary-color);
    color: white;
    padding: 1.2rem 2rem;
    font-size: 1.5rem;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, rgba(255,255,255,0.3), rgba(255,255,255,0));
}

.content {
    padding: 2rem;
}

/* Seções específicas */
.parte, .beneficio {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

.parte:hover, .beneficio:hover {
    background-color: #f0f0f0;
}

.parte h3, .beneficio h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    border-bottom: 2px solid rgba(227, 6, 19, 0.2);
    padding-bottom: 0.5rem;
}

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Calculadora */
.calculator {
    background-color: #f9f9f9;
    padding: 1.8rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.calculator:hover {
    transform: scale(1.02);
}

.input-group {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
}

.input-group label {
    width: 220px;
    font-weight: bold;
    color: var(--secondary-color);
}

.input-group input {
    padding: 0.8rem;
    border: 1px solid var(--accent-color);
    border-radius: 6px;
    width: 180px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(227, 6, 19, 0.2);
}

.result {
    margin-top: 1.8rem;
    padding-top: 1.8rem;
    border-top: 2px solid rgba(227, 6, 19, 0.3);
}

.result h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

#valor-repasse {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.chart-container {
    height: 350px;
    margin-top: 2rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Tabela de investimento */
.investimento-resumo {
    margin: 2rem 0;
}

.investimento-resumo table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.investimento-resumo th, .investimento-resumo td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.investimento-resumo th {
    background-color: var(--primary-color);
    color: white;
}

.investimento-resumo tr:nth-child(even) {
    background-color: #f9f9f9;
}

.investimento-resumo tr:hover {
    background-color: #f1f1f1;
}

.investimento-resumo .total {
    font-weight: bold;
    background-color: #f0f0f0;
}

.investimento-resumo .total td {
    border-top: 2px solid var(--primary-color);
}

/* Observação */
.observacao {
    background-color: #f9f9f9;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 0 8px 8px 0;
}

.observacao p {
    font-style: italic;
}

/* Galeria de eventos */
.eventos-galeria {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
    justify-content: center;
}

.evento-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evento-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Container de vídeo */
.video-container {
    margin: 2rem 0;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-top: 5px solid var(--primary-color);
}

.video-link {
    margin-top: 1rem;
}

.video-link a {
    color: #fff;
    text-decoration: none;
    background-color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
    margin-top: 0.5rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.video-link a:hover {
    background-color: #ff1a2d;
    transform: translateY(-2px);
}

/* Responsividade */
@media (max-width: 768px) {
    .logo-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        height: 80px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header h2 {
        font-size: 1.5rem;
    }
    
    .input-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .input-group label {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .input-group input {
        width: 100%;
    }
    
    .eventos-galeria {
        flex-direction: column;
        align-items: center;
    }
}
