/* =====================================================================
   40-SUMMARY-HEADER-DOCK.CSS
   Header hero + viewer dock
   ===================================================================== */

#asg-configuratore-wrapper.asg-state-configurator .asg-controls-header-config,
#asg-configuratore-wrapper .asg-state-configurator .asg-controls-header-config {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

#asg-configuratore-wrapper .asg-config-header-shell-v2 {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: 214px;
  padding: 24px 24px 26px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 14%, rgba(77,117,255,.30), transparent 18%),
    linear-gradient(135deg, rgba(4,10,24,.98) 0%, rgba(7,18,40,.96) 58%, rgba(3,9,21,.98) 100%);
  border: 1px solid rgba(113,150,255,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 22px 50px rgba(0,0,0,.28);
}

#asg-configuratore-wrapper .asg-config-header-shell-v2::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 40%;
  height: 54%;
  background: linear-gradient(135deg, rgba(42,95,255,.28), rgba(42,95,255,0));
  clip-path: polygon(0 100%, 0 0, 100% 100%);
  opacity: .55;
  pointer-events: none;
}

#asg-configuratore-wrapper .asg-config-header-center {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  max-width: 430px;
  position: relative;
  z-index: 2;
}

#asg-configuratore-wrapper .asg-config-type-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid rgba(112,149,255,.24);
  background: rgba(5,17,43,.52);
  color: #a8c0ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

#asg-configuratore-wrapper .asg-config-header-shell-v2 #asg-dynamic-title {
  margin: 0;
  color: #f4f8ff;
  font-size: clamp(34px, 3.8vw, 56px);
  line-height: .94;
  letter-spacing: -.05em;
  font-weight: 800;
  max-width: 100%;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: balance;
}

#asg-configuratore-wrapper .asg-config-header-shell-v2 .asg-controls-intro-compact {
  margin: 0;
  color: #98aac4;
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.45;
  max-width: 420px;
}

#asg-configuratore-wrapper .btn-back-models-hero,
#asg-configuratore-wrapper .asg-config-mode-pill-action {
  position: absolute;
  top: 26px;
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 24px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  z-index: 4;
}

#asg-configuratore-wrapper .btn-back-models-hero {
  left: 26px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(12,18,35,.76);
  color: #f6f8ff;
}

#asg-configuratore-wrapper .asg-config-mode-pill-action {
  right: 26px;
  border: 1px solid rgba(109,143,255,.28);
  background: radial-gradient(circle at 35% 25%, rgba(103,141,255,.95), rgba(54,101,255,.88));
  color: #fff;
  box-shadow: 0 14px 32px rgba(46,89,255,.24);
}

#asg-configuratore-wrapper .btn-back-models-hero i,
#asg-configuratore-wrapper .asg-config-mode-pill-action i {
  font-size: 24px;
}

#asg-configuratore-wrapper .asg-viewer-bottom-dock {
  width: 100%;
}

#asg-configuratore-wrapper.asg-state-models .asg-viewer-bottom-dock,
#asg-configuratore-wrapper .asg-state-models .asg-viewer-bottom-dock {
  display: none;
}

#asg-configuratore-wrapper.asg-state-configurator .asg-viewer-bottom-dock,
#asg-configuratore-wrapper .asg-state-configurator .asg-viewer-bottom-dock {
  display: block;
}

#asg-configuratore-wrapper .asg-inline-price-panel.asg-inline-price-panel-docked {
  padding: 20px 28px 16px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(4,10,24,.98), rgba(3,8,20,.98));
  border: 1px solid rgba(98,130,190,.16);
  box-shadow: 0 24px 60px rgba(0,0,0,.30), inset 0 0 0 1px rgba(255,255,255,.02);
}

#asg-configuratore-wrapper .asg-inline-price-panel-docked .asg-dock-main {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(360px, 1fr);
  align-items: start;
  gap: 18px 28px;
}

#asg-configuratore-wrapper .asg-inline-price-meta {
  grid-area: auto;
  display: grid;
  justify-items: start;
  gap: 4px;
  align-content: start;
}

#asg-configuratore-wrapper .asg-dock-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  min-height: 36px;
  padding: 0 18px;
  margin: 0 0 6px;
  border-radius: 999px;
  background: rgba(0,212,170,.08);
  border: 1px solid rgba(0,212,170,.22);
  color: #7df6df;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

#asg-configuratore-wrapper .asg-inline-price-panel-docked .price-label {
  display: block;
  margin-top: 0;
  color: #cfe0ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

#asg-configuratore-wrapper .asg-inline-price-panel-docked .price-value {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: clamp(52px, 4vw, 72px);
  line-height: .90;
  letter-spacing: -.05em;
  color: #fff;
}

#asg-configuratore-wrapper .asg-inline-price-panel-docked .currency {
  font-size: .48em;
  line-height: 1;
  transform: translateY(.14em);
}

#asg-configuratore-wrapper .asg-module-summary,
#asg-configuratore-wrapper #asg-price-warning {
  display: none !important;
}

#asg-configuratore-wrapper .asg-inline-price-panel-docked .asg-inline-cta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  align-self: start;
  margin-top: 8px;
}

#asg-configuratore-wrapper .asg-inline-price-panel-docked .asg-inline-cta-grid .btn {
  min-height: 68px;
  width: 100%;
  justify-content: center;
  text-align: center;
  border-radius: 20px;
  padding: 0 18px;
  font-size: 14px;
  line-height: 1.15;
}

#asg-configuratore-wrapper #asg-config-summary-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 0;
  width: 100%;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(98,130,190,.14);
}

#asg-configuratore-wrapper .asg-summary-col {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 14px 10px 0;
}

#asg-configuratore-wrapper .asg-summary-col.has-border {
  border-left: 1px solid rgba(98,130,190,.14);
  padding-left: 18px;
}

#asg-configuratore-wrapper .asg-summary-col-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  color: #86b5ff;
  font-size: 18px;
}

#asg-configuratore-wrapper .asg-summary-col:nth-child(1) .asg-summary-col-icon { color: #4de6ca; border-color: rgba(77,230,202,.20); }
#asg-configuratore-wrapper .asg-summary-col:nth-child(2) .asg-summary-col-icon { color: #69a5ff; border-color: rgba(105,165,255,.20); }
#asg-configuratore-wrapper .asg-summary-col:nth-child(3) .asg-summary-col-icon { color: #bb78ff; border-color: rgba(187,120,255,.20); }
#asg-configuratore-wrapper .asg-summary-col:nth-child(4) .asg-summary-col-icon { color: #ffbc4d; border-color: rgba(255,188,77,.20); }

#asg-configuratore-wrapper .asg-summary-col-data {
  display: grid;
  gap: 4px;
  min-width: 0;
}

#asg-configuratore-wrapper .asg-summary-col-label {
  color: #6c87aa;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

#asg-configuratore-wrapper .asg-summary-col-value {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#asg-configuratore-wrapper .asg-dock-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(98,130,190,.12);
}

#asg-configuratore-wrapper .asg-inline-disclaimer {
  margin: 0;
  color: transparent;
  font-size: 0;
  line-height: 1.45;
  position: relative;
}
#asg-configuratore-wrapper .asg-inline-disclaimer::before {
  content: "I prezzi indicati sono stime di massima e possono variare in base a specifici rilievi sul posto e costi di installazione.";
  color: #9ab0cf;
  font-size: 13px;
}

#asg-configuratore-wrapper .asg-dock-vat-note {
  flex: 0 0 auto;
  color: #d4e1f5;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  #asg-configuratore-wrapper .asg-inline-price-panel-docked .asg-dock-main {
    grid-template-columns: 1fr;
  }
  #asg-configuratore-wrapper #asg-config-summary-bar {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
  }
  #asg-configuratore-wrapper .asg-summary-col.has-border {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 767px) {
  #asg-configuratore-wrapper .asg-config-header-shell-v2 {
    min-height: 200px;
    padding: 20px 18px 22px;
  }
  #asg-configuratore-wrapper .btn-back-models-hero,
  #asg-configuratore-wrapper .asg-config-mode-pill-action {
    width: 64px;
    height: 64px;
    min-width: 64px;
    top: 18px;
  }
  #asg-configuratore-wrapper .btn-back-models-hero { left: 18px; }
  #asg-configuratore-wrapper .asg-config-mode-pill-action { right: 18px; }
  #asg-configuratore-wrapper .asg-inline-price-panel.asg-inline-price-panel-docked {
    padding: 20px 18px 16px;
  }
  #asg-configuratore-wrapper #asg-config-summary-bar,
  #asg-configuratore-wrapper .asg-inline-price-panel-docked .asg-inline-cta-grid {
    grid-template-columns: 1fr;
  }
  #asg-configuratore-wrapper .asg-dock-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* v5 final dock layout */
#asg-configuratore-wrapper .asg-viewer-bottom-dock { width: 100%; }
#asg-configuratore-wrapper.asg-state-models .asg-viewer-bottom-dock { display: none; }
#asg-configuratore-wrapper.asg-state-configurator .asg-viewer-bottom-dock { display: block; }
#asg-configuratore-wrapper .asg-inline-price-panel.asg-inline-price-panel-docked {
  padding: 22px 26px 16px;
  border-radius: 28px;
}
#asg-configuratore-wrapper .asg-inline-price-panel-docked .asg-dock-main {
  display: grid;
  grid-template-columns: minmax(300px, 410px) minmax(300px, 1fr);
  grid-template-areas:
    "left cta"
    "summary summary"
    "footer footer";
  gap: 18px 26px;
  align-items: start;
}
#asg-configuratore-wrapper .asg-dock-eyebrow {
  grid-area: left;
  justify-self: start;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  margin: 0;
  border-radius: 999px;
  text-align: center;
}
#asg-configuratore-wrapper .asg-inline-price-meta {
  grid-area: left;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 4px;
  padding-top: 46px;
  min-width: 0;
}
#asg-configuratore-wrapper .asg-inline-price-panel-docked .price-label {
  margin: 0;
  font-size: 11px;
  letter-spacing: .16em;
}
#asg-configuratore-wrapper .asg-inline-price-panel-docked .price-value {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: clamp(56px, 4.2vw, 74px);
  line-height: .92;
  letter-spacing: -.05em;
  margin: 0;
}
#asg-configuratore-wrapper .asg-inline-price-panel-docked .currency { font-size: .46em; transform: translateY(.14em); }
#asg-configuratore-wrapper .asg-module-summary,
#asg-configuratore-wrapper #asg-price-warning { display: none; }
#asg-configuratore-wrapper .asg-inline-price-panel-docked .asg-inline-cta-grid {
  grid-area: cta;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
  align-self: center;
  justify-self: end;
  width: min(100%, 520px);
  margin-top: 0;
}
#asg-configuratore-wrapper .asg-inline-price-panel-docked .asg-inline-cta-grid .btn {
  min-height: 66px;
  border-radius: 20px;
  font-size: 14px;
  padding: 0 18px;
  line-height: 1.15;
}
#asg-configuratore-wrapper #asg-config-summary-bar {
  grid-area: summary;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(98,130,190,.14);
}
#asg-configuratore-wrapper .asg-summary-col {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 14px 10px 0;
}
#asg-configuratore-wrapper .asg-summary-col.has-border {
  border-left: 1px solid rgba(98,130,190,.14);
  padding-left: 18px;
}
#asg-configuratore-wrapper .asg-summary-col-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: .14em;
  color: #8aa3c4;
}
#asg-configuratore-wrapper .asg-summary-col-value {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
#asg-configuratore-wrapper .asg-dock-footer {
  grid-area: footer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: 100%;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(98,130,190,.12);
}
#asg-configuratore-wrapper .asg-inline-disclaimer {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}
#asg-configuratore-wrapper .asg-inline-disclaimer i { display: none; }
#asg-configuratore-wrapper .asg-inline-disclaimer::after { display: none; }
#asg-configuratore-wrapper .asg-dock-vat-note {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #fff;
}
@media (max-width: 1180px) {
  #asg-configuratore-wrapper .asg-inline-price-panel-docked .asg-dock-main {
    grid-template-columns: 1fr;
    grid-template-areas: "left" "cta" "summary" "footer";
  }
  #asg-configuratore-wrapper .asg-dock-eyebrow,
  #asg-configuratore-wrapper .asg-inline-price-meta { justify-self: start; }
  #asg-configuratore-wrapper .asg-inline-price-panel-docked .asg-inline-cta-grid {
    grid-template-columns: 1fr 1fr;
    justify-self: stretch;
    width: 100%;
  }
  #asg-configuratore-wrapper #asg-config-summary-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  #asg-configuratore-wrapper .asg-inline-price-panel.asg-inline-price-panel-docked { padding: 18px 18px 14px; }
  #asg-configuratore-wrapper .asg-inline-price-panel-docked .asg-inline-cta-grid { grid-template-columns: 1fr; }
  #asg-configuratore-wrapper #asg-config-summary-bar { grid-template-columns: 1fr; }
  #asg-configuratore-wrapper .asg-dock-footer { grid-template-columns: 1fr; gap: 8px; }
}
