/* =========================================================
   GRUPO ESCOTEIRO BROWNSEA — custom.css
   Paleta: Azul Navy · Vermelho · Branco · Azul claro
   ========================================================= */

:root {
    --navy:    #0f1b35;
    --navy2:   #1a2f5e;
    --blue:    #1e4db7;
    --blue-lt: #eef4ff;
    --red:     #9b1c1c;
    --red2:    #c0392b;
    --red-lt:  #fff0f0;
    --white:   #ffffff;
    --cream:   #f8f5f0;
    --gold:    #f2c94c;
    --green:   #2b5d34;
    --fn:      'Montserrat', sans-serif;
}

/* =========================================================
   SCROLL SUAVE GLOBAL
   ========================================================= */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

/* O tema base (main.css) força text-align:justify em TODO <p> — em
   coluna estreita isso abre "rios" de espaço em branco. Voltamos ao
   comportamento normal: o <p> segue o alinhamento do container
   (esquerda por padrão, centralizado onde o pai pedir). */
p { text-align: inherit; }

/* =========================================================
   HERO
   ========================================================= */
#header {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--navy);
    padding: 0;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
    margin-bottom: -60px;
    z-index: 2;
    overflow: hidden;
}

/* Brasão desfocado como fundo */
#header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../../images/brasao.png') center center no-repeat;
    background-size: clamp(260px, 55vw, 700px);
    opacity: 0.08;
    filter: blur(3px) grayscale(30%);
    z-index: 0;
    transform: scale(0.8);
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
    padding: 6em 2em 5em;
    color: white;
}

.hero-local {
    font-family: var(--fn);
    font-size: 0.78em;
    font-weight: 600;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    margin-bottom: 1.5em;
}

.hero-titulo {
    font-family: var(--fn);
    font-size: clamp(2.8em, 7vw, 5em);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 0.6em;
    text-shadow: 2px 4px 20px rgba(0,0,0,0.6);
    letter-spacing: 2px;
}

.hero-titulo .branco  { color: #ffffff; }
.hero-titulo .azul    { color: #7ec8ff; }
.hero-titulo .vermelho{ color: #ff6b6b; }

.hero-texto {
    font-family: var(--fn);
    font-size: 1.05em;
    color: rgba(255,255,255,0.88);
    max-width: 580px;
    margin: 0 auto 2.2em;
    line-height: 1.8;
    text-align: center;
}

.hero-botoes {
    display: flex;
    gap: 1em;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.8em;
}

.btn-vermelho {
    display: inline-block;
    font-family: var(--fn);
    font-weight: 700;
    font-size: 0.85em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff !important;
    background: var(--red2);
    padding: 0.9em 2.4em;
    border-radius: 50px;
    border: none !important;
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(192,57,43,0.45);
    transition: all 0.3s ease;
}
.btn-vermelho:hover {
    background: #a93226;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(192,57,43,0.55);
    border-bottom: none !important;
    color: #fff !important;
}

.btn-borda {
    display: inline-block;
    font-family: var(--fn);
    font-weight: 700;
    font-size: 0.85em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff !important;
    background: transparent;
    padding: 0.9em 2.4em;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.7) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-borda:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff !important;
    transform: translateY(-4px);
    border-bottom: 2px solid rgba(255,255,255,0.7) !important;
    color: #fff !important;
}

.hero-linha {
    width: 70px; height: 2px;
    background: rgba(255,255,255,0.3);
    margin: 0 auto 2.5em;
    border-radius: 2px;
}

.hero-numeros {
    display: flex;
    justify-content: center;
    gap: 4em;
    flex-wrap: wrap;
}
.hero-numeros > div { text-align: center; }
.hero-numeros h2 {
    font-family: var(--fn);
    font-size: 2.6em;
    font-weight: 800;
    color: var(--gold);
    margin: 0 0 0.1em;
    letter-spacing: 1px;
    text-shadow: none;
}
.hero-numeros p {
    font-family: var(--fn);
    font-size: 0.72em;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-align: center;
}


/* =========================================================
   NAV PROFISSIONAL
   ========================================================= */
#nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%; z-index: 1000;
    background: rgba(15, 27, 53, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    padding: 0;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}
#nav.scrolled {
    background: rgba(15, 27, 53, 1);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
#nav > ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0; margin: 0;
}
#nav > ul > li { position: relative; padding: 0; }
#nav > ul > li > a {
    display: flex;
    align-items: center;
    gap: 0.35em;
    padding: 0.85em 0.9em;
    color: rgba(255,255,255,0.85) !important;
    font-family: var(--fn);
    font-size: 0.6em;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none !important;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}
#nav > ul > li > a:hover { color: var(--gold) !important; border-bottom: none !important; }
#nav > ul > li > a i { font-size: 0.85em; opacity: 0.7; }

#nav > ul > li > a::after {
    content: '';
    display: block;
    position: relative;
    bottom: 0; left: 50%;
    width: 0; height: 3px;
    background: var(--red2);
    border-radius: 2px;
    transition: width 0.25s ease, left 0.25s ease;
}
#nav > ul > li > a:hover::after { width: 100%; left: 0; }

/* Chefia - botão vermelho */
#nav > ul > li.chefia { padding: 0 0.5em; }
#nav > ul > li.chefia > a {
    background: var(--red2);
    color: white !important;
    border-radius: 20px;
    padding: 0.45em 1.2em;
    margin: 0.6em 0;
    box-shadow: 0 3px 14px rgba(192,57,43,0.4);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
#nav > ul > li.chefia > a:hover {
    background: #a93226;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192,57,43,0.5);
    border-bottom: none !important;
}
#nav > ul > li.chefia > a::after { display: none; }

#nav > ul > li.nos > a {
    border: 1px solid rgba(242,201,76,0.4);
    border-radius: 20px;
    padding: 0.45em 1em;
}


/* =========================================================
   HERO DE PÁGINA INTERNA (ex.: Sobre o Escotismo)
   ========================================================= */
.pagina-hero {
    background: linear-gradient(135deg, var(--navy), var(--navy2));
    color: white;
    text-align: center;
    padding: 7.5em 1.5em 4em;
}
.pagina-kicker {
    font-family: var(--fn);
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 0.6em;
}
.pagina-hero h1 {
    font-family: var(--fn);
    font-weight: 800;
    font-size: clamp(1.8em, 5vw, 2.6em);
    margin: 0;
}
.pagina-hero > p {
    font-family: var(--fn);
    color: rgba(255, 255, 255, 0.78);
    max-width: 620px;
    margin: 0.9em auto 0;
    line-height: 1.7;
}

/* =========================================================
   BANNER — Citação
   FUNDO: Navy escuro
   ========================================================= */
#banner {
    background: var(--navy) !important;
    border: none !important;
    box-shadow: none !important;
    padding: 5em 1em 6em !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
    clip-path: polygon(0 0, 100% 4%, 100% 96%, 0 100%);
    margin: -60px 0 -50px;
}
#banner::before {
    content: '❝';
    position: absolute;
    font-size: 20em;
    color: rgba(242,201,76,0.05);
    top: -0.3em; left: -0.05em;
    line-height: 1;
    pointer-events: none;
}
#banner p {
    font-family: var(--fn) !important;
    text-align: center !important;
    margin: 0 auto !important;
}
#banner p:first-of-type {
    font-size: 1.15em !important;
    font-style: italic;
    color: rgba(255,255,255,0.92) !important;
    max-width: 820px !important;
    line-height: 1.9 !important;
    margin-bottom: 1.2em !important;
    letter-spacing: 0.3px !important;
}
#banner p:last-of-type {
    color: var(--gold) !important;
    font-weight: 700 !important;
    letter-spacing: 3px !important;
    font-size: 0.85em !important;
}


/* =========================================================
   SOBRE O ESCOTISMO — "o que é" (foto + texto + 4 pilares)
   FUNDO: Branco limpo, layout em 2 colunas no desktop
   ========================================================= */
#sobre-escotismo {
    background: var(--white) !important;
    padding: 6.5em 1em 5.5em !important;
    position: relative; z-index: 1;
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    margin: -50px 0 -50px;
}
#sobre-escotismo > .container { max-width: 1040px; margin: 0 auto; }

#sobre-escotismo .sobre-header { text-align: center; margin-bottom: 2.8em; }
#sobre-escotismo .sobre-header h2,
#sobre-escotismo header h2 {
    font-family: var(--fn) !important;
    font-size: clamp(1.7em, 4.5vw, 2.3em) !important;
    font-weight: 800 !important;
    color: var(--navy) !important;
    margin: 0 !important;
}
#sobre-escotismo .sobre-header h2::after,
#sobre-escotismo header h2::after {
    content: '';
    display: block;
    width: 60px; height: 4px;
    background: var(--red2);
    margin: 0.5em auto 0;
    border-radius: 2px;
}
#sobre-escotismo .sobre-header p {
    font-family: var(--fn) !important;
    color: #667 !important;
    max-width: 560px;
    margin: 0.9em auto 0 !important;
    line-height: 1.6 !important;
}

/* ---- 2 colunas: foto | texto ---- */
#sobre-escotismo .sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.6em;
    align-items: center;
    margin-bottom: 3.2em;
}

#sobre-escotismo .sobre-foto {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--red2), 0 18px 40px rgba(0,0,0,0.22);
}
#sobre-escotismo .sobre-foto img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    object-position: center 62%;
}
#sobre-escotismo .sobre-foto figcaption {
    background: var(--navy);
    color: rgba(255,255,255,0.85);
    font-family: var(--fn);
    font-size: 0.72em;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 0.7em 1em;
}

#sobre-escotismo .sobre-texto { text-align: left; }
#sobre-escotismo .sobre-texto p {
    font-family: var(--fn) !important;
    color: #444 !important;
    line-height: 1.7 !important;
    margin: 0 0 1em !important;
}
#sobre-escotismo .sobre-texto p:last-child { margin-bottom: 0 !important; }
#sobre-escotismo .sobre-texto .lead {
    font-size: 1.14em;
    font-weight: 600;
    color: var(--navy) !important;
    border-left: 4px solid var(--blue);
    padding-left: 0.9em;
}

/* ---- 4 pilares ---- */
#sobre-escotismo .sobre-pilares {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1em;
}
#sobre-escotismo .sobre-pilares li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.15em;
    background: #fff;
    border: 1px solid #eceae4;
    border-radius: 16px;
    padding: 1.4em 0.9em 1.2em;
    box-shadow: 0 6px 18px rgba(15,27,53,0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
#sobre-escotismo .sobre-pilares li:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(15,27,53,0.13);
}
#sobre-escotismo .sobre-pilares .fi {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.05em;
    margin-bottom: 0.55em;
}
#sobre-escotismo .sobre-pilares .fi.azul     { background: var(--blue); }
#sobre-escotismo .sobre-pilares .fi.vermelho { background: var(--red2); }
#sobre-escotismo .sobre-pilares strong {
    font-family: var(--fn);
    font-weight: 800;
    color: var(--navy);
    font-size: 0.9em;
    line-height: 1.25;
}
#sobre-escotismo .sobre-pilares li > span:last-child {
    font-family: var(--fn);
    font-size: 0.75em;
    color: #8a8a8a;
}

@media (max-width: 820px) {
    #sobre-escotismo .sobre-grid { grid-template-columns: 1fr; gap: 1.8em; }
    #sobre-escotismo .sobre-foto img { min-height: 260px; }
    #sobre-escotismo .sobre-pilares { grid-template-columns: repeat(2, 1fr); }
}


/* =========================================================
   DÚVIDAS FREQUENTES
   FUNDO: Vermelho escuro · acordeão com marcador +/×
   ========================================================= */
#duvidas {
    background: linear-gradient(180deg, var(--red), #7a1414) !important;
    padding: 6.5em 1em !important;
    position: relative; z-index: 1;
    clip-path: polygon(0 0, 100% 4%, 100% 96%, 0 100%);
    margin: -50px 0 -50px;
}
#duvidas .duvidas-wrap { max-width: 780px; margin: 0 auto; }

#duvidas .duvidas-header { text-align: center; margin-bottom: 2.4em; }
#duvidas h2 {
    font-family: var(--fn) !important;
    font-size: clamp(1.7em, 4.5vw, 2.3em) !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 !important;
}
#duvidas h2::after {
    content: '';
    display: block;
    width: 60px; height: 4px;
    background: var(--gold);
    border-radius: 2px;
    margin: 0.5em auto 0;
}
#duvidas .duvidas-header p {
    color: rgba(255,255,255,0.8) !important;
    font-family: var(--fn) !important;
    margin: 0.8em auto 0 !important;
}

#duvidas .duvidas-lista { display: flex; flex-direction: column; gap: 0.7em; }

#duvidas details {
    background: #fff !important;
    border-radius: 14px !important;
    border-left: 5px solid var(--gold) !important;
    box-shadow: 0 6px 22px rgba(0,0,0,0.18) !important;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
#duvidas details[open] {
    box-shadow: 0 12px 30px rgba(0,0,0,0.26) !important;
}
#duvidas summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    padding: 1.15em 1.4em !important;
    font-family: var(--fn) !important;
    font-weight: 700 !important;
    color: var(--navy) !important;
    font-size: 0.98em !important;
    cursor: pointer;
}
#duvidas summary::-webkit-details-marker { display: none; }
#duvidas summary::after {
    content: '+';
    flex-shrink: 0;
    width: 1.5em;
    height: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    font-weight: 700;
    line-height: 1;
    color: var(--red2);
    background: #fdeceb;
    border-radius: 50%;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
#duvidas details[open] summary::after {
    content: '×';
    transform: rotate(90deg);
    background: var(--red2);
    color: #fff;
}
#duvidas summary:hover { color: var(--red2) !important; }
#duvidas details p {
    font-family: var(--fn) !important;
    color: #4a4a4a !important;
    margin: 0 !important;
    padding: 0 1.4em 1.3em !important;
    font-size: 0.93em !important;
    line-height: 1.7 !important;
}


/* =========================================================
   QUEM SOMOS
   FUNDO: Navy azul
   ========================================================= */
#quem-somos {
    background: var(--navy2) !important;
    padding: 6em 1em !important;
    position: relative; z-index: 1;
    clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
    margin: -50px 0 -50px;
}
#quem-somos header h2 {
    font-family: var(--fn) !important;
    font-weight: 800 !important;
    color: white !important;
    font-size: 2.3em !important;
}
#quem-somos header h2::after {
    content: '';
    display: block;
    width: 60px; height: 4px;
    background: var(--gold);
    margin: 0.4em auto 0;
    border-radius: 2px;
}
#quem-somos header p { font-family: var(--fn) !important; color: rgba(255,255,255,0.75) !important; }
#quem-somos > .container > div:nth-child(2) {
    background: rgba(255,255,255,0.08) !important;
    border-left: 5px solid var(--gold) !important;
    border-radius: 0 14px 14px 0 !important;
    font-family: var(--fn) !important;
    color: rgba(255,255,255,0.9) !important;
    font-size: 1em !important;
    line-height: 1.8 !important;
    padding: 1.5em 2em !important;
}
#quem-somos p { font-family: var(--fn) !important; color: white !important; font-weight: 700 !important; }
#quem-somos img { filter: brightness(0) invert(1); opacity: 0.85; }


/* =========================================================
   LEIS ESCOTEIRAS
   FUNDO: Azul claro suave
   ========================================================= */
#leis {
    background: var(--blue-lt) !important;
    padding: 6em 1em !important;
    position: relative; z-index: 1;
    clip-path: polygon(0 0, 100% 4%, 100% 96%, 0 100%);
    margin: -50px 0 -50px;
}
#leis header h2 {
    font-family: var(--fn) !important;
    font-weight: 800 !important;
    color: var(--navy) !important;
    font-size: 2.3em !important;
}
#leis header h2::after {
    content: '';
    display: block;
    width: 60px; height: 4px;
    background: var(--red2);
    margin: 0.4em auto 0;
    border-radius: 2px;
}
#leis header p { font-family: var(--fn) !important; color: #555 !important; }
#leis > .container > div > div > div {
    border-top: 4px solid var(--blue) !important;
    border-radius: 12px !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    background: white !important;
}
#leis > .container > div > div > div:hover {
    transform: translateY(-7px) !important;
    box-shadow: 0 18px 40px rgba(30,77,183,0.13) !important;
}
#leis h3 { font-family: var(--fn) !important; font-weight: 700 !important; color: var(--navy2) !important; font-size: 0.95em !important; }
#leis p  { font-family: var(--fn) !important; color: #555 !important; line-height: 1.5 !important; }

/* Promessa */
section[style*="1f4d2e"] {
    background: var(--navy) !important;
    padding: 5em 1em !important;
    position: relative; overflow: hidden;
    clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
    margin: -50px 0 -50px;
    z-index: 1;
}
section[style*="1f4d2e"]::before {
    content: '⚜️';
    position: absolute;
    font-size: 14em;
    opacity: 0.04;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
section[style*="1f4d2e"] h2 {
    font-family: var(--fn) !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
    font-size: 2em !important;
    color: var(--gold) !important;
}
section[style*="1f4d2e"] p {
    font-family: var(--fn) !important;
    font-size: 1.12em !important;
    font-style: italic !important;
    line-height: 1.9 !important;
    color: rgba(255,255,255,0.9) !important;
    text-align: center !important;
    max-width: 700px !important;
    margin: 0 auto !important;
}


/* =========================================================
   ATIVIDADES ESCOTEIRAS
   FUNDO: Branco
   ========================================================= */
#atividades {
    background: var(--white) !important;
    padding: 6em 1em !important;
    position: relative; z-index: 1;
    clip-path: polygon(0 0, 100% 4%, 100% 96%, 0 100%);
    margin: -50px 0 -50px;
}
#atividades header h2 {
    font-family: var(--fn) !important;
    font-weight: 800 !important;
    color: var(--navy) !important;
    font-size: 2.3em !important;
}
#atividades header h2::after {
    content: '';
    display: block;
    width: 60px; height: 4px;
    background: var(--blue);
    margin: 0.4em auto 0;
    border-radius: 2px;
}
#atividades header p { font-family: var(--fn) !important; color: #555 !important; }
#atividades > .container > div > div {
    border-radius: 24px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
#atividades > .container > div > div:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 24px 50px rgba(0,0,0,0.14) !important;
}
#atividades strong { font-family: var(--fn) !important; font-weight: 800 !important; }
#atividades span   { font-family: var(--fn) !important; line-height: 1.6 !important; }


/* =========================================================
   RAMOS ESCOTEIROS
   FUNDO: Azul navy suave
   ========================================================= */
#ramos-escoteiros {
    background: var(--navy) !important;
    padding: 6em 0 !important;
    position: relative; z-index: 1;
    clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
    margin: -50px 0 -50px;
}
#ramos-escoteiros header h2 {
    font-family: var(--fn) !important;
    font-weight: 800 !important;
    color: white !important;
    font-size: 2.3em !important;
}
#ramos-escoteiros header h2::after {
    content: '';
    display: block;
    width: 60px; height: 4px;
    background: var(--gold);
    margin: 0.4em auto 0;
    border-radius: 2px;
}
#ramos-escoteiros header p { font-family: var(--fn) !important; color: rgba(255,255,255,0.7) !important; }
#ramos-escoteiros .box {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    border: none !important;
}
#ramos-escoteiros .box:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 55px rgba(0,0,0,0.35);
}
#ramos-escoteiros .box header {
    background: var(--red2);
    padding: 0.7em 1em;
    margin: 0;
}
#ramos-escoteiros .box header h3 {
    font-family: var(--fn) !important;
    font-weight: 700 !important;
    color: white !important;
    font-size: 0.92em !important;
    text-align: center;
    margin: 0;
    letter-spacing: 0.5px;
}
#ramos-escoteiros .box p {
    font-family: var(--fn) !important;
    color: #444 !important;
    font-size: 0.88em !important;
    text-align: center !important;
    line-height: 1.65 !important;
    padding: 1em;
}


/* =========================================================
   CALENDÁRIO
   FUNDO: Vermelho escuro
   ========================================================= */
#calendario {
    background: var(--red) !important;
    padding: 6em 1em !important;
    position: relative; z-index: 1;
    clip-path: polygon(0 0, 100% 4%, 100% 96%, 0 100%);
    margin: -50px 0 -50px;
}
#calendario header h2 {
    font-family: var(--fn) !important;
    font-weight: 800 !important;
    color: white !important;
    font-size: 2.3em !important;
    letter-spacing: 1px !important;
}
#calendario header h2::after {
    content: '';
    display: block;
    width: 60px; height: 4px;
    background: var(--gold);
    margin: 0.4em auto 0;
    border-radius: 2px;
}
#calendario header p { font-family: var(--fn) !important; color: rgba(255,255,255,0.7) !important; }
#calendario ul { list-style: none !important; padding: 0 !important; }
#calendario li {
    background: rgba(255,255,255,0.95) !important;
    border-left: 5px solid var(--gold) !important;
    border-radius: 8px !important;
    padding: 0.9em 1.5em !important;
    margin-bottom: 0.65em !important;
    font-family: var(--fn) !important;
    font-weight: 600 !important;
    font-size: 0.93em !important;
    color: var(--red) !important;
    box-shadow: 0 3px 16px rgba(0,0,0,0.12) !important;
    transition: transform 0.2s ease !important;
}
#calendario li:hover { transform: translateX(8px) !important; }
#calendario h2:not(header h2) {
    font-family: var(--fn) !important;
    font-weight: 800 !important;
    color: var(--gold) !important;
    font-size: 1.5em !important;
    margin: 2em 0 0.8em !important;
    letter-spacing: 1px !important;
}


/* =========================================================
   FOTOS DO GRUPO
   FUNDO: Navy escuro
   ========================================================= */
#fotos {
    background: var(--navy) !important;
    padding: 6em 0 !important;
    position: relative; z-index: 1;
    clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
    margin: -50px 0 -50px;
}
#fotos header h2 {
    font-family: var(--fn) !important;
    font-weight: 800 !important;
    color: white !important;
    font-size: 2.3em !important;
    letter-spacing: 2px !important;
}
#fotos header h2::after {
    content: '';
    display: block;
    width: 60px; height: 4px;
    background: var(--gold);
    margin: 0.4em auto 0;
    border-radius: 2px;
}
#fotos header p { font-family: var(--fn) !important; color: rgba(255,255,255,0.6) !important; }
.fotos-scroll img {
    border-radius: 14px !important;
    box-shadow: 0 8px 28px rgba(0,0,0,0.4) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.fotos-scroll img:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5) !important;
}
.seta {
    background: rgba(192,57,43,0.85) !important;
    border-radius: 50% !important;
    width: 48px !important; height: 48px !important;
    display: flex !important;
    align-items: center; justify-content: center;
    font-size: 1.1em !important;
    padding: 0 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3) !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
    border: 2px solid rgba(255,255,255,0.2) !important;
}
.seta:hover {
    background: var(--red2) !important;
    transform: translateY(-50%) scale(1.1) !important;
}


/* =========================================================
   DOCUMENTOS
   FUNDO: Azul royal
   ========================================================= */
#documentos {
    background: var(--blue) !important;
    padding: 5em 0 !important;
    position: relative; z-index: 1;
    clip-path: polygon(0 0, 100% 4%, 100% 96%, 0 100%);
    margin: -50px 0 -50px;
}
#documentos header h2 {
    font-family: var(--fn) !important;
    font-weight: 800 !important;
    color: white !important;
    font-size: 2.3em !important;
}
#documentos header h2::after {
    content: '';
    display: block;
    width: 60px; height: 4px;
    background: var(--gold);
    margin: 0.4em auto 0;
    border-radius: 2px;
}
#documentos header p { font-family: var(--fn) !important; color: rgba(255,255,255,0.75) !important; }
#documentos > .container > div > div {
    background: white !important;
    border-radius: 16px !important;
    padding: 2em !important;
    box-shadow: 0 12px 35px rgba(0,0,0,0.2) !important;
    border-top: 5px solid var(--gold) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
#documentos > .container > div > div:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 22px 50px rgba(0,0,0,0.28) !important;
}
#documentos h3 { font-family: var(--fn) !important; font-weight: 700 !important; color: var(--navy) !important; text-align: center !important; }
#documentos p  { font-family: var(--fn) !important; color: #555 !important; text-align: center !important; font-size: 0.9em !important; }


/* =========================================================
   FALE CONOSCO
   FUNDO: Navy
   ========================================================= */
#fale-conosco {
    background: var(--navy) !important;
    padding: 6em 0 !important;
    position: relative; z-index: 1;
    clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 100%);
    margin: -50px 0 0;
}
#fale-conosco header h2 {
    font-family: var(--fn) !important;
    font-weight: 800 !important;
    color: white !important;
}
#fale-conosco header h2::after {
    content: '';
    display: block;
    width: 60px; height: 4px;
    background: var(--gold);
    margin: 0.4em 0 0;
    border-radius: 2px;
}
#fale-conosco header p { font-family: var(--fn) !important; color: rgba(255,255,255,0.7) !important; }
#fale-conosco .icons li a {
    font-family: var(--fn) !important;
    font-weight: 500 !important;
    color: rgba(255,255,255,0.85) !important;
}
#fale-conosco .icons li a:hover { color: var(--gold) !important; }
#fale-conosco .icons li::before { background: var(--red2) !important; }
#fale-conosco form input,
#fale-conosco form textarea {
    font-family: var(--fn) !important;
    font-size: 16px !important; /* <16px faz o Safari no iPhone dar zoom sozinho ao focar */
    border-radius: 10px !important;
    background: rgba(255,255,255,0.1) !important;
    border: 2px solid rgba(255,255,255,0.2) !important;
    box-shadow: none !important;
    color: white !important;
    transition: border-color 0.2s ease, background 0.2s ease !important;
}
#fale-conosco form input::placeholder,
#fale-conosco form textarea::placeholder { color: rgba(255,255,255,0.5) !important; }
#fale-conosco form input:focus,
#fale-conosco form textarea:focus {
    border-color: var(--gold) !important;
    background: rgba(255,255,255,0.15) !important;
}
#fale-conosco iframe {
    border-radius: 14px !important;
    box-shadow: 0 8px 28px rgba(0,0,0,0.3) !important;
}
#fale-conosco .button {
    background: var(--red2) !important;
    border-radius: 50px !important;
    font-family: var(--fn) !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    box-shadow: 0 6px 20px rgba(192,57,43,0.4) !important;
    transition: all 0.3s ease !important;
}
#fale-conosco .button:hover {
    background: #a93226 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(192,57,43,0.5) !important;
}


/* =========================================================
   FOOTER
   ========================================================= */
#footer {
    background: #07101f !important;
    color: rgba(255,255,255,0.5) !important;
    padding: 2.5em 1.5em !important;
    text-align: center !important;
    border-top: 4px solid var(--red2) !important;
}
#footer p {
    font-family: var(--fn) !important;
    font-size: 0.82em !important;
    color: rgba(255,255,255,0.5) !important;
    margin: 0.3em 0 !important;
    text-align: center !important;
}


/* =========================================================
   ANIMAÇÕES DE ENTRADA — direções diferentes
   ========================================================= */
.animar          { opacity: 0; transform: translateY(40px);  transition: opacity 0.75s ease, transform 0.75s ease; }
.animar-esquerda { opacity: 0; transform: translateX(-50px); transition: opacity 0.75s ease, transform 0.75s ease; }
.animar-direita  { opacity: 0; transform: translateX(50px);  transition: opacity 0.75s ease, transform 0.75s ease; }

.animar.show,
.animar-esquerda.show,
.animar-direita.show {
    opacity: 1;
    transform: translate(0);
}


/* =========================================================
   BOTÃO WHATSAPP FLUTUANTE
   ========================================================= */
a[href*="wa.me"] {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
a[href*="wa.me"]:hover {
    transform: scale(1.12) !important;
    box-shadow: 0 10px 30px rgba(37,211,102,0.55) !important;
}


/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 736px) {
    /* Remove diagonais no mobile pra não cortar conteúdo */
    #banner, #ferramentas, #escotismo-cta, #sobre-escotismo, #duvidas, #quem-somos,
    #leis, #atividades, #ramos-escoteiros, #calendario,
    #fotos, #documentos, #fale-conosco, #instale-app,
    section[style*="1f4d2e"], #header {
        clip-path: none !important;
        margin: 0 !important;
    }
    .hero-titulo  { font-size: 2.5em; }
    .hero-numeros { gap: 2em; }
    .hero-numeros h2 { font-size: 1.9em; }
    #nav > ul > li > a { padding: 0.9em 0.45em; font-size: 0.62em; }
}

/* ================= BASE ================= */

.historia-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    justify-content: center;
}

/* ================= CARD ================= */

.historia-card {
    flex: 1 1 280px;
    background: #ffffff;
    padding: 2em;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    text-align: left;
    transition: 0.25s ease;
    border-top: 4px solid transparent;
}

.historia-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

/* ================= DESTAQUE BP ================= */

.historia-card.destaque {
    border-top: 4px solid #1f4d2e;
    transform: scale(1.03);
}

/* ================= IMAGENS ================= */

.card-img {
    text-align: center;
    margin-bottom: 1em;
}

.card-img img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1f4d2e;
}

.card-img.map img {
    border-radius: 12px;
    object-fit: contain;
    background: #f3f3f3;
}

/* ================= WORLD ================= */

.world {
    margin-top: 1.5em;
}

.world-top {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.9em;
}

.world-bar {
    height: 14px;
    background: #e6e6e6;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 0.6em;
}

.world-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #1f4d2e, #2f7a45);
    transition: width 2s ease;
}

/* =========================================================
   INSTALE COMO APP
   FUNDO: gradiente navy → azul, cards flutuantes brancos
   ========================================================= */
#instale-app {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 55%, var(--blue) 100%);
    padding: 6.5em 1em;
    position: relative;
    z-index: 1;
    clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 96%);
    margin: -50px 0 -50px;
    overflow: hidden;
}
/* brasão fantasma no fundo, ecoando o hero */
#instale-app::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    width: 520px;
    height: 520px;
    transform: translateY(-50%);
    background: url('../../images/brasao.png') center / contain no-repeat;
    opacity: 0.05;
    pointer-events: none;
}
#instale-app .container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
#instale-app header h2 {
    font-family: var(--fn);
    font-weight: 800;
    color: white;
    font-size: 2.2em;
    letter-spacing: 0.5px;
}
#instale-app header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gold);
    margin: 0.5em auto 0;
    border-radius: 2px;
}
#instale-app header p {
    font-family: var(--fn);
    color: rgba(255, 255, 255, 0.75);
    max-width: 520px;
    margin: 0.9em auto 0;
    line-height: 1.6;
}

.instala-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8em;
    margin-top: 2.6em;
    text-align: left;
}

.instala-card {
    background: white;
    border-radius: 18px;
    padding: 1.8em 1.7em;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    border-top: 5px solid var(--green);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.instala-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.32);
}
.instala-card.apple { border-top-color: #333; }

.instala-card h3 {
    display: flex;
    align-items: center;
    gap: 0.7em;
    font-family: var(--fn);
    font-weight: 700;
    color: var(--navy);
    font-size: 1.15em;
    margin-bottom: 1.2em;
}
.instala-card h3 i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    background: var(--blue-lt);
    color: var(--green);
    font-size: 0.95em;
    flex: none;
}
.instala-card.apple h3 i { background: #f0f0f0; color: #333; }

.instala-steps {
    list-style: none;
    counter-reset: passo;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1em;
}
.instala-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.9em;
    font-family: var(--fn);
    color: #444;
    font-size: 0.94em;
    line-height: 1.55;
}
.instala-steps li > span {
    flex: 1 1 auto;
    min-width: 0;
}
.instala-steps li::before {
    content: counter(passo);
    counter-increment: passo;
    flex: none;
    width: 1.6em;
    height: 1.6em;
    border-radius: 50%;
    background: var(--navy);
    color: white;
    font-weight: 700;
    font-size: 0.78em;
    display: flex;
    align-items: center;
    justify-content: center;
}
.instala-card.apple .instala-steps li::before { background: #333; }
.instala-steps strong { color: var(--navy); }
.instala-card.apple .instala-steps strong { color: #222; }

.instala-nota {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    margin-top: 2.4em;
    padding: 0.85em 1.4em;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--fn);
    font-size: 0.85em;
    max-width: 100%;
}

@media (max-width: 600px) {
    #instale-app { padding: 5em 1em; }
    #instale-app::before { opacity: 0.035; }
    .instala-card { padding: 1.5em; }
    .instala-nota { text-align: left; }
}


/* =========================================================
   FERRAMENTAS DO GRUPO
   FUNDO: gradiente navy → azul, cards flutuantes brancos
   ========================================================= */
#ferramentas {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 55%, var(--blue) 100%);
    padding: 7em 1em 6.5em;
    position: relative;
    z-index: 1;
    clip-path: polygon(0 0, 100% 4%, 100% 96%, 0 100%);
    margin: -50px 0 -50px;
    overflow: hidden;
}
/* brasão fantasma no fundo, ecoando o "instale o app" */
#ferramentas::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -8%;
    width: 520px;
    height: 520px;
    transform: translateY(-50%);
    background: url('../../images/brasao.png') center / contain no-repeat;
    opacity: 0.05;
    pointer-events: none;
}
#ferramentas .container {
    position: relative;
    z-index: 1;
}
#ferramentas h2 {
    font-family: var(--fn);
    font-weight: 800;
    color: white;
    font-size: 2.2em;
}
#ferramentas h2::after {
    content: '';
    display: block;
    width: 60px; height: 4px;
    background: var(--gold);
    margin: 0.5em auto 0;
    border-radius: 2px;
}
#ferramentas header p {
    font-family: var(--fn);
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.7em;
}
#ferramentas .link-card {
    text-align: center;
    align-items: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.28);
}
#ferramentas .link-card:hover { transform: translateY(-8px); }
/* cada ferramenta com sua cor — some hover unifica em vermelho (padrão do .link-card) */
#ferramentas .link-card:nth-child(1) { border-top-color: var(--green); }
#ferramentas .link-card:nth-child(2) { border-top-color: var(--blue); }
#ferramentas .link-card:nth-child(3) { border-top-color: var(--red2); }
#ferramentas .link-card:nth-child(4) { border-top-color: var(--gold); }

/* =========================================================
   SOBRE O ESCOTISMO — TEASER (index)
   FUNDO: gradiente verde, selo de flor-de-lis gigante ao fundo
   ========================================================= */
#escotismo-cta {
    background: linear-gradient(135deg, #1f4d2e 0%, #2b5d34 55%, #3a7a49 100%);
    color: white;
    padding: 7em 1.5em 6.5em;
    position: relative;
    z-index: 1;
    clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 96%);
    margin: -50px 0 -50px;
    overflow: hidden;
}
#escotismo-cta::before {
    /* ícone (não emoji) — assim fica sempre monocromático e obedece a cor em qualquer aparelho.
       "⚜" como emoji renderiza colorido/dourado no celular e ignora o CSS color. */
    content: "\f14e"; /* fa-compass */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 46%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20em;
    line-height: 1;
    color: rgba(255, 255, 255, 0.07);
    pointer-events: none;
}
#escotismo-cta .container { position: relative; z-index: 1; }
#escotismo-cta h2 {
    font-family: var(--fn);
    font-weight: 800;
    color: white;
    font-size: 2.2em;
}
#escotismo-cta h2::after {
    content: '';
    display: block;
    width: 60px; height: 4px;
    background: var(--gold);
    margin: 0.5em auto 0;
    border-radius: 2px;
}
#escotismo-cta header p {
    font-family: var(--fn);
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.9em;
    line-height: 1.7;
    font-size: 1.03em;
}
.btn-dourado {
    display: inline-block;
    background: var(--gold);
    color: var(--navy) !important;
    font-family: var(--fn);
    font-weight: 800;
    letter-spacing: 0.5px;
    text-decoration: none;
    font-size: 0.9em;
    padding: 1em 2em;
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-dourado:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
    background: #ffe08a;
}

/* =========================================================
   LINKS ÚTEIS — VERSÃO PREMIUM
   ========================================================= */

#links-uteis {
    background: var(--white);
    padding: 6em 1em;
}

#links-uteis header {
    margin-bottom: 2.5em;
}

#links-uteis h2 {
    font-family: var(--fn);
    font-weight: 900;
    color: var(--navy);
    font-size: 2.4em;
    letter-spacing: 1px;
}

#links-uteis p {
    font-family: var(--fn);
    color: #666;
    font-size: 1em;
}

/* GRID REAL */
#links-uteis .container > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.6em;
    justify-content: center;
}

/* CARD */
.link-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    padding: 1.6em 1.4em;
    text-decoration: none;
    color: inherit;

    border: 1px solid rgba(0,0,0,0.05);
    border-top: 4px solid var(--blue);

    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: all 0.25s ease;

    display: flex;
    flex-direction: column;
    gap: 0.6em;
    overflow: hidden;
}

/* brilho sutil */
.link-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(30,77,183,0.05), transparent);
    transform: translateX(-100%);
    transition: 0.6s ease;
}

.link-card:hover::before {
    transform: translateX(100%);
}

/* HOVER */
.link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
    border-top-color: var(--red2);
}

/* ÍCONE */
.link-card-icon {
    font-size: 2em;
}

/* TÍTULO */
.link-card strong {
    font-family: var(--fn);
    font-size: 1.05em;
    font-weight: 800;
    color: var(--navy);
}

/* TEXTO */
.link-card span {
    font-family: var(--fn);
    font-size: 0.88em;
    color: #666;
    line-height: 1.5;
}

/* SMALL */
.link-card small {
    font-size: 0.75em;
    color: #888;
}

/* RESPONSIVO AJUSTE FINO */
@media (max-width: 600px) {
    #links-uteis h2 {
        font-size: 2em;
    }

    .link-card {
        padding: 1.4em;
    }
}

@media (max-width: 736px) {

    html, body {
        overflow-x: hidden;
    }

    * {
        box-sizing: border-box;
    }

    section, header, .container {
        max-width: 100%;
    }

    /* garante que nada encoste ou ultrapasse a tela */
    section {
        padding-left: 1.2em !important;
        padding-right: 1.2em !important;
    }

    .container {
        padding-left: 1em !important;
        padding-right: 1em !important;
        max-width: 100% !important;
    }

}

/* =========================================================
   HISTÓRIA DO ESCOTISMO — 3 cartões (BP · Brownsea · Mundo)
   Reescrito: imagens sem corte (object-fit: contain sobre um
   fundo suave), grid alinhado, paleta do site.
   ========================================================= */
.historia-cards {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1em 1.5em 3.5em;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6em;
    align-items: start;
    background: none;
}

.historia-header {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 0.6em;
}
.historia-header h2 {
    font-family: var(--fn);
    font-weight: 800;
    color: var(--navy);
    font-size: clamp(1.5em, 4vw, 2em);
    margin: 0;
}
.historia-header p {
    font-family: var(--fn);
    color: #667;
    margin: 0.6em auto 0;
    max-width: 560px;
    line-height: 1.6;
}

.historia-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e7e2d7;
    border-top: 4px solid var(--blue);
    border-radius: 18px;
    padding: 1.4em;
    text-align: left;
    box-shadow: 0 12px 30px rgba(15, 27, 53, 0.09);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    backdrop-filter: none;
}
.historia-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 27, 53, 0.14);
}
.historia-card.destaque {
    border-top-color: var(--gold);
    box-shadow: 0 16px 38px rgba(242, 201, 76, 0.28);
    transform: none;
}

/* moldura da imagem — nada é cortado */
.historia-card .card-img {
    position: relative;
    width: 100%;
    height: 200px;
    margin: 0 0 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--blue-lt), #ffffff);
    border: 1px solid #e7e2d7;
    border-radius: 12px;
    overflow: hidden;
}
.historia-card.destaque .card-img {
    background: linear-gradient(160deg, #fff7e0, #ffffff);
}
/* fundo desfocado da própria imagem preenche as bordas sem cortar nada */
.historia-card .card-img[data-bg]::before {
    content: '';
    position: absolute;
    inset: -20%;
    background: var(--bg) center / cover no-repeat;
    filter: blur(22px) brightness(1.08) saturate(1.1);
    opacity: 0.5;
}
.historia-card .card-img img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 0;
    border-radius: 6px;
}
.historia-card .card-img.map {
    background: linear-gradient(160deg, #eef4ff, #ffffff);
}
.historia-card .card-img.map img { padding: 0.6em; border-radius: 0; }

.historia-card h3 {
    font-family: var(--fn);
    font-weight: 800;
    color: var(--navy);
    font-size: 1.1em;
    line-height: 1.3;
    margin: 0 0 0.4em;
}
.historia-card p {
    font-size: 0.9em;
    line-height: 1.55;
    color: #4a4a4a;
    margin: 0;
}
/* no cartão do Mundo a imagem vem depois do texto */
.historia-card .world + p { margin-bottom: 1.1em; }
.historia-card .card-img:last-child { margin-top: 0.2em; margin-bottom: 0; }

/* barra "Escoteiros no mundo" */
.world { margin: 0.4em 0 1em; }
.world-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--fn);
    font-weight: 700;
    font-size: 0.86em;
    color: var(--navy);
}
.world-top .num { color: var(--blue); font-weight: 800; font-size: 1.15em; }
.world-bar {
    height: 12px;
    background: #e8ebf2;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 0.5em;
}
.world-fill {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue), #5a8be6);
    transition: width 0.2s linear;
}

@media (max-width: 820px) {
    .historia-cards { grid-template-columns: 1fr; max-width: 460px; }
}
/* ===== SEÇÃO ===== */
.lema {
    position: relative;
    height: 50vh;
    background: url("images/sempre.") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;

    /* animação leve */
    animation: zoomBg 20s infinite alternate;
}

/* ===== OVERLAY PROFISSIONAL ===== */
.lema::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0,0,0,0.75),
        rgba(0,0,0,0.4)
    );
    z-index: 1;
}

/* ===== CONTEÚDO ===== */
.lema-overlay {
    position: relative;
    z-index: 2;
    text-align: center;

    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

/* ATIVA ANIMAÇÃO */
.lema-overlay.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== TÍTULO ===== */
.lema-titulo {
    font-size: 3.5rem;
    color: white;
    font-weight: bold;
    letter-spacing: 3px;
    text-shadow: 0 4px 25px rgba(0,0,0,0.8);
}

/* ===== SUBTÍTULO ===== */
.lema-sub {
    margin-top: 12px;
    color: #ff4d4d;
    letter-spacing: 4px;
    font-size: 0.9rem;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .lema {
        height: 50vh;
    }

    .lema-titulo {
        font-size: 2.2rem;
    }
}

/* ===== ANIMAÇÃO ZOOM ===== */
@keyframes zoomBg {
    from {
        background-size: 100%;
    }
    to {
        background-size: 110%;
    }
}
/* =========================================================
   PIX MENSALIDADE
   FUNDO: Azul Navy (padrão do site)
   ========================================================= */
#pix {
    background: var(--navy2) !important;
    padding: 6em 1em !important;
    position: relative;
    z-index: 1;

    clip-path: polygon(0 0, 100% 4%, 100% 96%, 0 100%);
    margin: -50px 0 -50px;
}

/* HEADER */
#pix h2 {
    font-family: var(--fn) !important;
    font-weight: 800 !important;
    color: white !important;
    font-size: 2.3em !important;
}

#pix h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gold);
    margin: 0.4em auto 0;
    border-radius: 2px;
}

#pix p {
    font-family: var(--fn) !important;
    color: rgba(255,255,255,0.7) !important;
}

/* BOX */
.pix-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3em;
    flex-wrap: wrap;

    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(10px);

    padding: 2.5em;
    border-radius: 18px;

    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* QR CODE */
.pix-qrcode {
    text-align: center;
}

.pix-qrcode img {
    width: 200px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.pix-qrcode img:hover {
    transform: scale(1.05);
}

.pix-qrcode p {
    margin-top: 0.8em;
    font-size: 0.85em;
}

/* INFO */
.pix-info {
    max-width: 420px;
    text-align: left;
}

.pix-info h3 {
    font-family: var(--fn);
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 1em;
}

/* LISTA */
.pix-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5em;
}

.pix-info li {
    background: rgba(255,255,255,0.95);
    border-left: 4px solid var(--gold);
    padding: 0.7em 1em;
    margin-bottom: 0.5em;
    border-radius: 6px;

    font-family: var(--fn);
    font-size: 0.9em;
    color: var(--navy);
    font-weight: 600;
}

/* CHAVE PIX */
.pix-chave {
    background: rgba(255, 255, 255, 0.12);
    padding: 0.8em 1em;
    border-radius: 10px;
    margin-bottom: 1em;
}

.pix-chave span {
    display: block;
    font-size: 0.8em;
    color: rgba(255,255,255,0.7);
}

.pix-chave strong {
    font-family: var(--fn);
    color: white;
    font-size: 1.05em;
}

/* =========================================================
   AVISO PIX COPIADO
   ========================================================= */

.pix-aviso {
    display: none;

    margin-top: 10px;

    font-family: var(--fn);
    font-size: 0.8em;
    font-weight: 600;

    color: var(--gold);

    opacity: 0;
    transition: opacity 0.3s ease;
}

.pix-aviso.show {
    display: block;
    opacity: 1;
}
/* =========================================================
   AVISO FIXO PIX
   ========================================================= */

.pix-info-aviso {
    margin-top: 1em;

    font-family: var(--fn);
    font-size: 0.82em;
    line-height: 1.7;

    color: rgba(255,255,255,0.72);
}

/* RESPONSIVO */
@media (max-width: 736px) {
    #pix {
        clip-path: none !important;
        margin: 0 !important;
    }

    .pix-box {
        padding: 1.5em;
        gap: 2em;
    }

    .pix-qrcode img {
        width: 170px;
    }
}
.evento-destaque {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;

    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);

    border-radius: 18px;
    padding: 18px;

    border: 1px solid rgba(0,0,0,0.05);
    border-top: 4px solid var(--gold);

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.25s ease;

    margin-bottom: 30px;
}

/* hover igual os outros cards */
.evento-destaque:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* IMAGEM */
.evento-destaque img {
    width: 100%;
    max-width: 420px;
    height: auto;          /* 🔥 remove altura fixa */
    object-fit: contain;   /* 🔥 mostra a imagem inteira */
    border-radius: 12px;
}

/* TEXTO */
.evento-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* TÍTULO */
.evento-info h3 {
    font-family: var(--fn);
    color: var(--navy);
    font-weight: 800;
    margin-bottom: 8px;
}

/* TEXTO */
.evento-info p {
    font-family: var(--fn);
    color: #555;
    font-size: 0.9em;
    line-height: 1.5;
}
.btn-evento {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 16px;

    background: var(--navy);
    color: #fff;
    font-family: var(--fn);
    font-weight: 700;
    font-size: 0.85em;

    border-radius: 10px;
    text-decoration: none;

    transition: all 0.25s ease;
}

/* hover padrão do teu site */
.btn-evento:hover {
    background: var(--red2);
    transform: translateY(-2px);
}

/* =========================================================
   MURAL DA SEMANA
   ========================================================= */
#mural {
    background: var(--cream) !important;
    padding: 5.5em 1em !important;
    position: relative; z-index: 1;
    clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 96%);
    margin: -50px 0 -50px;
}
#mural header h2 {
    font-family: var(--fn) !important;
    font-size: 2.2em !important;
    font-weight: 800 !important;
    color: var(--navy) !important;
}
#mural header p { font-family: var(--fn) !important; color: #667 !important; }

.mural-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2em;
    align-items: start;
}
.mural-encontro, .mural-avisos {
    background: #fff;
    border-radius: 14px;
    padding: 1.4em 1.5em;
    border-left: 5px solid var(--gold);
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
    font-family: var(--fn);
}
.mural-encontro h3, .mural-avisos h3 {
    font-family: var(--fn);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.7em;
    font-size: 1.1em;
}
.mural-encontro ul { list-style: none; padding: 0; margin: 0; }
.mural-encontro > ul > li {
    display: flex;
    gap: 0.7em;
    align-items: baseline;
    padding: 0.4em 0;
    color: #333;
    font-size: 0.92em;
    line-height: 1.5;
}
.mural-encontro > ul > li i { color: var(--red2); width: 1em; text-align: center; flex-shrink: 0; }
.mural-levar { margin-top: 0.9em; padding-top: 0.9em; border-top: 1px solid #eee; font-size: 0.92em; color: #333; }
.mural-levar ul { list-style: disc !important; margin: 0.4em 0 0 1.3em; }
.mural-levar li { margin-bottom: 0.2em; }
.mural-obs {
    margin-top: 0.9em;
    font-size: 0.9em;
    color: var(--red);
    font-style: italic;
}
/* "Avisos" ganha um pontinho vivo pulsando ao lado do título */
.mural-avisos-ponto {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--red2);
    margin-right: 0.3em;
    animation: mural-pulso 1.8s ease-in-out infinite;
}
@keyframes mural-pulso {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(192,57,43,0.35); }
    50%      { opacity: 0.6; box-shadow: 0 0 0 5px rgba(192,57,43,0); }
}

.mural-aviso-track { position: relative; min-height: 92px; }
.mural-aviso { display: none; }
.mural-aviso.ativo { display: block; animation: mural-fade 0.4s ease; }
@keyframes mural-fade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mural-aviso strong { color: var(--navy); }
.mural-aviso .mural-data { font-size: 0.78em; color: #999; font-weight: 600; }
.mural-aviso p { margin-top: 0.25em; font-size: 0.9em; color: #444; line-height: 1.6; }

.mural-aviso-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    margin-top: 0.7em;
    font-size: 0.85em;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
}
.mural-aviso-link:hover { color: var(--red2); }
.mural-aviso-link i { font-size: 0.78em; transition: transform 0.15s ease; }
.mural-aviso-link:hover i { transform: translateX(3px); }

.mural-aviso-dots {
    display: flex;
    margin-top: 0.4em;
    padding-top: 0.6em;
    border-top: 1px solid #eee;
}
/* botão com 24x24 de área de toque; a bolinha visível continua pequena (::after) */
.mural-aviso-dot {
    position: relative;
    width: 24px; height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}
.mural-aviso-dot::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #ddd;
    transform: translate(-50%, -50%);
    transition: background 0.2s ease, transform 0.2s ease;
}
.mural-aviso-dot:hover::after { background: #bbb; }
.mural-aviso-dot.ativo::after { background: var(--gold); transform: translate(-50%, -50%) scale(1.35); }

@media (prefers-reduced-motion: reduce) {
    .mural-avisos-ponto { animation: none; }
    .mural-aviso.ativo { animation: none; }
}

@media (max-width: 720px) {
    .mural-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   CALENDÁRIO — lista viva + .ics
   ========================================================= */
.agenda-ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.agenda-item {
    display: flex;
    align-items: center;
    gap: 0.9em;
    background: rgba(255,255,255,0.96) !important;
    border-left: 5px solid var(--gold) !important;
    border-radius: 8px !important;
    padding: 0.85em 1.2em !important;
    margin-bottom: 0.65em !important;
    box-shadow: 0 3px 16px rgba(0,0,0,0.12);
    font-family: var(--fn);
}
.agenda-item.agenda-prox { border-left-color: var(--navy) !important; background: #fff !important; }
.agenda-ic { font-size: 1.4em; flex-shrink: 0; }
.agenda-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.agenda-txt strong { color: var(--red); font-size: 0.98em; }
.agenda-txt span { color: #666; font-size: 0.82em; }
.agenda-badge {
    align-self: flex-start;
    background: var(--navy);
    color: #fff;
    font-size: 0.66em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.15em 0.55em;
    border-radius: 5px;
    margin-bottom: 0.25em;
}
.agenda-add {
    flex-shrink: 0;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--fn);
    font-weight: 700;
    font-size: 0.76em;
    padding: 0.55em 0.85em;
    cursor: pointer;
    transition: background 0.2s ease;
}
.agenda-add:hover { background: var(--red2); }
.agenda-passados { margin-top: 1em; }
.agenda-passados summary {
    color: rgba(255,255,255,0.85);
    font-family: var(--fn);
    font-weight: 600;
    font-size: 0.85em;
    cursor: pointer;
    margin-bottom: 0.8em;
}
.agenda-passados .agenda-item { opacity: 0.7; }
.agenda-vazio { color: rgba(255,255,255,0.8); font-family: var(--fn); text-align: center; }

@media (max-width: 560px) {
    .agenda-item { flex-wrap: wrap; }
    .agenda-add { width: 100%; margin-top: 0.5em; }
}

/* =========================================================
   #estrutura — DE ONDE VIEMOS (árvore da organização)
   Mundial (WOSM) -> UEB -> Região SC -> Grupo -> Seções
   Visual "premium": fundo navy profundo, cards glassy,
   conectores animados e o card do grupo com brilho dourado.
   ========================================================= */
#estrutura {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding-top: 5.5em;
    padding-bottom: 5em;
    background:
        radial-gradient(1100px 520px at 50% -8%, rgba(30, 77, 183, 0.35), transparent 60%),
        linear-gradient(180deg, #0a1226 0%, #0d1a38 45%, #0a1226 100%);
    color: #fff;
    border-top: 1px solid rgba(242, 201, 76, 0.35);
}
#estrutura > .container { max-width: 780px; margin: 0 auto; position: relative; z-index: 1; }

/* camada decorativa: pontinhos tipo "constelação / mapa" */
#estrutura .estrutura-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.4px);
    background-size: 34px 34px;
    mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 20%, transparent 75%);
}

/* --- CABEÇALHO --- */
#estrutura .estrutura-header { text-align: center; margin-bottom: 3em; }
#estrutura .estrutura-kicker {
    display: inline-block;
    font-family: var(--fn);
    font-weight: 700;
    font-size: 0.72em;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(242, 201, 76, 0.4);
    border-radius: 30px;
    padding: 0.45em 1.1em;
    margin-bottom: 1em;
}
#estrutura .estrutura-header h2 {
    color: #fff;
    font-family: var(--fn);
    font-weight: 800;
    font-size: clamp(1.7em, 4.5vw, 2.4em);
    margin: 0 0 0.5em;
}
#estrutura .estrutura-intro {
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.72);
}

/* --- A ÁRVORE (degraus verticais) --- */
.estrutura-arvore {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nivel {
    position: relative;
    width: 100%;
    max-width: 580px;
    display: flex;
    gap: 1.1em;
    align-items: flex-start;
    text-align: left;
    padding: 1.5em 1.6em;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 24px 48px -18px rgba(0, 0, 0, 0.6);
    transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}
.nivel:not(.aqui):hover {
    transform: translateY(-3px);
    border-color: rgba(30, 77, 183, 0.55);
    background: rgba(255, 255, 255, 0.07);
}

/* número fantasma */
.nivel-num {
    position: absolute;
    top: 0.15em;
    right: 0.4em;
    font-family: var(--fn);
    font-weight: 800;
    font-size: 3.4em;
    line-height: 1;
    color: rgba(255, 255, 255, 0.06);
    letter-spacing: -2px;
    pointer-events: none;
}

/* conector animado entre níveis */
.estrutura-arvore .nivel:not(:last-child) { margin-bottom: 2.6em; }
.nivel:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2.6em;
    width: 2px;
    height: 2.6em;
    transform: translateX(-50%);
    background-image: linear-gradient(
        to bottom,
        var(--gold) 0%,
        rgba(242, 201, 76, 0.15) 45%,
        rgba(242, 201, 76, 0.15) 55%,
        var(--blue) 100%
    );
    background-size: 100% 220%;
    background-position: 0 0;
    animation: nivel-flow 2.4s linear infinite;
}
.nivel:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2.6em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    transform: translateX(-50%);
    box-shadow: 0 0 10px 2px rgba(242, 201, 76, 0.7);
    animation: nivel-dot 2.4s linear infinite;
}
@keyframes nivel-flow {
    to { background-position: 0 -220%; }
}
@keyframes nivel-dot {
    0%   { top: calc(100% - 0.4em); opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.nivel-badge {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6em;
    border-radius: 14px;
    background: linear-gradient(140deg, var(--blue), #16234a);
    box-shadow: 0 10px 22px -6px rgba(30, 77, 183, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nivel-corpo { flex: 1; min-width: 0; }
.nivel-corpo h3 {
    font-family: var(--fn);
    font-weight: 800;
    font-size: 1.05em;
    margin: 0 0 0.2em;
    color: #fff;
}
.nivel-sub {
    display: block;
    font-family: var(--fn);
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6em;
}
.nivel-corpo p {
    font-size: 0.92em;
    line-height: 1.65;
    margin: 0 0 0.6em;
    color: rgba(255, 255, 255, 0.72);
}
.nivel-gente {
    list-style: none;
    margin: 0.4em 0 0;
    padding: 0.8em 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85em;
}
.nivel-gente li { margin: 0.3em 0; color: rgba(255, 255, 255, 0.62); }
.nivel-gente strong { color: #fff; font-weight: 700; }

/* nível "você está aqui" = nosso grupo — a estrela do bloco */
.nivel.aqui {
    border: 1px solid rgba(242, 201, 76, 0.55);
    background: linear-gradient(160deg, rgba(242, 201, 76, 0.18), rgba(242, 201, 76, 0.03));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(242, 201, 76, 0.25),
        0 0 70px -12px rgba(242, 201, 76, 0.55);
    transform: scale(1.03);
    animation: aqui-pulse 3.4s ease-in-out infinite;
}
@keyframes aqui-pulse {
    0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 0 0 1px rgba(242,201,76,0.25), 0 0 70px -14px rgba(242,201,76,0.45); }
    50%      { box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 0 0 1px rgba(242,201,76,0.4),  0 0 90px -8px  rgba(242,201,76,0.7); }
}
.nivel.aqui .nivel-badge {
    background: linear-gradient(140deg, var(--gold), #d99e12);
    box-shadow: 0 10px 24px -6px rgba(242, 201, 76, 0.8);
}
.nivel.aqui h3 { color: #fff; }
.nivel.aqui .nivel-sub { color: #ffe9a8; }
.nivel.aqui p { color: rgba(255, 255, 255, 0.85); }
.nivel-aqui-tag {
    display: inline-block;
    background: linear-gradient(120deg, var(--red2), #7a1414);
    color: #fff;
    font-family: var(--fn);
    font-weight: 800;
    font-size: 0.62em;
    letter-spacing: 1.5px;
    padding: 0.4em 0.8em;
    border-radius: 20px;
    margin-bottom: 0.6em;
    box-shadow: 0 6px 16px -4px rgba(192, 57, 43, 0.7);
}

/* revelação em cascata quando a seção entra na tela */
#estrutura .nivel { opacity: 0; transform: translateY(26px) scale(0.98); }
#estrutura.show .nivel {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
#estrutura.show .nivel.aqui { transform: translateY(0) scale(1.03); }
#estrutura.show .nivel:nth-child(1) { transition-delay: 0.05s; }
#estrutura.show .nivel:nth-child(2) { transition-delay: 0.18s; }
#estrutura.show .nivel:nth-child(3) { transition-delay: 0.31s; }
#estrutura.show .nivel:nth-child(4) { transition-delay: 0.44s; }
#estrutura.show .nivel:nth-child(5) { transition-delay: 0.57s; }

/* --- ORGANOGRAMA DO GRUPO (pessoas) --- */
.estrutura-grupo { margin-top: 3.5em; }
.estrutura-grupo > h3 {
    text-align: center;
    font-family: var(--fn);
    font-weight: 800;
    color: #fff;
    font-size: 1.3em;
    margin-bottom: 0.4em;
}

.org-linha {
    display: flex;
    align-items: center;
    gap: 1em;
    font-family: var(--fn);
    font-weight: 700;
    font-size: 0.72em;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin: 2.4em 0 1.2em;
}
.org-linha::before,
.org-linha::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(242, 201, 76, 0.4), transparent);
}

.pessoa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1em;
}
.pessoa-grid.centro { max-width: 560px; margin: 0 auto; }

.pessoa {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.3em 0.9em;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.pessoa:hover {
    transform: translateY(-4px);
    border-color: rgba(242, 201, 76, 0.5);
    background: rgba(255, 255, 255, 0.08);
}
.pessoa-avatar {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    margin: 0 auto 0.7em;
    background: linear-gradient(135deg, var(--blue), #16234a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fn);
    font-weight: 800;
    font-size: 1.2em;
    overflow: hidden;
    box-shadow: 0 0 0 2px rgba(242, 201, 76, 0.35), 0 8px 20px -6px rgba(0, 0, 0, 0.6);
}
.pessoa-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pessoa strong {
    display: block;
    font-family: var(--fn);
    color: #fff;
    font-size: 0.95em;
    margin-bottom: 0.15em;
}
.pessoa span { font-size: 0.78em; color: rgba(255, 255, 255, 0.6); }

.secao-bloco {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1.1em 1.3em 1.1em 1.5em;
    margin-bottom: 0.9em;
    text-align: left;
    overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease;
}
.secao-bloco::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(var(--blue), #16234a);
}
.secao-bloco.vermelho::before { background: linear-gradient(var(--red2), #7a1414); }
.secao-bloco:hover { transform: translateX(4px); background: rgba(255, 255, 255, 0.08); }
.secao-bloco h4 {
    font-family: var(--fn);
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.15em;
    font-size: 1em;
}
.secao-ramo {
    display: block;
    font-family: var(--fn);
    font-size: 0.68em;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5em;
}
.secao-bloco p { margin: 0; font-size: 0.86em; color: rgba(255, 255, 255, 0.6); }
.secao-bloco .secao-equipe { margin: 0.2em 0; }
.secao-bloco .secao-equipe strong { color: #fff; font-weight: 700; }

/* --- SELO DE FECHO --- */
.estrutura-selo {
    position: relative;
    margin-top: 3.5em;
    border-radius: 20px;
    padding: 2.6em 1.8em 2.2em;
    text-align: center;
    background: linear-gradient(160deg, #1f5d34, #123b22);
    border: 1px solid rgba(242, 201, 76, 0.4);
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.estrutura-selo-emblema {
    width: 62px;
    height: 62px;
    margin: 0 auto 0.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9em;
    border-radius: 50%;
    background: rgba(242, 201, 76, 0.15);
    border: 1px solid rgba(242, 201, 76, 0.5);
}
.estrutura-selo h3 {
    color: #fff;
    font-family: var(--fn);
    font-weight: 800;
    font-size: 1.35em;
    margin: 0 0 0.5em;
}
.estrutura-selo p {
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.75;
    font-size: 0.94em;
    color: rgba(255, 255, 255, 0.82);
}
.estrutura-selo-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6em;
    margin-top: 1.4em;
}
.estrutura-selo-chips span {
    font-family: var(--fn);
    font-weight: 600;
    font-size: 0.74em;
    letter-spacing: 0.5px;
    color: #ffe9a8;
    padding: 0.4em 0.9em;
    border-radius: 20px;
    border: 1px solid rgba(242, 201, 76, 0.45);
    background: rgba(242, 201, 76, 0.08);
}

@media (max-width: 560px) {
    #estrutura { padding-left: 1em; padding-right: 1em; }
    .nivel { flex-direction: column; align-items: flex-start; padding: 1.3em 1.2em; }
    .nivel.aqui, #estrutura.show .nivel.aqui { transform: none; }
    .nivel-num { font-size: 2.6em; opacity: 0.7; }
    .pessoa-grid.centro { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    .nivel:not(:last-child)::after,
    .nivel:not(:last-child)::before,
    .nivel.aqui { animation: none; }
    #estrutura .nivel { opacity: 1; transform: none; }
    #estrutura.show .nivel.aqui { transform: scale(1.03); }
}

/* =========================================================
   CHAMADA FINAL — CTA no rodapé da página Escotismo
   ========================================================= */
#cta-final {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 55%, var(--blue) 100%);
    padding: 5em 1.5em 5.5em;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
#cta-final::before {
    content: '';
    position: absolute;
    top: 50%; right: -8%;
    width: 460px; height: 460px;
    transform: translateY(-50%);
    background: url('../../images/brasao.png') center / contain no-repeat;
    opacity: 0.06;
    pointer-events: none;
}
#cta-final .container {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 0 auto;
}
#cta-final h2 {
    font-family: var(--fn);
    font-weight: 800;
    color: #fff;
    font-size: clamp(1.6em, 4.5vw, 2.1em);
    margin: 0;
}
#cta-final h2::after {
    content: '';
    display: block;
    width: 60px; height: 4px;
    background: var(--gold);
    border-radius: 2px;
    margin: 0.5em auto 0;
}
#cta-final p {
    font-family: var(--fn);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.65;
    margin: 1em auto 2em;
}
#cta-final .cta-final-botoes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
}




