/* Full-page shell for the native Giva Infissi configurator. */
body.giva-preventivatore-page {
  background: #eef5fa !important;
}
body.giva-preventivatore-page #wpadminbar,
body.giva-preventivatore-page .wp-site-blocks > header,
body.giva-preventivatore-page .wp-site-blocks > footer,
body.giva-preventivatore-page > header,
body.giva-preventivatore-page > footer {
  display: none !important;
}
body.giva-preventivatore-page .wp-site-blocks,
body.giva-preventivatore-page main#wp--skip-link--target,
body.giva-preventivatore-page main#wp--skip-link--target > .wp-block-group,
body.giva-preventivatore-page .entry-content {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.giva-preventivatore-page .wp-block-post-title {
  display: none !important;
}
body.giva-preventivatore-page .pvcv-app {
  min-height: 100vh;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
body.giva-preventivatore-page .cv-landing,
body.giva-preventivatore-page .cv-landing-main,
body.giva-preventivatore-page .cv-emotional-hero {
  width: 100% !important;
  max-width: none !important;
}
body.giva-preventivatore-page .cv-emotional-hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr) !important;
}
body.giva-preventivatore-page .cv-emotional-copy {
  min-width: 0 !important;
  width: auto !important;
}
body.giva-preventivatore-page .cv-emotional-visual {
  min-height: 420px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f7fbfe, #dbeaf5);
  overflow: hidden;
}
body.giva-preventivatore-page .cv-emotional-visual > img {
  width: min(72%, 360px) !important;
  height: auto !important;
  max-height: 260px !important;
  object-fit: contain !important;
}
body.giva-preventivatore-page .cv-emotional-visual > img.cv-hero-image {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  padding: 0 !important;
}
body.giva-preventivatore-page .cv-home-showcase img,
body.giva-preventivatore-page .cv-card-media img {
  object-fit: contain !important;
  padding: 22px;
}
body.giva-preventivatore-page .cv-download-cta {
  align-self: end;
  border: 1px solid #0a3b78;
  background: #fff;
  color: #0a3b78;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 800;
  cursor: pointer;
}
body.giva-preventivatore-page .cv-download-cta:hover {
  background: #0a3b78;
  color: #fff;
}
body.giva-preventivatore-page .cv-official-material {
  padding: 80px max(24px, 7vw);
  background: #fff;
}
body.giva-preventivatore-page .cv-official-material h3 {
  max-width: 760px;
  margin: 12px 0 30px;
  color: #083b78;
  font-size: clamp(28px, 4vw, 50px);
}
body.giva-preventivatore-page .cv-official-material > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
body.giva-preventivatore-page .cv-official-material article {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid #d9e5ed;
  border-radius: 18px;
  background: #f7fbfe;
}
body.giva-preventivatore-page .cv-official-material article strong { color: #0a3b78; }
body.giva-preventivatore-page .cv-official-material article span { color: #536579; line-height: 1.55; }
@media (max-width: 760px) {
  body.giva-preventivatore-page .cv-official-material > div { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body.giva-preventivatore-page .cv-emotional-hero {
    grid-template-columns: 1fr !important;
  }
  body.giva-preventivatore-page .cv-emotional-visual {
    min-height: 260px;
  }
  body.giva-preventivatore-page .cv-emotional-visual > img {
    width: min(62%, 250px) !important;
    max-height: 180px !important;
  }
}

/* Schede vetri/accessori: contenuto fluido anche su schermi stretti. */
.cv-options > label {
  min-width: 0;
  overflow: hidden;
  align-items: start;
}
.cv-options > label > .cv-option-copy {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.cv-options > label > .cv-option-copy strong,
.cv-options > label > .cv-option-copy small {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.cv-glass-option-photo,
.cv-accessory-option-photo {
  flex: 0 0 92px;
  max-width: 100%;
}
.cv-glass-option-photo > span {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 4px;
  color: #0b3c70;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 900;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.cv-glass-option-photo figcaption {
  font-size: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cv-accessory-option-icon {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #bfd5e3;
  border-radius: 9px;
  background: #edf6fa;
  color: #0b3c70;
  font-size: 21px;
  font-weight: 900;
}
.cv-accessory-option-photo > span {
  display: block;
  min-height: 52px;
  border-radius: 7px;
  background: linear-gradient(145deg,#eaf5fa,#c5dfea);
  position: relative;
}
.cv-accessory-option-photo > span:before,
.cv-accessory-option-photo > span:after {
  content: '';
  position: absolute;
  display: block;
}
.cv-accessory-maniglia > span:before { left: 50%; top: 8px; width: 8px; height: 36px; transform: translateX(-50%); border: 3px solid #164c78; border-radius: 6px; background: #eef8fb; }
.cv-accessory-maniglia > span:after { left: 50%; top: 21px; width: 24px; height: 7px; transform: translateX(-50%); border-radius: 5px; background: #164c78; }
.cv-accessory-motore > span:before { left: 50%; top: 12px; width: 30px; height: 30px; transform: translateX(-50%); border: 4px solid #164c78; border-radius: 50%; background: repeating-conic-gradient(#dceef5 0 12deg,#3c789d 12deg 18deg); }
.cv-accessory-sensore > span:before { left: 50%; top: 15px; width: 24px; height: 24px; transform: translateX(-50%); border: 4px solid #164c78; border-radius: 5px; background: #f7fbfd; }
.cv-accessory-sensore > span:after { left: 50%; top: 24px; width: 7px; height: 7px; transform: translateX(-50%); border-radius: 50%; background: #2b9bcb; }
.cv-accessory-valvola > span:before { left: 50%; top: 11px; width: 28px; height: 32px; transform: translateX(-50%); border: 4px solid #164c78; border-radius: 4px 12px 12px 4px; background: #eaf7fb; }
.cv-accessory-componente > span:before { left: 50%; top: 13px; width: 31px; height: 27px; transform: translateX(-50%); border: 4px solid #164c78; border-radius: 6px; background: #eef8fb; }
.cv-accessory-option-photo figcaption { margin-top: 3px; color: #0b3c70; font-size: 7px; font-weight: 900; text-align: center; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) {
  .cv-options > label {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 8px;
    width: 100%;
  }
  .cv-options > label:has(.cv-glass-option-photo),
  .cv-options > label:has(.cv-accessory-option-photo),
  .cv-options > label:has(.cv-finish-sample),
  .cv-options > label:has(.cv-accessory-option-icon) {
    grid-template-columns: 22px minmax(76px, 104px) minmax(0, 1fr);
  }
  .cv-options > label:has(.cv-accessory-option-icon) {
    grid-template-columns: 22px 36px minmax(0, 1fr);
  }
  .cv-options > label > input { grid-column: 1; margin-top: 9px; }
  .cv-options > label > .cv-option-copy { grid-column: 2; width: auto; }
  .cv-options > label:has(.cv-glass-option-photo) > .cv-option-copy,
  .cv-options > label:has(.cv-accessory-option-photo) > .cv-option-copy,
  .cv-options > label:has(.cv-finish-sample) > .cv-option-copy { grid-column: 3; }
  .cv-options > label > .cv-glass-option-photo,
  .cv-options > label > .cv-accessory-option-photo,
  .cv-options > label > .cv-finish-sample { grid-column: 2; width: 100%; min-width: 0; }
  .cv-options > label > .cv-accessory-option-icon { grid-column: 2; }
  .cv-options > label:has(.cv-accessory-option-icon) > .cv-option-copy { grid-column: 3; }
  .cv-option-quantity { min-width: 0; }
  .cv-option-quantity input { max-width: 100%; }
}
.cv-subcategory-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;margin-top:24px}.cv-subcategory-card{min-height:170px;padding:24px;border:1px solid #d8e1e8;border-radius:18px;background:linear-gradient(145deg,#fff,#f3f7fa);color:#12324a;text-align:left;display:flex;flex-direction:column;gap:8px;cursor:pointer;box-shadow:0 8px 24px rgba(15,48,70,.08);transition:.2s ease}.cv-subcategory-card:hover{transform:translateY(-3px);border-color:#1f739e;box-shadow:0 14px 30px rgba(15,48,70,.14)}.cv-subcategory-card small{color:#1f739e;font-weight:800}.cv-subcategory-card strong{font-size:1.2rem}.cv-subcategory-card span{color:#647888}.cv-subcategory-card i{margin-top:auto;font-style:normal;font-weight:800;color:#13658d}.cv-saved-list article nav{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.cv-saved-list article nav button{border:1px solid #cbd8df;border-radius:9px;background:#fff;color:#173b52;padding:8px 11px;font-weight:700;cursor:pointer}.cv-saved-list article nav button:disabled{opacity:.55;cursor:default}
.cv-product-symbol{width:118px;min-width:118px;height:112px;border-radius:15px;background:linear-gradient(150deg,#eff7fa,#dcebf1);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#135676;border:1px solid #c5dae4}.cv-product-symbol b{font-size:2.4rem;line-height:1}.cv-product-symbol small{max-width:95px;text-align:center;font-size:.65rem;line-height:1.2;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
