/* Dichiarazione del font personalizzato Quesha */
@font-face {
    font-family: 'Quesha';
    src: url('../assets/fonts/Quesha-gndR.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Variabili per i font */
:root {
    --font-primary: 'Merriweather', serif;
    --primary-color: #14151a;     /* Nero elegante */
    --secondary-color: #b18c3d;   /* Oro più scuro per contrasto */
    --accent-color: #d4b36b;      /* Oro medio per contrasto */
    --text-color: #1a1a1a;        /* Testo quasi nero */
    --light-text: #ffffff;        /* Testo chiaro */
    --link-color: #8b6914;        /* Link più scuri per contrasto */
    --error-color: #d32f2f;       /* Rosso per errori */
    --success-color: #2e7d32;     /* Verde per successo */
    --focus-outline: #4a90e2;     /* Blu per focus */
    --background-light: #ffffff;   /* Sfondo chiaro */
    --background-dark: #14151a;   /* Sfondo scuro */
}

/* Rimuovo gli stili di focus globali */
/* *:focus {
    outline: none;
} */

/* Rimuovo il focus dai link */
a:hover {
    color: var(--secondary-color);
}

/* Rimuovo il focus dagli input */
input, textarea, select {
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 4px;
}

/* Rimuovo il focus dai bottoni */
button, .button {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Stili per link e interazioni */
a {
    color: var(--link-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:focus {
    outline: none;
}

/* Stili per form e input */
input, textarea, select, button {
    font-size: 16px; /* Previene lo zoom su mobile */
    padding: 8px 12px;
    border: 2px solid var(--text-color);
    border-radius: 4px;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--focus-outline);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
}

button, .button {
    background-color: var(--secondary-color);
    color: var(--light-text);
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

button:hover, .button:hover {
    background-color: var(--primary-color);
}

button:focus, .button:focus {
    outline: 3px solid var(--focus-outline);
    outline-offset: 2px;
}

/* Stili per il testo */
body {
    line-height: 1.6;
    color: var(--text-color);
}

/* Applicazione del font a tutti gli elementi */
body {
    font-family: var(--font-primary);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(244, 241, 241, 0.95) 25%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(244, 241, 241, 0.95) 75%,
        rgba(255, 255, 255, 0.95) 100%
    ),
    linear-gradient(
        45deg,
        rgba(196, 166, 97, 0.1) 0%,
        rgba(196, 166, 97, 0.1) 50%,
        transparent 50%,
        transparent 100%
    );
    background-size: 300% 300%, 10px 10px;
    animation: marbleEffect 15s ease infinite;
}

@keyframes marbleEffect {
    0% {
        background-position: 0% 0%, 0 0;
    }
    50% {
        background-position: 100% 100%, 5px 5px;
    }
    100% {
        background-position: 0% 0%, 0 0;
    }
}

/* Overlay per le sezioni principali */
.main-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(196, 166, 97, 0.2);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Effetto vene dorate */
.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--secondary-color), 
        transparent
    );
    margin: 10px auto;
}

/* Card prodotti con effetto vetro */
.product-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(196, 166, 97, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Footer con effetto marmo scuro */
footer {
    background: linear-gradient(
        135deg,
        rgba(20, 21, 26, 0.97) 0%,
        rgba(30, 31, 36, 0.97) 50%,
        rgba(20, 21, 26, 0.97) 100%
    );
    border-top: 1px solid var(--secondary-color);
    padding: 2rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 5%;
    margin-bottom: 2rem;
}

.footer-section {
    margin-right: 0;
}

.footer-section h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p, 
.footer-section ul {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a,
.footer-section p a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover,
.footer-section p a:hover {
    color: var(--secondary-color);
}

.footer-section i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 5% 0;
    margin-top: 1.5rem;
}

.legal-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* Stili mobile ottimizzati per il footer */
@media (max-width: 768px) {
    footer {
        padding: 1.2rem 0;
        position: relative;
        width: 100%;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
        margin-bottom: 0.8rem;
    }

    .footer-section {
        margin: 0;
        padding: 0;
    }

    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
        color: white;
    }

    .footer-section p, 
    .footer-section ul {
        font-size: 0.85rem;
        margin: 0;
        line-height: 1.4;
    }

    .footer-section ul li {
        margin-bottom: 0.3rem;
    }

    .footer-section ul {
        margin: 0;
        padding: 0;
    }

    .footer-legal {
        padding: 0.5rem 1rem 0;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .legal-links {
        display: flex;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
        margin: 0;
        padding: 0;
    }

    .legal-links a {
        font-size: 0.75rem;
        padding: 0.2rem;
    }

    .copyright {
        font-size: 0.7rem;
        margin-top: 0.3rem;
    }

    .footer-social {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-top: 0.5rem;
    }

    .social-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
}

.site-title,
.category-overlay h3,
.product-title,
.section-title,
.category-link,
.product-price,
.filter-group h3,
.btn,
.product-description,
.price-inputs,
.filter-options label {
    font-family: var(--font-primary);
}

/* Aggiustamento dimensioni font per migliore leggibilità */
.site-title {
    font-size: 2rem;
}

.category-overlay h3 {
    font-size: 2rem;
}

.product-title {
    font-size: 1.4rem;
}

.filter-group h3 {
    font-size: 1.3rem;
}

p, .product-description {
    font-size: 1.2rem;
}

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

body {
    font-family: 'Playfair Display', serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
}

.hero {
    height: 80vh;
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/banners/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--background-color);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: var(--background-color);
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.products-header {
    padding: 3rem 5%;
    text-align: center;
    background-color: #f9f9f9;
}

.filters {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.filters select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    font-family: inherit;
    background-color: var(--background-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 5%;
}

.product-card {
    background-color: var(--background-color);
    border-radius: 5px;
    overflow: hidden;
    transition: none !important;
    box-shadow: none !important;
}

.product-card:hover {
    transform: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-image:hover img {
    transform: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

.product-info {
    padding: 1rem;
}

.product-info:hover {
    transform: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-price {
    color: var(--secondary-color);
    font-weight: 600;
}

.add-to-cart {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: none !important;
}

.add-to-cart:hover {
    background-color: var(--secondary-color);
}

/* Hero Slider */
.hero-slider {
    height: 80vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.slider-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide.prev {
    transform: translateX(-100%);
}

.slide.next {
    transform: translateX(100%);
}

/* Quando si torna indietro */
.slide.reverse-prev {
    transform: translateX(100%);
}

.slide.reverse-next {
    transform: translateX(-100%);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--light-text);
    width: 100%;
    padding: 0 20px;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    background-color: transparent;
    padding: 20px;
    border-radius: 5px;
    max-width: 600px;
    margin: 0 auto;
}

.slide-content h2,
.category-overlay h3,
.collection-title {
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 0, 0, 0.5);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.slide-content p,
.category-overlay p {
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 
        1px 1px 3px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(0, 0, 0, 0.6);
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.slide-content .cta-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: none !important;
    border: 2px solid #fff;
    box-shadow: none !important;
}

.slide-content .cta-button:hover {
    background-color: transparent;
    color: #fff;
    transform: none !important;
    box-shadow: none !important;
}

/* Featured Categories */
.featured-categories {
    padding: 1rem 5% 5rem 5%;
    background-color: var(--background-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
    gap: 2rem;
    padding: 2rem 0;
    justify-content: center;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 300px;
    width: 100%;
}

.category-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.category-card:hover .category-video {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    transition: background 0.3s ease;
}

.category-card:hover .category-overlay {
    background: rgba(0,0,0,0.5);
}

.category-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.category-link {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: white;
    color: black;
}

/* Latest Collections */
.latest-collections {
    padding: 5rem 5%;
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.collection-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.collection-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--light-text);
}

.social-icons {
    display: flex;
    gap: 0.3rem !important;
    margin-left: 0.8rem;
    padding-left: 0.8rem;
    border-left: 1px solid rgba(255,255,255,0.2);
}

.social-icons a {
    color: var(--light-text);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Stile specifico per Instagram */
.social-icons a:hover .fa-instagram {
    background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Stile specifico per Facebook */
.social-icons a:hover .fa-facebook-f {
    color: #4267B2;
}

.footer-social {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    padding: 0.8rem 1.2rem;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
}

.social-link span {
    font-size: 0.9rem;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-link.facebook:hover {
    background: #4267B2;
    color: white;
}

.social-feed {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 250px));
        gap: 1rem;
    }

    .category-card {
        height: 250px;
    }

    .footer-social {
        gap: 1rem;
        margin-top: 1rem;
        flex-direction: column;
        align-items: center;
    }

    .social-link {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 0.6rem 1rem;
    }

    .social-icons {
        margin: 0;
        padding: 0;
        border: none;
        justify-content: center;
        gap: 0.3rem !important;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
    }

    .social-icons a:hover {
        background: var(--secondary-color);
        color: white;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    border-radius: 8px;
    margin: 20px auto;
    padding: 20px;
}

.about-us, .services, .testimonials {
    padding: 5rem 0;
    background-color: #f9f9f9;
    text-align: center;
}

.about-us h2, .services h2, .testimonials h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-us p, .services ul, .testimonials p {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.6;
}

.services ul {
    list-style: none;
    padding: 0;
}

.services li {
    margin-bottom: 0.5rem;
}

.about-page {
    margin-top: 80px; /* Spazio per la navbar fissa */
}

.about-hero {
    color: black;
    padding: 4rem 0;
    text-align: center;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-hero .subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
}

.about-content {
    padding: 5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.about-text p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-text ul {
    list-style: none;
    padding: 0;
}

.about-text ul li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.about-text ul li:before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.team-section {
    background-color: #f9f9f9;
    padding: 5rem 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}

/* Sezione Filtri */
.filters-section {
    width: 300px; /* Aumentata la larghezza della sidebar */
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-right: 2rem;
    height: fit-content;
}

.filter-group {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
}

.filter-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-group h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Stile per il range di prezzo */
.price-filter {
    margin-bottom: 0;
    width: 100%;
}

.price-range-container {
    width: 100%;
}

.price-inputs {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 1rem;
    gap: 5px;
}

.field {
    display: flex;
    align-items: center;
    width: 130px; /* Larghezza del campo */
}

.field span {
    margin-right: 4px;
    color: var(--text-color);
    flex-shrink: 0;
    font-size: 14px;
}

.field input {
    width: 100%;
    padding: 8px 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: left;
}

.separator {
    margin: 0;
    padding: 0 2px;
    color: var(--text-color);
    flex-shrink: 0;
}

/* Rimuovi le frecce spinbox dai campi numerici */
.field input::-webkit-outer-spin-button,
.field input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.field input[type=number] {
    -moz-appearance: textfield;
}

/* Checkbox personalizzato */
.filter-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-color);
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--secondary-color);
    border-radius: 3px;
    margin-right: 0.8rem;
    position: relative;
    transition: all 0.3s ease;
}

input[type="checkbox"] {
    display: none;
}

input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--secondary-color);
    font-size: 12px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    padding: 2rem 5%;
    background-color: #f9f9f9;
}

.footer-section {
    flex: 1;
    margin-right: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section p, .footer-section ul {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding: 1rem 0;
    background-color: #e5e5e5;
    color: var(--text-color);
    font-size: 0.9rem;
}

.footer-social {
    margin-top: 1rem;
}

.footer-social a {
    margin: 0 0.5rem;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--secondary-color);
}

/* Assicurati che il contenitore dei filtri si adatti */
.filters-container {
    width: 100%;
}

/* Stili per la nuova navbar */
/* Override per tutti i CSS - Layout navbar desktop */
.main-nav,
header .main-nav,
nav.main-nav {
    display: flex !important;
    align-items: center !important;
    padding: 0.5rem 3% !important;
    background-color: white !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    height: 80px !important;
}

.logo,
.main-nav .logo,
header .logo {
    position: relative !important;
    flex: 0 0 auto !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    z-index: 1002 !important;
    width: 140px !important;
    margin-top: -25px !important;
}

.logo a {
    display: block !important;
    text-decoration: none !important;
}

.logo-img,
.main-nav .logo-img,
header .logo-img {
    width: 140px !important;
    height: auto !important;
    object-fit: contain !important;
}

.logo-text {
    display: none !important;
}

/* Per dispositivi mobili */
@media (max-width: 768px) {
    .main-nav {
        height: 70px !important;
        justify-content: space-between !important;
        position: relative !important;
    }

    .hamburger-menu {
        display: block !important;
        cursor: pointer;
        padding: 8px;
        margin: 0 !important;
        position: absolute !important;
        left: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 1001;
    }

    .logo {
        position: absolute !important;
        left: 50% !important;
        top: 30% !important;
        transform: translate(-50%, -50%) !important;
        width: 120px !important;
        margin: 0 !important;
        z-index: 1002 !important;
    }

    .logo-img {
        width: 120px !important;
        height: auto !important;
        cursor: pointer !important;
        pointer-events: auto !important;
    }
    
    /* Assicura che il logo sia sempre cliccabile su mobile */
    .logo a {
        pointer-events: auto !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 1003 !important;
        position: relative !important;
    }

    .nav-icons {
        margin-left: auto !important;
        margin-right: 15px !important;
        z-index: 1001;
    }

    .nav-links {
        display: none !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        width: 100% !important;
        background: white !important;
        padding: 1rem 0 !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
        z-index: 1000 !important;
        transform: none !important;
        margin: 0 !important;
        gap: 0 !important;
        justify-content: flex-start !important;
    }

    .nav-links.active {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        width: 100% !important;
        transform: none !important;
        margin: 0 !important;
        gap: 0 !important;
    }

    .nav-links li {
        margin: 1rem 0;
        font-weight: bold;
        list-style: none !important;
    }

    .hamburger-menu span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--primary-color);
        margin: 5px 0;
        transition: all 0.3s ease;
}

    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
}

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Override nav-links per tutti i CSS - Menu centrato assoluto SOLO DESKTOP */
@media (min-width: 769px) {
    .nav-links,
    .main-nav .nav-links,
    header .nav-links {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 2.5rem !important;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 1001 !important;
    }
}

/* DEBUG: Force hide nav-links on mobile for testing */
@media (max-width: 768px) {
    .nav-links:not(.active) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    }

.nav-links li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold !important;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--primary-color);
    }

.nav-icons,
.main-nav .nav-icons,
header .nav-icons {
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    z-index: 1001 !important;
    }

/* Stili per il menu hamburger - nascosto su desktop */
@media (min-width: 769px) {
    .hamburger-menu {
        display: none !important;
    }
}

/* REGOLA HAMBURGER SPAN DUPLICATA RIMOSSA - già definita nella media query mobile */

/* SECONDO BLOCCO DUPLICATO RIMOSSO */

.cart-icon {
    position: relative;
    text-decoration: none;
    color: #333;
}

.cart-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.social-icons {
    display: flex;
    gap: 0.3rem !important;
    margin-left: 0.8rem;
    padding-left: 0.8rem;
    border-left: 1px solid rgba(255,255,255,0.2);
}

.social-icons a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* Stili per il menu profilo */
.profile-menu {
    position: relative;
}

.profile-trigger {
    cursor: pointer;
    padding: 5px;
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 250px;
    padding: 1rem;
    display: none;
}

/* Rimossa regola hover - ora gestita solo via JavaScript per controllo autenticazione */
/* .profile-menu:hover .profile-dropdown {
    display: block;
} */

/* Stili per gestire stato autenticazione */
.profile-menu.authenticated:hover .profile-dropdown {
    /* Hover abilitato solo per utenti autenticati - gestito via JS */
}

.profile-menu.not-authenticated .profile-dropdown {
    display: none !important; /* Forza nascondere per non autenticati */
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Disabilita completamente qualsiasi interazione hover per non autenticati */
.profile-menu.not-authenticated:hover .profile-dropdown,
.profile-menu.not-authenticated.active .profile-dropdown {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ABILITA menu per utenti autenticati quando attivo - Massima specificità */
.profile-menu.authenticated.active .profile-dropdown {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
    z-index: 1000 !important;
}

/* Backup: regola generale per menu attivo (se authenticated non è presente) */
.profile-menu.active:not(.not-authenticated) .profile-dropdown {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
    z-index: 1000 !important;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.user-info h3 {
    margin: 0;
    font-size: 1rem;
}

.user-info p {
    margin: 0;
    font-size: 0.875rem;
    color: #666;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
}

.profile-info {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.profile-actions {
    padding-top: 1rem;
}

.profile-actions a,
.profile-actions button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    width: 100%;
    border: none;
    background: none;
    text-align: left;
    font-size: 0.875rem;
    color: #333;
    cursor: pointer;
    text-decoration: none;
}

.profile-actions a:hover,
.profile-actions button:hover {
    background: #f5f5f5;
    border-radius: 4px;
}

/* Aggiustamenti per il layout del checkout */
.checkout-page {
    padding-top: 80px; /* Spazio per la navbar fissa */
}

/* Media queries per responsività */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .logo-img {
        height: 30px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
}

.contact-page {
    margin-top: 80px; /* Spazio per la navbar fissa */
}

.contact-hero {
    color: black;
    padding: 4rem 0;
    text-align: center;
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-hero .subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
}

.contact-info {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-details h2,
.contact-form h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.contact-details p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form button {
    padding: 0.8rem;
    background-color: var(--secondary-color);
    color: var(--background-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: var(--primary-color);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-form textarea {
    resize: none; /* Impedisce il ridimensionamento manuale */
}

.featured-products {
    padding: 4rem 5%;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.product-item {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: none !important;
}

.product-item:hover {
    transform: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

.product-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.product-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.product-price {
    display: block;
    font-size: 1.3rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: none !important;
}

.product-button:hover {
    background-color: var(--primary-color);
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.product-item.featured {
    position: relative;
    border: 2px solid var(--secondary-color);
    transform: scale(1.02);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--secondary-color);
    color: white;
    padding: 8px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1;
}

.product-item.featured:hover {
    transform: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

/* Animazione per il badge */
@keyframes pulse {
    0% { transform: rotate(45deg) scale(1); }
    50% { transform: rotate(45deg) scale(1.05); }
    100% { transform: rotate(45deg) scale(1); }
}

.featured-badge {
    animation: pulse 2s infinite;
}

footer {
    background: #f9f9f9;
    padding: 2rem 5%;
    text-align: center;
}

footer h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

footer p, footer ul {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: var(--secondary-color);
}

footer .footer-bottom {
    text-align: center;
    padding: 1rem 0;
    background-color: #e5e5e5;
    color: var(--text-color);
    font-size: 0.9rem;
}

footer .footer-social {
    margin-top: 1rem;
}

footer .footer-social a {
    margin: 0 0.5rem;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

footer .footer-social a:hover {
    color: var(--secondary-color);
}

/* Stili Logo */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
}

.logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    position: absolute;
    top: -52px;
    z-index: 1002;
    cursor: pointer;
}

.logo-text {
    display: none;
}

/* TERZO BLOCCO DUPLICATO RIMOSSO */

/* Make contact information clickable */
.footer-section p a,
.contact-details p a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section p a:hover,
.contact-details p a:hover {
    color: var(--secondary-color);
}

.watches-card .category-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.watches-card .video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.rings-card .category-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.rings-card .video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.rings-card .video-container,
.watches-card .video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.rings-card .category-video,
.watches-card .category-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    position: relative;
    transform: translateY(20px);
    animation: slideUpFade 0.4s ease forwards;
}

.popup-title {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
}

.popup-message {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.5;
}

.popup-close {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: none !important;
    box-shadow: none !important;
}

.popup-close:hover {
    background: #b3935a;
    transform: none !important;
    box-shadow: none !important;
}

.popup-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-icon i {
    color: white;
    font-size: 30px;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.footer-legal {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.8rem;
}

.legal-links a {
    color: black;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: black;
}

.copyright {
    margin-top: 10px;
    font-size: 0.8rem;
    color: black;
}

@media (max-width: 768px) {
    .legal-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}


.terms-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.terms-container h1 {
    color: #333;
    margin-bottom: 20px;
}

.update-date {
    color: #666;
    font-style: italic;
    margin-bottom: 30px;
}

.terms-container section {
    margin-bottom: 30px;
}

.terms-container h2 {
    color: #444;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.terms-container ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.terms-container li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.terms-container p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.contact-info {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .terms-container {
        padding: 20px 15px;
    }
}

#cookieConsent {
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.cookie-popup {
    background-color: #fff;
    max-width: 500px;
    padding: 30px;
    border-radius: 8px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.cookie-popup h3 {
    color: #232f3e;
    margin-bottom: 15px;
}

.cookie-popup p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.cookie-popup a {
    color: #0066c0;
    text-decoration: underline;
}

.cookie-popup button {
    background-color: #232f3e;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    margin: 5px;
}

.cookie-popup button:hover {
    background-color: #1a2532;
}

.showroom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.showroom-container h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #232f3e;
}

.showroom-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.showroom-details ul {
    list-style-type: none;
    padding: 0;
}

.showroom-details li {
    margin: 10px 0;
    padding-left: 25px;
    position: relative;
}

.showroom-details li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #232f3e;
}

.showroom-hours ul {
    list-style-type: none;
    padding: 0;
}

.showroom-hours li {
    margin: 10px 0;
}

.showroom-hours span {
    font-weight: bold;
    color: #232f3e;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.step {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #232f3e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: bold;
}

.contact-section {
    text-align: center;
    margin: 50px 0;
}

.contact-info p {
    margin: 10px 0;
}

.map-container {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .showroom-info {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
}

/* Stili per i pallini */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.dot.active {
    background: white;
    border-color: rgba(0, 0, 0, 0.5);
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .hero-slider {
        height: 50vh;
    }
    
    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .slide-content {
        max-width: 90%;
        padding: 15px;
    }
    
    .slide-content h2,
    .category-overlay h3,
    .collection-title {
        font-size: 2.5rem;
    }
    
    .slide-content p,
    .category-overlay p {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .slide-content .cta-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 40vh;
    }
    
    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .slide-content h2,
    .category-overlay h3,
    .collection-title {
        font-size: 2rem;
    }
    
    .slide-content p,
    .category-overlay p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .slide-content .cta-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Pulsante Torna Su */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: var(--light-text);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover, .back-to-top:focus {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-3px);
}

.back-to-top:focus {
    outline: 3px solid var(--focus-outline);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

/* Stili globali per nascondere la scrollbar */
/* Per Chrome, Safari e Opera */
body::-webkit-scrollbar {
    display: none;
}

/* Per Firefox */
body {
    scrollbar-width: none;
}

/* Per IE e Edge */
body {
    -ms-overflow-style: none;
}

/* Assicura che il body mantenga lo scroll */
html, body {
    overflow-y: auto;
}

.welcome-popup {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.98);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    text-align: center;
    max-width: 320px;
    width: 90%;
    transform: translateY(100%);
    animation: slideUpFade 0.6s ease-out forwards;
}

@keyframes slideUpFade {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.welcome-popup h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 22px;
}

.welcome-popup p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.4;
    font-size: 0.95rem;
}

.welcome-popup .coupon-code {
    background: #f5f5f5;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 12px 0;
    display: inline-block;
    letter-spacing: 1px;
}

.welcome-popup .close-popup {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    transition: color 0.3s ease;
}

.welcome-popup .close-popup:hover {
    color: #666;
}

/* Rimuoviamo l'overlay poiché non serve più */
.welcome-popup-overlay {
    display: none;
}

/* Stili per dispositivi mobili */
@media (max-width: 768px) {
    .filter-options {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .filter-options label {
        font-size: 0.9rem;
        padding: 0.3rem;
        margin: 0;
    }

    .filter-group {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .filters-section {
        max-height: 60vh;
        overflow-y: auto;
        padding: 1rem;
    }
}

/* === PROMOTIONAL BANNERS === */
.promotional-banners {
    padding: 3rem 5%;
    background-color: var(--background-color);
}

/* Titolo "I Nostri Marchi" */
.brands-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    font-family: 'Merriweather', serif;
    position: relative;
}

.brands-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #b8860b, #daa520);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.banners-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Frecce di navigazione (solo desktop) */
.banner-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #b8860b;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.banner-nav-btn:hover {
    background: #b8860b;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.3);
}

.banner-nav-btn:hover i {
    color: white;
}

.banner-nav-btn i {
    color: #b8860b;
    font-size: 20px;
    transition: color 0.3s ease;
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

/* Mostra frecce solo su desktop */
@media (min-width: 769px) {
    .banner-nav-btn {
        display: flex;
    }
}

.banner-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.banner-slide {
    min-width: 100%;
    width: 80%;
    height: 160px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    padding: 20px;
    margin: 0 auto;
}

.banner-slide img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.5s ease;
    pointer-events: none;
}

.banner-slide:hover img {
    transform: scale(1.05);
}

/* Ottimizza per touch su mobile */
@media (max-width: 768px) {
    .banners-container {
        touch-action: pan-x;
        -webkit-user-select: none;
        user-select: none;
    }
    
    .banner-slide {
        cursor: default;
    }
    
    .banner-slide:hover img {
        transform: none;
    }
    
    .banner-slide img {
        -webkit-user-drag: none;
        user-drag: none;
        -webkit-touch-callout: none;
    }
}

.banner-content {
    display: none;
}

.banner-overlay {
    display: none;
}

/* Indicatori banner (nascosti) */
.banner-indicators {
    display: none;
}

/* Responsive per banner */
@media (min-width: 769px) {
    .banner-slide {
        padding: 20px;
    }
    
    .banner-slide img {
        max-width: 85%;
        max-height: 85%;
    }
}

@media (max-width: 768px) {
    .promotional-banners {
        padding: 2rem 5%;
    }
    
    .brands-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .brands-title::after {
        width: 60px;
        height: 3px;
    }
    
    .banner-slide {
        width: 100%;
        height: 150px;
        padding: 10px;
    }
    
    .banner-slide img {
        max-width: 90%;
        max-height: 90%;
    }
}

@media (max-width: 480px) {
    .banner-slide {
        height: 120px;
    }
}

/* === MOBILE SPACING FIXES === */
@media (max-width: 768px) {
    .hero-slider {
        margin-bottom: 0;
    }
    
    .featured-categories {
        padding: 0.5rem 5% 3rem 5%;
    }
    
    .category-grid {
        padding: 1rem 0;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .featured-categories {
        padding: 0.3rem 5% 2rem 5%;
    }
    
    .category-grid {
        padding: 0.8rem 0;
        gap: 1rem;
    }
}

/* === WHATSAPP BUTTON === */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-btn:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn:active {
    transform: translateY(0);
}

/* Animazione pulsazione */
.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: #25D366;
    border-radius: 50%;
    z-index: -1;
    animation: whatsappPulse 2s infinite;
    opacity: 0.3;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

/* Notifica WhatsApp */
.whatsapp-notification {
    position: fixed;
    bottom: 100px;
    left: 20px;
    background: white;
    border: 2px solid #25D366;
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    animation: slideInUp 0.5s ease-out;
    max-width: 300px;
}

.whatsapp-notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
}

.whatsapp-notification-content i {
    color: #25D366;
    font-size: 20px;
    flex-shrink: 0;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive per mobile */
@media (max-width: 768px) {
    .whatsapp-btn {
        width: 55px;
        height: 55px;
        bottom: 15px;
        left: 15px;
        font-size: 24px;
    }
    
    .whatsapp-notification {
        bottom: 85px;
        left: 15px;
        max-width: 280px;
        padding: 12px 15px;
    }
    
    .whatsapp-notification-content {
        font-size: 13px;
    }
}