/* ==========================================================================
   RESET & VARIABILI GLOBALI
   ========================================================================== */
:root {
    --color-dark: #1a1a1a;
    --color-light: #f9f9f9;
    --color-grey: #7a8489;
    --color-white: #ffffff;
    --font-main: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-dark);
    background-color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ==========================================================================
   TIPOGRAFIA & BOTTONI
   ========================================================================== */
h1, h2, h3 {
    font-weight: 400;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: #2c2c35;
}

.intro-text h2 {
    font-size: 2.4rem;
    font-weight: 300;
    color: #3b3c54;
    margin-bottom: 50px;
    line-height: 1.3;
}

.subtitle {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 15px;
    font-weight: 500;
}

.intro-desc p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    font-weight: 400;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 3px;
    cursor: pointer;
}

.btn-outline-light {
    border: 1px solid var(--color-white);
    color: var(--color-white);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--color-white);
    color: var(--color-dark);
}

.btn-outline-dark {
    border: 1px solid var(--color-dark);
    color: var(--color-dark);
    background: transparent;
}

.btn-outline-dark:hover {
    background: var(--color-dark);
    color: var(--color-white);
}

/* ==========================================================================
   HEADER & LOGO
   ========================================================================== */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.logo-container img {
    height: 80px; /* Raddoppiato per replicare l'imponenza originale */
    width: auto;
    min-width: 120px; 
}

.main-nav {
    position: absolute;
    right: 50px;
}

.hamburger-menu {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION & SLIDESHOW
   ========================================================================== */
.hero-section {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    max-width: 1200px; /* Allargato da 800px a 1200px per dare spazio al titolo gigante */
    width: 100%; /* Si assicura che il contenitore prenda tutto lo spazio per centrare perfettamente */
    padding: 20px;
    z-index: 2;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem; 
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 800; 
    letter-spacing: 0px; 
    /* Ho rimosso "white-space: nowrap;" così ora respira e si centra da solo */
}

.hero-content p {
    font-size: 0.95rem; /* Un pelo più raffinato */
    letter-spacing: 1px; /* Spaziatura ridotta per renderlo più compatto */
    margin-bottom: 40px;
    color: #ffffff;
    font-weight: 400; /* Più leggero per fare contrasto col titolo gigante */
}

/* ==========================================================================
   GRIGLIA SERVIZI (4 Colonne)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
}

.service-item {
    height: 350px;
    background-size: cover;
    background-position: center;
    background-color: #333; 
    background-blend-mode: multiply; 
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Sposta il contenuto a sinistra */
    padding-left: 50px; /* Dà il margine dal bordo sinistro come l'originale */
    color: var(--color-white);
    position: relative;
}

.service-item span {
    font-size: 0.95rem;
    font-weight: 400; /* Assottiglia il font per abbinarlo all'originale */
    letter-spacing: 3px; /* Aumenta lo spazio tra le lettere */
    position: relative;
    padding-bottom: 15px; /* Spinge la linea bianca un pelo più in basso */
}

.service-item span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-white);
    transition: width 0.3s ease;
}

.service-item:hover span::after {
    width: 100%;
}

.service-item:hover {
    background-color: #555;
    background-blend-mode: multiply;
}

/* ==========================================================================
   INTRO PRODOTTI
   ========================================================================== */
.intro-products {
    padding: 100px 20px;
    text-align: center;
    background-color: var(--color-white);
}

.intro-text h2 {
    font-size: 2.4rem;
    font-weight: 500; /* Aumentato per ridare il corpo originale */
    color: #2c2b5e; /* Tinta indaco/blu profondo esatta del vecchio sito */
    margin-bottom: 50px;
    line-height: 1.3;
}

.product-collage {
    max-width: 1000px;
    margin: 0 auto 50px auto;
}

.intro-desc {
    max-width: 700px;
    margin: 0 auto;
}

.intro-desc p {
    margin-bottom: 30px;
    color: #555;
}

/* ==========================================================================
   BANNER COMPANY (Video Background)
   ========================================================================== */
.company-banner {
    position: relative;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.banner-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-content h2 {
    color: #ffffff; /* Forza il bianco scavalcando la regola globale */
    font-weight: 700; /* Ripristina il grassetto massiccio originale */
    font-size: 2.8rem; /* Ingrandisce il titolo per dare il giusto impatto */
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.banner-content p {
    color: #ffffff; /* Assicura che anche il sottotitolo sia ben visibile */
    font-size: 1.15rem;
    margin-bottom: 30px;
}

/* ==========================================================================
   CTA WHATSAPP
   ========================================================================== */
.cta-whatsapp {
    background-color: #8fa0a8; 
    padding: 80px 20px;
    text-align: center;
}

.cta-whatsapp .subtitle {
    color: #ffffff; /* Forza il bianco */
    opacity: 1; /* Rimuove le trasparenze */
    font-weight: 500;
}

.cta-whatsapp h2 {
    color: #ffffff; /* Forza il bianco scavalcando la regola globale */
    font-weight: 300; /* Mantiene l'eleganza leggera dell'originale */
    font-size: 2.8rem;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.cta-whatsapp .btn-outline-dark {
    border-color: #ffffff;
    color: #ffffff;
    margin-top: 15px;
}

.cta-whatsapp .btn-outline-dark:hover {
    background: #ffffff;
    color: #8fa0a8;
}
/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: #1a1a1a;
    color: #888;
    padding: 60px 50px 20px 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    border-bottom: 1px solid #333;
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--color-white);
}

.footer-links a:hover {
    color: var(--color-grey);
}

.footer-social-info {
    text-align: center;
}

.social-icons {
    margin-bottom: 20px;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
    color: var(--color-white);
    font-size: 1.2rem;
}

.company-info p {
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-logo {
    text-align: right;
}

.footer-logo img {
    max-height: 40px;
}

.footer-copyright {
    text-align: center;
    font-size: 0.75rem;
}

/* ==========================================================================
   RESPONSIVE (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-logo {
        text-align: center;
        margin-top: 20px;
    }
    .main-nav {
        right: 20px;
    }
    .main-header {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .intro-text h2 {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   OFFCANVAS MENU
   ========================================================================== */
.offcanvas-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    max-width: 100%;
    height: 100vh;
    background-color: #050505;
    z-index: 1000;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.offcanvas-menu.open {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 25px;
    right: 35px;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.close-menu:hover {
    transform: scale(1.1) rotate(90deg);
}

.offcanvas-links {
    text-align: center;
    margin-top: 40px;
}

.offcanvas-links li {
    margin-bottom: 25px;
}

.offcanvas-links a {
    color: var(--color-white);
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.offcanvas-links a:hover {
    color: var(--color-grey);
}

.lang-selector {
    text-align: center;
    margin-top: auto;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.lang-selector a {
    color: #666;
    padding: 0 4px;
}

.lang-selector a.active, .lang-selector a:hover {
    color: var(--color-white);
}

.lang-selector .divider {
    color: #444;
    font-size: 0.8rem;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   LAYOUT PAGINE INTERNE
   ========================================================================== */
.inner-hero {
    height: 45vh;
    min-height: 350px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: var(--color-white);
}

.inner-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.inner-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    margin: 0;
}

.inner-content {
    padding: 80px 20px;
    background: var(--color-white);
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.container h2 {
    color: #2c2b5e;
    font-size: 2rem;
    margin-bottom: 30px;
}

.container p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ==========================================================================
   PAGINA COMPANY & SLIDERS
   ========================================================================== */
.company-intro {
    text-align: center;
    margin-bottom: 60px;
}

.company-intro p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

.department-header {
    text-align: center;
    margin-bottom: 40px;
}

.department-header .main-title {
    font-size: 2.6rem;
    font-weight: 300;
    color: #2c2b5e; /* Il blu originale */
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.dept-block {
    margin-bottom: 40px;
    text-align: left;
}

.dept-block h3 {
    font-size: 1.2rem;
    color: #2c2b5e;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.dept-block p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
}

/* Logica CSS del Carosello */
.custom-slider {
    position: relative;
    max-width: 900px;
    margin: 40px auto 60px auto;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.slider-track img {
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: white;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 10px 20px;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.slider-btn:hover {
    opacity: 1;
}

.slider-prev { left: 0; }
.slider-next { right: 0; }

/* ==========================================================================
   COLLEZIONI & 360 SPIN MODAL
   ========================================================================== */
.collections-header {
    text-align: center;
    margin-bottom: 60px; /* Aumentato lo spazio sotto per far respirare il titolo */
}

.collections-header .subtitle {
    font-size: 0.85rem; /* Leggermente più grande */
    font-weight: 600; /* Grassettato per dare la solidità dell'originale */
    letter-spacing: 2px; /* Spaziatura ridotta per renderlo compatto */
    color: #666; /* Grigio più scuro e leggibile */
    text-transform: uppercase;
    margin-bottom: 15px;
}

.collections-header h2 {
    font-size: 2.8rem; /* Ingrandito per eguagliare l'impatto originale */
    color: #2c2b5e;
    font-weight: 300;
    line-height: 1.2; /* Riduce lo spazio tra le due righe del titolo */
    letter-spacing: 0.5px;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px; /* Crea il bordino sottile stile griglia tra gli elementi */
    background: #f0f0f0; /* Colore delle linee di divisione */
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid #f0f0f0;
}

.collection-item {
    background: var(--color-white);
    padding: 20px; /* Ridotto il padding da 50px a 20px per dare più spazio all'immagine */
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1; /* Forza i riquadri a essere sempre quadrati perfetti */
}

.collection-item img {
    max-width: 95%; /* Aumentato da 80% a 95% per farle più grandi */
    max-height: 95%; /* Evita che escano dal quadrato */
    width: auto;
    height: auto;
    object-fit: contain; /* Mantiene le proporzioni senza deformarle */
    transition: transform 0.3s ease;
}

.collection-item:hover {
    background: #fcfcfc;
}

.collection-item:hover img {
    transform: scale(1.05);
}

/* Modal / Popup 360 */
.spin-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(30, 30, 35, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.spin-modal.active {
    opacity: 1;
    visibility: visible;
}

.spin-modal-content {
    background: var(--color-white);
    padding: 50px;
    position: relative;
    max-width: 600px;
    width: 90%;
    border-radius: 4px;
    text-align: center;
}

.spin-modal-close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    transition: transform 0.3s;
}

.spin-modal-close:hover {
    transform: rotate(90deg);
}

.spin-frame-container {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spin-frame-container img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .collections-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .collections-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PAGINA CONTATTI
   ========================================================================== */
.contact-intro {
    text-align: center;
    margin-bottom: 60px;
}

.contact-intro p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.8;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-box {
    text-align: center;
    padding: 30px;
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.contact-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.contact-box .subtitle {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 5px;
}

.contact-box h3 {
    font-size: 1.3rem;
    color: #2c2b5e;
    margin-bottom: 15px;
    font-weight: 500;
}

.contact-box p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.contact-box .btn {
    margin-top: 15px;
    font-size: 0.75rem;
    padding: 10px 20px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.map-container {
    max-width: 800px;
    margin: 40px auto 0 auto;
    width: 100%;
}

.map-section {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    border: none;
}

.map-section iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    display: block;
}

/* ==========================================================================
   PAGINA CONTRIBUTI PUBBLICI
   ========================================================================== */
.year-title {
    font-size: 2.2rem;
    color: #2c2b5e;
    font-weight: 300;
    margin: 80px 0 30px 0;
    text-align: center;
}

.contributo-intro {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.8;
}

.contributo-box {
    background-color: #f9f9fa; /* Il grigino chiaro richiesto */
    padding: 25px 30px;
    margin-bottom: 20px;
    text-align: left;
    border: 1px solid #f0f0f0;
}

.contributo-box p {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 8px;
    line-height: 1.6;
}

.contributo-box p:last-child {
    margin-bottom: 0;
}

.contributo-box strong {
    color: #2c2b5e;
    font-weight: 600;
}

/* Stile per la tabella specifica del 2021 */
.contributo-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #f9f9fa;
    text-align: left;
    font-size: 0.9rem;
}

.contributo-table th, .contributo-table td {
    padding: 15px 20px;
    border: 1px solid #eaeaea;
    vertical-align: top;
}

.contributo-table th {
    font-weight: 600;
    color: #2c2b5e;
    background-color: #f0f0f5;
}

.contributo-img {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin: 30px auto;
    display: block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.rna-link-container {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eaeaea;
}

/* ==========================================================================
   PAGINA CATALOGO
   ========================================================================== */
.container-catalogo {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.catalog-filters {
    background-color: #f9f9fa;
    padding: 25px 30px;
    margin: 20px auto 40px auto; 
    width: 100%;
    border-radius: 4px;
    box-sizing: border-box;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

/* ETICHETTE FILTRI: PIÙ GRANDI E BLU VAMP */
.filter-group label {
    font-size: 0.95rem !important; /* Ingrandite */
    text-transform: uppercase;
    color: #2c2b5e !important;   /* Blu scuro coordinato */
    font-weight: 700 !important;   /* Marcate */
    margin-bottom: 8px;
    letter-spacing: 0.8px;
}

.filter-group select,
.filter-group input {
    padding: 10px 12px;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    background-color: #fff;
    font-family: inherit;
    font-size: 0.85rem;
    color: #444;
    width: 100%;
    box-sizing: border-box;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #2c2b5e;
}

/* GRIGLIA PRODOTTI COMPATTA E ALLINEATA (6 PER RIGA) */
.products-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 25px 15px !important;
    width: 100% !important;
}

.product-card {
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
}

/* FIX PER EVITARE CHE VADANO SPARSI: ALTEZZA FISSA BOX IMMAGINE */
.product-img-wrapper {
    width: 100%;
    height: 110px; /* Forziamo l'altezza fissa */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.product-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* CODICI ARTICOLO IN BOLD */
.product-code {
    font-size: 0.85rem !important;
    color: #111 !important;
    font-weight: 700 !important; /* Bold ben marcato */
    letter-spacing: 0.5px;
}

/* PAGINAZIONE */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 0;
    gap: 10px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #555;
    text-decoration: none;
}

.pagination a:hover {
    color: #2c2b5e;
    font-weight: 700;
}

.pagination .current {
    font-weight: 700;
    color: #2c2b5e;
    border-bottom: 2px solid #2c2b5e;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(4, 1fr) !important; }
}

@media (max-width: 600px) {
    .filters-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ==========================================================================
   SCHEDA PRODOTTO (FEDELE ALLO SCREENSHOT)
   ========================================================================== */
.product-page {
    padding: 40px 0 60px 0;
    background-color: #fff;
    font-family: inherit;
}

.container-product {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* GRIGLIA SUPERIORE (FOTO + INFO) */
.product-top-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 50px;
}

/* RIQUADRO IMMAGINE COMPATTO CON FRECCE */
.product-gallery-compact {
    width: 320px;
}

/* --- SOSTITUISCI QUESTE CLASSI NEL BLOCCO DELLA SCHEDA PRODOTTO --- */

/* La scatola dell'immagine */
.main-image-box {
    width: 320px;
    height: 320px; /* Reso perfettamente quadrato */
    border: 1px solid #eaeaea;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 4px;
}

.main-image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Navigazione sotto la foto (Frecce + Pallini) */
.gallery-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.dots-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.dot {
    width: 9px;
    height: 9px;
    background-color: #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dot.active, .dot:hover {
    background-color: #2c2b5e; /* Blu Vamp */
}

.nav-arrow {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #888;
    cursor: pointer;
    padding: 0 10px;
    line-height: 1;
    transition: color 0.2s;
}

.nav-arrow:hover {
    color: #2c2b5e;
}

/* --- TITOLI CARATTERISTICHE (TIPOLOGIA, FORMA, ECC) --- */
.spec-title {
    font-size: 0.85rem !important; /* Più grande */
    text-transform: uppercase;
    color: #2c2b5e !important; /* Blu Vamp */
    font-weight: 700 !important;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

/* MINIATURE PICCOLE */
.thumbnails-compact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.thumb-mini {
    width: 32px;
    height: 32px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding: 2px;
    cursor: pointer;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.thumb-mini.active,
.thumb-mini:hover {
    border-color: #2c2b5e;
    box-shadow: 0 0 4px rgba(44, 43, 94, 0.3);
}

.thumb-mini img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* INTESTAZIONE A DESTRA */
.product-header-info {
    padding-top: 10px;
}

.info-label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 4px;
}

.info-code {
    font-size: 1.8rem;
    color: #333;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.info-category {
    font-size: 1.1rem;
    color: #2c2b5e;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* BLOCCHI DETTAGLI (CARATTERISTICHE & MISURE) */
.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.block-header {
    background-color: #f7f7f9;
    color: #2c2b5e;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.block-body {
    padding: 0 10px;
}

.spec-group {
    margin-bottom: 22px;
}

.spec-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.spec-value {
    font-size: 0.88rem;
    color: #444;
    line-height: 1.5;
}

.measure-item {
    margin-bottom: 6px;
}

/* DICITURA DI FINE PAGINA */
.product-disclaimer {
    font-size: 0.75rem;
    color: #999;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    line-height: 1.4;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .product-top-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .product-gallery-compact, .main-image-box {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .product-details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}