/* ======================
   COVER PAGE
====================== */
.page-cover {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    display: block;
}

/* TESTO SOPRA IMMAGINE */
.page-cover-text {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.page-cover-title {
    color: #000;
    text-align: center;
    font-size: 10vw;
    font-style: normal;
    font-weight: 1000;
    line-height: normal;
}

.page-cover-subtitle {
    color: #000;
    text-align: center;
    font-family: 'druk-super';
    /* Assicurati che il font sia coerente */
    font-size: 4vw;
    font-style: normal;
    font-weight: 1000;
    /* Permette il ritorno a capo */
    white-space: normal;
    /* Spazio tra le righe: fondamentale per non far toccare i bordi gialli */
    line-height: 1.5;
    /* Applica lo stesso filtro del titolo */
    filter: url(#round-outline-adaptive);
    /* Gestione sovrapposizione e visibilità */
    position: relative;
    z-index: 10;
    overflow: visible;
    /* Margini per centratura */
    margin: 0 auto;
    max-width: 85vw;
}

/* ======================
   DOWNLOAD BOX
====================== */
.box {
    background-color: #fffe03;
    padding: 4rem 2rem;
    margin: 0;
    text-align: center;
}

/* TITOLO */
.box-title {
    font-family: 'druk-bold';
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 2rem;
}

/* TESTO */

.box-text p {
    max-width: 900px;
    display: flex;
    justify-content: center;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.6;
    color: #000;
}

/* BOTTONE */
.box-button {
    display: inline-block;

    font-family: 'druk-bold';
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;

    padding: 1rem 3rem;
    border: 6px solid #000;
    border-radius: 20px;

    background: transparent;
    color: #000;
    text-decoration: none;

    transition: background 0.2s ease, transform 0.2s ease;
}

.box-button:hover {
    background: #000;
    color: #fffe03;
    transform: scale(1.05);
}

.box-text p {
    margin-bottom: 1.5rem;
    color: #000;
}

/* CARD SECTION: container flex */
.card-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;

    padding: 5vw;
    margin-top: -3vw;
    position: relative;
    box-sizing: border-box;
}

.card-section::before,
.card-section::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1.5px;
    background-color: #fffe03;
    opacity: 1;
}

.card-section::before {
    left: 5vw;
}

.card-section::after {
    right: 5vw;
}




/* SINGLE CARD */
.single-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 3rem 1rem;
    text-align: center;
    border-bottom: 1.5px solid #fffe03;
    box-sizing: border-box;
}

.single-card:nth-last-child(-n + 2) {
    border-bottom: 0px;
}

.card-img {
    width: 100%;
    max-width: 60vw;
    /* cambia qui la dimensione */
    height: 390px;
    object-fit: contain;

    display: block;
}


.card-title {
    margin-top: 1rem;
    font-family: 'druk-bold';
    font-size: 5vw;
    font-weight: 900;
    color: #fffe03;
    text-align: center;
    text-transform: uppercase;
}


@media screen and (max-width: 1220px) {

    .card-section::before,
    .card-section::after {
        opacity: 0;
    }

    .card-section {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;

        padding: 3vw;
        position: relative;
        box-sizing: border-box;
    }

    .card-section::before,
    .card-section::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 1.5px;
        background-color: #fffe03;
        opacity: 1;
    }

    .card-section::before {
        left: 3vw;
    }

    .card-section::after {
        right: 3vw;
    }










}



/* responsive: sotto i 768px, 1 card per riga */
@media screen and (max-width: 768px) {
    .flexlife-card {
        flex: 0 0 100%;
    }





    .card-section::before,
    .card-section::after {
        opacity: 0;
    }

    .single-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        padding: 3rem 1rem;
        text-align: center;

        border-bottom: 0px solid #fffe03;
        box-sizing: border-box;
    }


}