/* ========================================================================== */
/* FOOTER STYLES - ArcheoHero Theme                                              */
/* Colori: Carminio (#9B1B30), Oro Antico (#B8860B), Verde Oliva (#556B2F)                  */
/* ========================================================================== */

/* CSS Custom Properties from Customizer */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    font-family: var(--archeo-font-secondary, 'Inter', sans-serif);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ========================================================================== */
/* FOOTER MAIN */
/* ========================================================================== */

.footer-main {
    padding: var(--footer-padding-top) 0 var(--footer-padding-bottom);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 48px;
}

/* ========================================================================== */
/* FOOTER COLUMNS */
/* ========================================================================== */

.footer-col {
    display: flex;
    flex-direction: column;
}

/* Footer Title */
.footer-title {
    font-family: var(--archeo-font-display, 'Poppins', sans-serif);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--footer-heading, white);
    margin: 0 0 24px 0;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, var(--archeo-primary) 0%, var(--archeo-secondary) 100%);
    border-radius: 2px;
}

/* ========================================================================== */
/* COLUMN 1: ABOUT + SOCIAL */
/* ========================================================================== */

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-height: 50px;
    width: auto;
}

.footer-site-title {
    text-decoration: none;
}

.footer-site-title .logo-text {
    font-family: var(--archeo-font-display, 'Poppins', sans-serif);
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--archeo-primary) 0%, var(--archeo-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: var(--footer-text);
    margin: 0 0 24px 0;
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* Social Icons */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--archeo-gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    color: var(--footer-text, #94a3b8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--archeo-primary) 0%, var(--archeo-secondary) 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--archeo-primary-rgb, 155, 27, 48), 0.3);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

/* ========================================================================== */
/* COLUMN 2: LINKS */
/* ========================================================================== */

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu li:last-child {
    margin-bottom: 0;
}

.footer-menu a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--footer-link);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9375rem;
}

.footer-menu a svg {
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s;
    color: var(--archeo-secondary);
}

.footer-menu a:hover {
    color: var(--footer-link-hover);
    padding-left: 4px;
}

.footer-menu a:hover svg {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================================================== */
/* COLUMN 3: CONTATTI */
/* ========================================================================== */

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s;
}

a.contact-item:hover {
    color: var(--footer-link-hover);
}

a.contact-item:hover .contact-icon {
    background: linear-gradient(135deg, var(--archeo-primary) 0%, var(--archeo-secondary) 100%);
    color: white;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--archeo-primary);
    flex-shrink: 0;
    transition: all 0.3s;
}

.contact-item span {
    padding-top: 8px;
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* CTA Button */
.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--archeo-primary) 0%, var(--archeo-secondary) 100%);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s;
    align-self: flex-start;
}

.footer-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(155, 27, 48, 0.35);
}

.footer-cta-btn svg {
    transition: transform 0.3s;
}

.footer-cta-btn:hover svg {
    transform: translateX(4px);
}

/* ========================================================================== */
/* COLUMN 4: NEWSLETTER */
/* ========================================================================== */

.newsletter-text {
    color: var(--footer-text, #94a3b8);
    margin: 0 0 20px 0;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-input-wrapper {
    display: flex;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: border-color 0.3s;
}

.newsletter-input-wrapper:focus-within {
    border-color: var(--archeo-primary);
}

.newsletter-input-wrapper input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    background: transparent;
    color: white;
    font-size: 0.9375rem;
    outline: none;
    font-family: inherit;
}

.newsletter-input-wrapper input::placeholder {
    color: var(--archeo-gray);
}

.newsletter-input-wrapper button {
    padding: 14px 18px;
    border: none;
    background: linear-gradient(135deg, var(--archeo-primary) 0%, var(--archeo-secondary) 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.newsletter-input-wrapper button:hover {
    opacity: 0.9;
}

/* Newsletter Consent */
.newsletter-consent {
    display: flex;
    align-items: flex-start;
}

.newsletter-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.8125rem;
    color: var(--archeo-gray);
}

.newsletter-consent input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--archeo-primary);
}

.newsletter-consent a {
    color: var(--archeo-primary);
    text-decoration: none;
}

.newsletter-consent a:hover {
    text-decoration: underline;
}

/* Newsletter Message */
.newsletter-message {
    font-size: 0.875rem;
    padding: 0;
    border-radius: 8px;
}

.newsletter-message.success {
    color: #10b981;
    padding: 12px;
    background: rgba(16, 185, 129, 0.1);
}

.newsletter-message.error {
    color: #ef4444;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
}

/* Footer Badges */
.footer-badges {
    margin-top: 16px;
}

.footer-badges .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--archeo-gray);
    background: rgba(100, 116, 139, 0.1);
    padding: 6px 12px;
    border-radius: 50px;
}

.footer-badges .badge svg {
    color: var(--archeo-primary);
}

/* ========================================================================== */
/* FOOTER BOTTOM */
/* ========================================================================== */

.footer-bottom {
    background: var(--footer-bg, #0e0e1a);
    padding: 24px 0;
    border-top: 1px solid #2a2a42;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--archeo-gray);
    flex-wrap: wrap;
}

.made-with {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--footer-text, #94a3b8);
}

.made-with svg {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-bottom-links a {
    color: var(--archeo-gray);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--archeo-secondary);
}

.footer-bottom-links .separator {
    color: #3d3d50;
}

/* ========================================================================== */
/* BACK TO TOP */
/* ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--archeo-primary) 0%, var(--archeo-secondary) 100%);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 4px 20px rgba(155, 27, 48, 0.35);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(155, 27, 48, 0.45);
}

/* ========================================================================== */
/* RESPONSIVE */
/* ========================================================================== */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .footer-about {
        grid-column: span 2;
    }
    
    .social-icons {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 60px 0 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-about {
        grid-column: span 1;
    }
    
    .footer-title {
        margin-bottom: 20px;
    }
    
    .footer-title::after {
        width: 30px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-social {
        align-items: center;
        text-align: center;
    }
    
    .footer-cta-btn {
        align-self: center;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .copyright {
        flex-direction: column;
        gap: 8px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .social-icon {
        width: 42px;
        height: 42px;
    }
    
    .social-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ========================================================================== */
/* DARK MODE */
/* ========================================================================== */

body.dark-mode .site-footer {
    background: var(--footer-bg, var(--archeo-white));
}

body.dark-mode .footer-bottom {
    background: #020617;
    border-top-color: var(--archeo-light);
}

body.dark-mode .social-icon {
    background: var(--archeo-light);
}

body.dark-mode .contact-icon {
    background: var(--archeo-light);
}

body.dark-mode .newsletter-input-wrapper {
    background: var(--archeo-light);
}

body.dark-mode .footer-badges .badge {
    background: rgba(100, 116, 139, 0.15);
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    background: #1c1c30;
    border-top: 3px solid var(--archeo-secondary, #B8860B);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}
.cookie-banner.visible {
    transform: translateY(0);
}
.cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.cookie-text p {
    color: #c0bdb6;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}
.cookie-text a {
    color: var(--archeo-secondary, #B8860B);
    text-decoration: underline;
}
.cookie-actions { display:flex; align-items:center; gap:.6rem; flex-shrink:0; }
.cookie-accept,
.cookie-reject {
    background: var(--archeo-secondary, #B8860B);
    color: #fff;
    border: none;
    padding: 0.65rem 1.8rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
}
.cookie-reject { background:transparent; color:#fff; border:1px solid #817e78; }
.cookie-accept:hover {
    background: var(--archeo-primary, #9B1B30);
    transform: translateY(-1px);
}
.cookie-reject:hover { border-color:#fff; background:rgba(255,255,255,.08); }
@media (max-width: 640px) {
    .cookie-inner { flex-direction: column; text-align: center; padding: 1rem; }
    .cookie-actions { width:100%; }
    .cookie-accept, .cookie-reject { flex:1; }
}
