:root {
  --color-primary: #e60000;    /* Rosso vivace */
  --color-dark: #0f0f0f;       /* Nero quasi assoluto */
  --color-light: #f4f4f4;      /* Grigio molto chiaro / Off-white */
  --color-white: #ffffff;      /* Bianco puro */
}

  * {
    box-sizing: border-box;
  }

  html,
  body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--soft-white);
  }

  :focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
  }

  .header-desktop-main-menu.width-100,
  footer.containment {
    display: none;
  }

  .container {
    padding: 0px;
    margin: 0px;
  }

  body.not-homepage #mj-maincontent {
    width: 100% !important;
  }

  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background: var(--pure-white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .top-bar {
    background: var(--deep-black);
    color: var(--color-white);
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    height: 35px;
  }

  /* UNIFICATO E CORRETTO: min-height invece di height fisso */
  .pagina-uno {
    margin-top: 130px;
    min-height: calc(100vh - 130px);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .hero-section {
    flex: 0;
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 15px;
    min-height: 0;
    align-items: stretch;
    /* aggiunto, esplicito */
  }

  .bottom-section {
    flex: 1;
    display: grid;
    grid-template-columns: 438px 1fr 3fr;
    gap: 15px;
    min-height: 0;
}

  .chi-siamo {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }

  p.chi-siamo-p {
    text-align: center;
  }

  span.last-buy-span,
  span.certification-span {
    font-weight: bold;
    font-size: 18px !important;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    /* Impedisce la selezione del testo */
  }

  span.last-buy-span:hover {
    text-decoration: none !important;
    color: var(--color-primary);

  }

  .side-box a:hover {
    text-decoration: none;
    outline: none;
    border-bottom: none;

  }

  .pagina-due {
    min-height: 100vh;
    /* Cambiato da height a min-height per il responsive */
    display: flex;
    flex-direction: column;
  }

  .sezione-approfondimento {
    flex: 0 0 150px;
    background-color: var(--deep-black);
    color:var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: 800;
    border-top: 5px solid var(--color-primary);
    margin-bottom: 50px;
  }

  .prodotti-row {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    padding: 20px;
    background: var(--color-white);
    align-items: center;
  }

  .info-section {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
    background: var(--soft-white);
    align-items: center;
  }

footer {
    flex: 0 0 auto;
    background: var(--deep-black);
    color: var(--color-white);
    padding: 40px 20px;
    border-top: 2px solid #333;
    position: relative;
    top: 40px;
}

  .footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
  }

  .footer-column h5 {
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 14px;
    letter-spacing: 1px;
  }

  .social-links-new {
    display: flex;
    gap: 15px;
    flex-direction: column;
  }

  a.social-link-record {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .social-icon {
    width: 30px;
    height: 30px;
    fill: var(--color-white);
    transition: var(--transition);
    cursor: pointer;
  }

  .social-icon:hover {
    fill: var(--color-primary);
    transform: translateY(-3px);
  }

  .footer-column p,
  .footer-column li {
    font-size: 13px;
    line-height: 1.6;
    color: #bbb;
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
  }

  .footer-column ul {
    padding: 0;
  }

  .footer-column a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
  }

  .footer-column a:hover {
    color: var(--color-white);
  }

  .copyright-bar {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #222;
    text-align: center;
    font-size: 11px;
    color: #666;
  }

  /* STILI BOX */
  .sidebar-left,
  .side-box,
  .nav-box-large,
  .promo-box {
    position: relative;
    background: var(--deep-black);
    color: var(--color-white);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
  }

  .sidebar-left {
    overflow-y: auto;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    padding: 15px;
  }

  .nav-box-large a:focus {
    outline: none;
  }

  .social-links-new a:focus {
    outline: none;
  }

  /* MODIFICATO: Gestione proporzioni Banner (1800x700) */
  .main-banner {
    position: relative;
    color:var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    height: 100%;
    /* si adatta all'altezza della riga (sidebar + aside) */
    display: block;
  }

  .main-banner img,
  .main-banner a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* <-- la chiave: mai tagliata, anche a costo di bande vuote */
    display: block;
  }

  .main-banner:hover {
    border: none;
  }

  button {
    text-transform: uppercase;
  }

  .btn-flyer:hover {
    text-decoration: none;
    color: var(--color-white);
    background: black;
  }

  .side-box::before,
  .nav-box-large::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--mesh-gradient);
    opacity: 0.6;
    z-index: 1;
  }

  .side-box {
    flex: 1;
    background: #1a1a1a;
    margin-bottom: 5px;
    width: 100%;
  }

  .promo-box {
    background: var(--pure-white);
    color: var(--deep-black);
    gap: 20px;
  }

  .btn-flyer {
    padding: 8px 15px;
    background: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 12px;
  }

  .sidebar-gamma-title {
    color: var(--color-white);
    font-size: 19px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    display: block;
    font-weight: 500;
  }

  .sidebar-gamma-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
  }

  .sidebar-gamma-list li {
    margin-bottom: 3px;
  }

  .sidebar-gamma-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 7px 10px;
    border-radius: 6px;
    color: var(--color-white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.2s;
    height: 50px;
  }

  .sidebar-gamma-list a:hover {
    background: rgba(230, 0, 0, 0.4);
    color: var(--color-white);
    text-decoration: none;
  }

  .sidebar-gamma-list img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
  }

  .product-box {
    background: var(--soft-white);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 300px;
  }

  .img-placeholder {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    margin-bottom: 10px;
  }

  .info-box {
    background: var(--color-white);
    padding: 15px;
    border-radius: 8px;
    border-top: 3px solid var(--color-primary);
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
  }

  .info-box h4 {
    margin-top: 0;
    color: var(--color-primary);
  }

  .input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    margin-left: 10px;
  }

  .product-box img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
  }

  .main-nav {
    position: relative;
    overflow: visible !important;
  }

  .main-nav>div {
    position: relative;
    overflow: visible !important;
  }

  .testhome-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 14px;
    background: none;
    border: none;
    color: #111;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
  }

  .testhome-login-link:hover {
    color: var(--color-primary);
    text-decoration: none;
  }

  .testhome-contact-link,
  .testhome-certificazioni-link {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 2;
    padding: 20px;
  }

  .testhome-contact-link:hover,
  .testhome-certificazioni-link:hover {
    color: var(--color-primary);
    text-decoration: none;
  }

  .testhome-catalogo-link {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 2;
    font-size: 18px;
    padding: 20px;
    text-transform: uppercase;
    font-weight: bold;
  }

  .testhome-catalogo-link:hover {
    color: #fff;
    text-decoration: none;
  }

  .info-box-account {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .testhome-account-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
  }

  .testhome-account-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 14px;
    background: #f8f8f8;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    text-decoration: none;
    color: #111;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    width: 100%;
    /* Adattabile */
  }

  .testhome-account-link:hover {
    text-decoration: none;
    color: var(--color-primary);
    border-color: #d7d7d7;
    background: #fff;
  }

  .testhome-info-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    transition: var(--transition);
  }

  .testhome-info-link:hover {
    background: #111;
    color: #fff;
    text-decoration: none;
  }

  .testhome-links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    width: 100%;
  }

  .testhome-links-item {
    display: block;
    padding: 10px 12px;
    background: #f8f8f8;
    border: 1px solid #e4e4e4;
    border-radius: 6px;
    color: #111;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
  }

  .testhome-links-item:hover {
    color: var(--color-primary);
    background: #fff;
    text-decoration: none;
  }

  .testhome-account-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    transition: var(--transition);
  }

  .testhome-account-login-link:hover {
    background: #111;
    color: #fff;
    text-decoration: none;
  }

  .testhome-user-info {
    display: inline-flex;
    align-items: center;
    background: none;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 16px;
    margin-right: 5px;
    text-decoration: none;
    white-space: nowrap;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    width: auto;
    height: 30px;
    cursor: auto;
  }

  /* .testhome-user-info:hover {
    color: #fff;
    text-decoration: none;
    border-color: var(--primary-red);
  } */

  .testhome-user-info i {
    font-size: 14px;
  }

  .testhome-logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border: none;
    color: #fff;
    padding: 0px !important;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    margin: 0px !important;
    white-space: nowrap;
    width: 70px;
    height: 30px;
  }

  .testhome-logout-link:hover {
    border: 1px solid var(--color-primary);
    background-color: var(--color-dark);
    text-decoration: none;
    color: var(--color-primary);
  }

  .main-nav span {
    font-size: 18px;
  }

  .main-nav span:hover {
    color: var(--color-primary);
  }

  .main-nav .header-cart i {
    color: var(--deep-black);
    font-size: 34px;
  }

  nav.main-nav {
    padding: 0px 40px;
  }

  span.label.show_total_items {
    padding: 5px;
    display: inline-flex;
    width: 35px;
    height: 35px;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    position: absolute;
    top: -7px;
    left: 3px;
    font-size: 14px;
  }

  .user-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .login-and-cart {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* STILE BROCHURE */
  .brochure-container-box {
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding: 15px;
  }

  .brochure-main-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
  }

  .brochure-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
  }

  .brochure-sub-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 10px;
    transition: all 0.2s ease;
    min-height: 50px;
  }

  .brochure-sub-box:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
  }

  .brochure-sub-box:focus {
    outline: none;
  }

  .sidebar-gamma-list li:has(a[href*="cPath=122"]) {
    display: none !important;
  }

  .sfondo-nero-prod .prodotti-row {
    /* background: linear-gradient(to right, var(--deep-black), #1a1a1a) !important;
    margin-top: 0px !important;
    padding: 0px !important; */

    background: var(--color-light);
  }

  .sfondo-nero-prod .home-box-title {
    color: var(--color-white);
    display: none;
  }

  .sfondo-nero-prod .box-line {
    background: var(--color-white) !important;
    display: none;
  }

  .sfondo-nero-prod .item-product {
    background: var(--color-white);
    border-radius: 5px;
    /* box-shadow: rgba(125, 124, 124, 0.2) 0px 0px 10px;
    border: 2px solid red; */
  }

  h1.best-seller {
    color: var(--color-primary);
    justify-content: center;
    text-align: center;
    background: var(--color-light);
    font-size: 2.5rem !important;
    font-weight: 800;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    border-bottom: 3px solid var(--color-primary);
  }

  .flex-control-paging li a {
    width: 11px;
    height: 11px;
    display: block;
    background: #666;
    background: rgb(255 255 255);
    cursor: pointer;
    text-indent: -9999px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -o-border-radius: 20px;
    border-radius: 20px;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
  }

  .flex-control-paging li a.flex-active {
    background: rgb(255 0 0 / 90%) !important;
  }

  .title-chi-siamo {
    text-transform: uppercase;
  }

  /* ==========================================================================
     MEDIA QUERIES PER UN RESPONSIVE COMPLETO (Mobile & Tablet)
     ========================================================================== */
 

  @media (max-width: 1920px) {
    .sidebar-left {
      max-height: 475px;
    }

    .sidebar-gamma-list a {
      font-size: 13px;
      height: 40px;
    }

    /* .promo-box.promo-box-prodotti-mese.promo-box-prodotti-mese-default {
    max-height: 275px;
    }

    img.prodotti-mese-banner {
        max-height: 275px;
    }

    .promo-box-prodotti-mese {
    width: 100%;      
    height: 275px;    
    overflow: hidden; 
} */

.prodotti-mese-link {
    display: block;
    width: 100%;
    height: 100%;
}

.prodotti-mese-banner {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Riempie il riquadro tagliando il surplus preservando le proporzioni */
    display: block;
}

  }

  @media (max-width: 1680px) {
    .sidebar-left {
      max-height: 370px;
    }

    .sidebar-gamma-title {
      font-size: 13px;
    }

    .sidebar-gamma-list a {
      font-size: 12px;
      height: 31px;
    }
  }

  /* DA QUI IN GIÙ: Nuova logica di colonna singola riordinata */
  @media (max-width: 1440px) {
    .hero-section {
      grid-template-columns: 1fr;
      gap: 20px;
    }
    

    .main-banner {
      order: 1;
      height: auto;
      /* sblocchiamo l'altezza forzata della modalità desktop */
      aspect-ratio: 1850 / 750;
      /* qui il rapporto fisso torna utile */
    }

    .sidebar-left {
      order: 2;
      max-height: none;
      width: 100%;
    }

    /* resto invariato */


    /* Gamma prodotti su due colonne */
    .sidebar-gamma-list {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      width: 100%;
    }

    .sidebar-gamma-list li {
      margin-bottom: 0;
    }

    .sidebar-gamma-list a {
      font-size: 13px;
      height: 45px;
      /* Alzata l'altezza minima per evitare che i testi tocchino i bordi */
    }

    /* 3. Gli altri tre box vanno in fondo e si dispongono in ORIZZONTALE per non occupare troppo spazio verticale */
    .hero-section>aside:not(.sidebar-left) {
      order: 3;
      flex-direction: row !important;
      /* Sovrascrive lo stile inline */
      width: 100%;
      gap: 10px;
    }

    .side-box {
      margin-bottom: 0;
      min-height: 60px;
      padding:30px;
    }
  }

  @media (max-width: 1199px) {
    .prodotti-row {
      grid-template-columns: repeat(4, 1fr);
    }

    .info-section {
      grid-template-columns: repeat(2, 1fr);
    }
    .brochure-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}
  }

  @media (max-width: 991px) {

    /* Su tablet e mobile rimettiamo i 3 box in verticale perché lo schermo si restringe */
    .hero-section>aside:not(.sidebar-left) {
      flex-direction: column !important;
    }

    /* .hide-mobile {
      display: none;
    } */

    .bottom-section {
      grid-template-columns: 1fr;
    }

    .footer-container {
      grid-template-columns: 1fr;
      gap: 20px;
    }

    .main-nav nav,
    .main-nav>div {
      flex-direction: column;
      gap: 15px;
      padding: 10px 0;
    }

    header {
      position: relative;
    }

    .pagina-uno {
      margin-top: 0;
    }



.prodotti-mese-link {
    display: block;
    width: 100%;
    height: 100%;
}

.prodotti-mese-banner {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Riempie il riquadro tagliando il surplus preservando le proporzioni */
    display: block;
    background: var(--mesh-gradient);
    background: white;
}

.bottom-section {
    flex: 1;
    display: flex;
    grid-template-columns: 300px 1fr 3fr;
    gap: 15px;
    min-height: 0;
}

 
  }

  @media screen and (max-width: 991px) {
  .bottom-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* opzionale, per gestire gli spazi */
  }

  /* Primo elemento (al 50%) */
  .bottom-section > .promo-box-prodotti-mese {
    width: 48%; /* Lasciamo un minimo margine del 2% per evitare problemi di spaziatura */
  }

  /* Secondo elemento (al 50%) */
  .bottom-section > .nav-box-large:nth-of-type(2) {
    width: 48%;
    /* height: 380px; */
  }

  /* Terzo elemento (va a capo al 100%) */
  .bottom-section > .brochure-container-box {
    width: 100%;
    /* height: 380px !important; */
  }
}
  @media (max-width: 600px) {

    /* Su smartphone anche la gamma prodotti torna a 1 colonna per leggibilità */
    .sidebar-gamma-list {
      grid-template-columns: 1fr;
    }

    .prodotti-row {
      grid-template-columns: repeat(2, 1fr);
    }

    .info-section {
      grid-template-columns: 1fr;
    }

    .testhome-account-links {
      grid-template-columns: 1fr;
    }

    .brochure-links-grid {
      grid-template-columns: 1fr;
    }

    .sezione-approfondimento {
      font-size: 1.8rem;
    }
  }

  .search-real-wrapper {
    min-width: 560px;
  }

  /* MODIFICA PER DIMENSIONI NUOVO BANNER */
  @media (min-width: 1921px) {
    .slideshow .slides {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 700px;
      z-index: 1;
      text-align: center;
    }

    .header-banner {
      width: 100%;
      display: flex;
      height: 700px;
      z-index: 1;
      margin: 0px;
    }

    .slideshow .slide .image-container {
      height: 700px;
    }

    .slideshow .slide .image {
      height: 100%;
      object-fit: cover;
      border-radius: 28px;
    }

    section.hero-section {
      max-height: none;
      /* era 700px */
    }
  }

  @media (max-width: 1920px) {
    .slideshow .slide .image-container {
      height: 540px !important;
    }

    .header-banner {
      width: 100%;
      display: flex;
      height: 540px;
      z-index: 1;
      margin: auto;
    }

    .slideshow {
      height: 540px;
      max-height: 540px;
    }

    .slideshow .slide .image {
      height: 100%;
      object-fit: cover;
    }

    .sidebar-left {
      max-height: 540px;
    }
  }


  /* @media (max-width: 1689px) {
    .slideshow .slide .image-container {
      height: 390px !important;
    }

    .header-banner,
    aside,
    .sidebar-left {
      height: 390px;
    }

    .slideshow .slide .image {
      height: 100%;
      object-fit: contain;
    }

    .sidebar-gamma-list a {
      font-size: 13px;
      height: 32px;
    }
  } */

  @media (max-width: 1440px) {
    .slideshow {
      height: 540px;
      border-radius: 20px;

    }
  }

  @media (max-width: 1024px) {
    .slideshow .slide .image {
      height: 100%;
      object-fit: contain;
    }

    .slideshow .slide .image-container {
      height: auto !important;
    }

    .slideshow {
      max-height: 370px;
      border-radius: 20px;
    }
    /* .bottom-section {
    flex: 1;
    display: grid;
    grid-template-columns: 175px 3fr 7fr;
    gap: 15px;
    min-height: 0;
    grid-auto-flow: row dense;
} */

.brochure-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}
  }




  @media (max-width: 768px) {
    .slideshow .slide .image {
      height: 100%;
      object-fit: contain;
    }

    .slideshow .slide .image-container {
      height: auto !important;
    }

    .slideshow {
      max-height: 270px;
      border-radius: 20px;
    }
    /* NUOVO HEADER MOBILE NASCOSTO */
    .hide-mobile {
    display: none;
    }

    .smart-cart, .app-bar button .icon, i.fa.fa-times.fa-lg {
          font-size: 2em;
        color: black;
    }

    .mbottom-link {
      background-color: #000000;
    }

     /* Primo elemento (al 50%) */
  .bottom-section > .promo-box-prodotti-mese {
    width: 48%; /* Lasciamo un minimo margine del 2% per evitare problemi di spaziatura */
  }

  /* Secondo elemento (al 50%) */
  .bottom-section > .nav-box-large:nth-of-type(2) {
    width: 48%;
  }

      .prodotti-mese-banner {
        width: 100%;
        /* height: 354px; */
        object-fit: contain;
        display: block;
        background: var(--mesh-gradient);
        background: white;
    }

  }


  @media (max-width: 425px) {
    .slideshow .slide .image {
      height: 100%;
      object-fit: contain;
    }

    .slideshow .slide .image-container {
      height: auto !important;
    }

    .slideshow {
      max-height: 150px;
      border-radius: 20px;
    }

    .side-box,
    .promo-box {
      margin-bottom: 0;
      min-height: 150px;
    }

     /* Primo elemento (al 50%) */
  .bottom-section > .promo-box-prodotti-mese {
    width: 100%; /* Lasciamo un minimo margine del 2% per evitare problemi di spaziatura */
  }

  /* Secondo elemento (al 50%) */
  .bottom-section > .nav-box-large:nth-of-type(2) {
    width: 100%;
  }
      .prodotti-mese-banner {
        width: 100%;
        height: 395px;
        object-fit: contain;
        display: block;
        background: var(--mesh-gradient);
        background: white;
    }

  }


  @media (max-width: 375px) {
    .slideshow .slide .image {
      height: 100%;
      object-fit: contain;
    }

    .slideshow .slide .image-container {
      height: auto !important;
    }

    .slideshow {
      max-height: 130px;
      border-radius: 20px;
    }

      .arrow.prev, .arrow.next {
    font-size: 10px !important;
    color: var(--color-primary);
}


/* div#HEADER_MOBILE_TOP_BAR
 {
    display: none;
}  */


    .prodotti-mese-banner {
        width: 100%;
        height: 345px;
        object-fit: contain;
        display: block;
        background: var(--mesh-gradient);
        background: white;
    }
  }

  .slideshow .slide .image {
    border-radius: 20px;
  }


  /* STILE FRECCE PAGINAZIONE */

  .arrow.prev, .arrow.next {
    font-size: 35px;
    color: var(--color-primary);
}

/* .promo-box.promo-box-prodotti-mese {
    max-height: 438px;
} */



  /* h1.best-seller {
    color: #ff0000;
    justify-content: center;
    text-align: center;
    background: #f4f4f4 !important;
    font-size: 2.5rem !important;
    font-weight: 800;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    border-bottom: 3px solid red;
  } */

@media (max-width: 768px) {
  
  .bottom-section {
    display: flex;
    flex-wrap: wrap;
  }

  /* Solo i primi due: promo-box e nav-box "Catalogo" (non quello brochure) */
  .promo-box-prodotti-mese,
  .bottom-section > .nav-box-large:not(.brochure-container-box) {
    flex: 1 1 100%;
    max-width: 100%;
    max-height: none !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
  }

}