/* ===============================
   ITNETCOM – LAYOUT
   =============================== */

/* ===============================
   WRAPPER
   =============================== */
.itn-wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===============================
   SEZIONI
   =============================== */
.itn-section{ padding:48px 0; }
@media (min-width:900px){
  .itn-section{ padding:64px 0; }
}
.itn-section--tight{ padding:32px 0; }
@media (min-width:900px){
  .itn-section--tight{ padding:40px 0; }
}
.itn-center{ text-align:center; }

/* ===============================
   HEADER
   =============================== */
.itn-header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:1000;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(0,0,0,.06);
}
body{ padding-top:var(--header-h); }

/* ===============================
   NAV
   =============================== */
.itn-nav{
  max-width:var(--wrap);
  margin:0 auto;
  padding:14px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

/* ===============================
   CATALOGO – LAYOUT
   =============================== */
.itn-catalog .itn-wrap{
  max-width:1400px;
}

.itn-catalog-layout{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:32px;
  align-items:start;
}
@media (max-width:900px){
  .itn-catalog-layout{
    grid-template-columns:1fr;
  }
}

/* ===============================
   GRID PRODOTTI
   =============================== */
.itn-catalog-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:28px;
}

/* ===============================
   CARD PRODOTTO
   =============================== */
.itn-product-card{
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius:14px;
  display:flex;
  flex-direction:column;
  height:100%;
  transition:transform .15s ease, box-shadow .15s ease;
}
.itn-product-card:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}

/* ===============================
   CORPO CARD – STRUTTURA STABILE
   =============================== */
.itn-product-body{
  padding:14px 16px 18px;
  display:flex;
  flex-direction:column;
  height:100%;
}

/* ===============================
   TITOLO – AREA FISSA (3 RIGHE)
   =============================== */
.itn-product-body h3{
  margin:0;
  font-size:15px;
  font-weight:700;
  line-height:1.4;

  /* 🔑 FIX DEFINITIVO */
  overflow:hidden;
}

.itn-product-body h3 a{
  color:inherit;
  text-decoration:none;
  white-space:normal;
}

/* ===============================
   CATEGORIA – ALLINEATA
   =============================== */
.itn-product-cat{
  font-size:13px;
  color:#777;
  margin-top:12px;
  margin-bottom:12px;
}

/* ===============================
   STATO PRODOTTO – SEMPRE IN BASSO
   =============================== */
.itn-product-stock{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  font-size:12px;
  font-weight:500;
}

.itn-product-stock::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
}

.itn-product-stock.ok{
  color:#1f7a1f;
}
.itn-product-stock.ok::before{
  background:#1f7a1f;
}

.itn-product-stock.ko{
  color:#a00;
}
.itn-product-stock.ko::before{
  background:#a00;
}

/* ===============================
   MOBILE
   =============================== */
@media (max-width:768px){
  .itn-product-card{
    min-height:300px;
  }
}
.itn-product-card * {
  pointer-events: auto !important;
}

.itn-product-card {
  pointer-events: auto !important;
  position: relative;
  z-index: 5;
}
.itn-product-card.is-hidden{
  display: none !important;
}

/* =====================================================
   PRODUCT CART – ALIGN + BRAND COLOR
   ===================================================== */

.itn-cart-row{
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.itn-cart-qty{
  max-width: 140px;
}

.itn-btn-cart{
  background: var(--itn-red);
  color: #fff;
  box-shadow: 0 10px 30px rgba(227,6,19,.28);
}

.itn-btn-cart:hover{
  filter: brightness(1.05);
}

/* Mobile: bottone sotto */
@media (max-width: 600px){
  .itn-cart-row{
    flex-direction: column;
    align-items: stretch;
  }

  .itn-cart-qty{
    max-width: 100%;
  }
}
