.sg-fixing-gallery,
.sg-fixing-summary {
  color: #173347;
  background: #f4f8fa;
  border-block: 1px solid #d8e3e9;
  scroll-margin-top: 24px;
}
.sg-fixing-gallery { padding: 44px 0; margin-block: 28px; }
.sg-fixing-inner { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.sg-fixing-heading { max-width: 800px; margin-bottom: 22px; }
.sg-fixing-heading h2 { margin: 8px 0 14px; font-size: clamp(1.55rem, 2.3vw, 2.1rem); line-height: 1.2; }
.sg-fixing-heading p { line-height: 1.65; }
.sg-fixing-eyebrow { margin: 0 0 6px; color: #2474a0; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.sg-fixing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sg-fixing-photo { margin: 0; background: #fff; border: 1px solid #d8e3e9; border-radius: 10px; overflow: hidden; }
.sg-fixing-photo a { display: block; background: #fff; }
.sg-fixing-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; padding: 8px; box-sizing: border-box; }
.sg-fixing-photo figcaption { padding: 12px 16px; font-size: .9rem; font-weight: 700; color: #173347; }
.sg-fixing-caption { margin: 14px 0 0; color: #5c6e78; font-size: .82rem; line-height: 1.5; }
.sg-fixing-footer { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.sg-fixing-footer p { flex: 1 1 280px; margin: 0; font-size: .9rem; line-height: 1.55; }
.sg-fixing-link { display: inline-block; padding: 11px 16px; background: #176fa0; border: 1px solid #176fa0; color: #fff; border-radius: 6px; font-weight: 700; text-decoration: none; }
.sg-fixing-link:hover { background: #12587f; color: #fff; }
#sg-planner-workbench .sg-fixing-gallery a.sg-fixing-link,
#sg-planner-workbench .sg-fixing-gallery a.sg-fixing-link:hover { color: #fff; }
.sg-fixing-gallery a:focus-visible,
.sg-fixing-summary a:focus-visible { outline: 3px solid #c86716; outline-offset: 3px; }
.sg-fixing-summary { padding-block: 22px !important; }
.sg-fixing-summary-card { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: center; }
.sg-fixing-summary-card > img { display: block; width: 160px; height: 120px; object-fit: contain; border-radius: 8px; background: #fff; }
.sg-fixing-summary-card h2 { margin: 0 0 8px; font-size: 1.35rem; line-height: 1.25; }
.sg-fixing-summary-card p:not(.sg-fixing-eyebrow) { margin: 0; font-size: .94rem; line-height: 1.5; }
.sg-fixing-summary-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 12px; }
.sg-fixing-summary-links a { color: #155e89; font-size: .9rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
#sg-planner-workbench .sg-fixing-gallery { padding-block: 30px; }
#sg-planner-workbench .sg-fixing-inner { width: calc(100% - 32px); }
@media (max-width: 720px) {
  .sg-fixing-grid { grid-template-columns: 1fr; }
  .sg-fixing-photo img { max-height: 310px; }
  .sg-fixing-summary-card { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; }
  .sg-fixing-summary-card > img { width: 110px; height: 110px; }
}
@media (max-width: 440px) {
  .sg-fixing-inner { width: calc(100% - 28px); }
  .sg-fixing-summary-card { grid-template-columns: 1fr; }
}
@media print {
  .sg-fixing-gallery,
  .sg-fixing-summary { break-inside: avoid; }
}

/* Scelta accessori sulle otto schede: gruppo radio nativo e link senza JS. */
.sg-accessories {
  color: #173347;
  background: #f4f8fa;
  border-block: 1px solid #d8e3e9;
  padding-block: clamp(30px, 4vw, 54px);
  scroll-margin-top: 24px;
}
.sg-accessories [hidden] { display: none !important; }
.sg-accessories-heading { max-width: 800px; margin-bottom: 24px; }
.sg-accessories-heading h2 { margin: 8px 0 14px; font-size: clamp(1.55rem, 2.3vw, 2.1rem); line-height: 1.2; }
.sg-accessories-heading p { line-height: 1.6; margin-block: 8px; }
.sg-accessories-model { display: inline-block; margin-left: 8px; color: #526b7a; font-size: .88rem; }
.sg-accessories-options { min-width: 0; margin: 0; padding: 0; border: 0; }
.sg-accessories-options legend { padding: 0; margin-bottom: 12px; font-weight: 700; font-size: 1rem; }
.sg-accessories input[type="radio"] { width: 20px; height: 20px; padding: 0; margin: 3px 0 0; flex: 0 0 20px; accent-color: #176fa0; cursor: pointer; }
.sg-accessory-base { padding: 16px 20px; margin-bottom: 18px; background: #fff; border: 2px solid #d8e3e9; border-radius: 10px; }
.sg-accessory-base label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.sg-accessory-base label > span { display: grid; gap: 3px; }
.sg-accessory-base label > span > span { font-size: .92rem; line-height: 1.5; color: #526b7a; }
.sg-accessories-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sg-accessory-card { min-width: 0; background: #fff; border: 2px solid #d8e3e9; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.sg-accessory-card > label { display: block; cursor: pointer; flex: 1; }
.sg-accessory-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #f8f9fa; }
.sg-accessory-copy { display: grid; gap: 13px; padding: 20px 20px 14px; }
.sg-accessory-title { display: flex; gap: 12px; align-items: flex-start; }
.sg-accessory-title strong { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.35; }
.sg-accessory-description { font-size: .95rem; line-height: 1.6; color: #526b7a; }
.sg-accessory-price { font-weight: 700; font-size: .92rem; color: #173347; }
.sg-accessory-links { padding: 0 20px 20px; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.sg-accessories .sg-accessory-links a,
.sg-accessories a.sg-accessory-fallback { color: #155e89; font-weight: 700; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; line-height: 1.5; }
.sg-accessory-base > .sg-accessory-fallback { display: inline-block; margin: 10px 0 0 32px; }
.sg-accessory-card.is-selected,
.sg-accessory-base.is-selected { border-color: #176fa0; box-shadow: 0 0 0 1px #176fa0; }
.sg-accessory-card:has(input:checked),
.sg-accessory-base:has(input:checked) { border-color: #176fa0; box-shadow: 0 0 0 1px #176fa0; }
.sg-accessories input:focus-visible,
.sg-accessories a:focus-visible { outline: 3px solid #c86716; outline-offset: 4px; }
.sg-accessories-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.sg-accessories-action p { flex: 1 1 240px; margin: 0; font-weight: 700; line-height: 1.5; }
.sg-accessories a.sg-fixing-link,
.sg-accessories a.sg-fixing-link:hover { color: #fff; text-align: center; line-height: 1.5; }
.sg-accessories-note { margin: 18px 0 0; max-width: 850px; color: #526b7a; font-size: .88rem; line-height: 1.6; }
@media (max-width: 720px) {
  .sg-accessories-grid { grid-template-columns: 1fr; }
  .sg-accessory-copy { padding: 18px 16px 12px; }
  .sg-accessory-links { padding-inline: 16px; }
  .sg-accessories-action { align-items: stretch; flex-direction: column; }
  .sg-accessories-action p { flex-basis: auto; }
  .sg-accessories a.sg-fixing-link { width: 100%; box-sizing: border-box; }
}
@media print {
  .sg-accessory-card { break-inside: avoid; }
  .sg-accessories-action, .sg-accessory-fallback { display: none; }
}

/* Shared WIDE24 selector: eight product pages and the complete comparison page. */
.sg-wide24 { color: #173347; background: #fff; border: 1px solid #ccdae2; border-radius: 12px; padding: clamp(20px, 3vw, 32px); margin-top: 24px; }
.sg-wide24 [hidden] { display: none !important; }
.sg-wide24-heading { max-width: 760px; margin-bottom: 24px; }
.sg-wide24-heading h3 { font-size: clamp(1.4rem, 2.3vw, 1.9rem); line-height: 1.2; margin: 7px 0 12px; }
.sg-wide24-heading > p:last-child { line-height: 1.6; color: #526b7a; }
.sg-wide24-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; border: 0; padding: 0; min-width: 0; margin: 0 0 26px; }
.sg-wide24-options legend { padding: 0; margin-bottom: 14px; font-size: .86rem; font-weight: 700; }
.sg-wide24-options label { display: grid; gap: 7px; min-width: 0; font-size: .88rem; font-weight: 700; color: #304c5d; }
.sg-wide24-options .sg-wide24-model { grid-column: 1 / -1; }
.sg-wide24 select { width: 100%; max-width: 100%; min-width: 0; min-height: 48px; border: 1px solid #a7bac6; border-radius: 6px; padding: 10px 12px; background: #fff; color: #173347; font: inherit; font-weight: 500; box-sizing: border-box; }
.sg-wide24 select:focus-visible, .sg-wide24 a:focus-visible { outline: 3px solid #c86716; outline-offset: 3px; }
.sg-wide24-result { display: grid; grid-template-columns: minmax(170px, .6fr) minmax(0, 1.2fr); gap: 28px; padding: 24px; background: #edf5f8; border-radius: 8px; }
.sg-wide24-price-label { margin: 0 0 8px; font-size: .82rem; font-weight: 700; }
.sg-wide24-price { display: block; color: #114e71; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; font-weight: 700; }
.sg-wide24-price-note { margin: 12px 0 0; color: #526b7a; font-size: .79rem; line-height: 1.5; max-width: 35ch; }
.sg-wide24-kit-name { font-size: .98rem; line-height: 1.5; margin: 0 0 8px; font-weight: 700; }
.sg-wide24-code { display: block; font-size: .78rem; line-height: 1.6; color: #3e6275; overflow-wrap: anywhere; }
.sg-wide24-dimensions { display: flex; gap: 14px 30px; flex-wrap: wrap; padding: 16px 0; margin: 0; }
.sg-wide24-dimensions dt { font-size: .79rem; color: #526b7a; margin-bottom: 4px; }
.sg-wide24-dimensions dd { margin: 0; font-weight: 700; font-size: 1rem; }
.sg-wide24-included { font-size: .84rem; line-height: 1.55; margin: 0; }
.sg-wide24-warning, .sg-wide24-error { margin: 18px 0 0; padding: 12px 16px; border-left: 3px solid #b87412; color: #725012; background: #fff8e8; font-size: .88rem; line-height: 1.55; }
.sg-wide24-footer { display: flex; gap: 18px 30px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.sg-wide24-footer p { flex: 1 1 280px; margin: 0; font-size: .82rem; line-height: 1.6; color: #526b7a; }
.sg-wide24-footer .sg-fixing-link { flex: 0 1 auto; color: #fff; text-align: center; }
.sg-wide24 noscript p { margin-top: 20px; font-size: .86rem; line-height: 1.6; }
@media (max-width: 720px) {
  .sg-wide24-result { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
  .sg-wide24-price-note { max-width: none; }
  .sg-wide24-footer { align-items: stretch; }
  .sg-wide24-footer p { flex-basis: 100%; }
  .sg-wide24-footer .sg-fixing-link { width: 100%; box-sizing: border-box; }
}
@media (max-width: 480px) {
  .sg-wide24-options { grid-template-columns: 1fr; gap: 16px; }
  .sg-wide24 { padding: 18px; }
}
@media print {
  .sg-wide24-options, .sg-wide24-footer .sg-fixing-link { display: none; }
  .sg-wide24 { break-inside: avoid; }
}

/* Cable choice beside the same real product photo used in the product hero. */
.sg-accessory-base label { align-items: center; }
.sg-accessory-base label > span:not(.sg-accessory-bar-photo) { flex: 1; }
.sg-accessory-base .sg-accessory-bar-photo { display: flex; flex: 0 1 380px; height: 95px; padding: 12px 20px; background: #304653; border-radius: 6px; overflow: hidden; align-items: center; justify-content: center; box-sizing: border-box; }
.sg-accessory-bar-photo img { display: block; width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 2px 3px #0004); }
.sg-accessory-bar-photo img[src$="/520fca4a8c6cd3bca2.png"],
.sg-accessory-bar-photo img[src$="/ef658ea071df8454b3.png"] { max-height: none; flex: none; height: auto; }
.sg-cable-choice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .65fr); gap: 20px 32px; margin-top: 26px; padding: 24px; background: #fff; border: 1px solid #ccdae2; border-radius: 10px; }
.sg-cable-choice label { display: block; font-weight: 700; margin-bottom: 8px; }
.sg-cable-choice select, .sg-cable-choice input { display: block; width: 100%; min-height: 48px; box-sizing: border-box; border: 1px solid #a7bac6; border-radius: 6px; background: #fff; color: #173347; padding: 10px 12px; font: inherit; }
.sg-cable-choice p { font-size: .88rem; line-height: 1.5; color: #526b7a; margin: 10px 0 0; }
.sg-cable-quote { grid-column: 1 / -1; border-top: 1px solid #d8e3e9; padding-top: 14px; }
.sg-cable-quote [data-accessory-price] { color: #173347; font-size: 1.4rem; font-weight: 700; margin: 0 0 8px; }
.sg-cable-quote code { font-size: .86rem; overflow-wrap: anywhere; }
.sg-accessory-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sg-accessory-buttons .sg-fixing-link { font: inherit; font-weight: 700; cursor: pointer; }
.sg-accessory-buttons .sg-cart-add { background: #173347; border-color: #173347; }
.sg-accessory-buttons button:disabled { opacity: .5; cursor: not-allowed; }
.sg-cart-view { color: #155e89; text-decoration: underline; text-underline-offset: 3px; }
.sg-cart-status { color: #155e89; font-weight: 700; line-height: 1.6; }
.sg-cable-choice :focus-visible, .sg-accessory-buttons button:focus-visible { outline: 3px solid #c86716; outline-offset: 3px; }
.sg-accessories .sg-wide24-footer [data-wide24-apply] { display: none; }
@media (max-width: 720px) {
  .sg-accessory-base label { flex-wrap: wrap; }
  .sg-accessory-base .sg-accessory-bar-photo { flex-basis: 100%; height: 90px; margin-top: 8px; }
  .sg-cable-choice { grid-template-columns: 1fr; padding: 18px; }
  .sg-accessory-buttons { flex-direction: column; align-items: stretch; }
  .sg-accessory-buttons .sg-fixing-link { width: 100%; box-sizing: border-box; text-align: center; }
}
