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

        :root {
            --primary-blue: #1e3c72;
            --primary-red: #c41e3a;
            --dark-blue: #0f1f3d;
            --light-gray: #f8f9fa;
            --text-dark: #333;
            --text-light: #666;
        }

        html, body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: var(--text-dark);
            line-height: 1.6;
            overflow-x: hidden;
            width: 100%;
            max-width: 100vw;
            padding-top: 30px;
        }

        /* Animações de Scroll */
        .fade-in {
            opacity: 0;
            transform: translateY(50px);
            transition: opacity 0.8s ease, transform 0.8s ease;
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Scrollbar personalizado (vermelho) */
        :root {
            scrollbar-color: var(--primary-red) var(--light-gray);
            scrollbar-width: thin;
        }

        ::-webkit-scrollbar {
            width: 10px;
            height: 10px;
        }

        ::-webkit-scrollbar-track {
            background: var(--light-gray);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--primary-red);
            border-radius: 10px;
            border: 2px solid var(--light-gray);
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #9f182f;
        }

        .slide-left {
            opacity: 0;
            transform: translateX(-80px);
            transition: opacity 0.8s ease, transform 0.8s ease;
        }

        .slide-left.visible {
            opacity: 1;
            transform: translateX(0);
        }

        .slide-right {
            opacity: 0;
            transform: translateX(80px);
            transition: opacity 0.8s ease, transform 0.8s ease;
        }

        .slide-right.visible {
            opacity: 1;
            transform: translateX(0);
        }

        .scale-in {
            opacity: 0;
            transform: scale(0.85);
            transition: opacity 0.8s ease, transform 0.8s ease;
        }

        .scale-in.visible {
            opacity: 1;
            transform: scale(1);
        }

        /* Navegação */
        /* nav {
            background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
            padding: 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        } */

        nav {
            background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
            padding: 0;
            position: fixed;  /* MUDANÇA AQUI: de sticky para fixed */
            top: 0;
            left: 0;          /* ADICIONAR */
            right: 0;         /* ADICIONAR */
            width: 100%;      /* ADICIONAR */
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        }

        .nav-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
            position: relative;
        }

        .logo {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            top: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            color: white;
            font-size: 1.1rem;
            font-weight: bold;
            padding: 8px 28px;
            background: #ffffff;
            border-radius: 0 0 25px 25px;
            box-shadow: 0 8px 25px rgba(196, 30, 58, 0.5);
            z-index: 1001;
        }

        .logo img {
            animation: rotate 3s ease-in-out infinite;
        }

        .nav-menu {
            display: flex;
            list-style: none;
            gap: 5px;
            width: 100%;
            justify-content: space-between;
        }

        .nav-menu-left {
            display: flex;
            gap: 5px;
            padding-right: 150px;
        }

        .nav-menu-right {
            display: flex;
            gap: 5px;
            padding-left: 150px;
        }

        .nav-menu li a {
            color: white;
            text-decoration: none;
            padding: 25px 20px;
            display: block;
            transition: all 0.3s ease;
            border-bottom: 3px solid transparent;
        }

        .nav-menu li a:hover {
            background: rgba(255,255,255,0.1);
            border-bottom-color: var(--primary-red);
        }

        .nav-menu li a.active {
            background: rgba(255,255,255,0.2);
            border-bottom-color: var(--primary-red);
        }

        .menu-toggle {
            display: none;
            color: white;
            font-size: 1.8rem;
            cursor: pointer;
            padding: 10px;
            position: absolute;
            right: 20px;
            top: 1px;
            z-index: 1002;
        }

        /* Hero */
        /*.hero {
            background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-red) 100%);
            color: white;
            padding: 100px 20px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }*/
        
       .hero {
    color: white;
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f1f3d 0%, #1e3c72 50%, #c41e3a 100%);
    /*min-height: 600px;*/
    display: flex;
    align-items: center;
    justify-content: center;
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.8);
    animation: fadeInDown 1s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
    animation: fadeInUp 1s ease 0.3s both;
}

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

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 20px;
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 450px;
    }
    
    .hero h1 {
        font-size: 2.1rem;
    }
}

        .btn {
            padding: 15px 35px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            display: inline-block;
            cursor: pointer;
            border: none;
            font-size: 1rem;
        }

        .btn-primary {
            background: var(--primary-red);
            color: white;
            box-shadow: 0 5px 15px rgba(196, 30, 58, 0.4);
        }

        .btn-primary:hover {
            background: #a01830;
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(196, 30, 58, 0.6);
        }

        .btn-secondary {
            background: white;
            color: var(--primary-blue);
            box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
        }

        .btn-secondary:hover {
            background: var(--light-gray);
            transform: translateY(-3px);
        }

        /* Seções */
        section {
            padding: 80px 20px;
        }

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

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            color: var(--primary-blue);
            margin-bottom: 50px;
            position: relative;
            padding-bottom: 15px;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-red), var(--primary-red))!important;
        }

        /* Destaques */
        .highlights {
            background: var(--light-gray);
        }

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

        .highlight-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }

        .highlight-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        }

        .highlight-image {
            height: 200px;
            background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 4.4rem;
            color: white;
        }

        .highlight-content {
            padding: 25px;
        }

        .highlight-date {
            color: var(--primary-red);
            font-weight: 600;
            font-size: 0.9rem;
            margin-bottom: 10px;
        }

        .highlight-content h3 {
            color: var(--primary-blue);
            margin-bottom: 10px;
            font-size: 1.4rem;
        }

        .highlight-content p {
            color: var(--text-light);
            line-height: 1.6;
        }

        /* Patrocinadores */
        .sponsors {
            background: white;
            padding: 60px 20px;
            overflow: hidden;
        }

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

        .sponsors-wrapper {
            overflow: hidden;
            position: relative;
            margin-top: 40px;
            max-width: 100%;
        }

        .sponsors-wrapper::before,
        .sponsors-wrapper::after {
            content: '';
            position: absolute;
            top: 0;
            width: 100px;
            height: 100%;
            z-index: 2;
            pointer-events: none;
        }

        .sponsors-wrapper::before {
            left: 0;
            background: linear-gradient(to right, white, transparent);
        }

        .sponsors-wrapper::after {
            right: 0;
            background: linear-gradient(to left, white, transparent);
        }

        .sponsors-track {
            --sponsors-gap: 60px;
            display: flex;
            gap: var(--sponsors-gap);
            animation: scroll 10s linear infinite;
            width: max-content;
            padding: 8px 0;
            max-width: 100%;
            will-change: transform;
        }

        .sponsors-track:hover {
            animation-play-state: paused;
        }

        @keyframes scroll {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(calc(-50% - (var(--sponsors-gap) / 2)));
            }
        }

        .sponsor-item {
            flex-shrink: 0;
            width: 180px;
            height: 110px;
            display: flex;
            align-items: center;
            justify-content: center;            
            border-radius: 12px;
            padding: 20px;
            transition: all 0.3s ease;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        }

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

        .sponsor-logo img {
            max-width: 140px;
            max-height: 80px;
            object-fit: contain;
            display: block;
        }

        /* Base de Dados */
        .database-section {
            background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
            color: white;
            padding: 80px 20px;
        }

        .database-section .section-title {
            color: white;
        }

        .database-section .section-title::after {
            background: linear-gradient(90deg, var(--primary-red), white);
        }

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

        .database-card {
            background: rgba(255,255,255,0.1);
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255,255,255,0.2);
            border-radius: 15px;
            padding: 40px 30px;
            text-align: center;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .database-card:hover {
            background: rgba(255,255,255,0.15);
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.3);
        }

        .database-icon {
            font-size: 4rem;
            margin-bottom: 20px;
            display: block;
        }

        .database-card h3 {
            font-size: 1.5rem;
            margin-bottom: 15px;
        }

        .database-card p {
            opacity: 0.9;
            font-size: 1rem;
            margin-bottom: 25px;
        }

        .database-card .btn {
            background: var(--primary-red);
            color: white;
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.8);
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background: white;
            border-radius: 20px;
            width: 96%;
            max-width: 1220px;
            max-height: 80vh;
            overflow-y: auto;
            overflow-x: hidden;
            position: relative;
            animation: slideDown 0.4s ease;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .modal-header {
            background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
            color: white;
            padding: 25px;
            border-radius: 20px 20px 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border: 2px solid #fff;
        }

        .modal-header h2 {
            font-size: 2rem;
        }

        .close-modal {
            font-size: 2.5rem;
            cursor: pointer;
            background: none;
            border: none;
            color: white;
            transition: transform 0.3s ease;
        }

        .close-modal:hover {
            transform: rotate(90deg);
        }

        .modal-body {
            padding: 40px;
        }

        /* Modal aviso */
        .modal-aviso {
            max-width: 520px;
            padding: 40px 28px 40px;
            text-align: center;
            overflow: hidden;
            position: relative;
        }

        .modal-aviso h2 {
            color: var(--primary-blue);
            margin: 10px 0 12px;
        }

        .modal-aviso p {
            color: var(--text-light);
            margin-bottom: 18px;
        }

        .aviso-watermark {
            position: absolute;
            inset: 8%;
            background: url('../img/fkepa.png') center/60% no-repeat;
            opacity: 0.12;
            filter: grayscale(1);
            pointer-events: none;
        }



        .search-box {
            margin-bottom: 30px;
        }

        .search-box input {
            width: 100%;
            padding: 15px 20px;
            border: 2px solid var(--light-gray);
            border-radius: 50px;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .search-box input:focus {
            outline: none;
            border-color: var(--primary-blue);
            box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
        }

        .list-table {
            width: 100%;
            border-collapse: collapse;
            overflow-x: auto;
        }

        .list-table-wrapper {
            width: 100%;
            max-height: 360px; /* ~7 linhas */
            overflow-y: auto;
            overflow-x: hidden;
            margin-top: 12px;
        }

        .academy-logo {
            width: 70px;
            height: 70px;
            object-fit: cover;
            border-radius: 10px;
            border: 1px solid var(--light-gray);
        }

        .map-modal {
            max-width: 720px;
        }

        .map-modal .modal-header h2 {
            font-size: 1.25rem;
        }

        .map-modal iframe {
            width: 100%;
            height: 55vh;
            border: 0;
            border-radius: 14px;
        }

        .btn-address {
            background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
            color: white;
            border: none;
            padding: 8px 14px;
            border-radius: 10px;
            font-weight: 700;
            cursor: pointer;
            transition: opacity 0.2s ease, transform 0.2s ease;
        }

        .btn-address:hover {
            opacity: 0.9;
            transform: translateY(-1px);
        }

        .badge-status {
            display: inline-block;
            padding: 6px 10px;
            border-radius: 999px;
            font-weight: 700;
            font-size: 0.85rem;
            color: white;
        }
        .badge-status.active {
            background: #16a34a; /* verde */
        }
        .badge-status.inactive {
            background: #dc2626; /* vermelho */
        }


        .list-table th {
            background: var(--light-gray);
            padding: 15px;
            text-align: left;
            color: var(--primary-blue);
            font-weight: 600;
        }

        .list-table td {
            padding: 15px;
            border-bottom: 1px solid var(--light-gray);
        }

        .list-table tr:hover {
            background: var(--light-gray);
        }

        .list-table .loading-row td,
        .list-table .empty-row td {
            text-align: center;
            font-weight: 600;
            color: var(--primary-blue);
        }

        /* Calendário */
        .calendar {
            background: white;
        }

        .event-list {
            display: grid;
            grid-template-columns: repeat(2, minmax(300px, 1fr));
            gap: 12px;
        }

        .event-card {
            display: grid;
            grid-template-columns: 105px 1fr auto;
            gap: 12px;
            padding: 12px 14px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 3px 15px rgba(0,0,0,0.08);
            border-left: 5px solid var(--primary-red);
            transition: all 0.3s ease;
            align-items: center;
        }

        .event-card:hover {
            box-shadow: 0 5px 25px rgba(0,0,0,0.15);
            transform: translateX(5px);
        }

        .event-date {
            text-align: center;
            padding: 10px;
            background: var(--light-gray);
            border-radius: 8px;
        }

        .event-day {
            font-size: 1.85rem;
            font-weight: bold;
            color: var(--primary-blue);
            line-height: 1;
        }

        .event-month {
            font-size: 0.95rem;
            color: var(--primary-red);
            text-transform: uppercase;
            font-weight: 600;
        }

        .event-info h3 {
            color: var(--primary-blue);
            margin-bottom: 4px;
            font-size: 1.2rem;
        }

        .event-location {
            color: var(--text-light);
            display: flex;
            align-items: center;
            gap: 5px;
            margin-top: 2px;
        }

        .event-status {
            padding: 8px 20px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            white-space: nowrap;
        }

        .d-none { display: none !important; }

        .status-confirmado {
            background: #d4edda;
            color: #155724;
        }

        .status-inscricoes {
            background: #fff3cd;
            color: #856404;
        }

        .status-aberto {
            background: #d1fae5;
            color: #065f46;
        }

        /* Ranking */
        .ranking {
            background: var(--light-gray);
        }

        .ranking-filters {
            display: flex;
            gap: 12px;
            margin-bottom: 30px;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
        }

        .ranking-filters label {
            font-weight: 700;
            color: var(--dark-blue);
        }

        .ranking-select {
            padding: 14px 18px;
            padding-right: 52px;
            border: 2px solid transparent;
            background: linear-gradient(135deg, #f9fbff, #eef5ff) padding-box,
                        linear-gradient(135deg, var(--primary-blue), var(--dark-blue)) border-box;
            color: var(--dark-blue);
            border-radius: 14px;
            font-weight: 700;
            letter-spacing: 0.2px;
            min-width: 240px;
            box-shadow: 0 10px 26px rgba(0,0,0,0.08);
            transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
            appearance: none;
            background-image:
                linear-gradient(45deg, transparent 50%, var(--light-gray) 50%),
                linear-gradient(135deg, var(--primary-blue) 50%, transparent 50%),
                linear-gradient(135deg, var(--primary-blue), var(--primary-blue));
            background-position:
                calc(100% - 30px) calc(50% - 6px),
                calc(100% - 24px) calc(50% - 6px),
                calc(100% - 22px) 50%;
            background-size: 6px 6px, 6px 6px, 18px 18px;
            background-repeat: no-repeat;
            cursor: pointer;
        }

        .ranking-select:focus, .ranking-select:hover {
            outline: none;
            background: linear-gradient(135deg, #ffffff, #f3f7ff) padding-box,
                        linear-gradient(135deg, var(--primary-blue), var(--dark-blue)) border-box;
            box-shadow: 0 12px 30px rgba(37,99,235,0.16);
            transform: translateY(-1px);
        }

        .ranking-select:active {
            transform: translateY(0);
            box-shadow: 0 6px 16px rgba(37,99,235,0.14);
        }

        .ranking-select::-ms-expand {
            display: none;
        }

        .ranking-select option {
            font-weight: 600;
            color: #1c2b4a;
            background: #f7f9ff;
            padding: 10px 12px;
        }

        .ranking-select option:checked {
            background: linear-gradient(135deg, #e6f0ff, #d7e7ff);
            color: var(--dark-blue);
        }

        .ranking-table {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        }

        .ranking-table table {
            width: 100%;
            border-collapse: collapse;
        }

        .ranking-table th {
            background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
            color: white;
            padding: 20px;
            text-align: left;
            font-weight: 600;
        }

        .ranking-table td {
            padding: 18px 20px;
            border-bottom: 1px solid #eee;
        }

        .ranking-table tr:hover {
            background: var(--light-gray);
        }

        .rank-position {
            font-weight: bold;
            color: var(--primary-red);
            font-size: 1.2rem;
        }

        .rank-medal {
            font-size: 1.5rem;
            margin-right: 5px;
        }

        /* Documentos */
        .documents {
            background: white;
        }

        /* Galeria */
        .gallery {
            background: var(--light-gray);
        }

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

        .gallery-item {
            position: relative;
            overflow: hidden;
            border-radius: 14px;
            box-shadow: 0 6px 18px rgba(0,0,0,0.12);
            background: #fff;
            cursor: pointer;
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.4s ease;
            aspect-ratio: 4 / 3;
        }

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

        .gallery-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.6) 100%);
            display: flex;
            align-items: flex-end;
            justify-content: center;
            padding: 14px;
            color: white;
            font-weight: 700;
            letter-spacing: 0.3px;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        .gallery-item:hover .gallery-overlay {
            opacity: 0.95;
        }

        /* Lightbox Galeria */
        .gallery-lightbox {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 3000;
        }

        .gallery-lightbox.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .gallery-lightbox__backdrop {
            position: absolute;
            inset: 0;
            background: rgba(0,0,0,0.8);
            backdrop-filter: blur(6px);
        }

        .gallery-lightbox__content {
            position: relative;
            max-width: min(90vw, 1100px);
            max-height: 90vh;
            z-index: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
        }

        .gallery-lightbox__content img {
            width: 100%;
            height: auto;
            max-height: 75vh;
            object-fit: contain;
            border-radius: 12px;
            box-shadow: 0 12px 40px rgba(0,0,0,0.35);
        }

        .gallery-lightbox__caption {
            color: white;
            font-weight: 600;
            letter-spacing: 0.3px;
            text-align: center;
        }

        .gallery-lightbox__close {
            position: absolute;
            top: -14px;
            right: -14px;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: none;
            background: white;
            color: var(--dark-blue);
            font-size: 1.5rem;
            box-shadow: 0 8px 25px rgba(0,0,0,0.2);
            cursor: pointer;
        }

        .gallery-lightbox__close:hover {
            transform: translateY(-1px);
        }

        .doc-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            align-items: stretch;
        }

        .doc-card {
            background: var(--light-gray);
            padding: 30px;
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            transition: all 0.3s ease;
            border-top: 4px solid var(--primary-blue);
            min-height: 260px;
            height: 100%;
        }

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

        .doc-icon {
            font-size: 3rem;
            margin-bottom: 15px;
            color: var(--primary-red);
        }

        .doc-card h3 {
            color: var(--primary-blue);
            margin-bottom: 10px;
            font-size: 1.2rem;
        }

        .doc-card p {
            color: var(--text-light);
            font-size: 0.9rem;
            margin-bottom: 20px;
            flex: 1;
        }

        .doc-card .btn {
            margin-top: auto;
            width: 100%;
            max-width: 220px;
        }

/* Institucional */
.institutional {
            background: white;
        }

        .about-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            align-items: center;
            margin-bottom: 60px;
        }

.about-text {
            font-size: 1.1rem;
            line-height: 1.8;
            color: var(--text-dark);
        }

.about-text h3 {
            color: var(--primary-blue);
            margin-bottom: 20px;
            font-size: 1.8rem;
        }

.about-image {
    background: url('../img/about.jpeg') center center / cover no-repeat;
    height: 400px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}


        .diretoria {
            background: var(--light-gray);
            padding: 80px 0;
        }

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

        .diretoria-card {
            background: white;
            padding: 30px;
            border-radius: 12px;
            text-align: center;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        }

        .diretoria-photo {
            width: 110px;
            height: 110px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 15px;
            border: 4px solid var(--light-gray);
            box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        }

        .diretoria-card h4 {
            color: var(--primary-blue);
            margin-bottom: 10px;
            font-size: 1.3rem;
        }

        .diretoria-card .cargo {
            color: var(--primary-red);
            font-weight: 600;
            font-size: 0.9rem;
            margin-bottom: 5px;
        }

        .diretoria-card .nome {
            color: var(--text-light);
        }

        /* Filiação */
        .affiliation {
            background: white;
        }

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

        .step {
            text-align: center;
            padding: 30px;
            background: var(--light-gray);
            border-radius: 12px;
            position: relative;
        }

        .step-number {
            width: 60px;
            height: 60px;
            background: var(--primary-red);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            font-weight: bold;
            margin: 0 auto 20px;
        }

        .step h3 {
            color: var(--primary-blue);
            margin-bottom: 15px;
        }

        .step p {
            color: var(--text-light);
            line-height: 1.6;
        }

        /* Contato */
        .contact {
            background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
            color: white;
        }

        .contact .section-title {
            color: white;
        }

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

        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .contact-block {
            display: grid;
            grid-template-columns: 60px 1fr;
            gap: 14px;
            align-items: center;
            background: rgba(255,255,255,0.12);
            padding: 33px 18px;
            border-radius: 12px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.18);
        }

        .contact-icon {
            width: 60px;
            height: 60px;
            border-radius: 16px;
            background: rgba(255,255,255,0.18);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }

        .contact-block h3 {
            margin: 0 0 6px 0;
            color: #e8eeff;
        }

        .contact-block p {
            margin: 0;
            color: rgba(255,255,255,0.92);
            line-height: 1.5;
            font-size: 1rem;
        }

        .contact-block .social-links {
            display: flex;
            gap: 10px;
            margin-top: 6px;
        }

        .contact-block .social-links a {
            color: white;
            font-size: 1.2rem;
            width: 38px;
            height: 38px;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(255,255,255,0.18);
            border: 1px solid rgba(255,255,255,0.25);
            transition: transform 0.2s ease, background 0.2s ease;
            text-decoration: none;
        }

        .contact-block .social-links a:hover {
            transform: translateY(-2px);
            background: rgba(255,255,255,0.3);
        }

        .contact-form-card {
            background: white;
            padding: 28px;
            border-radius: 14px;
            box-shadow: 0 14px 32px rgba(0,0,0,0.15);
            border: 1px solid rgba(0,0,0,0.05);
            color: var(--dark-blue);
        }

        .contact-form-card h3 {
            color: var(--primary-blue);
            margin-bottom: 18px;
            text-align: center;
        }

        .contact-form-card form {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .contact-form-card .form-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 12px;
        }

        .contact-form-card input,
        .contact-form-card textarea {
            width: 100%;
            padding: 12px 14px;
            border-radius: 10px;
            border: 1px solid #e0e7ff;
            background: #f9fbff;
            font-size: 0.95rem;
            color: #1c2b4a;
            transition: all 0.2s ease;
        }

        .contact-form-card input:focus,
        .contact-form-card textarea:focus {
            outline: none;
            border-color: var(--primary-blue);
            box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
            background: #ffffff;
        }

        .contact-form-card textarea {
            resize: vertical;
            min-height: 120px;
        }

        .contact-form-card .form-actions {
            display: flex;
            gap: 10px;
            justify-content: space-between;
            flex-wrap: wrap;
            align-items: center;
        }

        .btn-whatsapp {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 16px;
            border-radius: 50px;
            background: #25d366; /* cor oficial WhatsApp */
            color: white;
            font-weight: 700;
            border: none;
            box-shadow: 0 8px 20px rgba(37,211,102,0.35);
            cursor: pointer;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .btn-whatsapp i {
            font-size: 1.2rem;
        }

        .btn-whatsapp:hover {
            filter: brightness(1.05);
            transform: translateY(-3px);
            box-shadow: 0 12px 28px rgba(37,211,102,0.35);
        }

        /* Footer */
        /* footer {
            position: relative;
            background: linear-gradient(180deg, #0f1f3d 0%, #0b1630 100%);
            color: white;
            padding: 55px 20px 25px;
            overflow: hidden;
            border-top: 4px solid var(--primary-red);
        }

        .footer-watermark {
            position: absolute;
            right: 20px;
            bottom: 12px;
            width: 140px;
            height: 140px;
            background: url('img/fkepa.png') center/contain no-repeat;
            opacity: 0.08;
            filter: grayscale(1);
            pointer-events: none;
        }

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

        .footer-section h3 {
            margin-bottom: 20px;
            color: var(--primary-red);
        }

        .footer-section ul {
            list-style: none;
        }

        .footer-section ul li {
            margin-bottom: 10px;
        }

        .footer-section a {
            color: rgba(255,255,255,0.8);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-section a:hover {
            color: white;
        }

        .social-links {
            display: flex;
            gap: 15px;
            font-size: 1.5rem;
        }

        .footer-bottom {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid rgba(255,255,255,0.1);
            color: rgba(255,255,255,0.7);
        } */

        /* Footer */
footer {
    position: relative;
    background: linear-gradient(180deg, #0f1f3d 0%, #0b1630 100%);
    color: white;
    padding: 55px 20px 25px;
    overflow: hidden;
    border-top: 4px solid var(--primary-red);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-red) 20%, 
        var(--primary-blue) 50%, 
        var(--primary-red) 80%, 
        transparent 100%
    );
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.footer-watermark {
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 480px;
    height: 480px;
    background: url('../img/fkepa.png') center/contain no-repeat;
    opacity: 0.08;
    filter: grayscale(1);
    pointer-events: none;
    transform: rotate(-15deg);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--primary-red);
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), transparent);
    border-radius: 2px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
    padding-left: 18px;
    position: relative;
}

.footer-section ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-size: 0.9rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: white;
    transform: translateX(5px);
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

.social-links {
    display: flex;
    gap: 15px;
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
}
        
        /* Filiações Oficiais */
.affiliations-section {
    background: white;
    padding: 60px 20px;
    border-top: 3px solid var(--light-gray);
}

.affiliations-section .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
}

.affiliations-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.affiliation-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: var(--light-gray);
    border-radius: 15px;
    transition: all 0.3s ease;
    min-height: 180px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.affiliation-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: white;
    border: 2px solid var(--primary-blue);
}

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

.affiliation-name {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 600;
    text-align: center;
}

/* Responsivo para logos de filiação */
@media (max-width: 768px) {
    .footer-watermark {
        width: 180px;
        height: 180px;
        right: -20px;
        bottom: -15px;
        transform: rotate(-15deg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .affiliations-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .affiliation-logo-item {
        min-height: 150px;
        padding: 20px 15px;
    }
    
    .affiliation-logo-item img {
        max-width: 100px;
        max-height: 80px;
    }
}

@media (max-width: 480px) {
    .affiliations-logos {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

        /* Responsivo */
        @media (max-width: 1024px) {
            .nav-menu-left {
                padding-right: 120px;
            }
            
            .nav-menu-right {
                padding-left: 120px;
            }
            
            .logo {
                padding: 15px 30px;
                font-size: 1rem;
            }
            
            .logo img {
                width: 60px;
            }
        }

        @media (max-width: 768px) {
            .menu-toggle {
                display: block;
                top: -6px; /* sobe o ícone no mobile */
            }

            nav {
                padding: 12px 0;
                min-height: 68px;
            }

            .nav-container {
                min-height: 44px;
            }

            .nav-menu {
                display: none;
                position: absolute;
                top: calc(100% + 10px); /* desce a lista para não colar no topo */
                left: 0;
                right: 0;
                background: var(--dark-blue);
                flex-direction: column;
                gap: 0;
                padding: 10px 0;
                box-shadow: 0 10px 20px rgba(0,0,0,0.3);
                z-index: 1500;
            }

            .nav-menu.active {
                display: flex;
            }

            .nav-menu-left,
            .nav-menu-right {
                flex-direction: column;
                width: 100%;
                gap: 0;
                padding: 0;
            }

            .nav-menu li a {
                padding: 15px 20px;
                width: 100%;
                border-bottom: 1px solid rgba(255,255,255,0.1);
                background: transparent;
            }

            .nav-menu li a.active {
                display: block;
                width: calc(100% - 16px); /* ocupa quase toda a largura, com respiro lateral */
                padding: 12px 14px;
                margin: 4px 8px;
                background: rgba(255,255,255,0.12);
                border-radius: 10px;
                border-bottom: 2px solid var(--primary-red); /* mantém a linha vermelha estilosa */
            }

            .logo {
                padding: 12px 25px;
                font-size: 0.9rem;
                border-radius: 0 0 20px 20px;
            }

            .logo img {
                width: 50px;
            }

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

            .hero p {
                font-size: 1.1rem;
            }

            .hero-buttons {
                flex-direction: column;
                align-items: center;
            }

            .section-title {
                font-size: 1.8rem;
            }

            .about-content {
                grid-template-columns: 1fr;
            }

            .about-image {
                height: 250px;
                font-size: 4rem;
            }

            /* Agenda: no mobile mostrar um card por linha e layout em coluna */
            .event-list {
                grid-template-columns: 1fr;
            }

            .event-card {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            /* Evita overflow lateral causado por animações de entrada em telas estreitas */
            .slide-left,
            .slide-right {
                transform: none !important;
            }

            /* Diretoria: manter respiro lateral e uma coluna no mobile */
            .diretoria-grid {
                grid-template-columns: 1fr;
                padding: 0 16px;
            }

            .diretoria-card {
                margin: 0 4px;
            }

            .event-status {
                align-self: flex-start;
            }

            .modal-content {
                width: 95%;
                max-height: 90vh;
            }

            .modal-header h2 {
                font-size: 1.5rem;
            }

            .modal-body {
                padding: 20px;
                overflow-x: hidden;
            }

            .list-table {
                font-size: 0.85rem;
                display: block;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            .list-table thead,
            .list-table tbody {
                display: table;
                width: 100%;
                table-layout: fixed;
            }

            .list-table th,
            .list-table td {
                padding: 10px 8px;
                word-wrap: break-word;
            }
        }

        @media (max-width: 480px) {
            .hero h1 {
                font-size: 2.1rem;
            }

            .hero {
                padding: 60px 20px;
            }

            .btn {
                padding: 12px 25px;
                font-size: 0.9rem;
            }

            .section-title {
                font-size: 1.5rem;
            }

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

            .highlight-image {
                height: 150px;
                font-size: 3rem;
            }

            .database-icon {
                font-size: 3rem;
            }

            .sponsor-item {
                width: 150px;
                height: 100px;
            }

            .sponsor-logo {
                font-size: 2rem;
            }

            .doc-icon {
                font-size: 2.5rem;
            }

            .logo {
                padding: 10px 20px;
                font-size: 0.8rem;
            }

            .logo img {
                width: 40px;
            }

            .database-grid,
            .doc-grid,
            .process-steps {
                grid-template-columns: 1fr;
            }
        }
