@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Roboto+Condensed:wght@400;600;700&display=swap');

:root {
  --primary: rgb(11, 100, 220);
  /* Blu Tosello */
  --primary-dark: rgb(8, 80, 180);
  --accent: rgb(245, 113, 49);
  /* Arancione Tosello */
  --dark: #1e293b;
  --light: #f8fafc;
  --font-headers: 'Roboto Condensed', sans-serif;
  --font-body: 'Montserrat', sans-serif;
}

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

body {
  font-family: var(--font-body) !important;
  line-height: 1.7;
  color: #1e293b;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* Font Intestazioni e Pulsanti */
h1,
h2,
h3,
h4,
h5,
h6,
.nav-menu a,
nav a,
.sidebar-widget h3,
.btn {
  font-family: var(--font-headers) !important;
}

/* --- LAYOUT A TUTTA PAGINA RICHIESTO DAI TOSELLO --- */
.container {
  max-width: 1600px !important;
  width: 95%;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- HEADER & NAV --- */
.site-header { 
  background: #fff; 
  border-bottom: 1px solid #eee; 
  padding: 15px 0; 
}
.header-inner { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}
.main-nav a { 
  margin-left: 20px; 
  text-decoration: none; 
  color: var(--dark); 
  font-weight: 500; 
}
.main-nav a:hover {
  color: var(--primary);
}
.main-nav a.btn-call { 
  background: var(--primary); 
  color: #fff; 
  padding: 8px 14px; 
  border-radius: 4px; 
}
.main-nav a.btn-call:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* --- HERO --- */
.hero { 
  background: var(--light); 
  padding: 80px 0; 
  text-align: center; 
}
.hero h1 { 
  font-size: 2.5rem; 
  margin-bottom: 15px; 
  color: var(--dark); 
}
.hero .lead { 
  font-size: 1.25rem; 
  color: #666; 
  margin-bottom: 25px; 
}

/* --- BOTTONI --- */
.btn { 
  display: inline-block; 
  padding: 10px 22px; 
  text-decoration: none; 
  border-radius: 4px; 
  font-weight: bold; 
}
.btn-primary { 
  background-color: var(--primary); 
  color: #fff; 
  margin-right: 10px; 
  border: none;
}
.btn-primary:hover { 
  background-color: var(--primary-dark); 
}
.btn-secondary { 
  background: #6c757d; 
  color: #fff; 
}

/* --- CONTENUTI --- */
.content-section, .page-article { 
  padding: 50px 0; 
}

/* --- SIDEBAR COMPONENTS (Nuovi Stili Tosello) --- */
.sidebar-widget h3 {
  border-bottom: 2px solid var(--primary);
}
.sidebar-product-list a {
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}
.sidebar-product-list a:hover,
.sidebar-product-list a.active {
  color: var(--primary);
  font-weight: 600;
  transform: translateX(6px);
}

/* --- FOOTER --- */
.site-footer { 
  background: var(--dark); 
  color: #fff; 
  padding: 40px 0 20px; 
  margin-top: 50px; 
}
.site-footer a { 
  color: #bbb; 
  text-decoration: none; 
}
.site-footer a:hover {
  color: var(--primary);
}
.footer-inner { 
  display: flex; 
  justify-content: space-between; 
  flex-wrap: wrap; 
  gap: 20px; 
}
.footer-copy { 
  width: 100%; 
  border-top: 1px solid #444; 
  padding-top: 15px; 
  margin-top: 20px; 
  font-size: 0.9rem; 
  text-align: center; 
  color: #888; 
}

  /* Page Header */
.page-header { background: #eef2f6; padding: 40px 0; border-bottom: 1px solid #dde2e6; margin-bottom: 40px; }
.page-header h1 { font-size: 2.2rem; color: var(--dark); }

/* Griglia Prodotti */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.product-card { background: #fff; border: 1px solid #e1e4e8; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.product-card img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.card-body h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--dark); }
.card-body p { font-size: 0.95rem; color: #555; margin-bottom: 20px; flex-grow: 1; }
.btn-outline { display: inline-block; border: 2px solid var(--primary); color: var(--primary); text-align: center; padding: 8px 16px; border-radius: 4px; font-weight: bold; text-decoration: none; }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* Dettaglio Prodotto */
.back-link { display: inline-block; margin-bottom: 15px; color: #666; text-decoration: none; font-size: 0.9rem; }
.product-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-top: 30px; }
.main-image img { width: 100%; border-radius: 8px; margin-bottom: 25px; }
.product-body h3 { margin: 20px 0 10px; }
.product-body ul { margin-left: 20px; margin-bottom: 20px; }

/* Sidebar & CTA */
.cta-box { background: #f8f9fa; border: 1px solid #e1e4e8; padding: 25px; border-radius: 8px; position: sticky; top: 20px; }
.cta-box h3 { margin-bottom: 10px; font-size: 1.2rem; }
.cta-box p { font-size: 0.9rem; color: #666; margin-bottom: 20px; }
.btn-block { display: block; width: 100%; text-align: center; margin-bottom: 10px; box-sizing: border-box; }
.btn-whatsapp { background: #25d366; color: #fff; }

/* Galleria */
.product-gallery { margin-top: 40px; padding-top: 30px; border-top: 1px solid #eee; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; margin-top: 15px; }
.gallery-grid img { width: 100%; height: 140px; object-fit: cover; border-radius: 4px; border: 1px solid #ddd; }

/* Responsive Mobile */
@media (max-width: 768px) {
  .product-layout { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; gap: 15px; }
  .main-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .main-nav a { margin: 0; }
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    justify-content: space-between;
    align-items: center;
    user-select: none;
  }
  
  .lightbox-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    max-width: 85vw;
    max-height: 85vh;
  }
  
  .lightbox-modal img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.6);
    cursor: default;
  }
  
  .lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 38px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.2s;
  }
  .lightbox-close:hover { transform: scale(1.15); color: var(--accent); }
  
  .lightbox-arrow {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 18px 16px;
    cursor: pointer;
    border-radius: 6px;
    margin: 0 20px;
    z-index: 10000;
    transition: background 0.2s, transform 0.1s;
  }
  .lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.35);
  }
  .lightbox-arrow:active {
    transform: scale(0.95);
  }
  
  .main-image a {
    display: block;
    cursor: pointer;
  }

  /* Noleggio Modern Page */
.page-hero-noleggio { background: #f1f5f9; padding: 50px 0; border-bottom: 1px solid #e2e8f0; }
.hero-noleggio-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.badge { display: inline-block; background: #e0e7ff; color: var(--primary); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; margin-bottom: 15px; letter-spacing: 0.5px; }
.hero-text h1 { font-size: 2.2rem; line-height: 1.2; margin-bottom: 15px; color: #1e293b; }
.hero-text .lead { font-size: 1.1rem; color: #64748b; margin-bottom: 25px; }
.hero-actions { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-image img { width: 100%; height: 320px; object-fit: cover; border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

/* Sezione Vantaggi */
.vantaggi-section { padding: 60px 0; background: #fff; }
.section-title { font-size: 1.8rem; text-align: center; margin-bottom: 40px; color: #1e293b; }
.vantaggi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; }
.vantaggio-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 25px 20px; text-align: center; transition: transform 0.2s; }
.vantaggio-card:hover { transform: translateY(-4px); }
.v-icon { font-size: 2rem; margin-bottom: 12px; }
.vantaggio-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: #0f172a; }
.vantaggio-card p { font-size: 0.9rem; color: #64748b; line-height: 1.5; }

/* Banner CTA finale */
.banner-cta { background: #1e293b; color: #fff; padding: 50px 0; }
.banner-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.banner-inner h2 { font-size: 1.5rem; margin-bottom: 8px; }
.banner-inner p { color: #94a3b8; }
.btn-lg { padding: 12px 28px; font-size: 1rem; }

@media (max-width: 768px) {
  .hero-noleggio-grid { grid-template-columns: 1fr; }
  .hero-image { order: -1; }
  .banner-inner { text-align: center; justify-content: center; }
}

/* Sezione Contatti */
.contact-section { padding: 50px 0 70px; background: #f8fafc; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }

.contact-info-card, .contact-form-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 35px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.contact-info-card h2, .contact-form-card h2 { font-size: 1.4rem; color: #0f172a; margin-bottom: 10px; }
.contact-desc { color: #64748b; font-size: 0.95rem; margin-bottom: 25px; }

.info-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; }
.info-item { display: flex; align-items: flex-start; gap: 15px; }
.info-icon { font-size: 1.4rem; background: #e0e7ff; padding: 10px; border-radius: 8px; line-height: 1; }
.info-item strong { display: block; color: #0f172a; font-size: 0.95rem; }
.info-item p { color: #475569; font-size: 0.9rem; margin: 0; }
.info-item a { color: var(--primary); text-decoration: none; font-weight: 500; }
.info-item a:hover { text-decoration: underline; }

.direct-buttons { display: flex; flex-direction: column; gap: 10px; }

/* Form Styles */
.contact-form { margin-top: 20px; }
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; color: #334155; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #1e293b;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}
.form-privacy { font-size: 0.85rem; color: #64748b; margin-bottom: 20px; }
.form-privacy input { margin-right: 6px; }
.btn-submit { width: 100%; padding: 12px; font-size: 1rem; border: none; cursor: pointer; }

/* Mappa */
.map-section { border-top: 1px solid #e2e8f0; }

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

/* ==========================================================================
   Pagina Chi Siamo con Sidebar
   ========================================================================== */
   .about-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 50px;
    padding: 50px 15px 80px;
    align-items: start;
  }
  
  .about-header {
    margin-bottom: 25px;
  }
  
  .badge-year {
    display: inline-block;
    background: #e0f2fe;
    color: #0284c7;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
  }
  
  .about-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 15px;
  }
  
  .about-lead {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.6;
  }
  
  .about-featured-img img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 8px;
    margin: 15px 0 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  }
  
  .about-sections-flow {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 50px;
  }
  
  .about-block {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
  }
  
  .about-block h3 {
    font-size: 1.3rem;
    color: #007bc4;
    margin-bottom: 8px;
  }
  
  .about-block p {
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
    margin: 0;
  }

  .num-badge {
    background: #007bc4;
    color: #ffffff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
  }

  /* Immagini spezza-testo in Chi Siamo */
.about-inline-img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-top: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

/* Stile per i Servizi Numerati impaginati a Sidebar */
.sidebar-services-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.about-services-section, .services-num-grid, .service-num-item {
  display: none;
}
  
  /* Responsive */
  @media (max-width: 992px) {
    .about-page-wrapper {
      grid-template-columns: 1fr;
    }
  }

/* Layout Storia */
.storia-section { padding: 60px 0; background: #fff; }
.storia-content h3 { font-size: 1.5rem; color: var(--primary); margin-top: 40px; margin-bottom: 15px; border-left: 4px solid var(--accent); padding-left: 15px; }
.storia-content h3:first-child { margin-top: 0; }
.storia-content p { font-size: 1.05rem; color: #475569; line-height: 1.8; margin-bottom: 20px; max-width: 900px; }

/* Griglia 10 Servizi */
.servizi-section { padding: 60px 0; background: #f8fafc; border-top: 1px solid #e2e8f0; }
.servizi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; max-width: 1000px; margin: 0 auto; }
.servizio-item { display: flex; align-items: center; background: #fff; padding: 15px 20px; border-radius: 8px; border: 1px solid #e2e8f0; font-weight: 500; color: #1e293b; box-shadow: 0 2px 10px rgba(0,0,0,0.02); transition: transform 0.2s; }
.servizio-item:hover { transform: translateX(5px); border-color: var(--primary); }
.servizio-num { display: flex; justify-content: center; align-items: center; width: 32px; height: 32px; background: var(--primary); color: #fff; border-radius: 50%; margin-right: 15px; font-weight: bold; font-size: 0.9rem; flex-shrink: 0; }

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

/* Griglia 10 Servizi (Bilanciata a 2 o 5 colonne o centrata) */
.servizi-section { padding: 60px 0; background: #f8fafc; border-top: 1px solid #e2e8f0; }
.servizi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; max-width: 1000px; margin: 0 auto; }
.servizio-item { display: flex; align-items: center; background: #fff; padding: 18px 22px; border-radius: 8px; border: 1px solid #e2e8f0; font-weight: 600; color: #1e293b; box-shadow: 0 2px 8px rgba(0,0,0,0.02); transition: transform 0.2s, border-color 0.2s; }
.servizio-item:hover { transform: translateY(-2px); border-color: var(--primary); }
.servizio-num { display: flex; justify-content: center; align-items: center; width: 34px; height: 34px; background: var(--primary); color: #fff; border-radius: 50%; margin-right: 15px; font-weight: bold; font-size: 0.95rem; flex-shrink: 0; }

/* Footer Moderno a 3 Colonne */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 60px 0 25px;
    margin-top: 50px;
    border-top: 1px solid #1e293b;
  }
  
  .footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.3fr;
    gap: 50px;
    margin-bottom: 40px;
  }
  
  .footer-col h3 {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
  }
  
  .footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--primary);
  }
  
  /* Colonna 1 - Legal */
  .footer-legal p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 8px;
    line-height: 1.5;
  }
  .footer-legal a {
    color: #e2e8f0;
    text-decoration: none;
  }
  .footer-legal a:hover {
    color: #fff;
    text-decoration: underline;
  }
  .footer-vat {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #64748b;
  }
  
  /* Colonna 2 - Prodotti */
  .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .footer-links li {
    margin-bottom: 8px;
  }
  .footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
  }
  .footer-links a:hover {
    color: #fff;
    transform: translateX(4px);
  }
  
/* Allarghiamo la terza colonna nel footer ma impediamo l'overflow */
.footer-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
  }
  
  .footer-col {
    min-width: 0; /* IMPEDISCE ALLA COLONNA DI ESPLODERE */
  }
  
  /* Colonna 3 - Partner Cards Blindate */
  .footer-partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
  }
  
  .partner-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    min-width: 0;
    width: 100%;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  .partner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4);
  }
  
  .partner-img-wrap {
    width: 100%;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .partner-img-wrap img {
    width: 100% !important;
    height: 34px !important;
    max-height: 34px !important;
    object-fit: contain !important;
    display: block !important;
  }
  
  .partner-name {
    font-size: 0.70rem;
    font-weight: 700;
    color: #334155;
    margin-top: 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
  }
  
  /* Barra Copyright Inferiore */
  .footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: #64748b;
  }
  .footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
  }
  .footer-bottom a:hover {
    color: #fff;
  }
  
  /* Responsive Tablet & Mobile */
  @media (max-width: 900px) {
    .footer-inner {
      grid-template-columns: 1fr 1fr;
    }
    .footer-partners {
      grid-column: span 2;
    }
  }
  @media (max-width: 600px) {
    .footer-inner {
      grid-template-columns: 1fr;
    }
    .footer-partners {
      grid-column: auto;
    }
    .footer-bottom {
      text-align: center;
      justify-content: center;
    }
  }

  /* Top Bar */
    .top-bar {
      background: #f8fafc !important;
      border-bottom: 1px solid #e2e8f0 !important;
      padding: 8px 0 !important;
      font-size: 0.88rem !important;
      color: #475569 !important;
    }
  
    .top-bar .top-bar-inner {
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
      padding: 0 20px !important;
    }
  
    .top-bar-left {
      display: flex !important;
      align-items: center !important;
      gap: 22px !important;
      /* Respiro tra telefono e mail */
    }
  
    .top-bar-link {
      color: #334155 !important;
      text-decoration: none !important;
      display: inline-flex !important;
      align-items: center !important;
      gap: 7px !important;
      font-weight: 500 !important;
      transition: color 0.2s ease !important;
    }
  
    .top-bar-link:hover {
      color: rgb(245, 113, 49) !important;
    }
  
    .top-bar-divider {
      color: #cbd5e1 !important;
    }
  
    .top-bar-right .top-bar-hours {
      display: inline-flex !important;
      align-items: center !important;
      gap: 7px !important;
      color: #475569 !important;
      font-weight: 500 !important; }

/* Partner Card Link Reset */
.partner-card {
  text-decoration: none;
}

@media (max-width: 768px) {
  .top-bar-inner {
    justify-content: center;
    text-align: center;
  }
  .top-bar-hours {
    display: none;
  }
}

/* Header Centrato a 3 Elementi */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

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

.main-nav a:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

/* Icone Social Header */
.header-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-icon:hover {
  color: #fff;
  transform: translateY(-2px);
}

.social-icon.icon-wa:hover { background: #25D366; }
.social-icon.icon-fb:hover { background: #1877F2; }
.social-icon.icon-ig:hover { background: #E4405F; }
.social-icon.icon-li:hover { background: #0A66C2; }

/* Icone Social Footer */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.social-icon-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1e293b;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-icon-footer:hover {
  color: #fff;
  background: var(--primary);
  transform: translateY(-2px);
}

@media (max-width: 850px) {
  .header-inner {
    flex-direction: column;
    gap: 15px;
  }
  .main-nav {
    flex-wrap: wrap;
    gap: 15px;
  }
}

/* Footer Inner con Divisori Verticali */
.footer-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1.45fr;
  gap: 0; /* Il gap lo gestiamo con il padding interno */
  margin-bottom: 40px;
}

.footer-col {
  min-width: 0;
  padding: 0 35px;
}

/* Prima colonna attaccata a sinistra */
.footer-col:first-child {
  padding-left: 0;
}

/* Divisore verticale tra colonna 1 e 2, e tra colonna 2 e 3 */
.footer-col:not(:first-child) {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

/* Ultima colonna a filo destra */
.footer-col:last-child {
  padding-right: 0;
}

/* Gestione Responsive Tablet & Mobile */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  
  .footer-col {
    padding: 0;
  }
  
  .footer-col:not(:first-child) {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 30px;
  }
}

/* ==========================================================================
   Home Hero Split & Vertical Slider
   ========================================================================== */
   .home-hero-split {
    background: #f8fafc;
    padding: 60px 0 50px;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .hero-split-inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 50px;
    align-items: center;
  }
  
  .hero-split-text h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 10px;
  }
  
  .hero-claim {
    font-size: 1.35rem;
    font-weight: 700;
    color: #007bc4; /* Azzurro Tosello */
    margin-bottom: 20px;
  }
  
  .hero-description p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 15px;
  }
  
  .hero-cta-group {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
  }
  
  .hero-cta-group .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  
  .btn-primary { background: #007bc4; color: #fff; }
  .btn-primary:hover { background: #005a92; color: #fff; }
  
  .btn-accent { background: #0098db; color: #fff; }
  .btn-accent:hover { background: #007cb3; color: #fff; }
  
  .btn-dark { background: #1e293b; color: #fff; }
  .btn-dark:hover { background: #0f172a; color: #fff; }
  
  /* Visual & Vertical Slider */
  .hero-split-visual {
    position: relative;
    display: flex;
    align-items: center;
  }
  
  .vertical-slider-container {
    width: 100%;
    height: 380px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .vertical-slider-track {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .v-slide {
    min-height: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .v-slide img {
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
  }
  
  .v-dots {
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .v-dot {
    width: 8px;
    height: 8px;
    background: #cbd5e1;
    border-radius: 50%;
    transition: all 0.3s;
  }
  
  .v-dot.active {
    background: #007bc4;
    height: 20px;
    border-radius: 4px;
  }
  
  /* ==========================================================================
     Le 3 Macro Card Rassicuranti
     ========================================================================== */
  .home-pillars-section {
    padding: 60px 0;
    background: #ffffff;
  }
  
  .pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  
  .pillar-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  }
  
  .pillar-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
  }
  
  .pillar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
  }
  
  .pillar-card:hover .pillar-img img {
    transform: scale(1.04);
  }
  
  .pillar-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
  
  .pillar-body h3 {
    font-size: 1.25rem;
    color: #0f172a;
    margin-bottom: 12px;
  }
  
  .pillar-body p {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
  }
  
  .btn-pillar {
    align-self: flex-start;
    background: #007bc4;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
  }
  
  .btn-pillar:hover {
    background: #005a92;
  }
  
/* ==========================================================================
   Sezione I Nostri Prodotti (Card ad Oblò)
   ========================================================================== */
   .home-catalog-section {
    padding: 70px 0 90px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
  }
  
  .section-title-wrap.text-center {
    text-align: center;
    margin-bottom: 50px;
  }
  
  .section-title-wrap h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
  }
  
  .title-line-center {
    width: 50px;
    height: 3px;
    background: #007bc4;
    margin: 0 auto;
  }
  
  /* Griglia Card Prodotti */
  .products-circle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
  }
  
  .product-circle-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 35px 25px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }
  
  .product-circle-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
  }
  
  /* Oblò Circolare */
  .product-circle-img-wrap {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    margin-bottom: 22px;
    border: 4px solid #f1f5f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    transition: transform 0.3s ease, border-color 0.3s ease;
  }
  
  .product-circle-card:hover .product-circle-img-wrap {
    transform: scale(1.05);
    border-color: #007bc4;
  }
  
  .product-circle-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  /* Testo Card */
  .product-circle-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-bottom: 25px;
  }
  
  .product-circle-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.3;
  }
  
  .product-circle-body p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
  }
  
  /* Bottone Scopri di Più */
  .btn-more {
    background: #007bc4;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.1s ease;
  }
  
  .btn-more:hover {
    background: #005a92;
    color: #ffffff;
  }

  /* ==========================================================================
   Pagina Singola Prodotto (Sidebar + Content)
   ========================================================================== */
.product-page-wrapper {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  padding: 50px 15px 80px;
}

/* --- SIDEBAR --- */
.sidebar-widget {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 25px 20px;
  border-radius: 6px;
  margin-bottom: 30px;
}

.sidebar-widget h3 {
  font-size: 1.15rem;
  color: #0f172a;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.sidebar-form input,
.sidebar-form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
}

.privacy-check {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 15px;
}

.w-100 { width: 100%; }

.sidebar-product-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-product-list li {
  margin-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.sidebar-product-list a {
  display: inline-block; /* Necessario per il transform */
  padding: 8px 0;
  color: #475569;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.sidebar-product-list a:hover,
.sidebar-product-list a.active {
  color: var(--primary);
  font-weight: 600;
  transform: translateX(6px); /* Movimento fluido laterale senza scatti */
}

/* --- CONTENUTO PRINCIPALE --- */
.product-hero-image img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
}

.product-title {
  font-size: 2.2rem;
  color: #0f172a;
  margin-bottom: 20px;
}

.product-body {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 40px;
}

/* --- FAQ NATIVE (No JS) --- */
.product-faq-section {
  margin-top: 50px;
  margin-bottom: 50px;
}

.product-faq-section h2 {
  font-size: 1.6rem;
  color: #0f172a;
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.faq-subtitle { font-size: 0.9rem; color: #94a3b8; font-weight: 400; }

.faq-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 10px;
  border-radius: 4px;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: 400;
}

.faq-item[open] summary::after { content: '-'; }

.faq-answer {
  padding: 0 20px 20px;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- GALLERIA SISTEMATA --- */
.product-gallery-section h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}

.gallery-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 5px;
  height: 140px; /* Altezza fissa */
  transition: border-color 0.2s, transform 0.2s;
}

.gallery-thumb:hover {
  border-color: var(--primary);
  transform: scale(1.03);
}

.gallery-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* IL SEGRETO È QUI: non taglia mai l'immagine! */
}

/* Responsive Mobile */
@media (max-width: 900px) {
  .product-page-wrapper {
    grid-template-columns: 1fr;
  }
  .product-sidebar {
    order: 2; /* Sposta la sidebar sotto su mobile */
  }
}

/* Ricerca Rapida */
.search-inline input {
  background: #ffffff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%2394a3b8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>') no-repeat 95% center;
  padding-right: 35px;
}

/* Lightbox Overlay */
.lightbox-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.95);
  align-items: center; justify-content: center;
}
.lightbox-overlay.active { display: flex; }

.lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.5);
  animation: fadeIn 0.3s;
}

.lightbox-close {
  position: absolute; top: 20px; right: 30px;
  color: white; font-size: 40px; cursor: pointer;
  transition: color 0.2s;
}
.lightbox-close:hover { color: var(--primary); }

.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); color: white; border: none;
  font-size: 30px; padding: 15px 20px; cursor: pointer;
  transition: background 0.3s; border-radius: 4px;
}
.lightbox-prev:hover, .lightbox-next:hover { background: var(--primary); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 768px) {
  .lightbox-prev, .lightbox-next { padding: 10px 15px; font-size: 20px; }
  .lightbox-prev { left: 5px; }
  .lightbox-next { right: 5px; }
}

/* --- BOX DI LETTURA TESTO PRODOTTO (Stile Riquadri) --- */
.product-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 45px;
}

.product-body p {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 5px solid #007bc4; /* Bordo laterale in stile Tosello */
  padding: 22px 25px;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.02);
  margin: 0;
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
  text-align: justify; /* <-- Aggiunto per giustificare il testo */
}

/* Il primo riquadro (Premessa) lo facciamo risaltare leggermente */
.product-body p:first-of-type {
  background: #f0f9ff; /* Azzurrino chiarissimo rassicurante */
  border-color: #bae6fd;
  color: #0f172a;
  font-weight: 500;
}

/* Layout Pagina Noleggio */
.noleggio-page-wrapper {
  padding: 50px 15px 80px;
}

.noleggio-hero-header {
  margin-bottom: 45px;
}

.noleggio-hero-header h1 {
  font-size: 2.3rem;
  color: #0f172a;
  margin-bottom: 8px;
}

.noleggio-hero-header .subtitle {
  font-size: 1.1rem;
  color: #64748b;
}

.noleggio-grid-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 45px;
  align-items: start;
}

.noleggio-card-intro {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 5px solid #007bc4;
  padding: 22px 25px;
  border-radius: 6px;
  margin-bottom: 30px;
  color: #475569;
  line-height: 1.7;
}

.noleggio-content h3 {
  font-size: 1.35rem;
  color: #0f172a;
  margin: 30px 0 18px;
}

/* Griglia Casi d'Uso */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.use-case-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.use-case-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.use-case-item strong {
  display: block;
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 3px;
}

.use-case-item p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .noleggio-grid-layout {
    grid-template-columns: 1fr;
  }
}

/* Nasconde le thumb oltre l'ottava */
.gallery-thumb.gallery-hidden {
  display: none;
}

/* Bottone Toggle Galleria */
.btn-secondary-dark {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.btn-secondary-dark:hover {
  background: #007bc4;
  color: #ffffff;
  border-color: #007bc4;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 123, 196, 0.25);
}

.footer-legal-link {
  margin-top: 18px;
}

.footer-legal-link a {
  color: #94a3b8;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-link a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ==========================================================================
   Pagine Istituzionali / Muro di Testo (Privacy, Termini, ecc.)
   ========================================================================== */
   .legal-page-section {
    padding: 60px 15px 90px;
    background: #f8fafc;
    min-height: 70vh;
  }
  
  .legal-card-wrapper {
    max-width: 850px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 45px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  }
  
  .legal-header {
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .legal-header h1 {
    font-size: 2.2rem;
    color: #0f172a;
    margin-bottom: 10px;
  }
  
  .legal-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
  }
  
  .legal-content h3 {
    font-size: 1.3rem;
    color: #0f172a;
    margin-top: 30px;
    margin-bottom: 12px;
  }
  
  .legal-content p {
    margin-bottom: 16px;
  }
  
  .legal-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
  }
  
  .legal-content li {
    margin-bottom: 8px;
  }
  
  @media (max-width: 768px) {
    .legal-card-wrapper {
      padding: 25px 20px;
    }
    .legal-header h1 {
      font-size: 1.7rem;
    }
  }

  /* --- PULSANTE TORNA SU --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: -60px; 
  width: 45px;
  height: 45px;
  background-color: var(--primary, #00AEEF);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: right 0.3s ease, background-color 0.2s ease, transform 0.2s ease;
  z-index: 999;
}

/* Mostra il pulsante facendolo scivolare dentro lo schermo */
.back-to-top.show {
  right: 30px;
}

/* Effetto al passaggio del mouse */
.back-to-top:hover {
  background-color: var(--primary-dark, #008CBE);
  transform: translateY(-3px); 
}

/* ==========================================================================
   Responsive Fixes per Mobile & Tablet (Schermi <= 768px)
   ========================================================================== */
   @media (max-width: 768px) {

    /* 1. Header & Navigazione */
    .header-top, .top-bar {
      flex-direction: column;
      gap: 8px;
      text-align: center;
      font-size: 0.8rem;
    }
  
    .nav-menu, nav ul {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px 15px;
      padding: 10px 0;
    }
  
    .nav-menu a, nav a {
      font-size: 0.9rem;
    }
  
    /* 2. Hero Section */
    .home-hero-split {
      padding: 35px 0;
    }
  
    .hero-split-inner {
      grid-template-columns: 1fr !important;
      gap: 30px;
      text-align: center;
    }
  
    .hero-split-text h1 {
      font-size: 1.85rem !important;
    }
  
    .hero-claim {
      font-size: 1.15rem !important;
    }
  
    .hero-cta-group {
      justify-content: center;
    }
  
    .vertical-slider-container {
      height: 280px !important;
    }
  
    .v-slide {
      min-height: 280px !important;
      height: 280px !important;
    }
  
    .v-slide img {
      max-height: 260px !important;
    }
  
    /* 3. Le 3 Macro Card (Fix colonne schiacciate) */
    .pillars-grid {
      grid-template-columns: 1fr !important;
      gap: 25px !important;
    }
  
    .pillar-card {
      max-width: 480px;
      margin: 0 auto;
      width: 100%;
    }
  
    .pillar-img {
      height: 200px !important;
    }
  
    /* 4. Griglia Prodotti a Cerchio / Oblò */
    .products-circle-grid {
      grid-template-columns: 1fr !important;
      max-width: 400px;
      margin: 0 auto;
    }
  
    /* 5. Sezione Noleggio e Prodotti Singoli (Sidebar sotto al contenuto) */
    .product-page-wrapper,
    .noleggio-grid-layout,
    .about-page-wrapper {
      grid-template-columns: 1fr !important;
      gap: 35px;
      padding: 30px 15px 60px;
    }
  
    .product-sidebar,
    .noleggio-sidebar,
    .about-sidebar {
      order: 2;
      width: 100%;
    }
  
    .gallery-grid {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 10px;
    }
  }

  /* 2. Menu Navigazione a Schede Touch-Friendly */
  .nav-menu, nav ul, .main-navigation ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px 8px !important;
    padding: 10px 5px !important;
    margin: 8px 0 12px 0 !important;
    list-style: none !important;
  }

  .nav-menu li, nav ul li {
    margin: 0 !important;
  }

  .nav-menu a, nav a {
    display: inline-block;
    padding: 6px 12px !important;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
  }

  .nav-menu a:hover, .nav-menu a.active, nav a.active {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
  }

  /* 1. Header grigio della pagina contatti */
  .contact-header, 
  .page-header,
  .contact-hero {
    text-align: center !important;
    padding: 30px 20px !important;
  }

  .contact-header h1,
  .page-header h1 {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .contact-header p,
  .page-header p {
    text-align: center !important;
    max-width: 90% !important;
    margin: 0 auto !important;
  }

  /* 2. Card Sede Operativa & Form */
  .contact-info-card,
  .contact-card,
  .contact-wrapper {
    text-align: center !important;
    padding: 25px 18px !important;
  }

  .contact-info-card h2,
  .contact-info-card h3 {
    text-align: center !important;
  }

  /* Mantiene le righe con icona (indirizzo, tel, mail) ben leggibili */
  .contact-info-item,
  .info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin-bottom: 20px;
  }

  .contact-info-item .icon-box,
  .info-item .icon {
    margin: 0 auto 6px;
  }

  /* Icone Social Centrate e Più Piccole */
  .header-social, .social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
  }

  .header-social a, .social-icons a {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  /* 3. Typography: Titoli Bilanciati ed Eleganti */
  h1, .hero-split-text h1, .noleggio-hero-header h1, .legal-header h1 {
    font-size: 1.65rem !important;
    line-height: 1.25 !important;
    letter-spacing: -0.5px;
    text-wrap: balance; /* Magia moderna: evita parole orfane a capo */
    padding: 0 10px;
    margin-bottom: 12px !important;
  }

  h2 {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
    text-wrap: balance;
  }

  h3 {
    font-size: 1.15rem !important;
  }

  .subtitle, .hero-claim, .about-lead {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    padding: 0 12px;
    text-wrap: pretty;
  }

  /* 4. Hero & Sezioni Interne su Mobile */
  .contact-hero, .page-hero, .noleggio-hero-header {
    text-align: center !important;
    padding: 25px 10px !important;
  }

/* Allargamento del layout a "tutta pagina" */
.container,
.product-page-wrapper,
.noleggio-page-wrapper,
.about-page-wrapper,
.legal-page-section .container {
  max-width: 1600px !important;
  width: 96%;
}

/* Griglia Prodotti su 2 righe (4 colonne desktop) */
.products-circle-grid,
.products-grid {
  grid-template-columns: repeat(4, 1fr) !important;
}

/* Responsive per tablet: torniamo a 2 colonne */
@media (max-width: 1024px) {

  .products-circle-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Stile Popup Modal Cataloghi */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border-radius: 8px;
  width: 100%;
  max-width: 520px;
  padding: 35px 30px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 18px;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  line-height: 1;
}

.modal-header h3 {
  margin: 0 0 8px 0;
  color: var(--primary);
  font-size: 1.5rem;
}

.modal-header p {
  font-size: 0.92rem;
  color: #64748b;
  margin-bottom: 20px;
}

.catalog-form .form-group {
  margin-bottom: 14px;
}

.catalog-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 5px;
}

.catalog-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  margin-bottom: 6px;
  cursor: pointer;
}

.catalog-form input[type="text"],
.catalog-form input[type="email"],
.catalog-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  font-size: 0.9rem;
  font-family: inherit;
}

.partners-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.partner-item {
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
}

.partner-item img {
  max-width: 100%;
  max-height: 42px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Griglia a 2 colonne per le immagini spezza-testo */
.about-img-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 25px;
}

.about-img-duo img {
  width: 100%;
  height: 240px;
  /* Altezza fissa uniforme che compensa l'immagine verticale dell'ufficio */
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Su mobile stretto le incolonniamo o le lasciamo compatte */
@media (max-width: 576px) {
  .about-img-duo {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .about-img-duo img {
    height: 190px;
  }
}

/* --- FIX A: Card Servizi (Home) --- */
.pillar-img,
.card-img-top {
  height: 240px !important;
  /* Diamo più respiro verticale */
  overflow: hidden;
}

.pillar-img img,
.card-img-top img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center center !important;
  /* Centra perfettamente l'immagine */
  transition: transform 0.3s ease;
}

/* --- FIX B: Cerchi Prodotti (Home) --- */
.product-circle-img,
.category-circle img {
  width: 150px !important;
  height: 150px !important;
  /* Devono essere perfettamente quadrati prima del radius */
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center center !important;
  margin: 0 auto 15px auto;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* --- FIX C: Hero Immagine Chi Siamo --- */
.about-featured-img img {
  width: 100%;
  max-height: 480px !important;
  /* Frena l'altezza massima */
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  /* Un tocco di morbidezza */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  /* Stacca l'immagine dal fondo */
  margin-bottom: 30px;
}

/* --- FIX D: Respiro Pagina Noleggio --- */
.noleggio-page-wrapper,
.noleggio-container {
  display: grid;
  gap: 50px !important;
  /* Aumentiamo lo spazio tra testo e sidebar */
  padding: 40px 15px 80px !important;
}

.noleggio-content {
  line-height: 1.8;
  /* Aumentiamo l'interlinea per rendere il testo più arioso */
}

/* --- FIX E: Bottoni Arancione Tosello --- */
:root {
  --accent: rgb(245, 113, 49);
  /* Arancione ufficiale */
  --accent-hover: rgb(220, 95, 35);
}

/* Applichiamo l'arancione ai bottoni principali */
.btn-primary,
.card-btn,
.product-card .btn,
.pillars-grid .btn {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #ffffff !important;
  font-weight: 600;
}

.btn-primary:hover,
.card-btn:hover,
.product-card .btn:hover,
.pillars-grid .btn:hover {
  background-color: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  transform: translateY(-2px);
  /* Piccolo effettino sollevamento */
}

/* Il bottone della form Contatti/Cataloghi facciamolo spiccare ancora di più */
.submit-btn,
.catalog-form .btn {
  background-color: var(--accent) !important;
  width: 100%;
  font-size: 1.1rem;
  padding: 12px;
}

/* --- FIX A: Layout Prodotti 4+3 senza buchi --- */
.products-circle-grid,
.products-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 25px !important;
}

/* Le card cercheranno di occupare il 25% (4 in fila), 
   ma se ne rimangono 3 andranno a occupare il 33% ciascuna */
.products-circle-grid>div,
.products-circle-grid>a,
.category-card {
  flex: 1 1 calc(23% - 25px) !important;
  min-width: 260px !important;
  /* Evita che diventino troppo strette su mobile */
  max-width: 100% !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- FIX B: I Cerchi Perfetti --- */
.product-circle-img,
.category-circle img {
  width: 160px !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  /* Forza un quadrato perfetto a prescindere dalla foto */
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center !important;
  margin: 0 auto 15px auto !important;
  display: block;
}

/* --- FIX C: Le Card dei Servizi (Noleggio, Vendita, ecc.) --- */
.pillar-img,
.card-img-top {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  /* Proporzione rettangolare perfetta per tutte */
  overflow: hidden !important;
}

.pillar-img img,
.card-img-top img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* --- FIX D: Il "Bisonte" della Hero Chi Siamo --- */
.about-featured-img {
  width: 100% !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  margin-bottom: 30px !important;
}

.about-featured-img img {
  width: 100% !important;
  height: auto !important;
  max-height: 400px !important;
  /* Non diventerà mai più alta di così */
  aspect-ratio: 21 / 9 !important;
  /* Taglio ultra-panoramico molto elegante */
  object-fit: cover !important;
  object-position: center center !important;
}

/* --- FIX: Ridiamo dignità alla foto storica in Chi Siamo --- */
.about-featured-img {
  max-width: 1200px !important;
  /* Evitiamo che si slabbri troppo su schermi enormi */
  margin: 0 auto 40px auto !important;
  /* Centrata col giusto respiro sotto */
}

.about-featured-img img {
  width: 100% !important;
  height: auto !important;
  max-height: 700px !important;
  /* Alziamo il tetto massimo */
  aspect-ratio: auto !important;
  /* Annulliamo il taglio panoramico forzato */
  object-fit: cover !important;
}

/* ==========================================================================
   1. FIX DEFINITIVO PAGINA PRODOTTI (/prodotti/)
   Ripristina la griglia ordinata su 3 colonne desktop (e 2 su tablet)
   ========================================================================== */
.products-page-grid,
.products-list-grid,
.product-cards-grid,
main .products-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px !important;
  margin-top: 40px !important;
  margin-bottom: 60px !important;
}

/* Card prodotto: altezza uniforme e ordinata */
.products-page-grid .product-card,
.products-list-grid .product-card,
main .products-grid .product-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

/* Copertine delle card prodotti proporzionate e non giganti */
.products-page-grid .product-card img,
.products-list-grid .product-card img,
main .products-grid .product-card img,
.product-card-img img {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
}

/* Responsive per la pagina prodotti */
@media (max-width: 1024px) {

  .products-page-grid,
  .products-list-grid,
  .product-cards-grid,
  main .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}

@media (max-width: 640px) {

  .products-page-grid,
  .products-list-grid,
  .product-cards-grid,
  main .products-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   2. ARANCIONE CHIRURGICO PER TUTTI I BOTTONI D'AZIONE
   (Hero, Scopri di più, Chi siamo, Dettagli, Home card)
   ========================================================================== */
:root {
  --accent: rgb(245, 113, 49);
  /* Arancione Tosello */
  --accent-hover: rgb(220, 95, 35);
}

/* Tutti i bottoni primari, scopri dettagli, scopri di più e bottoni hero */
.btn-primary,
.btn-orange,
.btn-details,
.hero-btn,
.hero-buttons .btn,
.product-card .btn,
.product-card a.btn,
.product-card-body .btn,
.pillars-grid .btn,
.pillar-card .btn,
.about-block .btn,
a[href*="/prodotti/"],
a[href*="/chi-siamo/"] {
  /* Filtra solo se ha classe bottone per evitare di colorare i link nel testo */
}
.product-card .btn,
.product-card a,
.pillar-card .btn,
.hero-action-btn,
.btn-cta,
.btn-scopri,
a.btn-primary,
button.btn-primary {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  transition: all 0.2s ease-in-out;
}

.product-card .btn:hover,
.product-card a:hover,
.pillar-card .btn:hover,
.hero-action-btn:hover,
.btn-cta:hover,
.btn-scopri:hover,
a.btn-primary:hover,
button.btn-primary:hover {
  background-color: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   FIX BOTTONI HOME PAGE: FORZATURA ARANCIONE TOSELLO
   ========================================================================== */
/* Copre i bottoni 'Chi siamo', 'Prodotti', 'Noleggio', 'Scopri di più' in Home */
.pillars-grid a,
.pillar-card a,
.pillar-info a,
.pillar-card .btn,
.hero-section a.btn,
.hero-banner a.btn,
.product-circle-card a,
.category-card a,
.home-section a.btn,
a.btn-primary,
button.btn-primary,
.btn-primary {
  background-color: rgb(245, 113, 49) !important;
  background: rgb(245, 113, 49) !important;
  border-color: rgb(245, 113, 49) !important;
  color: #ffffff !important;
}

/* Effetto Hover su tutti i bottoni arancioni */
.pillars-grid a:hover,
.pillar-card a:hover,
.pillar-info a:hover,
.pillar-card .btn:hover,
.hero-section a.btn:hover,
.hero-banner a.btn:hover,
.product-circle-card a:hover,
.category-card a:hover,
.home-section a.btn:hover,
a.btn-primary:hover,
button.btn-primary:hover,
.btn-primary:hover {
  background-color: rgb(220, 95, 35) !important;
  background: rgb(220, 95, 35) !important;
  border-color: rgb(220, 95, 35) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   FIX DEFINITIVO CARD PRODOTTI: IMMAGINE PROPORZIONATA E MAI SGRANATA
   ========================================================================== */

/* 1. Il riquadro contenitore dell'immagine */
.product-card .image-wrapper,
.product-card-img,
.product-card figure,
.product-card header {
  width: 100% !important;
  height: 200px !important;
  background-color: #f8fafc !important;
  /* Grigio pulito che stacca e incornicia */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 15px !important;
  overflow: hidden !important;
  border-bottom: 1px solid #e2e8f0;
}

/* ==========================================================================
   A. CENTRATURA BARRA COPYRIGHT FOOTER
   ========================================================================== */
.footer-bottom {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  padding: 30px 20px 20px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin-top: 40px !important;
}

.footer-bottom p,
.footer-bottom .signature {
  margin: 4px 0 !important;
  text-align: center !important;
  color: #94a3b8 !important;
  font-size: 0.88rem !important;
}

.footer-bottom .signature a {
  color: #cbd5e1 !important;
  font-weight: 500;
}

.footer-bottom .signature a:hover {
  color: var(--accent) !important;
}

/* ==========================================================================
   B. FOOTER: ALLINEAMENTO LOGO + (SOCIAL & PRIVACY)
   ========================================================================== */
.footer-bottom-brand-row {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  margin-top: 25px !important;
}

.footer-logo-box {
  flex-shrink: 0 !important;
}

.footer-mini-logo {
  max-width: 140px !important;
  height: auto !important;
  display: block !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  padding: 8px 10px !important;
}

.footer-side-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.footer-side-actions .footer-socials {
  display: flex !important;
  gap: 8px !important;
  margin: 0 !important;
}

.footer-side-actions .footer-legal-link a {
  color: #94a3b8 !important;
  font-size: 0.82rem !important;
  white-space: nowrap !important;
}

.footer-side-actions .footer-legal-link a:hover {
  color: var(--accent) !important;
}

/* ==========================================================================
   C. FIX CHIRURGICO IMMAGINI PAGINA PRODOTTI (/prodotti/)
   Forzatura per abbattere il 100% e dare il giusto respiro
   ========================================================================== */
main a.product-card,
.products-page-grid a,
.product-card {
  overflow: hidden !important;
  background: #ffffff !important;
  border-radius: 8px !important;
}

/* Limitiamo l'area dell'immagine e blocchiamo il crop */
main a.product-card img,
.products-page-grid a img,
.products-grid a img,
.product-card img {
  width: auto !important;
  max-width: 52% !important;
  height: 155px !important;
  max-height: 155px !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  margin: 20px auto 10px auto !important;
}

/* ==========================================================================
   FIX DEFINITIVO HERO: ZERO OMBRE E ZERO STRISCE DI FONDO
   ========================================================================== */
.product-hero-image {
  width: 100% !important;
  max-width: 780px !important;
  margin: 0 auto 30px auto !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  background: transparent !important;
  /* Cancella il grigio chiaro che sbucava sotto */
  box-shadow: none !important;
  /* Rimuove qualsiasi box-shadow ereditato */
  height: auto !important;
}

.product-hero-image::after,
.product-hero-image::before {
  display: none !important;
  /* Elimina eventuali overlay gradiente scuri */
}

.product-hero-image img {
  width: 100% !important;
  height: auto !important;
  max-height: 480px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  box-shadow: none !important;
}

.product-circle-img-wrap,
.product-circle-card .product-circle-img-wrap {
  width: 170px !important;
  height: 170px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 20px auto !important;
  border-radius: 50% !important;
  background-color: transparent !important;
  padding: 0 !important;
  border: none !important;
}

.product-circle-img-wrap img,
.product-circle-card .product-circle-img-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 50% !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
  transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}

.product-circle-card:hover .product-circle-img-wrap img {
  transform: translateY(-4px) scale(1.04) !important;
  box-shadow: 0 12px 25px rgba(245, 113, 49, 0.25) !important;
}

/* ==========================================================================
   FIX MODAL CATALOGO: RESPONSIVE & MOBILE FRIENDLY
   ========================================================================== */

/* Il backdrop scuro di sfondo */
.modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(4px) !important;
  display: none;
  /* Gestito dal tuo JS (es. .show o display: flex) */
  align-items: center !important;
  justify-content: center !important;
  z-index: 99999 !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

/* Quando il modal è attivo */
.modal-backdrop.show,
.modal-backdrop.active,
.modal-backdrop[style*="display: block"],
.modal-backdrop[style*="display: flex"] {
  display: flex !important;
}

/* Il box bianco del modal */
.modal-box {
  background: #ffffff !important;
  width: 100% !important;
  max-width: 520px !important;
  max-height: 90vh !important;
  /* Non sfora mai lo schermo */
  overflow-y: auto !important;
  /* Se il form è lungo, scrolla internamente */
  -webkit-overflow-scrolling: touch;
  /* Scroll fluido e naturale su iOS */
  border-radius: 12px !important;
  padding: 28px 24px !important;
  position: relative !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3) !important;
  box-sizing: border-box !important;
  margin: auto !important;
}

/* Pulsante di chiusura (X): grande, visibile e facile da tappare */
.modal-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 38px !important;
  height: 38px !important;
  background: #f1f5f9 !important;
  border: none !important;
  border-radius: 50% !important;
  font-size: 22px !important;
  line-height: 1 !important;
  color: #334155 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
  transition: all 0.2s ease !important;
}

.modal-close:hover,
.modal-close:active {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Adattamenti specifici per schermi piccoli (iPhone / Android) */
@media (max-width: 480px) {
  .modal-backdrop {
    padding: 10px !important;
  }

  .modal-box {
    padding: 24px 16px 20px !important;
    max-height: 92vh !important;
  }

  .modal-header h3 {
    font-size: 1.25rem !important;
    padding-right: 35px !important;
    /* Non va a sovrapporsi alla X */
  }

  .modal-header p {
    font-size: 0.88rem !important;
    margin-bottom: 15px !important;
  }

  .catalog-form .form-group {
    margin-bottom: 12px !important;
  }
}

/* ==========================================================================
   1. SCROLL REVEAL (Animazione d'ingresso fluida)
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   2. HERO DARK TECH INDUSTRIALE (Fondamenta, Sfondo e Blueprint)
   ========================================================================== */
.hero-tech-section {
  position: relative;
  background-color: #0b1329;
  /* Blu notte industriale profondo */
  color: #ffffff;
  min-height: 640px;
  overflow: hidden;
  padding: 60px 0 35px 0;
  display: flex;
  align-items: center;
}

.hero-tech-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-tech-glow {
  position: absolute;
  top: 20%;
  right: 15%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(245, 113, 49, 0.22) 0%, rgba(11, 19, 41, 0) 70%);
  filter: blur(50px);
}

.hero-tech-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.hero-tech-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* ==========================================================================
   PUNTO D: BADGE TECNICO & PULSANTI CTA AD ALTA GERARCHIA
   ========================================================================== */

/* 1. Badge di Stato Istituzionale */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(245, 113, 49, 0.4);
  color: #f8fafc;
  padding: 6px 14px;
  border-radius: 24px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  margin-bottom: 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.badge-dot {
  width: 7px;
  height: 7px;
  background-color: rgb(245, 113, 49);
  border-radius: 50%;
  box-shadow: 0 0 10px rgb(245, 113, 49);
  animation: badgePulse 2.2s infinite ease-in-out;
}

@keyframes badgePulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.35;
    transform: scale(0.8);
  }
}

/* 2. Container Pulsanti */
.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 10px;
}

/* 3. Pulsante Primario: Arancione Tosello con Effetto Scorrimento Luce */
.btn-hero-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgb(245, 113, 49) 0%, rgb(225, 95, 35) 100%);
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(245, 113, 49, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Micro-bagliore che scorre sopra al bottone */
.btn-hero-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(60deg,
      transparent,
      rgba(255, 255, 255, 0.25),
      transparent);
  transform: rotate(25deg);
  transition: left 0.6s ease;
}

.btn-hero-primary:hover::after {
  left: 120%;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 113, 49, 0.5);
}

/* Freccia SVG che slitta verso destra all'hover */
.btn-hero-primary svg {
  transition: transform 0.25s ease;
}

.btn-hero-primary:hover svg {
  transform: translateX(4px);
}

/* 4. Pulsante Secondario: Ghost Blueprint Industriale */
.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0 !important;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero-primary,
  .btn-hero-outline {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   HERO MONOLITICA: GRIGLIA A 3 MODULI PERFETTAMENTE AL REGISTRO (440px)
   ========================================================================== */
.hero-slides-wrapper {
  position: relative;
  min-height: 520px;
}

/* Griglia asimmetrica: testo compatto a sinistra, visual e card a destra */
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(420px, 470px) 1fr;
  align-items: center;
  gap: 35px;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. MASTER CARD SINISTRA (Bloccata a 440px esatti) */
.hero-content {
  width: 100%;
  max-width: 470px;
  height: 440px;
  /* Quota standard */
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 18px;
  padding: 32px 34px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Distribuzione omogenea interna: badge top, azioni bottom */
  box-sizing: border-box;
}

.hero-content .hero-badge {
  align-self: flex-start;
  margin-bottom: 0;
}

.hero-content .hero-title {
  font-size: 2.25rem;
  line-height: 1.18;
  margin: 10px 0;
}

.hero-content .hero-lead {
  font-size: 0.98rem;
  line-height: 1.55;
  color: #94a3b8;
  max-width: 100%;
  margin-bottom: 0;
}

.hero-content .hero-actions {
  margin-top: 8px;
}

/* 2. TRANSIZIONI CINEMATICHE INGRESSO / USCITA */
.hero-slide .hero-content {
  transform: translateX(-35px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.hero-slide .hero-main-img {
  transform: scale(0.94);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.hero-slide .floating-card {
  transform: scale(0.8) translateX(20px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.hero-slide.active {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 10 !important;
  pointer-events: auto !important;
}

.hero-slide.active .hero-content {
  transform: translateX(0);
  opacity: 1;
  transition-delay: 0.15s;
}

.hero-slide.active .hero-main-img {
  transform: scale(1);
  opacity: 1;
  transition-delay: 0.2s;
}

.hero-slide.active .floating-card {
  opacity: 1;
  transform: scale(1) translateX(0);
}

.hero-slide.active .floating-card.float-tl {
  transition-delay: 0.25s;
}

.hero-slide.active .floating-card.float-tr {
  transition-delay: 0.35s;
}

.hero-slide.active .floating-card.float-bl {
  transition-delay: 0.45s;
}

.hero-slide.active .floating-card.float-br {
  transition-delay: 0.55s;
}

/* 3. MODULO CENTRALE: IMMAGINE CINEMASCOPE (Bloccata a 440px esatti) */
.hero-visual {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  width: 100%;
  padding-right: 215px;
  /* Riserva lo spazio preciso a destra per le 4 card */
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 440px;
  /* Identica altezza della card sinistra */
  perspective: 1000px;
}

.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  /* Stesso raccordo della master card */
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.75);
  display: block;
}

/* 4. MODULO DESTRO: LE 4 CARD (Spalmate a filo sui 440px) */
.floating-card {
  position: absolute;
  left: calc(100% + 18px) !important;
  right: auto !important;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  z-index: 6;
  white-space: nowrap;
  pointer-events: auto;
  cursor: default;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  will-change: transform;
}

.floating-card:hover {
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(245, 113, 49, 0.8);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.55),
    0 0 20px rgba(245, 113, 49, 0.3);
}

.card-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  background: rgba(245, 113, 49, 0.18);
  color: rgb(245, 113, 49);
  border: 1px solid rgba(245, 113, 49, 0.35);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.card-text {
  display: flex;
  flex-direction: column;
}

.card-text strong {
  font-size: 0.82rem;
  color: #f8fafc;
  font-weight: 600;
  line-height: 1.25;
}

.card-text span {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.2;
}

/* Quote verticali delle 4 card: la prima a filo 0px, l'ultima a filo fondo 0px */
.floating-card.float-tl {
  top: 0px;
  animation: heroFloatCol 5.5s ease-in-out infinite;
}

.floating-card.float-tr {
  top: 125px;
  margin-left: 8px;
  animation: heroFloatCol 6s ease-in-out infinite 1.4s;
}

.floating-card.float-bl {
  top: 250px;
  animation: heroFloatCol 5.8s ease-in-out infinite 2.8s;
}

.floating-card.float-br {
  bottom: 0px;
  /* Ancorata al fondo della quota 440px */
  margin-left: 6px;
  animation: heroFloatCol 6.2s ease-in-out infinite 4.2s;
}

@keyframes heroFloatCol {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* 5. RESPONSIVE PER TABLET E MOBILE */
@media (max-width: 1024px) {
  .hero-slide {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .hero-content {
    max-width: 100%;
    height: auto;
    padding: 28px 24px;
  }

  .hero-content .hero-badge {
    align-self: center;
    margin-bottom: 12px;
  }

  .hero-content .hero-title {
    margin-bottom: 14px;
  }

  .hero-content .hero-lead {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
  }

  .hero-visual {
    justify-content: center;
    padding-right: 0;
  }

  .hero-image-wrapper {
    max-width: 100%;
    height: 320px;
  }

  .floating-card {
    display: none !important;
  }
}

/* ==========================================================================
   4. BARRE DI PROGRESSO ORIZZONTALI HERO (Tesla/Apple Style)
   ========================================================================== */
.hero-slider-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 45px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-bar-item {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-bar-progress {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background-color: rgb(245, 113, 49);
}

.nav-bar-item.active .bar-fill {
  width: 100%;
  transition: width 5.5s linear;
}

.nav-bar-label {
  font-size: 0.85rem;
  color: #64748b;
  transition: color 0.3s ease;
}

.nav-bar-label strong {
  color: #94a3b8;
  margin-right: 4px;
}

.nav-bar-item.active .nav-bar-label {
  color: #f1f5f9;
}

.nav-bar-item.active .nav-bar-label strong {
  color: rgb(245, 113, 49);
}

/* ==========================================================================
   5. SEZIONE STATISTICHE E CONTATORI NUMERICI
   ========================================================================== */
.home-stats-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  margin-top: 50px !important;
  padding: 70px 0 !important;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  z-index: 5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-card {
  padding: 15px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: rgb(245, 113, 49);
  line-height: 1.1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.95rem;
  color: #cbd5e1;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   6. MARQUEE PARTNER A SCORRIMENTO INFINITO
   ========================================================================== */
.home-partners-ticker-section {
  background-color: #f8fafc;
  padding: 55px 0 45px;
  overflow: hidden;
  border-top: 1px solid #e2e8f0;
}

.ticker-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(245, 113, 49, 0.12);
  color: rgb(245, 113, 49);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.ticker-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 35px;
}

.ticker-wrapper {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: scrollMarquee 32s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-items {
  display: flex;
  align-items: center;
  gap: 45px;
  padding-right: 45px;
}

.ticker-items img {
  height: 48px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.ticker-items img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   7. MEDIA QUERIES RESPONSIVE (Unificate e ordinate)
   ========================================================================== */
@media (max-width: 960px) {
  .hero-slide {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-slides-wrapper {
    min-height: 640px;
  }

  .floating-card.float-tl,
  .floating-card.float-bl {
    left: 10px;
  }

  .floating-card.float-tr,
  .floating-card.float-br {
    right: 10px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }

  .floating-card {
    display: none !important;
    /* Non intasa lo schermo sui telefoni */
  }

  .hero-slider-nav {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}

/* Header: Logo più presente e autoritario */
.header-logo img,
.site-logo img {
  max-height: 95px !important;
  /* Alziamo l'altezza, di solito era a 40/50px */
  width: auto;
  transition: transform 0.3s ease;
}

.header-logo:hover img {
  transform: scale(1.02);
  /* Leggero feedback al passaggio */
}

/* ==========================================================================
   NUOVO LAYOUT PRODOTTI: STILE ARCHITETTONICO MINIMAL
   ========================================================================== */
.modern-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.modern-product-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.modern-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: #e2e8f0;
}

.mpc-image-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: #f8fafc;
}

.mpc-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mpc-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.mpc-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.3;
}

.mpc-title a {
  color: inherit;
  text-decoration: none;
}

.mpc-desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.mpc-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgb(245, 113, 49);
  /* Arancione Tosello */
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.mpc-link span {
  margin-left: 6px;
  transition: transform 0.2s ease;
}

.modern-product-card:hover .mpc-link {
  color: rgb(220, 95, 35);
}

.modern-product-card:hover .mpc-link span {
  transform: translateX(4px);
}

/* Box Cataloghi Footer */
.footer-catalog-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 12px;
  text-align: left;
}

.fcb-icon {
  color: rgb(245, 113, 49);
  margin-bottom: 12px;
}

.footer-catalog-box h4 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.footer-catalog-box p {
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.btn-footer-catalog {
  display: inline-block;
  width: 100%;
  text-align: center;
  background-color: rgb(245, 113, 49);
  color: #ffffff;
  border: none;
  padding: 12px 15px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-footer-catalog:hover {
  background-color: rgb(220, 95, 35);
  transform: translateY(-2px);
}

/* ==========================================================================
   HEADER CON LOGO CENTRALE DOMINANTE
   ========================================================================== */
/* Sblocchiamo le altezze del contenitore header */
.site-header,
header,
.header-wrapper {
  height: auto !important;
  max-height: none !important;
  padding-top: 15px !important;
  padding-bottom: 15px !important;
  background: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

/* Centriamo il container dell'header */
.site-header .container,
header .container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 15px !important;
}

/* Il logo: ora può espandersi senza tagli */
.header-logo,
.site-logo,
.navbar-brand {
  margin: 0 auto !important;
  display: flex !important;
  justify-content: center !important;
}

.header-logo img,
.site-logo img,
.navbar-brand img {
  height: 95px !important;
  max-height: 95px !important;
  width: auto !important;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.05));
  transition: transform 0.3s ease !important;
}

.header-logo img:hover,
.site-logo img:hover {
  transform: scale(1.03) !important;
}

/* Navigazione orizzontale centrata sotto il logo */
.main-nav,
.navbar-nav,
.site-navigation {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 25px !important;
  width: 100% !important;
}

/* Forzatura a 4 colonne desktop */
@media (min-width: 1100px) {
  .modern-products-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

.card-tag-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgb(245, 113, 49);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   PAGINA PRIVACY POLICY (LAYOUT ISTITUZIONALE)
   ========================================================================== */
.privacy-page-wrapper {
  background-color: #f8fafc;
  padding-bottom: 80px;
}

.privacy-header {
  background: linear-gradient(135deg, #0b1329 0%, #1e293b 100%);
  color: #ffffff;
  padding: 100px 20px 70px;
  /* Abbondante aria sopra per non finire sotto la navbar */
  text-align: center;
  border-bottom: 3px solid rgb(245, 113, 49);
  position: relative;
  z-index: 2;
}

.privacy-title {
  font-size: 2.3rem;
  font-weight: 800;
  margin: 15px 0 8px;
  color: #ffffff !important;
}

.privacy-subtitle {
  color: #94a3b8 !important;
  font-size: 1.05rem;
  margin: 0;
}

/* Container principale: VIA IL MARGINE NEGATIVO, solo margine pulito verso il basso */
.privacy-container {
  max-width: 960px;
  margin: 40px auto 0;
  /* Scende ordinato a 40px sotto la riga arancione */
  padding: 0 20px;
  position: relative;
  z-index: 5;
}

/* Griglia per il download dei documenti Clienti / Fornitori */
.privacy-downloads-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.download-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 22px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 15px;
}

.download-icon {
  width: 40px;
  height: 40px;
  background: rgba(245, 113, 49, 0.12);
  color: rgb(245, 113, 49);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-info h4 {
  font-size: 1.1rem;
  color: #0f172a;
  margin-bottom: 6px;
  font-weight: 700;
}

.download-info p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

.btn-download-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0f172a;
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-download-pdf:hover {
  background: rgb(245, 113, 49);
  transform: translateY(-2px);
}

/* Documento Privacy a vista */
.privacy-document-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 45px 50px;
}

.privacy-section-intro {
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 25px;
  margin-bottom: 30px;
}

.privacy-section-intro h2 {
  font-size: 1.6rem;
  color: #0f172a;
  font-weight: 800;
  margin-bottom: 12px;
}

.privacy-block {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 25px;
  margin-bottom: 25px;
}

.privacy-block h3 {
  font-size: 1.15rem;
  color: #0f172a;
  font-weight: 700;
  margin-bottom: 10px;
}

.privacy-block p,
.privacy-block ul {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 10px;
}

.privacy-block ul {
  padding-left: 20px;
}

.privacy-block li {
  margin-bottom: 8px;
}

.privacy-block a {
  color: rgb(245, 113, 49);
  font-weight: 600;
  text-decoration: none;
}

.privacy-block a:hover {
  text-decoration: underline;
}

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

  .privacy-document-card {
    padding: 30px 20px;
  }

  .privacy-title {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   KOMATSU FIX: SBLOCCO LOGO E HEADER (Specificità Assoluta)
   ========================================================================== */

     /* ==========================================================================
     TOP BAR RAFFINATA (Più respiro ed equilibrio visivo)
     ========================================================================== */
     .top-bar {
       background: #f8fafc !important;
       border-bottom: 1px solid #e2e8f0 !important;
       padding: 8px 0 !important;
       font-size: 0.88rem !important;
       color: #475569 !important;
     }
  
     .top-bar .top-bar-inner {
       display: flex !important;
       justify-content: space-between !important;
       align-items: center !important;
       padding: 0 20px !important;
     }
  
     .top-bar-left {
       display: flex !important;
       align-items: center !important;
       gap: 22px !important;
       /* Respiro tra telefono e mail */
     }
  
     .top-bar-link {
       color: #334155 !important;
       text-decoration: none !important;
       display: inline-flex !important;
       align-items: center !important;
       gap: 7px !important;
       font-weight: 500 !important;
       transition: color 0.2s ease !important;
     }
  
     .top-bar-link:hover {
       color: rgb(245, 113, 49) !important;
     }
  
     .top-bar-divider {
       color: #cbd5e1 !important;
     }
  
     .top-bar-right .top-bar-hours {
       display: inline-flex !important;
       align-items: center !important;
       gap: 7px !important;
       color: #475569 !important;
       font-weight: 500 !important;
     }
  
     /* ==========================================================================
     HEADER DESKTOP: LOGO TRIONFANTE & MENU CENTRATO
     ========================================================================== */
     body header.site-header {
       background: #ffffff !important;
       border-bottom: 1px solid #e2e8f0 !important;
       padding: 16px 0 !important;
       position: relative !important;
       z-index: 100 !important;
     }
  
     body header.site-header .container.header-inner {
       display: flex !important;
       align-items: center !important;
       justify-content: space-between !important;
       flex-direction: row !important;
       gap: 20px !important;
     }
  
     /* 1. Il Logo: Grande, Istituzionale e Proporzionato */
     body header.site-header .header-inner a.logo {
       display: flex !important;
       align-items: center !important;
       flex-shrink: 0 !important;
     }
  
     body header.site-header .header-inner a.logo img {
       height: 95px !important;
       /* Altezza imponente per il desktop */
       max-height: 100px !important;
       width: auto !important;
       max-width: 320px !important;
       object-fit: contain !important;
       display: block !important;
       transition: transform 0.25s ease !important;
     }
  
     body header.site-header .header-inner a.logo img:hover {
       transform: scale(1.02) !important;
     }
  
     /* 2. Wrapper di Navigazione: occupa lo spazio per centrare il menu */
     .header-nav-collapse {
       display: flex !important;
       align-items: center !important;
       justify-content: space-between !important;
       flex-grow: 1 !important;
       margin-left: 30px !important;
     }
  
     /* 3. Menu Navigazione: Baricentro al centro tra logo e social */
     body header.site-header .main-nav {
       display: flex !important;
       align-items: center !important;
       justify-content: center !important;
       gap: 12px !important;
       margin: 0 auto !important;
       /* Centra perfettamente le pillole nello spazio */
     }
  
     /* Pillole di navigazione standard */
     body header.site-header .main-nav a {
       display: inline-flex !important;
       align-items: center !important;
       justify-content: center !important;
       padding: 9px 18px !important;
       background: #f1f5f9 !important;
       color: #1e293b !important;
       border: 1px solid #e2e8f0 !important;
       border-radius: 24px !important;
       font-size: 0.94rem !important;
       font-weight: 600 !important;
       text-decoration: none !important;
       transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
       white-space: nowrap !important;
     }
  
     /* 4. STATO ATTIVO ARANCIONE TOSELLO PERFETTAMENTE ACCESO */
     body header.site-header .main-nav a.active,
     body header.site-header .main-nav a:hover {
       background: rgb(245, 113, 49) !important;
       color: #ffffff !important;
       border-color: rgb(245, 113, 49) !important;
       box-shadow: 0 4px 14px rgba(245, 113, 49, 0.35) !important;
       transform: translateY(-2px) !important;
     }
  
     /* Bottone Richiedi Catalogo */
     .btn-catalog-pill {
       display: inline-flex !important;
       align-items: center !important;
       justify-content: center !important;
       padding: 9px 18px !important;
       background: rgba(245, 113, 49, 0.08) !important;
       border: 1.5px solid rgb(245, 113, 49) !important;
       color: rgb(245, 113, 49) !important;
       border-radius: 24px !important;
       font-size: 0.94rem !important;
       font-weight: 700 !important;
       cursor: pointer !important;
       transition: all 0.25s ease !important;
       white-space: nowrap !important;
     }
  
     .btn-catalog-pill:hover {
       background: rgb(245, 113, 49) !important;
       color: #ffffff !important;
       transform: translateY(-2px) !important;
       box-shadow: 0 4px 14px rgba(245, 113, 49, 0.35) !important;
     }
  
     /* 5. Icone Social a Destra */
     body header.site-header .header-socials {
       display: flex !important;
       align-items: center !important;
       gap: 10px !important;
       flex-shrink: 0 !important;
     }
  
     body header.site-header .header-socials .social-icon {
       width: 38px !important;
       height: 38px !important;
       border-radius: 50% !important;
       background: #f1f5f9 !important;
       color: #475569 !important;
       border: 1px solid #e2e8f0 !important;
       display: inline-flex !important;
       align-items: center !important;
       justify-content: center !important;
       transition: all 0.2s ease !important;
     }
  
     body header.site-header .header-socials .social-icon:hover {
       transform: translateY(-2px) !important;
       background: #0f172a !important;
       color: #ffffff !important;
     }

/* ==========================================================================
   HERO COLLAGE GIORGIA - DEFINITIVO (Monolitico, Validato & Senza Errori)
   ========================================================================== */
.hero-collage-section {
  position: relative !important;
  width: 100% !important;
  height: calc(100vh - 120px) !important;
  min-height: 680px !important;
  max-height: 820px !important;
  background-color: #0b1329 !important;
  overflow: hidden !important;
  display: block !important;
}

.hero-collage-viewport {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
}

.collage-slide {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.65s ease-in-out, visibility 0.65s ease-in-out !important;
  z-index: 1 !important;
  display: block !important;
}

.collage-slide.active {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2 !important;
}

/* Sfondo fotografico */
.collage-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center 25% !important;
  filter: brightness(1.05) contrast(1.03) !important;
  transform: none !important;
  z-index: 1 !important;
}

/* Sfumatura di fondo */
.collage-scrim {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(to bottom,
      rgba(11, 19, 41, 0.12) 0%,
      rgba(11, 19, 41, 0.05) 40%,
      rgba(11, 19, 41, 0.25) 75%,
      rgba(11, 19, 41, 0.75) 100%) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

.collage-container {
  position: relative !important;
  z-index: 5 !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 25px !important;
  padding-top: 15px !important;
  padding-bottom: 80px !important;
}

/* Box Testi Sinistra */
.collage-card-main {
  width: 100% !important;
  max-width: 500px !important;
  background: rgba(11, 19, 41, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-radius: 14px !important;
  padding: 26px 30px !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5) !important;
}

.collage-title {
  font-size: clamp(1.8rem, 2.6vw, 2.3rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.15 !important;
  margin: 10px 0 14px !important;
  letter-spacing: -0.5px !important;
}

.collage-lead {
  font-size: 0.92rem !important;
  line-height: 1.5 !important;
  color: #cbd5e1 !important;
  margin-bottom: 20px !important;
}

/* Colonna Destra: 4 Specifiche */
.collage-card-specs {
  width: 100% !important;
  max-width: 350px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.spec-tile {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  background: rgba(11, 19, 41, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  padding: 10px 15px !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
  transition: transform 0.2s ease, border-color 0.2s ease !important;
}

.spec-tile:hover {
  transform: translateX(-4px) !important;
  border-color: rgba(245, 113, 49, 0.8) !important;
}

.spec-icon {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  background: rgba(245, 113, 49, 0.2) !important;
  color: rgb(245, 113, 49) !important;
  border: 1px solid rgba(245, 113, 49, 0.4) !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  font-size: 1.2rem !important;
  line-height: 1 !important;
}

.spec-text {
  display: flex !important;
  flex-direction: column !important;
}

.spec-text strong {
  font-size: 0.86rem !important;
  color: #f8fafc !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}

.spec-text span {
  font-size: 0.74rem !important;
  color: #94a3b8 !important;
  line-height: 1.3 !important;
}

/* Timeline Controlli Inferiore */
.hero-collage-controls {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 50 !important;
  padding-bottom: 16px !important;
  pointer-events: auto !important;
}

.collage-timeline {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 25px !important;
}

.collage-step {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer !important;
  text-align: left !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.collage-step .step-progress {
  width: 100% !important;
  height: 3px !important;
  background: rgba(255, 255, 255, 0.25) !important;
  border-radius: 2px !important;
  overflow: hidden !important;
  position: relative !important;
}

.collage-step .step-progress-fill {
  display: block !important;
  height: 100% !important;
  width: 0%;
  background: rgb(245, 113, 49) !important;
  transform-origin: left center !important;
}

.collage-step.active .step-progress-fill {
  animation: fillProgress 6.5s linear forwards !important;
}

@keyframes fillProgress {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}

.collage-step .step-label {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.collage-step .step-num {
  font-family: monospace !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.5) !important;
  transition: color 0.3s ease !important;
}

.collage-step .step-name {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.65) !important;
  transition: color 0.3s ease !important;
}

.collage-step.active .step-num,
.collage-step.active .step-name,
.collage-step:hover .step-name {
  color: #ffffff !important;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-collage-section {
    height: auto !important;
    min-height: 560px !important;
    padding: 40px 0 25px !important;
  }

  .collage-container {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding-bottom: 20px !important;
  }

  .collage-card-main {
    max-width: 100% !important;
    text-align: center !important;
  }

  .collage-card-main .hero-actions {
    justify-content: center !important;
  }

  .collage-card-specs {
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 640px) {
  .collage-card-specs {
    grid-template-columns: 1fr !important;
  }

  .hero-collage-controls {
    position: static !important;
    margin-top: 15px !important;
  }

  .collage-step .step-name {
    display: none !important;
  }
}

/* ==========================================================================
   HAMBURGER & RESPONSIVE DEFINITIVO (iPad, Tablet & Mobile <= 1024px)
   ========================================================================== */

/* 1. Su schermi Desktop grandi (> 1024px) l'hamburger rimane nascosto */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  flex-direction: column;
  gap: 5px;
}

.mobile-nav-toggle .bar {
  display: block;
  width: 26px;
  height: 3px;
  background-color: #1e293b;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.header-nav-collapse {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ==========================================================================
   BREAKPOINT IPAD & TABLET (<= 1024px: Scatta l'Hamburger!)
   ========================================================================== */
@media (max-width: 1024px) {

  /* Header compatto: Logo a sinistra, Hamburger a destra */
  body header.site-header {
    padding: 12px 0 !important;
    position: relative !important;
    z-index: 1000 !important;
  }

  body header.site-header .container.header-inner {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  body header.site-header .header-inner a.logo img {
    height: 52px !important;
    max-height: 55px !important;
    width: auto !important;
    max-width: 190px !important;
  }

  /* Mostra il pulsante Hamburger anche su iPad */
  .mobile-nav-toggle {
    display: flex !important;
  }

  /* Menu collassabile: tendina fluida a comparsa */
  .header-nav-collapse {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.15) !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 24px 20px !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 14px !important;
    z-index: 9999 !important;
  }

  .header-nav-collapse.is-open {
    display: flex !important;
    animation: menuSlideDown 0.25s ease-out forwards;
  }

  .header-nav-collapse .main-nav {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .header-nav-collapse .main-nav a,
  .header-nav-collapse .main-nav button {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 11px 16px !important;
    font-size: 0.95rem !important;
  }

  .header-nav-collapse .header-socials {
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-top: 8px !important;
  }

  /* Animazione a croce (X) quando il menu è aperto */
  .mobile-nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* 2. HERO FIX SU TABLET: Ancorata in alto, stop al titolo decapitato */
  .hero-collage-section {
    height: auto !important;
    min-height: 640px !important;
    max-height: none !important;
    padding: 20px 0 30px !important;
  }

  .collage-slide {
    position: absolute !important;
    inset: 0 !important;
    height: 100% !important;
  }

  .collage-container {
    flex-direction: column !important;
    justify-content: flex-start !important;
    /* Ancorato in alto: il titolo non scappa più! */
    align-items: center !important;
    padding-top: 25px !important;
    padding-bottom: 75px !important;
  }

  .collage-card-main {
    max-width: 580px !important;
    padding: 24px 28px !important;
    text-align: center !important;
  }

  .collage-card-main .hero-badge {
    margin: 0 auto 10px auto !important;
  }

  .collage-title {
    font-size: 1.85rem !important;
    line-height: 1.2 !important;
  }

  .collage-card-main .hero-actions {
    justify-content: center !important;
  }

  /* Su iPad le card specifiche formano una griglia pulita 2x2 */
  .collage-card-specs {
    max-width: 580px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
}

/* ==========================================================================
   SMARTPHONE (<= 640px)
   ========================================================================== */
@media (max-width: 640px) {
  .hero-collage-section {
    min-height: 540px !important;
    padding: 15px 0 20px !important;
  }

  .collage-container {
    padding-top: 15px !important;
    padding-bottom: 60px !important;
    gap: 15px !important;
  }

  .collage-card-main {
    max-width: 100% !important;
    padding: 20px 16px !important;
    border-radius: 12px !important;
  }

  .collage-title {
    font-size: 1.45rem !important;
    line-height: 1.22 !important;
    margin: 8px 0 12px !important;
  }

  .collage-lead {
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
    margin-bottom: 16px !important;
  }

  .hero-actions {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .btn-hero-primary,
  .btn-hero-outline {
    width: 100% !important;
    padding: 10px 14px !important;
    font-size: 0.88rem !important;
  }

  /* SU SMARTPHONE: spegniamo le 4 card laterali per non soffocare lo schermo! */
  .collage-card-specs {
    display: none !important;
  }

  /* Timeline compatta */
  .hero-collage-controls {
    padding-bottom: 12px !important;
  }

  .collage-timeline {
    gap: 10px !important;
  }

  .collage-step .step-name {
    display: none !important;
  }
}

@keyframes menuSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   FIX TOP BAR: ZERO TESTI SPEZZATI SU SMARTPHONE
   ========================================================================== */
.top-bar-link,
.top-bar-hours {
  white-space: nowrap !important;
  /* Impedisce al numero e all'email di andare a capo a pezzi */
}

@media (max-width: 768px) {
  .top-bar {
    padding: 6px 12px !important;
    font-size: 0.78rem !important;
  }

  .top-bar .top-bar-inner {
    flex-direction: column !important;
    /* Dispone ordinatamente su 2 righe centrate */
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 0 !important;
  }

  .top-bar-left {
    justify-content: center !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .top-bar-right {
    width: 100% !important;
    text-align: center !important;
  }

  .top-bar-right .top-bar-hours {
    font-size: 0.74rem !important;
    color: #64748b !important;
  }
}

/* ==========================================================================
   FIX IPAD & TABLET (<= 1024px): BOTTONI SULLA STESSA RIGA & RESPIRO CARD
   ========================================================================== */
@media (max-width: 1024px) {

  /* I due bottoni DEVONO stare affiancati senza andare a capo */
  .collage-card-main .hero-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .btn-hero-primary,
  .btn-hero-outline {
    flex: 1 1 auto !important;
    padding: 10px 16px !important;
    font-size: 0.88rem !important;
    white-space: nowrap !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Compattiamo leggermente il testo introduttivo per salvare altri 20px */
  .collage-lead {
    font-size: 0.90rem !important;
    line-height: 1.45 !important;
    margin-bottom: 18px !important;
  }

  /* Spazio di sicurezza tra le card tecniche e la timeline inferiore */
  .collage-container {
    padding-top: 15px !important;
    padding-bottom: 85px !important;
    /* Dà respiro vitale alla timeline */
    gap: 16px !important;
  }

  .collage-card-specs {
    max-width: 560px !important;
    gap: 8px !important;
  }

  .spec-tile {
    padding: 8px 14px !important;
  }
}

/* ==========================================================================
   SMARTPHONE STRETTO (<= 640px)
   ========================================================================== */
@media (max-width: 640px) {

  /* Solo su schermi minuscoli i bottoni vanno uno sotto l'altro */
  .collage-card-main .hero-actions {
    flex-direction: column !important;
  }

  .btn-hero-primary,
  .btn-hero-outline {
    width: 100% !important;
  }

  /* Nascondiamo la seconda riga orari su display inferiori a 480px per massima pulizia */
  .top-bar-right {
    display: none !important;
  }
}