/**
 * Stili specifici per il Footer
 * Applicati a tutto il sito
 * 
 * @package Martina
 */

/* Footer principale */
.site-footer {
    background-color: var(--color-gray-900);
    color: var(--color-text-light);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Contenuto footer */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Menu footer */
#footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

#footer-menu li {
    margin-bottom: 0.75rem;
}

#footer-menu a {
    color: var(--color-gray-400);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

#footer-menu a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

#footer-menu .current-menu-item > a {
    color: var(--color-primary);
    font-weight: 600;
}

/* Sezione social */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-social h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--color-text-light);
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.125rem;
}

.social-links a:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Sezione newsletter */
.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-newsletter h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
    font-weight: 600;
}

.footer-newsletter p {
    color: var(--color-gray-400);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-form button,
.newsletter-form input[type="submit"] {
    padding: 0.75rem 1.5rem;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover,
.newsletter-form input[type="submit"]:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Footer bottom */
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    color: var(--color-gray-500);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: var(--color-gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--color-primary);
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.scroll-to-top span {
    line-height: 1;
}

/* Messaggi newsletter */
.newsletter-message {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
}

.newsletter-message-success {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.newsletter-message-error {
    background-color: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .site-footer {
        padding: 3rem 0 1.5rem;
        margin-top: 4rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input[type="email"],
    .newsletter-form button,
    .newsletter-form input[type="submit"] {
        width: 100%;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
}

/* Stili aggiuntivi per widget footer (se usi widget areas) */
.footer-widget-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget-area .widget {
    margin-bottom: 2rem;
}

.footer-widget-area .widget-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 600;
}

.footer-widget-area .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget-area .widget ul li {
    margin-bottom: 0.5rem;
}

.footer-widget-area .widget a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget-area .widget a:hover {
    color: #fff;
}
