/* ============================================================
   WILD ALENTEJO — Página inicial: redesign editorial
   ============================================================ */
:root {
    --wa-ink: #183627;
    --wa-forest: #214b35;
    --wa-moss: #86ae5b;
    --wa-sand: #f6f3ea;
    --wa-paper: #fffdf8;
    --wa-clay: #be581d;
}

.home-page {
    background: var(--wa-sand);
    background-image: none;
}

.home-page .hero-editorial {
    position: relative;
    isolation: isolate;
    min-height: 620px;
    height: min(680px, calc(100svh - 76px));
    overflow: hidden;
    color: #fff;
    background: var(--wa-ink);
}

.home-page .hero-editorial::before {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 28, 19, 0.82) 0%, rgba(10, 28, 19, 0.60) 41%, rgba(10, 28, 19, 0.18) 72%, rgba(10, 28, 19, 0.08) 100%),
        linear-gradient(0deg, rgba(8, 25, 17, 0.46) 0%, rgba(8, 25, 17, 0.04) 46%, rgba(8, 25, 17, 0.18) 100%);
    pointer-events: none;
}

.home-page .hero-editorial::after {
    content: '';
    position: absolute;
    z-index: 2;
    inset: 0;
    opacity: 0.24;
    background-image: radial-gradient(rgba(255,255,255,0.46) 0.5px, transparent 0.6px);
    background-size: 8px 8px;
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.home-page .hero-image {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 50%;
    filter: saturate(0.92) contrast(1.02);
    transform: scale(1.015);
}

.home-page .hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    min-height: 100%;
    padding-top: 62px;
    padding-bottom: 150px;
}

.home-page .hero-copy {
    max-width: 720px;
}

.home-page .hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 22px;
    color: rgba(255,255,255,0.88);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.home-page .hero-kicker::before {
    content: '';
    width: 26px;
    height: 1px;
    background: var(--wa-moss);
}

.home-page .hero-title {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.65rem, 5vw, 5.1rem);
    font-weight: 800;
    letter-spacing: -0.065em;
    line-height: 0.98;
    text-wrap: balance;
    text-shadow: 0 3px 28px rgba(0,0,0,0.27);
}

.home-page .hero-title em {
    color: #c7e08e;
    font-style: normal;
}

.home-page .hero-intro {
    max-width: 555px;
    margin: 25px 0 0;
    color: rgba(255,255,255,0.91);
    font-size: clamp(0.98rem, 1.5vw, 1.12rem);
    font-weight: 500;
    line-height: 1.65;
}

.home-page .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.home-page .hero-support-link {
    display: inline-block;
    margin-top: 16px;
    color: rgba(255,255,255,.72);
    font-size: .76rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
}

.home-page .hero-support-link span {
    color: #dce9c4;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.home-page .hero-support-link:hover,
.home-page .hero-support-link:focus-visible { color: #fff; }
.home-page .hero-support-link:hover span,
.home-page .hero-support-link:focus-visible span { color: #fff; }

.home-page .hero-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid transparent;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.75px;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.home-page .hero-button:hover,
.home-page .hero-button:focus-visible {
    transform: translateY(-2px);
}

.home-page .hero-button--primary {
    color: #102719;
    background: #c7e08e;
}

.home-page .hero-button--primary:hover,
.home-page .hero-button--primary:focus-visible {
    color: #102719;
    background: #e0efb8;
}

.home-page .hero-button--secondary {
    color: #fff;
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.07);
}

.home-page .hero-button--secondary:hover,
.home-page .hero-button--secondary:focus-visible {
    color: #fff;
    background: rgba(255,255,255,0.18);
    border-color: #fff;
}

.home-page .hero-proof {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 0;
    left: 0;
    border-top: 1px solid rgba(255,255,255,0.22);
    background: rgba(11, 37, 24, 0.7);
    backdrop-filter: blur(10px);
}

.home-page .hero-proof .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.home-page .proof-item {
    min-height: 91px;
    padding: 18px 20px 16px;
    border-right: 1px solid rgba(255,255,255,0.18);
}

.home-page .proof-item:last-child {
    border-right: 0;
}

.home-page .proof-value {
    display: block;
    color: #e1efbf;
    font-size: 1.34rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.home-page .proof-label {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,0.74);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.home-page .status-bar {
    display: none;
}

.home-page #main {
    padding-top: 58px;
}

.home-page .section-label {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 0 24px;
    color: var(--wa-clay);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 1.65px;
    text-transform: uppercase;
}

.home-page .section-label::after {
    height: 1px;
    background: #ddd8cb;
}

.home-page .sensor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 72px;
}

.home-page .sensor-card {
    min-height: 136px;
    padding: 22px 18px;
    border: 1px solid #e7e0d2;
    border-top: 3px solid var(--wa-moss);
    border-radius: 0;
    box-shadow: none;
    text-align: left;
}

.home-page .sensor-card:nth-child(2) { border-top-color: #7797a5; }
.home-page .sensor-card:nth-child(5) { border-top-color: var(--wa-clay); }
.home-page .sensor-card:nth-child(6) { border-top-color: #5794a9; }
.home-page .sensor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(29, 53, 38, 0.08);
}

.home-page .sensor-card h3 {
    color: #687268;
    font-size: 0.64rem;
    letter-spacing: 1px;
}

.home-page .sensor-val {
    color: var(--wa-ink);
    font-size: 2rem;
}

.home-page .info-grid {
    gap: 14px;
    margin-bottom: 74px;
}

.home-page .info-card {
    padding: 33px;
    border: 1px solid #e5dfd3;
    border-radius: 0;
    box-shadow: none;
}

.home-page .info-card-header {
    color: var(--wa-ink);
}

.home-page .apoio-bloco {
    position: relative;
    margin-bottom: 72px;
    padding: clamp(34px, 5vw, 66px);
    color: #fff;
    background-color: var(--forest-900);
    background-image: none !important;
    border-top: 4px solid var(--moss-500);
    box-shadow: 0 12px 28px rgba(23, 56, 38, 0.12);
}

/* Remove integralmente a antiga camada de fotografia/padrão. */
.home-page .apoio-bloco::before {
    content: none;
}

.home-page .apoio-content {
    max-width: 660px;
}

.home-page .apoio-tag {
    color: var(--leaf-200);
}

.home-page .apoio-bloco h3 {
    margin-top: 10px;
    color: #fff;
    font-size: clamp(1.65rem, 3vw, 2.55rem);
    letter-spacing: -0.045em;
    line-height: 1.05;
    text-transform: none;
}

.home-page .apoio-bloco p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.86);
}

.home-page .apoio-botoes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.home-page .btn-apoio {
    color: #fff;
    background: var(--clay-600);
}

.home-page .btn-apoio:hover,
.home-page .btn-apoio:focus-visible {
    color: #fff;
    background: #a94620;
}

.home-page .btn-apoio-sec {
    color: #fff;
    border-color: rgba(220, 237, 194, 0.82);
    background: rgba(10, 28, 19, 0.52);
}

@media (max-width: 600px) {
    .home-page .apoio-bloco {
        padding: 31px 24px 33px;
    }

    .home-page .apoio-botoes {
        align-items: stretch;
    }

    .home-page .apoio-botoes .btn-apoio,
    .home-page .apoio-botoes .btn-apoio-sec {
        width: 100%;
        text-align: center;
    }
}

.home-page .links-grid {
    gap: 12px;
    margin-bottom: 76px;
}

.home-page .link-card,
.home-page .blog-card {
    border-radius: 0;
    box-shadow: none;
}

.home-page .link-card {
    min-height: 184px;
    border: 1px solid #e7e0d2;
    background: var(--wa-paper);
}

.home-page .link-card:hover,
.home-page .blog-card:hover {
    border-color: #b4c895;
    box-shadow: 0 14px 26px rgba(29, 53, 38, 0.08);
}

.home-page .blog-grid {
    gap: 16px;
}

.home-page .blog-card {
    border: 1px solid #e7e0d2;
}

.home-page .blog-card-img {
    height: 208px;
}

/* Movimento cinematográfico: deslocação vertical lenta e zoom mínimo. */
@property --cinematic-y {
    syntax: '<length>';
    inherits: false;
    initial-value: 0px;
}

@property --cinematic-zoom {
    syntax: '<number>';
    inherits: false;
    initial-value: 0;
}

@keyframes cinematic-hero-drift {
    0%, 100% {
        --cinematic-y: 18px;
        --cinematic-zoom: 0;
    }
    50% {
        --cinematic-y: -18px;
        --cinematic-zoom: 0.025;
    }
}

.home-page .hero-editorial .cinematic-hero-media {
    --cinematic-y: 18px;
    --cinematic-zoom: 0;
    animation: cinematic-hero-drift 28s ease-in-out infinite alternate;
    backface-visibility: hidden;
}

@keyframes cinematic-hero-drift-mobile {
    0%, 100% {
        --cinematic-y: 48px;
        --cinematic-zoom: 0;
    }
    50% {
        --cinematic-y: -48px;
        --cinematic-zoom: 0.05;
    }
}

@media (max-width: 760px) {
    .home-page .hero-editorial .cinematic-hero-media {
        --cinematic-y: 48px;
        --cinematic-zoom: 0;
        animation: cinematic-hero-drift-mobile 18s ease-in-out infinite alternate;
    }
}

@media (max-width: 900px) {
    .home-page .hero-editorial {
        min-height: 590px;
        height: min(680px, calc(100svh - 72px));
    }

    .home-page .hero-editorial::before {
        background: linear-gradient(0deg, rgba(10, 28, 19, 0.8) 0%, rgba(10, 28, 19, 0.3) 72%, rgba(10, 28, 19, 0.36) 100%);
    }

    .home-page .hero-content {
        align-items: flex-end;
        padding-top: 95px;
        padding-bottom: 148px;
    }

    .home-page .sensor-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-page .links-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .home-page .hero-editorial {
        min-height: 600px;
        height: calc(100svh - 72px);
    }

    .home-page .hero-image {
        object-position: 61% center;
    }

    .home-page .hero-content {
        padding: 65px 0 160px;
    }

    .home-page .hero-kicker {
        margin-bottom: 15px;
        font-size: 0.59rem;
        letter-spacing: 1.3px;
    }

    .home-page .hero-title {
        font-size: clamp(2.28rem, 11vw, 3.45rem);
        line-height: 1.01;
    }

    .home-page .hero-intro {
        margin-top: 18px;
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .home-page .hero-actions {
        gap: 9px;
        margin-top: 25px;
    }

    .home-page .hero-support-link {
        display: block;
        margin-top: 14px;
        text-align: center;
    }

    .home-page .hero-button {
        width: 100%;
        min-height: 46px;
    }

    .home-page .hero-proof .container {
        padding: 0;
    }

    .home-page .proof-item {
        min-height: 78px;
        padding: 14px 10px 12px;
        text-align: center;
    }

    .home-page .proof-value {
        font-size: 1.08rem;
    }

    .home-page .proof-label {
        font-size: 0.54rem;
        letter-spacing: 0.55px;
    }

    .home-page #main {
        padding-top: 44px;
    }

    .home-page .sensor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        margin-bottom: 52px;
    }

    .home-page .sensor-card {
        min-height: 118px;
        padding: 16px 13px;
    }

    .home-page .sensor-card h3 {
        font-size: 0.57rem;
    }

    .home-page .sensor-val {
        font-size: 1.55rem;
    }

    .home-page .info-card {
        padding: 25px 22px;
    }

    .home-page .links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .home-page .link-card {
        min-height: 160px;
    }
}


/* CTA destacado do Planeador de Agrofloresta no hero */
.home-page .hero-button--planner {
    color: var(--forest-900, #173826);
    border-color: var(--leaf-200, #dce9c4);
    background: var(--leaf-200, #dce9c4);
}

.home-page .hero-button--planner:hover,
.home-page .hero-button--planner:focus-visible {
    color: var(--forest-900, #173826);
    border-color: #eef5de;
    background: #eef5de;
}
