/* ==========================================================================
   Fidia Footer Top Widget – Stili
   Adattato dal file footer_top.css originale.
   Prefisso classi: fft- (Fidia Footer Top)
   ========================================================================== */

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

.fft-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 0 20px;
    padding-top: 3%;
    padding-bottom: 3%;
    background-color: var(--first-footer-bg, rgba(254, 249, 250, 1));
    box-sizing: border-box;
}


/* ---- Riga principale: logo + sezioni ----------------------------------- */

.fft-top {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
}

/* ---- Logo -------------------------------------------------------------- */

.fft-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 230px;
    flex-shrink: 0;
    box-sizing: border-box;
    margin-top: 25px;
margin-left:40px;
}

.fft-logo-wrap {
    position: relative;
    height: 144px;
    overflow: hidden;
    width: 100%;
}

.fft-logo-wrap img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---- Contenitore sezioni ----------------------------------------------- */

.fft-sezioni {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    flex: 1 1 auto;
    box-sizing: border-box;
}

/* ---- Gruppo colonne navigazione ---------------------------------------- */

.fft-gruppo-nav {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    flex: 1 1 auto;
    box-sizing: border-box;
}

/* ---- Gruppo utilità ---------------------------------------------------- */

.fft-gruppo-utilita {
    display: flex;
    flex: 1 1 auto;
    box-sizing: border-box;
    margin-top: 20px;
}

/* ---- Colonna generica -------------------------------------------------- */

.fft-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 236px;
    margin-left: 40px;
    box-sizing: border-box;
}

/* ---- Sottogruppo (colonna 4 doppia) ------------------------------------ */

.fft-sottogruppo {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    padding-right: 40px;
    box-sizing: border-box;
    margin-bottom: 8px;
}

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

.fft-col-title {
    padding: 8px 0;
    color: var(--first-color, #000);
    font-family: Lato, sans-serif;
    font-weight: 900;
    font-size: 16px;
    text-transform: uppercase;
    line-height: 24px;
    letter-spacing: 0.5px;
}

/* ---- Link semplice ----------------------------------------------------- */

.fft-link {
    padding: 8px 0;
    color: var(--first-color, #000);
    font-family: Lato, sans-serif;
    font-weight: 900;
    font-size: 14px;
    line-height: 16.8px;
    text-decoration: none;
    display: block;
    transition: opacity 0.2s ease;
}

.fft-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* ---- Link con icona freccia -------------------------------------------- */

.fft-icon-link {
    padding: 8px 0;
    color: var(--first-color, #000);
    font-family: Lato, sans-serif;
    font-weight: 900;
    font-size: 14px;
    line-height: 16.8px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.fft-icon-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.fft-icon-svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fft-icon-svg svg {
    width: 10px;
    height: 10px;
}

/* ---- Footer basso: policy + nota --------------------------------------- */

.fft-basso {
    width: 79.5%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    align-self: flex-end;
    box-sizing: border-box;
    margin-top: 40px;
}

.fft-policy-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 1px solid var(--first-color, #000);
    padding-bottom: 32px;
    width: 100%;
    box-sizing: border-box;
    gap: 0;
}

.fft-policy-link {
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--first-color, #000);
    font-family: Lato, sans-serif;
    font-weight: 900;
    font-size: 14px;
    line-height: 16.8px;
    margin-right: 40px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.fft-policy-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.fft-note {
    color: var(--first-color, #000);
    font-family: Lato, sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 21px;
    letter-spacing: 0.5px;
    word-wrap: break-word;
    align-self: stretch;
    margin-top: 20px;
}

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

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

    .fft-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .fft-logo {
        width: 150px;
        height: auto;
        margin-bottom: 24px;
    }

    .fft-sezioni {
        width: 100%;
    }

    .fft-gruppo-nav {
        flex-direction: column;
        flex-wrap: nowrap;
        width: 100%;
    }

    .fft-col {
        width: 100%;
        margin-left: 0;
        margin-bottom: 24px;
    }

    .fft-sottogruppo {
        width: 100%;
        padding-right: 0;
        margin-bottom: 24px;
    }

    .fft-gruppo-utilita {
        flex-direction: column;
        margin-top: 24px;
        width: 100%;
    }

    .fft-basso {
        width: 100%;
        align-items: center;
        margin-top: 32px;
    }

    .fft-policy-bar {
        justify-content: center;
    }

    .fft-policy-link {
        margin-right: 20px;
        margin-bottom: 12px;
    }

    .fft-note {
        font-size: 11px;
        line-height: 18px;
        text-align: center;
        margin-top: 16px;
    }
}

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

    .fft-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .fft-logo {
        width: 150px;
        height: auto;
        margin-bottom: 24px;
    }

    .fft-sezioni {
        width: 100%;
    }

    .fft-gruppo-nav {
        flex-direction: column;
        flex-wrap: nowrap;
        width: 100%;
    }

    .fft-col {
        width: 100%;
        margin-left: 0;
        margin-bottom: 20px;
    }

    .fft-sottogruppo {
        width: 100%;
        padding-right: 0;
        margin-bottom: 20px;
    }

    .fft-gruppo-utilita {
        flex-direction: column;
        margin-top: 20px;
        width: 100%;
    }

    .fft-basso {
        width: 100%;
        align-items: center;
        margin-top: 24px;
    }

    .fft-policy-bar {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-bottom: 16px;
    }

    .fft-policy-link {
        margin-right: 0;
        margin-bottom: 12px;
    }

    .fft-note {
        font-size: 11px;
        line-height: 18px;
        text-align: center;
        margin-top: 16px;
        padding: 0 1rem;
    }
}

