:root {
    --cfe-blue: #0f3c8c;
    --cfe-blue-dark: #020820;
    --cfe-blue-light: #1f68d6;
    --cfe-accent: #ffb347;
    --bg-light: #f4f7fb;
    --text-main: #101827;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background: #fff;
}

/* HEADER / NAVBAR */

/* Header sempre escuro, tipo barra fixa de clube */
.site-header {
    background: rgba(3, 12, 37, 0.97);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
    transition: background .25s ease, box-shadow .25s ease;
}

/* Ao fazer scroll podes só reforçar ligeiramente a sombra, se quiseres */
.site-header.scrolled {
    background: rgba(3, 12, 37, 0.97); /* mantém a mesma cor */
    box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
}

.site-header .navbar {
    padding-top: .5rem;
    padding-bottom: .5rem;
    background: transparent;
}

.navbar-brand .brand-text {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 600;
}

.logo-mini {
    height: 40px;
    width: auto;
    border-radius: 6px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .35);
}

.navbar-dark .navbar-nav .nav-link {
    font-size: .9rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #e5ecff;
    padding-left: .9rem;
    padding-right: .9rem;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: .25rem;
    height: 2px;
    background: var(--cfe-accent);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease-out;
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, .35);
}

/* HERO SECTION */

.page-wrapper {
    margin-top: 72px;
}

.hero-section {
    min-height: calc(100vh - 72px);
    background:
        radial-gradient(circle at top left, #2b74ff 0, #0b2b63 42%, #020820 85%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 62%);
    top: -40px;
    right: -120px;
    opacity: .7;
    pointer-events: none;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    padding: .3rem .9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .25);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    margin-bottom: 1rem;
    background: rgba(1, 9, 29, .4);
}

.hero-title {
    font-size: clamp(2.1rem, 2.8vw + 1rem, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-text {
    font-size: .98rem;
    max-width: 540px;
    color: #d8e4ff;
    margin-bottom: 1.5rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.8rem;
}

.hero-tags span {
    font-size: .78rem;
    border-radius: 999px;
    padding: .3rem .9rem;
    border: 1px solid rgba(255, 255, 255, .35);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 2rem;
}

.hero-btn {
    border-radius: 999px;
    padding: .7rem 1.4rem;
    font-weight: 500;
    background: var(--cfe-accent);
    color: #1e2636;
    border: none;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .4);
}

.hero-btn:hover {
    background: #ffc063;
    color: #020617;
}

.hero-btn-alt {
    border-radius: 999px;
    padding: .7rem 1.4rem;
    border-width: 1px;
    font-weight: 500;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    font-size: .8rem;
    color: #cfe0ff;
}

.hero-meta strong {
    display: block;
    font-size: 1rem;
    color: #fff;
}

/* HERO CARD */

.hero-right {
    position: relative;
}

.hero-card {
    position: relative;
    border-radius: 24px;
    background: linear-gradient(145deg, #102f72, #1f68d6);
    padding: 1.4rem 1.6rem 1.6rem;
    overflow: hidden;
}

.hero-card-logo img {
    height: 82px;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .6));
}

.hero-card-subtitle {
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: .7rem;
    color: #e1e9ff;
}

.hero-card-text {
    font-size: .84rem;
    color: #dbe6ff;
    margin-bottom: 1.1rem;
}

.hero-card-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1.1rem;
}

.hero-card-pills span {
    font-size: .72rem;
    border-radius: 999px;
    padding: .25rem .65rem;
    background: rgba(3, 15, 42, .6);
    border: 1px solid rgba(255, 255, 255, .22);
}

.hero-card-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem;
    font-size: .78rem;
    color: #d5e3ff;
}

.hero-card-label {
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    opacity: .8;
}

.hero-card-footer strong {
    font-size: .9rem;
}

.hero-card-accent {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 999px;
    border: 40px solid rgba(4, 13, 40, .45);
    right: -90px;
    bottom: -90px;
}

/* CARROSSEL */

.carousel-section {
    padding: 3rem 0;
    background: var(--bg-light);
}

.section-shadow {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
}

.carousel-banner {
    min-height: 260px;
    position: relative;
    color: #fff;
}

.banner-1 {
    background: linear-gradient(120deg, #0f3c8c, #1f68d6);
}

.banner-2 {
    background: linear-gradient(120deg, #1f68d6, #0f3c8c);
}

.banner-3 {
    background: linear-gradient(120deg, #020820, #0f3c8c);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, .12), transparent 55%);
    opacity: .85;
}

.banner-content {
    position: relative;
    padding: 2rem 2.5rem;
    max-width: 520px;
}

.banner-content h2 {
    font-size: 1.6rem;
    margin-bottom: .5rem;
}

.banner-content p {
    font-size: .95rem;
}

/* SECTIONS GENÉRICAS */

.section-block {
    padding: 4.5rem 0;
}

.section-light {
    background: #ffffff;
}

.section-dark {
    background: radial-gradient(circle at top, #111827, #020617 55%);
    color: #e5e7eb;
}

.section-contact {
    background: #f2f5ff;
}

.section-title {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: .75rem;
    color: var(--cfe-blue);
}

.section-dark .section-title {
    color: #ffffff;
}

.section-subtitle {
    font-size: .95rem;
    color: #6b7280;
    max-width: 620px;
}

.section-dark .section-subtitle {
    color: #9ca3af;
}

.section-heading {
    margin-bottom: 2.5rem;
}

/* QUEM SOMOS / HISTÓRIA */

.feature-grid {
    margin-top: 1.8rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}

.feature-item {
    display: flex;
    gap: .75rem;
}

.feature-icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(15, 60, 140, .08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    color: var(--cfe-blue);
    font-weight: 600;
}

.feature-item h3 {
    font-size: 1rem;
    margin-bottom: .25rem;
}

.feature-item p {
    font-size: .9rem;
    margin-bottom: 0;
}

.info-card {
    border-radius: 22px;
    padding: 1.8rem 1.9rem;
    background: linear-gradient(135deg, #0f3c8c, #1f68d6);
    color: #e5ecff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .25);
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.info-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1rem;
    font-size: .9rem;
}

.info-list li {
    margin-bottom: .5rem;
}

.info-note {
    font-size: .85rem;
    opacity: .9;
}

/* GALERIA */

.gallery-card {
    border-radius: 18px;
    background: #020617;
    overflow: hidden;
    position: relative;
    min-height: 180px;
}

.gallery-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5e7eb;
    font-size: .8rem;
    padding: 1rem;
    text-align: center;
    border: 1px dashed rgba(249, 250, 251, .4);
}

/* RESPONSÁVEIS */

.person-card {
    border-radius: 22px;
    padding: 2rem 1.8rem;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(148, 163, 184, .35);
    text-align: center;
}

.avatar-circle {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    margin: 0 auto 1rem;
    background: radial-gradient(circle at top, #f9fafb, #dbeafe);
    border: 3px solid #0f3c8c;
    color: #0f3c8c;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.person-name {
    font-size: 1.05rem;
    margin-bottom: .2rem;
}

.person-role {
    font-size: .85rem;
    color: #6b7280;
    margin-bottom: .75rem;
}

.person-text {
    font-size: .9rem;
}

/* CONTACTOS */

.contact-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0 2rem;
}

.contact-list li {
    display: flex;
    gap: .75rem;
    margin-bottom: .75rem;
    font-size: .9rem;
}

.contact-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(15, 60, 140, .12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.map-wrapper {
    border-radius: 18px;
    overflow: hidden;
    height: 260px;
    margin-top: 1rem;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-card {
    border-radius: 22px;
    padding: 1.9rem 2rem;
    background: #ffffff;
}

.contact-form .form-label {
    font-size: .8rem;
    font-weight: 500;
}

.contact-form .form-control {
    font-size: .85rem;
}

.contact-form .form-text {
    font-size: .78rem;
    color: #6b7280;
}

.btn-primary {
    background-color: var(--cfe-accent);
    border-color: var(--cfe-accent);
    color: #111827;
    border-radius: 999px;
}

.btn-primary:hover {
    background-color: #ffc063;
    border-color: #ffc063;
    color: #020617;
}

/* FOOTER */

.site-footer {
    background: #020617;
    color: #9ca3af;
    padding: 1.2rem 0 1.4rem;
    font-size: .8rem;
}

.site-footer .footer-note {
    color: #6b7280;
}

/* ANIMAÇÕES / REVEAL ON SCROLL */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .45s ease-out, transform .45s ease-out;
}

.reveal-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 3.5rem;
        padding-bottom: 3rem;
    }

    .hero-meta {
        margin-top: 1.5rem;
    }

    .hero-card {
        margin-top: 1.8rem;
    }

    .carousel-section {
        padding: 2.5rem 0;
    }
}

@media (max-width: 767.98px) {
    .navbar-brand .brand-text {
        font-size: .78rem;
    }

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

    .section-block {
        padding: 3.5rem 0;
    }

    .info-card {
        margin-top: .5rem;
    }
}
