/* Variáveis de Cores */
:root {
    --ar-red: #981e32;
    --ar-dark: #121212;
    --ar-gray: #2a2a2a;
    --ar-light-gray: #e0e0e0;
    --ar-white: #ffffff;
    --ar-yellow: #ffcc00;
}

/* Reset e Estilos Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    background-color: var(--ar-dark);
    color: var(--ar-light-gray);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    padding-bottom: 250px; 
}

/* Header */
.ar-header {
    background-color: var(--ar-white);
    padding: 30px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.ar-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ar-logo {
    width: 50px;
    height: auto;
}

.ar-titles h1 {
    color: var(--ar-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.ar-titles h2 {
    color: var(--ar-red);
    font-size: 1.2rem;
    font-weight: 500;
}

.ar-nav {
    display: flex;
    gap: 20px;
}

.ar-nav a {
    color: var(--ar-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ar-nav a:hover {
    color: var(--ar-red);
}

.ar-nav a.selected {
    background-color: var(--ar-red);
    color: var(--ar-white);
}

/* Main Container */
.ar-main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px 60px; /* Padding inferior aumentado */
}

/* Hero Section */
.ar-hero {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
}

.ar-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.ar-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.7));
    z-index: 2;
}

.ar-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 40px 20px;
}

.ar-hero h1 {
    color: var(--ar-white);
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.ar-hero p {
    color: var(--ar-light-gray);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Quick Navigation */
.ar-quick-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.ar-quick-link {
    background-color: var(--ar-gray);
    color: var(--ar-white);
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.ar-quick-link:hover {
    background-color: var(--ar-red);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(152, 30, 50, 0.3);
}

/* Section Titles */
.ar-section-title {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    font-size: 1.8rem;
    color: var(--ar-white);
}

.ar-section-title span {
    position: relative;
    padding: 0 20px;
    background-color: var(--ar-dark);
    z-index: 2;
}

.ar-section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--ar-red);
    z-index: 1;
}

.ar-section-subtitle {
    text-align: center;
    color: var(--ar-light-gray);
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Seção de Dados */
.ar-data-section {
    background-color: var(--ar-gray);
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0;
}

.ar-table-container {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ar-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.ar-data-table th {
    background-color: var(--ar-red);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.ar-data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.ar-main-row {
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ar-main-roww {
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ar-main-row:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.ar-sub-row {
    display: none;
    background-color: rgba(0, 0, 0, 0.2);
}

.ar-sub-table {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--ar-red) var(--ar-gray);
}

.ar-sub-table::-webkit-scrollbar {
    width: 6px;
}

.ar-sub-table::-webkit-scrollbar-track {
    background: var(--ar-gray);
}

.ar-sub-table::-webkit-scrollbar-thumb {
    background-color: var(--ar-red);
    border-radius: 3px;
}
.ar-sub-table div {
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    font-size: 0.85rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.ar-sub-table div:hover {
    background-color: rgba(152, 30, 50, 0.3);
}

.ar-toggle-icon {
    transition: transform 0.3s ease;
    color: var(--ar-light-gray);
    font-size: 0.9rem;
}

.ar-total-row {
    background-color: rgba(152, 30, 50, 0.3);
    font-weight: 600;
}

.ar-total-row td {
    font-size: 1.1rem;
    padding: 15px;
}

/* Seção de Gráficos */
.ar-graph-section {
    background-color: var(--ar-gray);
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0;
}

.ar-graph-container {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 30px;
    margin-top: 20px;
}

.ar-graph-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--ar-light-gray);
    opacity: 0.7;
    text-align: center;
}

.ar-graph-placeholder i {
    margin-bottom: 20px;
    color: var(--ar-red);
    font-size: 3rem;
}

.ar-graph-placeholder p {
    max-width: 300px;
    line-height: 1.5;
}

.ar-graph-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.ar-tab-btn {
    background-color: var(--ar-gray);
    color: var(--ar-light-gray);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

.ar-tab-btn:hover {
    background-color: var(--ar-red);
    color: white;
}

.ar-tab-btn.active {
    background-color: var(--ar-red);
    color: white;
}

.ar-chart-wrapper {
    position: relative;
    height: 400px;
    width: 100%;
    margin: 0 auto;
}

.ar-legend-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.ar-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.ar-legend-color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
}

/* Galeria */
.ar-gallery {
    margin: 60px 0 40px; /* Margem inferior aumentada */
}

.ar-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 4fr));
    gap: 20px;
    margin-top: 30px;
}

.ar-gallery-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    padding-bottom: 75%; /* Proporção 4:3 */
    height: 0;
    transition: all 0.3s ease;
}

.ar-gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ar-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.ar-gallery-item:hover img {
    transform: scale(1.1);
}

.ar-generation-title {
    grid-column: 1 / -1;
    text-align: center;
    margin: 20px 0 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #981e32;
}

.ar-generation-title h3 {
    color: #981e32;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    margin: 0;
}

/* Footer */
.ar-footer {
    background-color: #1a1a1a;
    padding: 50px 0 0;
    margin-top: 60px;
    position: absolute; /* Alterado de absolute */
    width: 100%;
}

.ar-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.ar-footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.ar-footer-logo-img {
    width: 40px;
    height: auto;
}

.ar-footer-logo span {
    color: var(--ar-white);
    font-weight: 700;
    font-size: 1.2rem;
}

.ar-footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.ar-footer-column h3 {
    color: var(--ar-white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.ar-footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--ar-red);
}

.ar-footer-column a {
    display: block;
    color: var(--ar-light-gray);
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.ar-footer-column a:hover {
    color: var(--ar-red);
}

.ar-social-icons {
    display: flex;
    gap: 15px;
}

.ar-social-icons a {
    color: var(--ar-light-gray);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.ar-social-icons a:hover {
    color: var(--ar-red);
}

.ar-footer-bottom {
    background-color: #121212;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

.ar-footer-bottom p {
    color: var(--ar-light-gray);
    font-size: 0.8rem;
}

/* Responsividade */
@media (max-width: 1024px) {
    .ar-hero h1 {
        font-size: 2.5rem;
    }
    
    .ar-sub-table div {
        min-width: 120px;
        padding: 6px 15px;
    }
}

@media (max-width: 768px) {
    .ar-header {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }
    
    .ar-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .ar-hero {
        height: 250px;
    }
    
    .ar-hero h1 {
        font-size: 2rem;
    }
    
    .ar-hero p {
        font-size: 1rem;
    }
    
    .ar-quick-nav {
        flex-wrap: wrap;
    }
    
    .ar-data-table {
        font-size: 0.85rem;
    }
    
    .ar-data-table th, 
    .ar-data-table td {
        padding: 10px 8px;
    }
    
    .ar-sub-table {
        flex-direction: column;
        align-items: center;
    }
    
    .ar-sub-table div {
        width: 100%;
        max-width: 200px;
    }
    
    .ar-graph-container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .ar-hero {
        height: 200px;
    }
    
    .ar-hero h1 {
        font-size: 1.8rem;
    }
    
    .ar-section-title {
        font-size: 1.5rem;
    }
    
    .ar-quick-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .ar-data-table {
        font-size: 0.8rem;
    }
    
    .ar-data-table th, 
    .ar-data-table td {
        padding: 8px 6px;
    }
    
    .ar-footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    body {
        padding-bottom: 220px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ar-data-section, .ar-graph-section, .ar-gallery {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--ar-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--ar-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7a1728;
}

.ar-sub-table-detailed {
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.1);
}

.ar-detailed-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;  /* Importante para manter alinhamento */
}

.ar-detailed-table th {
    background-color: var(--ar-red);
    color: white;
    padding: 12px 15px;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.ar-detailed-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
    height: 60px;  /* Altura fixa para alinhamento */
}

.ar-detailed-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .ar-sub-table {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ar-sub-table div {
        padding: 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .ar-sub-table {
        width: 100%;
        grid-template-columns: 1fr;
    }
    
    .ar-sub-table div {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .ar-sub-table {
        width: 100%;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .ar-sub-table div {
        padding: 10px 12px;
        grid-template-columns: 1fr minmax(50px, auto); /* Garante espaço mínimo para números */
    }
}



