/* =========================================================
   DOTT. CARLO VALLI B2B — CATALOGO (FASE 6 CLEAN)
   Regole migrate dallo style.css storico.
   Da questa fase le regole qui presenti sono state rimosse
   da style.css: questo file ne diventa il proprietario.
   ========================================================= */

/* Catalogo B2B */
.b2b-catalogo .section-title{ margin: 0 0 8px; }
.b2b-catalogo .muted{ opacity: .75; margin: 0 0 16px; }

.b2b-catalogo .search button{
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.b2b-catalogo .grid-3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

/* Categorie catalogo */
.b2b-catalogo .cat-card{
  display:block;
  height:100%;
  color:inherit;
  text-decoration:none;
}

.b2b-catalogo .cat-card .card{
  display:flex;
  flex-direction:column;
  height:100%;
  padding:18px 18px 16px;
  border:1px solid #dfe5ea;
  border-radius:12px;
  background:#fff;
  box-shadow:0 4px 14px rgba(23,35,51,.035);
  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease;
}

.b2b-catalogo .cat-card .card h2{
  margin:0 0 10px;
  font-size:1.08rem;
  line-height:1.25;
  color:#172333;
}

.b2b-catalogo .cat-card .product-img{
  display:block;
  width:100%;
  height:150px;
  object-fit:contain;
  margin:0 auto 12px;
}

.b2b-catalogo .cat-card .card p{
  margin:auto 0 0;
  color:#687580;
  font-size:.90rem;
  line-height:1.45;
  opacity:1;
}

.b2b-catalogo .cat-card:hover .card{
  transform:translateY(-2px);
  border-color:#9edcf3;
  box-shadow:0 8px 20px rgba(23,35,51,.07);
}

.b2b-catalogo .cat-card:focus-visible{
  outline:none;
}

.b2b-catalogo .cat-card:focus-visible .card{
  border-color:#25afe5;
  box-shadow:0 0 0 2px rgba(37,175,229,.18);
}

@media (max-width:900px){
  .b2b-catalogo .grid-3{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:720px){
  .b2b-catalogo .cat-card .card{
    padding:16px;
  }

  .b2b-catalogo .cat-card .product-img{
    height:160px;
  }
}

@media (max-width:560px){
  .b2b-catalogo .grid-3{
    grid-template-columns:1fr;
  }
}

/* Ricerca catalogo */
.b2b-catalogo .search input{
  flex: 1 1 260px;
  padding: 10px 12px;
  border:1px solid rgba(15,23,42,.12);
  border-radius: 10px;
  background:#fff;
}

.b2b-catalogo .search{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:18px 0 22px;
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:14px;
  padding:12px;
}

/* Intro categorie catalogo */
.b2b-category-intro{
  margin:28px 0 14px;
}

.b2b-category-intro h2{
  margin:0 0 5px;
  font-size:1.28rem;
  line-height:1.2;
  color:#172333;
}

.b2b-category-intro p{
  margin:0;
  color:#6b7782;
  font-size:.95rem;
  line-height:1.45;
}

/* Allineamento colonne operative catalogo */
.products-table thead th:nth-child(4),
.products-table tbody td:nth-child(4),
.products-table thead th:nth-child(6),
.products-table tbody td:nth-child(6),
.products-table thead th:nth-child(7),
.products-table tbody td:nth-child(7){
  text-align:center !important;
}
/* Stato prodotto esaurito nel catalogo */
.b2b-out-of-stock{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:7px 14px;
  border-radius:8px;
  background:#fee2e2;
  color:#991b1b;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
}

/* =========================================================
   RICERCA PER ESIGENZA / SOLUZIONE TECNICA
   ========================================================= */

.b2b-need-entry{
  margin:18px 0 24px;
  padding:20px 22px;
  border:1px solid #dfe5ea;
  border-radius:12px;
  background:#fafbfd;
}

.b2b-need-entry{
  scroll-margin-top: 140px;
}

.b2b-need-entry.is-highlighted{
  border-color:#38bdf8;
  box-shadow:0 0 0 4px rgba(56,189,248,.18),
             0 12px 30px rgba(15,23,42,.10);
  transition:border-color .3s ease, box-shadow .3s ease;
}

.b2b-need-entry__head h2{
  margin:0 0 5px;
  font-size:1.18rem;
}

.b2b-need-title{
  display:flex;
  align-items:center;
  gap:10px;
}

.b2b-need-title__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 34px;
  width:34px;
  height:34px;
  border-radius:9px;
  background:#e7f7fd;
  color:#159fd6;
  border:1px solid #b9e5f6;
}

.b2b-need-title__icon svg{
  width:19px;
  height:19px;
}

.b2b-need-entry__head p{
  margin:0;
  color:#5e6872;
}

.b2b-need-form{
  margin-top:15px;
}

.b2b-need-form label{
  display:block;
  font-weight:700;
  margin-bottom:7px;
}

.b2b-need-form__row{
  display:flex;
  gap:10px;
  align-items:center;
}

.b2b-need-form textarea{
  flex:1;
  min-height:54px;
  height:54px;
  resize:vertical;
  padding:10px 13px;
  border:1px solid #cbd3da;
  border-radius:8px;
  font:inherit;
  background:#fff;
}

.b2b-need-form textarea:focus{
  border-color:#25afe5 !important;
  outline:2px solid #25afe5 !important;
  outline-offset:1px;
  box-shadow:none !important;
}

.b2b-need-form button{
  min-width:170px;
  height:46px;
  border:0;
  border-radius:8px;
  padding:0 18px;
  background:#25afe5;
  color:#fff;
  font-weight:700;
  cursor:pointer;
}

.b2b-need-form__note{
  margin:9px 0 0;
  font-size:.88rem;
  color:#6b747d;
}

/* =========================================================
   RICERCA PER ESIGENZA — RISULTATI E FALLBACK
   Proprietario: assets/b2b-catalog.css
   ========================================================= */

.b2b-catalogo .b2b-need-result{
  margin:18px 0 30px;
}

.b2b-catalogo .b2b-need-result__query{
  margin:0 0 10px;
  color:#52606d;
  font-size:.92rem;
  line-height:1.45;
}

.b2b-catalogo .b2b-need-result__query strong{
  color:#172333;
}

.b2b-catalogo .b2b-need-result__card{
  padding:22px;
  border:1px solid #dfe5ea;
  border-radius:12px;
  background:#fff;
  box-shadow:0 4px 14px rgba(23,35,51,.035);
}

.b2b-catalogo .b2b-need-result__card h2{
  margin:4px 0 12px;
  color:#172333;
  font-size:1.35rem;
  line-height:1.25;
}

.b2b-catalogo .b2b-need-result__card h3{
  color:#172333;
}

.b2b-catalogo .b2b-need-result__card p{
  color:#52606d;
  line-height:1.55;
}

.b2b-catalogo .b2b-need-result__eyebrow{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:4px 9px;
  border:1px solid #b9e5f6;
  border-radius:999px;
  background:#e7f7fd;
  color:#147fa8;
  font-size:.76rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.b2b-catalogo .b2b-need-example{
  margin:10px 0 0;
  padding:11px 13px;
  border-radius:8px;
  background:#f7f9fb;
  color:#66727e !important;
  font-size:.93rem;
}

.b2b-catalogo .b2b-need-understood{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin:14px 0 18px;
}

.b2b-catalogo .b2b-need-understood strong{
  margin-right:2px;
  color:#172333;
}

.b2b-catalogo .b2b-need-understood span{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:5px 10px;
  border:1px solid #dbe6ee;
  border-radius:999px;
  background:#f8fbfd;
  color:#415261;
  font-size:.88rem;
}

.b2b-catalogo .b2b-need-options{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:16px 0 4px;
}

.b2b-catalogo .b2b-need-option{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:9px 14px;
  border:1px solid #b9e5f6;
  border-radius:8px;
  background:#f4fbfe;
  color:#147fa8;
  text-decoration:none;
  font-weight:700;
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}

.b2b-catalogo .b2b-need-option:hover{
  border-color:#38bdf8;
  background:#e7f7fd;
  transform:translateY(-1px);
}

.b2b-catalogo .b2b-need-actions,
.b2b-catalogo .b2b-need-fallback-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  margin-top:18px;
}

.b2b-catalogo .b2b-need-actions--minor{
  margin-top:14px;
}

.b2b-catalogo .b2b-need-fallback-open,
.b2b-catalogo .b2b-need-actions .btn,
.b2b-catalogo .b2b-need-product-card__button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:9px 15px;
  border:0;
  border-radius:8px;
  background:#25afe5;
  color:#fff;
  text-decoration:none;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}

.b2b-catalogo .b2b-need-fallback-open:hover,
.b2b-catalogo .b2b-need-actions .btn:hover,
.b2b-catalogo .b2b-need-product-card__button:hover{
  filter:brightness(.97);
}

.b2b-catalogo .b2b-need-reset,
.b2b-catalogo .b2b-need-category-link{
  color:#167fa8;
  text-decoration:none;
  font-weight:700;
}

.b2b-catalogo .b2b-need-reset:hover,
.b2b-catalogo .b2b-need-category-link:hover{
  text-decoration:underline;
}

.b2b-catalogo .b2b-need-fallback{
  margin-top:20px;
  padding-top:20px;
  border-top:1px solid #e4e9ee;
  scroll-margin-top:130px;
}

.b2b-catalogo .b2b-need-fallback__intro,
.b2b-catalogo .b2b-need-area-panel__head{
  display:flex;
  gap:12px;
  align-items:flex-start;
  margin-bottom:15px;
}

.b2b-catalogo .b2b-need-fallback__intro h3{
  margin:0 0 4px;
  font-size:1.08rem;
}

.b2b-catalogo .b2b-need-fallback__intro p{
  margin:0;
  font-size:.92rem;
}

.b2b-catalogo .b2b-need-fallback__step,
.b2b-catalogo .b2b-need-area-panel__step{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 30px;
  width:30px;
  height:30px;
  border-radius:50%;
  background:#25afe5;
  color:#fff;
  font-size:.86rem;
  font-weight:800;
}

.b2b-catalogo .b2b-need-area-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}

.b2b-catalogo .b2b-need-area-card{
  display:grid;
  grid-template-columns:38px minmax(0,1fr) 18px;
  gap:10px;
  align-items:center;
  width:100%;
  padding:12px;
  border:1px solid #dfe5ea;
  border-radius:10px;
  background:#fff;
  color:#172333;
  text-align:left;
  font:inherit;
  cursor:pointer;
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}

.b2b-catalogo .b2b-need-area-card:hover,
.b2b-catalogo .b2b-need-area-card.is-active{
  border-color:#8dd7f1;
  box-shadow:0 5px 14px rgba(23,35,51,.06);
  transform:translateY(-1px);
}

.b2b-catalogo .b2b-need-area-card.is-active{
  background:#f4fbfe;
}

.b2b-catalogo .b2b-need-area-card__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:9px;
  background:#e7f7fd;
  color:#159fd6;
  font-weight:800;
}

.b2b-catalogo .b2b-need-area-card__text{
  min-width:0;
}

.b2b-catalogo .b2b-need-area-card__text strong,
.b2b-catalogo .b2b-need-area-card__text small{
  display:block;
}

.b2b-catalogo .b2b-need-area-card__text strong{
  line-height:1.25;
}

.b2b-catalogo .b2b-need-area-card__text small{
  margin-top:3px;
  color:#73808b;
}

.b2b-catalogo .b2b-need-area-card__arrow{
  color:#7d8b97;
  font-size:1.3rem;
  text-align:right;
}

.b2b-catalogo .b2b-need-area-results{
  margin-top:16px;
}

.b2b-catalogo .b2b-need-area-panel{
  padding:16px;
  border:1px solid #dfe5ea;
  border-radius:10px;
  background:#fafbfd;
  scroll-margin-top:130px;
}

.b2b-catalogo .b2b-need-area-panel__head{
  margin-bottom:12px;
}

.b2b-catalogo .b2b-need-area-panel__head > div{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.b2b-catalogo .b2b-need-area-panel__eyebrow{
  color:#167fa8;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.05em;
}

.b2b-catalogo .b2b-need-area-panel__head strong{
  color:#172333;
}

.b2b-catalogo .b2b-need-area-panel__head span:last-child{
  color:#6b7782;
  font-size:.9rem;
}

.b2b-catalogo .b2b-need-solution-list{
  display:grid;
  gap:8px;
}

.b2b-catalogo .b2b-need-solution-link{
  display:grid;
  grid-template-columns:16px minmax(0,1fr) 18px;
  gap:9px;
  align-items:center;
  padding:11px 12px;
  border:1px solid #e1e7ec;
  border-radius:9px;
  background:#fff;
  color:#172333;
  text-decoration:none;
  transition:border-color .16s ease,background .16s ease;
}

.b2b-catalogo .b2b-need-solution-link:hover{
  border-color:#9edcf3;
  background:#f7fcfe;
}

.b2b-catalogo .b2b-need-solution-link__mark{
  color:#25afe5;
  font-size:1.15rem;
}

.b2b-catalogo .b2b-need-solution-link__body{
  min-width:0;
}

.b2b-catalogo .b2b-need-solution-link__body strong,
.b2b-catalogo .b2b-need-solution-link__body small{
  display:block;
}

.b2b-catalogo .b2b-need-solution-link__body small{
  margin-top:3px;
  color:#6f7b86;
  line-height:1.4;
}

.b2b-catalogo .b2b-need-solution-link__arrow{
  color:#7c8995;
  text-align:right;
}

.b2b-catalogo .b2b-need-report-grid,
.b2b-catalogo .b2b-need-partial-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:18px 0;
}

.b2b-catalogo .b2b-need-report-box,
.b2b-catalogo .b2b-need-partial-grid > div,
.b2b-catalogo .b2b-need-check{
  padding:15px;
  border:1px solid #e0e6eb;
  border-radius:10px;
  background:#fafbfd;
}

.b2b-catalogo .b2b-need-report-box h3{
  margin:0 0 8px;
  font-size:1rem;
}

.b2b-catalogo .b2b-need-report-box ul,
.b2b-catalogo .b2b-need-partial-grid ul{
  margin:0;
  padding-left:20px;
}

.b2b-catalogo .b2b-need-report-box li,
.b2b-catalogo .b2b-need-partial-grid li{
  margin:4px 0;
  color:#52606d;
  line-height:1.45;
}

.b2b-catalogo .b2b-need-result__summary{
  margin:12px 0;
}

.b2b-catalogo .b2b-need-check{
  margin-top:14px;
}

.b2b-catalogo .b2b-need-check strong{
  color:#172333;
}

.b2b-catalogo .b2b-need-check p{
  margin:5px 0 0;
}

.b2b-catalogo .b2b-need-products{
  margin-top:20px;
}

.b2b-catalogo .b2b-need-products > h3{
  margin:0 0 12px;
  font-size:1.05rem;
}

.b2b-catalogo .b2b-need-products__grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.b2b-catalogo .b2b-need-product-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:hidden;
  border:1px solid #dfe5ea;
  border-radius:10px;
  background:#fff;
  color:inherit;
  text-decoration:none;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}

.b2b-catalogo .b2b-need-product-card:hover{
  transform:translateY(-2px);
  border-color:#9edcf3;
  box-shadow:0 8px 20px rgba(23,35,51,.07);
}

.b2b-catalogo .b2b-need-product-card__image{
  display:flex;
  align-items:center;
  justify-content:center;
  height:150px;
  padding:12px;
  background:#fff;
}

.b2b-catalogo .b2b-need-product-card__image img{
  display:block;
  max-width:100%;
  max-height:126px;
  object-fit:contain;
}

.b2b-catalogo .b2b-need-product-card__noimage{
  color:#8a96a0;
  font-size:.9rem;
}

.b2b-catalogo .b2b-need-product-card__body{
  display:flex;
  flex:1;
  flex-direction:column;
  padding:14px;
  border-top:1px solid #eef1f4;
}

.b2b-catalogo .b2b-need-product-card__name{
  color:#172333;
  line-height:1.3;
}

.b2b-catalogo .b2b-need-product-card__sku{
  margin-top:4px;
  color:#7b8791;
}

.b2b-catalogo .b2b-need-product-card__body p{
  margin:9px 0 14px;
  font-size:.9rem;
}

.b2b-catalogo .b2b-need-product-card__button{
  margin-top:auto;
  align-self:flex-start;
}

@media (max-width:900px){
  .b2b-catalogo .b2b-need-area-grid,
  .b2b-catalogo .b2b-need-products__grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:700px){
  .b2b-catalogo .b2b-need-report-grid,
  .b2b-catalogo .b2b-need-partial-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:560px){
  .b2b-catalogo .b2b-need-result__card{
    padding:17px;
  }

  .b2b-catalogo .b2b-need-area-grid,
  .b2b-catalogo .b2b-need-products__grid{
    grid-template-columns:1fr;
  }

  .b2b-catalogo .b2b-need-fallback-open{
    width:100%;
  }
}
