.footer p, .footer a, .footer h4 {
    font-size: 0.9rem;
    margin: 0;
}

.footer {
    background-color: var(--surface);
    color: var(--text-color);
    padding: 60px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    align-items: flex-start;
    gap: 10rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.footer-social-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-section-info-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    margin-right: 100px;
} 

.footer-section-info h4,
.footer-section-info p,
.footer-section-info a,
.footer-section-info li {
    white-space: nowrap;
}

.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-section h3,
.footer-section h4 {
    margin: 0;
    color: var(--text-color);
}

.footer-logo {
    width: 40px;
    height: 30px;
    display: inline-block;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.footer-logo-mask {
    background-color: var(--text-color);
    -webkit-mask-image: url('/images/icons/logo-nero.svg');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: url('/images/icons/logo-nero.svg');
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.footer-links {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon {
    width: 22px;
    height: 22px;
    display: block;
    background-color: var(--text-color);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    transition: background-color 0.2s, transform 0.2s;
}

.icon-facebook { -webkit-mask-image: url('./assets/facebook.svg'); mask-image: url('./assets/facebook.svg'); }
.icon-instagram { -webkit-mask-image: url('./assets/instagram.svg'); mask-image: url('./assets/instagram.svg'); }
.icon-linkedin { -webkit-mask-image: url('./assets/linkedin.svg'); mask-image: url('./assets/linkedin.svg'); }
.icon-tiktok { -webkit-mask-image: url('./assets/tiktok.svg'); mask-image: url('./assets/tiktok.svg'); }

.footer-links a:hover .social-icon,
.footer-links a:focus-visible .social-icon {
    background-color: var(--primary-color);
    transform: translateY(-1px);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.footer-section-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-section-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section-info li {
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.footer-section-info p {
    display: block;
    margin: 0;
    line-height: inherit;
}

.footer-section-info a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    line-height: inherit;
}

.footer-section-info a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(127, 127, 127, 0.28);
    padding-top: 20px;
    text-align: center;
    color: var(--muted-color);
}

@media (max-width: 900px) {
    .footer {
        padding: 40px 20px 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-section,
    .footer-section-info-container,
    .footer-section-info h4,
    .footer-section-info p,
    .footer-section-info a,
    .footer-section-info li {
        white-space: normal;
    }

    .footer-section-info-container {
        flex-direction: column;
        gap: 24px;
        margin-right: 0;
    }
}
