/* =========================================================
   VIVEIROS PORTUGAL — HOME.CSS
   Apenas estilos realmente exclusivos da página inicial.
   ========================================================= */

/* =========================================================
   HERO HOME
   Maior e mais imersivo do que os heroes das páginas internas.
   ========================================================= */
.home-hero {
    min-height: clamp(39rem, 78svh, 48rem);
    background:
        url("../img/hero/home/viveiros-portugal-pistacheiros-desktop.webp")
        center / cover no-repeat;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.48) 45%,
        rgba(0, 0, 0, 0.14) 100%
    );
}

.home-hero-content {
    max-width: 47.5rem;
}

.home-hero h1 {
    margin-bottom: 0;
    color: var(--branco);
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.home-hero h1 span {
    display: block;
}

.home-hero-text {
    max-width: 42.5rem;
    margin: 1.5rem 0 2rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 1.45vw, 1.15rem);
    line-height: 1.7;
}

/* =========================================================
   CARDS FOTOGRÁFICOS DE CULTURAS
   Apresentação deliberadamente exclusiva da homepage.
   ========================================================= */
.home-cultura-card {
    display: block;
    overflow: hidden;
    background: var(--verde-principal);
    border-radius: var(--raio-md);
    box-shadow: var(--sombra-suave);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.home-cultura-image {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.home-cultura-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-cultura-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.74) 0%,
        rgba(0, 0, 0, 0.12) 60%,
        transparent 100%
    );
}

.home-cultura-image h3 {
    position: absolute;
    right: 1.25rem;
    bottom: 1rem;
    left: 1.25rem;
    margin: 0;
    color: var(--branco);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* =========================================================
   CATÁLOGO
   ========================================================= */
.home-catalogo-mockup img {
    transition: transform 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
    .home-cultura-card:hover {
        transform: translateY(-0.25rem);
        box-shadow: var(--sombra-media);
    }

    .home-cultura-card:hover img {
        transform: scale(1.05);
    }

    .home-catalogo-mockup:hover img {
        transform: translateY(-0.3rem);
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 61.9375rem) {
    .home-hero {
        min-height: 38rem;
    }
}

@media (max-width: 47.9375rem) {
    .home-hero {
        min-height: 39rem;
        background-image: url("../img/hero/home/viveiros-portugal-pistacheiros-mobile.webp");
        background-position: 62% center;
    }

    .home-hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.78) 0%,
            rgba(0, 0, 0, 0.58) 62%,
            rgba(0, 0, 0, 0.3) 100%
        );
    }

    .home-hero h1 {
        font-size: clamp(2.15rem, 9vw, 2.75rem);
    }

    .home-hero h1 span {
        display: inline;
    }

    .home-hero-text {
        margin-block: 1.25rem 1.75rem;
        font-size: 1rem;
        line-height: 1.6;
    }

    .home-cultura-image {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 35.9375rem) {
    .home-hero {
        min-height: 41rem;
        background-position: 64% center;
    }

    .home-hero-text {
        font-size: 0.95rem;
    }

    .home-cultura-image {
        aspect-ratio: 4 / 3;
    }
}
