body #colophon.site-footer,
body.home #colophon.site-footer {
    background: #101b30;
    color: #e4eaf3;
    border-top: 4px solid #00a5ab;
}
body #colophon .site-footer-row-container-inner {
    background: transparent;
}
body #colophon .site-footer-top-section-1,
body #colophon .site-footer-top-section-2,
body #colophon .site-footer-top-section-3,
body #colophon .site-footer-top-section-4 {
    align-items: flex-start;
    text-align: left;
}
body #colophon .site-footer-top-section-1 {
    border-top: 3px solid #00b7bb;
}
body #colophon .site-footer-top-section-2 {
    border-top: 3px solid #ff4654;
}
body #colophon .site-footer-top-section-3 {
    border-top: 3px solid #ad69ef;
}
body #colophon .site-footer-top-section-1,
body #colophon .site-footer-top-section-2,
body #colophon .site-footer-top-section-3,
body #colophon .site-footer-top-section-4 {
    padding-top: 24px;
}
body #colophon .site-top-footer-wrap .site-footer-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    padding: 48px 0 32px;
}
body #colophon h3 {
    color: #fff;
    font-size: 20px;
    line-height: 1.3;
    margin: 0 0 20px;
}
body #colophon .widget,
body #colophon .widget p {
    margin-bottom: 0;
}
body #colophon .salsa-footer-logo {
    width: 170px;
    max-width: 100%;
    height: auto;
    display: block;
    background: #fff;
    border-radius: 10px;
    padding: 8px;
}
body #colophon .salsa-footer-brand p {
    margin-top: 18px;
    font-size: 18px;
    line-height: 1.5;
    color: #e4eaf3;
}
body #colophon .salsa-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
body #colophon .salsa-footer-links li {
    margin: 0 0 10px;
}
body #colophon a {
    font-size: 18px;
    line-height: 1.5;
    color: #e4eaf3;
    text-decoration: none;
}
body #colophon a:hover {
    color: #70e1da;
    text-decoration: underline;
}
body #colophon a:focus-visible {
    outline: 2px solid #70e1da;
    outline-offset: 4px;
}
body #colophon .salsa-footer-links span {
    font-size: 18px;
    line-height: 1.5;
    color: #b2bdd0;
}
body #colophon .site-bottom-footer-wrap {
    border-top: 1px solid #344057;
}
body #colophon .site-bottom-footer-wrap .site-footer-row {
    padding: 20px 0;
}
body #colophon .footer-html {
    width: 100%;
    color: #c5cede;
}
body #colophon .salsa-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
}
/* Fourth column belongs to the existing top row; the lower band is unchanged. */
body #colophon .site-footer-top-section-4 { border-top: 3px solid #38b764; }
body #colophon .site-top-footer-wrap .site-footer-section { min-width: 0; }
body #colophon .salsa-footer-tavbook { min-width: 0; width: 100%; container-type: inline-size; }
body #colophon a.salsa-footer-tavbook-logo {
    display: inline-flex;
    width: 100%;
    align-items: center;
    max-width: 100%;
    box-sizing: border-box;
    padding: 9.6px 12px;
    border-radius: 3px;
    background: #e4eaf3;
}
body #colophon .salsa-footer-tavbook-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
body #colophon .salsa-footer-tavbook-copy { margin: 18px 0 0; }
body #colophon .salsa-footer-tavbook-copy > :is(span,a) { color: #fc9d00; }
body #colophon .salsa-footer-tavbook-copy > :is(span,a),
body #colophon .salsa-footer-tavbook-benefits > span,
body #colophon a.salsa-footer-tavbook-contact {
    display: block;
    font-size: 14px;
    line-height: 1.6;
}
body #colophon .salsa-footer-tavbook-benefits { margin: 16px 0; }
@media (min-width: 1200px) {
    body #colophon .salsa-footer-tavbook-benefits > span { line-height: 30.035px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
    body #colophon .site-top-footer-wrap .site-footer-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    body #colophon .site-top-footer-wrap .site-footer-row {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px 0;
    }
    body #colophon .salsa-footer-logo {
        width: 145px;
    }
    body #colophon .salsa-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Social centrati nella barra inferiore */
body #colophon .salsa-footer-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
}
body #colophon .salsa-footer-bottom > span:first-child {
    text-align: left;
}
body #colophon .salsa-footer-bottom > span:last-child {
    text-align: right;
}
body #colophon .salsa-footer-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}
body #colophon .salsa-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #e4eaf3;
    border: 1px solid #40506c;
    border-radius: 50%;
}
body #colophon .salsa-social-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: currentColor;
}
body #colophon a.salsa-social-icon:hover {
    color: #70e1da;
    border-color: #70e1da;
}
@media (max-width: 900px) {
    body #colophon .salsa-footer-bottom {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 16px;
    }
    body #colophon .salsa-footer-bottom > span:first-child,
    body #colophon .salsa-footer-bottom > span:last-child {
        text-align: center;
    }
}

/* Allineamento della barra inferiore */
body #colophon .footer-html,
body #colophon .site-footer-bottom-section-1 {
    width: 100%;
    min-width: 0;
}
body #colophon .salsa-footer-bottom {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
}
body #colophon .salsa-footer-bottom > p {
    display: contents;
}
body #colophon .salsa-footer-copyright {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    text-align: left !important;
}
body #colophon .salsa-footer-bottom .salsa-footer-socials {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
}
body #colophon .salsa-footer-credit {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    text-align: right !important;
}
@media (max-width: 900px) {
    body #colophon .salsa-footer-bottom {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    body #colophon .salsa-footer-copyright,
    body #colophon .salsa-footer-bottom .salsa-footer-socials,
    body #colophon .salsa-footer-credit {
        grid-column: 1;
        grid-row: auto;
        justify-self: center;
        text-align: center !important;
    }
}

/* BEGIN SALSAITALIA GLOBAL LOGO */
body .site-branding img.custom-logo {
    max-height: 112px;
    width: auto;
    height: auto;
}
body .site-header-row {
    min-height: 126px;
}
@media (max-width: 767px) {
    body .site-branding img.custom-logo {
        max-height: 86px;
    }
    body .site-header-row {
        min-height: 100px;
    }
}
/* END SALSAITALIA GLOBAL LOGO */

/* Logo trasparente nel footer */
footer .salsa-footer-logo,
#colophon .salsa-footer-logo {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Il tooltip assegna 14px al link: nel footer mantiene la misura degli altri link. */
body #colophon a.si-add-listing-link {
    font-size: 18px !important;
}

/* Leave room for the fixed consent control below the mobile footer credit. */
@media (max-width: 767px) {
    body #colophon .site-bottom-footer-wrap .site-footer-row {
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }
}

/* The tagline follows the full logo-box width without wrapping. */
body #colophon .salsa-footer-tavbook-copy > .salsa-footer-tavbook-tagline {
    width:100%;
    font-size:clamp(10px,4.8cqi,14px);
    white-space:nowrap;
    text-align:justify;
    text-align-last:justify;
}

/* Center the SalsaItalia brand block in the first footer column. */
body #colophon .site-footer-top-section-1 {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding-block:24px;
    text-align:center;
}
body #colophon .site-footer-top-section-1 .footer-widget-area { width:100%; flex:0 0 auto; }
body #colophon .salsa-footer-brand {
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
}

/* Keep X hidden in both footer social renderers. */
body #colophon .salsa-footer-socials [aria-label="X"],
body #colophon .footer-social-wrap .social-link-twitter,
body #colophon .footer-social-wrap .social-link-x {
    display:none !important;
}
