/* ========================================= */
/* FILE: header-footer.css                   */
/* Gestisce Testata, Menu, Footer e WhatsApp */
/* + Integrazione Cookie Consent             */
/* ========================================= */

/* --- 1. HEADER (Testata) --- */
.header-slim-wrapper {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    z-index: 1000;
}

.slim-top-bar {
    background-color: #333;
    color: #fff;
    font-size: 12px;
    padding: 8px 0;
}

.slim-top-container {
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.slim-top-bar a { 
    color: #fff; 
    text-decoration: none; 
    transition: 0.3s; 
    white-space: nowrap; /* IMPEDISCE AL NUMERO DI SPEZZARSI */
}

.slim-top-bar a:hover { color: #a9343c; }

.sep { margin: 0 5px; color: #666; }

/* 📱 OTTIMIZZAZIONE MOBILE: Social sopra, Contatti sotto */
@media (max-width: 600px) {
    .slim-top-container {
        flex-direction: column; /* Forza le due righe */
        gap: 10px;              /* Spazio tra le righe */
        text-align: center;
    }

    .slim-social, .slim-contact {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .slim-top-bar a {
        font-size: 11px;
        margin: 0 8px;
    }
}

/* Logo e Navigazione */
.slim-main-header {
    max-width: 1200px; margin: 0 auto; padding: 15px 20px;
    display: flex; justify-content: space-between; align-items: center;
}

.slim-logo img { height: 70px; width: auto; display: block; }

.slim-welcome {
    text-align: center; color: #a9343c; font-weight: 600;
    font-size: 14px; text-transform: uppercase; padding-bottom: 10px; letter-spacing: 1px;
}

/* --- 2. NAVIGATION (Menu) --- */
.slim-nav-bar { background: #fff; border-top: 1px solid #f0f0f0; }
.slim-menu {
    list-style: none; padding: 0; margin: 0; display: none; background: #f9f9f9;
}
.slim-menu li { border-bottom: 1px solid #ddd; text-align: center; }
.slim-menu a {
    display: block; padding: 15px 0; text-decoration: none;
    color: #333; font-weight: 600; text-transform: uppercase; font-size: 14px; transition: color 0.3s;
}
.slim-menu a:hover { color: #a9343c; }

.btn-book-slim {
    background-color: #a9343c; color: #fff !important;
    display: inline-block !important; padding: 10px 25px !important;
    border-radius: 4px; margin: 10px 0;
}
.btn-book-slim:hover { background-color: #8e2b32; }

/* Mobile Logic */
#slim-menu-btn { display: none; }
.slim-menu-icon { display: block; cursor: pointer; padding: 10px; }
.navicon { background: #333; display: block; height: 2px; position: relative; width: 24px; }
.navicon:before, .navicon:after {
    background: #333; content: ""; display: block; height: 100%;
    position: absolute; width: 100%; transition: all .2s ease-out;
}
.navicon:before { top: 6px; }
.navicon:after { top: -6px; }
#slim-menu-btn:checked ~ .slim-nav-bar .slim-menu { display: block; }

/* Desktop Media Query */
@media (min-width: 768px) {
    .slim-menu-icon { display: none; }
    .slim-main-header { justify-content: center; }
    .slim-menu { display: flex; justify-content: center; align-items: center; background: transparent; }
    .slim-menu li { border-bottom: none; margin: 0 15px; }
    .slim-menu a { padding: 15px 5px; }
    .btn-book-slim { margin: 0; }
}

/* --- 3. FOOTER (Piè di pagina) --- */
.footer-clean {
    font-family: 'Montserrat', sans-serif;
    padding: 20px 20px 10px; 
    background: #fff;
    border-top: 1px solid #eaeaea; 
    text-align: center;
    color: #333;
    margin-top: 50px; 
}

.footer-actions {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-bottom: 20px;
}
.f-btn {
    display: inline-block; padding: 14px 25px; border-radius: 6px;
    text-decoration: none; font-weight: 700; font-size: 13px;
    color: #fff !important; background: #555;
    transition: all 0.2s ease; min-width: 220px; text-transform: uppercase; letter-spacing: 0.5px;
}
.f-btn.red { 
    background: #a9343c; 
    box-shadow: 0 4px 10px rgba(169, 52, 60, 0.2);
} 
.f-btn:hover { 
    opacity: 0.9; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.footer-info {
    border-top: 1px solid #f5f5f5; padding-top: 20px; font-size: 13px; line-height: 1.8;
}
.footer-links { margin-bottom: 20px; }
.footer-links a {
    color: #a9343c; text-decoration: none; font-weight: 600; margin: 0 12px; display: inline-block;
}
.footer-links a:hover { text-decoration: underline; }

.footer-address strong { 
    color: #a9343c; font-size: 16px; display: block; margin-bottom: 5px; 
}

.copyright {
    margin-top: 30px; font-size: 11px; color: #999;
}

@media (max-width: 768px) {
    .footer-actions { flex-direction: column; align-items: center; gap: 15px; }
    .f-btn { width: 100%; max-width: 320px; }
}

/* --- 4. WHATSAPP FLOATING BUTTON --- */
.whatsapp-float {
    position: fixed;
    width: 60px; height: 60px;
    bottom: 40px; right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

.whatsapp-icon-svg {
    width: 35px; height: 35px;
    fill: white;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px; height: 50px;
        bottom: 20px; right: 20px;
    }
    .whatsapp-icon-svg { width: 28px; height: 28px; }
}

/* --- 5. COOKIE CONSENT --- */
.cookie-float {
    position: fixed;
    width: 60px; height: 60px;
    bottom: 40px; left: 40px;
    background-color: #7d5233;
    color: #FFF;
    border-radius: 50px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 3px #999;
    z-index: 9999;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-float:hover {
    background-color: #5d3d26;
    width: 130px;
    border-radius: 30px;
}

.cookie-float svg {
    width: 30px; height: 30px;
    fill: currentColor;
}

.cookie-float::after {
    content: "Cookie";
    display: none;
    margin-left: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

.cookie-float:hover::after {
    display: inline-block;
}

#cookie-banner {
    position: fixed;
    bottom: 20px; left: 20px; right: 20px;
    background: #fff;
    border: 1px solid #ccc;
    padding: 20px;
    z-index: 10001;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
}

@media (max-width: 768px) {
    .cookie-float {
        width: 50px; height: 50px;
        bottom: 20px; left: 20px;
    }
    .cookie-float svg { width: 25px; height: 25px; }
    .cookie-float:hover { width: 50px; }
    .cookie-float:hover::after { display: none; }
}