/* Blocco "light-switch" — PROVA: un interruttore accende il neon sulla foto (js/blocks/light-switch.js) */
.ls{ padding:clamp(72px,12vh,140px) var(--pad); transition:background .5s; }
.ls.is-on{ background:#0c0a0a; }
.ls__head{ display:flex; justify-content:space-between; align-items:flex-end; gap:20px; flex-wrap:wrap; margin-bottom:28px; }
.ls__head h2{ margin:0; }
.ls__head p{ max-width:26em; margin:0; }
.ls__stage{ position:relative; display:block; width:100%; padding:0; border:0; background:none; overflow:hidden; aspect-ratio:3/2; max-height:74vh; margin:0 auto; cursor:pointer;
  transition:box-shadow .6s; }
.ls.is-on .ls__stage{ box-shadow:-40px 0 110px -30px rgba(40,140,220,.55), 40px 0 110px -30px rgba(240,90,30,.6); }
.ls__stage img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.ls__neon{ opacity:0; transition:opacity .25s; }
/* il neon non si accende di colpo: sfarfalla come un tubo vero */
.ls.is-on .ls__neon{ opacity:1; animation:lsFlick .95s linear; }
@keyframes lsFlick{ 0%{ opacity:0 } 8%{ opacity:.85 } 14%{ opacity:.1 } 26%{ opacity:.1 } 32%{ opacity:.9 } 40%{ opacity:.25 } 52%{ opacity:1 } 60%{ opacity:.6 } 72%{ opacity:1 } 100%{ opacity:1 } }
.ls__bar{ display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-top:16px; }
/* l'interruttore */
.ls__switch{ display:inline-flex; align-items:center; gap:12px; padding:0; border:0; background:none; color:inherit; cursor:pointer; min-height:44px;
  font-family:var(--font-mono); font-size:.7rem; letter-spacing:.15em; text-transform:uppercase; }
.ls__switch:focus-visible{ outline:2px solid var(--terracotta); outline-offset:4px; }
.ls__track{ position:relative; width:64px; height:32px; border-radius:999px; border:1px solid rgba(247,240,230,.5); transition:background .3s, border-color .3s; }
.ls__track::after{ content:""; position:absolute; top:3px; left:3px; width:24px; height:24px; border-radius:50%; background:var(--cream); transition:transform .3s cubic-bezier(.2,.8,.2,1); }
.ls.is-on .ls__track{ background:var(--terracotta); border-color:var(--terracotta); }
.ls.is-on .ls__track::after{ transform:translateX(32px); }
.ls__off, .ls__on{ opacity:.5; transition:opacity .3s; }
.ls:not(.is-on) .ls__off, .ls.is-on .ls__on{ opacity:1; }
.ls__thumbs{ display:flex; gap:8px; overflow-x:auto; padding-bottom:4px; }
.ls__thumbs button{ flex:0 0 auto; width:84px; aspect-ratio:3/2; padding:0; border:2px solid transparent; background:none; cursor:pointer; opacity:.55; transition:opacity .2s; border-radius:var(--radius); overflow:hidden; }
.ls__thumbs button img{ width:100%; height:100%; object-fit:cover; display:block; }
.ls__thumbs button.on, .ls__thumbs button:hover{ opacity:1; border-color:var(--terracotta); }
.ls__thumbs button:focus-visible{ outline:2px solid var(--terracotta); outline-offset:2px; }
@media (prefers-reduced-motion: reduce){
  .ls.is-on .ls__neon{ animation:none; }
  .ls, .ls__stage, .ls__neon, .ls__track, .ls__track::after{ transition:none; }
}

/* (25/11) l'interruttore sta accanto al titolo, grande; il testo breve va sotto il titolo */
.ls__head{ align-items:center; }
.ls__title p{ margin:.7rem 0 0; }
.ls__head .ls__switch{ gap:18px; font-size:.95rem; letter-spacing:.2em; }
.ls__head .ls__track{ width:104px; height:52px; border-width:2px; }
.ls__head .ls__track::after{ top:5px; left:5px; width:38px; height:38px; }
.ls.is-on .ls__head .ls__track::after{ transform:translateX(52px); }
.ls:not(.is-on) .ls__head .ls__track{ box-shadow:0 0 0 0 rgba(193,82,42,.55); animation:lsCall 2.4s ease-out 1s 3; }
@keyframes lsCall{ 0%{ box-shadow:0 0 0 0 rgba(193,82,42,.55) } 70%{ box-shadow:0 0 0 14px rgba(193,82,42,0) } 100%{ box-shadow:0 0 0 0 rgba(193,82,42,0) } }
.ls__bar{ justify-content:flex-end; }
@media (max-width:760px){
  .ls__head{ align-items:flex-start; }
  .ls__head .ls__track{ width:84px; height:42px; }
  .ls__head .ls__track::after{ width:30px; height:30px; top:5px; left:5px; }
  .ls.is-on .ls__head .ls__track::after{ transform:translateX(42px); }
}
@media (prefers-reduced-motion: reduce){ .ls:not(.is-on) .ls__head .ls__track{ animation:none; } }

/* (25/11) titolo grande a sinistra con l'interruttore accanto; testo breve piccolo a destra */
.ls__title{ display:flex; align-items:center; gap:clamp(20px,3vw,44px); flex-wrap:wrap; }
.ls__head > p{ max-width:26em; margin:0; font-size:.95rem; }
@media (max-width:760px){ .ls__title{ gap:16px; } }
/* (25/11) il testo breve sta sotto la foto, su una riga, a sinistra delle miniature */
.ls__bar{ justify-content:space-between; }
.ls__note{ margin:0; font-size:.95rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
@media (max-width:1000px){ .ls__note{ white-space:normal; flex-basis:100%; } }
/* (25/11) interruttore a destra; tra titolo e interruttore una freccia leggera */
.ls__head{ display:block; }
.ls__title{ width:100%; flex-wrap:nowrap; }
.ls__arrow{ position:relative; flex:1; height:1px; min-width:40px; background:rgba(247,240,230,.28); }
.ls__arrow::after{ content:""; position:absolute; right:0; top:50%; width:9px; height:9px; border-top:1px solid rgba(247,240,230,.45); border-right:1px solid rgba(247,240,230,.45);
  transform:translateY(-50%) rotate(45deg); }
@media (max-width:760px){ .ls__title{ flex-wrap:wrap; } .ls__arrow{ display:none; } }
/* (25/11) interruttore un po' piu' piccolo */
.ls__head .ls__switch{ gap:14px; font-size:.8rem; }
.ls__head .ls__track{ width:84px; height:42px; }
.ls__head .ls__track::after{ top:5px; left:5px; width:30px; height:30px; }
.ls.is-on .ls__head .ls__track::after{ transform:translateX(42px); }
@media (max-width:760px){ .ls__head .ls__track{ width:72px; height:36px; } .ls__head .ls__track::after{ width:26px; height:26px; top:4px; left:4px; } .ls.is-on .ls__head .ls__track::after{ transform:translateX(36px); } }
/* (27/11) telefono: le 6 miniature su una riga, tutte visibili (prima le ultime due restavano fuori, nascoste dallo scorrimento) */
@media (max-width:760px){
  .ls__thumbs{ width:100%; overflow:visible; gap:6px; }
  .ls__thumbs button{ flex:1 1 0; width:auto; min-width:0; }
}
