/* ============================================================
   BASE / TOKENS  (default = tema Bright)
   ============================================================ */
*{box-sizing:border-box}
.hih{
  --r1:#FF3D6E; --r2:#FF8A2B; --r3:#FFC400; --r4:#2FCB6E;
  --r5:#16C7D6; --r6:#3B82F6; --r7:#7C5CFC; --r8:#E455C8;
  --spectrum:linear-gradient(90deg,var(--r1),var(--r2),var(--r3),var(--r4),var(--r5),var(--r6),var(--r7),var(--r8));

  --bg:#F1EFFA;
  --bg-pat:rgba(124,92,252,.05);
  --surface:#FFFFFF;
  --surface-2:#F6F4FD;
  --border:rgba(28,20,55,.08);
  --line:rgba(28,20,55,.07);
  --text:#1C1830;
  --muted:#6E6886;
  --faint:#9b96ad;
  --header-bg:rgba(255,255,255,.86);
  --radius:18px;
  --radius-sm:12px;
  --shadow:0 1px 2px rgba(28,20,55,.04),0 10px 26px rgba(28,20,55,.07);
  --shadow-sm:0 1px 2px rgba(28,20,55,.05),0 4px 12px rgba(28,20,55,.05);
  --fontH:'Fredoka',system-ui,sans-serif;
  --fontB:'Nunito',system-ui,sans-serif;

  font-family:var(--fontB);
  color:var(--text);
  background:var(--bg);
  background-image:radial-gradient(var(--bg-pat) 1.4px,transparent 1.4px);
  background-size:22px 22px;
  min-height:100%;
  -webkit-font-smoothing:antialiased;
  line-height:1.45;
  position:relative;
}
.hih a{color:inherit;text-decoration:none}
.hih h2,.hih h3,.hih h4{font-family:var(--fontH);margin:0;font-weight:600;letter-spacing:-.01em}
.hih button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
/* i bottoni .btn definiscono il proprio colore testo: deve battere il reset .hih button (0,1,1) */
.hih .btn-primary{color:#fff}
.hih .btn-ghost{color:var(--text)}
.hih img{display:block}
.spectrum{height:4px;background:var(--spectrum)}

/* ============================================================
   HEADER
   ============================================================ */
.hh{position:relative;z-index:30;background:transparent}
.hh-masthead{max-width:1240px;margin:0 auto;padding:0 22px;display:flex;align-items:center;justify-content:center;position:relative}
.hh-bar{position:sticky;top:0;z-index:31;display:flex;align-items:center;gap:12px;justify-content:space-between;padding:0;height:56px;background:var(--surface);border-top:1px solid var(--border);border-bottom:1px solid var(--border);box-shadow:0 6px 18px -6px rgba(28,20,55,.18),0 2px 5px -2px rgba(28,20,55,.12)}
.hh-bar-inner{max-width:1240px;margin:0 auto;width:100%;padding:0 22px;display:flex;align-items:center;gap:12px;justify-content:space-between}
.hh-bar-right{display:flex;align-items:center;gap:9px;flex:0 0 auto}
.hh-mast-right{display:none;align-items:center;gap:8px;position:absolute;right:14px;top:50%;transform:translateY(-50%)}
.hh-logo{display:flex;align-items:center;flex:0 1 auto;min-width:0;max-width:100%}
.hh-masthead .hh-logo{margin:0}
.hh-logo-full{height:auto;width:auto;max-width:100%;max-height:170px;display:block;object-fit:contain}
.hh-logo-mini{display:none;align-items:center;gap:10px}
.hh-mark{height:34px;width:34px;display:block;flex:0 0 auto;filter:drop-shadow(0 2px 3px rgba(0,0,0,.28))}
.hh-word{font-family:var(--fontH);font-weight:700;font-size:18px;letter-spacing:-.02em;color:var(--text)}
.hex{position:relative;width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto}
.hex-ring{position:absolute;inset:0;background:var(--spectrum);
  clip-path:polygon(50% 0,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%);
  filter:saturate(1.15)}
.hex-core{position:relative;width:26px;height:26px;display:grid;place-items:center;
  background:var(--surface);color:var(--text);font-family:var(--fontH);font-weight:700;font-size:15px;
  clip-path:polygon(50% 0,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%)}
.wm{display:flex;flex-direction:column;line-height:1}
.wm em{font-style:normal;font-size:9px;letter-spacing:.16em;text-transform:uppercase;color:var(--faint);font-weight:700;margin-bottom:2px}
.wm b{font-family:var(--fontH);font-weight:700;font-size:18px;letter-spacing:-.02em}
.hh-nav{display:flex;align-items:center;gap:2px}
.hh-search{margin-left:auto;display:flex;align-items:center;gap:8px;height:36px;padding:0 14px;border-radius:11px;background:var(--surface-2);border:1px solid var(--border);color:var(--faint);font-size:13px;font-weight:600;cursor:text;white-space:nowrap;max-width:260px}
.hh-search svg{flex:0 0 auto}
.hh-link{display:flex;align-items:center;gap:6px;padding:8px 10px;border-radius:10px;font-weight:700;font-size:13.5px;color:var(--muted);transition:.16s;white-space:nowrap}
.hh-ico{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;flex:0 0 auto;background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line);transition:transform .15s,box-shadow .15s}
.hh-link:hover .hh-ico{transform:translateY(-1px);box-shadow:inset 0 0 0 1px var(--line),0 3px 7px rgba(28,20,55,.16)}
.hh-link.is-active .hh-ico{box-shadow:inset 0 0 0 1px var(--line),0 2px 6px rgba(28,20,55,.14)}
.navico{width:23px;height:23px;display:block;image-rendering:-webkit-optimize-contrast}
.hh-link .navico{opacity:.92;transition:.16s;flex:0 0 auto}
.hh-link:hover .navico,.hh-link.is-active .navico{opacity:1}
.hh-link:hover{background:var(--surface-2);color:var(--text)}
.hh-link.is-active{color:var(--text);background:var(--surface)}
.hh-link.is-active svg{opacity:1;color:var(--r6)}
.hh-right{margin-left:auto;display:flex;align-items:center;gap:9px}
.radio{display:flex;align-items:center;gap:8px;height:38px;background:var(--surface-2);border:1px solid var(--border);border-radius:11px;padding:0 6px}
.radio-play{width:26px;height:26px;border-radius:8px;background:var(--r4);color:#fff;display:grid;place-items:center;box-shadow:0 2px 6px rgba(47,203,110,.4);flex:0 0 auto}
.eq{display:flex;align-items:flex-end;gap:2px;height:16px}
.eq i{width:3px;background:var(--r4);border-radius:2px;animation:eq 1s ease-in-out infinite}
.eq i:nth-child(1){height:7px;animation-delay:0s}
.eq i:nth-child(2){height:13px;animation-delay:.2s}
.eq i:nth-child(3){height:9px;animation-delay:.4s}
.eq i:nth-child(4){height:15px;animation-delay:.1s}
@keyframes eq{0%,100%{transform:scaleY(.4)}50%{transform:scaleY(1)}}
.radio-name{font-family:var(--fontH);font-weight:600;font-size:13px;color:var(--text);white-space:nowrap}
.radio-live{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:800;color:var(--muted)}
.radio-live svg{color:var(--r4)}
.radio-req{font-size:11.5px;font-weight:800;padding:6px 10px;border-radius:8px;background:var(--text);color:var(--surface);white-space:nowrap}
.iconbtn{position:relative;width:38px;height:38px;border-radius:11px;background:var(--surface-2);border:1px solid var(--border);display:grid;place-items:center;color:var(--muted)}
.dotmark{position:absolute;top:8px;right:9px;width:7px;height:7px;border-radius:50%;background:var(--r1);box-shadow:0 0 0 2px var(--surface)}
.userchip{display:flex;align-items:center;gap:8px;padding:4px 10px 4px 4px;border-radius:12px;background:var(--surface-2);border:1px solid var(--border);cursor:pointer;font-family:inherit}
.userchip img{width:30px;height:30px;border-radius:9px;background:var(--surface);object-fit:cover;object-position:center -2px}
.userchip span{display:flex;flex-direction:column;line-height:1.15}
.userchip b{font-size:13px;font-weight:800;color:var(--text)}
.userchip-caret{width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid var(--faint);margin-left:1px}

/* menù utente (dropdown) */
.userwrap{position:relative}
.usermenu{position:absolute;top:calc(100% + 9px);right:0;width:236px;background:var(--surface);border:1px solid var(--border);border-radius:15px;box-shadow:var(--shadow);padding:7px;display:none;flex-direction:column;gap:3px;z-index:50}
.userwrap:hover .usermenu{display:flex}
.userwrap::after{content:"";position:absolute;top:100%;right:0;width:120px;height:12px;display:none}
.userwrap:hover::after{display:block}
.usermenu-head{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:11px;background:var(--surface-2);text-decoration:none;margin-bottom:2px}
.usermenu-head img{width:38px;height:38px;border-radius:10px;background:var(--surface);object-fit:cover;object-position:center -2px}
.usermenu-head b{font-family:var(--fontH);font-weight:600;font-size:14.5px;color:var(--text);display:block}
.usermenu-head small{font-size:11.5px;color:var(--r6);font-weight:700}
.usermenu-group{display:flex;flex-direction:column;gap:1px;padding:4px 0;border-top:1px solid var(--line)}
.usermenu-group:first-of-type{border-top:none}
.usermenu-group a{display:flex;align-items:center;gap:10px;padding:9px 11px;border-radius:10px;font-size:13.5px;font-weight:700;color:var(--muted);text-decoration:none;transition:.13s}
.usermenu-group a:hover{background:var(--surface-2);color:var(--text)}
.usermenu-group a svg{color:var(--faint);flex:0 0 auto}
.usermenu-group a:hover svg{color:var(--r6)}
.usermenu-badge{margin-left:auto;font-size:11px;font-weight:800;color:#fff;background:var(--r1);border-radius:20px;padding:1px 7px}
.usermenu-exit{color:var(--r1)!important}
.usermenu-exit svg{color:var(--r1)!important;transform:rotate(180deg)}

/* azioni ospite — coerenti con gli elementi navbar (radio, iconbtn) */
.guest-actions{display:flex;align-items:center;gap:8px}
.guest-actions .btn{height:38px;padding:0 16px;border-radius:11px;font-family:var(--fontH);font-weight:600;font-size:14px;box-shadow:none;transition:.14s}
.guest-actions .btn:hover{transform:none}
.guest-actions .btn-ghost{background:var(--surface-2);border:1px solid var(--border);color:var(--text)}
.guest-actions .btn-ghost:hover{background:var(--surface);border-color:var(--muted)}
.guest-actions .btn-primary{background:var(--sp,var(--r4));color:#fff;border:none}
.guest-actions .btn-primary:hover{filter:brightness(1.05)}
.btn-sm{padding:9px 16px;font-size:14px;border-radius:11px}
.hh-burger{display:none;flex-direction:column;gap:4px;width:42px;height:42px;border-radius:11px;background:var(--surface-2);border:1px solid var(--border);align-items:center;justify-content:center;margin-left:auto}
.hh-burger span{width:18px;height:2px;border-radius:2px;background:var(--text)}

/* ============================================================
   TICKER · BARRA DEDICHE
   ============================================================ */
.ticker{max-width:1196px;margin:10px auto 0;padding:7px 8px 7px 7px;display:flex;align-items:center;gap:12px;overflow:hidden;background:var(--surface);border:1px solid var(--border);border-radius:15px;box-shadow:var(--shadow-sm)}
/* CTA Dediche (apre la modale) */
.hih .ded-cta{flex:0 0 auto;display:flex;align-items:center;gap:10px;border:none;cursor:pointer;font-family:var(--fontB);padding:9px 14px 9px 11px;border-radius:12px;color:#fff;background:var(--sp,var(--accent,var(--r4)));box-shadow:0 4px 0 color-mix(in srgb,var(--sp,var(--r4)),#000 28%),0 8px 18px color-mix(in srgb,var(--sp,var(--r4)) 34%,transparent);transition:.14s}
.ded-cta:hover{transform:translateY(-1px);box-shadow:0 5px 0 color-mix(in srgb,var(--sp,var(--r4)),#000 28%),0 11px 22px color-mix(in srgb,var(--sp,var(--r4)) 40%,transparent)}
.ded-cta:active{transform:translateY(2px);box-shadow:0 2px 0 color-mix(in srgb,var(--sp,var(--r4)),#000 28%),0 4px 10px color-mix(in srgb,var(--sp,var(--r4)) 30%,transparent)}
.ded-cta-ic{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:rgba(255,255,255,.22)}
.ded-cta-text{display:flex;flex-direction:column;line-height:1.05;text-align:left}
.ded-cta-text b{font-family:var(--fontH);font-weight:600;font-size:14px}
.ded-cta-text small{font-size:10px;font-weight:700;opacity:.85;letter-spacing:.02em}
.ded-cta-plus{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:rgba(255,255,255,.95);color:var(--sp,var(--r4));font-size:14px;font-weight:800;line-height:1}
/* dediche scorrevoli */
.ticker-track{flex:1;min-width:0;overflow:hidden;display:flex;gap:14px;white-space:nowrap;mask:linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent)}
.ticker-track-inner{display:flex;gap:14px;white-space:nowrap;animation:marquee 42s linear infinite}
.ticker:hover .ticker-track-inner{animation-play-state:paused}
.ded-item{display:inline-flex;align-items:center;gap:9px;padding:5px 13px 5px 6px;background:var(--surface-2);border:1px solid var(--line);border-radius:999px}
.ded-item>img{width:24px;height:24px;border-radius:50%;background:var(--surface);object-fit:cover;object-position:center -1px;flex:0 0 auto}
.ded-item-txt{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);font-weight:600}
.ded-item-txt>b{color:var(--text);font-weight:800}
.ded-item-user{text-decoration:none;color:var(--text);font-weight:800;border-radius:5px;transition:color .12s}
.ded-item-user>b{color:inherit}
.ded-item-user:hover{color:var(--sp,var(--r6));text-decoration:underline}
.ded-item-arrow{color:var(--faint);font-weight:800}
.ded-item-to{color:var(--r6);font-weight:800}
.ded-item-msg{color:var(--muted)}
.ded-item-msg::before{content:"·";margin-right:6px;color:var(--faint)}
.ded-item{position:relative}
.ded-report{display:inline-grid;place-items:center;width:0;height:22px;border-radius:6px;border:none;background:transparent;color:var(--faint);font-size:12px;cursor:pointer;opacity:0;overflow:hidden;transition:opacity .14s,width .14s,background .14s;flex:0 0 auto}
.ded-item:hover .ded-report{opacity:1;width:22px;margin-left:2px}
.ded-report:hover{color:var(--r1);background:color-mix(in srgb,var(--r1) 14%,transparent)}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
/* modale (riusabile) */
.modal-overlay{position:fixed;inset:0;z-index:300;background:rgba(20,18,30,.5);backdrop-filter:blur(3px);display:grid;place-items:center;padding:20px;animation:drawerFade .18s ease}
.modal-overlay.modal-overlay-top{z-index:9999}
.modal-panel{width:100%;max-width:440px;max-height:88vh;overflow-y:auto;background:var(--surface);border:1px solid var(--border);border-radius:18px;box-shadow:0 24px 60px rgba(0,0,0,.35)}
.modal-h{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--surface)}
.modal-h h3{font-family:var(--fontH);font-weight:600;font-size:17px;margin:0;color:var(--text)}
.modal-x{width:32px;height:32px;border-radius:9px;border:none;background:var(--surface-2);color:var(--muted);cursor:pointer;font-size:14px;font-weight:800}
.modal-x:hover{color:var(--text)}
.modal-b{padding:18px}
/* contenuto dediche */
.ded-state{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:8px 4px}
.ded-ic{font-size:34px}
.ded-ic-ok{width:60px;height:60px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--r4) 16%,var(--surface));color:var(--r4)}
.ded-state b{font-family:var(--fontH);font-weight:600;font-size:18px;color:var(--text)}
.ded-state p{margin:0;font-size:13.5px;font-weight:600;color:var(--muted);line-height:1.55;max-width:34ch}
.ded-actions{display:flex;gap:10px;margin-top:8px}
.ded-form{display:flex;flex-direction:column;gap:14px}
.ded-field{display:flex;flex-direction:column;gap:6px}
.ded-label{font-size:12.5px;font-weight:800;color:var(--text)}
.ded-input,.ded-textarea{width:100%;font-family:var(--fontB);font-weight:600;font-size:14px;color:var(--text);background:var(--surface-2);border:1px solid var(--border);border-radius:12px;padding:12px 14px;outline:none;transition:.14s}
.ded-input:focus,.ded-textarea:focus{border-color:var(--r6);background:var(--surface)}
.ded-textarea{min-height:96px;resize:vertical}
.ded-note{display:flex;align-items:flex-start;gap:8px;font-size:12.5px;font-weight:700;color:var(--muted);background:var(--surface-2);border:1px solid var(--line);border-radius:11px;padding:11px 13px;line-height:1.45}
.ded-note svg{flex:0 0 auto;color:var(--r2);margin-top:1px}
.ded-submit{justify-content:center;width:100%;margin-top:4px}
/* modale radio: "in onda ora" */
.radio-now{display:flex;align-items:center;gap:12px;background:var(--surface-2);border:1px solid var(--line);border-radius:13px;padding:11px 14px}
.radio-now-ic{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:var(--r6);flex:0 0 auto}
.radio-now-txt{display:flex;flex-direction:column;line-height:1.25}
.radio-now-txt small{font-size:10.5px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;color:var(--r6)}
.radio-now-txt b{font-family:var(--fontH);font-weight:600;font-size:15px;color:var(--text)}
.eq-lg{height:18px}
.eq-lg i{width:3px}
.live-dot{width:7px;height:7px;border-radius:50%;background:var(--r1);box-shadow:0 0 0 0 rgba(255,61,110,.6);animation:pulse 1.6s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(255,61,110,.5)}70%{box-shadow:0 0 0 7px rgba(255,61,110,0)}100%{box-shadow:0 0 0 0 rgba(255,61,110,0)}}
/* tooltip riusabile (codice oggetto su distintivi/furni) */
.tip{position:relative}
.tip::after,.tip::before{position:absolute;left:50%;bottom:calc(100% + 8px);opacity:0;pointer-events:none;transition:opacity .12s,transform .12s;transform:translate(-50%,4px);z-index:50}
.tip::after{content:attr(data-tip);white-space:nowrap;font-family:var(--fontB);font-weight:700;font-size:11.5px;letter-spacing:.01em;color:#fff;background:#211c30;padding:5px 9px;border-radius:8px;box-shadow:0 6px 18px rgba(0,0,0,.3)}
.tip::before{content:"";bottom:calc(100% + 3px);width:0;height:0;border:5px solid transparent;border-top-color:#211c30}
.tip:hover::after,.tip:hover::before{opacity:1;transform:translate(-50%,0)}
.tip-code::after{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:11px}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap{max-width:1240px;margin:0 auto;padding:6px 22px 40px}

/* HERO */
.hero{display:grid;grid-template-columns:minmax(0,1.32fr) minmax(0,1fr);gap:18px;margin:14px 0 24px;align-items:stretch}
.hero-main{position:relative;min-height:0;display:flex;align-items:flex-start;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.hero-art-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.hero-main::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgba(0,0,0,.62) 0%,rgba(0,0,0,.42) 45%,rgba(0,0,0,.22) 100%)}
.hero-copy{position:relative;z-index:2;align-self:flex-start;padding:15px 18px 16px;max-width:60%;height:100%;display:flex;flex-direction:column;align-items:flex-start;gap:9px;overflow:hidden}
.hero-dots{display:inline-flex;gap:6px;align-items:center;margin-bottom:-4px;padding:6px 9px;border-radius:20px;background:rgba(0,0,0,.42)}
.hero-dots .hero-dot{width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.3);border:none;cursor:pointer;padding:0;transition:.16s}
.hero-dots .hero-dot:hover{background:rgba(255,255,255,.6)}
.hero-dots .hero-dot.on{background:#fff;width:22px;border-radius:6px}
.pill{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:#fff;background:var(--accent);padding:5px 11px;border-radius:20px}
.hero-copy .pill{font-size:10.5px;background:rgba(255,255,255,.22);padding:4px 10px}
.hero-copy h2{font-size:23px;line-height:1.1;font-weight:700;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.45);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hero-copy p{margin:0;color:rgba(255,255,255,.95);font-size:13.5px;font-weight:600;max-width:46ch;text-shadow:0 1px 5px rgba(0,0,0,.5);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hero-copy .btn-primary{background:var(--sp,var(--accent));color:#fff;padding:9px 16px;font-size:14px;box-shadow:0 4px 0 color-mix(in srgb,var(--sp,var(--accent)),#000 30%),0 0 0 1.5px rgba(255,255,255,.5),0 8px 18px rgba(0,0,0,.28)}
.hero-copy .btn-primary:hover{transform:translateY(-2px);box-shadow:0 6px 0 color-mix(in srgb,var(--sp,var(--accent)),#000 30%),0 0 0 1.5px rgba(255,255,255,.6),0 12px 22px rgba(0,0,0,.3)}
.hero-copy .btn-primary:active{transform:translateY(2px);box-shadow:0 1px 0 color-mix(in srgb,var(--sp,var(--accent)),#000 30%),0 0 0 1.5px rgba(255,255,255,.5),0 4px 10px rgba(0,0,0,.25)}
.btn{display:inline-flex;align-items:center;gap:8px;font-family:var(--fontH);font-weight:600;font-size:15px;padding:12px 20px;border-radius:14px;cursor:pointer;border:none;transition:transform .12s,box-shadow .12s,background .14s}
.btn svg{transition:transform .14s}
.btn:hover svg{transform:translateX(2px)}
.btn-primary{background:var(--accent);color:#fff;box-shadow:0 4px 0 color-mix(in srgb,var(--accent),#000 30%),0 10px 22px color-mix(in srgb,var(--accent) 38%,transparent)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 6px 0 color-mix(in srgb,var(--accent),#000 30%),0 14px 26px color-mix(in srgb,var(--accent) 45%,transparent)}
.btn-primary:active{transform:translateY(2px);box-shadow:0 1px 0 color-mix(in srgb,var(--accent),#000 30%),0 4px 10px color-mix(in srgb,var(--accent) 30%,transparent)}
.btn-ghost{background:var(--surface);color:var(--text);border:1.5px solid color-mix(in srgb,var(--text) 16%,transparent);box-shadow:0 3px 0 color-mix(in srgb,var(--text) 9%,transparent),0 6px 14px rgba(0,0,0,.05)}
.btn-ghost:hover{transform:translateY(-2px);box-shadow:0 5px 0 color-mix(in srgb,var(--text) 9%,transparent),0 10px 18px rgba(0,0,0,.06)}

.hero-side{display:flex;flex-direction:column}
.hero-side-h{font-family:var(--fontH);font-weight:600;font-size:14px;color:var(--muted);margin:2px 2px 11px}
.corner-grid2{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:1fr;gap:10px;flex:1}
.corner-tile{position:relative;display:block;border-radius:var(--radius-sm);overflow:hidden;border:1px solid var(--border);box-shadow:var(--shadow-sm);transition:.16s;min-height:96px;background:var(--surface)}
.corner-tile:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.corner-tile > img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.corner-tile-lbl{position:absolute;left:0;right:0;bottom:0;z-index:1;padding:18px 11px 9px;color:#fff;font-family:var(--fontH);font-weight:600;font-size:12.5px;line-height:1.18;background:linear-gradient(0deg,rgba(0,0,0,.74),transparent)}
.corner-tile-video{background:#000}
.corner-tile-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* GRID 3 COL */
.grid3{display:grid;grid-template-columns:300px minmax(0,1fr) 300px;gap:20px;align-items:start}
.col{display:flex;flex-direction:column;gap:20px;min-width:0}
/* fascia "community in vetrina" full-width sotto la griglia */
.home-showcase{margin:22px 0 4px}
.home-showcase-h{display:flex;align-items:center;gap:9px;font-family:var(--fontH);font-weight:600;font-size:18px;color:var(--text);margin:0 0 14px}
.home-showcase-dot{width:10px;height:10px;border-radius:3px;transform:rotate(45deg);background:var(--sp,var(--r5))}
.home-showcase-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;align-items:start}

/* CARD */
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.card-h{display:flex;align-items:center;gap:9px;padding:15px 16px 12px}
.card-dot{width:9px;height:9px;border-radius:3px;flex:0 0 auto;transform:rotate(45deg)}
.card-h h3{font-size:15.5px;font-weight:600;flex:1}
.card-more{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;color:var(--faint);background:var(--surface-2)}
.card-more:hover{color:var(--text)}
.card-b{padding:0 16px 16px}
.card-b--flush{padding:0}

/* placeholder slot */
.slot{position:relative;border-radius:10px;overflow:hidden;background:
  repeating-linear-gradient(135deg,color-mix(in srgb,var(--text) 6%,var(--surface)) 0 7px,color-mix(in srgb,var(--text) 3%,var(--surface)) 7px 14px);
  border:1px solid var(--line);display:grid;place-items:center}
.slot-tag{font-family:var(--fontB);font-size:10px;font-weight:800;letter-spacing:.03em;color:var(--muted);background:var(--surface);padding:3px 7px;border-radius:6px}

/* badges */
/* REGOLA GLOBALE: i distintivi (album1584) non vanno MAI ridimensionati — dimensione nativa, max 40×40 */
.hih img[src*="/album1584/"]{width:auto !important;height:auto !important;max-width:40px;max-height:40px;image-rendering:auto;object-fit:none}
.badge-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.badge-grid .badge-cell{aspect-ratio:1;display:grid;place-items:center;background:var(--surface-2);border:1px solid var(--line);border-radius:11px;transition:.14s;cursor:pointer;padding:0;font:inherit;color:inherit}
.badge-grid .badge-cell:hover{transform:translateY(-2px);box-shadow:var(--shadow-sm);border-color:color-mix(in srgb,var(--text) 14%,transparent)}
.badge-cell img{width:auto;height:auto;max-width:40px;max-height:40px;image-rendering:auto}

.furni-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.social-row{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
.social{aspect-ratio:1;display:grid;place-items:center;border-radius:13px;background:var(--brand);color:#fff;box-shadow:0 3px 0 color-mix(in srgb,var(--brand),#000 32%),0 5px 12px color-mix(in srgb,var(--brand) 32%,transparent);transition:transform .14s,box-shadow .14s}
.social:hover{transform:translateY(-2px);box-shadow:0 5px 0 color-mix(in srgb,var(--brand),#000 32%),0 9px 16px color-mix(in srgb,var(--brand) 42%,transparent)}
.social svg{display:block}

/* feed */
.news-card .card-b{padding:0 8px 14px}
.feed{list-style:none;margin:0;padding:0}
.feed-item{display:flex;gap:13px;padding:13px 10px;border-radius:14px;transition:.14s;position:relative;align-items:flex-start}
.feed-thumb.has-img{width:auto;min-width:64px;max-width:124px;height:74px;border-radius:11px;background:var(--surface-2);border:1px solid var(--border);overflow:hidden;padding:0;display:grid;place-items:center}
.feed-thumb-img{width:auto!important;height:100%!important;max-width:124px;object-fit:contain;image-rendering:auto!important;display:block}
.feed-item:hover{background:var(--surface-2)}
.feed-item+.feed-item{border-top:1px solid var(--line)}
.feed-thumb{flex:0 0 auto;width:52px;height:52px;border-radius:13px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 14%,var(--surface));border:1px solid color-mix(in srgb,var(--accent) 20%,transparent)}
.feed-thumb img{width:34px;height:34px;image-rendering:pixelated}
.feed-body{min-width:0;flex:1}
.feed-kicker{font-size:9.5px;font-weight:800;letter-spacing:.06em;color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,var(--surface));padding:2px 7px;border-radius:6px;text-transform:uppercase}
.feed-body h4{font-size:15.5px;font-weight:600;margin:6px 0 6px;line-height:1.2}
.feed-meta{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:12px;color:var(--faint);font-weight:700}
.feed-author{display:inline-flex;align-items:center;gap:6px;color:var(--muted)}
.feed-author img{width:20px;height:20px;border-radius:6px;background:var(--surface-2)}
.feed-stats{color:var(--faint)}
.pager{display:flex;align-items:center;gap:6px;justify-content:center;padding:14px 0 4px;flex-wrap:wrap}
.pg{min-width:34px;height:34px;padding:0 10px;border-radius:10px;background:var(--surface);border:1px solid var(--border);font-family:var(--fontH);font-weight:600;font-size:13.5px;color:var(--muted);cursor:pointer;transition:.14s;display:inline-flex;align-items:center;justify-content:center}
.pg:hover:not(:disabled):not(.is-on){background:var(--surface-2);border-color:var(--muted);color:var(--text);transform:translateY(-1px)}
.pg:disabled{opacity:.4;cursor:not-allowed}
.pg.is-on{background:var(--sp,var(--r6));color:#fff;border-color:transparent;box-shadow:0 3px 0 color-mix(in srgb,var(--sp,var(--r6)),#000 28%)}
/* filtro a scomparsa "Ultime notizie" */
.card-filter{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;color:var(--faint);background:var(--surface-2);transition:.14s}
.card-filter:hover{color:var(--text)}
.card-filter.is-on{background:var(--r6);color:#fff}
.news-filter{display:block;max-height:0;overflow:hidden;opacity:0;transition:max-height .24s ease,opacity .18s ease,margin .24s ease;margin:0 8px}
.news-filter.is-open{max-height:160px;opacity:1;margin:2px 8px 12px}
.news-filter-in{display:flex;align-items:stretch;gap:8px}
.news-filter-search{flex:1;min-width:0;display:flex;align-items:center;gap:8px;background:var(--surface-2);border:1px solid var(--border);border-radius:11px;padding:0 12px;height:42px}
.news-filter-search svg{color:var(--faint);flex:0 0 auto}
.news-filter-search input{flex:1;min-width:0;border:none;background:none;outline:none;font-family:var(--fontB);font-weight:600;font-size:13.5px;color:var(--text)}
.news-filter-clear{width:20px;height:20px;border-radius:6px;background:var(--border);color:var(--muted);font-size:11px;font-weight:800;flex:0 0 auto}
.news-search-go{flex:0 0 auto;height:42px;padding:0 16px}
.news-filter-btn{display:inline-flex;align-items:center;gap:5px;height:36px;padding:0 13px;border-radius:10px;font-family:var(--fontH);font-weight:600;font-size:13px;transition:.14s;white-space:nowrap}
.news-filter-go{background:var(--sp,var(--r6));color:#fff;box-shadow:0 3px 0 color-mix(in srgb,var(--sp,var(--r6)),#000 28%)}
.news-filter-go:hover{transform:translateY(-1px);box-shadow:0 4px 0 color-mix(in srgb,var(--sp,var(--r6)),#000 28%)}
.news-filter-go:active{transform:translateY(1px);box-shadow:0 1px 0 color-mix(in srgb,var(--sp,var(--r6)),#000 28%)}
.news-filter-reset{background:var(--surface);border:1px solid var(--border);color:var(--muted)}
.news-filter-reset:hover:not(:disabled){color:var(--text);border-color:var(--muted)}
.news-filter-reset:disabled{opacity:.45;cursor:not-allowed}
.news-filter-status{margin-top:9px;font-size:12.5px;font-weight:700;color:var(--muted)}
.news-filter-status b{color:var(--text)}
.news-empty{display:flex;flex-direction:column;align-items:center;gap:9px;padding:34px 16px;color:var(--faint);text-align:center}
.news-empty p{margin:0;font-size:13px;font-weight:700}
/* furni placeholder cliccabile (link all'archivio) */
.furni-grid .furni-slot{aspect-ratio:1;display:grid;place-items:center;text-decoration:none;cursor:pointer;padding:0;font:inherit;color:inherit;background:var(--surface-2);border:1px solid var(--line);overflow:visible;border-radius:11px;transition:.14s}
.furni-grid .furni-slot:hover{transform:translateY(-2px);box-shadow:var(--shadow-sm);border-color:color-mix(in srgb,var(--text) 14%,transparent)}
.furni-fig{display:grid;place-items:center;width:100%;height:100%}
.furni-img{max-width:78%;max-height:78%;width:auto;height:auto;object-fit:contain;image-rendering:auto;filter:drop-shadow(0 3px 4px rgba(28,20,55,.18))}
/* card che lascia uscire i tooltip (widget archivio) */
.card.ovis-card{overflow:visible}
.card.ovis-card .card-b{overflow:visible}
.pg-arrow{color:var(--faint)}
.pg-dots{color:var(--faint);padding:0 6px;font-weight:800;letter-spacing:1px}
.pg-dots:hover{color:var(--text);background:var(--surface-2);border-color:var(--muted)}
/* mini-input "vai a pagina" che sostituisce i … al click */
.pg-jump{display:inline-flex;align-items:center;gap:4px;animation:pgJumpIn .14s ease}
@keyframes pgJumpIn{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:none}}
.pg-jump-input{width:58px;height:34px;border-radius:10px;border:1.5px solid var(--sp,var(--r6));background:var(--surface);font-family:var(--fontH);font-weight:600;font-size:13px;color:var(--text);text-align:center;outline:none;-moz-appearance:textfield}
.pg-jump-input::-webkit-outer-spin-button,.pg-jump-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.pg-jump-input::placeholder{color:var(--faint);font-size:11px;font-weight:700}
.pg-jump-go{width:34px;height:34px;border-radius:10px;border:none;background:var(--sp,var(--r6));color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 3px 0 color-mix(in srgb,var(--sp,var(--r6)),#000 28%);transition:.12s}
.pg-jump-go:hover{transform:translateY(-1px)}
.pg-jump-go:active{transform:translateY(1px);box-shadow:0 1px 0 color-mix(in srgb,var(--sp,var(--r6)),#000 28%)}

/* available badges */
.avail-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px}
.avail{display:grid;grid-template-rows:46px auto;justify-items:center;align-content:start;gap:5px;padding:10px 6px;border-radius:13px;background:var(--surface-2);border:1px solid var(--line);text-align:center;text-decoration:none;transition:.14s}
a.avail:hover{border-color:color-mix(in srgb,var(--r3) 50%,transparent);background:var(--surface);transform:translateY(-2px);box-shadow:var(--shadow-sm)}
.avail img{align-self:center}
.avail small{font-size:10px;font-weight:800;color:var(--muted);line-height:1.2}
.avail-all{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:10px;padding:9px;border-radius:11px;background:var(--surface-2);border:1px solid var(--line);font-family:var(--fontH);font-weight:600;font-size:13px;color:var(--muted);text-decoration:none;transition:.14s}
.avail-all:hover{color:var(--text);border-color:var(--muted)}

/* competizioni */
.comp-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.comp{display:flex;gap:11px;align-items:stretch;padding:11px 12px;border-radius:13px;background:var(--surface-2);border:1px solid var(--line)}
.comp-bar{width:4px;border-radius:3px;background:var(--accent);flex:0 0 auto}
.comp b{display:block;font-family:var(--fontH);font-weight:600;font-size:13.5px;line-height:1.25;margin-bottom:4px}
.comp small{display:block;font-size:11.5px;color:var(--faint);font-weight:700;line-height:1.3}
.comp-author{color:var(--accent);font-weight:800;text-decoration:none}
.comp-author:hover{text-decoration:underline}

.rooms-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.pixel-grid{display:flex;flex-direction:column;gap:9px}

/* PARTNER STRIP — compatto: il nostro banner + link alla pagina partner */
.partnerstrip{margin-top:24px;display:flex;align-items:center;gap:20px;flex-wrap:wrap;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px 20px}
.ps-banner-img{flex:0 0 auto;height:46px;width:auto;border-radius:8px;display:block}
.ps-copy{flex:1 1 220px;min-width:0}
.ps-copy h4{font-size:15.5px;font-weight:600;margin:0 0 2px}
.ps-copy p{margin:0;font-size:13px;color:var(--muted);font-weight:600}
.ps-btn{flex:0 0 auto;font-size:14px;padding:10px 16px}

/* FOOTER */
.ft{margin-top:34px;border-top:1px solid var(--border);background:var(--surface-2)}
.ft-inner{max-width:1240px;margin:0 auto;padding:30px 22px 24px}
.ft-top{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.ft-brandbig{display:flex;align-items:center;gap:15px;text-decoration:none}
.ft-hex{height:62px;width:62px;display:block;filter:drop-shadow(0 3px 6px rgba(0,0,0,.2))}
.ft-brandtext{display:flex;flex-direction:column;gap:3px}
.ft-brandtext b{font-family:var(--fontH);font-weight:700;font-size:27px;letter-spacing:-.02em;color:var(--text);line-height:1}
.ft-brandtext small{font-size:12.5px;color:var(--muted);font-weight:600}
.ft-official{display:block;transition:transform .14s}
.ft-official:hover{transform:translateY(-2px)}
.ft-official img{height:64px;width:auto;display:block}
.ft-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-top:22px;padding-top:18px;border-top:1px solid var(--border)}
.ft-support{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.ft-support-h{font-family:var(--fontH);font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.07em;color:var(--faint)}
.ft-support a{font-size:13.5px;font-weight:700;color:var(--muted);transition:.14s}
.ft-support a:hover{color:var(--r6)}
.ft-social{display:flex;gap:9px;flex-wrap:wrap}
.ft-social .ft-soc{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:var(--brand);color:#fff;box-shadow:0 2px 0 color-mix(in srgb,var(--brand),#000 32%),0 4px 10px color-mix(in srgb,var(--brand) 30%,transparent);transition:transform .14s}
.ft-social .ft-soc:hover{transform:translateY(-2px)}
.ft-social .ft-soc svg{width:18px;height:18px;display:block}
.ft-disc{font-size:11.5px;color:var(--faint);font-weight:600;line-height:1.55;margin:18px 0 0;max-width:96ch}

/* fansite badge su footer chiaro: niente */
.hih[data-theme="dark"] .ft{background:#120F1E}

/* ============================================================
   TEMA DARK  ·  neon arcade
   ============================================================ */
.hih[data-theme="dark"]{
  --bg:#0E0C18; --bg-pat:rgba(124,92,252,.10);
  --surface:#181527; --surface-2:#211D33;
  --border:rgba(255,255,255,.09); --line:rgba(255,255,255,.07);
  --text:#F3F1FB; --muted:#ABA4C9; --faint:#7c7596;
  --header-bg:rgba(18,15,30,.82);
  --shadow:0 2px 8px rgba(0,0,0,.4),0 16px 40px rgba(0,0,0,.45);
  --shadow-sm:0 4px 14px rgba(0,0,0,.4);
}
.hih[data-theme="dark"] .hex-core{background:#181527;color:#fff}
.hih[data-theme="dark"] .radio-req{background:#fff;color:#181527}
.hih[data-theme="dark"] .btn-primary{box-shadow:0 4px 0 color-mix(in srgb,var(--accent),#000 34%),0 0 0 1px color-mix(in srgb,var(--accent) 40%,transparent),0 10px 26px color-mix(in srgb,var(--accent) 50%,transparent)}
.hih[data-theme="dark"] .card,.hih[data-theme="dark"] .partnerstrip,.hih[data-theme="dark"] .hero-main,.hih[data-theme="dark"] .corner-tile{
  background:linear-gradient(180deg,rgba(255,255,255,.035),transparent),var(--surface)}
.hih[data-theme="dark"] .feed-thumb,.hih[data-theme="dark"] .badge-cell,.hih[data-theme="dark"] .avail,.hih[data-theme="dark"] .comp{box-shadow:inset 0 0 0 1px rgba(255,255,255,.02)}
.hih[data-theme="dark"] .pg.is-on{box-shadow:0 0 16px color-mix(in srgb,var(--r6) 60%,transparent)}
.hih[data-theme="dark"] .hh-link.is-active{background:rgba(255,255,255,.06)}
.hih[data-theme="dark"] .badge-cell img,.hih[data-theme="dark"] .feed-thumb img,.hih[data-theme="dark"] .avail img{filter:drop-shadow(0 0 1px rgba(255,255,255,.25))}

/* ============================================================
   TEMA EDITORIAL  ·  bianco, tipografico, arioso
   ============================================================ */
.hih[data-theme="editorial"]{
  --bg:#FFFFFF; --bg-pat:transparent;
  --surface:#FFFFFF; --surface-2:#F7F7FA;
  --border:#EAE8F0; --line:#F0EEF5;
  --text:#14121C; --muted:#6B6779; --faint:#A6A2B4;
  --header-bg:rgba(255,255,255,.9);
  --radius:14px; --radius-sm:11px;
  --shadow:none; --shadow-sm:none;
}
.hih[data-theme="editorial"]{background-image:none}
.hih[data-theme="editorial"] .card,.hih[data-theme="editorial"] .partnerstrip,.hih[data-theme="editorial"] .hero-main,.hih[data-theme="editorial"] .corner-tile{box-shadow:none}
.hih[data-theme="editorial"] .corner-tile:hover,.hih[data-theme="editorial"] .feed-item:hover{box-shadow:none}
.hih[data-theme="editorial"] .wrap{max-width:1180px}
.hih[data-theme="editorial"] .card-h{padding:17px 18px 13px}
.hih[data-theme="editorial"] .card-h h3{font-size:14px;text-transform:uppercase;letter-spacing:.06em;font-weight:600;color:var(--text)}
.hih[data-theme="editorial"] .card-dot{border-radius:50%;transform:none;width:8px;height:8px}
.hih[data-theme="editorial"] .hero-copy h2{font-size:34px;letter-spacing:-.03em}
.hih[data-theme="editorial"] .hero{gap:24px}
.hih[data-theme="editorial"] .grid3{gap:26px}
.hih[data-theme="editorial"] .col{gap:26px}
.hih[data-theme="editorial"] .feed-body h4{font-weight:600}
.hih[data-theme="editorial"] .hh-link.is-active{background:transparent;box-shadow:inset 0 -2px 0 var(--r6);border-radius:0}
.hih[data-theme="editorial"] .pill{background:transparent;color:var(--accent);border:1.5px solid currentColor;padding:4px 10px}
.hih[data-theme="editorial"] .partner{border-style:solid}

/* ============================================================
   SOTTOMENÙ NAV (dropdown)
   ============================================================ */
.hh-item{position:relative;display:flex}
.hh-caret{width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid currentColor;opacity:.5;margin-left:2px;align-self:center}
.hh-menu{position:absolute;top:100%;left:0;min-width:212px;margin-top:8px;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);padding:7px;display:none;flex-direction:column;gap:1px;z-index:40}
.hh-item::after{content:"";position:absolute;left:0;top:100%;width:100%;height:12px;display:none}
.hh-item:hover::after{display:block}
.hh-item:hover .hh-menu,.hh-item.is-open .hh-menu{display:flex}
.hh-item:hover>.hh-link,.hh-item.is-open>.hh-link{background:var(--surface-2);color:var(--text)}
.hih[data-tone="dark"] .hh-item:hover>.hh-link,.hih[data-tone="dark"] .hh-item.is-open>.hh-link{background:rgba(255,255,255,.18);color:#fff}
.hih[data-tone="dark"] .hh-search{background:rgba(255,255,255,.15);border-color:rgba(255,255,255,.28);color:rgba(255,255,255,.85)}
.hih[data-tone="light"] .hh-search{background:rgba(255,255,255,.7);border-color:rgba(255,255,255,.8)}
.hih[data-tone="light"] .hh-item:hover>.hh-link,.hih[data-tone="light"] .hh-item.is-open>.hh-link{background:rgba(0,0,0,.06);color:var(--text)}
.hh-menu-link{padding:9px 12px;border-radius:9px;font-size:13.5px;font-weight:700;color:var(--muted)}
.hh-menu-link:hover{background:var(--surface-2);color:var(--text)}
.hh-menu::before{content:"";position:absolute;top:-6px;left:20px;width:11px;height:11px;background:var(--surface);border-left:1px solid var(--border);border-top:1px solid var(--border);transform:rotate(45deg)}

/* ============================================================
   SISTEMA TEMI STAGIONALI  ·  skin sopra la stessa struttura
   ============================================================ */
.hex-orn{position:absolute;top:-5px;right:-6px;width:17px;height:17px;border-radius:50%;border:2.5px solid var(--surface);background:var(--sp,#888);box-shadow:0 1px 3px rgba(0,0,0,.25);z-index:2}
.orn-snow{background:#fff}
.orn-snow::after{content:"";position:absolute;inset:3px;border-radius:50%;background:radial-gradient(circle,#cfe8ff 30%,transparent 32%),#fff}
.orn-egg{background:linear-gradient(180deg,#ffd1e8,#9fe0ff);border-radius:50% 50% 48% 48%/60% 60% 40% 40%}
.orn-sun{background:#FFC400;box-shadow:0 0 0 2px var(--surface),0 0 8px rgba(255,196,0,.7)}
.orn-bat{background:#1a1320}
.orn-leaf{background:#2FCB6E}
.orn-heart{background:#E5557C}
.orn-rainbow{background:conic-gradient(#ff3d6e,#ff8a2b,#ffc400,#2fcb6e,#16c7d6,#7c5cfc,#ff3d6e)}

/* barra "tema attivo" — è UI dimostrativa del sistema, non parte della pagina reale */
.seasonbar{position:relative;z-index:5;display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12.5px;font-weight:700;color:#fff;padding:9px 22px;background:rgba(0,0,0,.28);backdrop-filter:blur(4px)}
.seasonbar b{font-weight:800}
.seasonbar-dot{width:9px;height:9px;border-radius:50%;background:var(--sp,#fff);box-shadow:0 0 0 3px rgba(255,255,255,.25)}
.seasonbar-when{opacity:.8;font-weight:700}
.seasonbar-note{margin-left:auto;font-size:11px;font-weight:700;opacity:.7;letter-spacing:.02em}
.hih[data-tone="light"] .seasonbar{color:#1C1830;background:rgba(255,255,255,.5)}

/* LA PELLE: sfondo reale (pattern tileable da static.habboinhabbo.it) + canvas colorato */
.hih[data-tone="dark"],.hih[data-tone="light"]{background-color:var(--sc);background-image:var(--season-bg);background-repeat:repeat;background-position:top center}
/* velo per tenere leggibili i contenuti sopra il pattern */
.hih[data-tone="dark"]::before,.hih[data-tone="light"]::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:radial-gradient(130% 80% at 50% -6%,color-mix(in srgb,#fff 22%,transparent),transparent 55%)}
.hih[data-tone="light"]::before{background:radial-gradient(130% 80% at 50% -6%,color-mix(in srgb,#fff 45%,transparent),transparent 60%)}
.hih[data-tone] .ticker,.hih[data-tone] .wrap,.hih[data-tone] .ft,.hih[data-tone] .seasonbar{position:relative;z-index:2}

/* navbar sticky: barra OPACA col colore tema, il testo resta leggibile scrollando */
.hih[data-tone="dark"] .hh-bar{background:color-mix(in srgb,var(--sc),#000 6%);border-top-color:rgba(255,255,255,.14);border-bottom-color:rgba(0,0,0,.12)}
.hih[data-tone="light"] .hh-bar{background:rgba(255,255,255,.97);border-top-color:rgba(0,0,0,.05);border-bottom-color:rgba(0,0,0,.06)}
.hih[data-tone="light"] .hh-link{color:#34304a}
.hih[data-tone="light"] .hh-nav .hh-link span{color:#34304a}
.hih[data-tone="dark"] .hh-word{color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.3)}
.hih[data-tone="dark"] .hh-link{color:rgba(255,255,255,.82)}
.hih[data-tone="dark"] .hh-link:hover{background:rgba(255,255,255,.16);color:#fff}
.hih[data-tone="dark"] .hh-link.is-active{background:rgba(255,255,255,.2);color:#fff}
.hih[data-tone="dark"] .hh-link.is-active svg{color:#fff}
.hih[data-tone="dark"] .wm em{color:rgba(255,255,255,.8)}
.hih[data-tone="dark"] .wm b{color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.3)}
.hih[data-tone="dark"] .hex-core{background:var(--sc)}
.hih[data-tone="dark"] .radio,.hih[data-tone="dark"] .iconbtn,.hih[data-tone="dark"] .userchip{background:rgba(255,255,255,.92);border-color:rgba(255,255,255,.5);color:#1C1830}
.hih[data-tone="dark"] .userchip b{color:#1C1830}
.hih[data-tone="dark"] .userchip-caret{border-top-color:#6E6886}
.hih[data-tone="dark"] .ticker-label{color:#fff;background:rgba(255,255,255,.16)}
.hih[data-tone="dark"] .ticker-label svg{color:#fff}
.hih[data-tone="dark"] .live-dot{background:#fff}
.hih[data-tone="dark"] .ticker-item{color:rgba(255,255,255,.88)}
.hih[data-tone="dark"] .ticker-item b{color:#fff}
.hih[data-tone="dark"] .hero-side-h{color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.3)}
.hih[data-tone="light"] .hero-side-h{color:#15304a}
.hih[data-tone="light"] .hex-core{background:var(--sc)}

.hih[data-tone="dark"] .hh-ico{background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.18)}
.hih[data-tone="light"] .hh-ico{background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.12)}

/* accento stagionale: bottoni, pill, paginazione, radio, eq */
.hih[data-tone] .btn-primary{background:var(--sp);box-shadow:0 4px 0 color-mix(in srgb,var(--sp),#000 30%),0 10px 22px color-mix(in srgb,var(--sp) 40%,transparent)}
.hih[data-tone] .pill{background:var(--sp)}
.hih[data-tone] .pg.is-on{background:var(--sp)}
.hih[data-tone] .radio-play{background:var(--sp);box-shadow:0 2px 8px color-mix(in srgb,var(--sp) 45%,transparent)}
.hih[data-tone] .eq i{background:var(--sp)}

/* ============================================================
   RESPONSIVE non-mobile (tablet / desktop stretto): evita overflow navbar
   ============================================================ */
@media (max-width:1180px){
  .hih:not([data-mobile="true"]) .hh-bar .radio{display:none}
}
@media (max-width:1000px){
  .hih:not([data-mobile="true"]) .hh-nav .hh-link>span:not(.hh-ico):not(.hh-caret){display:none}
  .hih:not([data-mobile="true"]) .hh-nav .hh-caret{display:none}
  .hih:not([data-mobile="true"]) .hh-nav .hh-link{padding:9px 11px}
}

/* ============================================================
   MOBILE  (data-mobile=true)
   ============================================================ */
.hih[data-mobile="true"] .userchip span{display:none}
.hih[data-mobile="true"] .hh-mast-right{display:flex;margin-left:auto;align-items:center;gap:8px;position:static;transform:none}
.hih[data-mobile="true"] .hh-mast-right .iconbtn{display:grid}
.hih[data-mobile="true"] .hh-logo-full{display:none}
.hih[data-mobile="true"] .hh-logo-mini{display:flex}
.hih[data-mobile="true"] .hh-masthead{gap:10px;padding:0 14px;height:58px;justify-content:flex-start}
.hih[data-mobile="true"] .userchip{padding:4px;border:none;background:none}
/* navbar mobile: barra orizzontale nascosta, menu in drawer verticale via hamburger */
.hih[data-mobile="true"] .hh-bar{display:none}
.hih[data-mobile="true"] .hh-burger{display:flex}
/* drawer verticale */
.drawer-overlay{position:fixed;inset:0;z-index:300;background:rgba(20,18,30,.5);backdrop-filter:blur(3px);display:flex;justify-content:flex-end;animation:drawerFade .18s ease}
.drawer{width:80%;max-width:300px;height:100%;background:var(--surface);box-shadow:-12px 0 40px rgba(0,0,0,.3);display:flex;flex-direction:column}
@keyframes drawerFade{from{opacity:0}to{opacity:1}}
.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:16px 16px;border-bottom:1px solid var(--line)}
.drawer-title{font-family:var(--fontH);font-weight:600;font-size:17px;color:var(--text)}
.drawer-body{flex:1;overflow-y:auto;padding:10px}
.drawer-item{display:flex;flex-direction:column}
.drawer-link{display:flex;align-items:center;gap:12px;width:100%;padding:13px 12px;border:none;background:none;border-radius:12px;font-family:var(--fontB);font-weight:800;font-size:15px;color:var(--text);cursor:pointer;text-align:left;text-decoration:none}
.drawer-link:hover{background:var(--surface-2)}
.drawer-link.is-active{background:color-mix(in srgb,var(--sp) 14%,var(--surface))}
.drawer-link .hh-ico{display:grid;place-items:center;width:26px;flex:0 0 auto}
.drawer-label{flex:1}
.drawer-caret{width:9px;height:9px;border-right:2px solid var(--faint);border-bottom:2px solid var(--faint);transform:rotate(45deg);transition:transform .16s;flex:0 0 auto;margin-right:4px}
.drawer-link.is-exp .drawer-caret{transform:rotate(-135deg)}
.drawer-sub{display:flex;flex-direction:column;padding:2px 0 8px 50px}
.drawer-sub a{padding:9px 10px;border-radius:9px;font-family:var(--fontB);font-weight:700;font-size:13.5px;color:var(--muted);text-decoration:none}
.drawer-sub a:hover{background:var(--surface-2);color:var(--text)}
.drawer-foot{padding:12px;border-top:1px solid var(--line)}
.drawer-foot .radio{width:100%}
.hih[data-mobile="true"] .wrap{padding:6px 14px 30px}
.hih[data-mobile="true"] .ticker{padding:8px 14px}
.hih[data-mobile="true"] .ticker-label span:not(.live-dot){display:none}
.hih[data-mobile="true"] .hero{grid-template-columns:1fr;gap:16px}
.hih[data-mobile="true"] .hero-main{min-height:190px}
.hih[data-mobile="true"] .hero-copy{max-width:78%}
.hih[data-mobile="true"] .hero-copy h2{font-size:19px}
.hih[data-mobile="true"] .grid3{grid-template-columns:1fr;gap:16px}
.hih[data-mobile="true"] .col-c{order:1}
.hih[data-mobile="true"] .col-l{order:2}
.hih[data-mobile="true"] .col-r{order:3}
.hih[data-mobile="true"] .home-showcase-grid{grid-template-columns:1fr}
.hih[data-mobile="true"] .social-row{grid-template-columns:repeat(7,1fr)}

/* canvas helper: ogni artboard scrolla internamente NO — sono statici */

/* ============================================================
   LAYOUT B · VETRINA  (logo grande centrato)
   ============================================================ */
.hhv{position:relative;z-index:2}
.hhv-util{max-width:1240px;margin:0 auto;height:54px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.hhv-util-r{display:flex;align-items:center;gap:10px}
.hhv-logo{display:flex;flex-direction:column;align-items:center;gap:5px;padding:2px 0 12px;text-decoration:none}
.hhv-tag{font-family:var(--fontH);font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:var(--faint);font-weight:600}
.hhv-logo .hh-logo-full{height:62px;width:auto;display:block}
.hhv-logo .hh-logo-mini{display:none}
.hhv-nav{display:flex;justify-content:center;flex-wrap:wrap;gap:3px;padding:0 16px 14px}
.hhv .hh-item{position:relative;display:flex}
.hih[data-tone="dark"] .hhv-tag{color:rgba(255,255,255,.85)}
.hih[data-tone="light"] .hhv-tag{color:#5a5570}
/* nav sticky a pillola su Vetrina */
.showcase .hhv-navwrap,.hhv-nav{}

/* ============================================================
   LAYOUT C · DASHBOARD  (sidebar a sinistra)
   ============================================================ */
.hih[data-layout="dashboard"]{display:flex;align-items:stretch;min-height:100vh}
.side{position:sticky;top:0;align-self:flex-start;height:100vh;width:250px;flex:0 0 250px;display:flex;flex-direction:column;gap:6px;padding:18px 14px;background:var(--surface);border-right:1px solid var(--border);z-index:40}
.side-logo{display:flex;align-items:center;gap:10px;padding:6px 8px 16px;text-decoration:none}
.side-logo .hh-mark{height:34px;width:34px;display:block;filter:drop-shadow(0 2px 3px rgba(0,0,0,.28))}
.side-logo .hh-word{font-family:var(--fontH);font-weight:700;font-size:17px;letter-spacing:-.02em;color:var(--text)}
.side-nav{display:flex;flex-direction:column;gap:3px;flex:1}
.side-nav .hh-item{position:relative;display:block}
.side-nav .hh-link{width:100%;padding:10px 12px;border-radius:11px}
.side-nav .hh-menu{top:0;left:100%;margin-left:8px;margin-top:0}
.side-nav .hh-menu::before{display:none}
.side-nav .hh-caret{margin-left:auto;transform:rotate(-90deg)}
.side-foot{margin-top:auto;display:flex;flex-direction:column;gap:10px;padding-top:12px;border-top:1px solid var(--line)}
.side-foot .radio{width:100%}
.side-foot .userchip{width:100%}
.dash-main{flex:1;min-width:0;display:flex;flex-direction:column}
.dash-main .ticker{max-width:none;padding:12px 26px;border-bottom:1px solid var(--border)}
.dash-main .wrap{max-width:1200px;width:100%;padding-top:14px}
/* la sidebar resta un pannello chiaro: nav testo scuro anche sui temi scuri */
.hih[data-layout="dashboard"] .side .hh-link{color:var(--muted)}
.hih[data-layout="dashboard"] .side .hh-link:hover{background:var(--surface-2);color:var(--text)}
.hih[data-layout="dashboard"] .side .hh-link.is-active{background:color-mix(in srgb,var(--sp,var(--r4)) 14%,var(--surface));color:var(--text)}
.hih[data-layout="dashboard"] .side .hh-ico{background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line)}
.hih[data-layout="dashboard"] .side .radio,.hih[data-layout="dashboard"] .side .userchip{background:var(--surface-2);border:1px solid var(--border);color:var(--text)}
.hih[data-layout="dashboard"] .side .radio-live{color:var(--muted)}
/* la raygiera stagionale non deve coprire la sidebar */
.hih[data-layout="dashboard"]::before,.hih[data-layout="dashboard"]::after{left:250px}
