/* ==========================================================================
   CSS SPECIFICO: HOME PAGE (INDEX)
   ========================================================================== */

/* HERO SECTION HOME */
.hero-section {
  padding: 75px 0 60px;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 15%, rgba(245, 158, 11, 0.10) 0%, transparent 65%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  padding: 6px 18px;
  border-radius: 980px;
  border: 1px solid var(--apple-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--flame-deep);
  margin-bottom: 24px;
  box-shadow: var(--shadow-subtle);
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem) !important;
  margin-bottom: 20px;
}

.text-warm-highlight {
  background: linear-gradient(135deg, #C85A17 0%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.35rem) !important;
  color: var(--apple-text-secondary);
  max-width: 760px;
  margin: 0 auto 36px;
  font-weight: 400;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

/* 4 PILASTRI HOME */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.pillar-card {
  padding: 24px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-subtle);
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  transition: var(--transition-apple);
}

.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.pillar-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.pillar-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

/* BANNER GSE CONTO TERMICO 3.0 */
.gse-section {
  margin: 40px auto;
}

.gse-card {
  background: linear-gradient(135deg, #064E3B 0%, #065F46 100%);
  border-radius: calc(var(--apple-radius) + 4px);
  padding: 50px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 45px var(--emerald-glow);
}

.gse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: 980px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.gse-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  line-height: 1.15;
  color: #FFFFFF !important;
}

.gse-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92) !important;
  line-height: 1.6;
}

.btn-gse-light {
  background: #FFFFFF;
  color: #064E3B;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.btn-gse-light:hover {
  background: #F0FDF4;
  transform: translateY(-2px);
}

/* BENTO GRID (6 MACRO-CATEGORIE) */
.section-padding { padding: 85px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-title { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 800; margin-bottom: 12px; }
.section-desc { font-size: 1.1rem; color: var(--apple-text-secondary); max-width: 620px; margin: 0 auto; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.bento-card {
  background: var(--apple-card);
  border-radius: var(--apple-radius);
  padding: 34px 28px;
  border: 1px solid var(--apple-border);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-apple);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(217, 119, 6, 0.3);
}

.card-termostufe { background-color: var(--pastel-amber); }
.card-termocamini { background-color: var(--pastel-orange); }
.card-caldaie    { background-color: var(--pastel-stone); }
.card-cucine     { background-color: var(--pastel-terracotta); }
.card-inserti    { background-color: var(--pastel-warmgray); }
.card-stufe      { background-color: var(--pastel-sage); }

.bento-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: #FFFFFF;
  color: var(--flame-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: var(--transition-apple);
}

.bento-card:hover .bento-icon-wrapper {
  transform: scale(1.08) rotate(3deg);
}

.bento-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.bento-desc { font-size: 0.94rem; color: var(--apple-text-secondary); line-height: 1.55; margin-bottom: 22px; }

.bento-sublinks {
  list-style: none;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 26px;
}

.bento-sublinks li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--apple-text-main);
  opacity: 0.9;
}

.bento-sublinks li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flame-warm);
  flex-shrink: 0;
}

.bento-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--flame-warm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-apple);
}

.bento-card:hover .bento-link { gap: 12px; }

/* SEZIONE MARCHI DINAMICA & LOGHI AD ALTA INTERAZIONE */
.brands-section { 
  padding: 50px 0 70px; 
  text-align: center; 
}

.brands-container-box {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  padding: 50px 36px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.04);
}

.brands-heading { 
  font-size: clamp(1.4rem, 2.8vw, 1.85rem); 
  font-weight: 900; 
  color: #1D1D1F; 
  letter-spacing: -0.02em;
  margin-bottom: 10px; 
}

.brands-sub { 
  font-size: 1.02rem; 
  color: #4B5563; 
  max-width: 680px; 
  margin: 0 auto 38px; 
  line-height: 1.65;
}

.brands-logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 22px;
}

.home-brand-logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: #FAF7F2;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 18px;
  height: 58px;
  min-width: 110px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.home-brand-logo-item:hover {
  transform: translateY(-4px);
  background: #FFFFFF;
  border-color: rgba(217, 119, 6, 0.4);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.16);
}

.home-brand-logo-item img {
  height: 32px;
  max-height: 32px;
  width: auto;
  max-width: 125px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: all 0.3s ease;
}

.home-brand-logo-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}

.brand-item-darco {
  background: #18181B !important;
  border-color: #18181B !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2) !important;
}

.brand-item-darco:hover {
  transform: translateY(-4px) scale(1.02) !important;
  border-color: #F59E0B !important;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.3) !important;
}

/* CALCOLATORE POTENZA TERMICA */
.calculator-box {
  background: var(--bg-cream);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-subtle);
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.calc-input-group { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.calc-input {
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-size: 1.05rem;
  width: 170px;
  outline: none;
  background: #FFFFFF;
}
.calc-input:focus { border-color: var(--flame-warm); }

/* RESPONSIVE SPECIFICO HOME */
@media (max-width: 1024px) {
  .pillars-grid, .bento-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .pillars-grid, .bento-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .bento-card, .pillar-card, .brands-container-box, .calculator-box { padding: 24px 20px !important; }
  .gse-card { padding: 35px 24px !important; flex-direction: column !important; text-align: center !important; }
  .hero-actions { flex-direction: column !important; width: 100% !important; gap: 12px !important; }
}

/* ==========================================================================
   GRIGLIA BENTO WOW: 8 BOX SISTEMI DI RISCALDAMENTO
   ========================================================================== */
.wow-systems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.wow-system-card {
  border-radius: 26px;
  padding: 24px 22px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1.5px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.wow-system-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 45px rgba(217, 119, 6, 0.16);
}

/* PALETTE COLORI PER I BOX */
.theme-amber   { background: #FFFBEB; border-color: rgba(245, 158, 11, 0.3); }
.theme-orange  { background: #FFF4ED; border-color: rgba(234, 88, 12, 0.3); }
.theme-emerald { background: #EDF7EE; border-color: rgba(16, 185, 129, 0.35); }
.theme-blue    { background: #EFF6FF; border-color: rgba(37, 99, 235, 0.3); }
.theme-cyan    { background: #F0F9FF; border-color: rgba(2, 132, 199, 0.3); }
.theme-red     { background: #FEF2F2; border-color: rgba(220, 38, 38, 0.3); }
.theme-purple  { background: #F5F3FF; border-color: rgba(124, 58, 237, 0.3); }
.theme-gold    { background: #FEF3C7; border-color: rgba(217, 119, 6, 0.4); }

.wow-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.system-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.system-icon-badge svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.2px;
  stroke: currentColor;
}

.system-badge-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #FFFFFF;
  color: #1D1D1F;
  border: 1px solid rgba(0, 0, 0, 0.06);
  letter-spacing: 0.02em;
}

/* PALCOSCENICO FOTO PRODOTTO CON ZOOM MORBIDO */
.system-photo-holder {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 16px;
  padding: 8px;
  background: radial-gradient(circle, #FFFFFF 0%, rgba(255, 255, 255, 0.4) 100%);
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.system-photo-holder img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wow-system-card:hover .system-photo-holder img {
  transform: scale(1.12);
}

.system-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #1D1D1F;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.system-desc {
  font-size: 0.88rem;
  color: #4B5563;
  line-height: 1.55;
  margin: 0 0 14px;
}

.system-link-cta {
  font-size: 0.9rem;
  font-weight: 800;
  color: #D95B16;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}

.wow-system-card:hover .system-link-cta {
  transform: translateX(4px);
}

/* RESPONSIVE PER SMARTPHONE E TABLET */
@media (max-width: 1100px) {
  .wow-systems-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .wow-systems-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .system-photo-holder {
    height: 170px;
  }
}
/* ==========================================================================
   SEZIONE BESTSELLER: SCHEDE PRODOTTO & BOTTONI FILTRO
   ========================================================================== */
.bestseller-tab-btn {
  background: #FFFFFF;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  padding: 8px 18px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.86rem;
  color: #1D1D1F;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.bestseller-tab-btn:hover,
.bestseller-tab-btn.active {
  background: #1D1D1F;
  color: #FFFFFF;
  border-color: #1D1D1F;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.bestseller-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.bestseller-product-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bestseller-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 38px rgba(217, 119, 6, 0.14);
  border-color: rgba(217, 119, 6, 0.3);
}

.bestseller-photo-stage {
  height: 200px;
  background: radial-gradient(circle, #FFFFFF 0%, #FAF7F2 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.bestseller-photo-stage img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.bestseller-product-card:hover .bestseller-photo-stage img {
  transform: scale(1.08);
}

@media (max-width: 1100px) {
  .bestseller-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .bestseller-cards-grid {
    grid-template-columns: 1fr;
  }
}