/* Immagini dimostrative: stili limitati alle tre nuove aree. */
.ks-page .ks-hero { grid-template-columns: 1fr 1fr; gap: 36px; }
.ks-product { --product-accent: #c6b2ff; min-width: 0; margin: 0; padding: 22px; border: 1px solid #bba5ff38; border-radius: 23px; background: radial-gradient(ellipse at 100% 0, #69509b20, transparent 70%), #0c1424; box-shadow: 0 20px 60px #0003; }
.ks-product--apps { --product-accent: #7bdcff; border-color: #7bdcff38; }
.ks-product--automation { --product-accent: #8de5c8; border-color: #8de5c838; }
.ks-product-kicker { margin: 0 0 12px; color: var(--product-accent); font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.ks-product-heading h2 { margin: 0 0 11px; color: #eef3ff; font-size: clamp(23px, 2.3vw, 29px); line-height: 1.15; letter-spacing: -.035em; }
.ks-product-benefit { margin: 0 0 18px; color: #b6c7e2; font-size: 14px; line-height: 1.55; }
.ks-product-open { position: relative; display: block; overflow: hidden; border: 1px solid #8298bd40; border-radius: 13px; background: #070c16; cursor: zoom-in; isolation: isolate; }
.ks-product-open picture { display: block; }
.ks-product-open img { display: block; width: 100%; height: auto; }
.ks-product-expand { position: absolute; inset: auto 0 0; display: flex; justify-content: center; align-items: center; gap: 9px; min-height: 51px; padding: 13px 10px; background: #0b1426ed; border-top: 1px solid #93afd340; color: #eff6ff; font-size: 13px; font-weight: 650; }
.ks-product-expand svg { width: 17px; height: 17px; color: var(--product-accent); }
.ks-product-open:hover { border-color: var(--product-accent); }
.ks-product-open:hover .ks-product-expand { background: #18253b; }
.ks-product-note { margin: 12px 0 0; color: #91a7c7; font-size: 11px; line-height: 1.6; }

.ks-viewer { position: fixed; inset: 0; width: min(1440px, calc(100% - 32px)); height: calc(100% - 32px); height: calc(100dvh - 32px); max-width: none; max-height: none; margin: auto; padding: 0; border: 1px solid #637b9e70; border-radius: 19px; color: #edf4ff; background: #080f1c; box-shadow: 0 28px 100px #0008; overflow: hidden; }
.ks-viewer:not([open]) { display: none; }
.ks-viewer::backdrop { background: #02060de8; }
.ks-viewer-shell { height: 100%; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.ks-viewer-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 20px; border-bottom: 1px solid #8298bd30; background: #0e1829; }
.ks-viewer-kicker { margin: 0 0 5px; color: #a7bada; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.ks-viewer-header h2 { margin: 0; font-size: 21px; line-height: 1.2; letter-spacing: -.025em; }
.ks-viewer button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 9px 13px; border: 1px solid #8298bd45; border-radius: 9px; color: #deebff; background: #142037; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ks-viewer button:hover:not(:disabled) { background: #263651; border-color: #91adcf; }
.ks-viewer button:disabled { opacity: .42; cursor: default; }
.ks-viewer button:focus-visible, .ks-viewer a:focus-visible, .ks-viewer-stage:focus-visible { outline: 2px solid #9fe8ff; outline-offset: -3px; }
.ks-viewer-close { flex-shrink: 0; }
.ks-viewer-close svg { width: 19px; height: 19px; }
.ks-viewer-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; padding: 10px 20px; border-bottom: 1px solid #8298bd30; background: #0b1424; }
.ks-viewer-variants, .ks-viewer-zoom { display: flex; align-items: center; gap: 6px; }
.ks-viewer-variants [aria-pressed="true"] { color: #e7dbff; border-color: #bea2f67d; background: #3f2e6460; }
.ks-viewer-zoom button[data-ks-zoom] { font-size: 21px; }
.ks-viewer-scale { min-width: 47px; color: #a8c0df; font-size: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.ks-viewer-stage { min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; scrollbar-color: #5a6d8c #101a2a; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.ks-viewer-stage[data-zoomed="true"] { cursor: grab; }
.ks-viewer-stage.ks-dragging { cursor: grabbing; user-select: none; }
.ks-viewer-canvas { display: grid; justify-items: center; align-items: start; min-width: 100%; min-height: 100%; width: max-content; padding: 20px; box-sizing: border-box; }
.ks-viewer-image { display: block; width: 100%; max-width: none; height: auto; border-radius: 9px; box-shadow: 0 12px 60px #0004; }
.ks-viewer-image[hidden] { display: none; }
.ks-viewer-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding: 7px 20px; border-top: 1px solid #8298bd30; background: #0b1424; }
.ks-viewer-footer p { margin: 0; color: #9bb2d3; font-size: 12px; }
.ks-viewer-status { color: #c8d9f3; font-size: 12px; }
.ks-viewer-status:empty { display: none; }
.ks-viewer-original { display: inline-flex; align-items: center; min-height: 44px; color: #c8d9f3; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
html.ks-gallery-open { scroll-behavior: auto; }
.ks-gallery-open .floating-wa { visibility: hidden; pointer-events: none; }
@media (max-width: 1020px) and (min-width: 761px) {
  .ks-page .ks-hero { gap: 24px; }
  .ks-product { padding: 18px; }
}
@media (max-width: 760px) {
  .ks-page .ks-hero { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .ks-product { padding: 18px; border-radius: 20px; }
  .ks-product-heading h2 { font-size: 25px; }
  .ks-product-open { aspect-ratio: 1.12; max-height: 380px; }
  .ks-product-open picture { height: 100%; }
  .ks-product-open img { height: 100%; object-fit: cover; object-position: center 22%; }
  .ks-product-note { font-size: 11px; }
  .ks-viewer { width: calc(100% - 12px); height: calc(100% - 12px); height: calc(100dvh - 12px); border-radius: 13px; }
  .ks-viewer-header { gap: 8px; padding: max(12px, env(safe-area-inset-top)) 12px 12px; }
  .ks-viewer-kicker { font-size: 9px; letter-spacing: .035em; }
  .ks-viewer-header h2 { font-size: 17px; }
  .ks-viewer button { padding-inline: 11px; }
  .ks-viewer-close span { display: none; }
  .ks-viewer-tools { gap: 8px; padding: 9px 12px; }
  .ks-viewer-variants { flex: 1; }
  .ks-viewer-variants button { flex: 1; }
  .ks-viewer-zoom { margin-left: auto; }
  .ks-viewer-scale { min-width: 41px; }
  .ks-viewer-canvas { padding: 10px; }
  .ks-viewer-footer { padding: 5px 12px max(5px, env(safe-area-inset-bottom)); gap: 0 10px; }
  .ks-viewer-footer p { font-size: 11px; flex-basis: 100%; padding-top: 5px; }
  .ks-viewer-original { margin-left: auto; }
}
@media (max-height: 500px) and (min-width: 600px) {
  .ks-viewer-header { padding-block: 7px; }
  .ks-viewer-kicker { display: none; }
  .ks-viewer-tools { padding-block: 5px; }
  .ks-viewer-footer { padding-block: 0; }
  .ks-viewer-footer p { flex-basis: auto; }
}
