:root {
    --aita-green: #104b38;
    --aita-green-deep: #0a3428;
    --aita-gold: #e0ae50;
    --aita-white: #fffdf8;
}

.aita-footer,
.aita-footer * {
    box-sizing: border-box;
}

.aita-footer {
    position: relative;
    z-index: 50;
    width: 100%;
    clear: both;
    margin: 0;
    color: var(--aita-white);
    font-family: inherit;
    line-height: 1.5;
}

.aita-footer__container {
    width: min(1510px, calc(100% - 128px));
    margin-inline: auto;
}

.aita-footer a {
    color: inherit;
    text-decoration: none !important;
}

/* Il footer inizia direttamente dal corpo verde: nessun banner superiore. */
.aita-footer__main {
    padding: 76px 0 70px;
    background: #31503c;
}

.aita-footer__grid {
    display: grid;
    grid-template-columns: 1.05fr 1.08fr 1.28fr .84fr;
    gap: clamp(44px, 5vw, 92px);
    align-items: start;
}

.aita-footer__brand {
    padding-top: 27px;
}

.aita-footer__logo {
    display: block;
    width: min(326px, 100%);
    height: auto;
    margin: 0 auto 68px;
}

.aita-footer__brand p {
    max-width: 315px;
    margin: 0 auto;
    color: rgba(255, 253, 248, .9);
    font-size: 17px;
    line-height: 1.72;
    text-align: center;
}

.aita-footer__column h3 {
    position: relative;
    margin: 0 0 38px;
    padding-bottom: 14px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.2;
    text-transform: uppercase;
}

.aita-footer__column h3::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 2px;
    background: var(--aita-gold);
    content: '';
}

.aita-footer__contact-row {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    margin: 0 0 22px;
    color: rgba(255, 253, 248, .94);
    font-size: 17px;
    line-height: 1.5;
}

.aita-footer__contact-row a:hover,
.aita-footer__links a:hover,
.aita-footer__legal a:hover {
    color: #f2c064;
}

.aita-footer__contact-icon {
    display: block;
    flex: 0 0 27px;
    padding-top: 1px;
    color: var(--aita-gold);
}

.aita-footer__contact-icon svg,
.aita-footer__directions svg,
.aita-footer__social svg {
    display: block;
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.aita-footer__directions {
    display: inline-flex;
    min-height: 62px;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
    padding: 14px 25px;
    border: 1px solid var(--aita-gold);
    border-radius: 7px;
    color: #f0b956 !important;
    font-size: 18px;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.aita-footer__directions:hover {
    color: var(--aita-green-deep) !important;
    background: var(--aita-gold);
    transform: translateY(-2px);
}

.aita-footer__hours,
.aita-footer__links {
    padding: 0;
    margin: 0;
    list-style: none;
}

.aita-footer__hours li {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 18px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    color: rgba(255, 253, 248, .96);
    font-size: 16px;
    line-height: 1.35;
}

.aita-footer__hours li:first-child {
    padding-top: 0;
}

.aita-footer__hours li:last-child {
    border-bottom: 0;
}

.aita-footer__hours strong {
    font-weight: 400;
    white-space: nowrap;
}

.aita-footer__links li {
    border-bottom: 1px solid rgba(255, 255, 255, .17);
}

.aita-footer__links a {
    display: flex;
    min-height: 60px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: rgba(255, 253, 248, .96);
    font-size: 17px;
    transition: color .2s ease, padding-left .2s ease;
}

.aita-footer__links a:hover {
    padding-left: 4px;
}

.aita-footer__links span {
    color: #f1bd5b;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
}

.aita-footer__social {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-top: 25px;
}

.aita-footer__social a,
.aita-footer__social > span {
    display: grid;
    width: 51px;
    height: 51px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .94);
    border-radius: 50%;
    color: #fff;
}

.aita-footer__social a {
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.aita-footer__social a:hover {
    color: var(--aita-green);
    background: #fff;
    transform: translateY(-2px);
}

.aita-footer__social .aita-icon-fill {
    fill: currentColor;
    stroke: none;
}

.aita-footer__legal {
    padding: 28px 0;
    color: rgba(255, 253, 248, .9);
    background: linear-gradient(90deg, #0a3328, #103f31, #093126);
    font-size: 15px;
}

.aita-footer__legal-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
}

.aita-footer__legal-inner > * {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 0 38px;
    border-left: 1px solid var(--aita-gold);
    white-space: nowrap;
}

.aita-footer__legal-inner > *:first-child {
    padding-left: 0;
    border-left: 0;
}

.aita-footer__legal-inner > *:last-child {
    padding-right: 0;
}

/* Rimuove footer, copyright e pagamenti del tema Ecosoap. */
.aita-custom-footer-enabled #colophon:not(#aita-custom-footer),
.aita-custom-footer-enabled footer.site-footer:not(#aita-custom-footer),
.aita-custom-footer-enabled .site-footer:not(.aita-footer),
.aita-custom-footer-enabled .footer-area,
.aita-custom-footer-enabled .main-footer,
.aita-custom-footer-enabled .footer-bottom-area,
.aita-custom-footer-enabled .footer-bottom,
.aita-custom-footer-enabled .copyright-area,
.aita-custom-footer-enabled .copyright-bar,
.aita-custom-footer-enabled .footer-copyright,
.aita-custom-footer-enabled .bottom-footer,
.aita-custom-footer-enabled .footer-payment,
.aita-custom-footer-enabled .footer-payments,
.aita-custom-footer-enabled .payment-methods {
    display: none !important;
}

@media (max-width: 1180px) {
    .aita-footer__container {
        width: min(100% - 64px, 1510px);
    }

    .aita-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aita-footer__brand p {
        margin-left: 0;
        text-align: left;
    }

    .aita-footer__logo {
        margin-left: 0;
    }

    .aita-footer__social {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .aita-footer__container {
        width: min(100% - 34px, 1510px);
    }

    .aita-footer__main {
        padding: 54px 0 48px;
    }

    .aita-footer__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .aita-footer__brand {
        padding-top: 0;
    }

    .aita-footer__logo {
        width: min(290px, 100%);
        margin: 0 0 32px;
    }

    .aita-footer__brand p {
        max-width: 330px;
    }

    .aita-footer__hours li {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .aita-footer__hours strong {
        white-space: normal;
    }

    .aita-footer__legal-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .aita-footer__legal-inner > * {
        min-height: auto;
        padding: 0;
        border-left: 0;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aita-footer *,
    .aita-footer *::before,
    .aita-footer *::after {
        transition: none !important;
    }
}
