/* ==========================================================================
   Fidia Hello Widget – Stili
   Adattato dal file hello.css originale.
   Aggiunta: due pulsanti affiancati (fhw-btn1 + fhw-btn2) a destra del titolo.
   Prefisso classi: fhw- (Fidia Hello Widget)
   ========================================================================== */

/* ---- Wrapper esterno (sfondo rosa chiaro) ------------------------------- */

.fhw-outer {
    max-width: 1500px;
    margin: 0 auto;
    background-color: var(--third-color, #FEF3F6);
max-width: 100vw !important;
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

}

/* ---- Wrapper con padding laterale -------------------------------------- */

.fhw-wrapper {
    background: var(--third-color, #FEF3F6);
    margin: 0 20px;
    padding-top: 2rem;
padding-left:30px;
padding-right:30px;
}

/* ---- Riquadro blu interno ---------------------------------------------- */

.fhw-inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--second-color, rgba(0, 51, 107, 1));
    color: #fff;
    border-radius: 12px;
    padding: 0 1.5rem;
    height: 170px;
    min-height: 170px;
    gap: 1.5rem;
    box-sizing: border-box;
    overflow: hidden;
}

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

.fhw-heading {
    font-size: 3rem;
    font-weight: 300;
    line-height: 120%;
    color: #fff;
    margin: 0;
    flex-shrink: 0;
    font-family: 'Lato', sans-serif;
}

/* ---- Gruppo pulsanti affiancati ---------------------------------------- */

.fhw-btns {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    z-index: 1;
}

/* ---- Stile base condiviso dei pulsanti --------------------------------- */

.fhw-btn {
    display: inline-flex;
    align-items: center;
    border-radius: 60.5px;
    text-decoration: none;
    font-weight: 400;
    font-family: 'Lato', sans-serif;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
    height: auto;
    padding: 4px 0 4px 18px;
}

/* ---- Pulsante 1: sfondo bianco, testo blu ------------------------------ */

.fhw-btn1 {
    background: #fff;
    color: var(--second-color, rgba(0, 51, 107, 1));
    border: 2px solid transparent;
}

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

.fhw-btn1 .fhw-btn-circle {
    background: var(--second-color, rgba(0, 51, 107, 1));
    color: #fff;
}

/* ---- Pulsante 2: sfondo trasparente/bordato, testo bianco -------------- */

.fhw-btn2 {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.fhw-btn2:hover,
.fhw-btn2:focus {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
}

.fhw-btn2 .fhw-btn-circle {
    background: #fff;
    color: var(--second-color, rgba(0, 51, 107, 1));
}

/* ---- Cerchio icona comune ---------------------------------------------- */

.fhw-btn-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    padding: 15px 18px;
    margin-left: 55px;
    margin-right: 7px;
    flex-shrink: 0;
}

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

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

/* ---- Wave decorativa --------------------------------------------------- */

.fhw-wave {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 60%;
    height: 60%;
    /* background-image: var(--fhw-wave-desktop,
        url('/wp-content/uploads/2025/11/navbar-white-wave.png'));  */
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    pointer-events: none;
    z-index: 0;
}

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

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

    .fhw-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
        height: auto;
        min-height: auto;
        gap: 1rem;
    }

    .fhw-heading {
        font-size: 2rem;
        text-align: center;
    }

    .fhw-btns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    .fhw-btn {
        width: auto;
        margin: 0 auto;
        justify-content: center;
        text-align: center;
        padding: 0.75rem 1.5rem;
    }

    .fhw-btn-circle {
        /* Cerchio nascosto su mobile (come nell'originale) */
        display: none;
    }

    .fhw-wave {
        left: 0;
        width: 100%;
        height: 100%;
        /* background-image: var(--fhw-wave-mobile,
            url('/wp-content/uploads/2025/11/navbar-white-wave-mobile.png')); */
        background-repeat: no-repeat;
        background-position: center top;
        background-size: cover;
    }
}

/* ---- Tablet (601px – 1024px) ------------------------------------------ */
@media (min-width: 601px) and (max-width: 1024px) {

    .fhw-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.5rem 1.5rem;
        gap: 1rem;
    }

    .fhw-btns {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 12px;
    }

    .fhw-btn {
        padding: 0.5rem 0.5rem 0.5rem 14px;
    }

    .fhw-btn-circle {
        padding: 0.75rem 1rem;
        margin-left: 20px;
    }

    .fhw-wave {
        left: 0;
        width: 100%;
        height: 100%;
        /* background-image: var(--fhw-wave-desktop,
            url('/wp-content/uploads/2025/11/navbar-white-wave.png')); */
        background-repeat: no-repeat;
        background-position: center top;
        background-size: cover;
    }
}
