/**
 * Widget: footer-top|v01 — icotea 2026
 *
 * Ogni regola e' discendente della classe root .footer-top-v01 (isolamento widget).
 * Mobile first: colonne impilate, griglia a piu' colonne da 768px / 1200px.
 */

footer {
    font-family: var(--icotea-font-body);
    background-color: var(--icotea-jolly);
    background-image: url('/wp-content/themes/theme-bs5-deverso/assets/images/logo-white-transparent.webp');
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: 40vw;
    background-blend-mode: soft-light;
}


.footer-top-v01 {
    color: var(--icotea-dark-blue);
}

.footer-top-v01 .footer-top-v01-container {
    max-width: var(--icotea-container-max);
    margin: 0 auto;
    padding: 40px 20px 24px;
}

.footer-top-v01 .footer-top-v01-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

/* ==========================================================================
   Titoli di colonna
   ========================================================================== */

.footer-top-v01 .footer-top-v01-title {
    margin: 0 0 12px;
    font-family: var(--icotea-font-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
    text-transform: uppercase;
    color: var(--icotea-brand-blue);
}

/* ==========================================================================
   Colonna 1: logo e dati societari
   ========================================================================== */

.footer-top-v01 .footer-top-v01-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-top-v01 .footer-top-v01-logo img {
    display: block;
    width: auto;
    height: 47px;
}

.footer-top-v01 .footer-top-v01-company {
    margin: 0 0 8px;
    font-family: var(--icotea-font-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
    color: var(--icotea-dark-blue);
}

.footer-top-v01 .footer-top-v01-fiscal {
    margin: 0;
    max-width: 260px;
    font-size: 13px;
    font-weight: 400;
    line-height: 24px;
    color: var(--icotea-dark-blue);
}

.footer-top-v01 .footer-top-v01-fiscal strong {
    font-weight: 700;
}

/* ==========================================================================
   Colonna 2: menu
   ========================================================================== */

.footer-top-v01 .footer-top-v01-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-top-v01 .footer-top-v01-menu a {
    font-family: var(--icotea-font-heading);
    font-size: 14px;
    font-weight: 500;
    line-height: 17px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--icotea-brand-blue);
}

.footer-top-v01 .footer-top-v01-menu a:hover,
.footer-top-v01 .footer-top-v01-menu a:focus-visible {
    text-decoration: underline;
}

/* Voce con figli: link + toggle chevron sulla stessa riga */
.footer-top-v01 .footer-top-v01-menu-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-top-v01 .footer-top-v01-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border: 0;
    background: none;
    color: var(--icotea-brand-blue);
    cursor: pointer;
    line-height: 0;
}
.footer-top-v01 .footer-top-v01-chevron {
    width: 16px;
    height: 16px;
    transition: transform .2s ease;
}
/* Aperto: chevron-up */
.footer-top-v01 .footer-top-v01-menu-toggle[aria-expanded="true"] .footer-top-v01-chevron {
    transform: rotate(180deg);
}
.footer-top-v01 .footer-top-v01-menu-toggle:focus-visible {
    outline: 2px solid var(--icotea-brand-blue);
    outline-offset: 2px;
}

/* Sottomenu */
.footer-top-v01 .footer-top-v01-submenu {
    list-style: none;
    margin: 8px 0 0;
    padding: 0 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 1px solid var(--icotea-jolly, #D9E0E7);
}
.footer-top-v01 .footer-top-v01-submenu a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: none;
    font-weight: 400;
    line-height: 1;
}
.footer-top-v01 .footer-top-v01-submenu-ico {
    flex: none;
    width: 12px;
    height: 12px;
    color: var(--icotea-brand-blue);
}

/* ==========================================================================
   Colonna 3: assistenza
   ========================================================================== */

.footer-top-v01 .footer-top-v01-contacts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-top-v01 .footer-top-v01-contacts li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 24px;
}

.footer-top-v01 .footer-top-v01-contacts a {
    color: var(--icotea-dark-blue);
    text-decoration: none;
}

.footer-top-v01 .footer-top-v01-contacts a:hover,
.footer-top-v01 .footer-top-v01-contacts a:focus-visible {
    text-decoration: underline;
}

.footer-top-v01 .footer-top-v01-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--icotea-dark-blue);
    line-height: 0;
}

/* ==========================================================================
   Colonna 4: sedi
   ========================================================================== */

.footer-top-v01 .footer-top-v01-offices {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.footer-top-v01 .footer-top-v01-office-region {
    margin: 0;
    font-family: var(--icotea-font-heading);
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    color: var(--icotea-dark-blue);
}

.footer-top-v01 .footer-top-v01-office-type {
    margin: 4px 0 16px;
    font-family: var(--icotea-font-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color:  #333;
    text-transform: uppercase;
}


.footer-top-v01 .footer-top-v01-office-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 300;
    line-height: 18px;
    color: var(--icotea-dark-blue);
}

.footer-top-v01 .footer-top-v01-office-row a {
    color: var(--icotea-dark-blue);
    text-decoration: none;
}

.footer-top-v01 .footer-top-v01-office-row a:hover,
.footer-top-v01 .footer-top-v01-office-row a:focus-visible {
    text-decoration: underline;
}

.footer-top-v01 .footer-top-v01-office-city {
    font-size: 12px;
}

/* ==========================================================================
   Colonna 5: social
   ========================================================================== */

.footer-top-v01 .footer-top-v01-social {
    list-style: none;
    margin: 24px 0 0; /* in fondo alla prima colonna, sotto i dati fiscali */
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-top-v01 .footer-top-v01-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--icotea-brand-blue);
}

.footer-top-v01 .footer-top-v01-social a:hover,
.footer-top-v01 .footer-top-v01-social a:focus-visible {
    color: var(--icotea-brand-blue-dark);
}

/* ==========================================================================
   Striscia loghi / accreditamenti
   ========================================================================== */

.footer-top-v01 .footer-top-v01-badges {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
}

.footer-top-v01 .footer-top-v01-badges img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Focus visibile (accessibilita')
   ========================================================================== */

.footer-top-v01 a:focus-visible {
    outline: 2px solid var(--icotea-brand-blue);
    outline-offset: 2px;
}



/* ==========================================================================
   Tablet
   ========================================================================== */

@media (min-width: 768px) {

    .footer-top-v01 .footer-top-v01-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .footer-top-v01 .footer-top-v01-offices {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top-v01 .footer-top-v01-col--offices {
        grid-column: span 2;
    }
}

/* ==========================================================================
   Desktop
   ========================================================================== */

@media (min-width: 1200px) {

    .footer-top-v01 .footer-top-v01-container {
        padding: 56px 4px 24px;
    }

    .footer-top-v01 .footer-top-v01-grid {
        grid-template-columns: minmax(0, 300px) minmax(0, 160px) minmax(0, 260px) minmax(0, 1fr);
        gap: 32px;
        align-items: start;
    }

    .footer-top-v01 .footer-top-v01-col--offices {
        grid-column: auto;
    }
}
