/* ==========================================================================
   FARMACIA MAGGIORE - STYLE.CSS (MASTER 2026 - FINAL RESPONSIVE & UI FIX)
   ========================================================================== */

/* 1. SETUP & VARIABILI */
:root {
    --primary: #0B3D5E;
    --accent: #205d86;
    --success: #28a745;
    --danger: #dc3545;
    --light: #F4F8FB;
    --white: #ffffff;
    --text: #1a1a1a;
    --header-h: 110px;
    --top-h: 55px; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-snap-type: y mandatory; }

body { 
    font-family: 'Open Sans', sans-serif; color: var(--text); 
    background-color: var(--white); line-height: 1.6; 
    padding-bottom: 0 !important; margin: 0; overflow-x: hidden; width: 100%;
}

body.chat-open { overflow: hidden; } 
body.menu-open { overflow: hidden !important; position: fixed; width: 100%; height: 100%; }

h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; color: var(--primary); text-align: center; width: 100%; }
a { text-decoration: none; transition: 0.3s; color: inherit; }
a:focus, button:focus { outline: 3px solid var(--accent); outline-offset: 2px; }

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ==========================================================================
   3. HEADER E TOP BAR
   ========================================================================== */
.top-bar { 
    background: var(--primary); color: white; min-height: var(--top-h); height: auto;
    position: fixed; top: 0; left: 0; width: 100%; z-index: 2000; 
    display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 400; 
}

.container-top { width: 100%; max-width: 1200px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: center; padding: 8px 20px; box-sizing: border-box; }

.hours-wrapper { display: flex; align-items: center; position: relative; }
.top-info-text { display: flex; align-items: center; gap: 10px; color: #e0e0e0; font-size: 0.85rem; font-weight: 400; margin: 0; padding: 0;}
.top-separator { opacity: 0.4; font-weight: 300; }
#desktop-auth-box { display: flex; align-items: center; gap: 10px; margin: 0; }

.login-link-top { 
    color: #ffffff !important; font-weight: 400; padding: 6px 18px; border-radius: 20px; 
    transition: all 0.3s ease; font-size: 0.85rem; display: inline-flex; align-items: center; 
    justify-content: center; white-space: nowrap; background: rgba(255,255,255,0.1); 
    border: 1px solid rgba(255,255,255,0.3); gap: 6px; letter-spacing: 0.5px;
}
.login-link-top:hover { transform: translateY(-1px); border-color: #fff; background-color: rgba(255,255,255,0.25); }

#orario-live { 
    background: #ffffff !important; color: var(--primary) !important; border: none !important; 
    padding: 6px 18px !important; border-radius: 20px !important; font-weight: 600 !important; 
    font-size: 0.85rem !important; cursor: pointer !important; display: inline-flex !important; 
    align-items: center !important; justify-content: center !important; gap: 6px !important; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.15) !important; transition: transform 0.2s !important;
}
#orario-live:has(.fa-door-open) { background-color: var(--success) !important; color: #ffffff !important; }
#orario-live:has(.fa-door-closed) { background-color: var(--danger) !important; color: #ffffff !important; }
#orario-live:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important; }
#orario-live i, .login-link-top i { margin-top: -1px; }

header { background: white; height: var(--header-h); position: fixed; top: var(--top-h); left: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 15px rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: center; transition: top 0.3s ease; }
.navbar-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo-box { display: flex; align-items: center; }
.logo-box img { max-height: 85px; display: block; }

.nav-links { display: flex; gap: 15px; align-items: center; }
.nav-links li { list-style: none; }
.nav-links a { color: var(--primary); font-weight: 700; font-size: 1rem; padding: 10px 25px; border-radius: 50px; transition: all 0.3s ease; border: 1px solid transparent; }
.nav-links a:hover, .nav-links a.active-link { background-color: var(--accent); color: white !important; box-shadow: 0 4px 15px rgba(32, 93, 134, 0.4); transform: translateY(-2px); }

.mobile-only { display: none; }
.hamburger { display: none; cursor: pointer; font-size: 1.8rem; color: var(--primary); padding: 5px; z-index: 10002; }

/* FIX POPUP ORARI */
.hours-popup { 
    display: none; position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
    background-color: #ffffff !important; color: #222; padding: 20px; border-radius: 12px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.4) !important; border: 1px solid #ddd; 
    z-index: 999999 !important; text-align: center; opacity: 0; 
    transition: opacity 0.3s ease; width: 280px; 
}
.hours-popup.active { display: block; opacity: 1; }
.hours-popup::before { content: ""; position: absolute; top: -8px; left: 50%; margin-left: -8px; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 8px solid #ffffff; }
.hours-tabs-clean { display: flex; border-bottom: 1px solid #eee; margin-bottom: 15px; }
.hour-tab-btn-clean { flex: 1; background: none; border: none; padding: 10px 5px; font-size: 0.85rem; font-weight: 500; color: #666; cursor: pointer; border-bottom: 2px solid transparent; transition: 0.3s; }
.hour-tab-btn-clean.active { color: var(--primary); border-bottom: 2px solid var(--primary); font-weight: 600; }
.hour-content-clean { display: none; text-align: center; }
.hour-content-clean.active { display: block; }
.hour-row-clean { font-size: 0.95rem; color: #333; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 500; }

/* ==========================================================================
   4. SEZIONI GENERALI
   ========================================================================== */
section { 
    width: 100% !important; 
    min-height: 100vh !important; 
    height: 100vh !important; 
    scroll-snap-align: start !important; 
    scroll-snap-stop: always !important; 
    padding-top: 165px !important; 
    padding-bottom: 40px !important; 
    padding-left: 20px !important; 
    padding-right: 20px !important;
    display: flex !important; 
    flex-direction: column !important; 
    align-items: center !important; 
    justify-content: center !important; 
    text-align: center !important; 
    border-bottom: 1px solid rgba(0,0,0,0.05) !important; 
    position: relative !important; 
    overflow: hidden !important; 
    box-sizing: border-box !important;
}

@media (max-height: 800px) { section { height: auto !important; min-height: 100vh !important; } }

.content-box { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-grow: 0; }
.section-header { margin-bottom: 40px; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-header h2 { font-size: 2.5rem; margin-top: 5px; font-weight: 800; } 
.section-header span { color: var(--accent); font-weight: 800; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }

/* 5. HERO SECTION */
.hero { background: linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)), url('immagini/farmacia_esterna.jpg'); background-size: cover; background-position: center; background-attachment: fixed; }
.hero h1 { font-size: 4rem; margin-bottom: 20px; color: var(--primary); line-height: 1.1; font-weight: 800; }
.hero-slogan { font-size: 1.8rem; font-weight: 600; font-style: italic; color: var(--accent); margin-bottom: 35px !important; } 
.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; width: 100%; justify-content: center !important; }
.btn { padding: 16px 40px; border-radius: 50px; font-weight: 700; display: inline-block; transition: 0.3s; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.95rem;}
.btn-primary { background: var(--primary); color: white !important; border: none; box-shadow: 0 8px 20px rgba(11, 61, 94, 0.2); }
.btn-primary:hover { background: #051e2e; transform: translateY(-3px); box-shadow: 0 12px 25px rgba(11, 61, 94, 0.3); }
.btn-visit { background-color: white; color: var(--primary) !important; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border: 2px solid var(--primary); display: inline-flex; align-items: center; gap: 10px;}
.btn-visit:hover { background-color: var(--primary); color: white !important; transform: translateY(-3px); box-shadow: 0 10px 25px rgba(11, 61, 94, 0.3); }

/* 6. CHI SIAMO */
.about-section { background: var(--white); }
.about-container { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 60px; width: 100%; height: 100%; }
.about-text { flex: 1; min-width: 300px; text-align: left; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.about-text .section-header, .about-text h2 { text-align: left !important; align-items: flex-start !important; }
.about-text p { font-size: 1.1rem; color: #555; line-height: 1.8; margin-bottom: 25px; }
.about-image { flex: 1; display: flex; justify-content: center; align-items: center; }
.about-image img { width: 100%; max-width: 500px; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.15); object-fit: cover; }


/* ==========================================================================
   7. VETRINA OFFERTE - SLIDER E GRIGLIA (RESTYLING DEFINITIVO)
   ========================================================================== */
/* ==========================================================================
   FIX DEFINITIVO: VISIBILITÀ PULSANTE TENDINA OFFERTE
   ========================================================================== */

/* 1. Riduciamo drasticamente lo spazio morto sotto il titolo "Le Offerte del Mese" */
.offers-section .section-header {
    margin-bottom: 10px !important; 
}

/* 2. Tagliamo il padding inutile sotto lo slider delle card */
#offers-container.offers-slider {
    padding-bottom: 15px !important; 
}

/* 3. "Risucchiamo" il contenitore del bottone verso l'alto, appiccicandolo alle card */
.toggle-btn-wrapper {
    margin-top: -10px !important; 
    margin-bottom: 0 !important;
    position: relative;
    z-index: 50;
}

/* 4. Rendiamo il bottone leggermente più snello in altezza per salvare ulteriore spazio */
.btn-toggle-offers {
    padding: 10px 32px !important; 
    font-size: 0.95rem !important;
}
/* ---- SBLOCCO ALTEZZA SEZIONE PER EVITARE TAGLI ---- */
.offers-section { 
    background: var(--light) !important; 
    height: auto !important; 
    min-height: auto !important;
    overflow: visible !important; 
    display: block !important; 
    padding-bottom: 80px !important;
}

.offers-section .content-box { 
    max-width: 1450px !important; 
    display: block !important; 
    height: auto !important;
}

/* ---- CONTENITORE SLIDER VIP (In Alto) ---- */
.offers-slider-wrap { position: relative; width: 100%; max-width: 1450px; margin: 0 auto; }

#offers-container.offers-slider { 
    display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important; 
    gap: 25px; width: 100%; padding: 20px 10px 40px 10px; 
    scrollbar-width: none; -ms-overflow-style: none; scroll-snap-type: x proximity; 
    justify-content: flex-start !important; scroll-behavior: smooth;
}
#offers-container::-webkit-scrollbar { display: none; }

/* Frecce Slider */
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background: white; border-radius: 50%; box-shadow: 0 5px 20px rgba(0,0,0,0.12); border: none; cursor: pointer; z-index: 20; display: flex; align-items: center; justify-content: center; color: var(--primary); transition: 0.3s; font-size: 1.2rem; }
.slider-btn:hover { background: var(--primary); color: white; transform: translateY(-50%) scale(1.15); }
.prev-btn { left: -25px; } 
.next-btn { right: -25px; }


/* ---- CARD VIP GIGANTE (Solo Slider) ---- */
.offer-card.vip-card { 
    flex: 0 0 auto !important; width: 290px !important; min-width: 290px !important; 
    display: flex; flex-direction: column; background: white; border-radius: 24px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.06); position: relative; overflow: hidden; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    scroll-snap-align: start; border: 1px solid #f0f0f0; 
}

.offer-card.vip-card:hover { 
    transform: translateY(-12px); 
    box-shadow: 0 25px 45px rgba(11, 61, 94, 0.12); 
    border-color: var(--accent); 
}

.offer-img-box { 
    width: 100%; height: 220px; padding: 30px; display: flex; align-items: center; 
    justify-content: center; background: #f8fbff; 
    position: relative; border-bottom: none; 
}
.offer-img-box img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: 0.5s ease; }
.offer-card.vip-card:hover .offer-img-box img { transform: scale(1.08); }

.badges-container { position: absolute; top: 15px; left: 15px; right: 15px; display: flex; justify-content: space-between; z-index: 5; pointer-events: none;}
.discount-badge { background: #e63946; color: white; padding: 6px 12px; border-radius: 10px; font-weight: 800; font-size: 0.85rem; box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3); }
.urgency-badge { background: #ffb703; color: #023047; padding: 6px 10px; border-radius: 10px; font-weight: 800; font-size: 0.75rem; display: flex; align-items: center; gap: 4px; box-shadow: 0 4px 10px rgba(255, 183, 3, 0.3); }

.offer-details { padding: 25px 20px; text-align: center; display: flex; flex-direction: column; flex: 1; align-items: center; background: white; border-radius: 24px 24px 0 0; margin-top: -15px; z-index: 2; position: relative;}
.offer-cat { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: #888; font-weight: 700; margin-bottom: 8px; }
.offer-title { font-size: 1.15rem; color: var(--primary); font-weight: 800; margin: 0 0 10px 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 2.6em;}
.offer-reviews { color: #ffb703; font-size: 0.85rem; margin-bottom: 15px; display: flex; align-items: center; gap: 5px; }
.offer-reviews span { color: #888; font-size: 0.75rem; font-weight: 600; margin-left: 3px; }
.price-box { display: flex; flex-direction: column; align-items: center; margin-bottom: 18px; width: 100%;}
.old-price { color: #a0a0a0; font-size: 0.95rem; text-decoration: line-through; font-weight: 600; margin-bottom: -2px; }
.new-price { color: var(--danger); font-size: 1.8rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 5px; }
.save-tag { color: var(--success); font-size: 0.85rem; font-weight: 800; background: #e8f5e9; padding: 4px 10px; border-radius: 5px; border: 1px solid #c8e6c9;}

.btn-offer { background: linear-gradient(135deg, #25d366, #1da851) !important; color: white !important; padding: 12px 25px; border-radius: 50px; font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; transition: all 0.3s ease; box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3); margin-top: auto; position: relative; overflow: hidden;}
.btn-offer:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4); }
.btn-offer i { transition: 0.3s; font-size: 1.15rem; }
.btn-offer:hover i { transform: translateX(3px) rotate(-10deg); }

/* ==========================================================================
   PULSANTE TENDINA E CONTENITORE A SCOMPARSA
   ========================================================================== */
.normal-offers-wrapper {
    width: 100%;
    margin-top: 20px; /* Ridotto da 60px/40px per avvicinarlo al bottone */
    padding-top: 30px; /* Ridotto da 50px */
    border-top: 2px dashed #dbebf5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Stile del Bottone */
.btn-toggle-offers {
    background: #ffffff;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(11, 61, 94, 0.08);
}

.btn-toggle-offers:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(11, 61, 94, 0.2);
}

/* Il contenitore che si nasconde */
.offers-collapsible-content {
    width: 100%;
    display: none; /* Nascosto di default */
    animation: fadeIn 0.6s ease-in-out;
}

/* Quando il JS aggiunge la classe 'open', compare! */
.offers-collapsible-content.open {
    display: block;
}

/* Rotazione freccia quando è aperto */
.btn-toggle-offers i { transition: transform 0.3s ease; }
.btn-toggle-offers.open i { transform: rotate(180deg); }

/* ---- SEPARATORE TITOLO "LE NOSTRE OFFERTE" ---- */
.normal-offers-wrapper { width: 100%; margin-top: 60px; padding-top: 50px; border-top: 2px dashed #dbebf5; display: flex; flex-direction: column; align-items: center; }
.normal-offers-title { text-align: center; margin-bottom: 35px; width: 100%; }
.normal-offers-title h3 { font-size: 2rem; color: var(--primary); font-weight: 800; margin: 0 0 8px 0; display: flex; align-items: center; justify-content: center; gap: 15px; text-transform: uppercase; letter-spacing: 1px; }
.normal-offers-title h3::before, .normal-offers-title h3::after { content: ""; display: block; width: 50px; height: 4px; background-color: var(--accent); border-radius: 5px; }
.normal-offers-title p { color: #666; font-size: 1.05rem; font-weight: 600; margin: 0; }


/* ---- CONTENITORE GRIGLIA NORMALE (In Basso) ---- */
.offers-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); 
    gap: 20px; 
    width: 100%; 
    justify-content: center; /* QUESTA È LA MAGIA CHE LE CENTRA! */
}

/* ---- CARD NORMALE COMPATTA E PICCOLA ---- */
.normal-offer-card { background: white; border-radius: 12px; border: 1px solid #eaeaea; display: flex; flex-direction: column; overflow: hidden; transition: transform 0.2s, border-color 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.normal-offer-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 10px 20px rgba(0,0,0,0.06); }

.normal-img-box { height: 160px; padding: 15px; background: #fff; position: relative; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid #f9f9f9; }
.normal-img-box img { max-height: 100%; max-width: 100%; object-fit: contain; }

.normal-discount { position: absolute; top: 10px; left: 10px; background: #e63946; color: white; padding: 3px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: bold; }

.normal-details { padding: 15px; text-align: center; display: flex; flex-direction: column; flex: 1; }
.normal-cat { font-size: 0.65rem; color: #888; text-transform: uppercase; font-weight: bold; margin-bottom: 5px; }
.normal-title { font-size: 0.95rem; color: var(--text); font-weight: 700; margin: 0 0 10px 0; line-height: 1.2; height: 2.4em; overflow: hidden; }

.normal-price-box { margin-bottom: 15px; }
.normal-old-price { font-size: 0.8rem; color: #aaa; text-decoration: line-through; display: block; line-height: 1; margin-bottom: 2px;}
.normal-new-price { font-size: 1.3rem; color: var(--danger); font-weight: 800; line-height: 1; }

.btn-normal-wa { background: #f4f8fb; color: var(--primary); padding: 8px 15px; border-radius: 50px; font-size: 0.85rem; font-weight: bold; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: 0.2s; margin-top: auto; border: 1px solid transparent;}
.btn-normal-wa:hover { background: var(--primary); color: white; }



/* 8. SERVIZI */
.services-section { background: var(--white) !important; }
.services-grid { display: grid !important; grid-template-columns: repeat(5, 1fr) !important; gap: 20px !important; width: 100% !important; max-width: 1300px !important; align-items: stretch !important; }
.service-card { background: var(--light) !important; padding: 30px 20px !important; border-radius: 20px !important; display: flex !important; flex-direction: column !important; align-items: center !important; text-align: center !important; border: 1px solid rgba(0,0,0,0.05) !important; box-shadow: 0 10px 20px rgba(0,0,0,0.02) !important; transition: all 0.3s ease !important; }
.service-card:hover { transform: translateY(-8px) !important; background: white !important; box-shadow: 0 20px 40px rgba(11, 61, 94, 0.1) !important; border-color: var(--accent) !important; }
.service-icon { font-size: 2.2rem !important; color: var(--accent) !important; margin-bottom: 15px !important; width: 70px !important; height: 70px !important; line-height: 70px !important; background: white !important; border-radius: 50% !important; display: inline-flex !important; align-items: center; justify-content: center; box-shadow: 0 8px 15px rgba(0,0,0,0.05) !important; border: 1px solid #eee !important; transition: 0.3s !important; }
.service-card.whatsapp-card .service-icon { color: #25D366 !important; }
.service-card.whatsapp-card:hover .service-icon { background: #25D366 !important; color: white !important; border-color: #25D366 !important; }
.service-card:not(.whatsapp-card):hover .service-icon { background: var(--primary) !important; color: white !important; transform: scale(1.1) !important; border-color: var(--primary) !important; }
.service-card h3 { font-size: 1.1rem !important; margin-bottom: 10px !important; color: var(--primary) !important; font-weight: 800 !important; line-height: 1.2 !important; }
.service-card p { color: #666 !important; font-size: 0.9rem !important; margin: 0 !important; line-height: 1.4 !important;}

/* 9. MAGAZINE SALUTE */
.magazine-section { background-color: var(--light); }
.magazine-layout { display: flex; gap: 40px; width: 100%; max-width: 1200px; align-items: stretch; justify-content: center; }
.focus-article { flex: 2; background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid #eee; transition: transform 0.3s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.focus-article:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(11, 61, 94, 0.15); }
.focus-image { width: 100%; height: 280px; position: relative; overflow: hidden; }
.focus-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s ease;}
.focus-article:hover .focus-image img { transform: scale(1.05); }
.focus-tag { position: absolute; top: 20px; left: 20px; background: var(--danger); color: white; padding: 6px 18px; border-radius: 50px; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.focus-content { padding: 35px; text-align: left; }
.focus-content h3 { text-align: left !important; font-size: 1.6rem; color: var(--primary); margin-bottom: 15px; font-weight: 800; }
.focus-content p { color: #555; margin-bottom: 20px; line-height: 1.7; text-align: left; font-size: 1.05rem; }
.btn-text { color: var(--accent); font-weight: 800; text-transform: uppercase; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 8px; }

.tips-sidebar { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; width: 100%; }
.sidebar-widget { background: #fff; padding: 25px; border-radius: 20px; border: 1px solid #eee; margin:0; box-shadow: 0 5px 20px rgba(0,0,0,0.03); }
.sidebar-title { margin-top: 0; font-size: 1.1rem; text-align: left; color: var(--primary); font-weight: 800; border-bottom: 2px solid #f0f0f0; padding-bottom: 10px; margin-bottom: 15px;}

/* 10. FARMADAY */
.farmaday-section { background-color: var(--primary); background-image: linear-gradient(135deg, var(--primary) 0%, #051e2e 100%); color: white; }
.farmaday-section .section-header h2 { color: #ffffff !important; }
.farmaday-desc { color: #dbebf5; font-size: 1.05rem; line-height: 1.6; max-width: 900px; margin: 0 auto 30px auto; font-weight: 400; text-align: center; }
.farmaday-grid { display: grid; grid-template-columns: 380px 1fr; gap: 30px; width: 100%; max-width: 1100px; margin: 0 auto; align-items: stretch; justify-content: center; }
.farmaday-card { background: white; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.25); display: flex; flex-direction: column; height: 380px; border: none; color: var(--text); overflow: hidden; position: relative; }
.today-card { padding: 40px; justify-content: center; align-items: center; text-align: center; }
.card-badge { background: var(--danger); color: white; padding: 6px 15px; border-radius: 8px; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; margin-bottom: 20px; display: inline-block; box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);}
.today-card h3 { color: var(--primary); margin: 0 0 10px 0; font-size: 1.5rem; line-height: 1.3; font-weight: 800; }
.card-icon-big { font-size: 4.5rem !important; color: var(--accent) !important; margin-bottom: 20px; display: block !important; }
.btn-white { background: var(--primary); color: white; padding: 12px 30px; border-radius: 50px; font-weight: 700; text-decoration: none; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 10px; transition: 0.3s; text-transform: uppercase;}

.archive-card { position: relative !important; padding-bottom: 70px !important; display: flex !important; flex-direction: column !important; }
.archive-header { padding: 20px 30px; background: #fcfcfc; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.archive-header h3 { margin: 0; font-size: 1.2rem; color: var(--primary); text-align: left; font-weight: 800;}
.page-badge { background: #e3f2fd; color: var(--primary); font-size: 0.8rem; padding: 4px 10px; border-radius: 6px; font-weight: 700; border: 1px solid #badce3; }
.archive-list-wrapper { flex: 1; overflow-y: auto; padding: 20px 30px; scrollbar-width: thin; }
.archive-list { list-style: none; padding: 0; margin: 0; }
.archive-list li { margin-bottom: 15px; }
.archive-link { display: flex; align-items: center; justify-content: space-between; background: #ffffff; border: 1px solid #eaeaea; padding: 15px 20px; border-radius: 12px; text-decoration: none; transition: all 0.2s ease; width: 100%; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.archive-link:hover { border-color: var(--accent); background: #f9fbfd; transform: translateX(5px); box-shadow: 0 5px 15px rgba(11, 61, 94, 0.08); }
.pdf-icon { width: 40px; height: 40px; background: #fff0f0; color: var(--danger); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-right: 15px; flex-shrink: 0; }
.doc-info { display: flex; flex-direction: column; text-align: left; flex: 1; }
.doc-title { font-weight: 800; color: var(--primary); font-size: 1rem; line-height: 1.3; margin-bottom: 4px; }
.doc-date { font-size: 0.8rem; color: #777; }
.arrow-icon { color: #bbb; font-size: 1rem; transition: 0.2s; }
.archive-link:hover .arrow-icon { color: var(--primary); }
.archive-footer { position: absolute !important; bottom: 0 !important; left: 0 !important; width: 100% !important; padding: 15px 30px !important; background: #fff !important; border-top: 1px solid #eee !important; display: flex !important; justify-content: space-between !important; align-items: center !important; gap: 10px !important; border-bottom-left-radius: 20px !important; border-bottom-right-radius: 20px !important; }
.nav-btn-fd { background: #f8f9fa !important; border: 1px solid #dcebf7 !important; color: var(--primary) !important; padding: 8px 20px !important; border-radius: 8px !important; font-size: 0.9rem !important; font-weight: 700 !important; cursor: pointer !important; display: inline-flex !important; align-items: center !important; gap: 8px !important; transition: 0.2s !important; }
.nav-btn-fd:hover:not(:disabled) { background: var(--primary) !important; color: white !important; border-color: var(--primary) !important; }
.nav-btn-fd:disabled { opacity: 0.5 !important; border-color: #ddd !important; color: #999 !important; cursor: not-allowed !important; background: #f1f1f1 !important; }

/* 11. DOVE SIAMO */
.location-section-final { background-color: #f8fbff !important; }
.content-box-final { width: 100% !important; max-width: 1000px !important; margin: 0 auto !important; display: flex !important; flex-direction: row !important; align-items: stretch !important; gap: 40px !important; background: white !important; padding: 40px !important; border-radius: 20px !important; box-shadow: 0 15px 40px rgba(0,0,0,0.08) !important; border: 1px solid #eee !important; }
.map-box-final { flex: 1.2 !important; width: 100% !important; min-height: 350px !important; height: 350px !important; border-radius: 15px !important; overflow: hidden !important; border: 1px solid #eee !important; position: relative; z-index: 1; }
#google-map-container iframe, .map-box-final iframe { width: 100% !important; height: 100% !important; min-height: 350px !important; display: block !important; border: 0 !important; }
.info-box-final { flex: 1 !important; display: flex !important; flex-direction: column !important; justify-content: center !important; text-align: left !important; }
.info-grid { display: flex !important; flex-direction: column !important; gap: 20px !important; width: 100% !important; margin-bottom: 30px !important; }
.info-item { display: flex !important; align-items: center !important; gap: 18px !important; padding: 15px 20px !important; background: #ffffff !important; border-radius: 15px !important; border: 1px solid #eee !important; box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important; }
.icon-circle { width: 45px !important; height: 45px !important; font-size: 1.1rem !important; background: var(--light) !important; color: var(--primary) !important; border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important; flex-shrink: 0 !important; }
.info-item h4 { font-size: 0.8rem !important; margin: 0 0 4px 0 !important; color: #666 !important; text-transform: uppercase; font-weight: 800; letter-spacing: 1px;}
.info-item p { font-size: 1.05rem !important; margin: 0 !important; color: var(--primary) !important; font-weight: 700 !important; }
.btn-directions-final { background: var(--primary) !important; color: white !important; padding: 16px !important; border-radius: 50px !important; font-weight: 800; font-size: 0.95rem !important; text-align: center !important; display: block !important; width: 100% !important; text-transform: uppercase !important; text-decoration: none !important; transition: 0.3s; box-shadow: 0 8px 20px rgba(11, 61, 94, 0.2);}
.btn-directions-final:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(11, 61, 94, 0.3); background: #082d45 !important; }

/* 12. FOOTER & LEGAL */
footer { background-color: #082d45; color: #ffffff; padding: 60px 20px 40px; font-size: 0.95rem; position: relative; z-index: 10; border-top: 5px solid var(--accent); width: 100%; display: flex; flex-direction: column; align-items: center; scroll-snap-align: start; min-height: auto; height: auto; justify-content: flex-start; }
.footer-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 50px; justify-items: center; text-align: center; }
.footer-col { width: 100%; max-width: 350px; display:flex; flex-direction:column; align-items:center; }
.footer-col h4 { color: #ffffff; font-size: 1.2rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 25px; text-align: center; border-bottom: 2px solid var(--accent); padding-bottom: 10px; display:inline-block; }
.footer-desc { color: #dbebf5; line-height: 1.6; margin-bottom: 10px;}
.footer-social-box { display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px; width: 100%; align-items: center; }
.social-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 25px; border-radius: 50px; text-decoration: none; color: white !important; font-weight: 700; transition: 0.3s; width: 100%; max-width: 250px; gap: 10px; border: 1px solid transparent; font-size: 0.95rem;}
.social-btn.facebook-footer { background: #1877F2 !important; box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3); } 
.social-btn.facebook-footer:hover { background: #1461c7 !important; transform: translateY(-2px); }
.social-btn.whatsapp-footer { background: var(--success); box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3); } 
.social-btn.whatsapp-footer:hover { background: #218838 !important; transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; text-align: center; font-size: 0.85rem; color: #a5c2d6; display: flex; flex-direction: column; gap: 10px; width: 100%; margin-bottom: 0 !important; }

/* 13. COOKIE BANNER E MODALI */
.cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--primary); color: #ffffff; box-shadow: 0 -10px 30px rgba(0,0,0,0.3); padding: 25px 20px; z-index: 120000; animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.cookie-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.cookie-text h4 { color: #fff; text-align: left; font-size: 1.1rem; margin-bottom: 5px; font-weight: 800; text-transform: uppercase; }
.cookie-text p { margin: 0; font-size: 0.9rem; color: #dbebf5; }
.cookie-buttons { display: flex; gap: 12px; flex-shrink: 0; }
.btn-cookie-accept { background-color: #fff; color: var(--primary); border: 2px solid white; padding: 12px 30px; border-radius: 50px; font-weight: 800; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.2); text-transform: uppercase; font-size: 0.85rem;}
.btn-cookie-accept:hover { background-color: #f0f0f0; transform: translateY(-2px); }
.btn-cookie-decline { background-color: transparent; border: 2px solid rgba(255,255,255,0.4); color: white; padding: 10px 25px; border-radius: 50px; font-weight: 700; cursor: pointer; transition: 0.2s; text-transform: uppercase; font-size: 0.85rem;}
.btn-cookie-decline:hover { background-color: rgba(255,255,255,0.1); border-color: white;}

.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: 1000000; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; backdrop-filter: blur(5px); }
.modal-overlay.show { display: flex; opacity: 1; }
.modal-container { background: white; width: 90%; max-width: 420px; border-radius: 25px; padding: 40px; position: relative; box-shadow: 0 25px 60px rgba(0,0,0,0.5); transform: translateY(20px); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.modal-overlay.show .modal-container { transform: translateY(0); }
.modal-close { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 2rem; color: #999; cursor: pointer; transition: 0.2s; }
.modal-close:hover { color: var(--danger); transform: scale(1.1); }
.auth-tabs { display: flex; border-bottom: 2px solid #eee; margin-bottom: 30px; }
.tab-btn { flex: 1; background: none; border: none; padding: 15px; font-size: 1.05rem; font-weight: 800; color: #aaa; cursor: pointer; border-bottom: 3px solid transparent; transition: 0.3s; text-transform: uppercase; letter-spacing: 0.5px;}
.tab-btn.active { color: var(--primary); border-bottom: 3px solid var(--primary); }
.auth-form { display: none; animation: fadeIn 0.4s; }
.auth-form.active { display: block; }
.input-group { position: relative; margin-bottom: 20px; }
.input-group i.fa-user, .input-group i.fa-envelope, .input-group i.fa-lock { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 1.1rem;}
.input-group input { width: 100%; padding: 15px 20px 15px 55px; border: 2px solid #eee; border-radius: 50px; outline: none; transition: 0.3s; font-size: 1rem; font-family: 'Open Sans', sans-serif;}
.input-group input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(32, 93, 134, 0.1); background-color: #fafbfc;}
.btn-full { width: 100%; padding: 15px; border: none; border-radius: 50px; background: var(--primary); color: white; font-weight: 800; cursor: pointer; margin-top: 10px; font-size: 1.05rem; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 5px 15px rgba(11, 61, 94, 0.2);}
.btn-full:hover { background: #082d45; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11, 61, 94, 0.3);}

/* ==========================================================================
   16. CHATBOT DESKTOP
   ========================================================================== */

.floating-dock { 
    position: fixed; 
    bottom: 30px !important; 
    right: 30px !important; 
    z-index: 1000000 !important; 
    transition: all 0.3s ease;
}

body.menu-open .floating-dock { opacity: 0 !important; pointer-events: none !important; transform: scale(0) !important; }

.float-btn { 
    width: 70px; height: 70px; border-radius: 50%; border: none; cursor: pointer; 
    display: flex; align-items: center; justify-content: center; font-size: 32px; 
    color: white; background: var(--primary); box-shadow: 0 10px 30px rgba(11, 61, 94, 0.4); 
    transition: all 0.3s ease; 
}
.float-btn:hover { transform: scale(1.1) rotate(5deg); background: #082d45; }

body.chat-open #chat-toggle-btn { opacity: 0 !important; pointer-events: none; transform: scale(0); }

#chat-container { 
    position: fixed; 
    bottom: 110px !important; 
    right: 30px !important; 
    width: 380px; height: 600px; max-height: 80vh;
    background: white; border-radius: 25px !important; 
    box-shadow: 0 25px 70px rgba(0,0,0,0.3); display: flex; flex-direction: column; 
    z-index: 1000001 !important; opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1); border: 1px solid rgba(0,0,0,0.08); 
    overflow: hidden;
}
#chat-container.active { opacity: 1; visibility: visible; transform: translateY(0); }

.chat-header { background: linear-gradient(135deg, var(--primary), #0f4c75) !important; color: white !important; padding: 20px 25px !important; display: flex !important; justify-content: space-between !important; align-items: center !important; height: 75px !important; border-top-left-radius: 25px !important; border-top-right-radius: 25px !important; }
.chat-title-container { display: flex !important; flex-direction: column !important; align-items: flex-start !important; }
.chat-title-container h4 { color: #ffffff !important; margin: 0 !important; text-align: left !important; font-size: 1.2rem !important; font-weight: 800 !important; line-height: 1.2 !important; }
.chat-status-badge { background: rgba(255, 255, 255, 0.2) !important; padding: 4px 10px !important; border-radius: 20px !important; font-size: 0.75rem !important; display: inline-flex !important; align-items: center !important; margin-top: 5px !important; color: white !important; font-weight: 700 !important; }
.chat-status-badge .dot { width: 8px !important; height: 8px !important; background: #25d366 !important; border-radius: 50% !important; margin-right: 8px !important; box-shadow: 0 0 8px #25d366 !important; animation: pulse-dot 1.5s infinite alternate !important; }

.chat-close-btn { background: none; border: none; color: white; cursor: pointer; font-size: 2rem; line-height: 1; padding: 0 5px; margin-top: -15px; transition: 0.2s; opacity: 0.8; }
.chat-close-btn:hover { opacity: 1; transform: scale(1.1); }

#chat-body { flex: 1; padding: 25px; overflow-y: auto; background-color: #f8fafc; display: flex; flex-direction: column; gap: 15px; }
.message { padding: 12px 18px; border-radius: 20px; max-width: 85%; line-height: 1.5; font-size: 0.95rem; }
.message.bot { background: white; color: #333; align-self: flex-start; border-bottom-left-radius: 5px; border: 1px solid #eee; box-shadow: 0 2px 5px rgba(0,0,0,0.02);}
.message.user { background: var(--primary); color: white; align-self: flex-end; border-bottom-right-radius: 5px; box-shadow: 0 2px 5px rgba(11, 61, 94, 0.2);}
.chat-input-area { display: none !important; }

#chat-suggestions { 
    padding: 15px !important; background: #fff !important; border-top: 1px solid #f0f0f0 !important; 
    display: flex !important; flex-wrap: wrap !important; justify-content: center !important; gap: 10px !important; 
    border-bottom-left-radius: 25px !important; border-bottom-right-radius: 25px !important; 
}
.chat-chip { background: #f1f8ff !important; color: var(--primary) !important; border: 1px solid var(--primary) !important; padding: 8px 16px !important; border-radius: 50px !important; font-size: 0.85rem !important; font-weight: 700 !important; cursor: pointer !important; transition: all 0.2s ease !important; display: inline-flex !important; align-items: center !important; gap: 8px !important; white-space: nowrap !important; }
.chat-chip:hover { background: var(--primary) !important; color: white !important; transform: translateY(-2px) !important; box-shadow: 0 5px 15px rgba(11, 61, 94, 0.2) !important; }

/* ==========================================================================
   17. MEDIA QUERIES (TABLET & MOBILE FIX)
   ========================================================================== */

/* TABLET E SCHERMI MEDI (Fino a 1024px) */
@media (max-width: 1024px) {
    .hamburger { display: block; z-index: 1001; }
    
    /* MENU A TENDINA SCROLLABILE */
    .nav-links { 
        position: absolute; top: 100%; left: 0; width: 100%; 
        height: calc(100vh - var(--header-h) - var(--top-h)); 
        background-color: white; flex-direction: column; padding: 0 0 50px 0; margin: 0; gap: 0; 
        transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
        border-top: 1px solid #eee; display: flex; z-index: 10001; 
        justify-content: flex-start; align-items: stretch; overflow-y: auto; 
        -webkit-overflow-scrolling: touch;
    }
    .nav-links.active { transform: translateX(0); }
    
    .nav-links li { width: 100%; border-bottom: 1px solid #f5f5f5; display: block; margin: 0; padding: 0;}
    .nav-links a { 
        width: 100%; display: block; padding: 22px 20px !important; 
        background: transparent !important; border-radius: 0 !important; 
        text-align: center; font-size: 1.2rem; border: none !important;
        color: var(--primary) !important; font-weight: 800; margin: 0; box-shadow: none !important;
    }
    .nav-links a:hover { background-color: #f9f9f9 !important; color: var(--accent) !important; transform: none !important;}
    
    /* FIX: MENU MOBILE AUTH IMPILATI IN COLONNA */
    .mobile-only { 
        display: flex !important; flex-direction: column !important; align-items: center !important; 
        width: 100%; margin-top: 20px; padding: 0 20px 100px; border-bottom: none; gap: 15px; 
    }
    .mobile-only span { 
        font-size: 1.2rem !important; color: var(--primary) !important; 
        font-weight: 800 !important; margin-bottom: 5px !important; 
    }
    .mobile-only a { 
        width: 100%; max-width: 350px; display: block; padding: 16px !important; 
        background: var(--primary) !important; color: white !important; 
        border-radius: 50px !important; text-align: center; 
        box-shadow: 0 8px 20px rgba(11,61,94,0.2) !important; 
        font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; margin: 0 !important; 
    }
    .mobile-only a[onclick*="Logout"] { 
        background: var(--danger) !important; 
        box-shadow: 0 8px 20px rgba(220, 53, 69, 0.2) !important; 
    }
    
    /* Sblocca la centratura delle offerte per permettere lo scroll */
    #offers-container.offers-slider { justify-content: flex-start !important; }
    .offers-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

    .about-container { flex-direction: column !important; text-align: center; gap: 30px; }
    .about-text { align-items: center; text-align: center; }
    .about-text .section-header, .about-text h2 { text-align: center !important; align-items: center !important; }
    
    .services-grid { grid-template-columns: repeat(3, 1fr) !important; max-width: 800px !important; } 
    .farmaday-grid { grid-template-columns: 1fr; gap: 30px; }
    .magazine-layout { flex-direction: column; }
}

@media (max-width: 992px) {
    #desktop-auth-box { display: none !important; }
    .container-top { justify-content: center; gap: 10px; }
}

/* SMARTPHONE (Sotto i 768px) */
@media (max-width: 768px) {
    :root { --header-h: 80px; --top-h: 50px; }
    
    .top-bar { font-size: 0.8rem; height: var(--top-h); }
    .top-info-text, .container-top > span { display: none !important; } 
    
    header { height: var(--header-h); top: var(--top-h); }
    .logo-box img { max-height: 55px; }
    
    section { overflow-y: auto !important; justify-content: flex-start !important; padding-top: calc(var(--header-h) + var(--top-h) + 20px) !important;}
    
    .hero { justify-content: center !important;}
    .hero h1 { font-size: 2.8rem; }
    .hero-slogan { font-size: 1.3rem; }
    .hero-buttons { flex-direction: column; width: 100%; padding: 0 10px; gap: 15px;}
    .btn { width: 100%; text-align: center; padding: 18px 20px;}
    
    .section-header h2 { font-size: 2rem; }
    
    /* FIX OFFERTE MOBILE */
    .slider-wrapper { padding: 0 45px !important; } 
    #offers-container.offers-slider { padding-left: 0 !important; padding-right: 0 !important; gap: 15px !important; justify-content: flex-start !important; }
    #offers-container .offer-card { flex: 0 0 100% !important; width: 100% !important; min-width: 100% !important; } 
    .slider-btn { width: 35px !important; height: 35px !important; font-size: 1rem !important; } 
    .prev-btn { left: 5px !important; } 
    .next-btn { right: 5px !important; }
    
    .offers-grid { grid-template-columns: 1fr; padding: 0 10px; }

    .content-box-final { flex-direction: column !important; gap: 30px !important; padding: 25px !important;}
    .map-box-final, #google-map-container { width: 100% !important; height: 350px !important; min-height: 350px !important; border-radius: 15px !important;}
    #google-map-container iframe, .map-box-final iframe { height: 350px !important; min-height: 350px !important; border-radius: 15px !important;}
    
    .info-grid { grid-template-columns: 1fr !important; }
    .info-item { flex-direction: column; text-align: center; padding: 25px 15px !important;}
    .icon-circle { width: 60px !important; height: 60px !important; font-size: 1.5rem !important; margin-bottom: 10px;}
    
    footer { padding-bottom: 120px !important; }
    .footer-container { grid-template-columns: 1fr; gap: 40px; }
    
    /* CHAT MOBILE FULLSCREEN STILE APP NATIVA */
    .floating-dock { bottom: 20px !important; right: 20px !important; }
    .float-btn { width: 60px; height: 60px; font-size: 24px; box-shadow: 0 10px 25px rgba(11, 61, 94, 0.5); }
    
    #chat-container { 
        top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
        width: 100% !important; max-width: 100% !important; 
        height: 100dvh !important; max-height: 100dvh !important;
        border-radius: 0 !important; position: fixed !important;
        transform: translateY(100%);
    }
    #chat-container.active { transform: translateY(0); }
    
    #chat-container .chat-header { border-radius: 0 !important; height: auto !important; padding: 15px 20px !important; }
    #chat-suggestions { border-radius: 0 !important; padding-bottom: 30px !important; }
}

/* SMARTPHONE PICCOLI (Sotto i 480px) */
@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr !important; }
    .about-image img { max-width: 100%; border-radius: 15px;}
    .hero h1 { font-size: 2.2rem; }
}

/* ANIMAZIONI UTILI E ACCESSIBILITA' */
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.skip-link { position: absolute; top: -50px; left: 0; background: #111111; color: white; padding: 12px 20px; z-index: 20001; transition: top 0.3s; font-weight: 700; text-decoration: none; border-bottom-right-radius: 8px; border: 2px solid white; }
.skip-link:focus { top: 0; outline: 3px solid #ffeb3b; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }


/* ==========================================================================
   FILTRI CATEGORIA (OFFERTE NORMALI)
   ========================================================================== */
.offers-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    width: 100%;
}

.filter-btn {
    background: #ffffff;
    border: 1px solid #dcebf7;
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(11, 61, 94, 0.2);
}