/* =========================================================
   FONT PERSONALIZZATI (file in: css → ../fonts/)
   ========================================================= */
   @font-face {
    font-family: 'Discipuli';
    src: url('../fonts/Discipuli.ttf') format('opentype');
    font-display: swap;
  }
  
  @font-face {
    font-family: 'dogma';
    src: url('../fonts/dogma.ttf') format('opentype');
    font-display: swap;
  }
  
  @font-face {
    font-family: 'Rajdhani-Light';
    src: url('../fonts/Rajdhani-Light.ttf') format('truetype');
    font-display: swap;
  }
  
  @font-face {
    font-family: 'Nyoetes';
    src: url('../fonts/Nyoetes.otf') format('opentype');
    font-display: swap;
  }
  
  @font-face {
    font-family: 'JosefinSans-Thin';
    src: url('../fonts/JosefinSans-Thin.ttf') format('truetype');
    font-display: swap;
  }
  
  @font-face {
    font-family: 'Elegant';
    src: url('../fonts/Elegant.ttf') format('truetype');
    font-display: swap;
  }

  @font-face {
    font-family: 'Bernardo Moda';
    src: url('../fonts/Bernardo Moda.ttf') format('opentype');
    font-display: swap;
  }
  
  @font-face {
    font-family: 'Baloo Bhaijaan 2';
    src: url('../fonts/BalooBhaijaan2.ttf') format('truetype');
    font-display: swap;
  }


  /* ===== FINE FONT PERSONALIZZATI ===== */

  /* =========================================================
     STILE GENERALE – VERSIONE CHIARA
     ========================================================= */
  
  body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #fafafa;
    color: #222;
  }
  
  /* ---------------------------------------------------------
     HEADER BASE (non Omega specifico)
     --------------------------------------------------------- */
  header {
    background: #fff;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  header nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
  }
  
  
  /* =========================================================
     SEZIONE PRODOTTI (card categorie generiche)
     ========================================================= */
  
  .categories {
    display: flex;
    justify-content: center;
    margin: 40px 20px;
    gap: 20px;
    flex-wrap: wrap;
    background: #fafafa;
  }
  
  .category-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
  }
  
  .category {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    width: 200px;
    transition: transform 0.3s ease;
  }
  
  .category img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .category img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }
  
  .category h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 10px;
    color: #333;
    transition: color 0.3s ease;
  }
  
  .category-link:hover h3 {
    color: #0ff;
  }
  
  
  /* =========================================================
     CONFIGURATORE – BOX PRINCIPALE E INPUT
     ========================================================= */
  
  .configurator {
    background: #fff;
    margin: 40px 20px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .configurator input,
  .configurator select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
  }
  
  
  /* =========================================================
     SELETTORE FONT – ANTEPRIMA E OPZIONI
     ========================================================= */
  
  /* Select per la scelta del font */
  .font-select {
    max-width: 300px;
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Ogni option mostra il suo font reale
     (value = nome font reale, testo = nome commerciale) */
  .font-select option[value="Discipuli"] { font-family: 'Discipuli'; }
  .font-select option[value="dogma"] { font-family: 'dogma'; }
  .font-select option[value="Rajdhani-Light"] { font-family: 'Rajdhani-Light'; }
  .font-select option[value="Nyoetes"] { font-family: 'Nyoetes'; }
  .font-select option[value="JosefinSans-Thin"] { font-family: 'JosefinSans-Thin'; }
  .font-select option[value="Elegant"] { font-family: 'Elegant'; }
  .font-select option[value="Bernardo Moda"] { font-family: 'Bernardo Moda'; }
  .font-select option[value="Baloo Bhaijaan 2"] { font-family: 'Baloo Bhaijaan 2'; }
  
  .font-preview {
    font-size: 1.2rem;
    margin-top: 10px;
    color: #333;
    text-align: center;
    font-weight: bold;
    padding: 10px;
  }

  .avviso-dimensione {
    width: min(680px, calc(100% - 32px));
    margin: 18px auto 26px;
    padding: 18px 20px;
    border: 1px solid rgba(150, 36, 24, 0.22);
    border-radius: 16px;
    background: linear-gradient(180deg, #fff9f6 0%, #fff 100%);
    color: #7f2418;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  }

  .avviso-dimensione strong {
    display: block;
    font-size: 1.08rem;
    color: #111;
    margin-bottom: 8px;
  }

  .avviso-dimensione p {
    max-width: 560px;
    margin: 0 auto 14px;
    line-height: 1.45;
    color: #6f332b;
  }

  .avviso-dimensione button {
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    background: linear-gradient(90deg, #111 0%, #a8945d 100%);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
  }

  #addToCartBtn.is-disabled,
  #addToCartBtn:disabled {
    opacity: 0.46;
    cursor: not-allowed;
    filter: grayscale(0.18);
  }
  
  
  /* =========================================================
     SFONDI – MINIATURE SELEZIONABILI
     ========================================================= */
  
  .sfondi {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-top: 20px;
  }
  
  .sfondo-thumb {
    width: 80px;
    height: 50px;
    border: 2px solid #ccc;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
  }
  
  .sfondo-thumb.selected {
    outline: 3px solid #4CAF50;
    border-color: #4CAF50;
  }
  
  
  /* =========================================================
     ANTEPRIMA PRODOTTO (BOX QUADRATO + SFONDO)
     ========================================================= */
  
  .preview-container {
    position: relative;
    margin-top: 20px;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    background: url('../Sfondi/Sfondo2.png') center/cover no-repeat;
    border: 2px dashed #ccc;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* =========================
   PLEXIGLASS – STILE BASE UNIFICATO
   ========================= */
.plexiglass {
  padding: 10px 8px;
  width: fit-content;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  border-radius: 2px;

  box-shadow:
  inset 0 0 0.5px rgba(255,255,255,0.25),
  0 0 6px rgba(255,255,255,0.08);

}

  
  /* Testo LED di anteprima */
  .preview {
    font-weight: bold;
    color: #000;
    text-align: center;
    white-space: pre-wrap;
  }
  
  
  /* =========================================================
     ETICHETTE E TESTI DI SUPPORTO
     ========================================================= */
  
  .label {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 20px;
    display: block;
    color: #333;
    text-align: center;
  }

  /* ==========================================================
   PERSONALIZZA – EFFETTO NEON (DESKTOP + MOBILE)
   - Titolo sezione
   - Campo inserimento testo (solo glow interno)
   ========================================================== */

/* Titolo "Personalizza il tuo prodotto" */
 body.personalizza-page #configuratore-led h2 {
  font-family: 'Orbitron', sans-serif;
  text-align: center;

  font-size: 2.2rem;   /* ← PRIMA era troppo grande */
  letter-spacing: 0.5px;

  color: #222;

  text-shadow:
    0 0 3px rgba(0, 255, 255, 0.35),
    0 0 6px rgba(0, 255, 255, 0.25);
}

/* Campo inserimento testo */
body.personalizza-page #customText {
  background: #ffffff;
  color: #222;

  border: 1px solid rgba(0, 255, 255, 0.35);
  border-radius: 10px;

  /* SOLO effetto neon interno */
  box-shadow:
  inset 0 0 14px rgba(0, 255, 255, 0.55),
  inset 0 0 26px rgba(0, 255, 255, 0.25);

  text-align: center;
}


/* Placeholder visibile e chiaro */
body.personalizza-page #customText::placeholder {
  color: #666;
  opacity: 1;
}


/* Stato attivo (focus) */
body.personalizza-page #customText:focus {
  outline: none;

  border-color: rgba(0, 255, 255, 0.7);

  box-shadow:
    inset 0 0 12px rgba(0, 255, 255, 0.55);
}

  
  /* =========================================================
     PULSANTI PRINCIPALI (AGGIUNGI / VAI AL CARRELLO)
     ========================================================= */
  
  #addToCartBtn,
  #goToCartBtn {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
  }
  
  #addToCartBtn {
    background-color: #0ff;
    color: #000;
  }
  
  #goToCartBtn {
    background-color: #333;
    color: #fff;
  }
  
  
  /* =========================================================
     SELEZIONE COLORI LED (PULSANTI TONDI)
     ========================================================= */
  
  .color-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #ccc;
    cursor: pointer;
    margin: 5px;
  }
  
  .color-btn:hover {
    border: 2px solid #333;
  }
  
  
  /* =========================================================
   OPZIONI AGGIUNTIVE (PLEXIGLASS, DIMMER, ECC.)
   ========================================================= */

/* singola opzione (nero, taglio a forma, dimmer, ecc.) */
.plexi-option,
.optional-btn {
  padding: 10px 18px;
  border: 2px solid #ccc;
  border-radius: 8px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #fff;
  font-weight: 600;
  transition: all 0.25s ease;

  margin: 0; /* ❌ niente offset laterali */
}

/* hover */
.plexi-option:hover,
.optional-btn:hover {
  border-color: #888;
}

/* stato selezionato */
.plexi-option.selected,
.optional-btn.selected {
  background-color: #d3f9d8;
  border-color: #4CAF50;
  color: #2c662d;
}

/* CONTENITORE OPZIONI (centrato sotto il titolo) */
.optional-group {
  display: flex;
  justify-content: center;   /* ✅ CENTRO */
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
  margin-top: 12px;
}

/* CARD OPTIONAL VERTICALI (Taglio a forma / Dimmerabile) */
.plexi-option-vertical {
  cursor: pointer;
}

/* stato selezionato card verticale */
.plexi-option-vertical.selected {
  outline: 2px solid #4CAF50;
  border-radius: 10px;
  background: rgba(76, 175, 80, 0.08);
}


  
  
  /* =========================================================
     FOOTER GENERICO
     ========================================================= */
  
  footer {
    background: #eee;
    color: #333;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
  }
  
  
  /* =========================================================
     RESPONSIVITÀ BASE PER CATEGORIE
     ========================================================= */
  
  @media (max-width: 600px) {
    .categories {
      flex-direction: column;
      align-items: center;
    }
  
    .category {
      width: 80%;
    }
  }
  
  
  /* =========================================================
     HEADER STILE OMEGA – DESKTOP (CORNELIO)
     ========================================================= */
  
  /* Layout base header Omega */
  .header-omega {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
    color: #000;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  .header-left,
  .header-center,
  .header-right {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  
  .header-left {
    justify-content: flex-start;
  }
  
  .header-right {
    justify-content: flex-end;
  }
  
  .header-center {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  /* Icone nere stile Omega (base) */
  .header-right a,
  .header-left a {
    color: #000 !important;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 300;
  }
  
  /* Icone: forziamo la linea nera stile Omega */
  .header-right i,
  .header-left i {
    color: #000 !important;
    text-shadow: none;
  }
  
  .header-right a:hover,
  .header-left a:hover {
    opacity: 0.7;
  }
  
  /* HEADER – LINK GENERICI (ESCLUSO LOGO CENTRALE) */
  .header-omega a:not(.logo-black) {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
  }
  
  .header-omega a:hover {
    color: #0ff;
    text-shadow: 0 0 5px #0ff;
  }
  
  /* Logo centrale (contenitore link) */
  .logo-black {
    display: inline-block;
    font-family: 'Dancing Script', cursive;
    font-size: 48px;
    line-height: 1;
    text-decoration: none;
    color: #000 !important;
  }
  
  /* Logo Cornelio come immagine PNG (DESKTOP – altezza personalizzabile) */
  .logo-img {
    display: block;
    height: 40px;   /* ← modifica qui l'altezza del logo su desktop */
    width: auto;
  }
  
  /* Controllo manuale posizione verticale del logo (DESKTOP) */
  .header-omega .header-center .logo-img {
    margin-top: -15px;   /* ← modifica questo valore per spostare il logo su/giù */
  }
  
  /* Slogan con effetto neon (testo) – di base NASCOSTO ovunque */
.slogan-neon {
  font-family: 'Orbitron', sans-serif;
  font-size: 19px;
  color: #333;
  text-shadow: 0 0 2px #fbe8a6, 0 0 5px #fbe8a6;
  letter-spacing: 1px;
  margin-top: 5px;
  display: none;   /* ← nascosto OVUNQUE per default */
}

/* Slogan visibile SOLO nella pagina HOME (DESKTOP) */
.page-home .slogan-neon {
  display: block;  /* ← visibile solo in home desktop */
}

/* Controllo manuale posizione verticale dello slogan in HOME desktop */
.page-home .header-omega .slogan-neon {
  margin-top: -15px;   /* ← alza/abbassa */
}

/* MOBILE – lo slogan resta nascosto anche in home */
@media (max-width: 768px) {
  .page-home .slogan-neon {
    display: none !important;
  }
}


  /* Bandiera italiana sotto il logo (DESKTOP) */
  .bandiera-italia {
    width: 350px;
    margin-bottom: 2px;
    margin-top: -10px;
    display: block;
  }
  
  /* Divider (se usato) */
  .header-omega .divider {
    color: #ccc;
  }
  
  /* Icone lato destro – dimensione base */
  .header-right i {
    font-size: 18px;
  }
  
  /* Tooltip per icone header (testo al passaggio) */
  .header-right a {
    position: relative;
  }
  
  .header-right a::after {
    content: attr(title);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  
  .header-right a:hover::after {
    opacity: 1;
  }
  
  /* Dimensioni simbolo MENU (☰) – DESKTOP (gestito singolarmente) */
  .header-omega .header-left .menu-btn {
    font-size: 1.7rem;   /* ← modifica qui SOLO il MENU in desktop */
  }
  
  /* Dimensioni simbolo LENTE (🔍) – DESKTOP (gestito singolarmente) */
  .header-omega .header-left .search-btn i {
    font-size: 1.2rem;   /* ← modifica qui SOLO la lente in desktop */
  }
  
  /* ============================================================
     HEADER (DESKTOP) – GRANDEZZA ICONE LATO DESTRO
     - Modifica SOLO la dimensione delle icone a destra:
         👤 account, 🛒 carrello
     - Valido SOLO per schermi desktop (larghezza > 768px).
     ============================================================ */
  @media (min-width: 769px) {
    .header-right i {
      font-size: 21px;  /* ← aumenta/diminuisci qui la grandezza delle icone destra (desktop) */
    }
  }
  
  
  /* =========================================================
   CATEGORIE – STILE OMEGA PULITO (DESKTOP + MOBILE)
   --- VERSIONE CORRETTA CON SCROLL ORIZZONTALE FLUIDO ---
   --- E BLOCCO TOTALE DEL MOVIMENTO VERTICALE ---
   ========================================================= */

/* Contenitore principale */
.home-categories-wrapper {
  position: relative;
  width: 100%;
  padding: 80px 0;
  background: #ffffff;
  min-height: 520px;
  padding-bottom: 60px;
}


/* Contenitore scrollabile orizzontale */
.home-categories-scroll {
  display: flex;
  gap: 40px;
  padding: 0 20px;

  overflow-x: auto;        /* scroll orizzontale */
  overflow-y: hidden;      /* blocca movimento verticale */
  white-space: nowrap;     /* allinea tutte le card in fila */
  scroll-behavior: smooth;

  scrollbar-width: none;   /* Firefox */
  -ms-overflow-style: none;/* IE */
  touch-action: pan-x;     /* permette solo scorrimento a sinistra/destra */
}

/* Safari + Chrome */
.home-categories-scroll::-webkit-scrollbar {
  display: none !important;
}

/* Singola categoria */
.home-category {
  flex: 0 0 auto;
  width: 240px;
  text-align: center;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* Immagine */
.home-category img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-category:hover img {
  transform: scale(1.04);
  box-shadow: 0 6px 22px rgba(0,0,0,0.25);
}

/* Titolo */
.home-category h3 {
  margin-top: 12px;
  font-family: 'Orbitron', sans-serif;
  color: #333;
  font-size: 1.12rem;
}

/* ============================
   FRECCE STILE OMEGA PREMIUM
   ============================ */

   .cat-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    
    background: #ffffff;
    border: 2px solid #ddd;
    border-radius: 50%;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-size: 24px;
    font-weight: 600;
    color: #222;
    
    cursor: pointer;
    transition: all 0.28s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    z-index: 20;
  }
  
  /* Hover premium – stile Omega */
  .cat-arrow:hover {
    transform: translateY(-50%) scale(1.09);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  }
  
  /* Frecce posizionate ai lati */
  .cat-arrow-left { left: 14px; }
  .cat-arrow-right { right: 14px; }
  
  /* ======================================
     FRECCE ATTIVE → ROSSE (STILE OMEGA)
     ====================================== */
  
  /* Stato attivo — quando SI PUÒ scorrere */
  .cat-arrow.active {
    border-color: #ff3b30;
    color: #ff3b30;
    box-shadow: 0 0 18px rgba(255,59,48,0.35);
  }
  
  /* Stato disattivo — quando NON si può scorrere */
  .cat-arrow.disabled {
    opacity: 0.35;
    border-color: #ccc;
    color: #999;
    pointer-events: none;
  }
  

/* Effetto 3D */
.home-category.dimmed {
  transform: scale(0.88);
  opacity: 0.7;
}

.home-category.focused {
  transform: scale(1.06);
  opacity: 1;
}

/* Halo Glow */
.home-category.focused {
  position: relative;
  z-index: 10;
}

.home-category.focused::after {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 18px;
  background: radial-gradient(
    rgba(0, 255, 255, 0.35),
    rgba(0, 255, 255, 0.08) 70%,
    transparent 100%
  );
  filter: blur(12px);
  z-index: -1;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.home-category.dimmed::after {
  opacity: 0;
}

.home-category a {
  text-decoration: none !important;   /* ← toglie la linea */
  color: inherit;
}


/* MOBILE – scorrimento naturale */
@media (max-width: 768px) {
  .home-categories-wrapper {
    padding: 50px 0;
  }

  .cat-arrow {
    display: none; /* frecce nascoste su mobile */
  }

  .home-category {
    width: 180px;
  }

  .home-categories-scroll {
    gap: 28px;
  }
}


/* =======================================================
   SOFT ZOOM 3D – EFFETTO CAROSELLO PREMIUM
   ======================================================= */

   .home-category {
    transition: transform 0.35s ease, opacity 0.35s ease;
    transform-origin: center;
  }
  
  .home-category.dimmed {
    transform: scale(0.88);
    opacity: 0.7;
  }
  
  .home-category.focused {
    transform: scale(1.06);
    opacity: 1 !important;
  }

  /* =======================================================
   HALO GLOW – EFFETTO LUCE SULLA CARD CENTRALE
   ======================================================= */

.home-category.focused {
  position: relative;
  z-index: 10;
}

.home-category.focused::after {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 18px;
  background: radial-gradient(
    rgba(0, 255, 157, 0.45),
    rgba(0, 255, 255, 0.08) 0%,
    transparent 100%
  );
  filter: blur(12px);
  z-index: -1;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.home-category.dimmed::after {
  opacity: 0; /* niente halo sulle altre card */
}

  
  
  /* =========================================================
   MENU CLASSICO A PANNELLO (SLIDE)
   ========================================================= */

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35); /* overlay leggero */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 20000;
}

/* stato aperto */
.menu-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* pannello menu */
.menu-overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 80vw;
  height: 100%;
  background: #111;
  color: #fff;
  padding: 24px 20px;
  border-radius: 0;
  box-shadow: 4px 0 20px rgba(0,0,0,0.4);
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  text-align: left;
}

/* pannello visibile */
.menu-overlay.show .menu-overlay-content {
  transform: translateX(0);
}

/* titolo */
.menu-overlay-content h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

/* link menu */
.menu-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-categories a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* ===== FEEDBACK CLICK MENU ===== */

.menu-categories a:active {
  transform: scale(0.97);
  opacity: 0.7;
}

.menu-categories a {
  transition: transform 0.12s ease, opacity 0.12s ease;
}


/* pulsante chiusura */
.menu-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

.delivery-info-card {
  width: 100%;
  box-sizing: border-box;
  margin: 18px auto 24px;
  padding: 24px 30px;
  border: 1px solid rgba(17, 17, 17, .1);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96) 0%, rgba(248, 245, 236, .96) 100%),
    radial-gradient(circle at 50% 0%, rgba(178, 155, 94, .16), transparent 42%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .09);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.delivery-info-card::before {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #111, #b8a064);
}

.delivery-info-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 7px 12px;
  border: 1px solid rgba(155, 135, 84, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .65);
  color: #9b8754;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.delivery-info-card strong {
  display: block;
  color: #111;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.18;
}

.delivery-info-card p {
  max-width: 560px;
  margin: 10px auto 0;
  color: #4c4c4c;
  font-size: 15px;
  line-height: 1.6;
}

.custom-file-banner {
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto 34px;
  padding: 26px 30px;
  border: 1px solid rgba(17, 17, 17, .1);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(18, 18, 18, .98) 0%, rgba(50, 45, 34, .98) 56%, rgba(184, 160, 100, .94) 100%);
  color: #fff;
  box-shadow: 0 22px 48px rgba(0, 0, 0, .16);
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
}

.custom-file-banner::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  border: 1px solid rgba(255, 255, 255, .12);
  pointer-events: none;
}

.custom-file-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: #d8c184;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.custom-file-banner h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.12;
}

.custom-file-banner p {
  max-width: 560px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 1.55;
}

.custom-file-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.custom-file-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .9);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.custom-file-whatsapp {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
  transition: transform .16s ease, box-shadow .16s ease;
}

.custom-file-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .24);
}

.checkout-delivery-card {
  text-align: left;
}

.checkout-delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.checkout-delivery-item {
  padding: 16px;
  border: 1px solid rgba(17, 17, 17, .1);
  border-radius: 14px;
  background: #fbfaf7;
}

.checkout-delivery-item span {
  display: block;
  margin-bottom: 6px;
  color: #777;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.checkout-delivery-item strong {
  color: #111;
  font-size: 17px;
}

.checkout-delivery-card p {
  margin: 14px 0 0;
  color: #555;
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .delivery-info-card {
    width: min(100%, 430px);
    padding: 20px 18px;
    border-radius: 20px;
  }

  .custom-file-banner {
    width: min(100%, 430px);
    padding: 22px 16px;
    border-radius: 22px;
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .custom-file-banner p {
    margin-left: auto;
    margin-right: auto;
  }

  .custom-file-tags {
    justify-content: center;
  }

  .custom-file-whatsapp {
    width: 100%;
    max-width: 100%;
    min-height: 56px;
    padding: 0 18px;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }

  .checkout-delivery-grid {
    grid-template-columns: 1fr;
  }
}

  
  
  /* =========================================================
     MOBILE STYLE TIPO OMEGA (HEADER + CONFIGURATORE)
     ========================================================= */
  
  @media (max-width: 768px) {
  
    /* HEADER: barra unica, compatta, tipo Omega */
    .header-omega {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 12px;
      box-sizing: border-box;
      gap: 0;
    }
  
    .header-left,
    .header-center,
    .header-right {
      display: flex;
      align-items: center;
    }
  
    /* HEADER SINISTRA: ☰ + 🔍 (più distanziati) */
    .header-left {
      display: flex;
      align-items: center;
      gap: 20px !important;      /* ← distanzia le icone visibilmente */
      margin-left: 4px;
    }
  
    /* Dimensioni icone sinistra (MENU ☰ + LENTE 🔍) – MOBILE */
    .header-omega .header-left .menu-btn {
      font-size: 1.7rem !important;   /* più grande rispetto a prima */
    }
  
    .header-omega .header-left .search-btn {
      font-size: 1.4rem !important;   /* più grande e ben visibile */
    }
  
    /* Nasconde alcuni link superflui in header su mobile */
    .header-left .divider,
    .header-left a[href*="contatti"],
    .header-left a[href="/"]:not(.menu-btn),
    .header-left a[href="index.html"]:not(.menu-btn) {
      display: none !important;
    }

  
    /* Centro: logo centrato in stile brand */
    .header-center {
      flex: 1 1 auto;
      justify-content: center;
      text-align: center;
    }
  
    /* Spostamento verticale complessivo del blocco centrale (logo+bandiera) su mobile */
    .header-omega .header-center {
      margin-top: -14px;   /* ← aumenta o riduci per regolare l’altezza complessiva */
    }
  
    .bandiera-italia {
      width: 200px;
      height: auto;
      margin-right: 0px;
    }
  
    /* Regola SOLO la posizione della bandiera su mobile */
    .header-omega .bandiera-italia {
      margin-top: 6px;   /* ← modifica questo valore per alzare/abbassare la bandiera */
    }
  
    /* Logo Cornelio PNG su mobile (altezza e posizione) */
    .logo-img {
      height: 25px;
      width: auto;
      margin-top: -20px;   /* ← regoli altezza del logo rispetto al blocco centrale */
    }
  
      /* Slogan nascosto su mobile per layout più pulito (anche in home) */
  .page-home .slogan-neon {
    display: none;
  }

  
    /* HEADER DESTRA: 👤 + 🛒 (più distanziati) */
    .header-right {
      flex: 0 0 auto;
      gap: 20px !important;      /* ← distanzia le icone destra */
      font-size: 1.1rem;
      margin-right: 4px;
    }
  
    .header-right a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
  
    /* Dimensioni icone lato destro su mobile (👤 + 🛒) */
    .header-omega .header-right i {
      font-size: 1.3rem !important;   /* ← modifica qui quando vuoi */
    }
  
    /* HERO un po' più bassa su mobile */
    .home-hero,
    .hero {
      height: 55vh;
      background-attachment: scroll;
    }
  
    /* SEZIONE CONFIGURATORE: padding adattato a schermi piccoli */
    .configurator {
      padding: 15px 12px;
    }
  
    .configurator h2 {
      font-size: 1.2rem;
      text-align: center;
    }
  
    .preview-container {
      margin: 10px auto;
      max-width: 100%;
    }

    .preview-container {
     margin: 10px auto;
     max-width: 100%;

     overflow: hidden;          /* 🔒 niente può uscire */
     display: flex;
     align-items: center;
     justify-content: center;
    }

  
    .sfondi {
      justify-content: center;
      gap: 8px;
    }
  
    .sfondo-thumb {
      width: 28%;
    }
  
    #colorButtons {
      justify-content: center;
    }
  
    .optional-group {
      justify-content: center;
      gap: 8px;
    }
  
    #addToCartBtn,
    #goToCartBtn {
      width: 100%;
      max-width: 280px;
      margin: 5px auto;
      display: block;
    }
  }
  
  
  /* =========================================================
     FOOTER CORNELIO – VERSIONE SCURA
     ========================================================= */
  
  .footer-cornelio {
    text-align: center;
    padding: 25px 10px;
    background: #000;
    color: #fff;
    font-size: 0.9rem;
  }
  
  .footer-cornelio .footer-links {
    margin-bottom: 10px;
  }
  
  .footer-cornelio .footer-links a {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 0.5px;
  }
  
  .footer-cornelio .footer-links a:hover {
    text-decoration: underline;
  }

  html {
    background: #fafafa;
  }
  

  /* =========================================
   SCROLLBAR – NASCOSTA SU DESKTOP
   (mobile resta com'è ora)
   ========================================= */

@media (min-width: 769px) {

  /* Chrome, Safari, Edge, Opera */
  *::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background: transparent;
  }

  *::-webkit-scrollbar-track {
    background: transparent;
  }

  *::-webkit-scrollbar-thumb {
    background: transparent;
    border: none;
  }

  /* Firefox */
  * {
    scrollbar-width: none;
  }
}

/* ============================
   BLOCCO MANCANTE MA NECESSARIO
   ============================ */

   .home-categories {
    width: 100%;
    padding: 0;      /* ← zero, perché ora usiamo lo scroll */
    margin: 0;
    background: #ffffff;
    display: block;  /* ← serve per far prendere l’altezza */
    position: relative;
    z-index: 5;
  }

  /* ==========================================================
   PERSONALIZZA – BLOCCO A TUTTA PAGINA
   (attaccato a header e bordi)
   ========================================================== */

body.personalizza-page {
  margin: 0;
  padding: 0;
  background: #f2f2f2; /* se vuoi mantenere lo sfondo globale */
}

/* il configuratore diventa contenuto pagina */
body.personalizza-page #configuratore-led {
  width: 100%;
  max-width: none;      /* elimina effetto card */
  margin: 0;            /* niente stacco sopra/sotto */
  padding: 40px 60px;   /* respiro interno, come le altre pagine */
  border-radius: 0;     /* elimina effetto box */
  box-shadow: none;     /* elimina effetto card */
  background: #fff;     /* vero fondo pagina */
}

/* =====================================================
   PERSONALIZZA – SPAZIO VERTICALE DINAMICO
   ===================================================== */

body.personalizza-page #configuratore-led {
  min-height: auto;
  padding-bottom: 80px;
}



/* ==========================================================
   PERSONALIZZA – DISATTIVA HERO VUOTA
   ========================================================== */

   body.personalizza-page .hero {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* ===============================
   FOTO ESEMPI – TRIGGER
   =============================== */

.foto-esempi-trigger {
  margin: 18px auto 10px;
  display: block;
  background: transparent;
  border: 2px solid #000;
  color: #000;
  padding: 10px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.foto-esempi-trigger:hover {
  background: #000;
  color: #fff;
}

@media (max-width: 768px) {
  .foto-esempi-trigger {
    width: 90%;
    max-width: 320px;
  }
}

/* =====================================================
   FOTO ESEMPI – GALLERY 1:1 PREMIUM
   ===================================================== */

   #fotoEsempiOverlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 5000;
    display: none;
  }
  
  #fotoEsempiOverlay.show {
    display: block;
  }
  
  /* contenitore scroll */
  .foto-esempi-track {
    display: flex;
    align-items: center;
  
    height: 100vh;
    padding: 0 12vw;
    gap: 6vw;
  
    overflow-x: auto;
    overflow-y: hidden;
  
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  
  /* immagini 1:1 */
  .foto-esempi-track img {
    flex: 0 0 auto;
  
    width: min(70vh, 70vw);
    aspect-ratio: 1 / 1;
  
    object-fit: cover;
    border-radius: 18px;
  
    scroll-snap-align: center;
  
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  }
  
  /* pulsante chiusura */
  .foto-esempi-close {
    position: fixed;
    top: max(92px, calc(env(safe-area-inset-top) + 92px));
    right: max(16px, env(safe-area-inset-right));
  
    width: 62px;
    height: 62px;
  
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
  
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
  
    z-index: 2147483647;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* ================= MOBILE ================= */
  @media (max-width: 768px) {
    .foto-esempi-track {
      padding: 0 10vw;
      gap: 8vw;
    }
  
    .foto-esempi-track img {
      width: 80vw;
      border-radius: 14px;
    }
  }

  
  /* =====================================================
   FOTO ESEMPI – OVERLAY FULLSCREEN (BASE)
   ===================================================== */

.foto-esempi-overlay {
  position: fixed;
  inset: 0;

  background: #000;
  z-index: 99999;          /* 🔥 sopra TUTTO */
  display: none;

  pointer-events: auto;
}

.foto-esempi-overlay.show {
  display: block;
}


/* =====================================================
   FOTO ESEMPI – PULSANTE CHIUSURA
   ===================================================== */

.foto-esempi-close {
  position: fixed;
  top: max(92px, calc(env(safe-area-inset-top) + 92px));
  right: max(16px, env(safe-area-inset-right));

  width: 62px;
  height: 62px;

  border-radius: 50%;
  border: none;

  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);

  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;

  z-index: 2147483647;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.foto-esempi-close:hover,
.foto-esempi-close:focus-visible {
  background: rgba(255,255,255,0.34);
  outline: none;
}


/* =====================================================
   FOTO ESEMPI – MODALITÀ GRIGLIA (UNA COLONNA)
   ===================================================== */

.foto-esempi-overlay.mode-grid {
  display: block;
}

.foto-esempi-overlay.mode-grid .foto-esempi-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;

  padding: 82px 24px 44px;
  overflow-y: auto;
  overflow-x: hidden;

  width: 100%;
  height: 100%;

  box-sizing: border-box;
}

.foto-esempi-overlay.mode-grid .foto-esempi-track img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
}


/* =====================================================
   FOTO ESEMPI – MOBILE TUNING
   ===================================================== */

@media (max-width: 768px) {
  .foto-esempi-close {
    top: max(82px, calc(env(safe-area-inset-top) + 82px));
    right: max(14px, env(safe-area-inset-right));
  }

  .foto-esempi-overlay.mode-grid .foto-esempi-track {
    grid-template-columns: 1fr;
    padding: 92px 16px 32px;
    gap: 18px;
  }

  .foto-esempi-overlay.mode-grid .foto-esempi-track img {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    border-radius: 12px;
  }
}

/* =================== FINE BLOCCO =================== */

/* =====================================================
   POPUP CARRELLO – FEEDBACK PREMIUM
   ===================================================== */

.cart-feedback-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 10, 10, .48);
  backdrop-filter: blur(5px);
}

.cart-feedback-overlay.show {
  display: flex;
}

.cart-feedback-modal {
  width: min(520px, 100%);
  border: 1px solid rgba(198, 164, 98, .35);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
  overflow: hidden;
}

.cart-feedback-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 26px 26px 18px;
}

.cart-feedback-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111, #333 58%, #c6a462);
  color: #fff;
  font-size: 24px;
  flex: 0 0 auto;
}

.cart-feedback-title {
  margin: 0;
  color: #151515;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
}

.cart-feedback-text {
  margin: 8px 0 0;
  color: #666;
  font-size: 15px;
  line-height: 1.5;
}

.cart-feedback-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 18px 26px 24px;
  border-top: 1px solid #efefef;
}

.cart-feedback-btn {
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  padding: 12px 18px;
  background: #fff;
  color: #1b1b1b;
  font-weight: 900;
  cursor: pointer;
}

.cart-feedback-btn.primary {
  border-color: #111;
  background: #111;
  color: #fff;
}

@media (max-width: 620px) {
  .cart-feedback-overlay {
    align-items: flex-end;
    padding: 16px;
  }

  .cart-feedback-modal {
    border-radius: 20px;
  }

  .cart-feedback-head {
    padding: 24px 20px 16px;
  }

  .cart-feedback-title {
    font-size: 22px;
  }

  .cart-feedback-actions {
    flex-direction: column-reverse;
    padding: 16px 20px 20px;
  }

  .cart-feedback-btn {
    width: 100%;
    padding: 14px 18px;
  }
}


/* =====================================================
   ICONE OPTIONAL PLEXIGLASS – DIMENSIONI RIDOTTE
   ===================================================== */

/* Icone accanto alle opzioni */
.plexi-option img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  opacity: 0.75;
}

/* Icone dentro al popup info */
.info-row img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.85;
}


/* =====================================================
   BLOCCO SCROLL ORIZZONTALE GLOBALE
   ===================================================== */

html,
body {
  max-width: 100%;
  overflow-x: hidden !important;
}


/* =========================================
   TITOLO OPTIONAL – DESKTOP + MOBILE
   ========================================= */


body.personalizza-page .optional-title {
  display: inline-block;          /* 🔥 CHIAVE */
  background: rgba(68, 65, 65, 0.35);
  padding: 6px 16px;
  border-radius: 6px;
}


/* =====================================================
   OPTIONAL – UNIFICATI ALLO STILE "NERO"
   ===================================================== */

/* forza le card verticali a comportarsi come plexi-option */
body.personalizza-page .plexi-option-vertical {
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 8px;

  padding: 12px 16px;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  transition: all 0.25s ease;
}

/* hover identico a Nero */
body.personalizza-page .plexi-option-vertical:hover {
  border-color: #888;
}

/* selezione IDENTICA a Nero */
body.personalizza-page .plexi-option-vertical.selected {
  background-color: #d3f9d8;
  border-color: #4CAF50;
  color: #2c662d;
}

/* titolo come testo Nero */
body.personalizza-page .plexi-option-vertical .plexi-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

/* descrizione più compatta, ma dentro lo stesso box */
body.personalizza-page .plexi-option-vertical .plexi-desc {
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.8;
  margin: 0;
  text-align: center;
}


/* =====================================================
   OPTIONAL – INGRANDISCI ICONE (SAGOMA / TELECOMANDO)
   ===================================================== */

body.personalizza-page .plexi-option-vertical .plexi-icon {
  width: 82px;        /* ← aumenta/diminuisci QUI */
  height: 82px;
  object-fit: contain;

  margin: 6px 0;      /* respiro verticale */
}

/* =====================================================
   OPTIONAL – LUNGHEZZA CAVO
   ===================================================== */

body.personalizza-page .cavo-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 10px 0;
}

body.personalizza-page .cavo-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 2px solid #ccc;
  background: #fff;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

body.personalizza-page .cavo-btn:hover {
  border-color: #888;
}

body.personalizza-page .cavo-value {
  font-size: 16px;
  font-weight: 600;
  min-width: 60px;
  text-align: center;
}


/* =========================================================
   FIX CLICK CAVO → Z-INDEX
   ========================================================= */

/* area optional sopra al bottone */
.optional-section {
  position: relative;
  z-index: 10;
}

/* bottone carrello sotto */
#addToCartBtn,
#goToCartBtn {
  position: relative;
  z-index: 1;
}


/* ==========================================================
   HEADER – BADGE CARRELLO (NUMERO PRODOTTI)
   - Badge rosso sopra l’icona carrello
   - Visibile solo se il carrello contiene elementi
   - Aggiornato via JavaScript (localStorage)
   ========================================================== */

/* ==========================================================
   BADGE CARRELLO – VERSIONE DEFINITIVA
   ========================================================== */

.cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-icon i {
  font-size: 21px;
  line-height: 1;
  display: block;
}

.cart-badge {
  position: absolute;
  top: -7px;
  right: -9px;

  min-width: 18px;
  height: 18px;
  padding: 0 5px;

  background: #e53935;
  color: #fff;

  font-size: 10px;
  font-weight: 700;
  line-height: 1;

  border-radius: 999px;
  border: 2px solid #fff;
  box-sizing: border-box;

  display: none;
  align-items: center;
  justify-content: center;

  pointer-events: none;
  z-index: 3;
}

.cart-badge.visible {
  display: flex;
}





/* ================= ESEMPI SCROLL ================= */

.esempi-section{
  max-width:1400px;
  margin:120px auto;
  padding:0 20px;
  text-align:center;
}

.esempi-section h2{
  font-size:32px;
  margin-bottom:10px;
}

.esempi-section p{
  opacity:0.7;
  margin-bottom:40px;
}

/* scroll orizzontale */

.esempi-scroll{
  display:flex;
  gap:20px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding-bottom:10px;
}

.esempi-scroll::-webkit-scrollbar{
  height:6px;
}

.esempi-scroll img{
  height:380px;
  border-radius:14px;
  cursor:pointer;
  scroll-snap-align:start;
  transition:transform .3s ease;
}

.esempi-scroll img:hover{
  transform:scale(1.05);
}

/* ================= FOTO FULLSCREEN ================= */

.foto-fullscreen{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.95);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:99999;
}

.foto-fullscreen img{
  max-width:90%;
  max-height:90%;
  border-radius:10px;
}

/* contenitore slider */

.esempi-wrapper{
  position:relative;
}

/* frecce */

.freccia{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(0,0,0,0.6);
  border:none;
  color:white;
  font-size:28px;
  width:44px;
  height:44px;
  border-radius:50%;
  cursor:pointer;
  z-index:5;
  transition:0.3s;
}

.freccia:hover{
  background:black;
}

.freccia.sinistra{
  left:-10px;
}

.freccia.destra{
  right:90px;
}

/* =========================
   TITOLI CATEGORIE A PILLOLA
   ========================= */

.pill-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 0 34px;
  border: 2.5px solid #111;
  border-radius: 999px;
  background: transparent;
  color: #222;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  letter-spacing: 1px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.0rem;
  font-weight: 400;
  box-sizing: border-box;
  margin: 0 auto 22px;
}

.config-section {
  text-align: center;
}


.color-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
}

.color-btn {
  position: relative;
}

.color-btn::after {
  content: attr(data-name);
  position: absolute;
  left: 50%;
  top: 38px;
  transform: translateX(-50%);
  font-size: 10px;
  color: #333;
  white-space: nowrap;
}

/* BASE PREVIEW (non rompe nulla) */
.preview-text {
  transition: all 0.2s ease;
  will-change: text-shadow;
  filter: brightness(1.1);
}

/* Classico da vetrina */
.font-Discipuli {
  font-family: 'Discipuli';
  text-shadow:
    0 0 3px rgba(255,255,255,0.9),
    0 0 8px currentColor,
    0 0 18px currentColor;
}

/* Tecnico CNC */
.font-dogma {
  font-family: 'dogma';
  text-shadow:
    0 0 2px rgba(255,255,255,0.8),
    0 0 5px currentColor,
    0 0 10px currentColor;
}

/* Traccia unica */
.font-Rajdhani-Light {
  font-family: 'Rajdhani-Light';
  text-shadow:
    0 0 2px rgba(255,255,255,0.9),
    0 0 6px currentColor,
    0 0 14px currentColor;
}

/* Eleganza fluida */
.font-Nyoetes {
  font-family: 'Nyoetes';
  text-shadow:
    0 0 4px rgba(255,255,255,0.9),
    0 0 12px currentColor,
    0 0 25px currentColor,
    0 0 40px currentColor;
}

/* Linea elegante - FIX glow */
.font-JosefinSans-Thin {
  font-family: 'JosefinSans-Thin';
  text-shadow:
    0 0 5px rgba(255,255,255,1),
    0 0 15px currentColor,
    0 0 30px currentColor,
    0 0 60px currentColor,
    0 0 90px currentColor;
}

/* Futuro luminoso */
.font-Elegant {
  font-family: 'Elegant';
  text-shadow:
    0 0 3px rgba(255,255,255,0.8),
    0 0 7px currentColor,
    0 0 15px currentColor;
}

/* Girotondo */
.font-Bernardo\ Moda {
  font-family: 'Bernardo Moda';
  text-shadow:
    0 0 4px rgba(255,255,255,0.9),
    0 0 12px currentColor,
    0 0 26px currentColor;
}

.font-Bernardo-Moda {
  font-family: 'Bernardo Moda';
  text-shadow:
    0 0 4px rgba(255,255,255,0.9),
    0 0 12px currentColor,
    0 0 26px currentColor;
}

/* Scrittura a mano libera */
.font-Baloo\ Bhaijaan\ 2 {
  font-family: 'Baloo Bhaijaan 2';
  text-shadow:
    0 0 5px rgba(255,255,255,0.9),
    0 0 15px currentColor,
    0 0 30px currentColor,
    0 0 50px currentColor;
}

.font-Baloo-Bhaijaan-2 {
  font-family: 'Baloo Bhaijaan 2';
  text-shadow:
    0 0 5px rgba(255,255,255,0.9),
    0 0 15px currentColor,
    0 0 30px currentColor,
    0 0 50px currentColor;
}

#previewContainer {
  position: relative !important;
  overflow: hidden !important;
}

#plexiglass,
.plexiglass {
  position: absolute !important;
  left: 50%;
  top: 50%;
  max-width: none !important;
  max-height: none !important;
  white-space: normal !important;
  overflow: visible !important;
  transform-origin: center center !important;
}

#preview {
  white-space: pre !important;
  display: inline-block !important;
  line-height: 1.05 !important;
}




  /* Fine */

/* =====================================================
   IPAD ORIZZONTALE - FOTO ESEMPI SEMPRE QUADRATE
   ===================================================== */

@media (min-width: 769px) and (max-width: 1180px) and (orientation: landscape) {
  .foto-esempi-scroll img,
  .gallery-grid img,
  body.insegne-page .insegne-gallery img,
  .targhe-gallery img,
  .foto-esempi-overlay.mode-grid .foto-esempi-track img {
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
  }

  .foto-esempi-scroll img {
    width: 240px !important;
    max-width: 240px !important;
    flex: 0 0 240px !important;
  }
}
  
