/* ============================================
   VARIÁVEIS E RESET
   ============================================ */

:root {
    --primary-dark: #1a2a4d;
    --primary-blue: #2c3e7f;
    --accent-gold: #d4a574;
    --accent-gold-dark: #b8915f;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --footer-bg: #6b4423;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

/* ============================================
   CONTAINER E LAYOUT
   ============================================ */

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

/* ============================================
   NAVEGAÇÃO
   ============================================ */

.navbar {
    background-color: var(--bg-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar-logo {
    display: flex;
    flex-direction: column;
    font-weight: bold;
}

.logo-text {
    font-size: 24px;
    color: var(--primary-dark);
    letter-spacing: 2px;
}

.logo-subtitle {
    font-size: 10px;
    color: var(--accent-gold);
    letter-spacing: 1px;
}

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

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-dark);
    margin: 5px 0;
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--accent-gold);
    font-weight: 300;
}

.hero-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 20px;
}

/* ============================================
   SEÇÕES
   ============================================ */

section {
    padding: 80px 20px;
}

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

.section-header h2 {
    font-size: 36px;
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.header-line {
    width: 80px;
    height: 4px;
    background-color: var(--accent-gold);
    margin: 0 auto;
    border-radius: 2px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

#about {
    background-color: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.about-info {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.about-info:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.about-info h3 {
    color: var(--accent-gold);
    margin-bottom: 15px;
    font-size: 18px;
}

.about-description {
    grid-column: 1 / -1;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.about-description h3 {
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.about-description p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   OBJECTIVES SECTION
   ============================================ */

#objectives {
    background-color: white;
}

.objectives-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.objective-general {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-gold);
}

.objective-general h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.objective-general p {
    color: var(--text-light);
    line-height: 1.8;
}

.objectives-specific {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
}

.objectives-specific h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-button {
    background-color: white;
    border: 2px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text-dark);
}

.tab-button:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.tab-button.active {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: white;
}

.tab-content {
    display: none;
}

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

.objectives-list {
    margin-left: 20px;
    color: var(--text-light);
}

.objectives-list li {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* ============================================
   TEAM SECTION
   ============================================ */

#team {
    background-color: var(--bg-light);
}

.team-section {
    margin-bottom: 50px;
}

.team-section h3 {
    color: var(--primary-dark);
    margin-bottom: 30px;
    font-size: 24px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.team-member {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.team-member:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.member-avatar {
    width: 60px;
    height: 60px;
    background-color: var(--accent-gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin: 0 auto 15px;
}

.team-member h4 {
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.team-member p {
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.6;
}

/* ============================================
   RESULTS SECTION
   ============================================ */

#results {
    background-color: white;
}

.results-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.result-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.result-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.result-card h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 20px;
}

.result-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.biomes-list {
    list-style: none;
    margin-left: 0;
}

.biomes-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    color: var(--text-light);
}

.biomes-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

.lineages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.lineage-group h4 {
    color: var(--accent-gold);
    margin-bottom: 15px;
    font-size: 16px;
}

.lineage-group ul {
    list-style: none;
    margin-left: 0;
}

.lineage-group li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 14px;
}

.lineage-group li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}

.methodology-list {
    list-style: none;
    margin-left: 0;
}

.methodology-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

.methodology-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-item {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid var(--accent-gold);
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.stat-item p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

#contact {
    background-color: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-info {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.6;
}

.contact-logos {
    grid-column: 1 / -1;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-logos h3 {
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.logo-item {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    color: var(--text-light);
    font-weight: 500;
    border: 2px solid var(--border-color);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--footer-bg);
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.footer p {
    margin: 5px 0;
    font-size: 14px;
}

/* ============================================
   ANIMAÇÕES
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        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;
        gap: 0;
    }

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

    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
        padding: 15px 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .navbar-container {
        height: 60px;
    }

    .logo-text {
        font-size: 20px;
    }

    .hero {
        padding: 60px 20px;
        min-height: 300px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-meta {
        font-size: 12px;
    }

    section {
        padding: 40px 20px;
    }

    .section-header h2 {
        font-size: 22px;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tab-button {
        flex: 1;
        min-width: 80px;
    }
}


/* ============================================
   IMAGENS - SEÇÕES DINÂMICAS
   ============================================ */

.about-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.image-item {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.image-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.image-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.image-item-small {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.image-item-small:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.image-item-small img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.img-contain {
    object-fit: contain !important;
    background-color: var(--bg-light);
}

.objectives-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.image-caption {
    padding: 10px;
    background-color: var(--bg-light);
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    margin: 0;
    border-top: 1px solid var(--border-color);
}

.image-ref {
    font-size: 11px;
    color: #999;
    margin: 5px 0 0 0;
}

/* ============================================
   TEAM MEMBER PHOTOS
   ============================================ */

.member-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    display: block;
}

.team-member {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.team-member:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.team-member h4,
.team-member p {
    padding: 0 15px;
}

.team-member h4 {
    padding-top: 15px;
    color: var(--primary-dark);
    margin-bottom: 5px;
    font-size: 14px;
}

.team-member p {
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.team-member p:last-child {
    padding-bottom: 15px;
}

/* ============================================
   RESULT IMAGES
   ============================================ */

.result-image {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.result-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: cover;
}

/* ============================================
   SPONSORS SECTION
   ============================================ */

.sponsors {
    background-color: var(--bg-light);
    padding: 80px 20px;
}

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

.sponsor-item {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.sponsor-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.sponsor-item img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
}

.sponsor-item .image-caption {
    background-color: transparent;
    border-top: none;
    padding: 0;
    margin-top: 10px;
}

/* ============================================
   RESPONSIVE - IMAGENS
   ============================================ */

@media (max-width: 768px) {
    .about-images-grid {
        grid-template-columns: 1fr;
    }

    .objectives-images {
        grid-template-columns: 1fr;
    }

    .sponsors-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }

    .sponsor-item {
        min-height: 200px;
    }

    .image-item img {
        height: 200px;
    }

    .member-photo {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .about-images-grid {
        grid-template-columns: 1fr;
    }

    .objectives-images {
        grid-template-columns: 1fr;
    }

    .sponsors-grid {
        grid-template-columns: 1fr;
    }

    .sponsor-item {
        min-height: 180px;
    }

    .image-item img {
        height: 150px;
    }

    .member-photo {
        height: 120px;
    }

    .image-caption {
        font-size: 10px;
    }
}


/* ============================================
   INTERNATIONAL TEAM WITH LOGOS
   ============================================ */

.team-grid-national {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.team-grid-international {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.international-member {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.member-with-logo {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: center;
}

.member-with-logo:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.member-with-logo h4 {
    padding: 15px 15px 5px 15px;
    color: var(--primary-dark);
    margin-bottom: 5px;
    font-size: 14px;
}

.member-with-logo p {
    padding: 0 15px 15px 15px;
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

.institution-logo {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.institution-logo:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.logo-img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
}

.institution-logo .image-ref {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 10px;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 5px;
    border-radius: 3px;
}

/* ============================================
   SPONSORS AND PARTNERS SECTIONS
   ============================================ */

.sponsors-subtitle {
    text-align: center;
    color: var(--primary-dark);
    margin: 30px 0 20px 0;
    font-size: 18px;
    font-weight: 600;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.partner-item {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.partner-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.partner-item img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}

.partner-item .image-ref {
    font-size: 10px;
    color: #999;
    margin: 0;
}

/* ============================================
   RESPONSIVE - INTERNATIONAL TEAM
   ============================================ */

@media (max-width: 1024px) {
    .team-grid-international {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }

    .partner-item {
        min-height: 120px;
    }

    .partner-item img {
        max-height: 80px;
    }
}

@media (max-width: 768px) {
    .team-grid-national {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .team-grid-international {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }

    .international-member {
        gap: 10px;
    }

    .institution-logo {
        min-height: 100px;
    }

    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }

    .partner-item {
        min-height: 100px;
        padding: 15px;
    }

    .partner-item img {
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    .team-grid-national {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .team-grid-international {
        grid-template-columns: 1fr;
    }

    .international-member {
        gap: 10px;
    }

    .member-photo {
        height: 120px;
    }

    .institution-logo {
        min-height: 80px;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .partner-item {
        min-height: 80px;
        padding: 10px;
    }

    .partner-item img {
        max-height: 50px;
    }

    .sponsors-subtitle {
        font-size: 16px;
    }
}