


    /* ==============================
   Studio Graffiti Footer
============================== */

.sg-footer-area {
    position: relative;
    background-color: #171717;
    color: #ffffff;
    overflow: hidden;
    z-index: 2;
}

.sg-footer-area::before {
    content: "";
    position: absolute;
    top: -220px;
    right: -220px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background-color: rgba(220, 45, 23, 0.14);
    pointer-events: none;
}

.sg-footer-area::after {
    content: "";
    position: absolute;
    bottom: -240px;
    left: -240px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.sg-footer-main {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.45fr 0.85fr 0.65fr 0.8fr;
    gap: 54px;
    padding-top: 110px;
    padding-bottom: 90px;
}

.sg-footer-brand {
    max-width: 620px;
}

.sg-footer-logo {
    display: inline-flex;
    margin-bottom: 32px;
}

.sg-footer-logo img {
    max-width: 350px;
    height: auto;
    display: block;
}

.sg-footer-text {
    max-width: 560px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 16px;
    line-height: 1.65;
}

.sg-footer-rating-box {
    margin-top: 28px;
    margin-bottom: 28px;
}

.sg-footer-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.sg-footer-btn {
    min-height: 54px;
}

/* Widget */

.sg-footer-widget {
    position: relative;
}

.sg-footer-title {
    margin-bottom: 28px;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.sg-footer-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sg-footer-list li {
    margin-bottom: 14px;
}

.sg-footer-list li:last-child {
    margin-bottom: 0;
}

.sg-footer-list a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 15px;
    line-height: 1.45;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sg-footer-list a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.sg-footer-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(220, 45, 23, 0.1);
    color: #dc2d17;
    transition: all 0.3s ease;
}

.sg-footer-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.sg-footer-list a:hover .sg-footer-icon {
    background-color: #dc2d17;
    color: #ffffff;
}

/* Social */

.sg-footer-social-list a {
    align-items: center;
}

/* Certificazioni */

.sg-footer-small-text {
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 15px;
    line-height: 1.55;
}

.sg-footer-certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.sg-footer-certification {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 92px;
    padding: 12px;
    border-radius: 18px;
    background-color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

.sg-footer-certification:hover {
    transform: translateY(-4px);
    border-color: rgba(220, 45, 23, 0.65);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.sg-footer-certification img {
    max-width: 100%;
    height: auto;
    display: block;
}

.iubenda-certification {
    min-width: 170px;
}

/* Bottom */

.sg-footer-bottom {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.sg-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 24px;
    padding-bottom: 24px;
}

.sg-footer-copy {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
    line-height: 1.5;
}

.sg-footer-legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: rgba(255, 255, 255, 0.38);
}

.sg-footer-legal a {
    color: #dc2d17;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sg-footer-legal a:hover {
    color: #ffffff;
}

/* ==============================
   Responsive
============================== */

@media (max-width: 1399px) {
    .sg-footer-main {
        grid-template-columns: 1.3fr 1fr;
        gap: 46px 60px;
    }
}

@media (max-width: 991px) {
    .sg-footer-main {
        grid-template-columns: 1fr;
        padding-top: 90px;
        padding-bottom: 70px;
    }

    .sg-footer-brand {
        max-width: 100%;
    }

    .sg-footer-text {
        max-width: 100%;
    }

    .sg-footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .sg-footer-main {
        padding-top: 70px;
        padding-bottom: 56px;
        gap: 42px;
    }

    .sg-footer-logo img {
        max-width: 260px;
    }

    .sg-footer-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .sg-footer-btn {
        width: 100%;
    }

    .sg-footer-title {
        margin-bottom: 22px;
        font-size: 22px;
    }

    .sg-footer-list a {
        font-size: 15px;
    }

    .sg-footer-certifications {
        gap: 12px;
    }

    .sg-footer-certification {
        min-width: 86px;
        min-height: 86px;
        border-radius: 16px;
    }

    .iubenda-certification {
        min-width: 150px;
    }

    .sg-footer-bottom-inner {
        padding-top: 22px;
        padding-bottom: 22px;
    }
}

/* ==============================
   FIX OVERFLOW FOOTER GLOBALE
============================== */

/* Evita che il footer allarghi la pagina */
.sg-footer-area {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Fondamentale per CSS Grid: permette alle colonne di restringersi */
.sg-footer-main,
.sg-footer-brand,
.sg-footer-widget,
.sg-footer-bottom-inner,
.sg-footer-list,
.sg-footer-list li,
.sg-footer-list a,
.sg-footer-text,
.sg-footer-small-text,
.sg-footer-buttons,
.sg-footer-certifications {
    min-width: 0;
    max-width: 100%;
}

/* La griglia non deve mai superare il container */
.sg-footer-main {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr) minmax(0, 0.65fr) minmax(0, 0.8fr);
}

/* Logo sicuro */
.sg-footer-logo {
    max-width: 100%;
}

.sg-footer-logo img {
    max-width: min(350px, 100%);
    height: auto;
}

/* Testi lunghi, email e link non devono creare scroll laterale */
.sg-footer-list a,
.sg-footer-copy,
.sg-footer-legal a,
.sg-footer-text,
.sg-footer-small-text {
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Evita overflow generato da hover translate */
.sg-footer-list a:hover {
    transform: none;
    color: #ffffff;
}

/* Icone stabili */
.sg-footer-icon {
    flex: 0 0 34px;
}

/* Bottoni sicuri */
.sg-footer-buttons {
    width: 100%;
}

.sg-footer-btn {
    max-width: 100%;
    white-space: normal;
}

/* Certificazioni sicure */
.sg-footer-certifications {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.sg-footer-certification {
    max-width: 100%;
}

.iubenda-certification {
    min-width: 0;
    width: auto;
}

/* Immagini certificazioni */
.sg-footer-certification img {
    max-width: 100%;
    height: auto;
}

/* Widget esterni tipo Trustindex/Iubenda */
.sg-footer-rating-box,
.sg-footer-rating-box iframe,
.sg-footer-rating-box div,
.sg-footer-rating-box section {
    max-width: 100% !important;
}

/* Bottom footer */
.sg-footer-bottom-inner {
    width: 100%;
    max-width: 100%;
}

.sg-footer-legal {
    max-width: 100%;
}

/* ==============================
   Responsive fix
============================== */

@media (max-width: 1399px) {
    .sg-footer-main {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (max-width: 991px) {
    .sg-footer-main {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .sg-footer-area::before {
        width: 360px;
        height: 360px;
        top: -180px;
        right: -180px;
    }

    .sg-footer-area::after {
        width: 360px;
        height: 360px;
        bottom: -180px;
        left: -180px;
    }

    .sg-footer-logo img {
        max-width: min(260px, 100%);
    }

    .sg-footer-buttons {
        width: 100%;
    }

    .sg-footer-btn {
        width: 100%;
        max-width: 100%;
    }

    .sg-footer-certifications {
        gap: 10px;
    }

    .sg-footer-certification {
        min-width: 0;
        width: calc(50% - 5px);
        min-height: 82px;
    }

    .iubenda-certification {
        width: 100%;
    }

    .sg-footer-bottom-inner {
        overflow: hidden;
    }
}

@media (max-width: 390px) {
    .sg-footer-logo img {
        max-width: 220px;
    }

    .sg-footer-certification {
        width: 100%;
    }
}
