/* Fase 23 SAFE — Soluzioni tecniche / Ricerca per esigenza
   Copia fedele delle regole ancora presenti in style.css.
   In SAFE style.css resta invariato e viene caricato dopo questo file. */

/* =========================================================
   SOLUZIONI TECNICHE - CATALOGO PER ESIGENZA
   ========================================================= */

.b2b-need-products {
  margin-top: 22px;
}
.b2b-need-products h3 {
  margin: 0 0 14px;
}
.b2b-need-products__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.b2b-need-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.b2b-need-product-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}
.b2b-need-product-card__image {
  width: 100%;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.b2b-need-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.b2b-need-product-card__noimage {
  font-size: 12px;
  opacity: .55;
}
.b2b-need-product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.b2b-need-product-card__name {
  display: block;
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 4px;
}
.b2b-need-product-card__sku {
  display: block;
  margin-bottom: 8px;
  opacity: .6;
}
.b2b-need-product-card__body p {
  margin: 0 0 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.b2b-need-product-card__button {
  display: inline-block;
  margin-top: auto;
  align-self: flex-start;
}
.b2b-need-category-link {
  font-weight: 600;
}
@media (max-width: 980px) {
  .b2b-need-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .b2b-need-products__grid {
    grid-template-columns: 1fr;
  }
  .b2b-need-product-card__image {
    height: 180px;
  }
}


.b2b-need-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 22px;
}
.b2b-need-report-box {
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 12px;
  background: #f8fafc;
}
.b2b-need-report-box h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.b2b-need-report-box ul {
  margin: 0;
  padding-left: 20px;
}
.b2b-need-report-box li {
  margin: 4px 0;
  line-height: 1.4;
}
@media (max-width: 700px) {
  .b2b-need-report-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   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;
}


/* =========================================================
   RISULTATI RICERCA PER ESIGENZA
   ========================================================= */

.b2b-need-result{
  margin:20px 0 28px;
}

.b2b-need-result__query{
  margin-bottom:10px;
  color:#5e6872;
}

.b2b-need-result__card{
  padding:22px;
  border:1px solid #d7dee5;
  border-radius:12px;
  background:#fff;
}

.b2b-need-result__eyebrow{
  text-transform:uppercase;
  letter-spacing:.06em;
  font-size:.76rem;
  font-weight:700;
  color:#64717d;
  margin-bottom:5px;
}

.b2b-need-result__card h2{
  margin:0 0 10px;
  font-size:1.35rem;
}

.b2b-need-result__summary{
  font-size:1.02rem;
  margin:0 0 16px;
}

.b2b-need-check{
  padding:14px 16px;
  background:#f5f7f9;
  border-radius:8px;
  margin:14px 0 18px;
}

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

.b2b-need-actions{
  display:flex;
  gap:15px;
  align-items:center;
  flex-wrap:wrap;
}

.b2b-need-reset{
  text-decoration:underline;
}

.b2b-need-result__card--neutral{
  background:#fafbfd;
}

.b2b-need-result__card--clarify{
  border-color:#cbd8e3;
}

.b2b-need-result__card--partial{
  border-color:#c7d5df;
}


/* =========================================================
   FALLBACK / SELEZIONE AREA TECNICA
   ========================================================= */

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

.b2b-need-fallback-open{
  border:0;
  border-radius:10px;
  padding:12px 18px;
  background:#25afe5;
  color:#fff;
  font:inherit;
  font-weight:750;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(37,175,229,.16);
}

.b2b-need-fallback-open:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(37,175,229,.22);
}

.b2b-need-fallback{
  margin-top:24px;
  padding-top:22px;
  border-top:1px solid #d7e5ee;
}

.b2b-need-fallback,
.b2b-need-area-panel{
  scroll-margin-top:120px;
}

.b2b-need-fallback__intro{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:18px;
}

.b2b-need-fallback__step,
.b2b-need-area-panel__step{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 32px;
  width:32px;
  height:32px;
  border-radius:50%;
  background:#e7f7fd;
  color:#118ec4;
  font-weight:800;
  border:1px solid #b9e5f6;
}

.b2b-need-fallback__intro h3{
  margin:1px 0 5px;
  font-size:1.2rem;
  color:#172333;
}

.b2b-need-fallback__intro p{
  margin:0;
  color:#63707b;
}


/* =========================================================
   AREE TECNICHE
   ========================================================= */

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

.b2b-need-area-card{
  position:relative;
  display:grid;
  grid-template-columns:42px 1fr 18px;
  align-items:center;
  gap:12px;
  text-align:left;
  min-height:82px;
  padding:14px 15px;
  border:1px solid #cddce6;
  border-radius:13px;
  background:linear-gradient(180deg,#fff 0%,#f8fcfe 100%);
  color:#172333;
  font:inherit;
  cursor:pointer;
  transition:
    transform .15s ease,
    border-color .15s ease,
    box-shadow .15s ease,
    background .15s ease;
}

.b2b-need-area-card__icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:11px;
  background:#eaf7fc;
  color:#179fd6;
  font-size:1.25rem;
  font-weight:800;
}

.b2b-need-area-card__text{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}

.b2b-need-area-card__text strong{
  font-weight:800;
  line-height:1.2;
}

.b2b-need-area-card__text small{
  color:#73818c;
  font-size:.84rem;
}

.b2b-need-area-card__arrow{
  font-size:1.45rem;
  color:#8fa1ad;
  line-height:1;
}

.b2b-need-area-card:hover{
  transform:translateY(-2px);
  border-color:#72c9ec;
  box-shadow:0 8px 18px rgba(37,175,229,.10);
}

.b2b-need-area-card.is-active{
  border-color:#25afe5;
  background:linear-gradient(180deg,#eefaff 0%,#e7f7fd 100%);
  box-shadow:
    0 0 0 2px rgba(37,175,229,.12),
    0 8px 18px rgba(37,175,229,.10);
}

.b2b-need-area-card.is-active .b2b-need-area-card__icon{
  background:#25afe5;
  color:#fff;
}

.b2b-need-area-card.is-active .b2b-need-area-card__arrow{
  color:#179fd6;
}


/* =========================================================
   PANNELLO SOLUZIONI
   ========================================================= */

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

.b2b-need-area-panel{
  padding:18px;
  border:1px solid #cfe1eb;
  border-radius:14px;
  background:linear-gradient(180deg,#fafdff 0%,#fff 100%);
  box-shadow:0 8px 24px rgba(23,35,51,.05);
}

.b2b-need-area-panel__head{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:15px;
  padding-bottom:14px;
  border-bottom:1px solid #e3edf3;
}

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

.b2b-need-area-panel__eyebrow{
  font-size:.7rem;
  letter-spacing:.08em;
  font-weight:800;
  color:#159dcc;
}

.b2b-need-area-panel__head strong{
  font-size:1.13rem;
  color:#172333;
}

.b2b-need-area-panel__head>div>span:last-child{
  color:#697680;
  font-size:.92rem;
}

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

.b2b-need-solution-link{
  display:grid;
  grid-template-columns:24px 1fr 24px;
  align-items:center;
  gap:11px;
  padding:13px 14px;
  border:1px solid #dde8ee;
  border-radius:10px;
  background:#fff;
  text-decoration:none;
  color:#172333;
  transition:
    transform .14s ease,
    border-color .14s ease,
    box-shadow .14s ease;
}

.b2b-need-solution-link__mark{
  display:flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border-radius:50%;
  background:#eaf7fc;
  color:#179fd6;
  font-size:1rem;
  font-weight:900;
}

.b2b-need-solution-link__body{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}

.b2b-need-solution-link__body strong{
  font-weight:760;
  line-height:1.25;
}

.b2b-need-solution-link__body small{
  color:#74818c;
  font-size:.84rem;
  font-weight:500;
  line-height:1.3;
}

.b2b-need-solution-link__arrow{
  justify-self:end;
  color:#6c7a85;
  font-size:1.05rem;
}

.b2b-need-solution-link:hover{
  transform:translateX(2px);
  border-color:#73caec;
  box-shadow:0 6px 16px rgba(37,175,229,.08);
  background:#fbfeff;
}


/* =========================================================
   CHIARIMENTI
   ========================================================= */

.b2b-need-understood{
  margin: 8px 0 16px;

  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  margin:8px 0 18px;
  color:#5e6872;
}

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

.b2b-need-understood span{
  display:inline-flex;
  padding:5px 9px;
  border-radius:999px;
  background:#f0f4f7;
  font-size:.9rem;
}

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

.b2b-need-option{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border:1px solid #b9c7d2;
  border-radius:9px;
  background:#fff;
  text-decoration:none;
  font-weight:700;
  color:inherit;
}

.b2b-need-option:hover{
  border-color:#5aaed8;
}

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

.b2b-need-example{
  color:#5e6872;
}


/* =========================================================
   RISULTATI PARZIALI
   ========================================================= */

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

.b2b-need-partial-grid>div{
  background:#f4f7f9;
  border-radius:10px;
  padding:14px 16px;
}

.b2b-need-partial-grid ul{
  margin:8px 0 0 18px;
  padding:0;
}

.b2b-need-partial-grid li{
  margin:4px 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

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

@media(max-width:720px){
  .b2b-need-form__row{
    display:block;
  }

  .b2b-need-form button{
    width:100%;
    height:46px;
    min-height:46px;
    margin-top:9px;
  }
}

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

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

  .b2b-need-fallback-actions{
    align-items:stretch;
  }

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

  .b2b-need-area-card{
    min-height:74px;
  }

  .b2b-need-solution-link{
    grid-template-columns:22px 1fr 20px;
  }
}
/* =========================================================
   Richiesta soluzione
   ========================================================= */

.b2b-need-contact{
  margin-top:26px;
  padding:24px;
  border:1px solid #d7dee5;
  border-radius:14px;
  background:#fff;
  box-shadow:0 8px 24px rgba(15,23,42,.06);
}

.b2b-need-contact h3{
  margin:0 0 6px;
  color:#0f172a;
  font-size:1.2rem;
}

.b2b-need-contact__intro{
  margin:0 0 18px;
  color:#52627a;
}

.b2b-need-contact__form{
  display:grid;
  gap:14px;
}

.b2b-need-contact__field{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.b2b-need-contact__field label{
  font-weight:700;
  color:#1e293b;
}

.b2b-need-contact__field input,
.b2b-need-contact__field textarea{
  width:100%;
  box-sizing:border-box;
  padding:12px 14px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  background:#fff;
  font:inherit;
}

.b2b-need-contact__field input[readonly]{
  background:#f8fafc;
  color:#475569;
}

.b2b-need-contact__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.b2b-need-contact__submit{
  justify-self:start;
  margin-top:4px;
}

.b2b-need-contact__message{
  margin:14px 0;
  padding:12px 14px;
  border-radius:10px;
  font-weight:600;
}

.b2b-need-contact__message--success{
  background:#ecfdf5;
  border:1px solid #a7f3d0;
  color:#166534;
}

.b2b-need-contact__message--error{
  background:#fef2f2;
  border:1px solid #fecaca;
  color:#991b1b;
}

.b2b-need-contact__honeypot{
  position:absolute !important;
  left:-9999px !important;
  width:1px;
  height:1px;
  overflow:hidden;
}

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