#footer-main {
    width: 100%;
    color: #2a2a2a;
    background: #ececec;
    border-top: 3px solid #2C5364;
    font-family: 'Raleway', 'Segoe UI', Arial, sans-serif;
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 2.25rem 1.75rem 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(240px, 1.15fr) minmax(220px, 1fr);
    gap: 2.5rem 3rem;
    align-items: start;
    text-align: left;
}

.footer-col {
    min-width: 0;
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 0.75rem;
}

.footer-logo {
    display: block;
    max-width: 170px;
    height: auto;
}

.footer-org {
    margin: 0 0 0.35rem;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
    color: #333;
}

.footer-domain {
    margin: 0;
    font-size: 13px;
}

.footer-domain a {
    color: #2C5364;
    text-decoration: none;
    font-weight: 700;
}

.footer-domain a:hover {
    text-decoration: underline;
}

.footer-heading {
    margin: 0 0 1rem;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2C5364;
}

.footer-doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-doc-list li {
    margin: 0 0 0.45rem;
}

.footer-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #2C5364;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.footer-doc-link i {
    font-size: 1rem;
    flex-shrink: 0;
    opacity: 0.85;
}

.footer-doc-link:hover {
    color: #1a3a4a;
    text-decoration: underline;
}

.footer-contact-dl {
    margin: 0 0 1rem;
    padding: 0;
}

.footer-contact-dl dt {
    margin: 0.65rem 0 0.15rem;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #666;
}

.footer-contact-dl dt:first-child {
    margin-top: 0;
}

.footer-contact-dl dd {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #333;
}

.footer-contact-dl a {
    color: #2C5364;
    text-decoration: none;
}

.footer-contact-dl a:hover {
    text-decoration: underline;
}

.footer-map-link {
    display: inline-block;
    border: 1px solid #c5c5c5;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-map-link:hover {
    border-color: #2C5364;
    box-shadow: 0 2px 8px rgba(44, 83, 100, 0.15);
}

.footer-map-link iframe {
    display: block;
    width: 220px;
    height: 120px;
    pointer-events: none;
}

.footer-map-caption {
    display: block;
    padding: 0.35rem 0.5rem;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    color: #2C5364;
    background: #f7f7f7;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #c8c8c8;
}

.footer-bottom-copy {
    margin: 0;
    font-size: 12px;
    color: #555;
    line-height: 1.4;
}

.footer-bottom-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 12px;
}

.footer-bottom-legal a {
    color: #2C5364;
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom-legal a:hover {
    text-decoration: underline;
}

.footer-dot {
    color: #999;
}

/* Legacy hooks (altre pagine) */
.container-footer-main,
.container-footer-main-credits {
    max-width: 1140px;
    margin: 0 auto;
}

.footer-basic-link {
    color: #2C5364;
    text-decoration: none;
}

.footer-basic-link:hover {
    text-decoration: underline;
}

@media screen and (max-width: 960px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-contact {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 1.5rem 2rem;
        align-items: start;
    }

    .footer-contact .footer-heading {
        grid-column: 1 / -1;
    }

    .footer-contact-dl {
        margin-bottom: 0;
    }
}

@media screen and (max-width: 640px) {
    .footer-inner {
        padding: 1.75rem 1.25rem 1.25rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .footer-contact {
        display: block;
    }

    .footer-map-link {
        margin-top: 0.5rem;
    }

    .footer-map-link iframe {
        width: 100%;
        max-width: 280px;
        height: 130px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
