/* ══════════════════════════════════════════════════════════
   Homepage — Estilos principais
   Tema: [Nome do Tema]
══════════════════════════════════════════════════════════ */

:root {
    --primary:    #00467f;
    --accent:     #faa635;
    --text:       #34495e;
    --text-light: #6b7f93;
    --bg:         #f7f9fc;
    --white:      #ffffff;
    --border:     #e4ebf2;
    --radius:     14px;
    --radius-lg:  22px;
    --shadow-sm:  0 2px 12px rgba(0,70,127,.07);
    --shadow-md:  0 8px 32px rgba(0,70,127,.12);
    --shadow-lg:  0 20px 60px rgba(0,70,127,.16);
    --transition: .3s cubic-bezier(.4,0,.2,1);
}

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

.financiamento {
        max-width: 1440px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    .wrapper-fin {
            display: flex;
    font-size: 10px;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: #fff;
    padding: 5px 20px;
    border-radius: 14px;

        .cofinanciado {
            width: 120px;
            display: flex;
            align-items: center;
        }
    }
    a {
        display: flex;
    }
}

body {
    
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

/* ── UTILITIES ─────────────────────────────────────── */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-tag {
    display: inline-block;
    
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(250,166,53,.1);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 14px;
}

.section-title {
    
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.15;
}

.section-sub {
    color: var(--text-light);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.7;
    margin-top: 10px;
}

/* ══════════════════════════════════════════════════════
   SECTION 1 — HERO SLIDER
══════════════════════════════════════════════════════ */
.hero-slider-section {
    position: relative;
    height: 88vh;
    min-height: 560px;
    max-height: 820px;
    overflow: hidden;
    background: var(--primary);
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-swiper .swiper-slide {
    position: relative;
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    transition: transform 8s ease;
    filter: brightness(.45) saturate(1.1);
}

.swiper-slide-active .slide-bg {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(0,35,65,.92) 0%,
        rgba(0,55,100,.72) 40%,
        rgba(0,70,127,.18) 75%,
        transparent 100%
    );
    z-index: 1;
}

.slide-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
}

.slide-inner {
    max-width: 620px;
    padding: 0 0 0 80px;
    animation: slideUp .8s cubic-bezier(.4,0,.2,1) both;
}

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

.swiper-slide-active .slide-inner {
    animation-play-state: running;
}

.slide-badge {
    display: inline-block;
    
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1.5px solid rgba(250,166,53,.4);
    padding: 5px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
    backdrop-filter: blur(6px);
}

.slide-title {
    
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.18;
    margin-bottom: 28px;
}

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

.slide-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    
    font-size: .92rem;
    font-weight: 500;
    border-radius: 100px;
    padding: 13px 28px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: #e8941e;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(250,166,53,.45);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.5);
    backdrop-filter: blur(6px);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,.12);
    transform: translateY(-2px);
}

/* Swiper navigation */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,.12);
    border-radius: 50%;
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255,255,255,.2);
    transition: var(--transition);
    color: #fff;
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
    font-size: .9rem;
    font-weight: 700;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.hero-swiper .swiper-pagination-bullet {
    background: rgba(255,255,255,.5);
    opacity: 1;
    width: 8px;
    height: 8px;
    transition: var(--transition);
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--accent);
    width: 28px;
    border-radius: 4px;
}

/* ══════════════════════════════════════════════════════
   SECTION 2 — KPIs
══════════════════════════════════════════════════════ */
.kpi-section {
    padding: 90px 0;
    background: var(--white);
    position: relative;
}

.kpi-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.kpi-header {
    margin-bottom: 60px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.kpi-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.kpi-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.kpi-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.kpi-card:hover::after {
    transform: scaleX(1);
}

.kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(0,70,127,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.kpi-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--primary);
}

.kpi-value {
    
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
}

.kpi-value[data-target] { opacity: 0; }
.kpi-value.counted      { opacity: 1; }

.kpi-label {
    font-size: .88rem;
    color: var(--text-light);
    font-weight: 400;
    letter-spacing: .02em;
}

/* ══════════════════════════════════════════════════════
   SECTION 3 — ÁREAS DE FORMAÇÃO
══════════════════════════════════════════════════════ */
.areas-section {
    padding: 90px 0 100px;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.areas-section::before {
    content: '';
    position: absolute;
    top: -180px; right: -180px;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(250,166,53,.08) 0%, transparent 70%);
    pointer-events: none;
}

.areas-header {
    margin-bottom: 52px;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.area-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 26px 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: var(--transition);
}

.area-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(250,166,53,.3);
}

.area-card:hover::before {
    transform: scaleY(1);
}

.area-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(250,166,53,.1);
    color: var(--accent);
    
    font-size: .78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.area-card:hover .area-num {
    background: var(--accent);
    color: #fff;
}

.area-name {
    
    font-size: .9rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
    transition: var(--transition);
}

.area-card:hover .area-name {
    color: var(--primary);
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .areas-grid { grid-template-columns: repeat(3, 1fr); }
    .kpi-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .slide-inner { padding-left: 32px; padding-right: 32px; }
    .areas-grid  { grid-template-columns: repeat(2, 1fr); }
    .kpi-grid    { grid-template-columns: repeat(2, 1fr); }
    .hero-slider-section { height: 70vh; }
}

@media (max-width: 480px) {
    .areas-grid     { grid-template-columns: 1fr; }
    .kpi-grid       { grid-template-columns: 1fr; }
    .slide-inner    { padding-left: 20px; padding-right: 20px; }
    .slide-actions  { flex-direction: column; }
    .btn            { justify-content: center; }

    .financiamento {
        .wrapper-fin {
            font-size: 9px;
            line-height: 14px;
        }
        img {
            max-width: 120px;
            height: auto;
        }
    }
}