:root {
  --bg:#070604;
  --panel:#100d09;
  --gold:#f2b632;
  --gold2:#ffcf66;
  --text:#fff9ee;
  --muted:#c6bba9;
  --line:rgba(242,182,50,.35);
  --safe-top:env(safe-area-inset-top, 0px);
  --safe-bottom:env(safe-area-inset-bottom, 0px);
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:#000;color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
body{overflow-x:hidden}
button,a,input{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--gold2);outline-offset:3px}
.app-shell{min-height:100svh;background:radial-gradient(circle at 50% 20%,#241509 0,#080604 55%,#000 100%);padding-top:calc(74px + var(--safe-top));padding-bottom:calc(78px + var(--safe-bottom));position:relative}
.app-shell.home-mode{padding-top:0;padding-bottom:0}
body .app-shell.home-mode > .app-header,body .app-shell.home-mode > .bottom-nav{display:none!important}
.app-header{position:fixed;z-index:40;top:0;left:0;right:0;height:calc(66px + var(--safe-top));padding:calc(8px + var(--safe-top)) 16px 8px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(#070604 70%,rgba(7,6,4,.72));border-bottom:1px solid rgba(242,182,50,.16)}
.round-btn{width:48px;height:48px;border-radius:50%;border:1px solid var(--line);background:#0b0907;color:var(--gold2);font-size:24px;display:grid;place-items:center}
.brand-mini{text-align:center;line-height:1}.brand-mini span{display:block;color:var(--gold);font-size:10px;letter-spacing:.32em;margin-bottom:5px}.brand-mini strong{font-size:24px}.brand-mini strong span{display:inline;font-size:inherit;letter-spacing:0;color:#e01515}
.view{display:none}.view.active{display:block}.content-view{padding:22px 18px 32px;max-width:680px;margin:0 auto;animation:fade .28s ease}
@keyframes fade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.scene-wrap{position:relative;width:100%;max-width:520px;margin:0 auto;background:#000;overflow:hidden;border-bottom:1px solid rgba(242,182,50,.2)}
.scene-image{display:block;width:100%;height:auto}
.hotspot{position:absolute;border:0;background:transparent;border-radius:50%;cursor:pointer}
.hotspot:focus-visible{outline:3px solid var(--gold2);background:rgba(242,182,50,.12)}
.hs-menu{left:2%;top:1.4%;width:14%;height:8%}.hs-music{right:2%;top:1.4%;width:14%;height:8%}.hs-door{left:33%;top:24%;width:34%;height:39%;border-radius:16px}.hs-recorder{left:4%;top:36%;width:29%;height:20%}.hs-turntable{right:4%;top:36%;width:29%;height:20%}.hs-memories{left:8%;top:55%;width:31%;height:20%}.hs-library{right:8%;top:55%;width:31%;height:20%}.hs-salotto{left:35%;top:61%;width:30%;height:20%}.hs-piccio{left:22%;top:79%;width:58%;height:11%;border-radius:26px}
.hs-nav-home{left:19%;top:90.5%;width:13%;height:8%;border-radius:18px}.hs-nav-rooms{left:32%;top:90.5%;width:13%;height:8%;border-radius:18px}.hs-nav-music{left:45%;top:90.5%;width:13%;height:8%;border-radius:18px}.hs-nav-piccio{left:58%;top:90.5%;width:13%;height:8%;border-radius:18px}.hs-nav-profile{left:71%;top:90.5%;width:13%;height:8%;border-radius:18px}
.section-heading{text-align:center;margin-bottom:22px}.eyebrow{color:var(--gold);letter-spacing:.18em;font-size:12px;font-weight:700}.section-heading h2{font-size:34px;margin:6px 0 8px}.section-heading p{color:var(--muted);line-height:1.5;margin:0}
.room-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.room-card{min-height:140px;padding:18px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(145deg,rgba(52,31,14,.86),rgba(8,7,5,.96));color:var(--text);text-align:left;display:flex;flex-direction:column;justify-content:flex-end}.room-card span{font-size:30px;color:var(--gold2)}.room-card strong{font-size:18px;margin:9px 0 4px}.room-card small{color:var(--muted);line-height:1.35}.room-card.wide{grid-column:1/-1;min-height:110px}
.vinyl-card{border:1px solid var(--line);border-radius:24px;padding:22px;background:linear-gradient(145deg,#1b1008,#080604);text-align:center}.vinyl{width:min(64vw,280px);aspect-ratio:1;border-radius:50%;margin:0 auto 20px;background:repeating-radial-gradient(circle,#090909 0 3px,#141414 4px 6px);box-shadow:inset 0 0 0 6px #070707,0 16px 45px rgba(0,0,0,.55);display:grid;place-items:center;position:relative}.vinyl:after{content:"";width:28%;aspect-ratio:1;border-radius:50%;background:linear-gradient(145deg,#d59316,#4d2100);position:absolute}.vinyl span{z-index:2;font-weight:800;color:white}.vinyl span span{color:#e01515}.vinyl.playing{animation:spin 5s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.track-info{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px}.track-info span{color:var(--muted)}#progress{width:100%;accent-color:var(--gold)}.player-actions{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:18px}.play-btn{width:64px;height:64px;border-radius:50%;border:1px solid var(--gold);background:var(--gold);color:#171007;font-size:25px}.track-list{display:grid;gap:10px;margin:16px 0}.track-list button{display:grid;grid-template-columns:42px 1fr;gap:2px 10px;text-align:left;padding:14px;border-radius:16px;border:1px solid rgba(242,182,50,.2);background:#0c0a08;color:var(--text)}.track-list button span{grid-row:1/3;color:var(--gold);font-size:20px}.track-list button small{color:var(--muted)}
.piccio-stage{display:grid;grid-template-columns:minmax(120px,42%) 1fr;align-items:end;gap:10px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(145deg,#1a1009,#080604);padding:16px;overflow:hidden}.piccio-stage img{width:100%;max-height:360px;object-fit:contain;object-position:center bottom}.speech{padding:14px;border:1px solid rgba(255,255,255,.18);border-radius:18px 18px 18px 4px;background:#171411;line-height:1.4}.chat-log{display:grid;gap:10px;margin:16px 0}.bubble{max-width:86%;padding:12px 14px;border-radius:16px;line-height:1.4}.bubble.bot{background:#191612;border:1px solid rgba(255,255,255,.13)}.bubble.user{justify-self:end;background:#3a270a;border:1px solid var(--gold)}.chat-compose{display:grid;grid-template-columns:1fr 50px;gap:8px}.chat-compose input{min-width:0;padding:14px;border-radius:15px;border:1px solid rgba(242,182,50,.32);background:#0b0907;color:var(--text)}.chat-compose button{border:0;border-radius:15px;background:var(--gold);font-size:22px}.voice-btn,.primary-btn,.secondary-btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;border-radius:16px;text-decoration:none;font-weight:700}.voice-btn,.primary-btn{border:1px solid var(--gold);background:var(--gold);color:#171007}.voice-btn{margin-top:12px}.secondary-btn{border:1px solid var(--line);background:#0b0907;color:var(--text);margin-top:10px}.status-text{text-align:center;color:var(--muted);font-size:13px;line-height:1.4}
.link-stack{display:grid;gap:12px}.link-stack a,.drawer-links a{padding:17px;border:1px solid var(--line);border-radius:16px;color:var(--text);text-decoration:none;background:#0d0a07}.link-stack a:after,.drawer-links a:after{content:"→";float:right;color:var(--gold)}
.bottom-nav{position:fixed;z-index:45;left:0;right:0;bottom:0;height:calc(70px + var(--safe-bottom));padding:6px 8px calc(6px + var(--safe-bottom));display:grid;grid-template-columns:repeat(5,1fr);background:rgba(5,4,3,.96);border-top:1px solid rgba(242,182,50,.25);backdrop-filter:blur(16px)}.bottom-nav button{border:0;background:transparent;color:#aa9e8d;font-size:11px;display:flex;flex-direction:column;align-items:center;gap:4px}.bottom-nav button span{font-size:23px}.bottom-nav button.active{color:var(--gold2)}
.drawer{position:fixed;z-index:80;inset:0 12% 0 0;max-width:420px;padding:calc(34px + var(--safe-top)) 22px calc(24px + var(--safe-bottom));background:linear-gradient(160deg,#171008,#050403);transform:translateX(-105%);transition:.3s ease;border-right:1px solid var(--line);overflow:auto}.drawer.open{transform:none}.drawer-close{position:absolute;right:14px;top:calc(14px + var(--safe-top));width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:#090705;color:white;font-size:28px}.drawer h2{font-size:34px;margin:8px 0 20px}.drawer-links{display:grid;gap:9px}.backdrop{position:fixed;z-index:70;inset:0;background:rgba(0,0,0,.68)}
.room-dialog{width:min(92vw,460px);border:1px solid var(--line);border-radius:24px;background:linear-gradient(150deg,#1c120a,#070604);color:var(--text);padding:26px;box-shadow:0 30px 90px #000}.room-dialog::backdrop{background:rgba(0,0,0,.76)}.room-dialog>button:first-child{position:absolute;top:10px;right:12px;border:0;background:transparent;color:white;font-size:28px}.room-dialog h2{font-size:30px;margin:8px 0}.room-dialog p:not(.eyebrow){color:var(--muted);line-height:1.5}.room-dialog .primary-btn{margin-top:20px}
.welcome-gate{position:fixed;z-index:200;inset:0;background:radial-gradient(circle at 50% 30%,#321b0b,#050403 62%,#000);display:grid;place-items:center;padding:26px}.welcome-gate.hidden{display:none}.gate-card{text-align:center;max-width:360px}.gate-logo{width:130px;height:130px;border-radius:28px;object-fit:cover;box-shadow:0 0 0 1px var(--line)}.gate-card h1{font-size:38px;line-height:1.05;margin:10px 0}.gate-card p:not(.eyebrow){color:var(--muted);line-height:1.5;margin-bottom:24px}
@media (min-width:620px){.app-shell{max-width:560px;margin:0 auto;box-shadow:0 0 0 1px rgba(242,182,50,.18),0 0 80px rgba(0,0,0,.9)}.app-header,.bottom-nav{left:50%;right:auto;width:560px;transform:translateX(-50%)}.room-grid{grid-template-columns:repeat(3,1fr)}.room-card.wide{grid-column:auto}}
@media (max-width:380px){.section-heading h2{font-size:30px}.room-card{min-height:125px;padding:14px}.piccio-stage{grid-template-columns:38% 1fr}.bottom-nav button{font-size:10px}}


/* PWA installazione v0.3 */
.install-card{margin-bottom:18px;padding:18px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(145deg,#1b1008,#080604);display:grid;grid-template-columns:58px 1fr;gap:12px;align-items:center}
.install-icon{width:52px;height:52px;border-radius:16px;border:1px solid var(--gold);display:grid;place-items:center;color:var(--gold2);font-size:30px;background:#0b0907}
.install-card h3{margin:2px 0 6px;font-size:22px}.install-card p{margin:0;color:var(--muted);line-height:1.4}.install-card .eyebrow{color:var(--gold);font-size:11px}.install-card .primary-btn{grid-column:1/-1;margin-top:4px}.install-card .status-text{grid-column:1/-1;margin:0}
.install-steps{display:grid;gap:12px;margin:18px 0}.install-step{display:grid;grid-template-columns:36px 1fr;gap:12px;align-items:start;padding:12px;border:1px solid rgba(242,182,50,.22);border-radius:15px;background:#0b0907}.install-step strong{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--gold);color:#171007}.install-step p{margin:0!important;color:var(--text)!important}.install-note{padding:12px;border-left:3px solid var(--gold);background:rgba(242,182,50,.08);border-radius:8px;color:var(--muted);line-height:1.45}
/* Le istruzioni restano visibili anche quando AlebIT è già installata. */

/* Fix iPhone PWA: mantiene la Home sotto la barra di stato */
html.is-standalone .app-shell.home-mode{
  /* Spazio reale per Dynamic Island / barra di stato iPhone. */
  padding-top:max(calc(env(safe-area-inset-top, 0px) + 24px), 76px);
}
html.is-standalone .scene-wrap{
  border-top:1px solid rgba(242,182,50,.16);
}
.drawer-install-btn{
  width:100%;margin:0 0 14px;padding:15px 16px;border:1px solid var(--gold);
  border-radius:16px;background:rgba(242,182,50,.10);color:var(--text);
  text-align:left;font-weight:800;
}
.drawer-install-btn span{float:right;color:var(--gold);font-size:20px}
html.is-standalone .drawer-install-btn{display:block}

/* v1.5.2: chiusura della chat interna senza uscire dalla Casa */
#piccioView{position:relative}
.piccio-close-view{position:absolute;z-index:3;right:18px;top:calc(14px + env(safe-area-inset-top,0px));width:46px;height:46px;border-radius:50%;border:1px solid var(--line);background:#0b0907;color:#fff;font-size:30px;line-height:1;display:grid;place-items:center}
#piccioView .section-heading{padding-right:58px}

/* v1.5.3 — accoglienza Picciò e rifiniture mobile */
.room-card{
  min-height:172px;
  padding:18px 16px;
  justify-content:flex-start;
}
.room-card span{display:block;line-height:1}
.room-card strong{
  display:block;
  margin:12px 0 7px;
  line-height:1.18;
  overflow-wrap:anywhere;
  hyphens:auto;
}
.room-card small{display:block;margin-top:auto;font-size:13px}
.room-card.wide{min-height:140px}

/* Picciò pulito: nessun cerchio o richiamo giallo sovrapposto alla chat. */
.bottom-nav button[data-view-target="piccio"]{
  position:relative;
  color:#aa9e8d;
}
.bottom-nav button[data-view-target="piccio"] span{
  width:auto;height:auto;border-radius:0;display:block;
  background:transparent;color:inherit;box-shadow:none;
  animation:none;
}
.hs-nav-piccio::after,.hs-piccio::after{
  content:none;
}
@keyframes piccioPulse{
  0%,38%{transform:scale(.94);box-shadow:0 0 0 0 rgba(242,182,50,.58);opacity:1}
  72%{transform:scale(1.05);box-shadow:0 0 0 12px rgba(242,182,50,0);opacity:.92}
  100%{transform:scale(.94);box-shadow:0 0 0 0 rgba(242,182,50,0);opacity:1}
}
@media (prefers-reduced-motion:reduce){
  .bottom-nav button[data-view-target="piccio"] span{animation:none}
}

.piccio-welcome-dialog{
  width:min(92vw,480px);max-height:min(88svh,760px);overflow:auto;
  border:1px solid var(--line);border-radius:28px;padding:0;
  background:linear-gradient(155deg,#211207 0,#080604 58%,#020201 100%);
  color:var(--text);box-shadow:0 34px 110px #000;
}
.piccio-welcome-dialog::backdrop{background:rgba(0,0,0,.82);backdrop-filter:blur(5px)}
.piccio-welcome-visual{height:250px;display:grid;place-items:end center;overflow:hidden;background:radial-gradient(circle at 50% 76%,rgba(242,182,50,.23),transparent 58%)}
.piccio-welcome-visual img{width:min(76%,300px);height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 18px 24px rgba(0,0,0,.65))}
.piccio-welcome-copy{padding:22px;text-align:center}
.piccio-welcome-copy h2{font-size:31px;line-height:1.08;margin:7px 0 10px}
.piccio-welcome-copy>p:not(.eyebrow){color:var(--muted);line-height:1.48;margin:0 0 17px}
.piccio-name-form{display:grid;gap:10px;text-align:left}
.piccio-name-form label{font-size:13px;color:var(--gold2);font-weight:700}
.piccio-name-form input{width:100%;min-height:52px;padding:13px 15px;border-radius:15px;border:1px solid rgba(242,182,50,.45);background:#090705;color:var(--text);font-size:17px}
.piccio-name-form .primary-btn{margin-top:3px}
.piccio-welcome-ready p{color:var(--muted);line-height:1.5;margin:0 0 18px}
.text-btn{width:100%;margin-top:10px;padding:10px;border:0;background:transparent;color:var(--gold2);text-decoration:underline}

/* Nelle pagine interne Picciò resta sopra la barra audio e mai sul suo controllo. */
#piccioView{padding-bottom:calc(42px + env(safe-area-inset-bottom,0px))}

@media(max-width:380px){
  .room-card{min-height:162px;padding:15px 13px}
  .room-card strong{font-size:16px}
  .room-card small{font-size:12px}
  .piccio-welcome-visual{height:220px}
  .piccio-welcome-copy{padding:18px}
  .piccio-welcome-copy h2{font-size:28px}
}

/* v1.5.4 — correzioni definitive ingresso: niente cerchi neri, porta attiva, icone inattive. */
body.visitor-locked .scene-wrap .hotspot:not(.hs-door){
  pointer-events:none;
  cursor:default;
}

/* Nessun disco, lucchetto o maschera sopra le icone: la grafica resta perfettamente centrata. */
body.visitor-locked .scene-wrap .hotspot:not(.hs-door)::before,
body.visitor-locked .scene-wrap .hotspot:not(.hs-door)::after{
  content:none!important;
  display:none!important;
}

/* Un leggero velo uniforme addormenta la Casa senza creare cerchi decentrati. */
body.visitor-locked .scene-wrap::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:rgba(0,0,0,.13);
}

/* La porta rimane sopra il velo ed è l'unico elemento vivo. */
body.visitor-locked .hs-door{
  z-index:6;
  outline:2px solid rgba(255,210,86,.88);
  box-shadow:0 0 0 5px rgba(242,182,50,.10),0 0 30px rgba(242,182,50,.78);
  animation:doorWaiting 1.45s ease-in-out infinite;
}
body.visitor-locked .hs-door.gate-reminder{
  animation:doorReminder .48s ease-in-out 2,doorWaiting 1.45s ease-in-out 1s infinite;
}
@keyframes doorWaiting{
  0%,100%{transform:scale(1);filter:brightness(1)}
  50%{transform:scale(1.018);filter:brightness(1.24)}
}
@keyframes doorReminder{50%{transform:scale(1.03)}}


/* v1.5.5 — stanze interne alla mini app, senza Picciò sovrapposto */
.room-frame-view{
  position:fixed; inset:0; z-index:80; background:#050505; padding:0!important;
}
.room-frame-view.active{display:flex!important; flex-direction:column;}
.room-frame-toolbar{
  height:max(56px,calc(env(safe-area-inset-top,0px) + 44px));
  padding:max(8px,env(safe-area-inset-top,0px)) 14px 8px;
  display:flex; align-items:flex-end; gap:12px;
  background:linear-gradient(180deg,#111,#080808); color:#f4d77a;
  border-bottom:1px solid rgba(244,215,122,.28);
}
.room-frame-toolbar button{
  width:38px;height:38px;border-radius:50%;border:1px solid rgba(244,215,122,.55);
  background:#151515;color:#fff;font-size:28px;line-height:1;display:grid;place-items:center;
}
.room-frame-toolbar strong{padding-bottom:8px;font-size:15px;letter-spacing:.04em;}
#roomFrame{width:100%;flex:1;border:0;background:#000;}


/* v1.5.6 — azzeramento definitivo di qualsiasi vecchio indicatore circolare. */
body.visitor-locked .scene-wrap .hotspot:not(.hs-door),
body.visitor-locked .scene-wrap .hotspot:not(.hs-door):hover,
body.visitor-locked .scene-wrap .hotspot:not(.hs-door):focus,
body.visitor-locked .scene-wrap .hotspot:not(.hs-door):active{
  background:transparent!important;
  box-shadow:none!important;
  outline:0!important;
  filter:none!important;
  transform:none!important;
  opacity:1!important;
}
body.visitor-locked .scene-wrap .hotspot:not(.hs-door)::before,
body.visitor-locked .scene-wrap .hotspot:not(.hs-door)::after{
  content:none!important;
  display:none!important;
  width:0!important;
  height:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

/* v1.5.7: nessun indicatore grafico aggiunto sopra l'immagine home. */
.scene-wrap .hotspot{background:transparent!important;box-shadow:none!important;}

/* v1.6.1 — Salotto interno: Picciò ascolta e accompagna ai Ricordi */
.salotto-view{padding:18px 16px 120px;background:radial-gradient(circle at 50% 0,#3b210f 0,#140c08 48%,#070604 100%)}
.salotto-hero{position:relative;min-height:560px;border:1px solid rgba(230,180,90,.22);border-radius:26px;overflow:hidden;background:linear-gradient(180deg,rgba(5,4,3,.14),rgba(5,4,3,.9)),radial-gradient(circle at 72% 46%,rgba(255,128,32,.34),transparent 24%),linear-gradient(135deg,#26160d,#080706 68%);box-shadow:0 24px 60px rgba(0,0,0,.45)}
.salotto-fireplace{position:absolute;right:7%;top:20%;width:38%;height:42%;border:12px solid #2c1a11;border-bottom-width:18px;border-radius:10px 10px 3px 3px;background:#090604;box-shadow:0 0 55px rgba(255,102,20,.24),inset 0 0 30px #000}
.salotto-fireplace:before,.salotto-fireplace:after,.salotto-fireplace span{content:"";position:absolute;bottom:13%;left:50%;width:34%;height:48%;transform:translateX(-50%) rotate(45deg);border-radius:55% 45% 55% 45%;background:radial-gradient(circle at 60% 65%,#fff3a0 0 12%,#ff9b21 34%,#e33212 68%,transparent 70%);filter:drop-shadow(0 0 16px #ff7a13);animation:alebitFlame 1.45s ease-in-out infinite alternate}
.salotto-fireplace:after{left:38%;width:24%;height:35%;animation-delay:.35s}.salotto-fireplace span{left:63%;width:22%;height:32%;animation-delay:.7s}
@keyframes alebitFlame{from{transform:translateX(-50%) rotate(42deg) scale(.9)}to{transform:translateX(-50%) rotate(48deg) scale(1.08)}}
.salotto-piccio{position:absolute;right:4%;bottom:0;width:min(44vw,285px);max-height:47%;object-fit:contain;object-position:bottom;filter:drop-shadow(0 16px 16px rgba(0,0,0,.65));z-index:3}
.salotto-copy{position:relative;z-index:4;width:60%;padding:38px 22px 30px}.salotto-copy h2{font-size:clamp(2.25rem,10vw,4.7rem);line-height:.95;margin:8px 0 12px;color:#fff3cf;text-shadow:0 3px 20px rgba(0,0,0,.8)}
.salotto-lead{font-size:1.1rem;color:#ffd982;font-weight:700}.salotto-copy>p:not(.eyebrow):not(.salotto-lead){line-height:1.7;color:#f2e5d2}
.salotto-prompts{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}.salotto-prompts span{padding:8px 11px;border-radius:999px;border:1px solid rgba(255,205,116,.32);background:rgba(8,6,4,.55);color:#f8e8cc;font-size:.8rem}
.salotto-memory-card{margin-top:16px;padding:25px 20px;border-radius:24px;background:linear-gradient(145deg,rgba(69,35,17,.88),rgba(13,9,7,.97));border:1px solid rgba(255,202,101,.22);box-shadow:0 18px 45px rgba(0,0,0,.35);text-align:center}.salotto-memory-card h3{font-size:1.65rem;margin:5px 0 10px;color:#fff0c9}.salotto-memory-card p{color:#e7d8c4;line-height:1.65}.salotto-memory-card blockquote{margin:20px 0;padding:16px;border-left:3px solid #d9a441;background:rgba(0,0,0,.22);font-family:Georgia,serif;font-style:italic;color:#ffe7a8;text-align:left}
.salotto-cta,.salotto-secondary{width:100%;margin-top:10px}.salotto-cta{font-size:1.05rem;box-shadow:0 0 28px rgba(226,52,42,.28)}.salotto-secondary{display:block}.salotto-memory-card small{display:block;margin-top:16px;color:#bfae98;line-height:1.5}
@media(max-width:520px){.salotto-hero{min-height:610px}.salotto-copy{width:100%;padding:30px 20px 250px}.salotto-fireplace{right:6%;top:auto;bottom:5%;width:54%;height:31%}.salotto-piccio{left:1%;right:auto;width:53%;max-height:38%}.salotto-copy h2{font-size:2.8rem}}

/* Casa AlebIT Universal Engine v2.0 — un solo codice per ogni schermo */
@media (min-width: 900px) {
  body{background:radial-gradient(circle at 50% 0,#241308 0,#080604 48%,#020201 100%)}
  .app-shell{max-width:1180px;min-height:100vh;margin:0 auto;box-shadow:0 0 0 1px rgba(242,182,50,.16),0 0 110px rgba(0,0,0,.82)}
  .app-header,.bottom-nav{left:50%;right:auto;width:min(1180px,100vw);transform:translateX(-50%)}
  .content-view{padding-left:48px;padding-right:48px}
  .section-heading{max-width:780px}
  .room-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
  .room-card,.room-card.wide{min-height:190px}
  .vinyl-card{max-width:760px;margin:0 auto}
  .track-list{max-width:760px;margin:18px auto}
  .piccio-stage,.chat-log,.chat-compose,.voice-btn,#piccioView .status-text{max-width:820px;margin-left:auto;margin-right:auto}
  .salotto-view{padding-top:30px}
  .salotto-hero{min-height:680px;max-width:1080px;margin:0 auto}
  .salotto-copy{width:56%;padding:72px 48px}
  .salotto-copy h2{font-size:4.5rem}
  .salotto-piccio{width:38%;left:4%;max-height:64%}
  .salotto-fireplace{width:43%;right:4%;height:49%}
  .salotto-memory-card{max-width:900px;margin:24px auto 110px}
  .scene-wrap{max-width:560px;margin:0 auto;box-shadow:0 0 0 1px rgba(242,182,50,.18),0 30px 90px rgba(0,0,0,.75)}
  #app.home-mode{display:grid;place-items:start center}
  .drawer{inset:0 auto 0 0;width:420px}
}

@media (min-width: 1400px) {
  .app-shell{max-width:1280px}
  .app-header,.bottom-nav{width:1280px}
  .content-view{padding-left:72px;padding-right:72px}
}


/* === Casa AlebIT 2.1.0: Primo Viaggio su Universal Engine === */
body.journey-locked .hotspot:not(.hs-door),
body.journey-locked .bottom-nav button:not([data-view-target="home"]),
body.journey-locked #openMenu,
body.journey-locked #toggleMusic {
  pointer-events: none !important;
  filter: grayscale(1) brightness(.55) !important;
  opacity: .38 !important;
}
body.journey-locked .hs-door {
  animation: alebitDoorPulse 1.45s ease-in-out infinite;
  filter: drop-shadow(0 0 14px #ffbd32) drop-shadow(0 0 30px rgba(255,158,0,.82));
}
@keyframes alebitDoorPulse {
  0%,100% { transform: scale(1); opacity:.92; }
  50% { transform: scale(1.045); opacity:1; }
}
.journey-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  background: rgba(5,4,4,.94);
  backdrop-filter: blur(10px);
}
.journey-overlay[hidden] { display:none !important; }
.journey-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid rgba(237,182,70,.42);
  border-radius: 26px;
  background: radial-gradient(circle at 50% 0%, rgba(119,38,22,.42), rgba(12,10,10,.98) 44%);
  box-shadow: 0 24px 80px rgba(0,0,0,.65);
  padding: 22px;
  color:#fff;
}
.journey-close {
  position:absolute; right:12px; top:10px; width:42px; height:42px; border-radius:50%;
  border:1px solid rgba(255,255,255,.25); background:#111; color:#fff; font-size:28px;
}
.journey-progress { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; padding:4px 52px 20px 0; }
.journey-progress span { height:5px; border-radius:99px; background:rgba(255,255,255,.16); }
.journey-progress span.active { background:#e8b548; box-shadow:0 0 12px rgba(232,181,72,.55); }
.journey-stage { text-align:center; }
.journey-stage .eyebrow { color:#e8b548; letter-spacing:.18em; font-weight:800; }
.journey-stage h2 { margin:.35rem 0 .75rem; font-size:clamp(1.7rem,5vw,2.6rem); }
.journey-stage p { color:#eee; line-height:1.6; font-size:1rem; }
.journey-piccio { width:min(230px,48vw); max-height:260px; object-fit:contain; margin:0 auto 8px; display:block; }
.journey-video { width:100%; max-height:58vh; border-radius:18px; background:#000; margin:10px 0 14px; }
.journey-audio-card { margin:18px 0; padding:18px; border:1px solid rgba(232,181,72,.32); border-radius:20px; background:rgba(255,255,255,.045); }
.journey-audio-card audio { width:100%; margin-top:12px; }
.journey-actions { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:18px; }
.journey-actions button { min-height:48px; border-radius:14px; padding:0 18px; font-weight:800; }
.journey-primary { border:0; background:linear-gradient(135deg,#f0c35a,#c88413); color:#18100a; }
.journey-secondary { border:1px solid rgba(255,255,255,.25); background:#171717; color:#fff; }
.journey-memory { width:100%; min-height:120px; resize:vertical; border-radius:16px; border:1px solid rgba(232,181,72,.45); background:#0e0e0e; color:#fff; padding:14px; font:inherit; }
.journey-note { display:block; margin-top:10px; color:#bdbdbd; font-size:.86rem; }
.journey-complete-badge { display:inline-block; padding:8px 12px; border-radius:999px; background:rgba(232,181,72,.14); color:#f4cb75; border:1px solid rgba(232,181,72,.35); font-weight:800; }
@media (max-width:480px){
  .journey-panel{padding:16px;border-radius:20px}.journey-progress{padding-right:48px}.journey-video{max-height:48vh}
}

/* === Casa AlebIT 2.1.1: rifiniture mobile, Ricordi e Picciò Shield === */
@media (max-width: 619px) {
  #homeView { overflow:hidden; }
  #homeView .scene-wrap { width:112%; max-width:none; margin-left:-6%; margin-right:-6%; }
  html.is-standalone #homeView .scene-wrap { width:116%; margin-left:-8%; margin-right:-8%; }
}
.memory-soundtrack-card{max-width:620px;margin:0 auto 16px;padding:16px;border:1px solid rgba(242,182,50,.32);border-radius:22px;background:linear-gradient(145deg,rgba(49,28,13,.96),rgba(10,7,5,.98));display:flex;align-items:center;justify-content:space-between;gap:14px;box-shadow:0 14px 34px rgba(0,0,0,.28)}
.memory-soundtrack-copy{display:flex;align-items:center;gap:12px;text-align:left;min-width:0}.memory-soundtrack-icon{font-size:1.65rem;filter:drop-shadow(0 0 8px rgba(242,182,50,.38))}.memory-soundtrack-copy strong{display:block;color:#fff0c9;line-height:1.25}.memory-soundtrack-copy small{display:block;margin-top:4px;color:var(--muted);line-height:1.3}.memory-music-toggle{flex:0 0 auto;min-height:46px;padding:10px 14px;border-radius:15px;border:1px solid rgba(255,221,143,.48);background:linear-gradient(180deg,#e8b84d,#b97b18);color:#1b1005;font-weight:900;white-space:nowrap}.memory-music-toggle.is-playing{background:linear-gradient(180deg,#b91f1b,#7e100e);border-color:rgba(255,123,116,.7);color:#fff}
@media(max-width:520px){.memory-soundtrack-card{align-items:stretch;flex-direction:column}.memory-music-toggle{width:100%}}
.memory-recorder-card{max-width:620px;margin:0 auto;padding:22px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(145deg,#1a1009,#080604);text-align:center}
.memory-timer{font-size:2.1rem;font-weight:800;color:var(--gold2);font-variant-numeric:tabular-nums;margin:4px 0 10px}
.memory-record-btn{width:100%;min-height:64px;border-radius:18px;border:1px solid #ef4a42;background:#b71916;color:#fff;font-weight:800;font-size:1.05rem;margin:12px 0}
.memory-record-btn.recording{animation:memoryPulse 1s ease-in-out infinite;background:#e32923}
@keyframes memoryPulse{50%{box-shadow:0 0 0 10px rgba(227,41,35,.13)}}
.memory-recorder-card audio{width:100%;margin:12px 0}
.memory-recorder-card textarea{width:100%;min-height:100px;margin:12px 0;padding:14px;border-radius:16px;border:1px solid rgba(242,182,50,.35);background:#0b0907;color:#fff;font:inherit;resize:vertical}
.memory-recorder-card small{display:block;margin-top:14px;color:var(--muted);line-height:1.45}
body.piccio-locked #chatInput,body.piccio-locked #sendChat,body.piccio-locked #voiceFoundation{pointer-events:none!important;opacity:.42!important}


/* v2.1.2: invito vocale più chiaro e vivo */
.voice-btn{position:relative;overflow:hidden;animation:piccioPulse 2.8s ease-in-out infinite;transform-origin:center}
.voice-btn:active{animation:none;transform:scale(.985)}
.voice-btn::after{content:'';position:absolute;inset:0;border-radius:inherit;box-shadow:0 0 0 0 rgba(242,182,50,.35);animation:piccioRing 2.8s ease-out infinite;pointer-events:none}
@keyframes piccioPulse{0%,72%,100%{transform:scale(1)}82%{transform:scale(1.025)}90%{transform:scale(1)}}
@keyframes piccioRing{0%,70%{box-shadow:0 0 0 0 rgba(242,182,50,0)}82%{box-shadow:0 0 0 12px rgba(242,182,50,.12)}100%{box-shadow:0 0 0 18px rgba(242,182,50,0)}}
@media (prefers-reduced-motion:reduce){.voice-btn,.voice-btn::after{animation:none!important}}


/* Aggiornamento PWA AlebIT 2.1.3 */
.update-banner{position:fixed;left:50%;bottom:calc(92px + env(safe-area-inset-bottom));z-index:99999;transform:translateX(-50%);width:min(92vw,560px);display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:12px;padding:14px 14px 14px 18px;border:1px solid rgba(245,185,45,.72);border-radius:20px;background:rgba(13,10,8,.97);box-shadow:0 18px 60px rgba(0,0,0,.55);backdrop-filter:blur(14px);color:#fff}.update-banner[hidden]{display:none!important}.update-banner-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.update-banner-copy strong{font-size:16px;color:#f8bd32}.update-banner-copy span{font-size:13px;color:#ddd}.update-banner button{border:0;cursor:pointer}.update-banner #applyUpdate{padding:11px 15px;border-radius:14px;background:#f8bd32;color:#17100a;font-weight:800;white-space:nowrap}.update-banner .update-dismiss{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.08);color:#fff;font-size:22px;line-height:1}@media(max-width:520px){.update-banner{grid-template-columns:1fr auto;bottom:calc(88px + env(safe-area-inset-bottom));gap:10px;padding:13px}.update-banner-copy strong{font-size:15px}.update-banner-copy span{font-size:12px}.update-banner .update-dismiss{position:absolute;right:6px;top:-40px;background:rgba(13,10,8,.96);border:1px solid rgba(245,185,45,.5)}.update-banner #applyUpdate{padding:11px 13px}}


/* === Casa AlebIT 2.1.4: Studio di Picciò e video sempre disponibile === */
.studio-entry-btn{width:100%;margin-top:14px}
.drawer-studio-btn{margin-top:10px}
.studio-video-card{display:grid;gap:14px;margin:0 0 20px;padding:16px;border:1px solid rgba(248,189,50,.35);border-radius:24px;background:rgba(255,255,255,.045)}
.studio-video-card video{display:block;width:100%;max-height:58vh;border-radius:18px;background:#000;object-fit:contain}
.studio-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.studio-card,.studio-secret{padding:18px;border:1px solid rgba(248,189,50,.24);border-radius:20px;background:rgba(255,255,255,.04)}
.studio-card h3,.studio-secret h3{margin:0 0 9px;color:#f8bd32;font-size:18px}
.studio-card p,.studio-secret p{margin:0;color:#e7e0d7;line-height:1.55}
.studio-secret{margin:16px 0 18px;border-color:rgba(229,70,70,.35)}
.studio-talk-btn{width:100%;margin-bottom:10px}
@media(max-width:619px){
  .studio-grid{grid-template-columns:1fr}
  .studio-video-card{padding:12px}
  .studio-video-card video{max-height:48vh}
  .studio-card,.studio-secret{padding:16px}
}


/* === Casa AlebIT 3.0 RC1: Home Mobile 10/10 + Rito della Chiave === */
#homeView{background:#000;min-height:100svh;overflow:hidden}
#homeView .scene-wrap{
  width:100%;max-width:none;height:100svh;margin:0;
  display:grid;place-items:center;position:relative;overflow:hidden;
  border:0;background:#000;
}
#homeView .scene-wrap::before{
  content:"";position:absolute;inset:-22px;
  background:linear-gradient(rgba(0,0,0,.38),rgba(0,0,0,.38)),url('assets/images/casa-alebit-home.png') center/cover no-repeat;
  filter:blur(16px) saturate(.9);transform:scale(1.08);opacity:.72;
}
#homeView .scene-wrap::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(circle at 50% 44%,transparent 44%,rgba(0,0,0,.42) 100%);
}
#homeView .scene-canvas{
  position:relative;z-index:1;aspect-ratio:2/3;
  height:min(100svh, calc(100vw * 1.5));
  max-height:100svh;max-width:100vw;overflow:hidden;
  box-shadow:0 0 0 1px rgba(242,182,50,.18),0 20px 70px rgba(0,0,0,.72);
}
#homeView .scene-image{width:100%;height:100%;object-fit:contain;display:block}
#homeView .scene-canvas .hotspot{position:absolute}
html.is-standalone .app-shell.home-mode{padding-top:0!important;padding-bottom:0!important}
html.is-standalone #homeView .scene-wrap,#homeView .scene-wrap{width:100%!important;margin:0!important}
@media (max-width:619px){
  #homeView .scene-canvas{height:min(calc(100svh - env(safe-area-inset-top,0px)),calc(100vw * 1.5));}
}
@media (orientation:landscape) and (max-height:600px){
  #homeView .scene-canvas{height:100svh;width:auto}
}

.journey-final-video-stage .journey-note{opacity:.8}
.key-rite-stage{min-height:min(620px,72vh);display:flex;flex-direction:column;align-items:center;justify-content:center}
.key-symbol{font-size:clamp(4.6rem,18vw,8rem);line-height:1;filter:drop-shadow(0 0 24px rgba(240,195,90,.48));animation:keyArrival 1.2s ease both}
.key-rite-stage h2{max-width:650px}
.key-rite-stage p{margin:.4rem 0}
.key-line{width:min(210px,60%);height:1px;margin:20px auto;background:linear-gradient(90deg,transparent,#e8b548,transparent)}
.key-closing{font-size:1.1rem!important}
.key-enter-actions{margin-top:24px}
.key-enter-button{min-width:min(100%,330px);font-size:1.02rem;animation:keyButtonGlow 2.4s ease-in-out infinite}
@keyframes keyArrival{from{opacity:0;transform:translateY(20px) scale(.8) rotate(-12deg)}to{opacity:1;transform:none}}
@keyframes keyButtonGlow{50%{box-shadow:0 0 0 9px rgba(232,181,72,.10),0 0 28px rgba(232,181,72,.22)}}
body.house-opening::after{content:"";position:fixed;z-index:100000;inset:0;background:#000;animation:houseDoorFade .9s ease both;pointer-events:none}
@keyframes houseDoorFade{0%{opacity:0}35%{opacity:1}70%{opacity:1}100%{opacity:0}}
@media (prefers-reduced-motion:reduce){.key-symbol,.key-enter-button,body.house-opening::after{animation:none!important}}


/* 3.0.2 Beta 1 — Il Rito */
.emotionator-card{display:grid;gap:16px;padding:22px;margin:0 0 20px;border:1px solid rgba(255,205,86,.28);border-radius:24px;background:linear-gradient(145deg,rgba(29,23,15,.96),rgba(10,9,8,.96));box-shadow:0 18px 44px rgba(0,0,0,.28)}
.emotionator-key-icon{font-size:36px;filter:drop-shadow(0 4px 14px rgba(255,193,56,.28))}
.emotionator-card h3{margin:2px 0 8px;font-size:1.45rem}.emotionator-card p{margin:0;color:rgba(255,255,255,.76)}
.emotionator-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0}
.emotionator-stats div{padding:12px;border-radius:16px;background:rgba(255,255,255,.055);min-width:0}
.emotionator-stats dt{font-size:.68rem;text-transform:uppercase;letter-spacing:.1em;color:rgba(255,255,255,.5)}
.emotionator-stats dd{margin:6px 0 0;font-weight:700;overflow-wrap:anywhere;color:#ffe4a0}
.official-key-code{display:inline-block;padding:10px 14px;border:1px solid rgba(255,205,86,.38);border-radius:14px;background:rgba(255,205,86,.08);font-weight:800;letter-spacing:.04em;color:#ffe39a}
@media(max-width:560px){.emotionator-stats{grid-template-columns:1fr}.emotionator-card{padding:18px}}

/* Casa AlebIT 3.1.0 — Beta 2 Centro Emozionatori */
.center-card{display:grid;gap:18px;padding:22px;margin:0 0 20px;border:1px solid rgba(255,205,86,.28);border-radius:24px;background:linear-gradient(145deg,rgba(18,16,13,.97),rgba(8,8,8,.98));box-shadow:0 18px 44px rgba(0,0,0,.28)}
.center-card-heading{display:grid;grid-template-columns:auto 1fr;align-items:start;gap:14px}.center-house-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:rgba(255,193,56,.1);font-size:26px}.center-card h3{margin:2px 0 6px;font-size:1.35rem}.center-card p{margin:0;color:rgba(255,255,255,.72)}
.center-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0}.center-stats div{padding:13px;border-radius:16px;background:rgba(255,255,255,.055);min-width:0}.center-stats dt{font-size:.65rem;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.48)}.center-stats dd{margin:6px 0 0;font-size:1.2rem;font-weight:800;color:#ffe4a0}
.center-recent h4{margin:0 0 10px;font-size:.95rem}.center-recent-list{display:grid;gap:8px}.center-recent-list>div{display:flex;justify-content:space-between;gap:14px;padding:10px 12px;border-radius:13px;background:rgba(255,255,255,.04)}.center-recent-list strong{font-size:.9rem}.center-recent-list span{font-size:.76rem;color:rgba(255,255,255,.52);white-space:nowrap}.center-recent-list p{padding:10px 0}
@media(max-width:700px){.center-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.center-card{padding:18px}.center-recent-list>div{align-items:flex-start;flex-direction:column;gap:3px}.center-recent-list span{white-space:normal}}

/* Casa AlebIT 3.2.0 — Beta 3 Sala delle Interpretazioni */
.interpretations-view{padding-bottom:135px}.interpretations-intro-card{display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:center;margin:0 0 18px;padding:18px;border:1px solid rgba(242,182,50,.3);border-radius:22px;background:linear-gradient(145deg,rgba(71,28,20,.78),rgba(11,8,6,.96))}.interpretations-intro-card>span{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:rgba(242,182,50,.12);font-size:31px}.interpretations-intro-card strong{display:block;color:#ffe5a2;font-size:1.05rem}.interpretations-intro-card p{margin:5px 0 0;color:rgba(255,255,255,.72);line-height:1.45}.interpretation-status{margin:0 0 14px;color:rgba(255,255,255,.62);font-size:.88rem}.interpretation-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.interpretation-card{overflow:hidden;border:1px solid rgba(242,182,50,.25);border-radius:22px;background:linear-gradient(155deg,rgba(29,22,16,.98),rgba(7,7,7,.98));box-shadow:0 16px 38px rgba(0,0,0,.3)}.interpretation-card-visual{min-height:150px;padding:16px;display:flex;align-items:flex-end;justify-content:space-between;background:radial-gradient(circle at 65% 25%,rgba(194,48,36,.48),transparent 40%),linear-gradient(135deg,#3d1d12,#090806);background-size:cover;background-position:center}.interpretation-card-visual span{padding:7px 10px;border-radius:999px;background:rgba(0,0,0,.64);font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#ffe4a0}.interpretation-card-visual b{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:rgba(242,182,50,.92);color:#140d05;font-size:19px;box-shadow:0 0 0 8px rgba(242,182,50,.12)}.interpretation-card-copy{padding:17px}.interpretation-card-copy small{color:#d7a94c}.interpretation-card-copy h3{margin:5px 0 8px;font-size:1.25rem}.interpretation-card-copy p{min-height:3.8em;margin:0;color:rgba(255,255,255,.68);line-height:1.5}.interpretation-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:16px}.interpretation-card-actions button{width:100%;min-height:45px;padding:9px 12px}.interpretation-empty{grid-column:1/-1;padding:22px;border:1px dashed rgba(242,182,50,.36);border-radius:20px;text-align:center}.interpretation-empty p{color:var(--muted)}
.interpretation-form-card,.my-interpretations-card{margin-top:20px;padding:22px;border:1px solid rgba(242,182,50,.28);border-radius:24px;background:linear-gradient(145deg,rgba(22,17,12,.98),rgba(7,7,7,.98));box-shadow:0 18px 44px rgba(0,0,0,.28)}.interpretation-form-card h3,.my-interpretations-card h3{margin:3px 0 8px;font-size:1.45rem}.interpretation-form-card>p:not(.eyebrow),.my-interpretations-card p{color:rgba(255,255,255,.7);line-height:1.5}.interpretation-form-card form{display:grid;gap:10px;margin-top:18px}.interpretation-form-card label:not(.archive-consent){font-weight:800;color:#f6dfad}.interpretation-form-card select,.interpretation-form-card textarea{width:100%;padding:14px;border:1px solid rgba(242,182,50,.32);border-radius:16px;background:#0b0907;color:#fff;font:inherit}.interpretation-form-card textarea{resize:vertical;min-height:145px}.archive-consent{display:flex;align-items:flex-start;gap:10px;padding:12px;border-radius:14px;background:rgba(255,255,255,.045);color:rgba(255,255,255,.78);line-height:1.4}.archive-consent input{width:20px;height:20px;flex:0 0 auto;accent-color:#eab843}.interpretation-form-card .primary-btn{width:100%;margin-top:4px}.my-interpretations-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.my-interpretations-heading .round-btn{position:static;flex:0 0 auto}.my-interpretation-item{display:grid;grid-template-columns:1fr auto;gap:8px 14px;margin-top:12px;padding:14px;border-radius:16px;background:rgba(255,255,255,.045);border-left:4px solid #daa93d}.my-interpretation-item.status-pronta{border-left-color:#3aba68}.my-interpretation-item.status-archiviata{border-left-color:#a879e8}.my-interpretation-item>div{display:grid;gap:3px}.my-interpretation-item>div:nth-child(2){text-align:right}.my-interpretation-item span,.my-interpretation-item small{color:rgba(255,255,255,.58)}.my-interpretation-item p{grid-column:1/-1;margin:2px 0}.my-interpretation-item a{grid-column:1/-1;text-align:center}
.interpretation-player-dialog{width:min(760px,calc(100vw - 24px));max-height:92vh;overflow:auto;padding:22px;border:1px solid rgba(242,182,50,.42);border-radius:26px;background:radial-gradient(circle at 50% 0,rgba(93,35,23,.92),#090806 50%);color:#fff;box-shadow:0 30px 100px rgba(0,0,0,.75)}.interpretation-player-dialog::backdrop{background:rgba(0,0,0,.82);backdrop-filter:blur(8px)}.interpretation-player-dialog>button:first-child{position:absolute;right:12px;top:12px;width:42px;height:42px;border-radius:50%;border:1px solid rgba(255,255,255,.22);background:#111;color:#fff;font-size:26px}.interpretation-player-dialog h2{padding-right:42px;margin:4px 0 5px;font-size:clamp(1.65rem,5vw,2.5rem)}.interpretation-player-dialog>p{color:rgba(255,255,255,.7);line-height:1.5}.interpretation-player-dialog video{display:block;width:100%;max-height:58vh;margin:16px 0;border-radius:18px;background:#000}.interpretation-player-dialog .primary-btn{width:100%}
@media(max-width:700px){.interpretation-catalog{grid-template-columns:1fr}.interpretation-card-copy p{min-height:auto}.interpretation-form-card,.my-interpretations-card{padding:18px}.my-interpretation-item{grid-template-columns:1fr}.my-interpretation-item>div:nth-child(2){text-align:left}.interpretation-player-dialog{padding:18px}.interpretation-player-dialog video{max-height:48vh}}
@media(min-width:900px){.interpretations-view{max-width:1080px;margin:0 auto}.interpretation-catalog{grid-template-columns:repeat(3,minmax(0,1fr))}}


/* Casa AlebIT 3.2.1 — Beta 3.1: accesso visibile alla Sala dalla Home */
#homeView .hs-interpretations{
  right:3.2%;top:25.2%;width:19%;height:10.5%;z-index:8;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  border-radius:18px;color:#ffd765!important;text-align:center;
}
#homeView .hs-interpretations span{
  display:grid;place-items:center;width:clamp(34px,10vw,52px);height:clamp(34px,10vw,52px);
  border:2px solid rgba(255,205,86,.92);border-radius:50%;
  background:radial-gradient(circle at 35% 28%,rgba(255,221,125,.22),rgba(18,12,6,.94) 58%);
  box-shadow:0 0 0 5px rgba(242,182,50,.10),0 0 24px rgba(242,182,50,.38);
  font-size:clamp(18px,5.4vw,29px);line-height:1;
}
#homeView .hs-interpretations strong{
  display:block;max-width:100%;font-size:clamp(9px,2.55vw,14px);line-height:1.05;
  color:#ffd765;text-shadow:0 2px 7px #000,0 0 10px rgba(242,182,50,.55);
}
#homeView .hs-interpretations:active span{transform:scale(.94)}
#homeView .hs-interpretations:focus-visible{outline:2px solid #ffd765;outline-offset:2px;background:rgba(242,182,50,.08)!important}
body.visitor-locked #homeView .hs-interpretations{opacity:.42;pointer-events:none}
@media (max-width:380px){
  #homeView .hs-interpretations{right:2.2%;top:25%;width:21%;}
  #homeView .hs-interpretations strong{font-size:9px}
}
@media (prefers-reduced-motion:no-preference){
  #homeView .hs-interpretations span{animation:interpretHomeGlow 3.2s ease-in-out infinite}
}
@keyframes interpretHomeGlow{50%{box-shadow:0 0 0 8px rgba(242,182,50,0),0 0 30px rgba(242,182,50,.54)}}


/* Casa AlebIT 3.2.2 — Beta 3.2: separazione Guarda / Interpreta */
#interpretationFormCard{scroll-margin-top:118px}
#interpretationFormCard.is-ready{animation:interpretComposerReady 1.15s ease both;border-color:rgba(255,211,101,.9);box-shadow:0 0 0 4px rgba(242,182,50,.12),0 20px 56px rgba(0,0,0,.38)}
.interpretation-card-actions{position:relative;z-index:4}
.interpretation-card-actions button{position:relative;z-index:5;touch-action:manipulation;pointer-events:auto}
.interpretation-card-actions [data-interpret-watch]{background:#15110d}
.interpretation-card-actions [data-interpret-select]{background:linear-gradient(180deg,#f5c95b,#c98b20);color:#170e05}
@keyframes interpretComposerReady{0%{transform:scale(.985);filter:brightness(.92)}45%{transform:scale(1.008);filter:brightness(1.16)}100%{transform:scale(1);filter:brightness(1)}}
@media(max-width:700px){#interpretationFormCard{scroll-margin-top:104px}.interpretation-card-actions button{min-height:52px;font-size:1rem}}

/* Casa AlebIT 3.2.3 — Beta 3.3: Interpreta significa cantare */
.interpretation-card-actions [data-interpret-sing]{background:linear-gradient(180deg,#f5c95b,#c98b20);color:#170e05}
.interpretation-singing-card{border-color:rgba(255,210,99,.48)}
.singing-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:18px}
.singing-steps span{display:grid;gap:8px;align-content:start;padding:14px;border-radius:16px;background:rgba(255,255,255,.05);color:rgba(255,255,255,.82);font-size:.86rem;line-height:1.35}
.singing-steps b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e8b548;color:#160f06}
.interpretation-studio-dialog{width:min(780px,calc(100vw - 18px));padding-bottom:calc(22px + env(safe-area-inset-bottom))}
.interpretation-studio-dialog .studio-headphones{padding:12px 14px;border:1px solid rgba(255,211,101,.28);border-radius:15px;background:rgba(255,193,56,.08);color:#ffe0a2}
.interpretation-studio-dialog audio{width:100%;margin:8px 0 4px}
.performance-controls{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;margin:15px 0 8px}
.performance-controls .primary-btn{margin:0}
.performance-controls strong{display:grid;place-items:center;min-width:76px;min-height:50px;padding:0 14px;border:1px solid rgba(255,211,101,.3);border-radius:15px;background:#0a0806;color:#ffe09a;font-variant-numeric:tabular-nums;font-size:1.1rem}
#performanceRecord.recording{background:linear-gradient(180deg,#df3d31,#9c1710);color:#fff;animation:performancePulse 1.25s ease-in-out infinite}
#performancePreview{display:block;width:100%;margin:14px 0;border-radius:15px}
#performancePreview[hidden]{display:none}
.performance-details{display:grid;gap:11px;margin-top:15px;padding-top:15px;border-top:1px solid rgba(255,211,101,.2)}
.performance-details[hidden]{display:none}
.performance-details>label:not(.archive-consent){font-weight:800;color:#f6dfad}
.performance-details select,.performance-details textarea{width:100%;padding:13px 14px;border:1px solid rgba(242,182,50,.32);border-radius:15px;background:#0b0907;color:#fff;font:inherit}
.performance-details textarea{resize:vertical;min-height:94px}
.performance-details .primary-btn,.performance-details .secondary-btn{width:100%;margin:0}
.my-interpretation-item audio{grid-column:1/-1;width:100%;margin-top:5px}
@keyframes performancePulse{50%{box-shadow:0 0 0 9px rgba(223,61,49,.12),0 0 26px rgba(223,61,49,.32)}}
@media(max-width:700px){
  .singing-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .interpretation-studio-dialog{padding:17px 17px calc(17px + env(safe-area-inset-bottom))}
  .interpretation-studio-dialog audio{width:100%}
  .performance-controls{grid-template-columns:1fr}
  .performance-controls strong{min-height:44px}
}

/* Casa AlebIT 3.2.5 — Beta 3.5: Leggio Karaoke */
.karaoke-stage{position:relative;isolation:isolate;overflow:hidden;display:grid;min-height:360px;margin:16px 0 10px;border:1px solid rgba(255,211,101,.34);border-radius:24px;background-position:center;background-size:cover;box-shadow:inset 0 0 80px rgba(0,0,0,.56),0 18px 48px rgba(0,0,0,.3)}
.karaoke-stage-shade{position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at 50% 18%,rgba(255,194,74,.18),transparent 43%),linear-gradient(180deg,rgba(0,0,0,.1),rgba(0,0,0,.54))}
.karaoke-stage-copy{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:360px;padding:20px}
.karaoke-stage-copy>.eyebrow{text-align:center;color:#ffe099;text-shadow:0 2px 16px #000}
.karaoke-lyrics{overflow-y:auto;overscroll-behavior:contain;scroll-behavior:smooth;align-self:stretch;padding:22px 12px 36px;white-space:pre-wrap;text-align:center;color:#fff;font-size:clamp(1.25rem,4.4vw,2rem);font-weight:850;line-height:1.75;letter-spacing:.01em;text-wrap:balance;text-shadow:0 2px 4px #000,0 0 15px rgba(0,0,0,.95),0 0 30px rgba(0,0,0,.7);scrollbar-width:thin;scrollbar-color:#e6b64d rgba(0,0,0,.3)}
.karaoke-lyrics:focus{outline:2px solid rgba(255,215,112,.75);outline-offset:-5px;border-radius:18px}
.karaoke-lyrics.is-empty{display:grid;place-items:center;color:rgba(255,255,255,.72);font-size:1rem;font-weight:700;line-height:1.5}
.karaoke-lyrics-hint{margin:8px 0 0;text-align:center;color:rgba(255,240,204,.8);font-size:.82rem;text-shadow:0 1px 8px #000}
@media(max-width:700px){.karaoke-stage,.karaoke-stage-copy{min-height:46vh;max-height:520px}.karaoke-stage-copy{padding:15px}.karaoke-lyrics{padding:16px 7px 30px;font-size:clamp(1.2rem,6vw,1.72rem);line-height:1.65}}

/* Casa AlebIT 3.3.0 — Beta 4: Archivio del Cuore */
#homeView .hs-archive{
  left:3.2%;top:25.2%;width:19%;height:10.5%;z-index:8;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  border-radius:18px;color:#ff8dac!important;text-align:center;
}
#homeView .hs-archive span{
  display:grid;place-items:center;width:clamp(34px,10vw,52px);height:clamp(34px,10vw,52px);
  border:2px solid rgba(255,126,164,.92);border-radius:50%;
  background:radial-gradient(circle at 35% 28%,rgba(255,167,194,.24),rgba(26,8,14,.95) 58%);
  box-shadow:0 0 0 5px rgba(190,44,89,.11),0 0 24px rgba(255,84,137,.38);
  font-size:clamp(18px,5.4vw,29px);line-height:1;
}
#homeView .hs-archive strong{display:block;max-width:100%;font-size:clamp(9px,2.55vw,14px);line-height:1.05;color:#ff9fba;text-shadow:0 2px 7px #000,0 0 10px rgba(255,84,137,.55)}
#homeView .hs-archive:active span{transform:scale(.94)}
#homeView .hs-archive:focus-visible{outline:2px solid #ff9fba;outline-offset:2px;background:rgba(255,84,137,.08)!important}
body.visitor-locked #homeView .hs-archive{opacity:.42;pointer-events:none}
@media(max-width:380px){#homeView .hs-archive{left:2.2%;top:25%;width:21%}#homeView .hs-archive strong{font-size:9px}}
@media(prefers-reduced-motion:no-preference){#homeView .hs-archive span{animation:archiveHomeGlow 3.4s ease-in-out infinite}}
@keyframes archiveHomeGlow{50%{box-shadow:0 0 0 8px rgba(255,84,137,0),0 0 31px rgba(255,84,137,.54)}}

.archive-view{max-width:980px;margin:0 auto}.archive-intro-card{display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:center;margin:0 0 18px;padding:18px;border:1px solid rgba(255,120,158,.34);border-radius:22px;background:linear-gradient(135deg,rgba(120,20,53,.34),rgba(19,9,8,.86))}.archive-intro-card>span{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:rgba(255,86,136,.13);font-size:30px;box-shadow:inset 0 0 0 1px rgba(255,154,184,.2)}.archive-intro-card strong{font-size:1.1rem;color:#ffd0dc}.archive-intro-card p{margin:5px 0 0;color:rgba(255,255,255,.72);line-height:1.5}
.archive-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.archive-stats>div{padding:18px;border:1px solid rgba(255,190,90,.22);border-radius:18px;background:rgba(255,255,255,.045)}.archive-stats dt{color:rgba(255,255,255,.56);font-size:.75rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.archive-stats dd{margin:8px 0 0;color:#ffe09a;font-size:2rem;font-weight:900}
.dedication-card,.archive-timeline-card{margin:18px 0;padding:22px;border:1px solid rgba(255,124,162,.31);border-radius:24px;background:linear-gradient(145deg,rgba(51,12,25,.72),rgba(9,8,6,.94));box-shadow:0 18px 48px rgba(0,0,0,.24)}.dedication-card h3,.archive-timeline-card h3{margin:4px 0 16px}.dedication-card label{display:block;margin:13px 0 6px;color:#f7d6df;font-weight:800}.dedication-card label small{font-weight:500;color:rgba(255,255,255,.52)}.dedication-card input,.dedication-card textarea{width:100%;padding:14px;border:1px solid rgba(255,144,177,.28);border-radius:15px;background:#0a0807;color:#fff;font:inherit}.dedication-card textarea{resize:vertical;min-height:130px}.dedication-card .primary-btn{width:100%;margin-top:16px;background:linear-gradient(180deg,#f05b87,#a91e4b);color:#fff}
.archive-timeline-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.archive-timeline-heading .round-btn{position:static;flex:0 0 auto}.archive-timeline{display:grid;gap:14px;margin-top:18px}.archive-timeline-item{display:grid;grid-template-columns:52px 1fr;gap:14px;padding:16px;border:1px solid rgba(255,255,255,.09);border-left:4px solid #d6a13d;border-radius:18px;background:rgba(255,255,255,.04)}.archive-timeline-item.type-dedication{border-left-color:#e65482}.archive-timeline-item.type-interpretation{border-left-color:#9867df}.archive-timeline-item.status-approved{box-shadow:inset 0 0 0 1px rgba(74,199,107,.15)}.archive-timeline-item.status-rejected{border-left-color:#dc4338}.archive-timeline-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:rgba(255,255,255,.07);font-size:25px}.archive-timeline-copy{min-width:0}.archive-timeline-meta{display:flex;justify-content:space-between;gap:10px;color:rgba(255,255,255,.5);font-size:.74rem;text-transform:uppercase;letter-spacing:.08em}.archive-timeline-copy h4{margin:7px 0;color:#fff;font-size:1.08rem}.archive-timeline-copy p{margin:7px 0;color:rgba(255,255,255,.76);line-height:1.55}.archive-recipient{color:#ffb4c9!important;font-weight:800}.archive-timeline-copy audio,.archive-timeline-copy video{display:block;width:100%;max-height:360px;margin:12px 0;border-radius:14px}.archive-item-status{display:block;margin-top:10px;color:#ffe09a}.archive-moderation-note{display:block;margin-top:6px;padding:9px 11px;border-radius:10px;background:rgba(220,67,56,.12);color:#ffb7b2}.archive-empty{display:grid;place-items:center;gap:8px;min-height:220px;padding:24px;text-align:center;border:1px dashed rgba(255,141,174,.3);border-radius:18px;color:rgba(255,255,255,.68)}.archive-empty span{font-size:34px}.archive-empty strong{color:#ffd4df}
@media(max-width:700px){.archive-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dedication-card,.archive-timeline-card{padding:18px}.archive-timeline-item{grid-template-columns:42px 1fr;padding:14px}.archive-timeline-icon{width:40px;height:40px;border-radius:13px;font-size:21px}.archive-timeline-meta{display:grid;gap:4px}.archive-intro-card{grid-template-columns:1fr;text-align:center}.archive-intro-card>span{margin:auto}}


/* Beta 4.1 — Archivio rifinito su iPhone/PWA */
.app-shell[data-current-view="archive"] > .app-header{
  background:#070604;
  box-shadow:0 10px 28px rgba(0,0,0,.78);
}
.archive-view{
  padding-top:30px;
  padding-bottom:calc(118px + var(--safe-bottom));
}
.archive-stats>div{min-width:0;overflow:hidden}
.archive-stats dt{
  display:block;
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:break-word;
  hyphens:auto;
  line-height:1.25;
}
@media(max-width:430px){
  .archive-view .section-heading h2{font-size:clamp(2rem,9.5vw,2.65rem);line-height:1.08}
  .archive-view .section-heading p{font-size:1rem}
  .archive-stats{gap:10px}
  .archive-stats>div{padding:16px 12px}
  .archive-stats dt{font-size:.66rem;letter-spacing:.065em}
  .archive-stats dd{font-size:1.85rem}
  .archive-intro-card strong{font-size:1.05rem}
}

/* Beta 5 — Voce ufficiale di Picciò */
.voice-output-toggle{margin-top:10px}
.voice-output-toggle[aria-pressed="false"]{opacity:.72}
.voice-ai-disclosure{font-size:.82rem;opacity:.68;text-align:center;margin:8px 0 14px}

/* 3.7.18 — Flusso AlebIT sigillato: testo, conferma, attesa musicale, MP3 */
.alebit-experience-flow{position:fixed;inset:0;z-index:10020;display:grid;place-items:center;overflow:auto;background:radial-gradient(circle at 50% 22%,#251b0d 0,#090807 42%,#000 100%);color:#fff;padding:22px}
.alebit-experience-flow[hidden]{display:none!important}
.alebit-experience-panel{width:min(100%,560px);text-align:center;padding:28px 18px 34px}
.alebit-experience-kicker{font-size:.74rem;letter-spacing:.2em;color:#d8b56c;font-weight:800;margin:18px 0 10px}
.alebit-experience-panel h2{font-size:clamp(1.55rem,6vw,2.35rem);line-height:1.12;margin:8px 0 20px}
.alebit-experience-panel h3{font-size:1.18rem;line-height:1.35;margin:24px 0 16px}
.alebit-generated-text{font-size:1.12rem;line-height:1.65;color:#f4eee4;border-top:1px solid rgba(255,255,255,.12);border-bottom:1px solid rgba(255,255,255,.12);padding:22px 4px;white-space:pre-wrap}
.alebit-experience-actions{display:grid;gap:12px}
.alebit-secondary-action{width:100%;min-height:48px;border:1px solid rgba(255,255,255,.24);border-radius:16px;background:transparent;color:#fff;font-weight:800;padding:12px 16px}
#alebitAddForm{display:grid;gap:12px;text-align:left;margin-top:22px}
#alebitAddForm[hidden]{display:none!important}
#alebitAddition{width:100%;box-sizing:border-box;border:1px solid rgba(255,255,255,.22);border-radius:16px;background:#111;color:#fff;padding:14px;font:inherit;resize:vertical}
#alebitWaitingAudio,#alebitResultAudio{width:100%;margin:12px 0 18px}
.alebit-waiting-track-label{color:#d8b56c;font-weight:800}
.alebit-waiting-line{height:4px;border-radius:999px;background:rgba(255,255,255,.14);overflow:hidden;margin:18px 0 8px}
.alebit-waiting-line span{display:block;width:0;height:100%;background:currentColor;transition:width 1s linear}
.alebit-download{display:flex!important;align-items:center;justify-content:center;text-decoration:none;margin:8px 0 12px}
body.alebit-experience-active #app{visibility:hidden!important;pointer-events:none!important}


/* 3.7.20 — Flusso mobile compatto: niente pagine nere, niente scroll fantasma */
html.alebit-flow-lock,html.alebit-flow-lock body{overflow:hidden!important;height:100%!important;overscroll-behavior:none}
#alebitEmotionFlow[hidden],#alebitInterpretationFlow[hidden]{display:none!important}
.alebit-emotion-flow{
  position:fixed!important;inset:0!important;z-index:10020!important;display:block!important;
  overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch;
  background:radial-gradient(circle at 50% 18%,#241a0c 0,#090807 42%,#000 100%)!important;
  color:#fff!important;padding:max(18px,env(safe-area-inset-top)) 18px max(22px,env(safe-area-inset-bottom))!important;
  box-sizing:border-box!important
}
.alebit-emotion-flow__panel{width:min(100%,560px)!important;min-height:100%!important;margin:0 auto!important;display:flex!important;flex-direction:column!important;justify-content:center!important;box-sizing:border-box!important;padding:14px 0 24px!important}
.alebit-emotion-flow__brand{text-align:center!important;margin:0 0 6px!important;font-size:1.15rem!important;font-weight:800!important}
.alebit-emotion-flow__piccio-wrap{display:none!important}
.alebit-emotion-flow__eyebrow{text-align:center!important;color:#d8b56c!important;font-size:.72rem!important;letter-spacing:.18em!important;font-weight:800!important;margin:4px 0 8px!important}
.alebit-emotion-flow h1{text-align:center!important;font-size:clamp(2rem,10vw,3rem)!important;line-height:1.02!important;margin:4px 0 10px!important}
.alebit-emotion-flow__lead{text-align:center!important;font-size:1rem!important;line-height:1.35!important;margin:0 0 18px!important;color:rgba(255,255,255,.82)!important}
.alebit-emotion-form{display:grid!important;gap:10px!important}
.alebit-emotion-fields{display:grid!important;gap:9px!important}
.alebit-emotion-fields label{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;margin:0!important}
.alebit-emotion-fields label>span{position:static!important;display:block!important;width:auto!important;text-align:center!important;font-size:.82rem!important;line-height:1!important;color:#d8b56c!important;font-weight:800!important}
.alebit-emotion-fields input{width:100%!important;min-width:0!important;box-sizing:border-box!important;height:50px!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:14px!important;background:#f7f7f7!important;color:#111!important;padding:0 14px!important;font-size:16px!important;font-weight:650!important}
.alebit-emotion-count{text-align:center!important;margin:8px 0 4px!important;font-size:.95rem!important}
.alebit-emotion-submit{min-height:50px!important;border-radius:16px!important}
.alebit-emotion-flow__claim{text-align:center!important;margin:13px 0 0!important;font-size:.95rem!important;color:rgba(255,255,255,.72)!important}
.alebit-experience-flow{align-items:flex-start!important;place-items:initial!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;box-sizing:border-box!important;padding:max(18px,env(safe-area-inset-top)) 18px max(22px,env(safe-area-inset-bottom))!important}
.alebit-experience-panel{margin:auto!important;padding:12px 0 24px!important;box-sizing:border-box!important}
#alebitWaitingStage,#alebitReadyStage,#alebitInterpretationStage{scroll-margin-top:8px}
@media(max-width:430px){
 .alebit-emotion-flow__panel{justify-content:flex-start!important;padding-top:24px!important}
 .alebit-emotion-flow h1{font-size:2.25rem!important}
 .alebit-emotion-flow__lead{margin-bottom:14px!important}
 .alebit-emotion-fields{gap:8px!important}
 .alebit-emotion-fields input{height:48px!important}
 .alebit-experience-panel h2{font-size:1.9rem!important}
}


/* 3.7.22 — Ponte APP EMOXION: dialogo a due domande prima del testo */
.alebit-emoxion-dialog-stage{width:100%;display:grid;gap:16px}
.alebit-emoxion-dialog-log{display:grid;gap:10px;text-align:left}
.alebit-emoxion-dialog-bubble{margin:0;padding:13px 15px;border-radius:16px;line-height:1.5;white-space:pre-wrap}
.alebit-emoxion-dialog-bubble.is-piccio{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.13)}
.alebit-emoxion-dialog-bubble.is-user{background:rgba(242,182,50,.12);border:1px solid rgba(242,182,50,.3)}
.alebit-emoxion-dialog-form{display:grid;gap:10px}
.alebit-emoxion-dialog-form label{font-weight:700}
.alebit-emoxion-dialog-form textarea{width:100%;box-sizing:border-box;border-radius:15px;border:1px solid rgba(255,255,255,.2);background:#0d0c0a;color:#fff;padding:14px;font:inherit;resize:vertical;min-height:110px}

/* 3.7.23 — testo EMOXION leggibile e palette AlebIT nero, rosso e oro */
.alebit-emotion-submit{
  display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;
  border:1px solid #f2b632!important;background:linear-gradient(180deg,#a52331 0%,#681522 100%)!important;
  color:#fff!important;font-weight:900!important;letter-spacing:.045em!important;padding:12px 16px!important;
  box-shadow:0 10px 26px rgba(104,21,34,.34),inset 0 1px 0 rgba(255,255,255,.13)!important;
  text-shadow:0 1px 2px rgba(0,0,0,.72)!important
}
.alebit-emotion-submit:disabled{
  border-color:rgba(242,182,50,.24)!important;background:#211a15!important;color:rgba(255,255,255,.42)!important;
  box-shadow:none!important;text-shadow:none!important;opacity:1!important
}
.alebit-emotion-submit:not(:disabled):active{transform:translateY(1px)!important;filter:brightness(.94)!important}
.alebit-secondary-action{border-color:rgba(242,182,50,.7)!important;color:#ffda80!important;background:rgba(5,4,3,.72)!important}

.alebit-generated-text{
  margin:0;padding:22px 18px!important;border:1px solid rgba(242,182,50,.44)!important;border-radius:22px!important;
  background:linear-gradient(155deg,rgba(67,19,27,.72),rgba(10,8,7,.96) 58%)!important;
  box-shadow:0 18px 44px rgba(0,0,0,.34)!important;text-align:left!important;white-space:normal!important
}
.alebit-generated-text>span{display:block}
.alebit-generated-text__title{color:#ffd56b;font-size:clamp(1.55rem,7vw,2.25rem);font-weight:900;line-height:1.08;text-align:center}
.alebit-generated-text__hidden{margin:8px 0 22px;color:rgba(255,255,255,.7);font-style:italic;text-align:center}
.alebit-generated-text__label{margin:20px 0 7px;color:#f2b632;font-size:.72rem;font-weight:900;letter-spacing:.18em}
.alebit-generated-text__body{color:#fff8eb;font-size:1.04rem;line-height:1.65;white-space:pre-wrap}
.alebit-generated-text__body.is-chorus{padding-left:13px;border-left:3px solid #a52331;font-weight:750}

.alebit-emoxion-dialog-bubble{max-width:88%;box-shadow:0 10px 24px rgba(0,0,0,.23)}
.alebit-emoxion-dialog-bubble.is-piccio{
  justify-self:start;background:linear-gradient(145deg,rgba(139,30,45,.95),rgba(43,12,17,.98))!important;
  border:1px solid rgba(242,182,50,.58)!important;border-bottom-left-radius:4px;color:#fff9ee!important
}
.alebit-emoxion-dialog-bubble.is-user{
  justify-self:end;background:linear-gradient(145deg,#ffd36a,#d69b27)!important;
  border:1px solid #ffe3a0!important;border-bottom-right-radius:4px;color:#1b1005!important;font-weight:750
}
.alebit-emoxion-dialog-form label{color:#ffd56b!important}
.alebit-emoxion-dialog-form textarea{border-color:rgba(242,182,50,.46)!important;background:#090705!important;color:#fff!important}
.alebit-emoxion-dialog-form textarea::placeholder{color:rgba(255,255,255,.48)}

#piccioView .bubble.bot{
  justify-self:start;background:linear-gradient(145deg,rgba(139,30,45,.95),rgba(43,12,17,.98))!important;
  border:1px solid rgba(242,182,50,.58)!important;border-bottom-left-radius:4px;color:#fff9ee!important
}
#piccioView .bubble.user{
  justify-self:end;background:linear-gradient(145deg,#ffd36a,#d69b27)!important;
  border:1px solid #ffe3a0!important;border-bottom-right-radius:4px;color:#1b1005!important;font-weight:750
}
#piccioView .chat-compose button{background:linear-gradient(180deg,#f5c34d,#c88b1e)!important;color:#1b1005!important}

/* 3.7.24 — una schermata alla volta e passaggio animato chat → testo */
#alebitEmoxionDialogStage[hidden],
#alebitInterpretationStage[hidden],
#alebitWaitingStage[hidden],
#alebitReadyStage[hidden],
#alebitConfirmBlock[hidden],
#alebitAddForm[hidden],
#alebitRetryMatch[hidden]{display:none!important}

#alebitInterpretationFlow{
  background-color:#000!important;
  background-image:radial-gradient(circle at 50% 18%,#241a0c 0,#090807 40%,#000 76%)!important;
  isolation:isolate!important
}
#alebitInterpretationFlow>.alebit-experience-panel{position:relative;z-index:1;width:min(100%,560px)!important}
.alebit-experience-stage-enter{animation:alebitStageEnter .72s cubic-bezier(.2,.75,.22,1) both}
#alebitInterpretationStage.alebit-experience-stage-enter .alebit-generated-text{animation:alebitTextCardEnter .82s .18s cubic-bezier(.18,.78,.2,1) both}
#alebitInterpretationStage.alebit-experience-stage-enter #alebitConfirmBlock{animation:alebitTextCardEnter .72s .42s cubic-bezier(.18,.78,.2,1) both}
@keyframes alebitStageEnter{
  from{opacity:0;transform:translateY(30px);filter:blur(6px)}
  to{opacity:1;transform:none;filter:none}
}
@keyframes alebitTextCardEnter{
  from{opacity:0;transform:translateY(24px) scale(.975)}
  to{opacity:1;transform:none}
}
#alebitInterpretationFlow.alebit-text-reveal::after{
  content:"LE PAROLE STANNO ARRIVANDO";
  position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:28px;
  background:radial-gradient(circle at 50% 46%,rgba(139,30,45,.32),#050403 45%,#000 78%);
  color:#f2b632;text-align:center;font-size:clamp(1rem,4.8vw,1.45rem);font-weight:900;letter-spacing:.2em;
  pointer-events:none;animation:alebitTextCurtain 1.1s ease both
}
@keyframes alebitTextCurtain{
  0%{opacity:0}
  18%,62%{opacity:1}
  100%{opacity:0}
}
@media(prefers-reduced-motion:reduce){
  .alebit-experience-stage-enter,
  #alebitInterpretationStage.alebit-experience-stage-enter .alebit-generated-text,
  #alebitInterpretationStage.alebit-experience-stage-enter #alebitConfirmBlock,
  #alebitInterpretationFlow.alebit-text-reveal::after{animation:none!important}
}

/* 3.7.25 — la musica si rivela e resta nella Stanza dei Ricordi */
.alebit-oracle-line{max-width:460px;margin:0 auto 18px;color:rgba(255,248,235,.76);font-size:1.02rem;line-height:1.55}
.alebit-revealed-song{display:grid;grid-template-columns:116px minmax(0,1fr);gap:18px;align-items:center;margin:22px 0;padding:15px;border:1px solid rgba(242,182,50,.48);border-radius:24px;background:linear-gradient(145deg,rgba(75,21,30,.78),rgba(9,7,5,.98));box-shadow:0 20px 48px rgba(0,0,0,.38);text-align:left}
.alebit-revealed-cover{aspect-ratio:1;border-radius:18px;display:grid;place-items:center;background:radial-gradient(circle at 35% 25%,#e6be5c,#8c5b16 38%,#38141b 72%,#090605);background-size:cover;background-position:center;box-shadow:0 10px 26px rgba(0,0,0,.35);overflow:hidden}
.alebit-revealed-cover span{font:900 3.2rem/1 Georgia,serif;color:#130b04;text-shadow:0 1px 0 rgba(255,255,255,.34)}
.alebit-revealed-cover.has-image span{display:none}
.alebit-revealed-copy{min-width:0}.alebit-revealed-copy small{color:#e6bd60;font-weight:900;letter-spacing:.14em}.alebit-revealed-copy h3{margin:7px 0 4px!important;color:#fff5d7;font-size:1.45rem!important;overflow-wrap:anywhere}.alebit-revealed-copy p{margin:0;color:rgba(255,255,255,.72)}
#alebitOpenReceivedMemories{margin:0 0 11px}

.alebit-received-memories{max-width:620px;margin:0 auto 16px;padding:20px;border:1px solid rgba(242,182,50,.34);border-radius:24px;background:linear-gradient(150deg,rgba(58,19,26,.94),rgba(8,6,5,.98));box-shadow:0 16px 38px rgba(0,0,0,.3)}
.alebit-received-memories__heading{display:flex;align-items:flex-start;gap:13px;text-align:left;margin-bottom:15px}.alebit-received-memories__heading>span{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:50%;background:#d8aa43;color:#1b0e05;font-size:1.35rem;font-weight:900}.alebit-received-memories__heading h3{margin:0;color:#fff0c9;font-size:1.15rem}.alebit-received-memories__heading p{margin:5px 0 0;color:var(--muted);line-height:1.4}
.alebit-received-songs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.alebit-received-song{min-width:0;border:1px solid rgba(255,255,255,.1);border-radius:18px;overflow:hidden;background:rgba(0,0,0,.3)}.alebit-received-song__cover{aspect-ratio:16/10;background-size:cover;background-position:center}.alebit-received-song__cover.is-fallback{display:grid;place-items:center;background:radial-gradient(circle at 35% 25%,#e6be5c,#8c5b16 42%,#38141b 74%,#090605)}.alebit-received-song__cover.is-fallback span{font:900 2.6rem/1 Georgia,serif;color:#190d05}.alebit-received-song__copy{padding:13px;text-align:left}.alebit-received-song__copy small{display:block;color:#d8b56c;font-size:.62rem;font-weight:900;letter-spacing:.08em}.alebit-received-song__copy h4{margin:6px 0 3px;color:#fff3d0;font-size:1.05rem;overflow-wrap:anywhere}.alebit-received-song__copy p{margin:0;color:var(--muted)}.alebit-received-song__copy audio{width:100%;height:36px;margin:10px 0 0}.alebit-received-empty{grid-column:1/-1;padding:20px;text-align:center;border:1px dashed rgba(242,182,50,.3);border-radius:16px;color:var(--muted)}.alebit-received-empty span{display:block;color:#d8b56c;font-size:2rem;margin-bottom:6px}.alebit-received-empty p{margin:0}
@media(max-width:520px){.alebit-revealed-song{grid-template-columns:92px minmax(0,1fr);gap:13px}.alebit-revealed-copy h3{font-size:1.2rem!important}.alebit-received-songs{grid-template-columns:1fr}}


/* Casa AlebIT 3.7.28 — accesso permanente al percorso EMOXION */
#homeView .hs-emoxion-entry{overflow:visible!important}
#homeView .hs-emoxion-entry .hs-emoxion-entry-label{
  position:absolute;left:50%;bottom:4%;transform:translateX(-50%);
  display:flex;align-items:center;justify-content:center;gap:5px;
  width:max-content;max-width:155%;min-height:30px;padding:6px 9px;
  border:1px solid rgba(244,196,79,.78);border-radius:999px;
  background:rgba(7,5,3,.82);box-shadow:0 0 18px rgba(242,182,50,.28);
  color:#ffd86d;text-align:center;white-space:nowrap;pointer-events:none;
  text-shadow:0 1px 6px #000;
}
#homeView .hs-emoxion-entry .hs-emoxion-entry-label b{font-size:13px;line-height:1}
#homeView .hs-emoxion-entry .hs-emoxion-entry-label strong{font-size:clamp(8px,2.35vw,11px);line-height:1;letter-spacing:.04em}
@media(max-width:360px){#homeView .hs-emoxion-entry .hs-emoxion-entry-label{padding:5px 7px;gap:4px}}


/* Casa AlebIT 3.7.29 — micro-informativa privacy nel primo ingresso */
.visitor-privacy-note{
  margin:10px 6px 2px;
  font-size:12px;
  line-height:1.42;
  font-weight:500;
  color:rgba(255,255,255,.68);
  text-align:center;
}
.visitor-privacy-note::first-letter{color:#f0bd4e}
@media(max-width:380px){.visitor-privacy-note{font-size:11px;margin-top:8px}}

/* 3.7.32 — testo scaricabile e ricordi */
.alebit-download-text{width:100%;margin-top:10px}.alebit-text-saved-note{text-align:center;opacity:.78;font-size:.88rem}.alebit-received-song__text{margin-top:10px;padding:10px 12px;border:1px solid rgba(255,255,255,.10);border-radius:12px;background:rgba(255,255,255,.035);line-height:1.45;font-size:.88rem}.alebit-received-song__text summary{cursor:pointer;font-weight:700}.alebit-memory-download-text{display:inline-block;margin-top:9px}

/* 3.7.33 player brano completo */
.alebit-result-video{display:block;width:100%;max-width:720px;height:64px;margin:14px auto;border-radius:18px;background:#111;object-fit:cover}.alebit-result-video[hidden]{display:none!important}
