:root {
    --green-950: #033d22;
    --green-900: #005f2f;
    --green-800: #00783c;
    --green-700: #079348;
    --green-100: #eaf6ef;
    --green-50: #f4fbf7;
    --orange: #ff840c;
    --cyan: #8bd7e7;
    --ink: #14241c;
    --muted: #5e6d65;
    --soft: #f7faf8;
    --line: #dbe7e1;
    --white: #ffffff;
    --shadow: 0 22px 55px rgba(7, 55, 30, .1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 22%, rgba(0, 120, 60, .06), transparent 26%),
        radial-gradient(circle at 92% 50%, rgba(139, 215, 231, .16), transparent 28%),
        #ffffff;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(rgba(0, 120, 60, .16) 1.2px, transparent 1.2px);
    background-size: 22px 22px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 7%, transparent 21%, transparent 75%, #000 88%, transparent 100%);
    opacity: .42;
}

a {
    color: inherit;
}

.page-container {
    max-width: 1130px;
}

.prototype-alert {
    padding: 9px 16px;
    color: #ffffff;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--green-900), var(--green-700));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 88px;
    background: linear-gradient(105deg, #006331 0%, #006f38 70%, var(--cyan) 130%);
    box-shadow: 0 12px 34px rgba(0, 52, 28, .18);
}

.header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand img {
    display: block;
    width: 174px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 38px;
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
}

.main-nav a {
    position: relative;
    padding: 31px 0;
    color: #ffffff;
    text-decoration: none;
    opacity: .96;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    height: 3px;
    background: var(--orange);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
    transform: scaleX(1);
}

.btn-acesso {
    min-width: 104px;
    min-height: 46px;
    padding: 11px 20px;
    color: var(--green-900);
    text-align: center;
    font-weight: 800;
    background: var(--white);
    border: 0;
    border-radius: 9px;
    box-shadow: 0 9px 22px rgba(0, 0, 0, .15);
}

.hero-section {
    background: var(--green-900);
}

.carousel {
    max-width: 100%;
}

.carousel-item img {
    height: clamp(260px, 31vw, 420px);
    object-fit: cover;
    object-position: center;
}

.carousel-control-prev,
.carousel-control-next {
    width: 9%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 34px;
    height: 34px;
    background-size: 58%;
    background-color: var(--green-700);
    border-radius: 50%;
    box-shadow: 0 3px 9px rgba(0, 0, 0, .22);
}

.carousel-indicators {
    bottom: 12px;
    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
    width: 22px;
    height: 6px;
    margin: 0 4px;
    background-color: var(--orange);
    border: 0;
    border-radius: 999px;
    opacity: .55;
}

.carousel-indicators .active {
    opacity: 1;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--orange);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.content-section {
    padding: 84px 0;
}

.section-heading {
    max-width: 820px;
    margin: 0 0 40px;
}

.section-heading h2,
.memorial-text h2 {
    margin: 0 0 16px;
    color: #1d2230;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 900;
    line-height: 1.12;
}

.section-heading h2 span,
.memorial-text h2 {
    color: var(--green-800);
}

.section-heading p,
.memorial-text p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.observatorio-section {
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.observatorio-section::after {
    content: "";
    position: absolute;
    top: 56px;
    right: 8%;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(rgba(255, 132, 12, .35) 1.4px, transparent 1.4px);
    background-size: 16px 16px;
    pointer-events: none;
}

.section-action {
    margin-bottom: 34px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.data-card {
    position: relative;
    min-height: 308px;
    padding: 30px;
    text-align: left;
    background: rgba(255, 255, 255, .95);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 14px 35px rgba(7, 55, 30, .07);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.data-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 120, 60, .35);
    box-shadow: 0 28px 55px rgba(7, 55, 30, .14);
}

.card-icon {
    display: inline-flex;
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    background: #fff5e9;
    border-radius: 12px;
}

.card-icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.data-card h3 {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 19px;
    font-weight: 900;
    line-height: 1.32;
}

.data-card p {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 15px;
}

.data-card small {
    display: block;
    color: #27362e;
    font-size: 13px;
    line-height: 1.7;
}

.btn-outline-green,
.btn-green {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 22px;
    color: var(--green-800);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    background: rgba(255, 255, 255, .82);
    border: 1px solid var(--green-700);
    border-radius: 9px;
    transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}

.btn-outline-green::after,
.btn-green::after {
    content: ">";
    font-weight: 900;
}

.btn-outline-green:hover,
.btn-green:hover {
    color: #ffffff;
    background: var(--green-800);
    box-shadow: 0 12px 24px rgba(0, 120, 60, .22);
    transform: translateY(-2px);
}

.memorial-section {
    position: relative;
    padding: 86px 0;
    overflow: hidden;
    background: linear-gradient(100deg, #eaf5ef 0%, #f7fbf9 100%);
}

.memorial-section::after {
    content: "";
    position: absolute;
    right: 7%;
    bottom: 66px;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(rgba(0, 147, 72, .38) 1.3px, transparent 1.3px);
    background-size: 16px 16px;
}

.memorial-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .75fr);
    gap: 66px;
    align-items: center;
}

.memorial-gallery {
    position: relative;
    min-height: 350px;
}

.timeline-card {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 238px;
    height: 350px;
    padding: 22px 24px;
    color: #ffffff;
    background: linear-gradient(150deg, #008443, #005f2f);
    border-radius: 12px;
    box-shadow: 0 24px 50px rgba(0, 63, 32, .28);
}

.timeline-card strong,
.timeline-card span {
    display: block;
}

.timeline-card strong {
    margin-bottom: 22px;
    font-size: 14px;
    font-weight: 900;
}

.timeline-card span {
    position: relative;
    padding: 0 0 20px 22px;
    font-size: 13px;
}

.timeline-card span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 11px;
    height: 11px;
    background: var(--orange);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 132, 12, .14);
}

.timeline-card span::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 18px;
    width: 1px;
    height: calc(100% - 14px);
    background: rgba(255, 255, 255, .4);
}

.timeline-card span:last-child::after {
    display: none;
}

.memorial-photo {
    position: absolute;
    object-fit: cover;
    border: 3px solid #ffffff;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

.main-photo {
    top: 0;
    right: 0;
    width: calc(100% - 202px);
    height: 218px;
}

.small-photo {
    bottom: 0;
    height: 126px;
}

.photo-one {
    left: 238px;
    width: 28%;
}

.photo-two {
    right: 0;
    width: 36%;
}

.memorial-text {
    max-width: 410px;
}

.memorial-text h2 {
    position: relative;
    padding-bottom: 16px;
    font-size: clamp(34px, 3.6vw, 44px);
}

.memorial-text h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 92px;
    height: 4px;
    background: var(--orange);
    border-radius: 999px;
}
#filter-select {
    min-width: 158px;
    min-height: 40px;
    padding: 9px 18px;
    color: var(--green-950);
    font-size: 14px;
    font-weight: 800;
    text-align: left;
    background: #ffffff;
    border: 1px solid var(--green-700);
    border-radius: 7px;
}

.memorial-text p {
    margin: 22px 0 28px;
}

.biblioteca-section {
    background: #ffffff;
}

.library-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: -14px 0 40px;
}

.library-filters button {
    min-width: 158px;
    min-height: 40px;
    padding: 9px 18px;
    color: var(--green-950);
    font-size: 14px;
    font-weight: 800;
    text-align: left;
    background: #ffffff;
    border: 1px solid var(--green-700);
    border-radius: 7px;
}

.library-filters button::after {
    content: "⌄";
    float: right;
    color: var(--green-800);
}

.library-row {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    gap: 32px;
    align-items: center;
    margin: 8px 0 36px;
}

.library-arrow {
    width: 42px;
    height: 42px;
    color: var(--green-800);
    background: #ffffff;
    border: 1px solid rgba(0, 120, 60, .28);
    border-radius: 50%;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .06);
}

.library-arrow:first-child::before {
    content: "<";
}

.library-arrow:last-child::before {
    content: ">";
}

.bookshelf {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(24px, 5vw, 72px);
}

.book-card {
    min-width: 0;
    text-align: left;
}

.book-card img {
    display: block;
    width: 124px;
    height: 176px;
    margin: 0 auto 16px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .15);
    transition: transform .3s ease, box-shadow .3s ease;
}

.book-card:hover img {
    transform: translateY(-8px);
    box-shadow: 0 24px 38px rgba(0, 0, 0, .18);
}

.book-card h3 {
    margin: 0 0 4px;
    color: #121a16;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
}

.book-card span,
.book-card small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.btn-green {
    color: #ffffff;
    background: var(--green-800);
}

.btn-green:hover {
    background: var(--green-950);
}

.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 44px;
    align-items: start;
    padding-top: 24px;
    padding-bottom: 22px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 50%;
}

.logo-symbol {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    font-size: 26px;
    line-height: 1;
    transform: rotate(45deg);
}

.footer-logo strong {
    display: block;
    color: var(--orange);
    font-size: 30px;
    font-weight: 900;
    line-height: .95;
}

.footer-logo strong span {
    color: var(--green-800);
}

.footer-logo small {
    display: block;
    margin-top: 3px;
    color: #6b746f;
    font-size: 9px;
    line-height: 1.15;
}

.site-footer h2 {
    margin: 0 0 8px;
    color: #111;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.site-footer a {
    display: block;
    margin-bottom: 3px;
    color: #2f3d36;
    font-size: 10px;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--green-800);
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-links a {
    width: 22px;
    height: 22px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9aa5a0;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    background: #eef2f0;
    border-radius: 50%;
}

.footer-bottom {
    padding: 8px 16px;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(90deg, var(--green-800), var(--cyan));
}

.footer-bottom p {
    margin: 0;
    font-size: 9px;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
/* Responsividade para tablets e telas médias */
@media (max-width: 991.98px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .main-nav {
        width: 100%;
        justify-content: center;
        gap: 24px;
    }

    .main-nav a {
        padding: 8px 0;
    }

    .main-nav a::after {
        bottom: 0;
    }

    .memorial-layout {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .data-card {
        min-height: auto;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Responsividade para dispositivos menores*/
@media (max-width: 767.98px) {
    body {
        font-size: 15px;
    }

    .site-header {
        position: relative;
    }

    .brand img {
        width: 150px;
    }

    .main-nav {
        gap: 14px;
        font-size: 13px;
    }

    .btn-acesso {
        min-height: 40px;
        padding: 8px 16px;
    }

    .carousel-item img {
        height: 230px;
    }

    .content-section,
    .memorial-section {
        padding: 54px 0;
    }

    .memorial-gallery {
        min-height: 560px;
    }

    .timeline-card {
        position: relative;
        width: 100%;
        height: auto;
        margin-bottom: 16px;
    }

    .memorial-photo {
        position: absolute;
    }

    .main-photo {
        top: 245px;
        left: 0;
        width: 100%;
        height: 190px;
    }

    .photo-one,
    .photo-two {
        bottom: 0;
        width: calc(50% - 6px);
        height: 112px;
    }

    .photo-one {
        left: 0;
    }

    .photo-two {
        right: 0;
    }

    .library-filters {
        display: grid;
        grid-template-columns: 1fr;
    }

    .library-row {
        grid-template-columns: 34px 1fr 34px;
        gap: 10px;
    }

    .bookshelf {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 18px;
    }

    .book-card img {
        width: 104px;
        height: 148px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}
