/* Estilos do site Clube Gramado da Serra */
:root{--navy:#174b2b;--blue:#287a43;--red:#d93636;--gold:#e5c65a;--ink:#183323;--muted:#647568;--paper:#f7faf7;--white:#fff}
    *{box-sizing:border-box;margin:0;padding:0}
    html{scroll-behavior:smooth;scroll-padding-top:82px}
    body{font-family:'DM Sans',sans-serif;color:var(--ink);background:var(--paper);line-height:1.6}
    a{color:inherit;text-decoration:none}
    .topline{height:5px;background:linear-gradient(90deg,var(--blue) 0 25%,var(--white) 25% 50%,var(--red) 50% 75%,var(--gold) 75%)}
    header{height:78px;background:rgba(13,36,67,.97);color:white;display:flex;align-items:center;justify-content:space-between;padding:0 max(5vw,24px);position:sticky;top:0;z-index:10;box-shadow:0 8px 28px #06172c22}
    .brand{display:flex;align-items:center;gap:12px;font-weight:800;letter-spacing:.04em}
    .brand-mark{width:43px;height:43px;border:2px solid var(--gold);display:grid;place-items:center;clip-path:polygon(50% 0,100% 18%,88% 78%,50% 100%,12% 78%,0 18%);font-family:'Barlow Condensed';font-size:22px;color:var(--gold)}
    .brand small{display:block;font-size:9px;letter-spacing:.2em;color:#b9c9dc;font-weight:600}
    nav{display:flex;gap:27px;align-items:center;font-size:13px;font-weight:700;color:#e4ebf4}
    nav a{transition:.2s}nav a:hover{color:var(--gold)}
    .nav-cta{padding:10px 17px;border:1px solid #ffffff66;border-radius:4px}
    .hero{min-height:660px;position:relative;display:flex;align-items:center;overflow:hidden;color:white;background:linear-gradient(90deg,rgba(7,24,46,.94) 0%,rgba(8,31,57,.78) 48%,rgba(8,31,57,.22) 100%),url('https://images.unsplash.com/photo-1478131143081-80f7f84ca84d?auto=format&fit=crop&w=2000&q=85') center 52%/cover}
    .hero:after{content:"";position:absolute;inset:auto 0 0;height:9px;background:linear-gradient(90deg,var(--blue) 0 25%,var(--white) 25% 50%,var(--red) 50% 75%,var(--gold) 75%)}
    .hero-inner{width:min(1120px,90%);margin:auto;padding:80px 0;position:relative;z-index:1}
    .eyebrow{font-size:11px;letter-spacing:.25em;text-transform:uppercase;color:var(--gold);font-weight:700;display:flex;align-items:center;gap:12px}
    .eyebrow:before{content:"";width:35px;height:2px;background:var(--gold)}
    h1,h2,h3,.number{font-family:'Barlow Condensed',sans-serif;text-transform:uppercase}
    h1{font-size:clamp(58px,9vw,112px);line-height:.88;letter-spacing:.015em;margin:25px 0 22px;max-width:760px}
h1 span{color:var(--gold);display:inline}    .hero p{font-size:17px;color:#e0e8f2;max-width:490px;margin-bottom:32px}
    .actions{display:flex;gap:13px;flex-wrap:wrap}
    .btn{display:inline-flex;align-items:center;justify-content:center;padding:14px 22px;border-radius:3px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;transition:.2s}
    .btn-gold{background:var(--gold);color:#17263b}.btn-gold:hover{background:#ffd66a;transform:translateY(-2px)}
    .btn-outline{border:1px solid #ffffff88;color:white}.btn-outline:hover{background:#ffffff18}
    .hero-note{position:absolute;right:5vw;bottom:52px;z-index:1;color:#fff9;font-size:10px;letter-spacing:.18em;text-transform:uppercase;writing-mode:vertical-rl}
    .stats{background:var(--navy);color:white;display:grid;grid-template-columns:repeat(3,1fr);padding:28px max(5vw,24px);gap:20px}
    .stat{text-align:center;border-right:1px solid #ffffff26}.stat:last-child{border:0}.stat strong{font:700 36px 'Barlow Condensed';color:var(--gold);display:block}.stat span{font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:#c4d1e0}
    section{padding:100px max(5vw,24px)}
    .section-wrap{max-width:1120px;margin:auto}
    .section-head{margin-bottom:45px}.section-head .eyebrow{color:var(--red)}.section-head h2{font-size:clamp(42px,6vw,64px);line-height:.98;margin-top:14px;color:var(--navy)}.section-head p{color:var(--muted);max-width:570px;margin-top:15px;font-size:15px}
    .history-grid{display:grid;grid-template-columns:1fr 1fr;gap:65px;align-items:center}
    .history-art{min-height:410px;background:linear-gradient(145deg,#153b68,#0b203b);position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;color:white;padding:35px}
    .history-art:before,.history-art:after{content:"";position:absolute;border:1px solid #ffffff24;transform:rotate(45deg);width:330px;height:330px}
    .history-art:after{width:250px;height:250px;border-color:#f2bd3866}
    .history-art-content{position:relative;z-index:1;text-align:center}.history-art .year{font:800 clamp(75px,11vw,120px)/.9 'Barlow Condensed';color:var(--gold)}.history-art p{font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:#d8e2ee;margin-top:15px}
    .history-copy h3{font-size:34px;color:var(--navy);margin-bottom:15px}.history-copy p{color:#526176;margin:0 0 15px;font-size:14px}.history-copy .highlight{border-left:4px solid var(--red);padding:14px 18px;background:white;color:var(--navy);font-weight:700;margin-top:24px}
    .values{background:#eaf0f6}.values-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.value{background:white;padding:26px 22px;min-height:190px;border-top:4px solid var(--value);box-shadow:0 8px 25px #102c5209}.swatch{width:32px;height:32px;background:var(--value);border-radius:50%;margin-bottom:19px}.value h3{font-size:24px;color:var(--navy);margin-bottom:5px}.value p{font-size:12px;color:var(--muted)}
    .activities-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.activity{background:white;padding:28px;border:1px solid #e4eaf1;transition:.2s}.activity:hover{transform:translateY(-5px);box-shadow:0 15px 35px #102c5212}.activity .icon{width:43px;height:43px;display:grid;place-items:center;background:#edf3fa;color:var(--blue);font-size:21px;margin-bottom:20px}.activity h3{font-size:25px;color:var(--navy);margin-bottom:8px}.activity p{font-size:13px;color:var(--muted)}
    .purpose{background:var(--navy);color:white;position:relative;overflow:hidden}.purpose:before{content:"";position:absolute;width:420px;height:420px;border:1px solid #ffffff12;border-radius:50%;right:-120px;top:-170px;box-shadow:0 0 0 45px #ffffff08,0 0 0 90px #ffffff05}.purpose .section-head h2{color:white}.purpose .section-head p{color:#c1cddd}.purpose-quote{max-width:850px;font:600 clamp(29px,5vw,49px)/1.12 'Barlow Condensed';text-transform:uppercase;position:relative;z-index:1}.purpose-quote span{color:var(--gold)}
    .team-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.person{background:white;padding:23px 20px;border-bottom:3px solid var(--gold)}.person .initial{width:42px;height:42px;background:var(--navy);color:var(--gold);display:grid;place-items:center;font:700 20px 'Barlow Condensed';margin-bottom:15px}.person h3{font-size:21px;color:var(--navy)}.person p{font-size:11px;color:var(--muted);margin-top:3px}
    .contact{background:#eaf0f6}.contact-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:50px}.contact-card{background:var(--navy);color:white;padding:35px}.contact-card h3{font-size:32px;margin-bottom:18px}.contact-row{padding:14px 0;border-bottom:1px solid #ffffff24}.contact-row:last-child{border:0}.contact-row small{display:block;color:#aebed1;font-size:10px;letter-spacing:.15em;text-transform:uppercase}.contact-row strong{font-size:14px}.contact-text{align-self:center}.contact-text h3{font:700 35px 'Barlow Condensed';color:var(--navy);margin-bottom:12px}.contact-text p{font-size:14px;color:var(--muted);margin-bottom:20px}
    footer{background:#091b31;color:#aab9cb;padding:28px max(5vw,24px);display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;font-size:11px}footer strong{color:white;letter-spacing:.08em}
    .reveal{opacity:0;transform:translateY(18px);transition:opacity .65s ease,transform .65s ease}.reveal.visible{opacity:1;transform:none}
@media(max-width:800px){
    header nav a:not(.nav-cta){display:block}
    nav{gap:13px}
    .hero{min-height:610px;background-position:58% center}
    .history-grid,.contact-grid{grid-template-columns:1fr;gap:30px}
    .values-grid,.team-grid{grid-template-columns:repeat(2,1fr)}
    .activities-grid{grid-template-columns:1fr 1fr}
    .history-art{min-height:300px}
}    @media(max-width:520px){header{height:68px}.brand{font-size:12px}.brand-mark{width:37px;height:37px}.hero-inner{padding:65px 0}.hero{min-height:420px !important}.hero p{font-size:15px}.stats{padding:22px 12px;gap:5px}.stat strong{font-size:29px}.stat span{font-size:8px;letter-spacing:.1em}section{padding:72px 22px}.values-grid,.activities-grid,.team-grid{grid-template-columns:1fr 1fr}.value{padding:19px 15px;min-height:175px}.activity{padding:20px 16px}.person{padding:18px 14px}.contact-card{padding:26px 22px}.hero-note{display:none}}

    /* Identidade visual do Gramado da Serra: verde e branco */
    body{background:#f7faf7;color:#183323}
    .topline,.hero:after{background:linear-gradient(90deg,#174b2b 0 50%,#fff 50% 100%)}
    header{background:#fff;color:#174b2b;box-shadow:0 5px 24px #174b2b12}
    .brand{color:#174b2b}
    .brand small{color:#718675}
    .club-logo{width:54px;height:54px;object-fit:contain;border-radius:50%;background:#fff;border:1px solid #e1ebe2}
    nav{color:#365b40} nav a:hover{color:#287a43}
    .nav-cta{border-color:#287a43;color:#174b2b}
    .hero{background:linear-gradient(90deg,rgba(10,49,27,.93) 0%,rgba(15,65,34,.76) 48%,rgba(15,65,34,.18) 100%),url('../img/capa.jpg') center 52%/cover}
    .eyebrow{color:#d6e9d8}
    h1 span{color:#b9e0bd}
    .btn-gold{background:#287a43;color:#fff}.btn-gold:hover{background:#1d6335}
    .stats{background:#174b2b}.stat strong{color:#c5e2c8}
    .section-head .eyebrow{color:#287a43}.section-head h2,.history-copy h3,.activity h3,.contact-text h3{color:#174b2b}
    .history-art{background:linear-gradient(145deg,#287a43,#123b22)}
    .history-art .year{color:#d3ebd5}
    .history-copy .highlight{border-left-color:#287a43;color:#174b2b;background:#edf5ee}
    .values{background:#edf5ee}
    .value{box-shadow:0 8px 25px #174b2b0b;border-top-color:var(--value)}
    .activity{border-color:#e0ebe1}.activity .icon{background:#edf5ee;color:#287a43}
    .purpose{background:#174b2b}.purpose-quote span{color:#c5e2c8}
    .person{border-bottom-color:#287a43}.person .initial{background:#e8f2e9;color:#174b2b}
    .contact{background:#edf5ee}.contact-card{background:#174b2b}
    footer{background:#10351e}
    .hero-logo{width:112px;height:112px;object-fit:contain;background:#fff;border-radius:50%;padding:7px;margin-bottom:28px;box-shadow:0 12px 35px #061b0e55}
    @media(max-width:520px){.club-logo{width:43px;height:43px}.hero-logo{width:88px;height:88px}}
.person-photo {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
    margin-bottom: 18px;
    display: block;
}

/* GALERIA DE ÁLBUNS */

.albums-section {
    padding: 90px 0;
    background: #fff;
}

.albums-section h2 {
    font-size: clamp(42px, 6vw, 68px);
    margin: 15px 0;
}

.albums-section h2 span {
    color: var(--green);
}

.albums-intro {
    max-width: 600px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 40px;
}

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

.album-card {
    background: #fff;
    border: 1px solid #e5eae5;
    border-radius: 14px;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .09);
}

.album-cover {
    height: 190px;
    background: linear-gradient(135deg, #174d2c, #438b54);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .85);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 65px;
    font-weight: bold;
}

.album-info {
    padding: 22px;
}

.album-info h3 {
    font-size: 21px;
    margin: 0 0 12px;
    color: #183c26;
    text-transform: uppercase;
}

.album-info p {
    color: #777;
    font-size: 14px;
    margin: 0;
}

@media (max-width: 850px) {
    .albums-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .albums-grid {
        grid-template-columns: 1fr;
    }
}

.album-card {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.album-cover {
    overflow: hidden;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}

.album-card:hover .album-cover img {
    transform: scale(1.06);
}

/* ESPAÇOS DAS FOTOS DOS ÁLBUNS */

.album-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 40px;
}

.photo-placeholder {
    aspect-ratio: 4 / 3;
    background: #edf2ed;
    border: 2px dashed #b7c9b9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #739078;
    font-size: 14px;
}

@media (max-width: 800px) {
    .album-photos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .album-photos {
        grid-template-columns: 1fr;
    }
}

/* DESTAQUE DA ABA ATUAL */

nav a.active {
    color: var(--green) !important;
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
}
nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 4px;
    background: #39a852;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(57, 168, 82, 0.7);
}
/* DESBRAVATECA */
.library-section {
    background: #f7faf7;
}

.library-intro {
    margin-bottom: 45px;
}

.library-intro h2 {
    font: 700 clamp(38px, 6vw, 58px)/1 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    color: #174b2b;
    margin: 15px 0;
}

.library-intro h2 span {
    color: #287a43;
}

.library-intro p {
    color: #647568;
    max-width: 550px;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.library-card {
    background: #fff;
    padding: 35px;
    border: 1px solid #e0ebe1;
    border-radius: 8px;
    transition: .25s;
}

.library-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px #174b2b15;
    border-color: #287a43;
}

.library-icon {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    background: #edf5ee;
    border-radius: 10px;
    font-size: 27px;
    margin-bottom: 22px;
}

.library-card h3 {
    font: 700 27px 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    color: #174b2b;
    margin-bottom: 10px;
}

.library-card p {
    color: #647568;
    font-size: 14px;
    margin-bottom: 20px;
}

.library-card span {
    color: #287a43;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

@media(max-width:600px) {
    .library-grid {
        grid-template-columns: 1fr;
    }

    .library-card {
        padding: 27px;
    }
}
/* BIBLIOTECA DE MATERIAIS */
.material-category {
    margin-top: 55px;
}

.material-category > h2 {
    font: 700 34px 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    color: #174b2b;
    border-bottom: 2px solid #dceadd;
    padding-bottom: 12px;
    margin-bottom: 25px;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 25px;
}

.material-card {
    display: block;
    text-align: center;
    color: #174b2b;
    transition: .2s;
}

.material-card:hover {
    transform: translateY(-5px);
}

.material-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 7px;
    background: #eaf2eb;
    border: 1px solid #dceadd;
}

.material-card h3 {
    font: 700 19px 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    margin-top: 12px;
}

.material-card p {
    font-size: 12px;
    color: #647568;
}

@media(max-width: 520px) {
    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}
/* ORGANIZAÇÃO DA DESBRAVATECA */

/* Cada categoria ocupa a largura inteira */
.material-category {
    display: block;
    width: 100%;
    clear: both;
}

/* Classes: 4 por fileira */
#classes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}

/* Livros: 4 por fileira */
#livros {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}

/* Manuais: 3 lado a lado, abaixo dos livros */
#manuais {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

/* Capas */
.material-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

/* Celulares */
@media (max-width: 520px) {
    #classes,
    #livros,
    #manuais {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* PADRONIZAR TAMANHO DAS CAPAS */
#classes .material-cover,
#livros .material-cover,
#manuais .material-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

#livros .material-card,
#manuais .material-card {
    max-width: 100%;
}
/* MESMA LARGURA DE CAPAS EM TODAS AS CATEGORIAS */
#classes,
#livros,
#manuais {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 25px;
}

#manuais .material-card {
    max-width: none;
}

#classes .material-cover,
#livros .material-cover,
#manuais .material-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}
/* TAMANHO PADRONIZADO DAS CAPAS */
#classes,
#livros,
#manuais {
    align-items: start;
}

#classes .material-card,
#livros .material-card,
#manuais .material-card {
    width: 100%;
    max-width: 220px;
    justify-self: center;
}

#classes .material-cover,
#livros .material-cover,
#manuais .material-cover {
    display: block;
    width: 100%;
    height: 270px;
    aspect-ratio: auto;
    object-fit: cover;
}
/* MENU RESPONSIVO PARA CELULAR */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #174b2b;
    font-size: 30px;
    cursor: pointer;
}

@media (max-width: 768px) {
    header {
        position: relative;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 18px;
    }

    .menu-toggle {
        display: block;
    }

    header nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 8px 15px #174b2b20;
        flex-direction: column;
        gap: 18px;
        align-items: flex-start;
    }

    header nav.open {
        display: flex;
    }

    header nav a {
        width: 100%;
        padding: 8px 0;
    }
}
/* AJUSTE DA FOTO INICIAL NO CELULAR */
@media (max-width: 520px) {
    .hero {
        min-height: 420px !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    .hero-inner {
        padding: 40px 0 !important;
    }
}
/* CAPAS DA DESBRAVATECA NO CELULAR */
@media (max-width: 520px) {
    #classes,
    #livros,
    #manuais {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }

    #classes .material-card,
    #livros .material-card,
    #manuais .material-card {
        max-width: 100%;
    }

    #classes .material-cover,
    #livros .material-cover,
    #manuais .material-cover {
        width: 100%;
        height: auto;
        aspect-ratio: 2 / 3;
        object-fit: contain;
    }
}
@media (max-width: 520px) {
    #classes,
    #livros,
    #manuais {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    #classes .material-card,
    #livros .material-card,
    #manuais .material-card {
        width: 100%;
        max-width: 100%;
    }

    #classes .material-cover,
    #livros .material-cover,
    #manuais .material-cover {
        width: 100%;
        height: auto;
        aspect-ratio: 2 / 3;
        object-fit: contain;
    }
}
@media (max-width: 520px) {
    .hero:after {
        display: none !important;
    }
}
@media (max-width: 520px) {
    .hero {
        background-size: cover !important;
        background-position: 65% center !important;
        min-height: 600px;
        width: 100%;
    }
}
@media (max-width: 520px) {
    .hero {
        background-image:
            linear-gradient(90deg, rgba(10,49,27,.78), rgba(10,49,27,.35)),
            url('../img/capa.jpg') !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        width: 100%;
        min-height: 600px;
    }
}
@media (max-width: 520px) {
    .hero {
        min-height: 420px !important;
        background-size: cover !important;
        background-position: center center !important;
    }

    .hero-inner {
        padding: 45px 0 !important;
    }
}
/* BANNER MENOR NO CELULAR */
@media (max-width: 520px) {
    .hero {
        height: 480px !important;
        min-height: 480px !important;
        background-size: auto 100% !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    .hero-inner {
        padding: 25px 0 !important;
    }

    .hero-logo {
        width: 65px !important;
        height: 65px !important;
        margin-bottom: 12px !important;
    }

    .hero h1 {
        font-size: 48px !important;
        margin: 14px 0 !important;
    }

    .hero p {
        font-size: 13px !important;
        margin-bottom: 18px !important;
    }
}
/* Imagem exclusiva da página Sobre */
body:has(nav a.active[href="sobre.html"]) .hero {
    background:
        linear-gradient(90deg, rgba(10,49,27,.80), rgba(15,65,34,.25)),
        url('../img/sobre.jpg') center 52%/cover;
}
@media (max-width: 800px) {
    body:has(nav a.active[href="sobre.html"]) .hero {
        background-image:
            linear-gradient(90deg, rgba(10,49,27,.80), rgba(15,65,34,.25)),
            url('../img/sobre.jpg') !important;
    }
}
/* Galeria: banner sem imagem de fundo */
body:has(nav a.active[href="galeria.html"]) .hero {
    background: linear-gradient(135deg, #174b2b, #287a43);
}

/* CONTAGEM REGRESSIVA - AJUSTE */
.contagem-campori {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 90px 20px;
}

.contagem-campori .eyebrow {
    text-align: center;
    font-size: 16px;
}

.contagem-campori h2 {
    font-size: clamp(36px, 5vw, 54px);
    text-align: center;
    margin: 15px 0;
}

.contagem-campori p {
    font-size: 19px;
    text-align: center;
}

.contador {
    width: 100%;
    max-width: 850px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin: 40px auto 0;
}

.contador div {
    flex: 1;
    max-width: 170px;
    padding: 25px 15px;
    text-align: center;
}

.contador span {
    font-size: clamp(42px, 6vw, 65px);
    display: block;
    font-weight: 800;
}

.contador small {
    display: block;
    font-size: 16px;
    margin-top: 8px;
}


@media (max-width: 600px) {
    .contador {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        gap: 6px;
        padding: 0 4px;
        box-sizing: border-box;
    }

    .contador div {
        flex: 1;
        min-width: 0;
        padding: 18px 2px;
    }

    .contador span {
        font-size: clamp(30px, 9vw, 42px);
    }

    .contador small {
        font-size: 11px;
    }
}

.logo-campori {
    display: block;
    width: 320px;
    max-width: 85%;
    height: auto;
    margin: 0 auto 25px;
    object-fit: contain;
}

@media (max-width: 600px) {
    .logo-campori {
        width: 270px;
    }
}
@media (max-width: 600px) {

    .logo-campori {
        width: 190px;
        max-width: 65%;
        margin-bottom: 20px;
    }

    .contador {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: 100%;
        gap: 5px;
        padding: 0 5px;
        box-sizing: border-box;
    }

    .contador div {
        flex: 1;
        min-width: 0;
        padding: 15px 2px;
    }

    .contador span {
        font-size: 28px;
    }

    .contador small {
        font-size: 10px;
    }
}

/* ========================================
   NOVA IDENTIDADE — FLORESTA PREMIUM
======================================== */

:root {
    --forest-dark: #0b2819;
    --forest: #123d27;
    --forest-mid: #1d5938;
    --forest-light: #34784b;
    --forest-glow: #4b9360;
    --text-light: #f5f8f3;
    --text-muted: #c2d3c5;
}

/* Fundo geral */
body {
    background: linear-gradient(
        135deg,
        #0b2819 0%,
        #123d27 35%,
        #174a30 70%,
        #0d3321 100%
    );
    color: var(--text-light);
}

/* Barra superior */
.topline {
    background: linear-gradient(
        90deg,
        #0b2819,
        #34784b,
        #8caf91,
        #34784b,
        #0b2819
    );
}

/* Cabeçalho */
header {
    background: linear-gradient(
        100deg,
        rgba(8, 34, 21, .98),
        rgba(20, 69, 43, .97),
        rgba(10, 43, 27, .98)
    );
    color: white;
    border-bottom: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 8px 30px rgba(0,0,0,.2);
}

.brand,
.brand small {
    color: white;
}

.brand small {
    opacity: .7;
}

.brand-mark {
    border-color: #dcebdd;
    color: white;
}

nav {
    color: #e7f0e8;
}

nav a:hover,
nav a.active {
    color: white !important;
}

.nav-cta {
    border-color: rgba(255,255,255,.45);
    color: white;
}

/* Fundo principal das páginas */
main {
    background: linear-gradient(
        180deg,
        #123d27 0%,
        #174a30 30%,
        #205b3a 65%,
        #123d27 100%
    );
}


/* FUNDOS COM VARIEDADE E TRANSIÇÕES */

section:not(.hero):not(.contagem-campori) {
    background: transparent;
    color: #f5f8f3;
}

/* Áreas com verde mais luminoso */
.values,
.contact {
    background: linear-gradient(
        135deg,
        #28633f,
        #19472e,
        #28633f
    );
}

/* Áreas claras para dar respiro */
.albums-section,
.library-section {
    background: linear-gradient(
        135deg,
        #e8f0e8,
        #f5f7f1,
        #dce9dd
    );
    color: #183323;
}

/* Cards continuam com contraste */
.value,
.activity,
.person,
.album-card,
.library-card {
    background: rgba(255,255,255,.96);
    color: #183323;
}


/* Títulos */
.section-head h2,
.history-copy h3,
.activity h3,
.contact-text h3,
.library-intro h2,
.material-category > h2 {
    color: white;
}

.section-head p,
.history-copy p,
.contact-text p,
.library-intro p {
    color: var(--text-muted);
}

/* Pequenos destaques */
.section-head .eyebrow {
    color: #b8d9be;
}

/* Rodapé */
footer {
    background: linear-gradient(
        100deg,
        #071d12,
        #103b25,
        #071d12
    );
    color: #d5e3d7;
}

/* Menu mobile */
@media (max-width: 768px) {
    header nav {
        background: linear-gradient(
            160deg,
            #123d27,
            #0b2819
        );
        color: white;
    }

    header nav a {
        color: white;
    }

    .menu-toggle {
        color: white;
    }
}

/* =====================================
   EQUILÍBRIO VISUAL — FLORESTA PREMIUM
===================================== */

/* Fundo geral */
body {
    background: #102f20;
}

/* Fundo principal sem pintar tudo de verde */
main {
    background: #102f20;
}

/* ÁREAS CLARAS */
section:has(.history-grid),
section:has(.activities-grid),
section:has(.team-grid),
.albums-section,
.library-section {
    background: linear-gradient(
        135deg,
        #edf4ed,
        #ffffff,
        #e3eee4
    ) !important;
    color: #183323 !important;
}

/* Textos das áreas claras */
section:has(.history-grid) h2,
section:has(.history-grid) h3,
section:has(.activities-grid) h2,
section:has(.activities-grid) h3,
section:has(.team-grid) h2,
section:has(.team-grid) h3,
.albums-section h2,
.albums-section h3,
.library-section h2,
.library-section h3,
.library-card h3,
.material-category > h2 {
    color: #174b2b !important;
}

section:has(.history-grid) p,
section:has(.activities-grid) p,
section:has(.team-grid) p,
.albums-section p,
.library-section p {
    color: #52675a !important;
}

/* DEGRADÊS VERDES — NO ESTILO DO MENU */
.values,
.purpose,
.contact-card,
.stats {
    background: linear-gradient(
        110deg,
        #082719,
        #174b30,
        #28633f,
        #103a26
    ) !important;
    color: white;
}

/* Textos das áreas escuras */
.values h2,
.values h3,
.purpose h2,
.contact-card h3 {
    color: white !important;
}

.values p,
.purpose p {
    color: #d6e5d8 !important;
}

/* Cards claros */
.value,
.activity,
.person,
.album-card,
.library-card {
    background: rgba(255,255,255,.94);
    color: #183323;
    border-color: #dce9dd;
}

.value h3,
.activity h3,
.person h3,
.album-info h3 {
    color: #174b2b;
}

.value p,
.activity p,
.person p,
.album-info p {
    color: #52675a;
}

/* Desbravateca */
.material-card h3 {
    color: #174b2b;
}

.material-card p {
    color: #52675a;
}

/* Contagem do Campori */
.contagem-campori {
    background: linear-gradient(
        110deg,
        #082719,
        #174b30,
        #28633f,
        #103a26
    );
    color: white;
}

.contagem-campori h2,
.contagem-campori p {
    color: white;
}

/* Botão do menu no celular */
@media (max-width: 768px) {
    header nav {
        background: linear-gradient(
            110deg,
            #082719,
            #174b30,
            #28633f,
            #103a26
        );
    }
}

/* ==========================================
   GRAMADO DA SERRA — FLORESTA PREMIUM V2
========================================== */

/* FUNDO GERAL */
body {
    background: linear-gradient(
        135deg,
        #0b2819,
        #17472e,
        #0d3321
    );
}

/* MENU — MANTER O DEGRADÊ */
header,
header nav {
    background: linear-gradient(
        110deg,
        #082719,
        #174b30,
        #28633f,
        #103a26
    );
}

header,
.brand,
.brand small,
nav,
nav a,
.menu-toggle {
    color: #ffffff;
}

/* DEGRADÊS DAS ÁREAS ESCURAS */
.stats,
.values,
.purpose,
.contact {
    background: linear-gradient(
        115deg,
        #09291a 0%,
        #174b30 35%,
        #28633f 70%,
        #103522 100%
    ) !important;
    color: #ffffff;
}

/* TÍTULOS E TEXTOS NAS ÁREAS ESCURAS */
.values .section-head h2,
.purpose .section-head h2,
.contact .section-head h2,
.values h3,
.purpose h3,
.contact h3,
.purpose-quote {
    color: #ffffff !important;
}

.values p,
.purpose p,
.contact p {
    color: #e0ece2 !important;
}

/* ÁREAS CLARAS COM DEGRADÊ */
section:has(.history-grid),
section:has(.activities-grid),
section:has(.team-grid),
.albums-section,
.library-section {
    background: linear-gradient(
        125deg,
        #e5eee5 0%,
        #ffffff 48%,
        #eaf2e9 100%
    ) !important;
    color: #183323 !important;
}

/* TÍTULOS NAS ÁREAS CLARAS */
section:has(.history-grid) h2,
section:has(.history-grid) h3,
section:has(.activities-grid) h2,
section:has(.activities-grid) h3,
section:has(.team-grid) h2,
section:has(.team-grid) h3,
.albums-section h2,
.albums-section h3,
.library-section h2,
.library-section h3 {
    color: #174b2b !important;
}

/* TEXTOS NAS ÁREAS CLARAS */
section:has(.history-grid) p,
section:has(.activities-grid) p,
section:has(.team-grid) p,
.albums-section p,
.library-section p {
    color: #425b49 !important;
}

/* SUBTÍTULOS DAS ÁREAS CLARAS */
section:has(.history-grid) .eyebrow,
section:has(.activities-grid) .eyebrow,
section:has(.team-grid) .eyebrow,
.albums-section .eyebrow,
.library-section .eyebrow {
    color: #28633f !important;
}

/* CARDS CLAROS */
.value,
.activity,
.person,
.album-card,
.library-card {
    background: linear-gradient(
        145deg,
        #ffffff,
        #f0f5ef
    ) !important;
    color: #183323 !important;
    border-color: #d5e4d6;
}

.value h3,
.activity h3,
.person h3,
.album-info h3,
.library-card h3 {
    color: #174b2b !important;
}

.value p,
.activity p,
.person p,
.album-info p,
.library-card p {
    color: #52675a !important;
}

/* DESTAQUES DOS CARDS */
.activity .icon,
.library-icon {
    background: linear-gradient(
        135deg,
        #dcebdd,
        #bcd8c1
    );
    color: #174b2b;
}

/* CONTATO */
.contact-text h3,
.contact-text p {
    color: #ffffff !important;
}

.contact-card {
    background: linear-gradient(
        135deg,
        #082719,
        #28633f,
        #123d27
    ) !important;
}

/* DESBRAVATECA */
.material-category > h2,
.material-card h3 {
    color: #174b2b !important;
}

.material-card p {
    color: #52675a !important;
}

/* CONTAGEM REGRESSIVA — FUNDO CLARO */
.contagem-campori {
    background: linear-gradient(
        120deg,
        #ffffff 0%,
        #edf4ed 45%,
        #ffffff 100%
    ) !important;
    color: #174b2b !important;
}

.contagem-campori h2,
.contagem-campori p {
    color: #174b2b !important;
}

.contagem-campori .eyebrow {
    color: #28633f !important;
}

.contagem-campori .eyebrow:before {
    background: #28633f;
}

/* CAIXAS DO CONTADOR */
.contador div {
    background: linear-gradient(
        145deg,
        #ffffff,
        #e3eee4
    );
    border: 1px solid #cbdccc;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(23,75,43,.10);
}

.contador span {
    color: #174b2b;
}

.contador small {
    color: #52675a;
}

/* LOGO DO CAMPORI */
.logo-campori {
    background: #ffffff;
    border-radius: 12px;
    padding: 5px;
}

/* RODAPÉ */
footer {
    background: linear-gradient(
        110deg,
        #071d12,
        #174b30,
        #0b2819
    );
    color: #e0ece2;
}

footer strong {
    color: #ffffff;
}
/* GALERIA — FUNDO VERDE EM DEGRADÊ */
.albums-section {
    background: linear-gradient(
        120deg,
        #0b2819 0%,
        #174b2e 35%,
        #286640 70%,
        #103522 100%
    ) !important;

    color: #f5f8f3 !important;
}

.albums-section h2,
.albums-section p,
.albums-section .eyebrow {
    color: #f5f8f3 !important;
}

/* MENU — DEGRADÊ EM TODA A BARRA */
header {
    background: linear-gradient(
        100deg,
        #092719 0%,
        #174b2e 45%,
        #286640 75%,
        #092719 100%
    ) !important;
    width: 100%;
}

header nav {
    background: transparent !important;
}

header nav a,
header .menu-toggle {
    background: transparent !important;
}
/* AJUSTE LEVE NO TAMANHO DA LOGO DO CAMPORI */
.logo-campori {
    width: 290px;
}
/* FOTOS DA DIRETORIA — PROPORÇÃO IGUAL NO CELULAR */
@media (max-width: 600px) {
    .person img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        object-position: center;
    }
}
/* ESTATÍSTICAS — INÍCIO */
.stats {
    background: linear-gradient(
        120deg,
        #e5eee5 0%,
        #f5f8f2 45%,
        #d8e7d9 100%
    ) !important;
    border: 1px solid #cbdccb;
    border-radius: 18px;
    padding: 30px 20px;
}

.stats > div {
    background: linear-gradient(
        145deg,
        #ffffff 0%,
        #edf4ed 100%
    ) !important;
    border: 1px solid #d5e3d5;
    border-radius: 14px;
    color: #174b2b !important;
    box-shadow: 0 5px 18px rgba(15, 55, 30, 0.08);
}

.stats strong,
.stats span,
.stats p,
.stats small {
    color: #174b2b !important;
}
/* GALERIA — CARTÕES E FUNDO */
.albums-section {
    background: linear-gradient(
        120deg,
        #e5eee5 0%,
        #f5f8f2 45%,
        #d8e7d9 100%
    ) !important;
    color: #174b2b !important;
}

.albums-section h2,
.albums-section p,
.albums-section .eyebrow {
    color: #174b2b !important;
}

.album-card {
    background: linear-gradient(
        145deg,
        #ffffff 0%,
        #edf4ed 100%
    ) !important;
    border: 1px solid #d5e3d5;
    color: #174b2b !important;
    box-shadow: 0 5px 18px rgba(15, 55, 30, 0.08);
}
/* GALERIA — CABEÇALHO VERDE PREMIUM */
body:has(nav a.active[href="galeria.html"]) .hero {
    background: linear-gradient(
        115deg,
        #092719 0%,
        #12452c 30%,
        #237047 65%,
        #0b3020 100%
    ) !important;
    color: #ffffff !important;
}

body:has(nav a.active[href="galeria.html"]) .hero h1,
body:has(nav a.active[href="galeria.html"]) .hero p {
    color: #ffffff !important;
}

/* GALERIA — FUNDO BRANCO NOS ÁLBUNS */
.albums-section {
    background: #ffffff !important;
    color: #183323 !important;
}

.albums-section h2,
.albums-section h3,
.albums-section p,
.albums-section .eyebrow {
    color: #183323 !important;
}

.album-card {
    background: #f7faf7 !important;
    color: #183323 !important;
    border: 1px solid #dce8dc !important;
}
/* GALERIA — ÁREA DOS ÁLBUNS TOTALMENTE BRANCA */
body:has(nav a.active[href="galeria.html"]) .albums-section {
    background: #ffffff !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #183323 !important;
}

body:has(nav a.active[href="galeria.html"]) .albums-section::before,
body:has(nav a.active[href="galeria.html"]) .albums-section::after {
    background: #ffffff !important;
    border: none !important;
}

body:has(nav a.active[href="galeria.html"]) .album-card {
    border: 1px solid #ffffff !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06) !important;
}
/* RODAPÉ PREMIUM */
.site-footer {
    background: linear-gradient(
        120deg,
        #071f14,
        #123d27 50%,
        #1d5938 100%
    );
    color: #f5f8f3;
    padding: 55px 7% 20px;
}

.footer-content {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 45px;
}

.site-footer h3 {
    color: #ffffff;
    font-size: 23px;
    margin-bottom: 15px;
}

.site-footer h4 {
    color: #d4e8d6;
    margin-bottom: 16px;
}

.site-footer p,
.site-footer a {
    color: #c4d6c7;
    font-size: 14px;
    line-height: 1.8;
}

.site-footer a {
    display: block;
    text-decoration: none;
    transition: color .2s, transform .2s;
}

.site-footer a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 35px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.18);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 650px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 28px 18px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ÍCONES SOCIAIS DO RODAPÉ */
.social-icons {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 18px;
}

.social-icons a {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(
        145deg,
        #286b46,
        #174b30
    );
    border: 1px solid rgba(255,255,255,.16);
    transition: .3s ease;
}

.social-icons a:hover {
    transform: translateY(-4px);
    background: linear-gradient(
        145deg,
        #39865a,
        #205d3b
    );
    box-shadow: 0 5px 18px rgba(55,140,85,.3);
}

.social-icons svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-icons svg path {
    fill: none;
}

.social-icons a:nth-child(2) svg {
    fill: #ffffff;
    stroke: none;
}

.social-icons svg .fill {
    fill: #ffffff;
    stroke: none;
}

/* RODAPÉ PRINCIPAL */
.site-footer {
    background: linear-gradient(
        135deg,
        #102f20 0%,
        #174b30 55%,
        #0d291c 100%
    );
    color: #f4f8f3;
    padding: 55px 8% 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 55px;
    padding-bottom: 40px;
}

.footer-brand h3 {
    font-size: 23px;
    letter-spacing: 1.5px;
    margin: 0 0 4px;
    color: #fff;
}

.footer-brand span {
    font-size: 10px;
    letter-spacing: 2px;
    color: #a9cbb2;
}

.footer-brand p {
    max-width: 300px;
    margin-top: 18px;
    color: #d0dfd3;
    line-height: 1.7;
    font-size: 14px;
}

.footer-links h4,
.footer-social h4 {
    color: #fff;
    font-size: 16px;
    margin: 0 0 18px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
}

.footer-links a {
    color: #d0dfd3;
    text-decoration: none;
    font-size: 14px;
    transition: .25s ease;
}

.footer-links a:hover {
    color: #8ed5a5;
    transform: translateX(4px);
}

/* REDES SOCIAIS */
.social-icons {
    display: flex;
    align-items: center;
    gap: 13px;
}

.social-icons a {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(145deg, #286b46, #174b30);
    border: 1px solid rgba(255,255,255,.16);
    transition: .3s ease;
}

.social-icons a:hover {
    transform: translateY(-4px);
    background: #347e50;
    box-shadow: 0 5px 18px rgba(55,140,85,.3);
}

.social-icons svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-icons a:nth-child(2) svg {
    fill: #fff;
    stroke: none;
}

.social-icons svg .fill {
    fill: #fff;
    stroke: none;
}

/* CRÉDITOS */
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
    color: #b9cdbd;
    font-size: 12px;
}

.footer-bottom strong {
    color: #fff;
}

/* CELULAR */
@media (max-width: 700px) {
    .site-footer {
        padding: 40px 7% 20px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 35px 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 380px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }
}
.facebook-icon {
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #ffffff;
    color: #174b30;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-family: Arial, sans-serif;
    font-size: 21px;
    font-weight: bold;
    line-height: 22px;
    overflow: hidden;
}
.logo-campori {
    width: 220px;
    max-width: 70%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}
@media (max-width: 768px) {
    header nav {
        background: linear-gradient(
            145deg,
            #174b30,
            #102f20
        ) !important;

        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 0 0 14px 14px;
        padding: 20px;
        z-index: 999;
    }

    header nav a {
        color: #ffffff !important;
    }
}
/* ANO DE FUNDAÇÃO DO CLUBE */
.stats {
    background: linear-gradient(
        135deg,
        #174b30 0%,
        #21633e 50%,
        #103b27 100%
    ) !important;
    border: none !important;
}

.stats > div {
    background: rgba(255, 255, 255, 0.10) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.stats,
.stats strong,
.stats span,
.stats p,
.stats small {
    color: #ffffff !important;
}
.stats .stat-item p,
.stats .stat-item span,
.stats .stat-item small {
    color: #ffffff !important;
}
/* JANELA DOS MATERIAIS */

.material-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.material-modal.is-open {
    display: flex;
}

.material-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
}

.material-modal-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    padding: 35px;
    border-radius: 18px;
    background: #f7f5ed;
    color: #173b29;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    animation: modalEntrada 0.2s ease;
}

.material-modal-dialog h2 {
    margin: 12px 0;
    font-size: 28px;
    color: #174b30;
}

.material-modal-dialog p {
    color: #526458;
    margin-bottom: 25px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 17px;
    border: none;
    background: transparent;
    color: #174b30;
    font-size: 30px;
    cursor: pointer;
}

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

.modal-actions a {
    display: block;
    padding: 14px;
    border-radius: 9px;
    text-decoration: none;
    font-weight: 700;
    background: #174b30;
    color: white;
    transition: 0.2s;
}

.modal-actions a:hover {
    background: #236b43;
    transform: translateY(-2px);
}

.modal-actions a:last-child {
    background: #e2e9e1;
    color: #174b30;
}

.modal-actions a:last-child:hover {
    background: #d0dfd0;
}

.material-card[data-pdf] {
    cursor: pointer;
}

.material-card[data-pdf]:hover {
    transform: translateY(-5px);
}

body.modal-open {
    overflow: hidden;
}

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

@media (max-width: 480px) {
    .material-modal-dialog {
        padding: 30px 22px;
    }
}
/* AJUSTE DAS CAPAS DAS CLASSES */

#classes .material-cover {
    width: 100%;
    height: 220px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

#classes .material-card {
    overflow: hidden;
}
/* TRANSIÇÃO ENTRE PÁGINAS */

body {
    animation: entradaPagina 0.45s ease;
}

@keyframes entradaPagina {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.saindo {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* CONTATO — CONTRASTE FINAL */

.contact {
    background: linear-gradient(
        135deg,
        #e8f0e8,
        #f7faf7
    ) !important;
}

.contact-card {
    background: linear-gradient(
        135deg,
        #082719,
        #174b30,
        #123d27
    ) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0,0,0,.18);
}

.contact-card h3 {
    color: #ffffff !important;
}

.contact-card .contact-row {
    border-bottom: 1px solid rgba(255,255,255,.18);
}

.contact-card .contact-row small {
    color: #b9d6bf !important;
}

.contact-card .contact-row strong {
    color: #ffffff !important;
}

.contact .contact-text h3 {
    color: #174b30 !important;
}

.contact .contact-text p {
    color: #52675a !important;
}

.contact .contact-text .eyebrow {
    color: #287a43 !important;
}
/* =====================================================
   IDENTIDADE VISUAL OFICIAL — GRAMADO DA SERRA
   Inspirada na camiseta: grafite, preto, verde-limão e branco
   ===================================================== */

:root {
    --navy: #171b1d;
    --blue: #70d92b;
    --red: #70d92b;
    --gold: #a4f05b;
    --ink: #202629;
    --muted: #657078;
    --paper: #f2f4f3;
    --white: #ffffff;

    --shirt-black: #101416;
    --shirt-graphite: #202629;
    --shirt-mid: #343b3e;
    --shirt-green: #70d92b;
    --shirt-green-light: #a4f05b;
    --shirt-white: #f7faf8;
}

/* FUNDO GERAL */
body {
    background: #f1f3f2;
    color: #202629;
}

/* BARRA SUPERIOR */
.topline,
.hero:after {
    background: linear-gradient(
        90deg,
        #101416 0%,
        #343b3e 28%,
        #70d92b 52%,
        #a4f05b 72%,
        #101416 100%
    ) !important;
}

/* CABEÇALHO */
header {
    background: linear-gradient(
        105deg,
        #101416 0%,
        #202629 48%,
        #343b3e 78%,
        #151a1c 100%
    ) !important;
    color: #ffffff;
    border-bottom: 1px solid rgba(112, 217, 43, .35);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
}

.brand,
.brand small,
nav,
nav a,
.menu-toggle {
    color: #ffffff !important;
}

.brand-mark {
    border-color: #70d92b !important;
    color: #a4f05b !important;
}

nav a:hover,
nav a.active {
    color: #a4f05b !important;
}

nav a.active::after {
    background: #70d92b !important;
    box-shadow: 0 2px 10px rgba(112, 217, 43, .55) !important;
}

.nav-cta {
    border-color: rgba(164, 240, 91, .65) !important;
    color: #ffffff !important;
}

.nav-cta:hover {
    background: rgba(112, 217, 43, .14) !important;
}

/* BANNER PRINCIPAL */
.hero {
    background-image:
        linear-gradient(
            100deg,
            rgba(10, 14, 16, .96) 0%,
            rgba(23, 29, 32, .84) 43%,
            rgba(25, 35, 28, .34) 100%
        ),
        url('../img/capa.jpg') !important;
}

.hero .eyebrow,
.hero-note {
    color: #c8f5a5 !important;
}

.hero .eyebrow:before {
    background: #70d92b !important;
}

h1 span {
    color: #a4f05b !important;
}

/* BOTÕES */
.btn-gold {
    background: linear-gradient(
        135deg,
        #a4f05b 0%,
        #70d92b 55%,
        #55b51c 100%
    ) !important;
    color: #151b17 !important;
    box-shadow: 0 7px 22px rgba(112, 217, 43, .20);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #b7ff78, #70d92b) !important;
    color: #101416 !important;
    box-shadow: 0 9px 26px rgba(112, 217, 43, .32);
}

.btn-outline {
    border-color: rgba(255,255,255,.72) !important;
    color: #ffffff !important;
}

/* ESTATÍSTICAS */
.stats {
    background: linear-gradient(
        110deg,
        #101416 0%,
        #202629 42%,
        #343b3e 72%,
        #151a1c 100%
    ) !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #ffffff !important;
}

.stats > div,
.stats .stat-item {
    background: rgba(255,255,255,.055) !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    color: #ffffff !important;
}

.stats strong,
.stats .number {
    color: #a4f05b !important;
}

.stats span,
.stats p,
.stats small {
    color: #e0e6e2 !important;
}

/* SEÇÕES CLARAS */
section:has(.history-grid),
section:has(.activities-grid),
section:has(.team-grid),
.albums-section,
.library-section {
    background: linear-gradient(
        135deg,
        #f5f7f6 0%,
        #e8edeb 52%,
        #f8faf9 100%
    ) !important;
    color: #202629 !important;
}

.section-head h2,
.history-copy h3,
.activity h3,
.contact-text h3,
.library-intro h2,
.material-category > h2 {
    color: #202629 !important;
}

.section-head p,
.history-copy p,
.contact-text p,
.library-intro p {
    color: #59656a !important;
}

.section-head .eyebrow,
.albums-section .eyebrow,
.library-section .eyebrow {
    color: #4b9f20 !important;
}

.section-head .eyebrow:before,
.albums-section .eyebrow:before,
.library-section .eyebrow:before {
    background: #70d92b !important;
}

/* HISTÓRIA */
.history-art {
    background: linear-gradient(
        135deg,
        #101416 0%,
        #252d30 52%,
        #3b4742 100%
    ) !important;
}

.history-art .year {
    color: #a4f05b !important;
}

.history-art:after {
    border-color: rgba(112, 217, 43, .38) !important;
}

.history-copy .highlight {
    background: #e8f5df !important;
    border-left-color: #70d92b !important;
    color: #263329 !important;
}

/* VALORES E PROPÓSITO */
.values,
.purpose {
    background: linear-gradient(
        118deg,
        #101416 0%,
        #202629 32%,
        #343b3e 62%,
        #1b2a20 82%,
        #101416 100%
    ) !important;
    color: #ffffff !important;
}

.values .section-head h2,
.purpose .section-head h2,
.values h3,
.purpose h3,
.purpose-quote {
    color: #ffffff !important;
}

.values .section-head p,
.purpose .section-head p,
.values p,
.purpose p {
    color: #d9e1dc !important;
}

.purpose-quote span {
    color: #a4f05b !important;
}

.purpose:before {
    border-color: rgba(112, 217, 43, .18) !important;
    box-shadow:
        0 0 0 45px rgba(112, 217, 43, .06),
        0 0 0 90px rgba(112, 217, 43, .035) !important;
}

/* CARTÕES */
.value,
.activity,
.person,
.album-card,
.library-card {
    background: linear-gradient(
        145deg,
        #ffffff 0%,
        #edf1ef 100%
    ) !important;
    color: #202629 !important;
    border-color: #d8dfdb !important;
    box-shadow: 0 8px 24px rgba(16, 24, 20, .08);
}

.value {
    border-top-color: var(--value) !important;
}

.activity:hover,
.album-card:hover,
.library-card:hover {
    box-shadow: 0 15px 32px rgba(16, 24, 20, .15);
}

.value h3,
.activity h3,
.person h3,
.album-info h3,
.library-card h3 {
    color: #202629 !important;
}

.value p,
.activity p,
.person p,
.album-info p,
.library-card p {
    color: #5b6661 !important;
}

.person {
    border-bottom: 3px solid #70d92b !important;
}

.person .initial {
    background: linear-gradient(135deg, #202629, #3b4548) !important;
    color: #a4f05b !important;
}

.activity .icon,
.library-icon {
    background: linear-gradient(
        135deg,
        #e4f8d8,
        #c9efa9
    ) !important;
    color: #347d16 !important;
}

/* CONTATO */
.contact {
    background: linear-gradient(
        135deg,
        #edf1ef 0%,
        #f8faf9 52%,
        #e4eae7 100%
    ) !important;
    color: #202629 !important;
}

.contact-card {
    background: linear-gradient(
        135deg,
        #101416 0%,
        #252d30 48%,
        #344039 100%
    ) !important;
    color: #ffffff !important;
    border: 1px solid rgba(112, 217, 43, .22) !important;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(0,0,0,.20);
}

.contact-card h3,
.contact-card .contact-row strong {
    color: #ffffff !important;
}

.contact-card .contact-row {
    border-bottom-color: rgba(255,255,255,.16) !important;
}

.contact-card .contact-row small {
    color: #b7e99b !important;
}

.contact .contact-text h3 {
    color: #202629 !important;
}

.contact .contact-text p {
    color: #59656a !important;
}

.contact .contact-text .eyebrow {
    color: #4b9f20 !important;
}

/* GALERIA E DESBRAVATECA */
.albums-section h2,
.albums-section h3,
.albums-section p,
.library-section h2,
.library-section h3,
.library-section p,
.material-category > h2,
.material-card h3 {
    color: #202629 !important;
}

.album-cover {
    background: linear-gradient(
        135deg,
        #101416,
        #343b3e 58%,
        #4d7b36
    ) !important;
}

.album-card {
    border-radius: 14px;
    overflow: hidden;
}

.library-card {
    border-radius: 12px;
}

.library-card:hover {
    border-color: #70d92b !important;
}

.library-icon {
    border: 1px solid rgba(112, 217, 43, .25);
}

.material-category > h2 {
    border-bottom-color: #cbd5cf !important;
}

.material-card {
    color: #202629 !important;
}

.material-card p {
    color: #657078 !important;
}

/* CONTAGEM REGRESSIVA */
.contagem-campori {
    background: linear-gradient(
        115deg,
        #101416 0%,
        #202629 38%,
        #343b3e 70%,
        #17251b 100%
    ) !important;
    color: #ffffff !important;
}

.contagem-campori h2,
.contagem-campori p {
    color: #ffffff !important;
}

.contagem-campori .eyebrow {
    color: #a4f05b !important;
}

.contagem-campori .eyebrow:before {
    background: #70d92b !important;
}

.contador div {
    background: linear-gradient(
        145deg,
        #30383a,
        #1a2022
    ) !important;
    border: 1px solid rgba(164, 240, 91, .30) !important;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0,0,0,.20);
}

.contador span {
    color: #a4f05b !important;
}

.contador small {
    color: #e0e6e2 !important;
}

/* RODAPÉ */
.site-footer,
footer {
    background: linear-gradient(
        110deg,
        #0b0f11 0%,
        #1b2225 48%,
        #303a3c 78%,
        #101416 100%
    ) !important;
    color: #dce3df !important;
    border-top: 1px solid rgba(112, 217, 43, .25);
}

.site-footer h3,
.site-footer h4,
.site-footer strong,
footer strong {
    color: #ffffff !important;
}

.site-footer p,
.site-footer a {
    color: #c4ceca !important;
}

.site-footer a:hover {
    color: #a4f05b !important;
}

.social-icons a {
    background: linear-gradient(
        135deg,
        #70d92b,
        #4b9f20
    ) !important;
    color: #101416 !important;
}

/* MENU NO CELULAR */
@media (max-width: 768px) {
    header nav {
        background: linear-gradient(
            145deg,
            #202629 0%,
            #101416 72%,
            #26372a 100%
        ) !important;
        border: 1px solid rgba(112, 217, 43, .22);
        box-shadow: 0 12px 28px rgba(0,0,0,.30);
    }

    header nav a {
        color: #ffffff !important;
    }

    header nav a:hover,
    header nav a.active {
        color: #a4f05b !important;
    }

    .menu-toggle {
        color: #a4f05b !important;
    }
}

/* MODAL DA DESBRAVATECA */
.material-modal-dialog {
    background: linear-gradient(
        145deg,
        #252d30,
        #101416
    ) !important;
    color: #ffffff !important;
    border: 1px solid rgba(112, 217, 43, .25);
}

.material-modal-dialog h2,
.material-modal-dialog p {
    color: #ffffff !important;
}

.modal-actions a {
    background: linear-gradient(
        135deg,
        #a4f05b,
        #70d92b
    ) !important;
    color: #101416 !important;
}

.modal-actions a:last-child {
    background: #e7ece9 !important;
    color: #202629 !important;
}

.modal-close {
    color: #ffffff !important;
}

/* FUNDO DAS PÁGINAS */
main {
    background: linear-gradient(
        180deg,
        #f1f3f2 0%,
        #e9eeeb 48%,
        #f5f7f6 100%
    ) !important;
}

/* BANNERS DAS PÁGINAS SOBRE E GALERIA */
body:has(nav a.active[href="sobre.html"]) .hero,
body:has(nav a.active[href="galeria.html"]) .hero {
    background: linear-gradient(
        115deg,
        #101416 0%,
        #202629 42%,
        #343b3e 72%,
        #18251b 100%
    ) !important;
    color: #ffffff !important;
}

body:has(nav a.active[href="sobre.html"]) .hero h1,
body:has(nav a.active[href="sobre.html"]) .hero p,
body:has(nav a.active[href="galeria.html"]) .hero h1,
body:has(nav a.active[href="galeria.html"]) .hero p {
    color: #ffffff !important;
}

/* ACESSIBILIDADE */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
/* CORRIGIR CONTRASTE DA PÁGINA SOBRE */

body:has(nav a.active[href="sobre.html"])
section:has(.history-grid),
body:has(nav a.active[href="sobre.html"])
section:has(.activities-grid),
body:has(nav a.active[href="sobre.html"])
section:has(.team-grid) {
    color: #202629 !important;
}

body:has(nav a.active[href="sobre.html"])
section:has(.history-grid) h1,
body:has(nav a.active[href="sobre.html"])
section:has(.history-grid) h2,
body:has(nav a.active[href="sobre.html"])
section:has(.history-grid) h3,
body:has(nav a.active[href="activities-grid"]) h2,
body:has(nav a.active[href="sobre.html"])
section:has(.activities-grid) h2,
body:has(nav a.active[href="sobre.html"])
section:has(.activities-grid) h3,
body:has(nav a.active[href="sobre.html"])
section:has(.team-grid) h2,
body:has(nav a.active[href="sobre.html"])
section:has(.team-grid) h3 {
    color: #202629 !important;
}

body:has(nav a.active[href="sobre.html"])
section:has(.history-grid) p,
body:has(nav a.active[href="sobre.html"])
section:has(.activities-grid) p,
body:has(nav a.active[href="sobre.html"])
section:has(.team-grid) p {
    color: #52615a !important;
}

body:has(nav a.active[href="sobre.html"])
section:has(.history-grid) .eyebrow,
body:has(nav a.active[href="sobre.html"])
section:has(.activities-grid) .eyebrow,
body:has(nav a.active[href="sobre.html"])
section:has(.team-grid) .eyebrow {
    color: #4b9f20 !important;
}
/* DESBRAVATECA — PADRONIZAR TODAS AS CAPAS */

#classes .material-card,
#livros .material-card,
#manuais .material-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

#classes .material-cover,
#livros .material-cover,
#manuais .material-cover {
    display: block;
    width: 100% !important;
    height: 220px !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    margin: 0 auto;
}

/* CELULAR */
@media (max-width: 520px) {
    #classes .material-cover,
    #livros .material-cover,
    #manuais .material-cover {
        height: 180px !important;
    }
}
/* ANIMAÇÃO DOS MENUS DO SITE */

/* MENU DO TOPO */
nav a {
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: #70d92b;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

nav a:hover {
    color: #70d92b;
    transform: translateY(-3px);
}

nav a:hover::after {
    transform: scaleX(1);
}

/* LINKS DO RODAPÉ */
footer a {
    display: inline-block;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

footer a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: #70d92b;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

footer a:hover {
    color: #70d92b;
    transform: translateX(4px);
}

footer a:hover::after {
    transform: scaleX(1);
}

/* ACESSIBILIDADE: RESPEITA QUEM PREFERE MENOS ANIMAÇÕES */
@media (prefers-reduced-motion: reduce) {
    nav a,
    nav a::after,
    footer a,
    footer a::after {
        transition: none;
    }
}

/* ==========================================
   CAMPORI 2027 — CORREÇÃO GLOBAL DE CORES
   Escopo exclusivo da página campori.html
========================================== */

/* HERO */
.cp-page .cp-hero,
.cp-page .cp-hero p,
.cp-page .cp-hero h1 {
    color: #ffffff !important;
}

.cp-page .cp-hero h1 span,
.cp-page .cp-hero .cp-eyebrow {
    color: #a4f05b !important;
}

/* SEÇÕES CLARAS */
.cp-page .cp-light h2,
.cp-page .cp-light h3,
.cp-page .cp-light h4 {
    color: #202629 !important;
}

.cp-page .cp-light p,
.cp-page .cp-light li {
    color: #344139 !important;
}

.cp-page .cp-light .cp-eyebrow {
    color: #4b9f20 !important;
}

/* CARTÕES CLAROS */
.cp-page .cp-light .cp-card b,
.cp-page .cp-light .cp-card h3 {
    color: #202629 !important;
}

.cp-page .cp-light .cp-card span,
.cp-page .cp-light .cp-card p {
    color: #596660 !important;
}

/* SEÇÕES ESCURAS */
.cp-page .cp-dark h2,
.cp-page .cp-dark h3,
.cp-page .cp-dark h4 {
    color: #ffffff !important;
}

.cp-page .cp-dark p,
.cp-page .cp-dark li {
    color: #e0e8e2 !important;
}

.cp-page .cp-dark .cp-eyebrow,
.cp-page .cp-dark .cp-card b {
    color: #a4f05b !important;
}

/* CARTÃO DESTACADO ALPHA */
.cp-page .cp-dark .cp-card.hl h3,
.cp-page .cp-dark .cp-card.hl p,
.cp-page .cp-dark .cp-card.hl strong,
.cp-page .cp-dark .cp-card.hl span {
    color: #101416 !important;
}

/* ETIQUETA */
.cp-page .cp-tag {
    background: #101416 !important;
    color: #a4f05b !important;
}

/* MAPA E ENDEREÇO */
.cp-page .cp-addr,
.cp-page .cp-addr strong {
    color: #202629 !important;
}

/* DICAS */
.cp-page .cp-list li {
    background: #ffffff !important;
    color: #344139 !important;
}

.cp-page .cp-list li::before {
    color: #4b9f20 !important;
}

/* RODAPÉ */
.cp-page .site-footer,
.cp-page .site-footer h3,
.cp-page .site-footer h4,
.cp-page .site-footer p,
.cp-page .site-footer a,
.cp-page .site-footer span {
    color: #f7faf8 !important;
}

/* BOTÕES */
.cp-page .cp-actions .btn-gold {
    background: #70d92b !important;
    color: #101416 !important;
}

.cp-page .cp-actions .btn-dark-outline {
    color: #202629 !important;
}

.cp-page .cp-dark .cp-actions .btn-dark-outline {
    color: #ffffff !important;
}
/* AÇÕES DIRETAMENTE SOBRE A CAPA */

.material-card.has-pdf {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.material-actions-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px;
    background: rgba(5, 12, 20, 0.86);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.material-card.is-open .material-actions-overlay {
    opacity: 1;
    visibility: visible;
}

.material-actions-overlay a {
    display: block;
    width: 100%;
    max-width: 180px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    background: rgba(255, 255, 255, 0.12);
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.material-actions-overlay a:hover {
    background: #267b48;
    transform: translateY(-2px);
}

/* EFEITO DE BRILHO NAS CAPAS */

.material-cover-wrap {
    position: relative;
    display: block;
    overflow: visible;
    isolation: isolate;
    border-radius: inherit;
    transition: box-shadow 0.3s ease;
}

/* Imagem da capa */
.material-cover-wrap .material-cover {
    display: block;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Brilho ao redor e sombra na parte inferior */
.material-card.has-pdf .material-cover-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
    box-shadow:
        inset 0 -22px 18px -12px rgba(0, 0, 0, 0.42);
    transition: box-shadow 0.3s ease;
}

/* Painel transparente: sem escurecer a capa */
.material-actions-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Botões */
.material-actions-overlay a {
    display: block;
    width: 100%;
    max-width: 180px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 8px;
    color: white;
    background: rgba(5, 18, 30, 0.78);
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.material-actions-overlay a:hover {
    background: #267b48;
    transform: translateY(-2px);
}

/* PC: brilho e opções ao passar o mouse */
@media (hover: hover) and (pointer: fine) {
    .material-card.has-pdf:hover .material-cover-wrap {
        box-shadow:
            0 0 7px rgba(255, 255, 255, 0.9),
            0 0 16px rgba(90, 190, 255, 0.8),
            0 0 28px rgba(40, 130, 255, 0.5);
    }

    .material-card.has-pdf:hover .material-cover-wrap::after {
        box-shadow:
            inset 0 -25px 20px -10px rgba(0, 0, 0, 0.55);
    }

    .material-card.has-pdf:hover .material-actions-overlay {
        opacity: 1;
        visibility: visible;
    }
}

/* Celular: opções ao tocar */
@media (hover: none) {
    .material-card.is-open .material-cover-wrap {
        box-shadow:
            0 0 7px rgba(255, 255, 255, 0.9),
            0 0 16px rgba(90, 190, 255, 0.8),
            0 0 28px rgba(40, 130, 255, 0.5);
    }

    .material-card.is-open .material-actions-overlay {
        opacity: 1;
        visibility: visible;
    }
}

/* =====================================
   DESBRAVATECA - VISUAL FINAL DAS CAPAS
===================================== */

/* Remove o cartão branco */
.material-card {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    overflow: visible !important;
}

/* Área exclusiva da capa */
.material-cover-wrap {
    position: relative !important;
    display: block;
    width: 100%;
    overflow: visible;
    isolation: isolate;
    border-radius: 8px;
    box-shadow: none;
    transition: box-shadow 0.3s ease;
}

/* Imagem da capa */
.material-cover-wrap .material-cover {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    border-radius: 8px;
}

/* Sombra somente embaixo da capa */
.material-cover-wrap::after {
    content: "";
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30%;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0, 0, 0, 0.08) 35%,
        rgba(0, 0, 0, 0.55)
    );
    pointer-events: none;
}

/* Painel dos botões */
.material-actions-overlay {
    position: absolute !important;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    background: transparent !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Botões */
.material-actions-overlay a {
    display: block;
    width: 100%;
    max-width: 180px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    color: white !important;
    background: rgba(5, 18, 30, 0.88) !important;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.material-actions-overlay a:hover {
    background: #167a3c !important;
    transform: translateY(-2px);
}

/* PC: neon verde ao passar o mouse */
@media (hover: hover) and (pointer: fine) {
    .material-card.has-pdf:hover .material-cover-wrap {
        box-shadow:
            0 0 4px #39ff14,
            0 0 10px rgba(57, 255, 20, 0.9),
            0 0 22px rgba(57, 255, 20, 0.65);
    }

    .material-card.has-pdf:hover .material-actions-overlay {
        opacity: 1;
        visibility: visible;
    }
}

/* Celular: neon e botões ao tocar */
@media (hover: none) {
    .material-card.is-open .material-cover-wrap {
        box-shadow:
            0 0 4px #39ff14,
            0 0 10px rgba(57, 255, 20, 0.9),
            0 0 22px rgba(57, 255, 20, 0.65);
    }

    .material-card.is-open .material-actions-overlay {
        opacity: 1;
        visibility: visible;
    }
}

/* CORREÇÃO DEFINITIVA DAS CAPAS DA DESBRAVATECA */

/* Remove o fundo e a borda dos cartões */
#classes .material-card,
#livros .material-card,
#manuais .material-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
}

/* Remove o retângulo claro atrás das imagens */
#classes .material-cover,
#livros .material-cover,
#manuais .material-cover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Área exclusiva da capa */
.material-cover-wrap {
    position: relative !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none;
    overflow: visible !important;
    border-radius: 8px;
}

/* Sombra inferior: escondida por padrão */
.material-cover-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 35%;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0, 0, 0, 0.65)
    );
    transition: opacity 0.3s ease;
}

/* PC: sombra somente com o mouse sobre a capa */
@media (hover: hover) and (pointer: fine) {
    .material-card.has-pdf:hover .material-cover-wrap::after {
        opacity: 1;
    }

    .material-card.has-pdf:hover .material-cover-wrap {
        box-shadow:
            0 0 5px #39ff14,
            0 0 12px rgba(57, 255, 20, 0.9),
            0 0 24px rgba(57, 255, 20, 0.65);
    }

    .material-card.has-pdf:hover .material-actions-overlay {
        opacity: 1;
        visibility: visible;
    }
}

/* Celular: sombra e neon somente quando tocar */
@media (hover: none) {
    .material-card.is-open .material-cover-wrap::after {
        opacity: 1;
    }

    .material-card.is-open .material-cover-wrap {
        box-shadow:
            0 0 5px #39ff14,
            0 0 12px rgba(57, 255, 20, 0.9),
            0 0 24px rgba(57, 255, 20, 0.65);
    }

    .material-card.is-open .material-actions-overlay {
        opacity: 1;
        visibility: visible;
    }
}

/* Mantém o painel sem escurecer a capa inteira */
.material-actions-overlay {
    background: transparent !important;
}

/* =========================================
   DESBRAVATECA - AJUSTE DE CAPAS
========================================= */

/* Remove os cartões brancos */
#classes .material-card,
#livros .material-card,
#manuais .material-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* Aumenta o tamanho das capas */
#classes .material-card,
#livros .material-card,
#manuais .material-card {
    max-width: 280px !important;
    width: 100% !important;
}

/* Imagens sem retângulos, bordas ou fundos */
#classes .material-cover,
#livros .material-cover,
#manuais .material-cover {
    width: 100% !important;
    height: 340px !important;
    object-fit: contain !important;
    display: block;
    margin: 0 auto;
    background: transparent !important;
    border: none !important;
    border-radius: 8px;
    box-shadow: none !important;
}

/* Área exclusiva da capa */
.material-cover-wrap {
    position: relative !important;
    width: 100%;
    background: transparent !important;
    border: none !important;
    box-shadow: none;
    overflow: visible !important;
    border-radius: 8px;
}

/* Sombra exclusivamente na parte INFERIOR */
.material-cover-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 28%;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.12) 35%,
        rgba(0, 0, 0, 0.72) 100%
    );
    transition: opacity 0.3s ease;
}

/* PC: efeito ao passar o mouse */
@media (hover: hover) and (pointer: fine) {
    .material-card.has-pdf:hover .material-cover-wrap::after {
        opacity: 1;
    }

    .material-card.has-pdf:hover .material-cover-wrap {
        box-shadow:
            0 0 5px #39ff14,
            0 0 13px rgba(57, 255, 20, 0.9),
            0 0 25px rgba(57, 255, 20, 0.65);
    }

    .material-card.has-pdf:hover .material-actions-overlay {
        opacity: 1;
        visibility: visible;
    }
}

/* Celular: efeito ao tocar */
@media (hover: none) {
    .material-card.is-open .material-cover-wrap::after {
        opacity: 1;
    }

    .material-card.is-open .material-cover-wrap {
        box-shadow:
            0 0 5px #39ff14,
            0 0 13px rgba(57, 255, 20, 0.9),
            0 0 25px rgba(57, 255, 20, 0.65);
    }

    .material-card.is-open .material-actions-overlay {
        opacity: 1;
        visibility: visible;
    }
}

/* Ajuste do painel dos botões */
.material-actions-overlay {
    background: transparent !important;
}

/* Ajuste para telas pequenas */
@media (max-width: 520px) {
    #classes .material-cover,
    #livros .material-cover,
    #manuais .material-cover {
        height: 240px !important;
    }

    #classes .material-card,
    #livros .material-card,
    #manuais .material-card {
        max-width: 100% !important;
    }
}

/* CORREÇÃO FINAL — CAPAS DA DESBRAVATECA */

/* Remove bordas e fundos brancos */
#classes .material-card,
#livros .material-card,
#manuais .material-card,
#classes .material-cover-wrap,
#livros .material-cover-wrap,
#manuais .material-cover-wrap {
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
}

/* A capa ocupa todo o espaço, sem faixas laterais */
#classes .material-cover,
#livros .material-cover,
#manuais .material-cover {
    display: block !important;
    width: 100% !important;
    height: 340px !important;
    object-fit: cover !important;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* Moldura da imagem */
#classes .material-cover-wrap,
#livros .material-cover-wrap,
#manuais .material-cover-wrap {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 8px;
    box-shadow: none !important;
}

/* Elimina qualquer sombra antiga e deixa apenas o degradê inferior */
.material-cover-wrap::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    height: 30% !important;
    z-index: 3 !important;
    opacity: 0 !important;
    pointer-events: none;
    box-shadow: none !important;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.70) 0%,
        rgba(0, 0, 0, 0.25) 45%,
        transparent 100%
    ) !important;
    transition: opacity 0.3s ease;
}

/* Computador: efeitos apenas ao passar o mouse */
@media (hover: hover) and (pointer: fine) {
    .material-card.has-pdf:hover .material-cover-wrap::after {
        opacity: 1 !important;
    }

    .material-card.has-pdf:hover .material-cover-wrap {
        box-shadow:
            0 0 5px #39ff14,
            0 0 13px rgba(57, 255, 20, 0.9),
            0 0 25px rgba(57, 255, 20, 0.65) !important;
    }
}

/* Celular: efeitos apenas quando a capa estiver selecionada */
@media (hover: none) {
    .material-card.is-open .material-cover-wrap::after {
        opacity: 1 !important;
    }

    .material-card.is-open .material-cover-wrap {
        box-shadow:
            0 0 5px #39ff14,
            0 0 13px rgba(57, 255, 20, 0.9),
            0 0 25px rgba(57, 255, 20, 0.65) !important;
    }
}

/* Ajuste para celular */
@media (max-width: 520px) {
    #classes .material-cover,
    #livros .material-cover,
    #manuais .material-cover {
        height: 240px !important;
    }
}

/* =====================================
   NOVA ABERTURA — GRAMADO DA SERRA
===================================== */

.hero {
    min-height: 720px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;

    background:
        linear-gradient(
            90deg,
            rgba(5, 25, 13, .94) 0%,
            rgba(8, 39, 19, .78) 48%,
            rgba(8, 39, 19, .20) 100%
        ),
        url('../img/capa.jpg') center 48% / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 5px;
    background: #287a43;
}

.hero-inner {
    width: min(1180px, 88%);
    margin: auto;
    padding: 110px 0 125px;
    position: relative;
    z-index: 2;
}

.hero .eyebrow {
    font-size: 11px;
    letter-spacing: .22em;
    color: #c5e2c8;
    font-weight: 700;
    margin-bottom: 28px;
}

.hero h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(65px, 9vw, 116px);
    line-height: .91;
    letter-spacing: -.015em;
    font-weight: 800;
    max-width: 950px;
    margin: 0 0 28px;
}

.hero h1 span {
    color: #a9d9b0;
}

.hero p {
    max-width: 530px;
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255,255,255,.84);
    margin-bottom: 34px;
}

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

.hero .btn {
    min-height: 52px;
    padding: 0 25px;
    border-radius: 5px;
    font-size: 11px;
    letter-spacing: .09em;
}

.hero .btn-gold {
    background: #287a43;
    color: white;
    border: 1px solid #287a43;
}

.hero .btn-gold:hover {
    background: #1d6335;
    transform: translateY(-3px);
}

.hero .btn-outline {
    border: 1px solid rgba(255,255,255,.55);
    color: white;
    background: rgba(255,255,255,.04);
}

.hero .btn-outline:hover {
    background: rgba(255,255,255,.13);
}

.hero-founded {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 58px;
    color: rgba(255,255,255,.65);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero-founded span:first-child {
    color: #c5e2c8;
    font-weight: 800;
}

.hero-note {
    position: absolute;
    right: 6%;
    bottom: 45px;
    z-index: 2;
    writing-mode: horizontal-tb;
    color: rgba(255,255,255,.65);
    font-size: 9px;
    letter-spacing: .18em;
}

@media (max-width: 600px) {
    .hero {
        min-height: 650px;
        background-position: 58% center;
    }

    .hero-inner {
        width: 88%;
        padding: 85px 0 100px;
    }

    .hero h1 {
        font-size: clamp(55px, 13vw, 78px);
    }

    .hero p {
        font-size: 14px;
        max-width: 100%;
    }

    .hero .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero .btn {
        width: 100%;
    }

    .hero-founded {
        margin-top: 38px;
        font-size: 9px;
    }

    .hero-note {
        display: none;
    }
}
/* CORREÇÃO DEFINITIVA DO FUNDO */
body.pagina-ideais,
body.pagina-ideais main {
    background: #080c09 !important;
    color: #f5f7f5 !important;
}

body.pagina-ideais main section {
    background-color: transparent !important;
    color: #f5f7f5 !important;
}

body.pagina-ideais main .ideal-card {
    background: linear-gradient(145deg, #17221a, #0e1510, #090e0a) !important;
}

body.pagina-ideais main .ideais-hero,
body.pagina-ideais main .ideais-final {
    background: linear-gradient(120deg, #050805, #174b2b, #071009) !important;
}


/* BOTÕES DA ABERTURA — CORREÇÃO MOBILE */
@media (max-width: 600px) {

    #inicio.hero {
        height: auto !important;
        min-height: 650px;
        overflow: visible !important;
    }

    #inicio.hero .hero-inner {
        width: 88% !important;
        max-width: 100%;
        padding: 75px 0 85px !important;
        box-sizing: border-box;
        overflow: visible !important;
    }

    #inicio.hero .actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
        width: 100% !important;
        height: auto !important;
        margin: 25px 0 0 !important;
        overflow: visible !important;
    }

    #inicio.hero .actions a.btn {
        display: flex !important;
        position: relative !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 58px !important;
        height: auto !important;
        padding: 16px 12px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: normal !important;
        line-height: 1.4 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    #inicio.hero .actions .btn-outline {
        color: #ffffff !important;
        border: 1px solid #ffffff !important;
        background: rgba(255,255,255,.10) !important;
    }
}

/* ==========================================
   ABERTURAS MAIS COMPACTAS — GRAMADO DA SERRA
========================================== */

/* INÍCIO — redução leve */
#pagina-inicial .hero {
    min-height: 600px !important;
}

@media (max-width: 520px) {
    #pagina-inicial .hero {
        min-height: 400px !important;
    }
}

/* SOBRE */
main.sobre-page > .hero {
    min-height: 360px !important;
    padding: 60px 8% !important;
}

@media (max-width: 600px) {
    main.sobre-page > .hero {
        min-height: 320px !important;
        padding: 50px 6% !important;
    }
}

/* IDEAIS */
.pagina-ideais .ideais-hero {
    min-height: 340px !important;
    padding: 55px 24px !important;
}

.pagina-ideais .ideais-hero h1 {
    margin: 12px 0 !important;
}

.pagina-ideais .ideais-hero p {
    line-height: 1.65 !important;
}

@media (max-width: 600px) {
    .pagina-ideais .ideais-hero {
        min-height: 300px !important;
        padding: 45px 20px !important;
    }
}

/* CAMPORI */
.cp-page .cp-hero {
    min-height: 470px !important;
    padding: 55px 22px 65px !important;
}

@media (max-width: 768px) {
    .cp-page .cp-hero {
        min-height: 430px !important;
        padding: 45px 20px 55px !important;
    }
}

@media (max-width: 480px) {
    .cp-page .cp-hero {
        min-height: 410px !important;
        padding: 40px 17px 50px !important;
    }
}

/* GALERIA — remove a abertura duplicada */
#pagina-galeria main > .hero {
    display: none !important;
}

#pagina-galeria main .albums-section {
    padding: 38px 0 70px !important;
}

#pagina-galeria main .albums-section .section-wrap {
    padding-top: 0 !important;
}

@media (max-width: 600px) {
    #pagina-galeria main .albums-section {
        padding: 30px 0 50px !important;
    }
}
