 /* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #1a5f7a;
    --secondary-color: #2d8b8b;
    --accent-color: #ff9a3c;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --text-color: #333;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent-color);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #e68a2e;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--primary-color);
}

.btn-primary:hover {
    background: #144c63;
}

/* Header */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero-historical {
    background: linear-gradient(rgba(26, 95, 122, 0.9), rgba(45, 139, 139, 0.9)), url('https://images.unsplash.com/photo-1515187029135-18ee286d815b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 180px 0 100px;
    margin-top: 80px;
}

.hero-historical h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-historical p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Editions Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -13px;
    background-color: white;
    border: 4px solid var(--accent-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.right::after {
    left: -13px;
}

.timeline-content {
    padding: 30px;
    background-color: white;
    position: relative;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.timeline-year {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.timeline-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-card {
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Speakers Section */
.speakers-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(209px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.speaker-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.speaker-card:hover {
    transform: translateY(-10px);
}

.speaker-img {
    height: 265px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
}

.speaker-img i {
    font-size: 4rem;
    color: #bbb;
}

.speaker-info {
    padding: 20px;
}

.speaker-info h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.speaker-info .company {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.speaker-info .topic {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sponsors Section */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.sponsor-item {
    height: 120px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.sponsor-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 70px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    bottom: 0;
    left: 0;
}

.footer-col p {
    margin-bottom: 15px;
    opacity: 0.8;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 15px;
    color: var(--accent-color);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Image Placeholder Styles */
.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #777;
    text-align: center;
    height: 100%;
    width: 100%;
    background-color: #f5f5f5;
    border: 2px dashed #ccc;
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #aaa;
}

/* Responsive Design */
@media (max-width: 992px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 18px;
    }
    
    .timeline-item.left, .timeline-item.right {
        left: 0;
    }
    
    .hero-historical h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-historical {
        padding: 150px 0 80px;
    }

    .hero-historical h1 {
        font-size: 2rem;
    }

    .hero-historical p {
        font-size: 1.1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .speakers-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .speakers-container {
        grid-template-columns: 1fr;
    }
    
    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* ============================================
   CORREÇÕES GERAIS PARA PÁGINA DE HISTÓRICO
============================================= */

/* Timeline - Correção para mobile */
@media (max-width: 992px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 18px;
    }
    
    .timeline-item.left, .timeline-item.right {
        left: 0;
    }
}

/* ============================================
   CORREÇÕES ESPECÍFICAS PARA 320px E ABAIXO
============================================= */

@media (max-width: 340px) {
    /* Ajustes gerais */
    body {
        font-size: 14px;
        overflow-x: hidden;
    }
    
    .container {
        width: 100%;
        padding: 0 10px;
    }
    
    section {
        padding: 40px 0;
    }
    
    /* Header */
    .header-container {
        padding: 12px 0;
        flex-wrap: wrap;
    }
    
    .logo {
        font-size: 1.2rem;
        flex: 1;
        min-width: 200px;
    }
    
    .logo small {
        font-size: 0.7rem;
    }
    
    /* Hero Section */
    .hero-historical {
        padding: 100px 0 50px;
        margin-top: 60px;
        background-attachment: scroll !important;
    }
    
    .hero-historical h1 {
        font-size: 1.6rem;
        line-height: 1.3;
        padding: 0 10px;
    }
    
    .hero-historical p {
        font-size: 0.95rem;
        padding: 0 5px;
    }
    
    /* Timeline */
    .timeline::after {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 50px;
        padding-right: 10px;
    }
    
    .timeline-item::after {
        left: 11px;
        width: 20px;
        height: 20px;
    }
    
    .timeline-content {
        padding: 20px 15px;
    }
    
    .timeline-year {
        font-size: 1.4rem;
    }
    
    .timeline-title {
        font-size: 1.2rem;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 25px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Speakers Section - CORREÇÃO DE IMAGENS */
    .speakers-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 25px;
    }
    
    .speaker-card {
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* Container para imagens dos preleitores - CORREÇÃO CRÍTICA */
    .speaker-img-container {
        height: 220px;
        width: 100%;
        overflow: hidden;
        position: relative;
        background-color: #f5f5f5;
    }
    
    .speaker-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }
    
    .speaker-img-placeholder {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
        background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    }
    
    .speaker-img-placeholder i {
        font-size: 3rem;
        margin-bottom: 15px;
        color: #aaa;
    }
    
    .speaker-info {
        padding: 18px;
    }
    
    .speaker-info h4 {
        font-size: 1.1rem;
    }
    
    .speaker-info .company {
        font-size: 0.9rem;
    }
    
    .speaker-info .topic {
        font-size: 0.85rem;
    }
    
    /* Gallery Section - CORREÇÃO DE IMAGENS */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 25px;
    }
    
    .gallery-item {
        height: 200px;
        width: 100%;
        max-width: 100%;
    }
    
    /* Container seguro para imagens da galeria */
    .gallery-img-container {
        width: 100%;
        height: 100%;
        overflow: hidden;
        position: relative;
    }
    
    .gallery-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .gallery-placeholder {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
        padding: 20px;
    }
    
    /* Sponsors Grid */
    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 25px;
    }
    
    .sponsor-item {
        height: 90px;
        padding: 15px;
    }
    
    .sponsor-placeholder {
        padding: 10px;
    }
    
    .sponsor-placeholder i {
        font-size: 1.5rem;
    }
    
    .sponsor-placeholder p {
        font-size: 0.8rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 0.9rem;
        margin: 5px 0;
    }
    
    /* Footer */
    footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
    }
}

/* ============================================
   CORREÇÕES PARA IMAGENS EM TODOS OS DISPOSITIVOS
============================================= */

/* Container seguro para todas as imagens */
.img-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Placeholder padrão */
.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #666;
    text-align: center;
    padding: 20px;
}

.img-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #aaa;
}

/* ============================================
   CORREÇÕES PARA DISPOSITIVOS 375px - 340px
============================================= */

@media (max-width: 375px) and (min-width: 341px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-historical h1 {
        font-size: 1.8rem;
    }
    
    .speaker-img-container {
        height: 240px;
    }
    
    .gallery-item {
        height: 220px;
    }
    
    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* ============================================
   PREVENÇÃO DE OVERFLOW HORIZONTAL
============================================= */

html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

* {
    box-sizing: border-box;
}

/* Container principal */
.sponsors-image-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 0;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    padding: 20px;
}

.speaker-img-container {
    height: 280px; /* Altura fixa para consistência */
    width: 100%; /* Ocupa 100% da largura disponível */
    overflow: hidden; /* Esconde qualquer parte que ultrapasse */
    position: relative;
    background-color: #f5f5f5;
    display: flex; /* Usa flexbox para centralizar */
    align-items: center; /* Centraliza verticalmente */
    justify-content: center; /* Centraliza horizontalmente */
}

.speaker-img {
    width: 100%; /* Ocupa toda a largura do container */
    height: 100%; /* Ocupa toda a altura do container */
    object-fit: cover; /* PREENCHER O CONTAINER COMPLETAMENTE */
    object-position: center; /* Centraliza o foco da imagem */
    display: block;
    min-width: 100%; /* Garante que nunca seja menor que o container */
    min-height: 100%; /* Garante que nunca seja menor que o container */
    transition: transform 0.5s ease;
}

/* Efeito hover - zoom suave */
.speaker-card:hover .speaker-img {
    transform: scale(1.05);
}

/* Imagem dos patrocinadores - TOTALMENTE RESPONSIVA */
.sponsors-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.sponsors-image:hover {
    transform: scale(1.01);
}

/* Fallback grid (aparece apenas se a imagem não carregar) */
.sponsors-fallback {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.sponsor-item {
    height: 120px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.sponsor-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.sponsor-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-align: center;
}

.sponsor-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.sponsor-placeholder p {
    font-size: 0.9rem;
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

/* ============================================
   RESPONSIVIDADE PARA DIFERENTES TELAS
============================================= */

/* Tablet (768px a 1024px) */
@media (max-width: 1024px) {
    .sponsors-image-container {
        max-width: 900px;
        padding: 15px;
    }
    
    .sponsors-fallback {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
    
    .sponsor-item {
        height: 110px;
        padding: 15px;
    }
}

/* Mobile Grande (576px a 767px) */
@media (max-width: 767px) {
    .sponsors-image-container {
        max-width: 100%;
        padding: 12px;
        margin-top: 30px;
        border-radius: 8px;
    }
    
    .sponsors-image {
        padding: 0;
    }
    
    .sponsors-fallback {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .sponsor-item {
        height: 100px;
        padding: 12px;
    }
    
    .sponsor-placeholder i {
        font-size: 1.7rem;
    }
    
    .sponsor-placeholder p {
        font-size: 0.85rem;
    }
}

/* Mobile Médio (425px a 575px) */
@media (max-width: 575px) {
    .sponsors-image-container {
        padding: 10px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    }
    
    .sponsors-fallback {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .sponsor-item {
        height: 90px;
        padding: 10px;
    }
    
    .sponsor-placeholder i {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .sponsor-placeholder p {
        font-size: 0.8rem;
    }
}

/* Mobile Pequeno (320px a 424px) */
@media (max-width: 424px) {
    .sponsors-image-container {
        padding: 8px;
        margin-top: 20px;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .section-title p {
        font-size: 0.9rem;
    }
    
    .sponsors-fallback {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .sponsor-item {
        height: 80px;
        padding: 8px;
    }
    
    .sponsor-placeholder i {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }
    
    .sponsor-placeholder p {
        font-size: 0.75rem;
    }
}

/* Mobile Muito Pequeno (até 319px) */
@media (max-width: 319px) {
    .sponsors-image-container {
        padding: 5px;
    }
    
    .sponsors-fallback {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .sponsor-item {
        height: 70px;
    }
    
    .sponsor-placeholder i {
        font-size: 1.2rem;
    }
    
    .sponsor-placeholder p {
        font-size: 0.7rem;
    }
}

/* ============================================
   DETECÇÃO DE IMAGEM QUEBRADA (JavaScript opcional)
============================================= */

/* Se quiser detectar automaticamente quando a imagem não carrega */
.sponsors-image.error {
    display: none;
}

.sponsors-image.error + .sponsors-fallback {
    display: grid;
}

/* ============================================
   ANIMAÇÃO DE CARREGAMENTO
============================================= */

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

.sponsors-image {
    animation: fadeIn 0.8s ease;
}

.sponsors-fallback {
    animation: fadeIn 0.5s ease;
}

/* ============================================
   OTIMIZAÇÃO PARA DIFERENTES PROPORÇÕES DE IMAGEM
============================================= */

/* Se sua imagem for muito alta (vertical) */
.sponsors-image.vertical {
    max-height: 600px;
    object-fit: contain;
}

/* Se sua imagem for muito larga (horizontal) */
.sponsors-image.horizontal {
    max-height: 400px;
    object-fit: contain;
}

/* Se sua imagem for quadrada */
.sponsors-image.square {
    max-height: 500px;
    object-fit: contain;
}

/* ============================================
   MELHORIAS DE ACESSIBILIDADE
============================================= */

.sponsors-image {
    /* Texto alternativo visível apenas para leitores de tela */
    font-size: 0;
}

.sponsors-image::after {
    content: attr(alt);
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   SUPORTE PARA IMAGENS DE ALTA RESOLUÇÃO
============================================= */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .sponsors-image {
        /* Para telas retina, a imagem já será nítida se for de alta resolução */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ============================================
   ANIMAÇÕES SUAVES PARA IMAGENS
============================================= */

.speaker-img, .gallery-img {
    transition: transform 0.3s ease;
}

.speaker-card:hover .speaker-img,
.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}
