/*
 * RIVET CASA - Main Stylesheet
 * Design sofisticato e moderno per il mobilificio
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;

    --primary-color: #1a2530; /* Grigio Blu Scuro */
    --accent-color: #eb2023;  /* Rosso Rivet */
    --light-color: #ecf0f1;   /* Grigio Chiaro (Nuvola) */
    --dark-color: #34495e;    /* Grigio Blu Notte */
    --text-color: #333333;
    --text-color-light: #f8f9fa;
    --background-color: #f4f6f8; /* Sfondo leggermente più texturizzato */
    --footer-color: #1a2530; /* Più scuro del primary per contrasto */
    
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);

    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.4s ease-in-out;
    --transition-slow: 0.6s ease-in-out;
}

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

body {
    font-family: var(--font-primary);
    background-color: #eb2023; /* Sfondo rosso al hover */
    color: var(--text-color);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1280px; /* Leggermente più largo per un look moderno */
    margin: 0 auto;
    padding: 0 25px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
}

h1 { font-size: 3rem; margin-bottom: 1.5rem; }
_h2 { font-size: 2.5rem; margin-bottom: 1.25rem; }
_h3 { font-size: 2rem; margin-bottom: 1rem; }
_h4 { font-size: 1.5rem; margin-bottom: 0.75rem; }

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

a {
    color: white; /* Testo bianco al hover */
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--dark-color);
    text-decoration: underline;
}

/* Header Styles */
.header {
    background-color: var(--light-color);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden; /* Per l'effetto parallax dell'immagine */
}

.header-content {
    height: 550px; /* Aumentata altezza */
    display: flex;
    align-items: center; /* Centra verticalmente */
    justify-content: flex-start; /* Allinea a sinistra */
    position: relative; /* Per z-index */
    padding: 0 5%; /* Padding laterale */
}

.header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%; /* Leggermente spostato per focus */
    filter: brightness(0.7) contrast(1.1); /* Effetto più drammatico */
    transition: transform var(--transition-slow), filter var(--transition-medium);
}

.header:hover .header-image img {
    transform: scale(1.03);
    filter: brightness(0.6) contrast(1.05);
}

.logo {
    position: relative; /* Rimosso absolute per flusso normale */
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.85); /* Leggermente meno trasparente */
    padding: 35px 45px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(8px); /* Blur più pronunciato */
    text-align: left;
}

.logo h1 {
    font-size: 3.2rem; /* Aumentato */
    color: var(--primary-color);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.logo p {
    font-family: var(--font-primary);
    font-size: 1.1rem; /* Aumentato */
    color: white; /* Testo bianco al hover */
    font-style: normal;
    font-weight: 500;
}

/* Navigation Styles */
.main-nav {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: background-color var(--transition-medium);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px; /* Aumentata altezza */
}

.logo-mobile {
    display: none; /* Gestito da media query */
}

.logo-mobile h2 {
    font-family: var(--font-secondary);
    color: var(--text-color-light);
    font-size: 1.8rem;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 28px; /* Aumentato */
    height: 3px;
    background-color: var(--text-color-light);
    margin: 6px 0; /* Aumentato */
    transition: all var(--transition-medium);
    border-radius: 2px;
}

/* Animazione hamburger icon */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    color: var(--text-color-light);
    text-decoration: none;
    padding: 0 25px; /* Aumentato padding */
    height: 75px;
    line-height: 75px;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-menu li.active a,
.nav-menu li a:hover {
    color: white; /* Testo bianco al hover */
    background-color: rgba(0,0,0,0.1);
}

.nav-menu li.active::after {
    content: '';
    position: absolute;
    bottom: 15px; /* Alzato per più spazio */
    left: 50%;
    transform: translateX(-50%);
    width: 8px; /* Cerchio invece di linea */
    height: 8px;
    background-color: white; /* Testo bianco al hover */
    border-radius: 50%;
    transition: all var(--transition-medium);
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px; /* Aumentato */
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity var(--transition-medium), transform var(--transition-medium), visibility 0s var(--transition-medium);
    z-index: 100;
    padding: 10px 0; /* Padding interno */
    pointer-events: none;
}

.dropdown li {
    list-style: none; /* Rimuove i punti di elenco */
    border-bottom: 1px solid #f0f0f0;
}

.dropdown li:last-child {
    border-bottom: none;
}

.dropdown li a {
    color: var(--text-color);
    padding: 15px 25px; /* Aumentato padding */
    height: auto;
    line-height: 1.5;
    font-size: 0.95rem;
    font-weight: 500;
}

.dropdown li a:hover {
    background-color: #eb2023; /* Sfondo rosso al hover */
    color: white; /* Testo bianco al hover */
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 2.8rem; /* Aumentato */
    color: var(--primary-color);
    margin-bottom: 70px; /* Aumentato */
    position: relative;
    padding-bottom: 20px; /* Spazio per la linea */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px; /* Allungato */
    height: 4px; /* Ispessito */
    background: linear-gradient(to right, var(--accent-color), var(--primary-color)); /* Gradiente */
    border-radius: 2px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Responsive */
    gap: 35px; /* Aumentato */
    margin-bottom: 50px;
}

.product-card {
    background-color: #ffffff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 280px; /* Aumentato */
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow), filter var(--transition-medium);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
    filter: saturate(1.2);
}

.product-info {
    padding: 25px; /* Aumentato */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-name {
    font-family: var(--font-secondary);
    font-size: 1.4rem; /* Aumentato */
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-category {
    font-size: 0.9rem;
    color: white; /* Testo bianco al hover */
    margin-bottom: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-price {
    font-size: 1.5rem; /* Aumentato */
    font-weight: 700;
    color: var(--dark-color);
    margin-top: auto; /* Spinge in basso se c'è spazio */
}

/* Buttons */
.btn, .btn-view-all, .btn-about {
    display: inline-block;
    padding: 14px 35px; /* Aumentato */
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all var(--transition-medium);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-view-all {
    background-color: white; /* Testo bianco al hover */
    color: var(--text-color-light);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.btn-view-all:hover {
    background-color: #d35400; /* Darken accent */
    color: var(--text-color-light);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.4);
    text-decoration: none;
}

.btn-about {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

.btn-about:hover {
    background-color: var(--dark-color);
    color: var(--text-color-light);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.4);
    text-decoration: none;
}

.view-all-container {
    text-align: center;
    margin-top: 40px;
}

/* About Section */
.about-section {
    padding: 100px 0; /* Aumentato padding */
    background-color: #ffffff; /* Sfondo bianco per contrasto */
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px; /* Aumentato */
}

.about-text {
    flex: 1.2; /* Più spazio al testo */
}

.about-text h2 {
    font-size: 2.8rem; /* Coerente con section-title */
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.05rem; /* Leggermente più grande */
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-image {
    flex: 0.8;
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-frame { /* Rimosso, immagine diretta */
    width: 100%;
    height: 450px; /* Aumentato */
    background-image: url('../images/image003.jpg'); /* Immagine di fallback se JS fallisce */
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius-lg);
}

/* Footer Styles */
.footer {
    background-color: var(--footer-color);
    color: var(--text-color-light);
    padding: 80px 0 30px; /* Aumentato padding */
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-info h3, .footer-links h4, .footer-contact h4 {
    font-family: var(--font-secondary);
    font-size: 1.6rem; /* Aumentato */
    margin-bottom: 1.5rem;
    color: white; /* Testo bianco al hover */
    font-weight: 700;
}

.footer-info p {
    margin-bottom: 0.75rem;
    opacity: 0.85;
    line-height: 1.6;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-color-light);
    opacity: 0.85;
    transition: color var(--transition-fast), padding-left var(--transition-fast);
    position: relative;
}

.footer-links a:hover {
    color: white; /* Testo bianco al hover */
    opacity: 1;
    padding-left: 8px; /* Effetto hover */
    text-decoration: none;
}

.footer-contact p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    opacity: 0.85;
}

.footer-contact i {
    margin-right: 12px;
    color: white; /* Testo bianco al hover */
    font-size: 1.2rem;
    width: 20px; /* Allineamento icone */
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center; /* Centra le icone orizzontalmente */
    gap: 18px; /* Aumentato */
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px; /* Aumentato */
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-color-light);
    font-size: 1.2rem;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.social-icons a:hover {
    background-color: white; /* Testo bianco al hover */
    transform: translateY(-3px) scale(1.1);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1050; /* Sopra la nav sticky */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0,0,0,0.75); /* Sfondo più scuro */
    opacity: 0;
    transition: opacity var(--transition-medium);
    padding: 30px;
}

.modal.show {
    display: flex; /* Per centrare modal-content */
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: #ffffff;
    padding: 40px; /* Aumentato */
    border: none; /* Rimosso bordo */
    width: 90%;
    max-width: 850px; /* Leggermente ridotto per padding */
    border-radius: var(--border-radius-lg);
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95) translateY(-20px);
    transition: transform var(--transition-medium), opacity var(--transition-medium);
    opacity: 0; /* Inizia invisibile per transizione */
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.close-button {
    color: #888;
    position: absolute;
    top: 20px; /* Aumentato */
    right: 25px;
    font-size: 2.2rem; /* Aumentato */
    font-weight: 300; /* Più leggero */
    line-height: 1;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.close-button:hover,
.close-button:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    gap: 40px; /* Aumentato */
}

.modal-image {
    flex: 0.8; /* Leggermente più piccolo */
    width: 400px; /* Larghezza fissa */
    height: 400px; /* Altezza fissa */
    overflow: hidden;
    position: relative; /* Per i controlli galleria */
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
}

.modal-image img {
    width: 100% !important; /* Riempie completamente la larghezza */
    height: 100% !important; /* Riempie completamente l'altezza */
    display: block !important;
    object-fit: cover !important; /* Riempie il container mantenendo proporzioni, tagliando se necessario */
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
    vertical-align: top !important; /* Elimina spazio sotto l'immagine */
}

/* Stili Galleria Multiple Immagini */
.gallery-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

.gallery-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition-fast);
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
}

.modal-image:hover .gallery-btn {
    opacity: 1;
    transform: scale(1);
}

.gallery-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.gallery-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Zoom Styles */
.zoom-lens {
    position: absolute;
    border: 2px solid #007bff;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: none;
    pointer-events: none;
    z-index: 15;
    background: rgba(255, 255, 255, 0.2);
}

.zoom-result {
    position: fixed;
    top: 50px;
    right: 50px;
    width: 350px;
    height: 350px;
    border: 3px solid #007bff;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 999999;
    pointer-events: none;
    overflow: hidden;
    display: none;
    align-items: center;
    justify-content: center;
}
.zoom-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(2.5);
    transform-origin: center center; /* Valore di default migliorato */
    transition: transform-origin 0.1s ease-out; /* Transizione fluida */
}

.modal-info {
    flex: 1.2; /* Più spazio per info */
}

.modal-info h2 {
    font-family: var(--font-secondary);
    font-size: 2.2rem; /* Aumentato */
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal-info #modal-category {
    font-size: 1rem;
    color: white; /* Testo bianco al hover */
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-info #modal-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1.5rem;
}

.modal-info #modal-price {
    font-family: var(--font-secondary);
    font-size: 2rem; /* Aumentato */
    font-weight: 700;
    color: white; /* Testo bianco al hover */
    margin-top: 1.5rem;
    display: block; /* Per margin-top */
}

/* Placeholder image styles */
.placeholder-image-container {
    height: 280px; /* Coerente con .product-image */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e9ecef; /* Colore placeholder */
    color: #adb5bd;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0; /* Solo angoli superiori */
}
.placeholder-image-container i {
    font-size: 60px; /* Icona più grande */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
    .about-content {
        flex-direction: column;
        gap: 40px;
    }
    .about-image {
        order: -1; /* Immagine sopra su mobile */
        margin-bottom: 30px;
        width: 100%;
        max-width: 500px; /* Limita larghezza immagine about */
    }
    .image-frame {
        height: 350px;
    }
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    _h2, .section-title, .about-text h2 { font-size: 2.2rem; }
    _h3 { font-size: 1.8rem; }

    .header-content {
        height: auto; /* Altezza automatica */
        padding: 80px 5% 40px; /* Più padding */
        text-align: center; /* Centra logo su mobile */
        justify-content: center;
    }
    .logo {
        position: static; /* Rimuovi posizionamento per flusso normale */
        transform: none;
        padding: 25px;
        margin: 0 auto;
        max-width: 90%;
    }
    .logo h1 { font-size: 2.5rem; }
    .logo p { font-size: 1rem; }

    .nav-container {
        height: 65px;
    }
    .logo-mobile {
        display: block;
    }
    .menu-toggle {
        display: block;
        position: absolute; /* Per non spostare il logo mobile */
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    .nav-menu {
        position: fixed;
        top: 65px; /* Sotto la nav */
        left: -100%;
        width: 85%; /* Più largo */
        max-width: 320px;
        height: calc(100vh - 65px);
        background-color: var(--primary-color);
        flex-direction: column;
        transition: left var(--transition-medium);
        overflow-y: auto;
        padding-top: 20px;
        box-shadow: 5px 0 15px rgba(0,0,0,0.2);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-menu li a {
        height: 60px;
        line-height: 60px;
        padding: 0 30px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .nav-menu li:last-child a {
        border-bottom: none;
    }
    .nav-menu li.active::after { display: none; }
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(0,0,0,0.15);
        padding: 0;
        display: none; /* Nascosto di default */
    }
    .has-dropdown.active .dropdown { display: block; }
    .dropdown li a {
        color: var(--text-color-light);
        padding-left: 45px; /* Indentazione */
        font-size: 0.9rem;
    }
    .dropdown li a:hover {
        background-color: rgba(0,0,0,0.2);
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 25px;
    }
    .product-image { height: 240px; }
    .product-name { font-size: 1.2rem; }
    .product-price { font-size: 1.3rem; }

    .modal-body {
        flex-direction: column;
        gap: 25px;
    }
    .modal-image { 
        width: 100%; 
        max-width: 350px; 
        height: 350px; /* Mantiene proporzioni quadrate su mobile */
        margin: 0 auto; /* Centra su mobile */
    }
    .modal-info h2 { font-size: 1.8rem; }
    .modal-info #modal-price { font-size: 1.8rem; }
    .close-button { font-size: 2rem; top: 15px; right: 20px; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    h1 { font-size: 2rem; }
    _h2, .section-title, .about-text h2 { font-size: 1.8rem; }
    .logo h1 { font-size: 2rem; }

    .products-grid {
        grid-template-columns: 1fr; /* Singola colonna */
        gap: 20px;
    }
    .product-image { height: 260px; }

    .btn, .btn-view-all, .btn-about {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .footer-content {
        text-align: center;
    }
    .footer-contact p {
        justify-content: center;
    }
    .social-icons {
        justify-content: center;
    }
}


/* Stili per Privacy Policy e Cookie Policy */
.privacy-policy-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.6;
}

.privacy-policy-page h1 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.last-updated {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-bottom: 40px;
}

.policy-section {
    margin-bottom: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.policy-section h2 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.policy-section h3 {
    color: var(--dark-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.policy-section h4 {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.info-box {
    background: #f8f9fa;
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.highlight-box {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border: 2px solid var(--accent-color);
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    font-weight: 500;
}

.contact-info {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.contact-method i {
    color: white; /* Testo bianco al hover */
    font-size: 1.2rem;
    width: 20px;
}

.policy-section ul {
    margin: 15px 0;
    padding-left: 25px;
}

.policy-section li {
    margin-bottom: 8px;
}

.policy-section a {
    color: white; /* Testo bianco al hover */
    text-decoration: none;
    font-weight: 500;
}

.policy-section a:hover {
    text-decoration: underline;
}

/* Footer link stili */
.footer-bottom a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-bottom a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Responsive per Privacy Policy */
@media (max-width: 768px) {
    .privacy-policy-page {
        padding: 20px 15px;
    }
    
    .privacy-policy-page h1 {
        font-size: 2rem;
    }
    
    .policy-section {
        padding: 20px 15px;
    }
    
    .policy-section h2 {
        font-size: 1.5rem;
    }
    
    .contact-method {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .privacy-policy-page h1 {
        font-size: 1.8rem;
    }
    
    .policy-section h2 {
        font-size: 1.3rem;
    }
    
    .policy-section h3 {
        font-size: 1.1rem;
    }
}
/* === SEZIONI CON GRADIENTE ROSSO === */
.cta-section {
    background: linear-gradient(135deg, #FF6B6E 0%, #eb2023 50%, #FF8A8C 100%);
    background-attachment: fixed;
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.qmf-header {
    background: linear-gradient(135deg, #FF6B6E 0%, #eb2023 50%, #FF8A8C 100%);
    background-attachment: fixed;
    color: white;
    padding: 40px 0;
    margin-bottom: 40px;
    text-align: center;
}

@media (max-width: 768px) {
    .cta-section {
        padding: 60px 0;
        background-attachment: scroll;
    }
    .qmf-header {
        padding: 30px 0;
        background-attachment: scroll;
    }
}
