/* ==========================================================================
   Fidia Discover Widget – Stili
   Adattato dal file discover.css originale.
   Prefisso classi: fdw- (Fidia Discover Widget)
   ========================================================================== */

/* ---- Sezione contenitore ----------------------------------------------- */

.fdw-section {
    max-width: 1440px;
    background-color: var(--fifth-color, #D6F3F1);
    display: flex;
    align-items: center;
    padding-bottom: 10%;
    padding-left: 10%;
    padding-right: 10%;
    margin: 0 auto;
    border-radius: 25.91px;
    box-sizing: border-box;
}

/* ---- Colonna sinistra: testi + pulsante -------------------------------- */

.fdw-col-text {
    width: 100%;
    flex: 1 1 auto;
}

/* ---- Titolo principale ------------------------------------------------- */

.fdw-heading {
    text-align: left;
    color: var(--second-color, #1a73b8);
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 180px;
    line-height: 1.2;
    font-family: 'Lato', sans-serif;
}

/* ---- Testo descrittivo ------------------------------------------------- */

.fdw-description {
    text-align: left;
    width: 100%;
    color: var(--second-color, #1a73b8);
    font-size: 24px;
    font-weight: 400;
    font-family: 'Lato', sans-serif;
    margin: 0;
}

/* ---- Wrapper pulsante -------------------------------------------------- */

.fdw-btn-wrap {
    display: flex;
    margin-top: -6%;
    margin-bottom: -10%;
}

/* ---- Pulsante CTA ------------------------------------------------------ */

.fdw-btn {
    background: var(--second-color, #1a73b8);
    color: #fff;
    font-weight: 400;
    padding: 6px 0 6px 15px;
    border-radius: 60.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    height: auto;
    width: 255px;
    text-align: center;
    margin-top: 60px;
    margin-bottom: -10px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    font-family: 'Lato', sans-serif;
}

.fdw-btn:focus,
.fdw-btn:hover {
    color: #fff;
    background-color: #5AA1D7;
    text-decoration: none;
}

/* ---- Cerchio icona nel pulsante ---------------------------------------- */

.fdw-btn-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--second-color, #1a73b8);
    background: #fff;
    border-radius: 30px;
    padding: 14px 17px;
    margin-left: 46px;
    text-align: center;
    flex-shrink: 0;
}

.fdw-btn-icon-img {
    width: 16px;
    height: 16px;
    display: block;
}

.fdw-btn-circle svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* ---- Colonna destra: immagine decorativa ------------------------------- */

.fdw-col-image {
    width: 20%;
    margin-top: 30px;
    flex-shrink: 0;
}

.fdw-side-img {
    max-width: 120%;
    display: block;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* ---- Monitor/Laptop largo (989px – 1025px) ----------------------------- */
@media (min-width: 989px) and (max-width: 1025px) {

    .fdw-heading {
        font-size: 50px;
    }
}

/* ---- Tablet grande (750px – 989px) ------------------------------------- */
@media (min-width: 750px) and (max-width: 989px) {

    .fdw-heading {
        font-size: 50px;
        margin-bottom: 200px;
    }

    .fdw-btn {
        margin-bottom: 65px;
    }

    .fdw-btn-circle {
        margin-left: 54px;
    }
}

/* ---- Mobile (≤ 749px) ------------------------------------------------- */
@media (max-width: 749px) {

    .fdw-section {
        display: block;
        padding: 30px 10px;
        background-color: var(--fifth-color, #D6F3F1);
    }

    .fdw-col-text {
        width: 100%;
        padding: 0;
        margin-bottom: 0;
    }

    .fdw-heading {
        font-size: 24px;
        margin-bottom: 100px;
        line-height: 1.3;
    }

    .fdw-description {
        font-size: 16px;
        margin-bottom: 25px;
        line-height: 1.5;
    }

    .fdw-btn-wrap {
        margin: 0;
    }

    .fdw-btn {
        width: 250px;
        padding: 6px 0 6px 15px;
        margin: 0 auto 40px auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .fdw-btn-circle {
        margin-left: 43px;
    }

    /* Nasconde l'immagine decorativa su mobile */
    .fdw-col-image {
        display: none;
    }
}
