.sglp {
  --ink: #102033;
  --muted: #63727a;
  --soft: #f4faf1;
  --line: #dbe9d7;
  --green: #62b944;
  --green-dark: #287b42;
  --blue: #1291db;
  --blue-dark: #0c5d91;
  --night: #101923;
  --panel: #ffffff;
  --amber: #ffb02e;
  --amber-soft: #fff1cf;
  --red: #d9534f;
  --lcd: #2350e6;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

.sglp, .sglp * { box-sizing: border-box; }
.sglp {
  margin: 0;
  font-family: inherit;
  color: var(--ink);
  background: var(--panel);
  line-height: 1.6;
}
.sglp img { max-width: 100%; }
.sglp a { color: var(--blue-dark); }
.sglp .mono { font-family: var(--mono); }
.sglp .wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.sglp .kicker { font-family: var(--mono); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--green-dark); margin: 0 0 10px; }
.sglp h1, .sglp h2, .sglp h3 { line-height: 1.15; margin: 0 0 14px; letter-spacing: -.01em; }
.sglp h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.sglp h1 span { color: var(--amber); }
.sglp h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.sglp h3 { font-size: 1.12rem; }
.sglp .lead { font-size: 1.12rem; color: #c9d4dc; max-width: 560px; }
.sglp .lead-sm { color: var(--muted); max-width: 680px; margin: 0 0 30px; }
.sglp .fine, .sglp .hint { font-size: .86rem; color: var(--muted); }
.sglp .small { font-size: .9rem; color: var(--muted); }

.sglp .btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: .98rem; font-family: inherit; transition: transform .15s, background .15s; }
.sglp .btn:hover { transform: translateY(-1px); }
.sglp .btn-primary { background: var(--green); color: #fff; }
.sglp .btn-primary:hover { background: var(--green-dark); }
.sglp .btn-ghost { border-color: #3a4a57; color: #fff; }
.sglp .btn-ghost-light { border-color: rgba(255,255,255,.35); color: #fff; }
.sglp .btn-small { padding: 9px 16px; font-size: .9rem; }
.sglp .btn.is-disabled { background: #c9d2cc; pointer-events: none; }

/* ---------- hero ---------- */
.sglp .hero { background: radial-gradient(1200px 500px at 80% 30%, #1d2c3a, var(--night)); color: #fff; padding: 72px 0 80px; overflow: hidden; }
.sglp .hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.sglp .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.sglp .hero .kicker { color: var(--green); }
.sglp .bulb-stage { display: grid; place-items: center; gap: 18px; }
.sglp .bulb { width: min(260px, 70vw); overflow: visible; }
.sglp .bulb .glass { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.55); stroke-width: 2; }
.sglp .bulb .filament { fill: none; stroke: #ffcf6b; stroke-width: 2.4; stroke-linecap: round; }
.sglp .bulb .cap { fill: #7d8a93; }
.sglp .bulb .halo { opacity: 0; transform-origin: 60px 62px; }
.sglp .hero-meter { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: #aab7c1; }
.sglp .meter { width: 160px; height: 8px; border-radius: 4px; background: #2a3946; overflow: hidden; }
.sglp .meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffcf6b, var(--amber)); }

/* ---------- sections ---------- */
.sglp .section { padding: 84px 0; }
.sglp .section-soft { background: var(--soft); }
.sglp .section-dark { background: var(--night); color: #fff; }
.sglp .section-dark .lead-sm, .sglp .section-dark .fine { color: #9fb0bb; }
.sglp .section-dark .kicker { color: var(--green); }

.sglp .cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sglp .card { border: 1px solid var(--line); border-radius: 18px; padding: 26px; background: #fff; }
.sglp .card .ico { font-size: 1.8rem; margin-bottom: 10px; }
.sglp .card p { color: var(--muted); margin: 0; }

/* ---------- curves ---------- */
.sglp .curve-box { background: #16222e; border: 1px solid #263644; border-radius: 22px; padding: 22px; }
.sglp .curve-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sglp .chip { font: inherit; font-size: .9rem; padding: 8px 14px; border-radius: 999px; border: 1px solid #3a4a57; background: transparent; color: #c9d4dc; cursor: pointer; }
.sglp .chip.is-on { background: #fff; color: var(--ink); border-color: #fff; }
.sglp .chip-accent.is-on { background: var(--green); color: #fff; border-color: var(--green); }
.sglp .curve-chart { width: 100%; height: auto; display: block; }
.sglp .curve-chart .grid line { stroke: #4a5a66; stroke-width: 2; }
.sglp .curve-chart .grid .faint { stroke: #24323e; stroke-width: 1; stroke-dasharray: 4 6; }
.sglp .curve-chart .axis { fill: #8c9ca7; font-size: 14px; text-anchor: middle; }
.sglp .curve-chart .ghost { fill: none; stroke: #3d5161; stroke-width: 2; stroke-dasharray: 6 6; }
.sglp .curve-chart .curve { fill: none; stroke: var(--amber); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.sglp .curve-chart .curve.is-map { stroke: var(--green); }
.sglp .curve-chart .dot { fill: #fff; stroke: var(--amber); stroke-width: 3; }
.sglp .curve-chart .zone rect { fill: rgba(217, 83, 79, .14); }
.sglp .curve-chart .zone-label { fill: #ff8f8a; font-size: 13px; font-family: var(--mono); }
.sglp .curve-note { margin: 10px 4px 0; color: #dbe4ea; min-height: 3.2em; }

/* ---------- rooms ---------- */
.sglp .rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sglp .room { margin: 0; }
.sglp .room-box { position: relative; height: 230px; border-radius: 18px; background: #05080b; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding: 18px; }
.sglp .room-light { position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, #fff4d1 0%, #ffd27a 35%, rgba(255,190,90,.25) 70%, transparent 100%); opacity: 0; }
.sglp .cage { position: relative; width: 28%; height: 62%; border: 2px solid rgba(255,255,255,.12); border-radius: 6px; background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(255,255,255,.08) 9px 10px); }
.sglp .room figcaption { display: flex; flex-direction: column; padding: 10px 4px; }
.sglp .room figcaption span { color: var(--muted); font-size: .92rem; }
.sglp .timeline { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.sglp .timeline .btn { background: var(--ink); color: #fff; }
.sglp .tl-bar { flex: 1; height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.sglp .tl-bar i { display: block; height: 100%; width: 0; background: var(--amber); }

/* ---------- display ---------- */
.sglp .display-grid { display: grid; grid-template-columns: 1fr 440px; gap: 48px; align-items: center; }
.sglp .steps-list { padding-left: 1.2em; }
.sglp .steps-list li { padding: 6px 8px; border-radius: 8px; transition: background .2s; }
.sglp .steps-list li.is-on { background: #e3f2dc; }
.sglp .device { --panel-bg: #f3f2ec; position: relative; background: var(--panel-bg); border: 1px solid #d8d6cc; border-radius: 14px; padding: 18px 20px 16px; box-shadow: 0 18px 40px rgba(16, 32, 51, .14), inset 0 0 0 6px #fbfaf5; color: #111; }
.sglp .device-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.sglp .device-head .brand { font-family: "Arial Black", Arial, sans-serif; font-style: italic; font-weight: 900; letter-spacing: .14em; font-size: clamp(.82rem, 2.4vw, 1.04rem); color: #1b1b1b; transform: skewX(-8deg); white-space: nowrap; }
.sglp .lcd-row-wrap { display: flex; align-items: center; gap: 8px; }
.sglp .lcd { flex: 1; background: #1c2233; border-radius: 12px; padding: 14px 16px; box-shadow: inset 0 0 0 2px #0f1422; }
.sglp .lcd-in { background: linear-gradient(180deg, #2b4dff, #1f3be6); border-radius: 3px; padding: 8px 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.sglp .lcd-row { font-family: var(--mono); color: #f4f7ff; font-size: clamp(.96rem, 2.6vw, 1.22rem); font-weight: 500; white-space: pre; height: 1.42em; line-height: 1.42em; letter-spacing: .06em; overflow: hidden; text-shadow: 0 0 6px rgba(255,255,255,.35); }
.sglp .vlabel { writing-mode: vertical-rl; text-orientation: upright; font-family: Arial, sans-serif; font-weight: 800; font-size: .66rem; letter-spacing: -.1em; color: #111; }
.sglp .vlabel-sm { writing-mode: horizontal-tb; display: flex; flex-direction: row; align-items: flex-start; gap: 6px; font-size: .74rem; }
.sglp .vlabel-sm span { writing-mode: vertical-rl; text-orientation: upright; }
.sglp .panel-mid { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.sglp .keypad { display: grid; grid-template-columns: 54px 22px repeat(3, 54px); grid-template-rows: repeat(3, 54px); gap: 8px 10px; margin-left: 4px; }
.sglp .k { font: inherit; font-weight: 800; font-size: 1.3rem; color: #fff; width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer; background: radial-gradient(circle at 50% 40%, #3a3a3a, #111 70%); box-shadow: 0 0 0 4px #e9e8e1, 0 0 0 5.5px #9b9a93, 0 3px 6px rgba(0,0,0,.35); transition: transform .1s, filter .1s; }
.sglp .k-menu { grid-column: 1; grid-row: 2; font-size: .72rem; font-family: Arial, sans-serif; }
.sglp .k-up { grid-column: 4; grid-row: 1; }
.sglp .k-left { grid-column: 3; grid-row: 2; }
.sglp .k-ok { grid-column: 4; grid-row: 2; font-size: .92rem; font-family: Arial, sans-serif; }
.sglp .k-right { grid-column: 5; grid-row: 2; }
.sglp .k-down { grid-column: 4; grid-row: 3; }
.sglp .k.is-pressed { transform: scale(.9); filter: brightness(1.6); }
.sglp .k:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.sglp .panel-side { display: flex; flex-direction: column; align-items: center; gap: 26px; align-self: stretch; justify-content: space-between; padding: 2px 4px 0 0; }
.sglp .sensor { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #6f7a70, #1d221e 70%); box-shadow: 0 0 0 3px #cfcdc4, 0 0 0 4.5px #222; position: relative; }
.sglp .sensor::after { content: "↙↙"; position: absolute; top: -18px; right: -14px; font-size: .7rem; color: #111; letter-spacing: -.2em; }
.sglp .panel-foot { font-family: Arial, sans-serif; font-weight: 800; font-size: .86rem; letter-spacing: .02em; margin-top: 8px; }
.sglp .device-wrap { display: flex; flex-direction: column; }
@media (max-width: 420px) {
  .sglp .keypad { grid-template-columns: 46px 10px repeat(3, 46px); grid-template-rows: repeat(3, 46px); gap: 6px 8px; }
  .sglp .k { width: 46px; height: 46px; font-size: 1.1rem; }
}
.sglp .demo-btn { display: block; margin: 18px auto 0; font: inherit; font-weight: 700; color: var(--blue-dark); background: none; border: 0; cursor: pointer; }

/* ---------- lamps ---------- */
.sglp .lamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sglp .lamp { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.sglp .lamp-img { position: relative; height: 210px; display: grid; place-items: center; background: linear-gradient(180deg, #fff8e6, #fff); }
.sglp .lamp-img svg { height: 150px; }
.sglp .lamp-img .g { fill: #fff; stroke: #c8b78a; stroke-width: 2; }
.sglp .lamp-img .c { fill: #9aa6ad; }
.sglp .lamp-img .f { fill: none; stroke: #e0a53a; stroke-width: 2.4; }
.sglp .lamp:hover .lamp-img .g { fill: var(--amber-soft); }
.sglp .lamp-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.sglp .lamp .code { font-size: .8rem; color: #fff; background: var(--ink); align-self: flex-start; padding: 3px 10px; border-radius: 6px; margin-bottom: 10px; }
.sglp .lamp-inc .code { background: #8a5a2b; }
.sglp .specs { list-style: none; padding: 0; margin: 0 0 16px; color: var(--muted); font-size: .92rem; }
.sglp .lamp-buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sglp .price { font-weight: 700; color: var(--muted); }

/* ---------- how ---------- */
.sglp .howto { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sglp .how { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.sglp .how p { color: var(--muted); font-size: .93rem; margin: 0; }
.sglp .how-img { height: 130px; border-radius: 12px; background: #eef4ee; display: grid; place-items: center; margin-bottom: 18px; overflow: hidden; }
.sglp .how-img svg { width: 86%; }
.sglp .how-n { position: absolute; top: 132px; left: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: grid; place-items: center; border: 3px solid #fff; }
.sglp .bars rect { fill: var(--amber); transform-origin: bottom; transform-box: fill-box; }
.sglp .how-img .raw { fill: none; stroke: var(--amber); stroke-width: 3; stroke-dasharray: 5 5; }
.sglp .how-img .fix { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; }

/* ---------- cta ---------- */
.sglp .cta { background: linear-gradient(120deg, var(--green-dark), #1b5a33); color: #fff; }
.sglp .cta p { color: #d7ecd9; max-width: 560px; }
.sglp .cta-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; }
.sglp .cta-btns { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.sglp .cta .btn-primary { background: #fff; color: var(--green-dark); }

/* ---------- animations ---------- */
.sglp .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.sglp .reveal.is-in { opacity: 1; transform: none; }
.sglp .in-view .bars rect { animation: grow 1.4s ease-out both; }
.sglp .in-view .bars rect:nth-child(2) { animation-delay: .1s; } .sglp .in-view .bars rect:nth-child(3) { animation-delay: .2s; }
.sglp .in-view .bars rect:nth-child(4) { animation-delay: .3s; } .sglp .in-view .bars rect:nth-child(5) { animation-delay: .4s; }
.sglp .in-view .bars rect:nth-child(6) { animation-delay: .5s; } .sglp .in-view .bars rect:nth-child(7) { animation-delay: .6s; }
.sglp .in-view .bars rect:nth-child(8) { animation-delay: .7s; } .sglp .in-view .bars rect:nth-child(9) { animation-delay: .8s; }
@keyframes grow { from { transform: scaleY(0); } }
.sglp .in-view .fix { stroke-dasharray: 220; animation: draw 1.6s .4s ease-out both; }
@keyframes draw { from { stroke-dashoffset: 220; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .sglp .reveal { opacity: 1; transform: none; transition: none; }
  .sglp .in-view .bars rect, .sglp .in-view .fix { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .sglp .hero-grid, .sglp .display-grid, .sglp .cta-grid { grid-template-columns: 1fr; }
  .sglp .hero-art { order: -1; }
  .sglp .cols-3, .sglp .lamps { grid-template-columns: 1fr; }
  .sglp .howto { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .sglp .section { padding: 60px 0; }
  .sglp .rooms, .sglp .howto { grid-template-columns: 1fr; }
  .sglp .room-box { height: 180px; }
  .sglp .device { padding: 18px; }
}

/* ---------- 4 lampade ---------- */
.sglp .lamps-4 { grid-template-columns: repeat(3, 1fr); }
.sglp .lamps-4 .lamp .code { font-size: .74rem; }
@media (max-width: 1100px) { .lamps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .lamps-4 { grid-template-columns: 1fr; } }

/* ---------- mappa la tua lampada ---------- */
.sglp .map-box { display: grid; grid-template-columns: 380px 1fr; gap: 36px; align-items: start; }
.sglp .map-screen { position: sticky; top: 24px; background: #16222e; border: 1px solid #263644; border-radius: 22px; padding: 22px; display: grid; gap: 18px; }
.sglp .map-lamp { position: relative; height: 170px; display: grid; place-items: center; }
.sglp .map-lamp svg { height: 150px; position: relative; }
.sglp .map-lamp .g { fill: rgba(255,255,255,.06); stroke: rgba(255,255,255,.5); stroke-width: 2; }
.sglp .map-lamp .c { fill: #7d8a93; }
.sglp .map-glow { position: absolute; width: 190px; height: 190px; border-radius: 50%; top: -18px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, #fff6d6 0%, #ffd36b 40%, rgba(255,176,46,0) 72%); opacity: 0; transition: opacity .9s ease; }
.sglp .lcd-small .lcd-row { font-size: 1.05rem; }
.sglp .map-steps { list-style: none; counter-reset: m; padding: 0; margin: 0; display: grid; gap: 8px; }
.sglp .map-steps li { counter-increment: m; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid #263644; cursor: pointer; transition: background .25s, border-color .25s; }
.sglp .map-steps li::before { content: counter(m); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #263644; color: #c9d4dc; font-weight: 800; font-size: .9rem; }
.sglp .map-steps li b { color: #fff; }
.sglp .map-steps li span { color: #9fb0bb; font-size: .93rem; }
.sglp .map-steps li.is-on { background: #1d3326; border-color: var(--green); }
.sglp .map-steps li.is-on::before { background: var(--green); color: #fff; }
@media (max-width: 960px) {
  .sglp .map-box { grid-template-columns: 1fr; }
  .sglp .map-screen { position: static; }
}

/* ---------- foto lampade: la seconda immagine compare al passaggio del mouse ---------- */
.sglp .lamp-photo { background: #fff; overflow: hidden; }
.sglp .lamp-photo img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; transition: opacity .35s; }
.sglp .lamp-photo img.alt { opacity: 0; }
.sglp .lamp:hover .lamp-photo img.alt { opacity: 1; }
.sglp .lamp:hover .lamp-photo img:not(.alt) { opacity: 0; }
.sglp .lamp .price { color: var(--ink); font-size: 1.15rem; }
.sglp .lamp .code-tbd { background: #b7791f; }

/* ---------- dentro il tema del sito ---------- */
.sglp { display: block; overflow-x: hidden; }
.sglp h1, .sglp h2, .sglp h3 { color: inherit; }
.sglp section, .sglp header { margin: 0; }
.sglp .section-dark h2, .sglp .section-dark h3, .sglp .hero h1, .sglp .cta h2 { color: #fff; }
.sglp .steps-list li, .sglp .map-steps li { margin: 0; }
.sglp .lamp h3 a { color: inherit; text-decoration: none; }
.sglp .how-img svg .bench { fill: #c9d6c9; }
.sglp .how-img svg .dark { fill: #1c2a35; }
.sglp .how-img svg .glass { fill: #fff8e6; stroke: #c8b78a; stroke-width: 2; }
.sglp .how-img svg .cap { fill: #9aa6ad; }
.sglp .how-img svg .wire { fill: none; stroke: #63727a; stroke-width: 2; }
.sglp .how-img svg .cage { fill: none; stroke: #9fb0bb; stroke-width: 1.5; }
.sglp .in-view .how-img .sun { animation: sglp-rise 4s ease-out both; }
@keyframes sglp-rise { from { transform: translateY(26px); opacity: .2; } }
.sglp [data-t] { display: none; }

.sglp .hero h1 { text-align: left; }
.sglp .specs { display: block; columns: auto; }
.sglp .specs li { display: block; margin: 0; }
