/* GAL Footer Personalizzato */

.gal-custom-footer {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 12% 20%, rgba(255,255,255,.11), transparent 28%),
        radial-gradient(circle at 88% 80%, rgba(255,255,255,.08), transparent 30%),
        linear-gradient(135deg, var(--gal-footer-start), var(--gal-footer-end));
    border-top: 5px solid var(--gal-footer-accent);
    box-shadow: 0 -8px 28px rgba(0,0,0,.12);
}

.gal-footer-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 48px));
    min-height: 180px;
    margin: 0 auto;
    padding: 42px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.gal-footer-brand {
    display: flex;
    align-items: center;
    gap: 17px;
    min-width: 0;
}

.gal-footer-icon {
    display: grid;
    place-items: center;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    font-size: 25px;
    line-height: 1;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0,0,0,.13);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.gal-footer-title {
    margin: 0 0 7px;
    color: #fff;
    font-size: clamp(21px, 2vw, 27px);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -.3px;
}

.gal-footer-copy {
    color: rgba(255,255,255,.9);
    font-size: 14px;
    line-height: 1.6;
}

.gal-footer-separator {
    flex: 0 0 1px;
    width: 1px;
    height: 68px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,.46), transparent);
}

.gal-footer-credit {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    text-align: right;
    color: rgba(255,255,255,.85);
    font-size: 14px;
    line-height: 1.5;
}

.gal-footer-credit a {
    position: relative;
    color: var(--gal-footer-link);
    font-size: 16px;
    font-weight: 750;
    text-decoration: none;
    transition: color .25s ease, transform .25s ease;
}

.gal-footer-credit a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 10px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .25s ease;
}

.gal-footer-credit a:hover,
.gal-footer-credit a:focus-visible {
    color: #fff;
    transform: translateY(-2px);
}

.gal-footer-credit a:hover::after,
.gal-footer-credit a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.gal-footer-credit a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 7px;
    border-radius: 3px;
}

.gal-footer-shapes span {
    position: absolute;
    z-index: 1;
    display: block;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 50%;
    pointer-events: none;
}

.gal-footer-shapes span:nth-child(1) {
    width: 250px;
    height: 250px;
    top: -165px;
    left: -75px;
}

.gal-footer-shapes span:nth-child(2) {
    width: 190px;
    height: 190px;
    right: 8%;
    bottom: -130px;
}

.gal-footer-shapes span:nth-child(3) {
    width: 330px;
    height: 330px;
    right: -190px;
    top: -225px;
}

@media (max-width: 900px) {
    .gal-footer-inner {
        width: min(700px, calc(100% - 36px));
        min-height: auto;
        padding: 38px 0;
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        text-align: center;
    }

    .gal-footer-brand {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .gal-footer-separator {
        width: min(260px, 72%);
        height: 1px;
        flex-basis: 1px;
        background: linear-gradient(to right, transparent, rgba(255,255,255,.46), transparent);
    }

    .gal-footer-credit {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .gal-custom-footer {
        border-top-width: 4px;
    }

    .gal-footer-inner {
        width: calc(100% - 28px);
        padding: 31px 0;
        gap: 21px;
    }

    .gal-footer-icon {
        width: 49px;
        height: 49px;
        flex-basis: 49px;
        font-size: 22px;
    }

    .gal-footer-title {
        font-size: 20px;
    }

    .gal-footer-copy {
        max-width: 310px;
        font-size: 13px;
    }

    .gal-footer-credit {
        font-size: 13px;
    }

    .gal-footer-credit a {
        max-width: 100%;
        font-size: 15px;
        overflow-wrap: anywhere;
    }
}
