@import url('/assets/css/pages/observatorio-biodiversity.css?v=3');

:root {
    --regen: #2f6546;
    --regen-dark: #183e2c;
    --regen-leaf: #91ad73;
    --regen-soil: #8a6046;
    --regen-sun: #d5a437;
    --regen-pale: #f3f7ef;
    --regen-ink: #2d2a28;
    --regen-muted: #706d68;
    --regen-line: #e1e8df;
}

.regen-hero {
    position: relative;
    min-height: 590px;
    border-radius: 0 0 38px 38px;
    overflow: hidden;
    color: #fff;
    margin-bottom: 3em;
}

.regen-hero-image {
    position: absolute;
    inset: 0;
    background-image: url('/images/calendario_regeneracao.jpg');
    background-size: cover;
    background-position: center;
}

.regen-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 7em 5em;
}

.regen-hero .eyebrow {
    color: #bad3ad;
}

.regen-hero h1 {
    color: #fff;
    font-size: clamp(3.3em, 6vw, 6.2em);
    line-height: 0.88;
    letter-spacing: -0.05em;
    margin: 0.25em 0;
}

.regen-hero h1 em {
    display: block;
    color: #d4e6c8;
    font-family: Georgia, serif;
    font-weight: 400;
}

.regen-hero-copy > p {
    max-width: 620px;
    color: #e1eadc;
    line-height: 1.7;
}

.hero-proof {
    display: flex;
    gap: 1.5em;
    flex-wrap: wrap;
    margin-top: 2em;
    padding-top: 1.2em;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-proof span {
    font-size: 0.68em;
    color: #d9e4d5;
}

.hero-proof strong {
    font-size: 1.35em;
    color: #fff;
    margin-right: 0.25em;
}

.journey-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    gap: 24px;
    overflow: auto;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--regen-line);
    border-bottom: 1px solid var(--regen-line);
    padding: 13px 0;
    margin-bottom: 3em;
}

.journey-nav a {
    white-space: nowrap;
    border: 0 !important;
    text-decoration: none !important;
    color: #999;
    font-size: 0.65em;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.journey-nav a:hover {
    color: var(--regen);
}

.place-controls,
.water-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
}

.place-controls label,
.water-controls label {
    font-size: 0.62em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 900;
    color: #778178;
}

.place-controls select,
.water-controls select,
.atlas-toolbar input,
.atlas-toolbar select {
    display: block;
    width: 100%;
    height: 3.2em;
    margin-top: 0.5em;
    border: 1px solid var(--regen-line);
    border-radius: 10px;
    background: #fff;
    padding: 0 1em;
    color: #405146;
}

.place-result {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    margin-top: 1.5em;
    border-radius: 20px;
    overflow: hidden;
}

.place-result header {
    background: var(--regen-dark);
    color: #fff;
    padding: 2em;
}

.place-result header span {
    font-size: 0.62em;
    color: #a9c5ac;
}

.place-result header h3 {
    color: #fff;
    margin: 0.4em 0;
}

.place-result header p {
    font-size: 0.76em;
    color: #d7e4d8;
}

.place-result > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--regen-line);
}

.place-result article {
    background: var(--regen-pale);
    padding: 1.4em;
}

.place-result article b {
    font-size: 0.64em;
    text-transform: uppercase;
    color: var(--regen);
}

.place-result article p {
    font-size: 0.75em;
    line-height: 1.55;
    color: var(--regen-muted);
}

.month-ribbon {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0.4em;
    margin-bottom: 1.5em;
}

.month-ribbon button {
    height: auto !important;
    padding: 0.8em 0.25em !important;
    border: 1px solid var(--regen-line) !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #788079 !important;
    font-size: 0.6em !important;
}

.month-ribbon button.active {
    background: var(--regen) !important;
    color: #fff !important;
    border-color: var(--regen) !important;
}

.season-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1em;
}

.season-grid article {
    border-top: 3px solid #b8ccb1;
    padding: 1.2em 0.5em;
}

.season-grid span {
    font-size: 0.58em;
    color: var(--regen);
    text-transform: uppercase;
}

.season-grid h3 {
    font-size: 1em;
    margin: 0.45em 0;
}

.season-grid p {
    font-size: 0.74em;
    line-height: 1.55;
    color: var(--regen-muted);
}

.atlas-toolbar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1em;
}

.atlas-summary {
    font-size: 0.68em;
    color: var(--regen-muted);
}

.atlas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1em;
}

.atlas-card {
    border: 1px solid var(--regen-line);
    border-radius: 15px;
    overflow: hidden;
    color: var(--regen-ink);
}

.atlas-card img {
    display: block;
    width: 100%;
    height: 145px;
    object-fit: cover;
}

.atlas-card div {
    padding: 1em;
}

.atlas-card small {
    color: var(--regen);
    text-transform: uppercase;
    font-size: 0.55em;
}

.atlas-card h3 {
    font-size: 0.95em;
    margin: 0.3em 0;
}

.atlas-card p {
    font-size: 0.68em;
    color: var(--regen-muted);
    margin: 0;
}

.quiet-button {
    display: block !important;
    margin: 1.5em auto !important;
    border: 1px solid var(--regen) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: var(--regen) !important;
    box-shadow: none !important;
}

.water-studio {
    background: var(--regen-pale);
    padding: 3em;
    border-radius: 28px;
}

.water-output {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
    margin-top: 1.5em;
}

.water-output article {
    background: #fff;
    padding: 1.4em;
    border-radius: 14px;
}

.water-output span,
.soil-tests span {
    font-size: 0.56em;
    text-transform: uppercase;
    color: var(--regen);
    font-weight: 900;
}

.water-output h3,
.soil-tests h3 {
    font-size: 1em;
    margin: 0.4em 0;
}

.water-output p,
.water-output small,
.soil-tests p {
    display: block;
    font-size: 0.72em;
    line-height: 1.55;
    color: var(--regen-muted);
}

.water-output small {
    border-top: 1px solid var(--regen-line);
    padding-top: 0.7em;
}

.protocol {
    margin: 1.5em 0;
}

.protocol summary {
    cursor: pointer;
    font-weight: 900;
    color: var(--regen-dark);
}

.protocol ol {
    columns: 2;
    font-size: 0.74em;
    line-height: 1.6;
}

.soil-tests {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1em;
}

.soil-tests article {
    border-top: 2px solid #9ebd9f;
    padding-top: 1em;
}

.soil-tests details summary {
    font-size: 0.65em;
    color: var(--regen);
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1em;
}

.knowledge-grid article {
    min-height: 190px;
    padding: 1.4em;
    border-radius: 15px;
    background: #f7f7f2;
}

.knowledge-grid span {
    font-size: 0.58em;
    color: var(--regen);
    font-weight: 900;
}

.knowledge-grid h3 {
    font-size: 1em;
    margin: 0.4em 0;
}

.knowledge-grid p {
    font-size: 0.74em;
    color: var(--regen-muted);
    line-height: 1.55;
}

.moon-lab {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3em;
    align-items: center;
    background: #17271f;
    color: #fff;
    border-radius: 28px;
    padding: 3em;
}

.moon-lab h2 {
    color: #fff;
}

.moon-lab p {
    color: #c8d2ca;
}

.moon-orbit {
    width: 230px;
    height: 230px;
    border: 1px solid #5c6a61;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.moon-orbit span {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(90deg, #d8d5bd 50%, #465149 50%);
    box-shadow: 0 0 50px rgba(216, 213, 189, 0.18);
}

.evidence-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8em;
}

.evidence-grid article {
    border-top: 1px solid #617069;
    padding-top: 0.8em;
}

.evidence-grid b {
    font-size: 0.7em;
    color: #dce9d8;
}

.evidence-grid p {
    font-size: 0.65em;
}

.methodology {
    padding: 4em 0;
}

.source-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.source-links a {
    font-size: 0.62em;
    font-weight: 900;
    text-transform: uppercase;
}

.methodology > p {
    color: var(--regen-muted);
}

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

    .soil-tests {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 736px) {
    .regen-hero-copy {
        padding: 5em 1.6em;
    }

    .hero-proof {
        display: block;
    }

    .hero-proof span {
        display: block;
        margin: 0.5em 0;
    }

    .place-controls,
    .water-controls,
    .place-result,
    .water-output,
    .season-grid,
    .atlas-toolbar,
    .atlas-grid,
    .soil-tests,
    .knowledge-grid,
    .moon-lab,
    .evidence-grid {
        grid-template-columns: 1fr;
    }

    .place-result > div {
        grid-template-columns: 1fr;
    }

    .month-ribbon {
        grid-template-columns: repeat(6, 1fr);
    }

    .water-studio,
    .moon-lab {
        padding: 1.5em;
    }

    .protocol ol {
        columns: 1;
    }

    .moon-orbit {
        width: 160px;
        height: 160px;
        margin: auto;
    }
}

.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
}

.news-item {
    display: flex;
    flex-direction: column;
    min-height: 180px;
    border: 1px solid var(--regen-line);
    border-radius: 15px;
    padding: 1.4em;
    text-decoration: none;
    background: #fff;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.news-item:hover {
    transform: translateY(-3px);
    border-color: var(--regen-leaf);
}

.news-item > span {
    font-size: 0.6em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7f9183;
}

.news-item h3 {
    font-size: 1em;
    line-height: 1.35;
    color: var(--regen-ink);
    margin: 0.7em 0;
}

.news-item .news-source {
    margin-top: auto;
    color: var(--regen);
    font-weight: 900;
}

.methodology {
    padding: 6em 0 4em;
    margin-top: 4em;
    border-top: 1px solid var(--regen-line);
}

.atlas-mode {
    display: flex;
    justify-content: center;
    gap: 0.7em;
    margin: 0 0 2em;
}

.atlas-mode button {
    height: auto !important;
    padding: 0.75em 1.3em !important;
    border: 1px solid var(--regen-line) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #758078 !important;
    box-shadow: none !important;
}

.atlas-mode button.active {
    background: var(--regen) !important;
    border-color: var(--regen) !important;
    color: #fff !important;
}

.world-proof {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-bottom: 1em;
    background: var(--regen-line);
    border: 1px solid var(--regen-line);
    border-radius: 16px;
    overflow: hidden;
}

.world-proof span {
    display: flex;
    flex-direction: column;
    background: var(--regen-pale);
    padding: 1.2em;
    color: #657168;
    font-size: 0.65em;
}

.world-proof strong {
    color: var(--regen-dark);
    font-size: 1.7em;
    line-height: 1.1;
    margin-bottom: 0.15em;
}

.world-scope,
.world-provenance {
    font-size: 0.68em;
    line-height: 1.6;
    color: var(--regen-muted);
}

.world-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8em;
}

.world-card {
    border: 1px solid var(--regen-line);
    border-radius: 14px;
    padding: 1.1em;
    min-width: 0;
}

.world-card small {
    display: block;
    color: var(--regen);
    font-size: 0.55em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.world-card h3 {
    font-size: 0.9em;
    line-height: 1.25;
    margin: 0.45em 0;
    overflow-wrap: anywhere;
}

.world-card p {
    font-size: 0.66em;
    color: var(--regen-muted);
    margin: 0.25em 0;
}

.world-card a {
    font-size: 0.58em;
    font-weight: 900;
    text-transform: uppercase;
}

.world-provenance {
    text-align: center;
    margin-top: 2em;
}

.world-toolbar {
    margin-top: 1.5em;
}

.regen-hero {
    min-height: 520px !important;
    margin-bottom: 0 !important;
    overflow: hidden !important;
}

.regen-hero-copy {
    padding-top: 5.8em !important;
    padding-bottom: 4em !important;
}

.hero-proof {
    display: none !important;
}

.regen-hero::after {
    content: "";
    position: absolute;
    left: -2px;
    bottom: -1px;
    width: 88%;
    height: 108px;
    background: #fff;
    border-radius: 0 72% 0 0 / 0 100% 0 0;
    z-index: 3;
}

.regen-hero + .journey-nav {
    z-index: 6;
    margin-top: -58px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.regen-hero + .journey-nav a {
    border: 0 !important;
    text-decoration: none !important;
}

.water-studio {
    padding-left: clamp(2.5em, 4vw, 5em) !important;
    padding-right: clamp(2.5em, 4vw, 5em) !important;
}

@media (max-width: 736px) {
    .regen-hero {
        min-height: 455px !important;
        margin-bottom: 0 !important;
    }

    .regen-hero-copy {
        padding-top: 4.2em !important;
        padding-bottom: 3em !important;
    }

    .regen-hero::after {
        display: none;
    }

    .regen-hero + .journey-nav {
        margin-top: 0;
        background: #fff !important;
    }
}

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

    .world-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 736px) {
    .news-list,
    .world-grid,
    .world-proof {
        grid-template-columns: 1fr;
    }

    .atlas-mode {
        align-items: stretch;
        flex-direction: column;
    }

    .world-proof span {
        align-items: center;
    }

    .methodology {
        margin-top: 2.5em;
        padding-top: 4em;
    }

    .water-studio {
        padding-left: 1.5em !important;
        padding-right: 1.5em !important;
    }
}

/* Página-piloto: banner equilibrado e navegação consolidada. */
html body[data-hero-theme="calendar"] #main .regen-hero.bio-banner-hero > .regen-hero-copy {
    left: 0 !important;
    width: calc(100% + 20px) !important;
    padding: 2.6rem clamp(4.8rem, 7.6vw, 7.4rem) !important;
    justify-content: center !important;
    border-radius: 28px 0 0 28px !important;
}

html body[data-hero-theme="calendar"] #main > .inner main > .regen-hero.bio-banner-hero > .regen-hero-copy {
    border-radius: 28px 0 0 28px !important;
}

html body[data-hero-theme="calendar"] #main .regen-hero.bio-banner-hero > .regen-hero-copy :is(h1, p) {
    max-width: 650px !important;
}

html body[data-hero-theme="calendar"] #main > .inner .bio-hero-followup:has(.hero-proof) {
    display: none !important;
}

html body[data-hero-theme="calendar"] #main .calendar-navigation-bar {
    position: sticky;
    top: 2rem;
    z-index: 24;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: -0.15rem 0 2rem;
    padding: 0.7rem 0;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    scrollbar-width: none;
}

html body[data-hero-theme="calendar"] #main .calendar-navigation-bar::-webkit-scrollbar {
    display: none;
}

html body[data-hero-theme="calendar"] #main .calendar-navigation-bar :is(.scope-switch, .journey-nav) {
    position: static;
    display: flex;
    flex: none;
    gap: 0.5rem;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible;
    border: 0 !important;
    background: transparent !important;
    backdrop-filter: none;
}

html body[data-hero-theme="calendar"] #main .calendar-navigation-bar .scope-switch {
    padding-right: 0.55rem !important;
    border-right: 1px solid #dfe6e1 !important;
}

html body[data-hero-theme="calendar"] #main .calendar-navigation-bar a {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    padding: 0.72em 1.15em;
    border: 1px solid #dfe6e1;
    border-radius: 999px;
    background: #fff;
    color: #758178;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.025em;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
}

html body[data-hero-theme="calendar"] #main .calendar-navigation-bar .scope-switch a:last-child {
    border-color: #2f6147;
    background: #2f6147;
    color: #fff;
}

html body[data-hero-theme="calendar"] #main .calendar-navigation-bar a:hover {
    border-color: #9eb2a5;
    color: #385b47;
}

@media (max-width: 760px) {
    html body[data-hero-theme="calendar"] #main .regen-hero.bio-banner-hero {
        min-height: 700px !important;
        height: 700px !important;
    }

    html body[data-hero-theme="calendar"] #main .regen-hero.bio-banner-hero > .regen-hero-copy {
        left: 0 !important;
        width: 100% !important;
        min-height: 430px !important;
        height: 430px !important;
        padding: 2.5rem 1.7rem 3rem !important;
        border-radius: 22px !important;
    }

    html body[data-hero-theme="calendar"] #main .calendar-navigation-bar {
        top: 0.65rem;
        margin-top: 0.35rem;
    }
}

/* Laboratório lunar: neutraliza a altura de ecrã herdada do calendário e desenha um crescente natural. */
html body[data-hero-theme="calendar"] #main #moon.moon-lab {
    min-height: 0 !important;
    height: auto !important;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    padding: clamp(2.2rem, 4vw, 3.2rem) !important;
}

html body[data-hero-theme="calendar"] #main #moon .moon-orbit {
    width: 180px;
    height: 180px;
    margin: auto;
}

html body[data-hero-theme="calendar"] #main #moon .moon-orbit span {
    position: relative;
    width: 92px;
    height: 92px;
    overflow: hidden;
    background: radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.28) 0 4%, transparent 5%),
        radial-gradient(circle at 42% 68%, rgba(151, 151, 130, 0.2) 0 5%, transparent 6%),
        linear-gradient(145deg, #f0edcf, #c7c5ab);
    box-shadow: 0 0 34px rgba(232, 229, 197, 0.2);
}

html body[data-hero-theme="calendar"] #main #moon .moon-orbit span::after {
    content: "";
    position: absolute;
    inset: -7px -20px -7px 31px;
    border-radius: 50%;
    background: #17271f;
    box-shadow: -5px 0 10px rgba(23, 39, 31, 0.4);
}

html body[data-hero-theme="calendar"] #main main > .section-block,
html body[data-hero-theme="calendar"] #main #mundo section {
    min-height: 0 !important;
    height: auto !important;
    display: block !important;
}

@media (max-width: 736px) {
    html body[data-hero-theme="calendar"] #main #moon.moon-lab {
        grid-template-columns: 1fr;
        gap: 1.4rem;
        padding: 1.6rem !important;
    }

    html body[data-hero-theme="calendar"] #main #moon .moon-orbit {
        width: 140px;
        height: 140px;
    }

    html body[data-hero-theme="calendar"] #main #moon .moon-orbit span {
        width: 72px;
        height: 72px;
    }

    html body[data-hero-theme="calendar"] #main #moon .moon-orbit span::after {
        inset: -6px -16px -6px 24px;
    }
}
