@charset "UTF-8";
/* COLOR VARIABLES
============================================= */
/* BASE */
/* GREY */
/* BLUE */
/* AZURE */
/* ORANGE */
/* YELLOW */
/* ============================================= */
/*$marginMenu: 150px;*/
/* COLORS
============================================= */
/* BG IMAGES
============================================= */
/* FLEXBOX
============================================= */
/* GRID
============================================= */
/* BOX SHADOW
============================================= */
/* OPACITY
============================================= */
/* TRANSITION
============================================= */
/* TRANSFORM
============================================= */
/* BORDER RADIUS
============================================= */
/* TEXT TRANSFORM
============================================= */
/* FONT
============================================= */
/* MANROPE
   =============================================
   font-display: optional e NON swap.

   Con "swap" il browser disegna subito col font di sistema e poi sostituisce
   Manrope quando arriva: la sostituzione e' per definizione un ricalcolo delle
   larghezze. Sul menu si vedeva come un guizzo — la riga di voci e' larga 18px
   in piu' col font vero, e avendo justify-content:center ogni voce si spostava
   di ~9px.

   Con "optional" il browser da al font ~100ms: se e' pronto lo usa da subito,
   se non lo e' tiene il fallback per QUESTA visita e non sostituisce piu'.
   In nessuno dei due casi il layout si muove.

   Perche' funziona bene qui: i woff2 sono self-hosted e pesano 14KB l'uno, e
   sono precaricati in _css.php (400, 500, 700), quindi la finestra dei 100ms
   la rispettano praticamente sempre.

   Il compromesso, da sapere: alla primissima visita con cache vuota e rete
   lenta la pagina puo' restare col font di sistema fino alla navigazione
   successiva. E' il prezzo di non avere spostamenti.
   ============================================= */
/* manrope-regular - latin */
@font-face {
  font-display: optional; /* vedi la nota sopra il primo @font-face */
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  src: url("/library/fonts/manrope-v20-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* manrope-500 - latin */
@font-face {
  font-display: optional; /* vedi la nota sopra il primo @font-face */
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  src: url("/library/fonts/manrope-v20-latin-500.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* manrope-600 - latin */
@font-face {
  font-display: optional; /* vedi la nota sopra il primo @font-face */
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  src: url("/library/fonts/manrope-v20-latin-600.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* manrope-700 - latin */
@font-face {
  font-display: optional; /* vedi la nota sopra il primo @font-face */
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  src: url("/library/fonts/manrope-v20-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* manrope-800 - latin */
@font-face {
  font-display: optional; /* vedi la nota sopra il primo @font-face */
  font-family: "Manrope";
  font-style: normal;
  font-weight: 800;
  src: url("/library/fonts/manrope-v20-latin-800.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* SCROLLBAR
============================================= */
/* Barra di scroll sottile, aspetto simile a quella di macOS.
   Va dichiarata due volte: `scrollbar-width`/`scrollbar-color` e' lo standard
   (Firefox e Chromium 121+), i pseudo-elementi ::-webkit-scrollbar coprono
   Safari e i Chromium precedenti. Dove valgono entrambi vincono i pseudo.

   NON usarlo con un selettore universale: i ::-webkit-scrollbar hanno la
   precedenza su `scrollbar-width: none`, quindi farebbero ricomparire le barre
   nascoste di proposito (.filtri-shop, .menu-container, ecc.). */
/*@charset "UTF-8";*/
.about-us.first {
  height: calc(100vh - 270px);
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  flex-wrap: nowrap;
  padding-top: 20px;
}

body {
  overflow: hidden;
}

#loader {
  position: fixed;
}

.chat-container {
  height: calc(100vh - 330px);
  margin-top: 120px;
}

#loader .loaderContent {
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex-wrap: nowrap;
}

.img-container {
  height: 50%;
  aspect-ratio: 1/1;
}

#chat {
  background: #FFFFFF;
  padding: 10px;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  margin-bottom: 10px;
  border-radius: 8px;
}

.question-container {
  position: fixed;
  gap: 10px;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 999;
}
.question-container .chat-box {
  height: 170px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
  background: #1D428A;
  background-image: url("/library/pagination/ui/ai.svg");
  background-repeat: no-repeat;
  background-position: 14px 45px;
  padding-left: 10px;
  box-sizing: border-box;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  border-radius: 20px;
  padding: 15px;
}
.question-container .chat-box .first {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  position: relative;
}
.question-container .chat-box .first .btn {
  position: absolute;
  right: 10px;
  top: 45px;
}
.question-container .chat-box .first .btn img {
  -webkit-transform: rotate(-90deg);
  -moz-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  -o-transform: rotate(-90deg);
  transform: rotate(-90deg);
  will-change: transform;
  filter: brightness(0) invert(1) drop-shadow(0.2px 0 0 #FFFFFF) drop-shadow(-0.2px 0 0 #FFFFFF) drop-shadow(0 0.2px 0 #FFFFFF) drop-shadow(0 -0.2px 0 #FFFFFF);
}
.question-container .chat-box p {
  color: #FFFFFF;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
}
.question-container .chat-box p a, .question-container .chat-box p .a {
  color: #FFFFFF;
}
.question-container #question {
  padding: 10px 15px;
  height: 100px;
  width: calc(100% - 50px);
  min-width: 0;
  border-radius: 15px;
  border: none;
  color: #000000;
  font-family: "Manrope";
  font-style: normal;
  /*max-width: calc(100% - 80px);*/
  font-size: 14px;
}
.question-container .btn {
  margin: 0;
  flex-shrink: 0;
}
.question-container .btn.sending {
  opacity: 0.3;
  pointer-events: none;
}

/* Separatori del racconto.
   La riga serve a staccare il testo dalle schede, non a incorniciare ogni
   paragrafo: con una risposta di solo testo ogni paragrafo e' un .blk-text a se'
   e il bordo su tutti faceva il foglio a righe.
   Quindi la riga si disegna SOLO nel punto di passaggio, e una volta sola: il
   selettore fratello prende l'elemento che cambia natura rispetto a quello
   prima di se' (testo dopo una scheda, o scheda dopo il testo). Fra due
   paragrafi consecutivi, o fra due schede consecutive, non compare nulla. */
#chat .message.bot > .blk-text + :not(.blk-text),
#chat .message.bot > :not(.blk-text) + .blk-text {
  border-top: 1px solid #E0E1E3;
  margin-top: 24px;
  padding-top: 24px;
}

/*.question-container .btn {
  margin: 0;
  padding: 0;
  width: 60px;
  height: 60px;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  flex-wrap: nowrap;
  border: none;
  cursor: pointer;
  border: 1px solid #0071CE;
}*/
/*

.question-container .btn#reset {
  background-color: transparent;
  border: 1px solid #FFFFFF;
}

.question-container .btn:hover {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #1D428A;
}
*/
.message {
  margin: 20px 0;
  padding: 10px 20px;
  max-width: 80%;
  clear: both;
  position: relative;
}
.message .btn:not(.orange-btn):not(.blue-btn) {
  margin: 0;
  padding: 0;
  background: none;
  font-family: "NeueHaasGrotesk-Bold", Arial, Helvetica, Clean, sans-serif;
  color: #F88C1D;
}
.message p {
  margin: 10px 0;
}
.message a.gallery {
  display: inline-block;
  float: none;
  width: 30%;
  margin: 1%;
}

.message a.gallery .six {
  width: 100%;
}

.message .request-form {
  margin: 20px 0;
}

.message .request-form section {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 15px;
}

.message .request-form section div:not(.six) {
  width: 100%;
}

.user {
  background-color: #0071CE;
  color: #FFFFFF;
  float: right;
  text-align: right;
  border-radius: 12px 12px 12px 0;
}

.user::before {
  position: absolute;
  bottom: 0;
  content: "";
  width: 0;
  height: 0;
  left: -12px;
  border-bottom: 18px solid #0071CE;
  border-left: 20px solid transparent;
}

.bot {
  background-color: #F9FAFC;
  color: #000000;
  float: left;
  text-align: left;
  border-radius: 12px 12px 0 12px;
}

.bot::before {
  position: absolute;
  right: -12px;
  bottom: 0;
  content: "";
  width: 0;
  height: 0;
  border-bottom: 18px solid #F9FAFC;
  border-right: 20px solid transparent;
}

.display-flex {
  align-items: center;
}

body:not(.json) h1 {
  font-size: clamp(22px, 4vw, 36px);
  line-height: clamp(32px, 4vw, 46px);
}

body:not(.json) h2 {
  color: #000000;
  font-size: clamp(16px, 4vw, 22px);
  line-height: clamp(22px, 4vw, 30px);
}

body:not(.json) h3 {
  margin: 20px 0 10px 0;
}

body:not(.json) li h1, body:not(.json) li h2, body:not(.json) li h3, body:not(.json) li h4 {
  margin: 0px 0 10px 0;
}

body:not(.json) .gallery {
  width: 100%;
}

body:not(.json) .img-container {
  margin: 5px 0;
  object-fit: contain;
  height: auto;
  aspect-ratio: inherit;
}

body:not(.json) .img-container.six {
  width: 100% !important;
}

/* ===== Chat AI: bubble del bot a larghezza piena ===== */
.message.bot {
  max-width: 100%;
}

/* ===== Chat AI: testo del racconto ===== */
.message.bot .blk-text p {
  margin: 0.6em 0;
  line-height: 1.55;
}

.message.bot .blk-text a {
  color: #0071CE;
  text-decoration: underline;
}

.message.bot .blk-text ul {
  margin: 0.6em 0;
  padding-left: 1.2em;
}

.message.bot .blk-text li {
  margin: 0.25em 0;
  line-height: 1.5;
}

/* ===== Chat AI: indicatore "sta scrivendo" ===== */
.ai-typing {
  clear: both;
  float: left;
  display: flex;
  gap: 6px;
  padding: 14px 16px;
  align-items: center;
}

.ai-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9AA7B4;
  opacity: 0.25;
  animation: ai-typing-pulse 1.4s infinite ease-in-out;
}

.ai-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.ai-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes ai-typing-pulse {
  0%, 100% {
    opacity: 0.25;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}
/* ===== Chat AI: rivelazione progressiva (regia del racconto) ===== */
.ai-reveal {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(8px);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.45s ease;
}

.ai-reveal.in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ===== Chat AI: mappa sede ===== */
.ai-mappa {
  margin: 14px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E3E7EE;
  width: 100%;
}

.ai-map-canvas {
  width: 100%;
  min-width: 100%;
  height: 380px;
}

/* ===== Chat AI: blocco form richiesta info ===== */
.ai-form {
  margin: 16px 0;
}

.ai-form #richiesta {
  background: #FFFFFF;
  border: 1px solid #E3E7EE;
  border-radius: 12px;
  padding: 18px 20px;
}

.ai-form #okForm {
  background: #EAF7EE;
  border: 1px solid #BBE5C7;
  border-radius: 12px;
  padding: 16px 20px;
}

/* ===== Chat AI: schede prodotto ===== */
.ai-card {
  display: flex;
  gap: 16px;
  margin: 16px 0;
  background: #FFFFFF;
  border: 1px solid #E3E7EE;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ai-card:hover {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.ai-card-imgwrap {
  display: none;
  /*flex: 0 0 160px;
  width: 160px;
  background: #F2F5F9;
  display: flex;
  align-items: center;
  justify-content: center;*/
}

.ai-card-img {
  width: 100%;
  height: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
}

.ai-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  flex: 1 1 auto;
}

.ai-card-cat {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6B7785;
}

.ai-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1D428A;
  text-decoration: none;
}

.ai-card-title:hover {
  text-decoration: underline;
}

.ai-card-abstract {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  margin: 2px 0 0;
}

.ai-card-prezzo {
  font-size: 15px;
  font-weight: 700;
  color: #0071CE;
  margin-top: 4px;
}

/* ===== Chat AI: card news/blog (layout articolo) ===== */
.ai-card-news {
  flex-direction: column;
}

.ai-card-news .ai-news-img {
  display: block;
  width: 100%;
  height: 190px;
  background-size: cover;
  background-position: center;
}

.ai-news-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0071CE;
  font-weight: 700;
}

/* ===== Chat AI: card prodotti (foto a sinistra + gallery) ===== */
.ai-brands {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.ai-brand-logo {
  height: 30px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.ai-brand-name {
  font-size: 13px;
  color: #6B7785;
  font-weight: 600;
}

.ai-gallery {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

/* specificita' alta + reset di .message a.gallery (width:30%/margin:1%) */
.message .ai-gallery a.ai-gallery-main {
  display: block;
  width: 100%;
  height: 240px;
  margin: 0;
  float: none;
  border-radius: 8px;
  cursor: zoom-in;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #F7F9FC;
}

.ai-gallery-thumbs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.message .ai-gallery a.ai-gallery-thumb {
  display: block;
  width: 52px;
  height: 52px;
  margin: 0;
  float: none;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.55;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #fff;
  border: 2px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.message .ai-gallery a.ai-gallery-thumb:hover {
  opacity: 1;
  border-color: #0071CE;
}

@media (max-width: 1279px) {
  .ai-shop-table {
    font-size: 12px;
  }
  .ai-shop-table th {
    padding: 8px;
  }
  .ai-shop-table td {
    padding: 8px;
  }
  .ai-shop-table tr td:not(:first-child) {
    padding-left: 8px;
  }
  /* ---------------- */
  .ai-shop-table.responsive,
  .ai-shop-table.responsive tbody {
    display: block;
    width: 100%;
  }
  .ai-shop-table.responsive tr {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    border-top: 1px solid #82898F;
  }
  .ai-shop-table.responsive tr:nth-child(2) {
    border-top: 0;
  }
  .ai-shop-table.responsive tr:nth-child(1) {
    border-top: 0;
  }
  .ai-shop-table.responsive th,
  .ai-shop-table.responsive td {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.6em 0.8em;
  }
  .ai-shop-table.responsive td {
    border-bottom: 1px solid #F7F7F7;
  }
  /* spacer invisibile che forza l'a capo */
  .ai-shop-table.responsive tr::after {
    content: "";
    order: 1;
    flex: 0 0 100%;
    height: 0;
  }
  .ai-shop-table.responsive td.ai-shop-prezzo-cell {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto; /* spinge la coppia a destra */
    font-weight: 600;
    border-bottom: 0;
    padding-top: 12px;
  }
  .ai-shop-table.responsive td.ai-cart-cell {
    order: 3;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5em;
    border-bottom: 0;
    padding-bottom: 15px;
  }
  /* intestazione: via le ultime due celle */
  .ai-shop-table.responsive th:nth-last-child(-n+2) {
    display: none;
  }
}
@media (max-width: 1024px) {
  table.ai-shop-table.responsive {
    display: block !important;
  }
  table.ai-shop-table.responsive thead {
    display: none !important;
  }
  table.ai-shop-table.responsive tbody {
    display: block !important;
  }
  table.ai-shop-table.responsive tbody tr {
    display: block !important;
    margin-bottom: clamp(30px, 2.5vw, 50px);
    /*border-bottom: 2px solid $grey-100;*/
    border-bottom: 1px solid #E0E1E3;
  }
  table.ai-shop-table.responsive tbody tr:first-child {
    display: none !important;
  }
  table.ai-shop-table.responsive tbody tr td {
    border-bottom-style: dotted !important;
    border-radius: 0 !important;
  }
  table.ai-shop-table.responsive tbody tr td:not(.nomobile) {
    display: flex !important;
    width: auto !important;
    justify-content: space-between;
    padding: 8px 0 !important;
    border-bottom: 1px solid #E0E1E3;
    align-items: center;
  }
  table.ai-shop-table.responsive tbody tr td:not(.nomobile)::before {
    content: attr(data-label);
    font-weight: 700;
    flex-shrink: 0;
    margin-right: 16px;
    white-space: nowrap;
  }
  table.ai-shop-table.responsive tbody tr td:not(.nomobile).txtright {
    justify-content: flex-end;
    gap: 8px;
  }
}
@media (max-width: 600px) {
  .ai-card-prodotto {
    flex-direction: column;
  }
  .ai-gallery {
    flex-basis: auto;
  }
  .ai-gallery-main {
    height: 260px;
  }
}
/* ===== Chat AI: card progetti (foto grande) ===== */
.ai-card-progetto {
  flex-direction: column;
}

.ai-card-progetto .ai-progetto-img {
  display: block;
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
}

.ai-progetto-sub {
  font-size: 14px;
  color: #6B7785;
}

/* ===== Chat AI: meta e-shop (disponibilità / prezzo riservato) ===== */
.ai-shop-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.ai-shop-meta .ai-card-prezzo {
  margin-top: 0;
}

.ai-shop-disp {
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 4px;
}

.ai-shop-disp.ok {
  background: #EAF7EE;
  color: #1E7E34;
}

.ai-shop-disp.ko {
  background: #FBEAEA;
  color: #B23A3A;
}

.ai-shop-locked {
  font-size: 13px;
  color: #6B7785;
  font-style: italic;
}

/* ===== Chat AI: scheda tecnica e-shop (attributi) ===== */
.ai-shop-attrs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
  margin: 8px 0 0;
  font-size: 13px;
}

.ai-shop-attrs dt {
  color: #6B7785;
}

.ai-shop-attrs dd {
  margin: 0;
  color: #222;
  font-weight: 600;
}

/* ===== Chat AI: pagina istituzionale (fasce alternate) ===== */
.ai-pagina {
  margin: 12px 0;
}

.ai-pagina-titolo {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #1D428A;
  text-decoration: none;
  margin-bottom: 8px;
}

.ai-pagina-titolo:hover {
  text-decoration: underline;
}

.ai-fascia {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 14px 0;
}

.ai-fascia.reverse {
  flex-direction: row-reverse;
}

.ai-fascia-img {
  flex: 0 0 48%;
  align-self: stretch;
  min-height: 220px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
}

.ai-fascia.centrato {
  flex-direction: column;
  text-align: center;
}

.ai-fascia.centrato .ai-fascia-img {
  width: 100%;
  flex-basis: auto;
  height: 200px;
}

.ai-fascia-txt {
  flex: 1 1 0;
  min-width: 0;
}

.ai-fascia-txt h4 {
  margin: 0 0 4px;
  font-size: 17px;
}

.ai-fascia-txt h5 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #6B7785;
  font-weight: 600;
}

.ai-fascia-txt p {
  margin: 0;
  line-height: 1.55;
  font-size: 14px;
}

@media (max-width: 600px) {
  .ai-fascia, .ai-fascia.reverse {
    flex-direction: column;
  }
  .ai-fascia-img {
    width: 100%;
    flex-basis: auto;
    height: 180px;
  }
}
/* ===== Chat AI: tabella articoli e-shop (padre + righe) ===== */
.ai-shop-table-wrap {
  margin: 12px 0 4px;
  overflow-x: auto;
}

.ai-shop-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}
.ai-shop-table th, .ai-shop-table td {
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.ai-shop-table th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 2px solid #E3E7EE;
  color: #6B7785;
  font-weight: 700;
  white-space: normal;
  letter-spacing: -3%;
}
.ai-shop-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #EEF1F5;
  vertical-align: top;
  letter-spacing: -3%;
}
.ai-shop-table tr td:not(:first-child) {
  padding-left: 10px;
}

.ai-shop-table tbody tr:hover {
  background: #F7F9FC;
}

.ai-shop-table .ai-shop-disp {
  font-size: 12px;
  padding: 1px 7px;
  border-radius: 4px;
}

.ai-shop-prezzo-cell {
  font-weight: 700;
  white-space: nowrap;
}

.ai-cart-cell {
  white-space: nowrap;
}

.ai-cart-qty {
  width: 46px;
  padding: 4px;
  border: 1px solid #D6DCE3;
  border-radius: 5px;
  font-size: 13px;
}

.ai-cart-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 6px;
  border-radius: 50%;
  background: #F88C1D;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  vertical-align: middle;
  text-decoration: none;
}

.ai-cart-add:hover {
  background: #E07D12;
}

.ai-cart-add.done {
  background: #1E7E34;
}

.ai-cart-add.loading {
  opacity: 0.5;
  pointer-events: none;
}

.ai-cart-add.disabled {
  background: #B7C0CA;
  pointer-events: none;
  cursor: default;
}

.ai-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* .ai-card-btn non esiste piu': i pulsanti delle schede (pagine istituzionali,
   categoria e-shop, duplicazione ordine) usano ora "btn small-btn blue-btn",
   cioe' gli stessi bottoni del sito, come le card di prodotti e realizzazioni. */
@media (max-width: 600px) {
  .ai-card {
    flex-direction: column;
  }
  .ai-card-imgwrap {
    width: 100%;
    flex-basis: auto;
    height: 180px;
  }
}
/* ===== Chat AI: ordini area riservata + duplicazione ===== */
.ai-card-ordine, .ai-card-duplica {
  display: block;
}

.ai-ord-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.ai-ord-num {
  font-weight: 700;
  color: #16243B;
}

.ai-ord-data {
  color: #6B7688;
  font-size: 13px;
}

.ai-ord-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #44505F;
  font-size: 14px;
  margin-bottom: 10px;
}

.ai-ord-meta strong {
  color: #16243B;
}

.ai-ord-stato {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  background: #EDF0F5;
  color: #44505F;
}

.ai-ord-stato.ok {
  background: #E3F5E9;
  color: #1C7C43;
}

.ai-ord-stato.attesa {
  background: #FFF3DC;
  color: #9A6A00;
}

.ai-ord-stato.ko {
  background: #FBE3E3;
  color: #B3261E;
}

.ai-dup-riepilogo {
  margin: 10px 0 4px;
  font-size: 14px;
  color: #44505F;
}

.ai-dup-stato {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
}

.ai-dup-stato.ok {
  background: #E3F5E9;
  color: #1C7C43;
}

.ai-dup-stato.parziale {
  background: #FFF3DC;
  color: #9A6A00;
}

.ai-dup-stato.esaurito {
  background: #FBE3E3;
  color: #B3261E;
}

.ai-dup-add.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* il verde di conferma deve battere .blue-btn e il suo :hover: due classi non
   bastavano piu' da quando il pulsante e' un .btn del sito, da qui .btn in testa */
.btn.ai-dup-add.done,
.btn.ai-dup-add.done:hover {
  background: #1C7C43;
}

.ai-dup-vuoto {
  color: #6B7688;
  font-size: 14px;
}

/* ===== Chat AI: menu modello "drop-up" accanto all'input ===== */
.question-container .ai-model {
  position: relative;
  flex: 0 0 auto;
}

.ai-model-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 56px;
  width: 130px;
  padding: 0 10px;
  margin: 0;
  border: 1px solid #D8DEE7;
  border-radius: 8px;
  background: #fff;
  color: #44505F;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.ai-model-btn .ai-model-val {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.ai-model-btn .ti {
  font-size: 14px;
  color: #9AA6B5;
  transition: transform 0.15s ease;
}

.ai-model.open .ai-model-btn {
  border-color: #0071CE;
}

.ai-model.open .ai-model-btn .ti {
  transform: rotate(180deg);
}

.ai-model-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  list-style: none;
  margin: 0;
  padding: 4px;
  background: #fff;
  border: 1px solid #E3E7EE;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 1000;
}

.ai-model.open .ai-model-menu {
  display: block;
}

.ai-model-menu li {
  padding: 9px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 13px;
  color: #44505F;
}

.ai-model-menu li:hover {
  background: #EEF2F7;
}

.ai-model-menu li.sel {
  background: #E7F1FB;
  color: #0071CE;
  font-weight: 600;
}

@media (max-width: 600px) {
  /*.ai-model-btn {
    width: 104px;
    height: 48px;
    font-size: 12px;
  }
  .question-container #question {
    padding: 14px 16px;
  }
  .question-container .btn {
    width: 48px;
    height: 48px;
    min-height: 48px;
  }*/
}
@media all and (max-width: 500px) {
  .question-container .chat-box {
    background-image: none;
  }
  .question-container #question {
    width: 100%;
  }
}

/* ============================================================
   Fasce istituzionali dentro la chat: la grafica arriva dalle
   classi del sito (section.strip / side-side / stripe-txt in
   custom.css); qui solo gli adattamenti allo spazio della chat.
   ============================================================ */
#chat .ai-fascia-chat {
  width: 100%;
  margin: 24px 0;
}

#chat .ai-fascia-chat .pic-container picture.lazybg,
#chat .ai-fascia-chat .stripe-pic picture.lazybg {
  display: block;
  width: 100%;
  /* sul sito l'altezza arriva dall'aspect-ratio inline che __fasce.php mette
     sulla picture; qui non c'e', quindi height:100% di "section.strip picture"
     collassa a 0 (il genitore non ha altezza). Si annulla e si fissa un ratio. */
  height: auto;
  aspect-ratio: 16/9;
  min-height: 220px;
  background-size: cover;
  background-position: 50% 50%;
  border-radius: clamp(12px, 2vw, 20px);
}

/* template centrato: la foto e' una banda a tutta larghezza, come sul sito
   (stripe-pic container-full); ratio panoramico per non farla troppo alta */
#chat .ai-fascia-chat .stripe-pic {
  width: 100%;
}

#chat .ai-fascia-chat .stripe-pic picture.lazybg {
  aspect-ratio: 21/9;
}

@media all and (max-width: 880px) {
  #chat .ai-fascia-chat.side-side {
    flex-direction: column;
  }
  #chat .ai-fascia-chat .six {
    width: 100%;
  }
}
/* Schede a fascia (prodotti/case/progetti/articoli): immagine cliccabile
   e gallery prodotti dentro la colonna foto della fascia */
#chat .ai-fascia-chat .pic-container > a,
#chat .ai-fascia-chat .ai-gallery {
  display: block;
  width: 100%;
}

#chat .ai-fascia-chat .ai-gallery > a.gallery {
  display: block;
  width: 100%; /* vince su ".message a.gallery { width: 30% }" delle vecchie card */
  margin: 0;
}

#chat .ai-fascia-chat .ai-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* Slider del sito (overflow-x + dots) dentro la scheda prodotto della chat */
#chat .ai-fascia-chat .ai-gallery li a.gallery {
  display: block;
  width: 100%; /* vince su ".message a.gallery { width: 30% }" */
  margin: 0;
}

#chat .ai-fascia-chat .ai-gallery li img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(12px, 2vw, 20px);
}

#chat .ai-fascia-chat .ai-gallery .scroll-dots {
  margin-top: 10px;
}

/* Pulsante "Leggi di piu" nelle card progetti/case history della chat.
   Il .btn era figlio diretto di <article>, che in base.scss e' un flex column
   con align-items:center: restava centrato, mentre nelle card prodotto sta a
   sinistra perche' e' dentro un .actions gia' stilato da catalogue.scss.
   Qui .actions non e' coperto da nessuna regola (siamo in .projects-list, non
   in .products-list), quindi gliela do io: riga a larghezza piena, contenuto
   a sinistra. Scoped su #chat per non toccare le pagine elenco del sito. */
#chat .ai-lista-chat .projects-list article .actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
}

#chat .ai-lista-chat .projects-list article .actions .btn {
  margin: 0;
}

/* Il grigio va sovrascritto, non "togliuto": la card progetti/case history del
   sito colora il pulsante con
     .projects-list-container .projects-list article .btn { background: #A1A6AB }
   che ha specificita' (0,3,1) e batte .blue-btn (0,1,0) — ecco perche' il
   pulsante restava grigio nonostante la classe blu.
   Con #chat in testa arriviamo a (1,4,1) e vinciamo senza !important.
   NB: i due valori sono $blue-500 e $blue-400 di _variables.scss, copiati a
   mano perche' ai.css non ha un sorgente .scss e non vede le variabili: se la
   palette cambia, vanno aggiornati anche qui. */
#chat .ai-lista-chat .projects-list article .actions .btn.blue-btn {
  background-color: #1D428A;
}

#chat .ai-lista-chat .projects-list article .actions .btn.blue-btn:hover {
  background-color: #4A68A1;
}

/* Respiro fra i gruppi "pagina" consecutivi.
   Ogni risultato di tipo pagina produce tre blocchi fratelli: il titolo
   (.ai-pagina-titolo), il testo (.blk-text) e il pulsante (.ai-card-actions).
   Il pulsante non ha margine sotto e il titolo non ne ha sopra: fra la fine di
   un gruppo e l'inizio del successivo lo spazio era zero, e i gruppi si
   toccavano.
   Uso "* + .ai-pagina-titolo" e non un margin-top secco: cosi' il margine lo
   prende solo un titolo che ha qualcosa PRIMA di se', e il primo titolo del
   messaggio non si stacca inutilmente dall'inizio della bolla. */
#chat .message.bot > * + .ai-pagina-titolo {
  margin-top: 30px;
}

/* un filo d'aria anche sotto il pulsante, per l'ultimo gruppo del messaggio */
#chat .message.bot > .ai-card-actions {
  margin-bottom: 6px;
}

/* Angoli arrotondati sulle foto delle card in chat (realizzazioni, case
   histories, prodotti).
   Il raggio c'e' gia': "picture" in base.scss lo mette a tutte. A mancare e' il
   RITAGLIO: sul sito a tagliare l'immagine e' ".lazy { overflow: hidden }",
   classe che il lazy-load mette sulla picture e che qui non esiste, perche' le
   card della chat le costruisce demo.js con la src diretta. Senza overflow
   l'img resta un rettangolo che sborda dagli angoli tondi del genitore. */
#chat picture {
  overflow: hidden;
}

/* Nessun bottone grande dentro la chat, trovato o no.
   Il ".btn" del sito e' alto 50-64px con raggio 32px: in una bolla di chat, in
   mezzo alle schede, e' sproporzionato — ed e' quello che fa la pillola arancione
   grande. Qui replico le misure di .small-btn su qualunque .btn che non abbia
   gia' una taglia sua, cosi' vale anche per i pulsanti che arrivano da template
   server-side (es. l'invio del modulo {{form}}) e non passano da demo.js. */
#chat .btn:not(.small-btn):not(.xsmall-btn):not(.btn-mini):not(.round-btn):not(.square-btn) {
  font-size: 14px;
  min-height: 40px;
  padding: 0 20px;
}
#chat .btn:not(.small-btn):not(.xsmall-btn):not(.btn-mini):not(.round-btn):not(.square-btn) img {
  max-width: 30px;
}

/* ===== Chat AI: modulo richiesta informazioni ({{form}}) ===== */
/* Le due note sopra al modulo, prima che l'utente compili: la trascrizione che
   parte insieme alla richiesta e l'avviso sui campi obbligatori.
   Quest'ultima nel resto del sito sta dentro al form e la stila
   ".contact-form p.warning"; qui e' fuori, quindi le do io la stessa misura. */
.ai-form .ai-form-nota,
.ai-form > p.warning {
  font-size: 14px;
  line-height: 1.5;
  color: #44505F;
  margin: 0 0 18px;
}

/* Le coppie nome/ragione sociale ed e-mail/telefono stanno su una riga.
   Il contenitore e' gia' flex, ma in COLONNA: ".contact-form section" usa
   @include flex(flex-start, center, column) (custom.scss), e in colonna il
   width: 50% delle .six cade sull'asse trasversale, cioe' fa due blocchi
   larghi meta' impilati invece di due colonne affiancate.
   Escludo le .mkt, che hanno gia' una riga tutta loro (checkbox + testo).
   Da 768px in giu' si torna impilati, come ovunque nel sito. */
@media (min-width: 768px) {
  #chat .contact-form section:not(.mkt) {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
  }
}
/* Sotto i 768px si torna impilati, ma a larghezza PIENA: le .six restano al 50%
   anche da sole in colonna, e i campi diventavano larghi un terzo dello schermo. */
@media (max-width: 767px) {
  #chat .contact-form section:not(.mkt) > .column {
    width: 100%;
  }
}
/* Conversazione chiusa (tetto di risposte raggiunto): campo e invio spenti.
   Il modulo di contatto resta in chat, quindi la strada per scriverci c'e'
   ancora; a riaprire e' "Cancella conversazione". */
.question-container.chat-chiusa #question {
  opacity: 0.6;
  cursor: not-allowed;
}
.question-container.chat-chiusa .btn {
  opacity: 0.35;
  pointer-events: none;
}

/*# sourceMappingURL=ai.css.map */
