/* CSS Document
   Audit UX 2026-07-09 — interventi a design invariato:
   - contrasti: #ff0000 -> #b00000 (prezzi ivati) e #db0000 (bottoni,
     che e' gia' il rosso del gradiente navbar); verde disponibilita'
     -> #1e7e34; label categoria #666 -> #595959;
   - overlay navbar non intercetta piu' i click (pointer-events);
   - focus visibile a tinta rossa (via il ring blu Bootstrap) e
     separato dallo hover (i bottoni non restano "premuti");
   - mobile (<=767): navbar a 2 righe, footer compatto, touch target
     44px, input a 16px (niente auto-zoom iOS), filtri a tutta
     larghezza, chat sopra il footer;
   - breakpoint allineati a Bootstrap (767/768, prima 640/641);
   - nuovi elementi dell'audit: linkScheda, badge SELEZIONATO e
     "Incluso di serie", stato disabilitato, stato "nessun risultato".
   NB il font: l'import carica 400/600/900 e NON il 700 richiesto dai
   bold -> il browser risolve sul 900 Black. E' il tono attuale del
   configuratore, DELIBERATAMENTE conservato: non aggiungere il 700
   all'import senza una decisione esplicita (mezzo layout si
   alleggerirebbe da solo). */
/* Montserrat SUL NOSTRO SERVER (2026-10-24, Riccardo: «metti Montserrat sul
   nostro server nel configuratore, a grafica invariata»): prima arrivava da
   fonts.googleapis.com con un @import, che partiva anche PRIMA del consenso
   cookie (il blocco automatico di iubenda non ferma gli @import CSS). Regole
   copiate tali e quali dal CSS di Google (sottoinsiemi latin e latin-ext,
   stessi pesi dichiarati 400/600/900 + corsivo 400, stessi unicode-range):
   cambia solo l'indirizzo dei file, in ../webfonts/ con i nomi originali di
   Google. Il font e' variabile: un file per il tondo, uno per il corsivo. */
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../webfonts/JTUFjIg1_i6t8kCHKm459Wx7xQYXK0vOoz6jq6R9WXZ0poK5.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../webfonts/JTUFjIg1_i6t8kCHKm459Wx7xQYXK0vOoz6jq6R9WXh0pg.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../webfonts/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../webfonts/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../webfonts/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../webfonts/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../webfonts/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../webfonts/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
body {
  background-color: #efefef;
  background-image: url("../images/sfondo-configuratore.svg");
  background-repeat: no-repeat;
  background-position: right top;
  background-blend-mode: luminosity;
  background-size: 1000px;
  background-attachment: fixed;
  font-family: 'Montserrat', sans-serif; }

.container#contGen {
  padding-top: 150px;
  padding-bottom: 150px; }
  .container#contGen .dispo {
    font-size: .8rem; }

.caricamentoConfig {
  color: #595959;
  padding: 2rem 0; }

.navbar {
  background: #4d0000;
  background: -webkit-linear-gradient(left, #4d0000 0%, #4d0000 10%, #db0000 100%);
  background: -o-linear-gradient(left, #4d0000 0%, #4d0000 10%, #db0000 100%);
  background: linear-gradient(to right, #4d0000 0%, #4d0000 10%, #db0000 100%); }
  .navbar h1 {
    font-size: 24px;
    color: white;
    margin-bottom: 0; }
  .navbar .navbar-brand {
    padding: 1rem 2rem; }
  .navbar .overlay {
    display: block;
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    background-image: url("../images/sfondo-configuratore.svg");
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 1000px;
    width: 100%;
    height: 114px;
    /* decorativo: non deve mai intercettare click/tap (su mobile
       sbordava sotto la barra creando 48px di zona morta) */
    pointer-events: none; }
  .navbar .btn-primary {
    z-index: 100; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: bold; }

.btn.btn-primary,
.btn.btn-primary:link,
.btn.btn-primary:visited {
  background-color: #efefef;
  color: #333;
  border-color: #333;
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 0; }
  .btn.btn-primary:active, .btn.btn-primary:hover, .btn.btn-primary.active,
  .btn.btn-primary:link:active,
  .btn.btn-primary:link:hover,
  .btn.btn-primary:link.active,
  .btn.btn-primary:visited:active,
  .btn.btn-primary:visited:hover,
  .btn.btn-primary:visited.active {
    background-color: #333;
    color: #ffffff;
    border-color: #333; }

.btn.btn-outline-primary,
.btn.btn-outline-primary:link,
.btn.btn-outline-primary:visited {
  background-color: #efefef;
  color: #333;
  border-color: #333;
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 0; }
  .btn.btn-outline-primary:active, .btn.btn-outline-primary:hover, .btn.btn-outline-primary.active,
  .btn.btn-outline-primary:link:active,
  .btn.btn-outline-primary:link:hover,
  .btn.btn-outline-primary:link.active,
  .btn.btn-outline-primary:visited:active,
  .btn.btn-outline-primary:visited:hover,
  .btn.btn-outline-primary:visited.active {
    background-color: #333;
    color: #ffffff;
    border-color: #333; }

.btn.btn-secondary,
.btn.btn-secondary:link,
.btn.btn-secondary:visited {
  background-color: #db0000;
  color: #ffffff;
  border-color: #333;
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 0; }
  .btn.btn-secondary:active, .btn.btn-secondary:hover, .btn.btn-secondary.active,
  .btn.btn-secondary:link:active,
  .btn.btn-secondary:link:hover,
  .btn.btn-secondary:link.active,
  .btn.btn-secondary:visited:active,
  .btn.btn-secondary:visited:hover,
  .btn.btn-secondary:visited.active {
    background-color: #333;
    color: #ffffff;
    border-color: #333; }

.btn.btn-outline-secondary,
.btn.btn-outline-secondary:link,
.btn.btn-outline-secondary:visited {
  background-color: #fff; }
  .btn.btn-outline-secondary:active, .btn.btn-outline-secondary:hover, .btn.btn-outline-secondary.active,
  .btn.btn-outline-secondary:link:active,
  .btn.btn-outline-secondary:link:hover,
  .btn.btn-outline-secondary:link.active,
  .btn.btn-outline-secondary:visited:active,
  .btn.btn-outline-secondary:visited:hover,
  .btn.btn-outline-secondary:visited.active {
    background-color: #333;
    color: #ffffff;
    border-color: #333; }

/* focus visibile senza il ring blu Bootstrap e senza incollare lo
   stato "premuto" dopo il click */
.btn:focus,
.btn.focus {
  box-shadow: none; }
.btn:focus-visible,
.linkScheda:focus-visible,
.linkReset:focus-visible {
  outline: 2px solid #b00000;
  outline-offset: 2px; }

@media only screen and (min-width: 768px) {
  .btConfig {
    position: relative;
    max-width: 220px;
    text-align: left;
    line-height: 1rem; }
    .btConfig .fa {
      position: absolute;
      right: 12px;
      top: 12px;
      font-size: 1.4rem; }

  .btShopCart {
    position: relative;
    max-width: 180px;
    text-align: left;
    line-height: 1rem; }
    .btShopCart .fa {
      position: absolute;
      right: 12px;
      top: 12px;
      font-size: 1.4rem; } }
.selProduct {
  background-color: #fff;
  padding: .5rem 1rem; }
  .selProduct:not(:first-child) {
    margin-top: .5rem; }

.altProduct {
  background-color: #EBD0D0;
  padding: .5rem 1rem; }
  .altProduct:not(:first-child) {
    margin-top: .5rem; }

.selProduct strong {
  color: #595959; }
/* stesso grigio del riepilogo: i nomi in #333 pieno sparavano
   (feedback Riccardo 2026-07-09) */
.altProduct strong {
  color: #595959; }
.selProduct .imgProd,
.altProduct .imgProd {
  width: 100px;
  height: 100px;
  text-align: center;
  border: 1px solid #ccc;
  background-color: #fff;
  cursor: pointer; }
.selProduct .text-left,
.altProduct .text-left {
  cursor: pointer; }
/* riga vuota: cliccabile per intero (apre il pannello come SELEZIONA) */
.selProduct:not([data-id]) {
  cursor: pointer; }
.selProduct .dispo,
.altProduct .dispo {
  font-weight: 600; }
/* desktop: la disponibilita' occupa una colonna a larghezza fissa
   (dimensionata su "Arrivo previsto in circa N giorni", il testo piu'
   lungo) cosi' i bottoni "Scheda tecnica" sono tutti allineati */
@media (min-width: 768px) {
  .selProduct .dispo,
  .altProduct .dispo {
    display: inline-block;
    min-width: 275px; } }
.selProduct em,
.altProduct em {
  font-size: .8rem; }

/* stati e micro-elementi dell'audit 2026-07-09 */
.dispo.dispo-attesa {
  color: #595959; }
.dispo.text-success {
  color: #1e7e34 !important; }
/* scheda tecnica: mini-bottone squadrato nel linguaggio dei bottoni del
   configuratore (niente link sottolineato col chevron), in linea a
   destra della disponibilita' */
.linkScheda {
  display: inline-block;
  margin-left: .5rem;
  padding: .2rem .6rem;
  border: 1px solid #333;
  background-color: #efefef;
  color: #333;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .7rem;
  text-transform: uppercase;
  vertical-align: middle;
  cursor: pointer;
  user-select: none; }
  .linkScheda:hover {
    background-color: #333;
    color: #fff; }
/* prezzi sotto la disponibilita' (solo mobile, d-md-none nel twig) */
.prezziMobile {
  margin-top: .25rem; }
/* WhatsApp nativo nella barra (solo mobile: d-md-none nel markup);
   sostituisce la linguetta Zotabox che copriva le righe prodotto */
.btnWhatsapp,
.btnWhatsapp:link,
.btnWhatsapp:visited {
  background-color: #25D366;
  color: #fff;
  border-color: #1da851;
  border-radius: 0; }
  .btnWhatsapp:hover,
  .btnWhatsapp:active {
    background-color: #1da851;
    color: #fff; }
/* widget WhatsApp flottante nativo (desktop, d-none d-md-block sul
   contenitore): stessa posizione della vecchia Social Tab, ma senza
   script esterni. z-index sotto navbar/footer (1030) e backdrop modali
   (1040): le modali lo coprono, com'e' giusto */
.whatsappWidget {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1029; }
.whatsappFlottante,
.whatsappFlottante:link,
.whatsappFlottante:visited {
  display: flex;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #25D366;
  color: #fff;
  font-size: 1.7rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  text-decoration: none; }
  .whatsappFlottante:hover,
  .whatsappFlottante:focus {
    background-color: #1da851;
    color: #fff;
    text-decoration: none; }
/* pannello al passaggio: QR (per chi non ha WhatsApp sul pc) + chat
   web, come il widget di produzione. Il ::after fa da ponte sul vuoto
   tra pannello e cerchio, cosi' l'hover non cade a meta' strada */
.whatsappPannello {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  width: 194px;
  padding: 12px 14px 14px;
  background-color: #fff;
  border: 1px solid #e2e2e2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, visibility .15s ease; }
  .whatsappPannello::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 0;
    width: 14px;
    height: 100%; }
.whatsappWidget:hover .whatsappPannello,
.whatsappWidget:focus-within .whatsappPannello {
  opacity: 1;
  visibility: visible; }
.whatsappTitolo {
  margin-bottom: .5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #333; }
  .whatsappTitolo .fab {
    color: #25D366;
    font-size: 1.1rem;
    vertical-align: -1px; }
.whatsappPannello img {
  display: block;
  margin: 0 auto; }
.whatsappDidascalia {
  margin: .5rem 0;
  font-size: .75rem;
  color: #595959; }
.whatsappWebBtn,
.whatsappWebBtn:link,
.whatsappWebBtn:visited {
  display: block;
  padding: .4rem .5rem;
  background-color: #25D366;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .75rem;
  text-transform: uppercase;
  text-decoration: none; }
  .whatsappWebBtn:hover,
  .whatsappWebBtn:focus {
    background-color: #1da851;
    color: #fff;
    text-decoration: none; }
/* percorso guidato: l'invito rosso sul prossimo passo (tondo, non
   corsivo: regola editoriale "rosso mai corsivo") */
.prossimoPasso {
  color: #b00000;
  font-weight: 600;
  font-style: normal; }
.badgeSelezionato {
  display: inline-block;
  margin-top: .25rem;
  padding: .25rem .75rem;
  border: 1px solid #333;
  background-color: #333;
  color: #fff;
  font-weight: bold;
  font-size: .8rem;
  text-transform: uppercase; }
.badgeObbligatorio {
  display: inline-block;
  margin-top: .25rem;
  padding: .25rem .75rem;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #595959;
  font-weight: bold;
  font-size: .8rem;
  text-transform: uppercase; }
.nessunRisultato {
  color: #595959; }
.prodottoSelezionato {
  background-color: #f6e4e4; }

.searchBar {
  background-color: #EBD0D0;
  padding: .75rem 1rem;
  margin-bottom: 0; }
  .searchBar .form-control {
    border-radius: 0; }

.prezzoSI {
  color: #9C0101;
  font-weight: 600; }

.prezzoCI {
  color: #b00000;
  font-weight: 600; }

.modal-dialog {
  width: 90%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto; }

.footer {
  border: 1px solid #ccc; }
  .footer .col,
  .footer .col-auto {
    padding: 1rem 2rem; }
    .footer .col:not(:last-child),
    .footer .col-auto:not(:last-child) {
      border-right: 1px solid #ccc; }
  .footer .prezzoCI,
  .footer .prezzoSI {
    font-weight: bold;
    line-height: 1.2;
    font-size: 24px;
    white-space: nowrap; }
    .footer .prezzoCI span,
    .footer .prezzoSI span {
      text-transform: uppercase;
      color: #333;
      font-size: 14px; }
  .footer .delivery .fa {
    color: #ACACAC;
    float: left; }
  .footer .delivery span {
    display: block;
    max-width: 170px;
    line-height: 1.2;
    color: #707070;
    font-size: .9rem; }

@media only screen and (max-width: 767px) {
  .navbar .navbar-brand {
    padding: 0; }
  /* attiva il layout navbar a 2 righe gia' previsto (il selettore
     originale .navbar .navbar-expand non matchava mai) */
  .navbar.navbar-expand .navbar-collapse {
    display: block !important; }
  .navbar h1 {
    line-height: 1.3rem;
    font-size: 1.3rem; }
  .navbar a.btn-primary {
    width: 100%;
    line-height: 1rem;
    font-size: .8rem; }

  .container#contGen {
    padding-top: 100px;
    padding-bottom: 260px; }

  .selProduct,
  .altProduct {
    font-size: .9rem;
    line-height: 1.1rem; }

  .altProduct {
    padding-bottom: 2rem; }

  /* touch target: bottoni riga ~44px e distanza tra ELIMINA e CAMBIA
     (erano a 3.8px: un pollice impreciso buttava la selezione) */
  .selProduct .btn-sm,
  .altProduct .btn-sm {
    padding: .5rem .75rem; }
  .selProduct .switchButton {
    margin-left: .5rem; }
  /* il duplicato mobile di "Scheda tecnica" sta nella riga dei bottoni:
     stesso passo dei btn-sm cosi' i due bottoni sono allineati */
  .linkSchedaMobile {
    margin-left: 0;
    margin-right: .25rem;
    padding: .5rem .6rem; }

  /* niente auto-zoom di Safari iOS al focus (serve >=16px) */
  #selectable .form-control {
    font-size: 16px; }
  /* filtri a tutta larghezza nella fascia rosa */
  #selectable .form-group,
  #selectable .form-control {
    width: 100%; }
  #selectable .form-control {
    margin-bottom: .5rem; }

  /* footer compatto: totali a 20px e mai a capo (con i totali a 5
     cifre il footer arrivava a rubare il 28% dello schermo) */
  .footer .prezzoCI,
  .footer .prezzoSI {
    font-size: 20px; }
  .footer .col, .footer .col-auto {
    width: 100%;
    padding: .5rem 1rem;
    border-right: 0px solid #ccc !important; }
    .footer .col.prezzoCI, .footer .col.prezzoSI, .footer .col-auto.prezzoCI, .footer .col-auto.prezzoSI {
      width: 49%; }
  .footer .delivery span {
    max-width: none; }
  .footer .btShopCart {
    width: 100%; }

  /* preventivo + WhatsApp affiancati nella barra */
  .navbar .contattiNav .btn-primary {
    flex: 1 1 auto; }
  .navbar .btnWhatsapp {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    padding: 0;
    font-size: 1.3rem; } }

/* ============================================================
   Porting PS9 (2026-07-09) — richiesta Riccardo: le miniature
   rigenerate su PS9 non hanno i margini "cotti dentro" dei file di
   produzione e riempivano il riquadro bordo a bordo (brutte specie
   le RAM dei notebook). Respiro uniforme di 10px dentro il box
   100x100 e contenimento su entrambi gli assi.
   ============================================================ */
.selProduct .imgProd img,
.altProduct .imgProd img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  padding: 10px;
}
