/* ===== RESET E CONFIGURAÇÕES GERAIS ===== */
body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ===== HERO SECTION ===== */
.historia-hero {
    background: #002b80;
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.historia-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.historia-hero h1 i {
    color: #002b80;
    background: white;
    padding: 12px;
    border-radius: 50%;
    margin-right: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 300;
    position: relative;
}

.hero-summary {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ===== TÍTULOS ===== */
h2 {
    color: #002b80;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #002b80;
    border-radius: 2px;
}

h2 i {
    color: #002b80;
    margin-right: 12px;
    background: #f0f8ff;
    padding: 10px;
    border-radius: 50%;
}

/* ===== CONSTRUÇÃO DA HISTÓRIA ===== */
.history-construction {
    margin-bottom: 4rem;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.history-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 5px solid #2c3e50;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.history-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.history-card.highlight-card {
    border-left: 5px solid #002b80;
    background: white;
    box-shadow: 0 6px 25px rgba(0, 43, 128, 0.15);
}

.history-year {
    background: #2c3e50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    margin-bottom: 1rem;
    display: inline-block;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.highlight-card .history-year {
    background: #002b80;
}

.history-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #2c3e50;
    line-height: 1.4;
}

.history-list {
    padding-left: 1.3rem;
    margin-bottom: 1rem;
}

.history-list li {
    margin-bottom: 0.6rem;
    line-height: 1.6;
    color: #555;
    position: relative;
}

.history-list li::before {
    content: "•";
    color: #002b80;
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

.city-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
    justify-content: center;
}

.city-badge {
    background: #e7f4ff;
    color: #2c3e50;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 43, 128, 0.1);
}

.no-association {
    font-style: italic;
    color: #666;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid #eee;
    text-align: center;
}

/* ===== EX-PRESIDENTES COM PROTEÇÃO ===== */
.presidents-section {
    padding: 4rem 0;
    border-top: 1px solid #eaeaea;
    margin-top: 3rem;
    background: #f8fbff;
}

.presidents-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
    color: #555;
    line-height: 1.7;
    font-size: 1.15rem;
}

.presidents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.president-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.president-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #002b80;
}

.president-card:hover {
    transform: translateY(-5px);
    box-shadow:   10px 30px rgba(0, 0, 0, 0.12);
}

/* Container protegido para imagens */
.image-protection {
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.president-img {
    width: 200px;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    /* Proteções contra download otimizadas */
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    /* Propriedades de drag unificadas e corrigidas */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    user-drag: none;
    /* Prevenção de contexto */
    -webkit-context-menu: none;
    -moz-context-menu: none;
    context-menu: none;
}

.president-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #002b80;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.president-period {
    color: #0040b3;
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    background: #f0f8ff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
}

.president-desc {
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
    font-size: 0.95rem;
}

/* ===== EVOLUÇÃO DA MARCA COM PROTEÇÃO ===== */
.logo-evolution {
    padding: 4rem 0;
    border-top: 1px solid #eaeaea;
    margin-top: 3rem;
    background: white;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.logo-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.logo-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #002b80;
}

.logo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.logo-year {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #002b80;
    font-size: 1.2rem;
    background: #f0f8ff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: inline-block;
}

/* Container protegido para logos */
.logo-image-protection {
    position: relative;
    margin: 1rem 0;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.logo-img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border-radius: 8px;
    /* Proteções contra download otimizadas */
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    /* Propriedades de drag unificadas e corrigidas */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    user-drag: none;
    /* Prevenção de contexto */
    -webkit-context-menu: none;
    -moz-context-menu: none;
    context-menu: none;
}

.logo-name {
    font-weight: 700;
    margin: 1.2rem 0 0.8rem;
    color: #2c3e50;
    font-size: 1.2rem;
}

.logo-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
    text-align: left;
}

.logo-desc p {
    margin-bottom: 1rem;
}

.logo-desc strong {
    color: #002b80;
}

/* Explicação sobre mudança do nome */
.name-change-explanation {
    background: #f8fbff;
    padding: 2.5rem;
    border-radius: 16px;
    border-left: 5px solid #002b80;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.name-change-explanation h3 {
    color: #002b80;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    text-align: center;
    font-weight: 700;
}

.name-change-explanation p {
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== PROTEÇÕES GLOBAIS OTIMIZADAS ===== */
.protected-content {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.no-drag, .president-img, .logo-img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    user-drag: none;
}

/* Proteção adicional via JavaScript será necessária */
.protected-image {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-drag: none;
    user-drag: none;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1200px) {
    .history-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    .logos-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .history-grid {
        grid-template-columns: 1fr;
    }
    
    .presidents-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .logos-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .historia-hero {
        padding: 60px 0;
    }
    
    .historia-hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-summary {
        padding: 1.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .presidents-grid,
    .logos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .president-img {
        width: 180px;
        height: 220px;
    }
    
    .logo-img {
        width: 140px;
        height: 140px;
    }
    
    .history-card,
    .president-card,
    .logo-card {
        padding: 1.5rem;
    }
    
    .name-change-explanation {
        padding: 2rem 1.5rem;
    }
    
    .name-change-explanation h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .historia-hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .history-grid {
        grid-template-columns: 1fr;
    }
    
    .president-img {
        width: 160px;
        height: 200px;
    }
    
    .logo-img {
        width: 120px;
        height: 120px;
    }
    
    .city-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .city-badge {
        width: fit-content;
    }
}

/* Animações suaves */
.history-card,
.president-card,
.logo-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efeito de brilho nas imagens protegidas */
.image-protection::after,
.logo-image-protection::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.image-protection:hover::after,
.logo-image-protection:hover::after {
    opacity: 1;
}