/* ============================================= */
/* === 1. STILI GLOBALI & RESET              === */
/* ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1d1d1f;
    background-color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

body:not(.page-home) main {
    padding-top: 90px;
}


/* ============================================= */
/* === 2. COMPONENTI COMUNI                  === */
/* ============================================= */

/* --- NAVIGAZIONE --- */
.main-nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.main-nav.nav-hidden {
    transform: translateY(-100%);
}
.nav-container {
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
}
.logo img {
    height: 60px;
    display: block;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
}
.nav-links a, .nav-links a:visited {
    text-decoration: none;
    color: #333333;
    font-weight: 400;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
    font-size: 1.1em;
}
.nav-links a:hover {
    color: #0071e3;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0071e3;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.nav-links a:hover::after, .nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
.nav-links a.active, .nav-links a.active:visited {
    color: #0071e3;
    font-weight: 500;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}
.hamburger-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333333;
    margin: 6px 0;
    transition: all 0.3s;
}

/* --- FOOTER UNIFICATO --- */
footer {
    background-color: #1d1d1f;
    padding: 50px 20px;
    font-size: 0.9em;
    color: #a1a1a6;
    text-align: center;
}
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}
.footer-container h4 {
    font-size: 1.1em;
    color: #f5f5f7;
    margin-bottom: 15px;
}
.footer-address {
    font-style: normal;
    line-height: 1.8;
}
.footer-address a, .footer-address a:visited {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-address a:hover {
    color: #fff;
    text-decoration: underline;
}

/* --- COMPONENTI GENERICI (Titoli, Sezioni, Pulsanti) --- */
.page-intro {
    text-align: center;
    padding: 80px 20px 100px;
    background: radial-gradient(circle at 50% 0%, #ffffff 0%, #f5f5f7 100%);
}
.page-subtitle {
    font-size: clamp(2.8rem, 6vw, 3.8rem);
    max-width: 850px;
    margin: 0 auto;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -1px;
    color: #1d1d1f;
}
.page-description {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: #6e6e73;
    max-width: 800px;
    margin: 25px auto 0;
}
.back-link, .back-link:visited {
    display: inline-block;
    margin-bottom: 25px;
    color: #0071e3;
    text-decoration: none;
    font-weight: 500;
}
.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    color: #1d1d1f;
}
.cta-button {
    display: inline-block;
    background-color: #0071e3;
    color: #fff;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    margin-top: 25px;
}
.cta-button:hover {
    background-color: #0077ed;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.25);
}
.cta-button.large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* --- ANIMAZIONI --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- SLIDER E IMMAGINI (CORRETTO) --- */
.slider-container {
    position: relative;
    overflow: hidden; /* Nasconde le immagini che escono dal contenitore */
    width: 100%;
    height: 100%;
}
.mini-slider-track {
    display: flex;
    height: 100%;
    position: relative;
    z-index: 1;
    /* La transizione viene applicata da JS */
}
.mini-slider-track img {
    width: 100%; /* Ogni immagine occupa il 100% della larghezza del contenitore */
    height: 100%;
    object-fit: contain; /* Impostazione predefinita per la maggior parte degli slider */
    flex-shrink: 0; /* Impedisce alle immagini di restringersi */
}
.mini-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 30, 30, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
}
.slider-container:hover .mini-slider-arrow {
    opacity: 1;
}
.mini-slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}
.mini-slider-arrow.prev { left: 12px; }
.mini-slider-arrow.next { right: 12px; }
.mini-slider-arrow svg { width: 22px; height: 22px; fill: currentColor;}


/* ============================================= */
/* === 3. LAYOUT SPECIFICI PER PAGINE/SEZIONI === */
/* ============================================= */
section {
    padding: 100px 20px;
}
section.content-section {
    padding: 80px 0;
}
section.content-section .section-container {
     max-width: 1280px; margin: 0 auto; padding: 0 20px;
}
section .section-inner {
    max-width: 1280px; margin: 0 auto; text-align: center;
}
section.bg-gray {
    background-color: #f5f5f7;
}

/* Homepage */
.page-home #hero {
    height: 100vh; padding: 0; position: relative; display: flex;
    align-items: center; justify-content: center; color: #fff; text-align: center;
}
.hero-slideshow {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
}
.hero-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; filter: brightness(0.6);
}
.hero-slide.active-slide { opacity: 1; }
.hero-content { 
    position: relative; z-index: 2; background: rgba(0,0,0,0.2); backdrop-filter: blur(5px);
    border-radius: 15px; padding: 40px; max-width: 850px; margin: 0 auto;
}
.page-home #hero h1 { font-size: clamp(2.5rem, 6vw, 3.2rem); margin-bottom: 20px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.page-home #hero p { font-size: clamp(1rem, 3vw, 1.3rem); max-width: 600px; margin: 0 auto; color: rgba(255, 255, 255, 0.9); text-shadow: 0 1px 5px rgba(0,0,0,0.5); }
.page-home .stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 100px; max-width: 1100px; margin-left: auto; margin-right: auto; }
.page-home .stat-item-inline { display: flex; align-items: center; justify-content: center; gap: 15px; text-align: left; }
.page-home .stat-number-wrapper { display: inline-flex; align-items: flex-start; line-height: 0.8; }
.page-home .stat-number, .page-home .stat-plus { font-size: 4rem; font-weight: 600; color: #0071e3; }
.page-home .stat-suffix { font-size: 2.5rem; font-weight: 600; color: #0071e3; }
.page-home .stat-label-inline { font-size: 1.1rem; color: #6e6e73; font-weight: 500; }
.page-home .subsection-title { font-size: 1rem; font-weight: 500; color: #6e6e73; margin-bottom: 40px; text-transform: uppercase; letter-spacing: 1.5px; }
.page-home .partner-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(60px, 8vw, 100px); }
.page-home .partner-logos img { max-height: 105px; width: auto; filter: grayscale(100%) opacity(0.7); transition: filter 0.3s ease; }
.page-home .partner-logos img:hover { filter: grayscale(0%) opacity(1); }
.modern-timeline-container { position: relative; max-width: 800px; margin: 0 auto; }
.modern-timeline-container::before { content: ''; position: absolute; left: 21.5px; top: 0; width: 3px; height: 100%; background-color: #d2d2d7; z-index: 1; }
.modern-timeline-container::after { content: ''; position: absolute; left: 21.5px; top: 0; width: 3px; height: 100%; background-color: #0071e3; transform: scaleY(0); transform-origin: top; transition: transform 1s ease-in-out; z-index: 1; }
#storia.in-view .modern-timeline-container::after { transform: scaleY(1); }
.modern-timeline-item { position: relative; padding-left: 70px; padding-bottom: 60px; z-index: 2; text-align: left; }
.modern-timeline-item:last-child { padding-bottom: 0; }
.modern-timeline-icon { position: absolute; left: 0; top: 0; width: 43px; height: 43px; border-radius: 50%; background-color: #f5f5f7; border: 3px solid #0071e3; display: flex; align-items: center; justify-content: center; color: #0071e3; }
.modern-timeline-icon svg { width: 22px; height: 22px; }
.modern-timeline-content h3 { font-size: 1.4rem; font-weight: 500; margin-bottom: 10px; }
.modern-timeline-content p { color: #6e6e73; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.news-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: all 0.3s; display: flex; flex-direction: column; text-align: left; }
#soluzioni .news-card { background-color: #f5f5f7; }
.news-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.news-card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.news-image { width: 100%; height: 220px; object-fit: cover; }
.news-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.news-meta { font-size: 0.85rem; color: #6e6e73; margin-bottom: 10px; }
.news-title { font-size: 1.25rem; margin-bottom: 10px; font-weight: 500; }
.news-description { color: #6e6e73; }
#final-cta { background-color: #1d1d1f; color: #fff; }
#final-cta h2 { font-size: clamp(2.2rem, 5vw, 2.8rem); font-weight: 600; letter-spacing: -0.5px;}
#final-cta p { max-width: 600px; margin: 20px auto 0; color: #a1a1a6; font-size: 1.15rem; }


/* --- NUOVI STILI PER FEATURE SECTIONS (MARCHI E SERVIZI) --- */
.feature-section {
    overflow: hidden;
}
.feature-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
    text-align: left;
}
.feature-text-col {
    flex: 1;
}
.feature-image-col {
    flex: 1;
    min-height: 480px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out, height 0.3s ease-out, background-color 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-container:hover .feature-image-col {
    transform: scale(1.015);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.feature-image-col > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
/* Animazione testo a cascata */
.feature-text-col > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.feature-section.is-visible .feature-text-col > *:nth-child(1) { transition-delay: 0.1s; }
.feature-section.is-visible .feature-text-col > *:nth-child(2) { transition-delay: 0.2s; }
.feature-section.is-visible .feature-text-col > *:nth-child(3) { transition-delay: 0.3s; }
.feature-section.is-visible .feature-text-col > *:nth-child(4) { transition-delay: 0.4s; }
.feature-section.is-visible .feature-text-col > * {
    opacity: 1;
    transform: translateY(0);
}
.feature-title {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1d1d1f;
    letter-spacing: -0.5px;
}
.feature-description {
    font-size: 1.15rem;
    color: #6e6e73;
    line-height: 1.7;
}
.feature-container.layout-reversed {
    flex-direction: row-reverse;
}
.brand-gallery-section { padding: 30px 0; border-bottom: 1px solid #e5e5e5; background-color: #fff; }
.brand-gallery-container { max-width: 1200px; margin: 0 auto; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.brand-gallery-container:hover .brand-gallery-track { animation-play-state: paused; }
.brand-gallery-track { display: flex; gap: 60px; width: max-content; padding: 10px 0; }
.brand-gallery-track.is-scrolling { animation: marqueeScroll 40s linear infinite; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.brand-gallery-item { display: block; flex-shrink: 0; transition: transform 0.2s ease, opacity 0.3s ease; cursor: pointer; opacity: 0.7; }
.brand-gallery-item:hover { transform: scale(1.15); opacity: 1; }
.brand-gallery-item img { max-height: 35px; max-width: 120px; object-fit: contain; filter: grayscale(1); transition: filter 0.3s ease; display: block; }
.brand-gallery-item:hover img { filter: grayscale(0); }
.brand-logo-wrapper { margin-bottom: 20px; min-height: 60px; display: flex; align-items: center; }
.brand-logo-img { max-height: 55px; max-width: 220px; object-fit: contain; display: block; }

/* Pagine Prodotto Dettagliate */
.page-catalogo-prodotto .product-hero-detailed { height: 400px; background-size: cover; background-position: center; position: relative; display: flex; align-items: center; justify-content: center; }
.page-catalogo-prodotto .product-hero-detailed::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 1; }
.page-catalogo-prodotto .hero-logo-container { position: relative; z-index: 2; padding: 20px; }
.page-catalogo-prodotto .hero-logo-container img { max-height: 120px; max-width: 90%; width: auto; }
.page-catalogo-prodotto .detailed-layout-section .section-content-wrapper { max-width: 1280px; margin: 0 auto; }
.page-catalogo-prodotto .detailed-layout-section h1 { font-size: clamp(2rem, 5vw, 2.5rem); font-weight: 600; margin-bottom: 30px; color: #1d1d1f; }
.page-catalogo-prodotto .detailed-layout-container { display: flex; align-items: flex-start; gap: 60px; }
.page-catalogo-prodotto .detailed-text-col { flex: 2; text-align: left; }
.page-catalogo-prodotto .detailed-text-col p { font-size: 1.1rem; color: #5f5f5f; line-height: 1.7; }
.page-catalogo-prodotto .detailed-info-col { flex: 1; text-align: left; background-color: #f5f5f7; padding: 30px; border-radius: 12px; margin-top: -85px; }
.page-catalogo-prodotto .detailed-info-col h2 { font-size: 1.5rem; font-weight: 500; margin-bottom: 20px; color: #1d1d1f; }
.page-catalogo-prodotto .detailed-info-list { list-style: none; padding: 0; }
.page-catalogo-prodotto .detailed-info-list li { position: relative; padding-left: 25px; margin-bottom: 15px; color: #6e6e73; font-size: 1rem; }
.page-catalogo-prodotto .detailed-info-list li::before { content: '—'; position: absolute; left: 0; top: 0; color: #0071e3; font-weight: bold; }
.page-catalogo-prodotto .detailed-cta-container { max-width: 1280px; margin: 60px auto 0; padding-top: 60px; text-align: center; border-top: 1px solid #e5e5e5; }
.page-catalogo-prodotto .cta-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.page-catalogo-prodotto .cta-group .cta-button { margin-top: 0; }

/* Pagina Contatti */
.page-contatti .contact-layout { display: flex; align-items: flex-start; gap: 60px; text-align: left; }
.page-contatti .contact-details { flex: 1; }
.page-contatti .contact-details h3 { font-size: 1.8rem; font-weight: 500; margin-bottom: 20px; }
.page-contatti .contact-details address { font-style: normal; font-size: 1.1rem; line-height: 1.8; }
.page-contatti .contact-details a { color: inherit; text-decoration: none; }
.page-contatti .contact-details a:hover { text-decoration: underline; }
.page-contatti .map-container { flex: 1.5; height: 450px; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.page-contatti .map-container iframe { width: 100%; height: 100%; border: 0; }
.founders-container { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.founders-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; width: 100%; }
.founder-card {
    background: #fff; border: 1px solid #e5e5e5; border-radius: 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    padding: 30px 20px; text-align: center; width: 100%; max-width: 350px; display: flex; flex-direction: column; align-items: center; transition: all 0.3s ease;
}
.founder-card:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0,0,0,0.1); }
.founder-photo { width: 120px; height: 120px; border-radius: 50%; background-color: #e9ecef; margin-bottom: 20px; }
.founder-card h3 { font-size: 1.5em; margin-bottom: 5px; color: #1d1d1f; font-weight: 500; }
.founder-role { font-size: 0.95em; color: #6e6e73; margin-bottom: 20px; flex-grow: 1; }
.founder-contact-details { padding-top: 20px; border-top: 1px solid #f0f0f0; width: 100%; }
.founder-contact-details a { display: block; color: #0071e3; text-decoration: none; font-weight: 500; font-size: 0.95rem; line-height: 1.8; }
.founder-contact-details a:hover { text-decoration: underline; }


/* ============================================= */
/* === 4. MEDIA QUERIES (DESIGN RESPONSIVE)  === */
/* ============================================= */

/* Tablet e dispositivi più piccoli (fino a 900px) */
@media (max-width: 900px) {
    .page-home .stats-grid { grid-template-columns: 1fr; max-width: 400px; gap: 50px; margin-bottom: 80px; }
    .page-contatti .contact-layout { flex-direction: column !important; gap: 40px; }
    .page-catalogo-prodotto .detailed-layout-container { flex-direction: column; }
    .page-catalogo-prodotto .detailed-info-col { margin-top: 0; }
    
    .feature-container { flex-direction: column !important; gap: 40px; text-align: center; }
    .feature-image-col {
        min-height: 300px;
        height: auto;
        width: 100%;
    }
    .brand-logo-wrapper { justify-content: center; }
}

/* Design specifico per mobile (fino a 768px) */
@media (max-width: 768px) {
    /* Navigazione mobile */
    .nav-links {
        display: none; flex-direction: column; position: fixed;
        top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px);
        padding-top: 90px;
        gap: 0; overflow-y: auto;
    }
    .main-nav.nav-open .nav-links { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a, .nav-links a:visited { display: block; padding: 20px 25px; font-size: 1.2rem; border-bottom: 1px solid #f0f0f0; }
    .nav-links a::after { display: none; }
    .nav-toggle { display: block; }
    body.nav-open { overflow: hidden; }
    .main-nav.nav-open .hamburger-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .main-nav.nav-open .hamburger-bar:nth-child(2) { opacity: 0; }
    .main-nav.nav-open .hamburger-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    section, section.content-section { padding: 60px 20px; }
    section .section-inner, .section-container { padding: 0; }
    .section-title { margin-bottom: 40px; }
    .page-intro { padding: 60px 20px; }
    .hero-content { padding: 30px 25px; }
    
    .news-grid { grid-template-columns: 1fr; }
    
    .modern-timeline-container::before, .modern-timeline-container::after { left: 18px; }
    .modern-timeline-item { padding-left: 55px; }
    .modern-timeline-icon { width: 36px; height: 36px; }
    .modern-timeline-icon svg { width: 18px; height: 18px; }

    .page-catalogo-prodotto .product-hero-detailed { height: 300px; }
    .page-catalogo-prodotto .cta-group { flex-direction: column; align-items: stretch; }
    .page-catalogo-prodotto .cta-group .cta-button { width: 100%; text-align: center; }
    
    .page-contatti .map-container { height: 300px; }
    .founders-row { flex-direction: column; align-items: center; }

    .feature-image-col {
        min-height: 250px;
    }
}

/* ============================================= */
/* === 5. STILI PERSONALIZZATI / OVERRIDE    === */
/* ============================================= */

/* Stili specifici per forzare il riempimento delle immagini */
#hs .feature-image-col img,
.page-servizi .feature-section .feature-image-col img {
    object-fit: cover;
}

/* Stile per ingrandire il logo MPC nella pagina marchi */
#mpc-section .brand-logo-img {
    max-height: 85px; 
    max-width: 280px;
}

/* =================================================================== */
/* === 6. SOLUZIONE DEFINITIVA PER LOGHI PAGINE DEDICATE === */
/* =================================================================== */

/* --- LOGO MPC (Dimensioni ~1.5x) --- */
.logo-mpc-pagina-prodotto img {
    height: 160px !important;
    width: auto !important;
    max-height: 160px !important;
    max-width: 90% !important;
}

@media (max-width: 768px) {
    .logo-mpc-pagina-prodotto img {
        height: 150px !important;
        max-height: 150px !important;
    }
}

/* --- LOGO MAS (Dimensioni ~1.8x) --- */
.logo-mas-pagina-prodotto img {
    height: 216px !important;
    width: auto !important;
    max-height: 216px !important;
    max-width: 90% !important;
}

@media (max-width: 768px) {
    .logo-mas-pagina-prodotto img {
        height: 180px !important;
        max-height: 180px !important;
    }
}

/* --- LOGO MKR (Dimensioni 2x) --- */
.logo-mkr-pagina-prodotto img {
    height: 240px !important;
    width: auto !important;
    max-height: 240px !important;
    max-width: 90% !important;
}

@media (max-width: 768px) {
    .logo-mkr-pagina-prodotto img {
        height: 200px !important;
        max-height: 200px !important;
    }
}

/* --- LOGO H+S (Dimensioni ~1.2x - RIMPICCIOLITO) --- */
body.page-hs .logo-hs-pagina-prodotto img {
    height: 150px !important;
    width: auto !important;
    max-height: 150px !important;
    max-width: 90% !important;
}

@media (max-width: 768px) {
    body.page-hs .logo-hs-pagina-prodotto img {
        height: 140px !important;
        max-height: 140px !important;
    }
}

/* --- LOGO VALTEC (Dimensioni 2x) --- */
.logo-valtec-pagina-prodotto img {
    height: 240px !important;
    width: auto !important;
    max-height: 240px !important;
    max-width: 90% !important;
}

@media (max-width: 768px) {
    .logo-valtec-pagina-prodotto img {
        height: 200px !important;
        max-height: 200px !important;
    }
}


/* --- HERO CON LOGO COME SFONDO (NANN & UYAR) --- */
.page-nann .product-hero-detailed,
.page-uyar .product-hero-detailed {
    background-image: none !important; /* Rimuove l'immagine di sfondo inline */
    background-size: 100% 100%;      /* Forza il riempimento, stretchando l'immagine */
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #ffffff;        /* Sfondo bianco pulito */
}

/* Rimuove l'overlay scuro solo per queste pagine */
.page-nann .product-hero-detailed::before,
.page-uyar .product-hero-detailed::before {
    display: none;
}

/* Imposta il logo specifico come sfondo per ogni pagina */
.page-nann .product-hero-detailed {
    background-image: url('foto/logo nann.jpg') !important;
}
.page-uyar .product-hero-detailed {
    background-image: url('foto/uyar logo.png') !important;
}

/* Nasconde il tag <img> originale, ora ridondante */
.page-nann .hero-logo-container,
.page-uyar .hero-logo-container {
    display: none;
}