/* ── SHARED FOOTER STYLES (PREMIUM EDITORIAL UPGRADE) ── */
.footer {
    background: #EADFD7;
    color: var(--burgundy, #771016);
    padding: 100px 0 0;
    border-top: 1px solid rgba(119, 16, 22, 0.08);
    margin-top: 100px;
    width: 100%;
    font-family: var(--font-sans, 'Montserrat', sans-serif);
}

/* Ensure full width in centered layouts */
body > .footer {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.footer-container {
    display: grid;
    grid-template-columns: 2.2fr 1.2fr 1.8fr;
    gap: 80px;
    padding-bottom: 70px;
    max-width: var(--max, var(--max-w, 1101px));
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
}

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

/* Posizionamento ed estetica Premium del Logo */
.footer-logo {
    height: 80px;
    margin-bottom: 22px;
    filter: drop-shadow(0 4px 12px rgba(119, 16, 22, 0.08));
    transform-origin: left center;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
    display: block;
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 20px rgba(119, 16, 22, 0.18));
}

/* Tagline a manifesto editoriale (Playfair corsivo con accento verticale) */
.tagline {
    opacity: 0.88;
    font-size: 15.5px;
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-style: italic;
    line-height: 1.8;
    color: var(--burgundy, #771016);
    margin-bottom: 32px;
    max-width: 310px;
    border-left: 2px solid rgba(119, 16, 22, 0.25);
    padding-left: 18px;
    letter-spacing: 0.3px;
    transition: border-color 0.4s ease, opacity 0.4s ease;
}

.footer-col:hover .tagline {
    border-left-color: var(--burgundy, #771016);
    opacity: 1;
}

.footer-col h4 {
    margin-bottom: 30px;
    font-size: 22px;
    color: var(--burgundy, #771016);
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 12px;
    width: 100%;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--burgundy, #771016);
    opacity: 0.25;
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
}

.footer-col:hover h4::after {
    width: 60px;
    opacity: 0.6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.footer-col ul:not(.footer-contact-list) li {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
}

/* Proiettile (bullet) custom ed elegante per i menu Navigazione e Trattamenti */
.footer-col ul:not(.footer-contact-list) li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--burgundy, #771016);
    opacity: 0.35;
    margin-right: 12px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    flex-shrink: 0;
}

.footer-col ul:not(.footer-contact-list) li:hover::before {
    opacity: 1;
    transform: scale(1.5);
    background: var(--burgundy, #771016);
    box-shadow: 0 0 8px rgba(119, 16, 22, 0.4);
}

.footer-col ul li a {
    color: var(--burgundy, #771016);
    text-decoration: none;
    opacity: 0.75;
    font-size: 15.5px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-block;
    padding: 2px 0;
}

.footer-col ul li a:hover {
    opacity: 1;
    transform: translateX(6px);
    font-weight: 600;
}

/* Contact List Premium Styling */
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 30px;
    width: 100%;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14.5px;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.footer-contact-list li .footer-contact-icon {
    margin: 0;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

/* Wrapper circolare elegante per le icone di contatto */
.footer-contact-list li:hover .footer-contact-icon {
    transform: scale(1.2);
}

.footer-contact-list a {
    opacity: 0.9 !important;
    transform: none !important;
    text-decoration: none;
    position: relative;
    display: inline-block;
    max-width: 100%;
    padding-bottom: 3px;
    color: var(--burgundy, #771016);
    font-weight: 500;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.footer-contact-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--burgundy, #771016);
    transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.footer-contact-list a:hover::after {
    width: 100%;
}

.p-iva {
    font-size: 13px;
    opacity: 0.6;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Pulsante CTA nel Footer */
.footer .btn-primary {
    margin-top: 10px;
    display: inline-block;
    padding: 16px 38px;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 100px;
    box-shadow: 0 12px 30px rgba(119, 16, 22, 0.22);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: var(--burgundy, #771016);
    color: #EADFD7;
    text-decoration: none;
}

.footer .btn-primary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 20px 40px rgba(119, 16, 22, 0.4);
    background: linear-gradient(180deg, #b8212a 0%, #8b131a 50%, #700f14 100%);
}

/* Social Icons Premium Pill */
.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(119, 16, 22, 0.07);
    border: 1px solid rgba(119, 16, 22, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.social-icons a img {
    transition: filter 0.4s ease, transform 0.4s ease;
}

.social-icons a:hover {
    background: var(--burgundy, #771016);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(119, 16, 22, 0.25);
    border-color: var(--burgundy, #771016);
}

.social-icons a:hover img {
    filter: brightness(0) invert(1);
    transform: scale(1.1);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(119, 16, 22, 0.12);
    padding: 35px 0;
    font-size: 14px;
    font-weight: 500;
}

.container-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max, var(--max-w, 1101px));
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
}

.container-bottom p {
    opacity: 0.8;
}

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

.bottom-links a {
    color: var(--burgundy, #771016);
    text-decoration: none;
    opacity: 0.7;
    font-size: 13.5px;
    font-weight: 500;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.bottom-links a:hover {
    opacity: 1;
    color: var(--burgundy, #771016);
    text-decoration: underline;
}

/* Scroll Top Button Premium */
.scroll-top {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--burgundy, #771016);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(119, 16, 22, 0.25);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-top img {
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
}

.scroll-top:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 15px 30px rgba(119, 16, 22, 0.4);
    background: #8b131a;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
}

@media (max-width: 768px) {
    body > .footer {
        width: 100% !important;
        position: static !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .footer {
        padding: 60px 0 0;
        margin-top: 60px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 0;
        padding-bottom: 40px;
        padding-left: 20px;
        padding-right: 20px;
    }
    .footer-col {
        padding: 30px 0;
        width: 100%;
    }
    .footer-col:first-child {
        padding-top: 0;
    }
    .footer-col:not(:last-child) {
        border-bottom: 1px solid rgba(119, 16, 22, 0.1);
    }
    .footer-col h4 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    .footer-logo {
        height: 64px;
        margin-bottom: 16px;
    }
    .tagline {
        margin-bottom: 20px;
        font-size: 15px;
    }
    .footer-contact-list {
        margin-bottom: 20px;
    }
    .footer-contact-list li {
        align-items: flex-start;
    }
    .footer .btn-primary {
        margin-top: 5px;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    .container-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 20px;
        padding-left: 20px;
        padding-right: 20px;
    }
    .bottom-links {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 20px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 40px 0 0;
        margin-top: 40px;
    }
    .footer-container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .footer-col {
        padding: 24px 0;
    }
    .footer-contact-list li {
        gap: 10px;
        font-size: 13.5px;
    }
    .container-bottom {
        padding-left: 16px;
        padding-right: 16px;
        gap: 16px;
    }
    .bottom-links {
        gap: 16px;
    }
    .bottom-links a {
        font-size: 12.5px;
    }
}

/* ── MAP CHOICE DIALOG FOR APPLE USERS ── */
.map-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.map-dialog-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.map-dialog-box {
    background: #F9F6F2;
    border-radius: 24px;
    width: 90%;
    max-width: 380px;
    padding: 35px 30px;
    box-shadow: 0 24px 60px rgba(119, 16, 22, 0.18);
    border: 1px solid rgba(119, 16, 22, 0.1);
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-sizing: border-box;
}

.map-dialog-overlay.open .map-dialog-box {
    transform: scale(1) translateY(0);
}

.map-dialog-title {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 21px;
    font-weight: 700;
    color: var(--burgundy, #771016);
    margin: 0 0 12px;
}

.map-dialog-desc {
    font-family: var(--font-sans, 'Montserrat', sans-serif);
    font-size: 14.5px;
    color: var(--burgundy, #771016);
    opacity: 0.8;
    margin: 0 0 28px;
    line-height: 1.6;
}

.map-dialog-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.map-dialog-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-sans, 'Montserrat', sans-serif);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-sizing: border-box;
}

.map-dialog-btn.apple-maps-btn {
    background: var(--burgundy, #771016);
    color: #EADFD7;
    box-shadow: 0 8px 20px rgba(119, 16, 22, 0.15);
}

.map-dialog-btn.apple-maps-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(119, 16, 22, 0.3);
    background: #8b131a;
}

.map-dialog-btn.google-maps-btn {
    background: rgba(119, 16, 22, 0.06);
    color: var(--burgundy, #771016);
    border: 1px solid rgba(119, 16, 22, 0.15);
}

.map-dialog-btn.google-maps-btn:hover {
    transform: translateY(-2px);
    background: rgba(119, 16, 22, 0.1);
}

.map-dialog-close {
    background: none;
    border: none;
    font-family: var(--font-sans, 'Montserrat', sans-serif);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--burgundy, #771016);
    opacity: 0.6;
    cursor: pointer;
    padding: 8px 16px;
    transition: opacity 0.3s ease;
}

.map-dialog-close:hover {
    opacity: 1;
}
