/* ==========================================================================
   VARIÁVEIS E RESET GERAL
   ========================================================================== */
:root {
    /* Paleta: Frio (Fundo) vs Calor (Ação) */
    --cold-bg-start: #f0f9ff;
    --cold-bg-end: #dbeafe;
    --cold-dark: #1e3a8a;

    --warm-primary: #ea580c;
    --warm-hover: #c2410c;
    --warm-accent: #dc2626;

    --text-main: #334155;
    --border-light: #dbeafe;

    /* Cores Regionais */
    --campinas: #dc2626;
    --ribeirao: #ea580c;
    --central: #ca8a04;
    --sul: #16a34a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: radial-gradient(circle at 50% 30%, var(--cold-bg-start), var(--cold-bg-end));
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   BACKGROUND ANIMADO DE INVERNO
   ========================================================================== */
.winter-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.winter-icon {
    position: absolute;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 15px rgba(191, 219, 254, 0.8), 0 0 5px rgba(255, 255, 255, 0.5);
    animation: floatIcon 25s infinite linear;
    opacity: 0.6;
}

.i1 {
    top: 10%;
    left: 5%;
    animation-duration: 28s;
    font-size: 3.5rem;
}

.i2 {
    top: 25%;
    left: 85%;
    animation-duration: 32s;
    font-size: 2.5rem;
}

.i3 {
    top: 65%;
    left: 10%;
    animation-duration: 24s;
    font-size: 3rem;
}

.i4 {
    top: 85%;
    left: 75%;
    animation-duration: 30s;
    font-size: 4rem;
}

.i5 {
    top: 45%;
    left: 50%;
    animation-duration: 35s;
    font-size: 2rem;
    opacity: 0.4;
}

@keyframes floatIcon {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    50% {
        transform: translateY(-30px) rotate(15deg) scale(1.05);
    }

    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

/* ==========================================================================
   NAVBAR E LOGO
   ========================================================================== */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 25px rgba(30, 58, 138, 0.08);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;

    text-decoration: none;
    height: 100%;
}

.logo-image {
    max-height: 50px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.03);
    /* Efeito suave ao passar o mouse */
}

.logo-icon-cold {
    color: #93c5fd;
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px #60a5fa);
    animation: pulseCold 3s infinite alternate ease-in-out;
}

.logo-icon-hot {
    color: #ea580c;
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px #f97316);
    animation: pulseHot 2s infinite alternate ease-in-out;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #64748b;
    font-weight: 700;
}

.logo-main {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--cold-dark);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.logo-main span {
    background: linear-gradient(to right, #ea580c, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes pulseCold {
    0% {
        opacity: 0.7;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes pulseHot {
    0% {
        opacity: 0.8;
        transform: scale(1);
        filter: drop-shadow(0 0 5px #f97316);
    }

    100% {
        opacity: 1;
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px #ea580c);
    }
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--warm-primary);
}

/* ==========================================================================
   BANNERS
   ========================================================================== */
.hero-banner-new {
    margin-top: 70px;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    display: block;
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ==========================================================================
   ESTRUTURA GERAL DAS SEÇÕES
   ========================================================================== */
.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
    flex-grow: 1;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--cold-dark);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-icon {
    color: var(--warm-primary);
    font-size: 2.2rem;
    filter: drop-shadow(0 4px 6px rgba(234, 88, 12, 0.2));
}

/* ==========================================================================
   COMPONENTES INDEX (PLACAR E ESTATÍSTICAS)
   ========================================================================== */
.stats-floater {
    max-width: 1000px;
    margin: -40px auto 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 45px;
    box-shadow: 0 30px 60px -15px rgba(30, 58, 138, 0.25);
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.big-number {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--cold-dark);
    line-height: 1;
    text-align: center;
}

.thermometer-wrapper {
    background: #e2e8f0;
    height: 36px;
    border-radius: 50px;
    margin: 35px 10px;
    position: relative;
    border: 1px solid #cbd5e1;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.thermometer-fill {
    height: 100%;
    width: 0%;
    border-radius: 50px;
    background: linear-gradient(90deg, #facc15 0%, #f97316 60%, #dc2626 100%);
    transition: width 2s cubic-bezier(0.2, 1, 0.2, 1);
    position: relative;
    box-shadow: 0 0 25px rgba(249, 115, 22, 0.5);
}

.thermometer-fill::after {
    content: '\f06d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: white;
    border: 4px solid var(--warm-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--warm-primary);
    font-size: 1.4rem;
    z-index: 5;
    box-shadow: 0 5px 15px rgba(234, 88, 12, 0.3);
    transition: transform 0.2s;
}

.thermometer-wrapper:hover .thermometer-fill::after {
    transform: translateY(-50%) scale(1.15);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border-radius: 18px;
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-label {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--cold-dark);
}

/* ==========================================================================
   COMPONENTES INDEX (SOBRE E INFORMAÇÕES)
   ========================================================================== */
.about-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 20px;
}

.prefeituras-card {
    background: white;
    border: 2px solid var(--warm-primary);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(234, 88, 12, 0.15);
}

.prefeituras-card h4 {
    color: var(--warm-primary);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.btn-inscrever {
    display: inline-block;
    background: var(--warm-primary);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(234, 88, 12, 0.3);
}

.btn-inscrever:hover {
    background: var(--warm-hover);
    transform: translateY(-3px);
}

.info-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-card {
    background: white;
    border-radius: 24px;
    padding: 35px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.info-card:hover {
    transform: translateY(-10px);
    border-color: var(--warm-primary);
    box-shadow: 0 20px 40px rgba(234, 88, 12, 0.1);
}

.info-icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--warm-primary);
    font-size: 2rem;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.15);
}

.info-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--cold-dark);
}

/* ==========================================================================
   COMPONENTES INDEX (FILTROS E CARDS DE CIDADES)
   ========================================================================== */
.filter-bar {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    background: white;
    padding: 25px;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

select {
    padding: 14px 24px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    font-family: 'Outfit';
    font-weight: 600;
    color: var(--text-main);
    min-width: 220px;
    cursor: pointer;
    transition: 0.3s;
}

select:hover,
select:focus {
    border-color: var(--warm-primary);
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.city-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-top: 6px solid var(--card-color);
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.city-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.card-header {
    padding: 25px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-region {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: white;
    background: var(--card-color);
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-city {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--cold-dark);
}

.card-body {
    padding: 30px;
    flex-grow: 1;
}

.info-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-content {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 25px;
    line-height: 1.6;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tag {
    font-size: 0.8rem;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.dia-d-box {
    background: #fff7ed;
    border: 2px dashed #fdba74;
    border-radius: 16px;
    padding: 20px;
}

.wa-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    text-align: center;
    background: #22c55e;
    color: white;
    padding: 18px;
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
}

.wa-button:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
}

.page-btn {
    padding: 12px 30px;
    border-radius: 50px;
    border: 2px solid #e2e8f0;
    background: white;
    cursor: pointer;
    font-weight: 700;
    color: #64748b;
    transition: 0.3s;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--warm-primary);
    color: var(--warm-primary);
    box-shadow: 0 5px 15px rgba(234, 88, 12, 0.2);
}

/* ==========================================================================
   COMPONENTES EXCLUSIVOS: ÁREA DAS PREFEITURAS (prefeituras.html)
   ========================================================================== */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
    margin-bottom: 50px;
}


.material-card {
    text-decoration: none;
    padding: 30px 25px;
    border-radius: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.material-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    filter: brightness(1.05);
}

.material-icon {
    font-size: 2.5rem;
    opacity: 0.9;
}

.material-content {
    display: flex;
    flex-direction: column;
}

.material-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    font-weight: 600;
}

.material-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.bg-campinas {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.bg-ribeirao {
    background: linear-gradient(135deg, #f97316, #c2410c);
}

.bg-central {
    background: linear-gradient(135deg, #eab308, #a16207);
}

.bg-sul {
    background: linear-gradient(135deg, #22c55e, #15803d);
}

.orientacoes-box {
    background: #fff;
    border-left: 5px solid #eab308;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
    line-height: 1.8;
    color: #475569;
}

.orientacoes-box h4 {
    color: #ca8a04;
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.orientacoes-box strong {
    color: var(--cold-dark);
}

.email-link {
    color: var(--warm-primary);
    font-weight: 700;
    text-decoration: none;
}

.email-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.intraep-footer {
    background: var(--cold-dark);
    padding: 60px 20px;
    text-align: center;
    border-top: 6px solid var(--warm-primary);
    margin-top: auto;
}

.logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.logos img {
    height: 40px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: 0.3s;
}

.logos img:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* ==========================================================================
   RESPONSIVIDADE (MEDIA QUERIES)
   ========================================================================== */
@media(max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media(max-width: 768px) {
    .nav-links {
        display: none;
    }

    .logo-container {
        transform: scale(0.9);
    }

    .logo-image {
        max-height: 40px;

    }

    .hero-banner-new {
        margin-top: 60px;
    }

    .section-container {
        padding: 40px 15px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .stats-floater {
        margin: 20px auto 0;
        padding: 20px;
        width: 95%;
        border-radius: 16px;
    }

    .big-number {
        font-size: 2.8rem;
    }

    .thermometer-wrapper {
        margin: 25px 0;
        height: 25px;
    }

    .thermometer-fill::after {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        right: -15px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 25px;
    }

    .stat-item {
        padding: 15px;
        border-radius: 12px;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .info-grid,
    .cards-grid,
    .materials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filter-bar {
        padding: 15px;
        gap: 10px;
    }

    select {
        width: 100%;
        min-width: 100%;
    }

    .card-header {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .card-city {
        font-size: 1.3rem;
    }

    .card-body {
        padding: 20px;
    }

    .logos {
        gap: 20px;
    }

    .logos img {
        height: 30px;
    }
}