* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Raleway', sans-serif; overflow-x: hidden; scroll-behavior: smooth; }

/* NAVBAR */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; background: #fff; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.logo-text { font-family: 'Playfair Display', serif; font-size: 2rem; color:#056cb5; text-transform: uppercase; letter-spacing: 3px; font-weight: bold; line-height: 1; }
.logo-sub { display: block; font-size: 10px; color: #888; letter-spacing: 2px; text-align: center; }
.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 20px; }
.nav-links a { text-decoration: none; color: #333; font-weight: 600; font-size: 0.9rem; }
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color:#056cb5; }

/* HERO */
.hero { height: 80vh; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; color: white; }
.saldi-titolo { font-family: 'Playfair Display', serif; font-size: 5rem; color: #c41212; }
.saldi-sottotitolo { font-size: 1.5rem; margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.timer-container { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; }
.time-segment { background: rgba(255,255,255,0.2); padding: 15px; border-radius: 5px; min-width: 80px; border: 1px solid rgba(255,255,255,0.3); }
.time-segment span { font-size: 1.8rem; font-weight: bold; display: block; }
.btn { padding: 12px 30px; background:#056cb5; color: white; text-decoration: none; font-weight: bold; }

/* SLIDER */
.products { padding: 60px 5%; text-align: center; }
.slider-wrapper { position: relative; display: flex; align-items: center; margin-top: 40px; }
.slider-container { display: flex; gap: 20px; overflow-x: hidden; scroll-behavior: smooth; width: 100%; padding: 10px; }
.card { min-width: calc(33.333% - 14px); flex-shrink: 0; text-align: center; }
.img-box { width: 100%; height: 300px; overflow: hidden; margin-bottom: 15px; }
.img-box img { width: 100%; height: 100%; object-fit: cover; }
.slider-btn { position: absolute; background: rgb(5,108,181); color: white; border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; z-index: 10; font-size: 1.2rem; }
.prev-btn { left: -20px; }
.next-btn { right: -20px; }

/* MOBILE */
@media (max-width: 768px) {
    .hamburger { display: block; }

    .nav-links { 
        position: absolute; 
        top: 100%; 
        right: 0; 
        width: 100%; 
        background: #fff; 
        flex-direction: column; 
        height: 0; 
        overflow: hidden; 
        transition: 0.3s; 
        
        /* AGGIUNGI QUESTE DUE RIGHE */
        padding-left: 25px; 
        align-items: flex-start; 
    }

    .nav-links.active { 
        height: auto; /* Cambiato da 400px a auto per far stare tutti i tuoi link */
        padding-top: 20px; 
        padding-bottom: 20px; 
    }

    .nav-links li { 
        margin: 10px 0; 
        margin-left: 0; /* Rimuove il margine desktop per non sommarlo al padding */
    }
    
    /* ... il resto del tuo codice mobile (card, titolo, ecc.) ... */
}
/* FORZATURA COLORE ORO PER TUTTO IL FOOTER */
.footer-orizzontale {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    padding: 15px 3%;
    border-top: 1px solid #056cb5 !important;
    width: 100%;
}

.footer-container {
    max-width: 1500px;
    margin: 30 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* Questa regola colora TUTTO: link, paragrafi e icone */
.footer-item, 
.footer-item p, 
.footer-item a, 
.footer-item i,
.gold-text {
    color: #2596be !important; /* Forza il colore oro sabbia */
    text-decoration: none !important; /* Toglie la sottolineatura blu */
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    font-style: normal !important;
}

/* Effetto hover (opzionale: diventa un oro più scuro) */
.footer-item a:hover {
    color: #056cb5 !important;
}

/* Logo (già corretto, ma lo rinforziamo) */
.logo-text-small {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color:#056cb5 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Mobile */
@media (max-width: 1100px) {
    .footer-container {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    .footer-item {
        flex: 1 1 30%;
        min-width: 160px;
    }
}
/* SEZIONE FORM CONTATTI */
.form-section {
    padding: 80px 5%;
    background-color: #fff;
    text-align: center;
}

.form-container {
    max-width: 800px; /* Limita la larghezza del form per centrarlo */
    margin: 0 auto; /* Centra orizzontalmente il contenitore */
}

.form-titolo {
    font-family: 'Playfair Display', serif;
    color:#056cb5;
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.form-subtitle {
    color: #888;
    font-size: 1rem;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    font-family: 'Raleway', sans-serif;
    outline: none;
    transition: 0.3s;
    background: #fdfdfd;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color:#056cb5;
    background: #fff;
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

.btn-form {
    background-color:#056cb5;
    color: #fff;
    padding: 18px;
    border: none;
    border-radius: 2px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.4s;
}

.btn-form:hover {
    background-color: #056cb5;
    letter-spacing: 3px;
}

/* Responsive per il form */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    .form-titolo {
        font-size: 1.4rem;
    }
}
/* --- STILE PROMOZIONI QUADRATO (GALLERY) --- */
.promo-section { padding: 60px 5%; text-align: center; background: #fff; }
.promo-titolo-semplice { font-family: 'Playfair Display', serif; color:#056cb5; font-size: 2rem; margin-bottom: 30px; text-transform: uppercase; letter-spacing: 2px; }

.promo-slider-wrapper { display: flex; align-items: center; justify-content: center; gap: 20px; position: relative; }

.promo-slider-container { 
    width: 600px; /* Desktop */
    height: 600px; 
    position: relative; 
    overflow: hidden; 
    border: 1px solid #056cb5; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.promo-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease-in-out; }
.promo-slide.active { opacity: 1; z-index: 5; }
.promo-slide img { width: 100%; height: 100%; object-fit: cover; }

.promo-btn { background: transparent; border: 1px solid #056cb5; color:#056cb5; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10; }

/* ADATTAMENTO MOBILE GALLERY - ALLARGATA PER NON TAGLIARE */
@media (max-width: 768px) {
    .promo-slider-container { 
        width: 95vw;       /* Allargata al 95% dello schermo */
        height: 95vw;      /* Mantiene il quadrato perfetto */
        max-width: 500px;  /* Permette di diventare più grande di prima se lo schermo lo consente */
        max-height: 500px; 
    }
    .promo-btn { 
        width: 35px; 
        height: 35px; 
        position: absolute; /* Mette le frecce sopra l'immagine se lo schermo è troppo stretto */
    }
    .promo-btn#promoPrev { left: 5px; }
    .promo-btn#promoNext { right: 5px; }
    
    .promo-slider-wrapper { gap: 0; } /* Rimuove lo spazio esterno per dare massima ampiezza alla foto */
}
/* --- PULSANTE WHATSAPP FLUTTUANTE --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366; /* Verde ufficiale WhatsApp */
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: all 0.3s ease;
}

.whatsapp-float i {
    font-size: 1.5rem;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Nascondi il testo su smartphone molto piccoli per non ingombrare */
@media (max-width: 480px) {
    .whatsapp-float span {
        display: none;
    }
    .whatsapp-float {
        padding: 12px;
        border-radius: 50%;
    }
}
/* --- PULSANTE TORNA SU AGGIORNATO --- */
.back-to-top {
    position: fixed;
    bottom: 20px; /* Stessa altezza di WhatsApp per allineamento perfetto */
    right: 230px; /* Aumentato per stare a sinistra del tasto WhatsApp con testo */
    background-color:#056cb5;
    color: white;
    width: 50px; /* Un po' più grande per bilanciare visivamente */
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none; /* Gestito dallo script */
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 9998;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: #056cb5;
    transform: translateY(-5px);
}

/* --- ADATTAMENTO MOBILE --- */
@media (max-width: 480px) {
    /* Su mobile il tasto WhatsApp diventa solo icona (circa 50px), 
       quindi il Torna Su può stare più vicino */
    .back-to-top {
        right: 80px; 
        bottom: 20px;
        width: 45px;
        height: 45px;
    }
}
/* STILI SPECIFICI PAGINA SALDI */
.saldi-text-block { padding: 30px 0; text-align: left; }
.saldi-list { list-style: none; line-height: 2; font-size: 1.1rem; color: #444; }
.saldi-list li::before { content: "•"; color: #056cb5; font-weight: bold; display: inline-block; width: 1em; margin-left: -1em; }
.promo-highlight { font-size: 1.3rem; color: #c41212; margin: 15px 0; font-weight: 600; }
.sale-img { margin-bottom: 40px; border-radius: 4px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.finale { text-align: center; font-size: 1.2rem; border-top: 1px solid #eee; padding-top: 40px; }
/* --- STILE PAGINA SALDI ACCATTIVANTE --- */
.section-saldi { padding: 60px 5%; }

/* Layout alternato per i blocchi */
.saldi-row { 
    display: flex; 
    align-items: center; 
    gap: 50px; 
    margin-bottom: 80px; 
}
.saldi-row:nth-child(even) { flex-direction: row-reverse; }

.saldi-text { flex: 1; text-align: left; }
.saldi-image { 
    flex: 1; 
    position: relative;
    border-left: 5px solid #056cb5; /* Richiamo blu Caffi */
    padding-left: 15px;
}
.saldi-image img { 
    width: 100%; 
    border-radius: 8px; 
    display: block;
    box-shadow: 20px 20px 0px rgba(5, 108, 181, 0.05); /* Effetto design moderno */
}

.saldi-list { list-style: none; padding: 0; }
.saldi-list li { 
    margin-bottom: 12px; 
    font-size: 1.1rem; 
    display: flex; 
    align-items: center; 
    gap: 10px;
}
/* Icona elegante prima di ogni voce */
.saldi-list li::before { 
    content: "\f00c"; 
    font-family: "Font Awesome 5 Free"; 
    font-weight: 900; 
    color: #c41212; /* Rosso saldi */
    font-size: 0.9rem;
}

.promo-badge {
    background: #c41212;
    color: white;
    padding: 20px;
    border-radius: 4px;
    display: inline-block;
    font-size: 1.4rem;
    font-weight: bold;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .saldi-row, .saldi-row:nth-child(even) { flex-direction: column; gap: 30px; }
    .saldi-image { border-left: none; border-bottom: 5px solid #056cb5; padding-left: 0; padding-bottom: 15px; }
}
/* --- HEADER BRAND BIANCHERIA (Altezza Ridotta 45vh) --- */

/* Fazzini - Mantenuto con cover per le immagini panoramiche */
.hero-fazzini {
    height: 45vh;
    background-image: url('images/biancheria-per-la-casa-fazzini-header.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Randi - Ottimizzato per l'immagine verticale inviata */
.hero-randi {
    height: 45vh;
    background-image: url('images/biancheria-per-la-casa-randi-1931-udine-caffi-header.jpg');
    background-size: cover;
    background-position: top center; /* Focalizza la parte superiore della foto */
    position: relative;
}

/* Bossi - Mantenuto con cover */
.hero-bossi {
    height: 45vh;
    background-image: url('images/biancheria-per-la-casa-bossi-udine-caffi-header.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Galizzi - Aggiunto per completezza */
.hero-galizzi {
    height: 45vh;
    background-image: url('images/biancheria-per-la-casa-galizzi-udine-caffi-header.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}
/* Contenitore per il mondo e le frecce */
.globe-container {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

/* L'immagine che ruota */
.brand-globe {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 50%; /* La rende perfettamente circolare */
    transition: transform 0.5s ease-out; /* Per rotazioni fluide con le frecce */
    animation: ruotaMondo 20s linear infinite; /* Rotazione automatica continua */
}

/* Animazione infinita */
@keyframes ruotaMondo {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Frecce di controllo */
.globe-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(5, 108, 181, 0.7);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 30;
    transition: background 0.3s;
}

.globe-arrow:hover { background: #056cb5; }
.arrow-left { left: -60px; }
.arrow-right { right: -60px; }

/* Ferma l'animazione se l'utente ci passa sopra col mouse */
.globe-container:hover .brand-globe {
    animation-play-state: paused;
}
/* CHECKBOX FAZZINI */
.form-group-tipo {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.checkbox-group {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: #555;
    user-select: none;
    position: relative;
    padding-left: 35px;
}

.checkbox-box {
    position: absolute;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #056cb5;
    border-radius: 3px;
    background: #fff;
    transition: all 0.3s;
    margin-right: 10px;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-box {
    background: #056cb5;
    border-color: #056cb5;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-box::after {
    content: "✔";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .checkbox-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .checkbox-label {
        padding-left: 35px;
        font-size: 1rem;
    }
}
/* CHECKBOX GALIZZI (IDENTICO A FAZZINI) */
.form-group-tipo {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.checkbox-group {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: #555;
    user-select: none;
    position: relative;
    padding-left: 35px;
}

.checkbox-box {
    position: absolute;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #056cb5;
    border-radius: 3px;
    background: #fff;
    transition: all 0.3s;
    margin-right: 10px;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-box {
    background: #056cb5;
    border-color: #056cb5;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-box::after {
    content: "✔";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .checkbox-group {
        flex-direction: column;
        gap: 15px;
    }
}

