/* ========================= */
/* FONTES                    */
/* ========================= */

@font-face {
    font-family: 'Quicksand';
    src: url('src/fontes/Quicksand-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
}

@font-face {
    font-family: 'Itim';
    src: url('src/fontes/Itim-Regular.otf') format('opentype');
}

/* ========================= */
/* ROOT / TOKENS             */
/* ========================= */

:root {
    --gold:       #E8A31F;
    --gold-dark:  #C98A0F;
    --gold-light: #F5C55A;
    --gold-pale:  rgba(232,163,31,0.10);
    --gold-glow:  rgba(232,163,31,0.28);
    --gold-icon: #EBAF31;

    --blue:       #083B78;
    --blue-mid:   #0D4E9F;
    --blue-light: #1A6DC4;

    --text:       #16304f;
    --text-muted: #50657d;
    --text-faint: #8fa5bc;

    --white:      #ffffff;
    --bg:         #fffdf8;
    --bg-card:    rgba(255,255,255,0.72);

    --radius-sm:  10px;
    --radius-md:  18px;
    --radius-lg:  28px;
    --radius-xl:  40px;

    --shadow-sm:  0 4px 16px rgba(8,59,120,0.06);
    --shadow-md:  0 12px 36px rgba(8,59,120,0.10);
    --shadow-lg:  0 24px 60px rgba(8,59,120,0.14);
    --shadow-gold: 0 16px 48px rgba(232,163,31,0.28);
}

/* ========================= */
/* RESET                     */
/* ========================= */

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

html {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    width: 100%;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: 'Quicksand', sans-serif;
    position: relative;
    min-height: 100vh;
    /* SEM padding-top global — cada página define o seu */
    cursor: url("src/imagens/cursor.svg") 10 10, auto;
}

/* Classe adicionada via JS apenas na index (header fixo) */
body.has-fixed-header {
    padding-top: 80px;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }

/* Font Awesome icon sizing inside icon containers */
.pillar-icon i,
.card-icon i,
.channel-icon i,
.detail-icon i,
.map-placeholder i {
    font-size: 1.1em;
    color: var(--gold-dark);
}

/* ========================= */
/* CURSOR                    */
/* ========================= */

a, button, .btn-primary, .btn-secondary, .menu-toggle, [role="button"] {
    cursor: url("src/imagens/cursor.svg") 10 10, pointer;
}

/* ========================= */
/* SCROLLBAR                 */
/* ========================= */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 999px;
}

/* ========================= */
/* BACKGROUND DECORATIONS    */
/* ========================= */

.bg-glow {
    position: fixed;
    width: 860px;
    height: 860px;
    top: -320px;
    right: -220px;
    z-index: 0;
    background: radial-gradient(circle, rgba(232,163,31,0.16) 0%, transparent 68%);
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1);    opacity: 1;    }
    50%       { transform: scale(1.1); opacity: 0.75; }
}

.doodles {
    position: fixed;
    inset: 0;
    background-image: url("src/imagens/doodles.png");
    background-size: 680px;
    opacity: 0.055;
    pointer-events: none;
    z-index: 0;
}

/* ========================= */
/* HEADER                    */
/* ========================= */

.header {
    width: 100%;
    padding: 0 90px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background 0.4s, box-shadow 0.4s;
}

.header.scrolled {
    background: rgba(255,253,248,0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 2px 24px rgba(8,59,120,0.07);
}

/* FIX: link que envolve a logo usa flex para não cortar a imagem */
.header > a:first-child {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

.logo-top {

    height: 58px;
    width: auto;

    display: block;

    object-fit: contain;
}
.logo-top:hover { opacity: 0.7; }

/* ========================= */
/* NAV                       */
/* ========================= */

.nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav a {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.3px;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.25s;
}

.nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--gold);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.nav a:hover { color: var(--gold-dark); }
.nav a:hover::after { width: 100%; }

/* ========================= */
/* BUTTONS                   */
/* ========================= */

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 30px;
    border-radius: var(--radius-md);
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    outline: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s;
}

.btn-primary {
    background: var(--gold);
    color: white;
    box-shadow: var(--shadow-gold);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -130%;
    width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.32), transparent);
    transition: left 0.7s ease;
}
.btn-primary:hover::before { left: 130%; }
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 50px rgba(232,163,31,0.38);
}
.btn-primary:active { transform: translateY(-1px); }

.btn-secondary {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    color: var(--text);
    border: 1.5px solid rgba(8,59,120,0.09);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(232,163,31,0.3);
}

/* ========================= */
/* BADGES / TAGS             */
/* ========================= */

.badge, .error-tag, .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gold-pale);
    color: var(--gold-dark);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border: 1px solid rgba(232,163,31,0.18);
}

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

.hero {
    width: 100%;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 60px 90px 0;
    position: relative;
    z-index: 2;
}

.hero-content {
    width: 52%;
    max-width: 640px;
}

.badge { margin-bottom: 32px; }

.hero-content h1 {
    font-size: clamp(2.8rem, 4.5vw, 5rem);
    line-height: 1.04;
    color: var(--blue);
    font-weight: 800;
    margin-bottom: 28px;
    letter-spacing: -0.5px;
}

.hero-content h1 .highlight {
    color: var(--gold);
    position: relative;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.95;
    color: var(--text-muted);
    margin-bottom: 46px;
    max-width: 520px;
}

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

/* ========================= */
/* HERO IMAGE                */
/* ========================= */

.hero-image {
    width: 48%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    overflow: visible;
    isolation: isolate;
    margin-bottom: -2px;
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 640px; height: 640px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(232,163,31,0.22) 0%, rgba(232,163,31,0.08) 30%, transparent 70%);
    filter: blur(32px);
    z-index: 0;
}

.hero-image img {
    width: 100%;
    max-width: 580px;
    position: relative;
    z-index: 2;
    transform: translateY(2px);
    filter: drop-shadow(0 30px 50px rgba(0,0,0,0.13));
    animation: floatImage 5s ease-in-out infinite;
}

@keyframes floatImage {
    0%,100% { transform: translateY(2px);  }
    50%      { transform: translateY(-12px); }
}

/* ========================= */
/* STATS BAR                 */
/* ========================= */

.stats-bar {
    position: relative;
    z-index: 3;
    width: calc(100% - 180px);
    max-width: 1060px;
    margin: 0 auto;
    margin-top: -30px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border: 1px solid rgba(232,163,31,0.12);
}

.stat-item {
    padding: 34px 40px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}

.stat-bg-icon {
    position: absolute;
    right: -10px;
    bottom: -20px;

    width: 125px;
    height: 125px;

    opacity: 0.08;
    z-index: 0;

    pointer-events: none;

    filter: brightness(0) saturate(100%) invert(75%) sepia(94%) saturate(900%) hue-rotate(1deg);

}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0; top: 24px; bottom: 24px;
    width: 1px;
    background: rgba(8,59,120,0.08);
}

.stat-item:hover { background: rgba(232,163,31,0.04); }

.stat-number {
    font-family: 'Itim', cursive;
    font-size: 2.6rem;
    color: var(--gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.4px;
}

/* ========================= */
/* SECTIONS COMMON           */
/* ========================= */

section {
    position: relative;
    z-index: 2;
}

.section-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 90px;
}

.section-header {
    margin-bottom: 64px;
}

.section-header .section-tag { margin-bottom: 20px; }

.section-header h2 {
    font-size: clamp(2rem, 3.2vw, 3rem);
    color: var(--blue);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.3px;
    margin-bottom: 18px;
}

.section-header p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-muted);
    max-width: 560px;
}

/* ========================= */
/* SOBRE                     */
/* ========================= */

.sobre {
    padding: 120px 0 100px;
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.sobre-visual {
    position: relative;
}

.sobre-image-wrap {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(232,163,31,0.14) 0%, rgba(8,59,120,0.08) 100%);
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.sobre-image-wrap img {
    width: 85%;
    animation: floatImage 6s ease-in-out infinite;
}

.sobre-badge-float {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 26px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(232,163,31,0.14);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sobre-badge-float strong {
    font-family: 'Itim', cursive;
    font-size: 2rem;
    color: var(--gold);
    line-height: 1;
}

.sobre-badge-float span {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
}

.sobre-text { display: flex; flex-direction: column; gap: 28px; }

.sobre-text h2 {
    font-size: clamp(1.9rem, 2.8vw, 2.7rem);
    color: var(--blue);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.3px;
}

.sobre-text p {
    font-size: 1.03rem;
    line-height: 2;
    color: var(--text-muted);
}

.sobre-pillars {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.pillar {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(8,59,120,0.07);
    transition: transform 0.25s, box-shadow 0.25s;
}

.pillar:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.pillar-icon {
    width: 42px; height: 42px;
    flex-shrink: 0;
    background: var(--gold-pale);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.pillar-text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 3px;
}

.pillar-text span {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================= */
/* EVENTO                    */
/* ========================= */

.evento {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(232,163,31,0.04) 50%, transparent 100%);
}

.evento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.evento-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(232,163,31,0.10);
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.evento-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: var(--bg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(8,59,120,0.06);
    transition: border-color 0.2s;
}
.detail-row:hover { border-color: rgba(232,163,31,0.3); }

.detail-icon {
    width: 44px; height: 44px;
    flex-shrink: 0;
    background: var(--gold-pale);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.detail-info label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 3px;
}

.detail-info span {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text);
}

.evento-map {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
    position: relative;
    border: 1px solid rgba(8,59,120,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-faint);
    font-size: 0.9rem;
    font-weight: 600;
}

.map-placeholder .map-icon { font-size: 2.5rem; }

.percurso-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(232,163,31,0.10);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.percurso-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--blue);
}

.percurso-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 0;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 18px;
    top: 52px;
    bottom: -4px;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

.step-dot {
    width: 36px; height: 36px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(232,163,31,0.3);
    z-index: 1;
}

.step-text strong {
    display: block;
    font-weight: 800;
    font-size: 0.93rem;
    color: var(--text);
    margin-bottom: 3px;
}

.step-text span {
    font-size: 0.83rem;
    color: var(--text-muted);
}

/* ========================= */
/* APOIE / DOAÇÃO            */
/* ========================= */

.apoie {
    padding: 100px 0;
}

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

.apoio-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px 34px;
    border: 1.5px solid rgba(8,59,120,0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.apoio-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(232,163,31,0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.apoio-card:hover::before { opacity: 1; }

.apoio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(232,163,31,0.24);
}

.apoio-card.destaque {
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
    background: linear-gradient(160deg, rgba(255,248,232,0.9) 0%, var(--white) 100%);
}

.destaque-flag {
    position: absolute;
    top: 0; right: 24px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 6px 14px;
    border-radius: 0 0 10px 10px;
}

.card-icon {
    width: 52px; height: 52px;
    background: var(--gold-pale);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.apoio-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--blue);
}

.apoio-card .preco {
    font-family: 'Itim', cursive;
    font-size: 2.4rem;
    color: var(--gold);
    line-height: 1;
}

.apoio-card p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-muted);
    flex-grow: 1;
}

.apoio-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.apoio-card ul li {
    font-size: 0.84rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.apoio-card ul li::before {
    content: '✦';
    color: var(--gold);
    font-size: 0.6rem;
    flex-shrink: 0;
}

/* ========================= */
/* PATROCINADOR              */
/* ========================= */

.patrocinador {
    padding: 100px 0;
    background: linear-gradient(160deg, rgba(8,59,120,0.03) 0%, transparent 100%);
}

.patrocinador-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.patrocinador-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.patrocinador-text h2 {
    font-size: clamp(1.9rem, 2.6vw, 2.6rem);
    color: var(--blue);
    font-weight: 800;
    line-height: 1.12;
}

.patrocinador-text p {
    font-size: 1.02rem;
    line-height: 1.9;
    color: var(--text-muted);
}

.cotas {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cota {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-radius: var(--radius-md);
    border: 1.5px solid transparent;
    background: var(--bg-card);
    transition: all 0.25s;
}

.cota:hover {
    border-color: rgba(232,163,31,0.3);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.cota-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cota-dot {
    width: 12px; height: 12px;
    border-radius: 999px;
    flex-shrink: 0;
}

.cota-label span {
    font-weight: 700;
    font-size: 0.93rem;
    color: var(--text);
}

.cota-valor {
    font-family: 'Itim', cursive;
    font-size: 1.3rem;
    color: var(--gold-dark);
}

/* ========================= */
/* CONTATO                   */
/* ========================= */

.contato {
    padding: 100px 0 80px;
}

.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: start;
}

.contato-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contato-info h2 {
    font-size: clamp(1.9rem, 2.5vw, 2.5rem);
    color: var(--blue);
    font-weight: 800;
    line-height: 1.12;
}

.contato-info p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-muted);
}

.contato-channels {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.channel {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid rgba(8,59,120,0.07);
    transition: all 0.25s;
    text-decoration: none;
    color: var(--text);
}

.channel:hover {
    border-color: rgba(232,163,31,0.3);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.channel-icon {
    width: 40px; height: 40px;
    flex-shrink: 0;
    background: var(--gold-pale);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.channel-text label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 2px;
    cursor: inherit;
}

.channel-text span {
    font-size: 0.9rem;
    font-weight: 700;
}

/* FORM */
.contato-form {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(232,163,31,0.08);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text);
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid rgba(8,59,120,0.10);
    border-radius: var(--radius-md);
    background: var(--bg);
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    resize: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--text-faint);
    font-weight: 500;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(232,163,31,0.12);
}

.form-field textarea { min-height: 120px; }

.form-success {
    display: none;
    text-align: center;
    padding: 24px;
    background: rgba(232,163,31,0.06);
    border-radius: var(--radius-md);
    border: 1px solid rgba(232,163,31,0.18);
}

.form-success.visible { display: block; }

.form-success p {
    font-weight: 700;
    color: var(--gold-dark);
    font-size: 0.95rem;
}

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

.footer {
    position: relative;
    z-index: 2;
    background: var(--blue);
    color: white;
    padding: 64px 90px 36px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    margin-bottom: 36px;
}

.footer-brand img {
    width: 140px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.6);
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 18px;
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    margin-bottom: 10px;
    transition: color 0.2s, transform 0.2s;
}

.footer-col a:hover { color: var(--gold); transform: translateX(4px); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: var(--gold);
    transition: opacity 0.2s;
}
.footer-bottom a:hover { opacity: 0.8; }

/* ========================= */
/* MOBILE MENU               */
/* ========================= */

.menu-toggle {
    display: none;
    width: 44px; height: 44px;
    border: none; outline: none;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    font-size: 1.2rem;
    color: var(--text);
    transition: 0.25s;
    box-shadow: var(--shadow-sm);
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover { box-shadow: var(--shadow-md); }

.mobile-menu {
    position: fixed;
    top: 88px; right: 16px;
    width: 230px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.96);
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(232,163,31,0.10);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.mobile-menu a {
    color: var(--text);
    font-weight: 700;
    font-size: 0.93rem;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
}

.mobile-menu a:hover {
    background: var(--gold-pale);
    color: var(--gold-dark);
}

/* ========================= */
/* SCROLL ANIMATIONS         */
/* ========================= */

.fade-up {
    opacity: 0;
    transform: translateY(36px);
    animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-delay-1 { animation-delay: 0.1s; }
.fade-delay-2 { animation-delay: 0.22s; }
.fade-delay-3 { animation-delay: 0.34s; }
.fade-delay-4 { animation-delay: 0.46s; }

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

/* Scroll-triggered reveals */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ========================= */
/* 404 PAGE                  */
/* ========================= */

.page-404 {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* FIX: header estático na 404 — não precisa de padding-top no body */
.error-header {
    padding: 0 90px;
    height: 80px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

/* FIX: link da logo na 404 alinhado corretamente */
.error-header > a {
    display: flex;
    align-items: center;
    line-height: 0;
}

.error-logo {
    height: 58px;
    width: auto;

    display: block;

    object-fit: contain;
    transition: opacity 0.2s;
}
.error-logo:hover { opacity: 0.7; }

/* FIX: padding reduzido — sem o buraco do padding-top do body */
.error-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
    padding: 40px 90px 60px;
    position: relative;
    z-index: 2;
}

.error-content { max-width: 500px; }

.error-tag { margin-bottom: 24px; }

.error-content h1 {
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    line-height: 1.08;
    color: var(--blue);
    font-weight: 800;
    margin-bottom: 22px;
    letter-spacing: -0.3px;
}

.error-content p {
    font-size: 1.03rem;
    line-height: 1.95;
    color: var(--text-muted);
    margin-bottom: 36px;
}

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

.error-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-image::before {
    content: '';
    position: absolute;
    width: 440px; height: 440px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(232,163,31,0.22) 0%, transparent 68%);
    filter: blur(28px);
    z-index: 0;
}

.error-image img {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.11));
    animation: floatImage 5s ease-in-out infinite;
}

/* ========================= */
/* PROGRESS BAR              */
/* ========================= */

.progress-bar-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
}

.progress-bar-track {
    width: 100%;
    height: 10px;
    background: rgba(8,59,120,0.06);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-light), var(--gold));
    border-radius: 999px;
    width: 0%;
    transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================= */
/* UTILITY                   */
/* ========================= */

.text-gold  { color: var(--gold); }
.text-blue  { color: var(--blue); }
.mt-auto    { margin-top: auto; }

/* ========================= */
/* RESPONSIVO — 1024px       */
/* ========================= */

@media (max-width: 1024px) {
    .section-inner { padding: 0 48px; }
    .footer        { padding: 56px 48px 32px; }

    .hero               { padding: 40px 48px 0; gap: 50px; }
    .stats-bar          { width: calc(100% - 96px); }
    .sobre-grid         { gap: 50px; }
    .evento-grid        { gap: 36px; }
    .apoie-grid         { grid-template-columns: 1fr 1fr; }
    .patrocinador-grid  { gap: 40px; }
    .contato-grid       { gap: 48px; }
    .footer-grid        { gap: 40px; }

    .error-header { padding: 0 48px; }
    .error-page   { padding: 40px 48px 60px; gap: 60px; }
}

/* ========================= */
/* RESPONSIVO — 768px        */
/* ========================= */

@media (max-width: 768px) {

    html, body { width: 100%; overflow-x: hidden; }

    .bg-glow {
        width: 360px; height: 360px;
        top: -120px; right: -160px;
        filter: blur(30px);
    }

    /* HEADER */
    .header        { padding: 0 25px; height: 100px; }
    .logo-top      { width: 72x; }
    .nav           { display: none; }
    .menu-toggle   { display: flex; }

    body.has-fixed-header { padding-top: 60px; }

    /* HERO */
    .hero {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 24px 18px 50px;
        min-height: auto;
    }
    .hero-content  { width: 100%; max-width: 100%; text-align: center; }
    .hero-image    { display: none !important; }
    .badge         { margin-bottom: 20px; font-size: 0.65rem; }
    .buttons       { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; padding: 16px 18px; text-align: center; }

    /* STATS */
    .stats-bar {
        width: calc(100% - 36px);
        grid-template-columns: 1fr;
        margin-top: 24px;
    }
    .stat-item:not(:last-child)::after {
        right: auto; left: 24px;
        top: auto; bottom: 0;
        width: calc(100% - 48px); height: 1px;
    }

    /* SECTIONS */
    .section-inner        { padding: 0 18px; }
    .sobre, .evento, .apoie, .patrocinador, .contato { padding: 72px 0; }
    .sobre-grid, .evento-grid, .patrocinador-grid, .contato-grid { grid-template-columns: 1fr; gap: 36px; }
    .apoie-grid           { grid-template-columns: 1fr; }
    .sobre-image-wrap     { aspect-ratio: 3/2; }
    .sobre-badge-float    { right: 0; bottom: -10px; }
    .evento-card, .percurso-card { padding: 32px 24px; }
    .contato-form         { padding: 32px 20px; }
    .form-row             { grid-template-columns: 1fr; }

    /* 404 */
    .error-header  { padding: 0 18px; height: 60px; }
    .error-logo    { width: 120px; }
    .error-page {
        flex-direction: column;
        gap: 36px;
        padding: 24px 18px 48px;
        text-align: center;
    }
    .error-actions { justify-content: center; }
    .error-image   { display: none !important; }

    /* FOOTER */
    .footer        { padding: 48px 18px 28px; }
    .footer-grid   { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ========================= */
/* SMALL — 390px             */
/* ========================= */

@media (max-width: 390px) {
    .hero-content h1, .error-content h1 { font-size: 1.9rem; }
    .stat-number { font-size: 2rem; }
    .apoio-card  { padding: 28px 20px; }
}
.secao-desativada {
  display: none;
}
.footer-col a.disabled-link {
    display: none !important;
}
.nav a.disabled-link {
    display: none !important;
}
.is-hidden {
    display: none !important;
}
