/*
 * RIVET CASA - CSS Unificato Ottimizzato
 * Tutti gli stili per le pagine del sito in un unico file
 * Generato automaticamente per ottimizzare le performance
 */

/* === IMPORTAZIONE FONT === */
@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');

/* === VARIABILI CSS GLOBALI === */
:root {
    /* Font */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Montserrat', sans-serif;

    /* Colori principali */
    --primary-color: #1a2530;
    --accent-color: #eb2023; /* Rosso per logo e hover */
    --light-color: #ecf0f1;
    --dark-color: #34495e;
    --text-color: #333333;
    --text-color-light: #f8f9fa;
    --background-color: #f4f6f8;
    --footer-color: #1a2530; /* Grigio marmo */
    
    /* Bordi e ombre */
    --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);

    /* Transizioni */
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.4s ease-in-out;
    --transition-slow: 0.6s ease-in-out;

    /* Variabili per temi */
    --card-background: white;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --header-background: white;
    --nav-background: white; /* Menu bianco */
    --nav-text: #333333; /* Testo nero */
    --nav-hover: var(--accent-color); /* Hover rosso */
    --nav-active: var(--accent-color); /* Active rosso */
    --button-primary-bg: var(--accent-color);
    --button-primary-text: white;
    --button-primary-hover: #eb2023; /* Rosso più scuro per hover */
    --button-secondary-bg: var(--primary-color);
    --button-secondary-text: white;
    --button-secondary-hover: #1a2530;
    --modal-background: #fefefe;
    --modal-text: #333;
    --modal-header-text: var(--primary-color);
    --modal-accent-text: var(--accent-color);
}

/* === RESET E BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* === LAYOUT CONTAINER === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER === */
.header {
    position: relative;
    color: var(--text-color-light);
    padding: 20px 0;
    overflow: hidden;
    background: var(--header-background);
    height: 500px; /* Altezza fissa per lo slideshow */
}

/* === HEADER SLIDESHOW === */
.header-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.header-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.header-slide.active {
    opacity: 1;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.7), rgba(52, 73, 94, 0.5));
    z-index: 2;
}

.header-content {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}

.logo h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: var(--font-primary);
    color: var(--accent-color); /* Logo rosso */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.logo p {
    font-size: 18px;
    opacity: 0.9;
    font-family: var(--font-secondary);
    color: var(--text-color-light);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* === NAVIGAZIONE === */
.main-nav {
    background-color: var(--nav-background);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: center; /* Centra il menu */
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-mobile {
    display: flex;
    align-items: center;
    margin-right: 30px;
}

.logo-mobile h2 {
    font-family: var(--font-primary);
    color: var(--accent-color);
    font-size: 24px;
    margin: 0;
}

.logo-mobile-img {
    height: 40px;
    width: auto;
}

/* Desktop: logo altezza piena nav-container */
@media (min-width: 769px) {
    .logo-mobile-img {
        height: 60px;
    }
}

@media (max-width: 768px) {
    .logo-mobile-img {
        height: 35px;
    }
    
    .logo-mobile {
        margin-right: 15px;
    }
}

.menu-toggle {
    display: none; /* Nascosto su desktop */
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--nav-text);
    margin: 3px 0;
    transition: var(--transition-fast);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li {
    margin: 0;
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 500;
    font-family: var(--font-secondary);
    transition: var(--transition-fast);
}

.nav-menu a:hover {
    background-color: var(--nav-hover);
    color: white;
}

.nav-menu li.active a {
    background-color: var(--nav-active);
    color: white;
}

/* === DROPDOWN MENU === */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    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;
    pointer-events: none;
}

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

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

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

.dropdown li a {
    color: var(--text-color);
    padding: 15px 25px;
    height: auto;
    line-height: 1.5;
    font-size: 0.95rem;
    font-weight: 500;
    background-color: transparent;
    display: block; /* Assicura che il link occupi tutta la larghezza */
}

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

/* === BOTTONI === */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-primary);
}

.btn-primary {
    background-color: var(--button-primary-bg);
    color: var(--button-primary-text);
}

.btn-primary:hover {
    background-color: var(--button-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--button-secondary-bg);
    color: var(--button-secondary-text);
}

.btn-secondary:hover {
    background-color: var(--button-secondary-hover);
}

/* === CARDS === */
.card {
    background: var(--card-background);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition-medium);
}

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

.card-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

/* === GRIGLIA PRODOTTI === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    background: var(--card-background);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-medium);
    cursor: pointer;
}

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

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-name,
.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-family: var(--font-primary);
}

.product-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-family: var(--font-primary);
}

/* === HEADER SLIDER === */
.header-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.header-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.header-slide.active {
    opacity: 1;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8), rgba(52, 73, 94, 0.6));
    z-index: 1;
}

/* === SEZIONI === */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: var(--font-secondary);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === FOOTER === */
.footer {
    background: linear-gradient(135deg, #8B9DC3 0%, #1a2530 50%, #9CABC4 100%);
    background-attachment: fixed;
    color: white;
    padding: 50px 0 20px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.footer-info,
.footer-links,
.footer-column {
    text-align: center;
}

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

.footer-links a {
    color: white !important;
    text-decoration: none !important;
    transition: var(--transition-fast);
    display: inline-block;
    padding: 5px 0;
}

.footer-links a:visited {
    color: white !important;
    text-decoration: none !important;
}

.footer-links a:hover {
    color: #f0f0f0 !important;
    text-decoration: none !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

.footer-links a:active {
    color: white !important;
    text-decoration: none !important;
}

.footer-links a:focus {
    color: white !important;
    text-decoration: none !important;
    outline: 1px solid rgba(255,255,255,0.5);
    outline-offset: 2px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.footer-section p,
.footer-section li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: white;
}

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

.footer-section a {
    color: white;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-section a:hover {
    color: #f0f0f0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: white;
    position: relative;
    z-index: 1;
}

/* === MODALI === */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: block;
}

.modal-content {
    background-color: var(--modal-background);
    margin: 2% auto;
    padding: 0;
    border-radius: var(--border-radius-lg);
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--modal-header-text);
    margin: 0;
}

.close,
.close-button {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
    background: none;
    border: none;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1;
}

.close:hover,
.close-button:hover {
    color: var(--accent-color);
}

.modal-body {
    padding: 30px;
    color: var(--modal-text);
    display: flex;
    gap: 30px;
    align-items: flex-start;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.modal-image {
    flex: 1.2;
    max-width: 60%;
    min-width: 400px;
}

.modal-image img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    border-radius: var(--border-radius-md);
    object-fit: contain;
    box-shadow: var(--shadow-md);
}

.modal-info {
    flex: 0.8;
    max-width: 40%;
    min-width: 300px;
}

.modal-info h2 {
    font-family: var(--font-primary);
    color: var(--modal-header-text);
    margin-bottom: 15px;
    font-size: 24px;
}

.modal-info p {
    margin-bottom: 10px;
    line-height: 1.6;
}

#modal-category {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#modal-description {
    color: #666;
    margin: 15px 0;
}

#modal-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 15px;
}

/* === FORM === */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius-md);
    font-size: 16px;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.form-control.error {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
}

/* === FILTRI === */
.filters {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-select {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius-md);
    background: white;
    font-size: 14px;
    min-width: 150px;
}

/* === BREADCRUMB === */
.breadcrumb {
    background: white;
    padding: 15px 0;
    margin-bottom: 20px;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    align-items: center;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '>';
    margin: 0 10px;
    color: #666;
}

.breadcrumb-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.breadcrumb-link:hover {
    color: var(--accent-color);
}

/* === PAGINAZIONE === */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.pagination a:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.pagination .current {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* === LOADING === */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === ALERT === */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .logo h1 {
        font-size: 36px;
    }
    
    .logo p {
        font-size: 16px;
    }
    
    /* Menu mobile */
    .menu-toggle {
        display: flex;
    }
    
    .nav-container {
        justify-content: space-between;
        flex-wrap: wrap;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--nav-background);
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu a {
        padding: 15px 20px;
        border-bottom: none;
    }
    
    /* Dropdown mobile */
    .dropdown {
        display: none; /* Nascosto di default su mobile */
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: #f8f9fa;
        padding: 0;
        border-radius: 0;
    }
    
    .dropdown ul {
        list-style: none; /* Rimuove i punti anche su mobile */
        padding: 0;
        margin: 0;
    }
    
    .has-dropdown.active .dropdown {
        display: block;
    }
    
    .dropdown li a {
        padding-left: 40px;
        font-size: 14px;
    }
    
    .dropdown li a:hover {
        background-color: #eb2023; /* Sfondo rosso anche su mobile */
        color: white; /* Testo bianco anche su mobile */
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-select {
        min-width: auto;
    }
    
    .modal-content {
        width: 98%;
        margin: 1% auto;
        max-height: 95vh;
    }
    
    .modal-body {
        flex-direction: column;
        padding: 20px;
        max-height: calc(95vh - 60px);
    }
    
    .modal-image,
    .modal-info {
        max-width: 100%;
        min-width: auto;
    }
    
    .modal-image {
        order: 1;
    }
    
    .modal-info {
        order: 2;
    }
    
    .modal-image img {
        max-height: 50vh;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 24px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .modal-content {
        margin: 5% auto;
    }
    
    .modal-header,
    .modal-body {
        padding: 15px;
    }
}

/* === UTILITY CLASSES === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.p-0 { padding: 0; }
.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.text-primary { color: var(--primary-color); }
.text-accent { color: var(--accent-color); }
.text-muted { color: #666; }

.bg-primary { background-color: var(--primary-color); }
.bg-accent { background-color: var(--accent-color); }
.bg-light { background-color: var(--light-color); }

/* === ANIMAZIONI === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

.slide-in-down {
    animation: slideInDown 0.6s ease-out;
}

/* === PRINT STYLES === */
@media print {
    .header-slider,
    .main-nav,
    .footer,
    .btn,
    .modal {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}


/* === IMAGE ZOOM EFFECT - VERSIONE ROBUSTA === */

/* Immagine principale con hover */
.modal-image {
    position: relative;
    cursor: crosshair;
}

.modal-image:hover {
    cursor: crosshair;
}

/* Lente di ingrandimento */
.zoom-lens {
    position: absolute;
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: none;
    width: 120px;
    height: 120px;
    z-index: 10;
    background-color: rgba(255,255,255,0.1);
    display: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Pannello zoom - VERSIONE ROBUSTA con position fixed */
.zoom-result {
    position: fixed !important;
    top: 50px !important;
    right: 50px !important;
    width: 350px !important;
    height: 350px !important;
    border: 3px solid #007bff !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
    z-index: 999999 !important;
    pointer-events: none !important;
    overflow: hidden !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Immagine nel pannello zoom */
.zoom-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: none !important;
}

/* Indicatore di stato zoom */
.zoom-result::before {
    content: "🔍 ZOOM ATTIVO" !important;
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    background: #007bff !important;
    color: white !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    z-index: 10 !important;
}

/* Responsive - disabilita su mobile */
@media (max-width: 768px) {
    .zoom-lens,
    .zoom-result {
        display: none !important;
    }
}

/* Responsive adjustments for zoom on smaller screens */
@media (max-width: 1200px) {
    .zoom-result {
        left: calc(100% + 10px);
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 992px) {
    .zoom-result {
        position: fixed;
        top: 50%;
        right: 20px;
        left: auto;
        transform: translateY(-50%);
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    /* Disable zoom on mobile devices */
    .zoom-lens,
    .zoom-result {
        display: none !important;
    }
    
    .modal-image:hover {
        cursor: default;
    }
}

/* Enhanced modal image styling for zoom */
.modal-image img {
    transition: none; /* Remove any existing transitions that might interfere */
    user-select: none;
    -webkit-user-drag: none;
}

.modal-image.zoom-active img {
    cursor: none;
}


/* === ICONE SOCIAL FOOTER === */
.social-icons {
    display: flex;
    justify-content: center; /* Centra le icone orizzontalmente */
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white !important;
    font-size: 18px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white !important;
}

.social-icons a i {
    color: white !important;
}
/* === 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;
}

/* Responsive per sezioni con gradiente rosso */
@media (max-width: 768px) {
    .cta-section {
        padding: 60px 0;
        background-attachment: scroll; /* Migliore performance su mobile */
    }
    
    .qmf-header {
        padding: 30px 0;
        background-attachment: scroll; /* Migliore performance su mobile */
    }
}
