:root{
    --first-footer-bg: rgba(254, 249, 250, 1);
}

/* --- Stile base footer (desktop) --- */
.section-wdg-13 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 48px;
    background-color: var(--first-footer-bg);
    box-sizing: border-box;
}

.footer-top {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 230px;
    box-sizing: border-box;
    margin-top: 25px;
}

.logo-immagine {
    position: relative;
    height: 144.32px;
    overflow: hidden;
    width: 100%;
}

.footer-sezioni {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    flex: 1 1 auto;
    box-sizing: border-box;
}

.footer-gruppo-sezioni {
    display: none;
    /*display: flex;*/
    flex-wrap: wrap;
    align-content: flex-start;
    flex: 1 1 auto;
    box-sizing: border-box;
}

.footer-colonna {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 236px;
    margin-left: 40px;
    box-sizing: border-box;
}

.footer-sottogruppo {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 268.5px;
    padding-right: 40px;
    box-sizing: border-box;
}

.footer-titolo {
    padding: 8px 0;
    color: var(--first-color);
    font-family: Lato, sans-serif;
    font-weight: 900;
    font-size: 16px;
    text-transform: uppercase;
    line-height: 24px;
    letter-spacing: 0.5px;
}

.footer-link,
.footer-link-icona {
    padding: 8px 0;
    color: var(--first-color);
    font-family: Lato, sans-serif;
    font-weight: 900;
    font-size: 14px;
    line-height: 16.8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.icona-svg {
    width: 14px;  /* aumenta leggermente la dimensione */
    height: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.footer-gruppo-utilita {
    display: flex;
    flex: 1 1 auto;
    box-sizing: border-box;
    margin-top: 20px;
}

.footer-basso {
    width: 79.5%;
    display: none;
    /*display: flex;*/
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    align-self: flex-end;
    box-sizing: border-box;
    margin-top: 40px;
}

.footer-link-basso {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 1px solid var(--first-color);
    padding-bottom: 32px;
    width: 100%;
    box-sizing: border-box;
}

.footer-link-basso > div {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--first-color);
    font-family: Lato, sans-serif;
    font-weight: 900;
    font-size: 14px;
    line-height: 16.8px;
    margin-right: 40px;
}

.footer-note {
    color: var(--first-color);
    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;
}

/* --- MEDIA QUERY TABLET (600px - 989px) --- */
@media (max-width: 989px) and (min-width: 600px) {
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-logo {
        display: none;
    }
    .footer-sezioni {
        width: 100%;
    }
    .footer-gruppo-sezioni {
        flex-direction: column;
        flex-wrap: nowrap;
    }
    .footer-colonna {
        width: 100%;
        margin-left: 0;
        margin-bottom: 24px;
    }
    .footer-sottogruppo {
        width: 100%;
        padding-right: 0;
        margin-bottom: 24px;
    }
    .footer-gruppo-utilita {
        flex-direction: column;

        margin-top: 24px;
    }
    .footer-basso {
        width: 100%;
        align-items: center;
        margin-top: 32px;
    }
    .footer-link-basso {
        justify-content: center;
    }
    .footer-link-basso > div {
        margin-right: 20px;
        margin-bottom: 12px;
    }
    .footer-note {
        font-size: 11px;
        line-height: 18px;
        text-align: center;
        margin-top: 16px;
    }
}

/* --- MEDIA QUERY MOBILE (max 599px) --- */
@media (max-width: 599px) {
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-logo {
        display: none; /* Nasconde il logo su mobile */
    }
    .footer-sezioni {
        width: 100%;
    }
    .footer-gruppo-sezioni {
        flex-direction: column;
        flex-wrap: nowrap;
    }
    .footer-colonna {
        width: 100%;
        margin-left: 0;
        margin-bottom: 20px;
    }
    .footer-sottogruppo {
        width: 100%;
        padding-right: 0;
        margin-bottom: 20px;
    }
    .footer-gruppo-utilita {
        flex-direction: column;
        margin-top: 20px;
    }
    .footer-basso {
        width: 100%;
        align-items: center;
        margin-top: 24px;
    }
    .footer-link-basso {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-bottom: 16px;
    }
    .footer-link-basso > div {
        margin-right: 0;
        margin-bottom: 12px;
    }
    .footer-note {
        font-size: 11px;
        line-height: 18px;
        text-align: center;
        margin-top: 16px;
        padding: 0 1rem;
    }
}
        