/*
Theme Name: Home Cinema Lab
Theme URI: https://homecinemalab.com
Author: Home Cinema Lab
Description: Home theater misurato, non indovinato. Frontend v3 "Sala Cinema": la stanza al buio, legno caldo, Fraunces, ambra e brace.
Version: 3.6.26
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: home-cinema
License: GPL-2.0-or-later
*/

/* ============================================================
   "SALA CINEMA" — v3.0.0 (concept A).
   La stanza al buio, solo lo schermo acceso: legno caldo #0c0806,
   Fraunces editoriale, ambra #e8a35c, brace #ff7847.
   Niente mirino/REC/timecode: tutto tondo, morbido, caldo.
   I nomi --rg-* restano: il JS e lo SVG del configuratore li usano.
   ============================================================ */

:root {
    --rg-bg: #0c0806;
    --rg-bg2: #161009;
    --rg-panel: #1c1410;
    --rg-wood: #2a1c11;
    --rg-line: rgba(232, 163, 92, 0.16);
    --rg-line-strong: rgba(232, 163, 92, 0.38);
    --rg-ink: #f7efe2;
    --rg-mid: #d8cab2;
    --rg-dim: #a89880;
    --rg-rec: #ff7847;
    --rg-meas: #e8a35c;
    --rg-amber: #e8a35c;
    --rg-ink-inv: #1a0f05;
    --rg-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
    --rg-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --rg-serif: "Fraunces", Georgia, "Times New Roman", serif;
    --rg-max: 1216px; /* 76rem */
    --rg-rad: 18px;
    --rg-rad-lg: 28px;
    --rg-glow: 0 8px 34px rgba(232, 163, 92, 0.22);
}

html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--rg-bg);
    color: var(--rg-ink);
    font-family: var(--rg-sans);
    font-size: 17.5px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    /* grana pellicola leggerissima */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}
::selection { background: var(--rg-meas); color: var(--rg-ink-inv); }

a { color: var(--rg-meas); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
    font-family: var(--rg-serif);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.1;
    color: var(--rg-ink);
}

/* ---------- etichette: solo il mono racconta i dati ---------- */
.rg-label, .hcm-kicker {
    font-family: var(--rg-mono);
    font-size: 11.5px;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--rg-meas);
}
.rg-label b { color: var(--rg-rec); font-weight: 400; }
.rg-meas, .rg-hl-meas { color: var(--rg-meas); }

/* ============================================================
   HEADER — si scioglie sul buio sala
   ============================================================ */
/* V3.6.4: header + menu = UN SOLO velo full-bleed che sfuma nel contenuto.
   Il gruppo WP resta largo var(--rg-max), ma lo sfondo esce dai suoi bordi
   (::before a 100vw) cosi' non si vede nessun riquadro squadrato. */
.hcm-header {
    position: sticky;
    top: 0;
    z-index: 50;
    max-width: var(--rg-max);
    margin: 0 auto;
    padding: 1.05rem 2rem 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.hcm-header::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: calc(50% - 50vw);
    width: 100vw;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(12,8,6,.95) 0%, rgba(12,8,6,.86) 46%, rgba(12,8,6,.5) 78%, rgba(12,8,6,.18) 92%, rgba(12,8,6,0) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 42%, rgba(0,0,0,.62) 72%, rgba(0,0,0,.22) 90%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 42%, rgba(0,0,0,.62) 72%, rgba(0,0,0,.22) 90%, transparent 100%);
}
.hcm-header-row { align-items: center; gap: 1.4rem; }

/* logo: serif, "Lab" in ambra come un'insegna */
.hcm-brand { gap: 0.7rem; align-items: center; }
.hcm-brand-mark { display: none; } /* via la piastrina: parla solo la parola */
.hcm-brand-name {
    font-family: var(--rg-serif);
    font-weight: 700;
    font-size: 1.24rem;
    letter-spacing: -0.01em;
    line-height: 1.15;
    display: flex; flex-direction: column;
}
.hcm-brand-name a { color: var(--rg-ink); }
.hcm-brand-name a::after { content: " Lab"; color: var(--rg-meas); font-style: italic; }
.hcm-brand-sub { display: none; }

/* nav: mono piccolo, si accende al passaggio */
/* v3.2.0 — menu uniforme (pattern RAN): gap 1.4rem, corrente = accento +
   underline 2px (stesso trattamento di .ran-nav). */
.hcm-nav { display: flex; align-items: center; }
.hcm-nav-list { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.hcm-nav-item a {
    font-family: var(--rg-mono); font-size: 12.5px; font-weight: 400;
    letter-spacing: 0.09em; text-transform: uppercase;
    color: var(--rg-dim);
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}
.hcm-nav-item a:hover { color: var(--rg-meas); text-decoration: none; }
.hcm-nav-item.is-current a { color: var(--rg-meas); border-bottom-color: var(--rg-meas); }

.hcm-header-actions { gap: 1.1rem; align-items: center; }

.hcm-header-cta {
    border: 1px solid var(--rg-meas); color: var(--rg-meas);
    padding: 0.55rem 1.2rem; border-radius: 999px;
    font-family: var(--rg-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
    transition: background 0.25s, color 0.25s;
    white-space: nowrap;
}
.hcm-header-cta:hover { background: var(--rg-meas); color: var(--rg-ink-inv); text-decoration: none; }

/* switch lingua: pill */
.hcm-lang { display: flex; gap: 0.4rem; align-items: center; }
.hcm-lang .bogo-language-switcher { display: flex; gap: 0.4rem; list-style: none; margin: 0; padding: 0; align-items: stretch; }
.hcm-lang .bogo-language-switcher li { display: flex; align-items: center; margin: 0; }
.hcm-lang .bogoflags { display: none; }
.hcm-lang .bogo-language-name {
    font-family: var(--rg-mono); font-size: 11px; letter-spacing: 0.12em;
    border: 1px solid var(--rg-line-strong); border-radius: 999px;
    color: var(--rg-dim); text-transform: uppercase; display: flex; align-items: center; line-height: 1;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.hcm-lang .bogo-language-name a { color: inherit; padding: 0.42rem 0.78rem; display: block; }
.hcm-lang a:hover { color: var(--rg-ink); text-decoration: none; }
.hcm-lang li.current .bogo-language-name { background: var(--rg-meas); border-color: var(--rg-meas); }
.hcm-lang li.current .bogo-language-name a { color: var(--rg-ink-inv); }

/* CTA header: pill ambra "Configura la sala" */
.hcm-header-cta {
    display: inline-flex; align-items: center; white-space: nowrap;
    margin-left: 0.6rem; padding: 0.5rem 1.1rem;
    font-family: var(--rg-mono); font-size: 11.5px; letter-spacing: 0.08em;
    text-transform: uppercase; text-decoration: none;
    background: var(--rg-meas); color: var(--rg-ink-inv); border-radius: 999px;
    box-shadow: 0 6px 22px rgba(232, 163, 92, 0.25);
    transition: transform 0.25s, box-shadow 0.25s;
}
.hcm-header-cta:hover {
    color: var(--rg-ink-inv); text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(232, 163, 92, 0.4);
}
@media (max-width: 781px) { .hcm-header-cta { display: none; } }

/* ============================================================
   HERO — la stanza al buio, solo lo schermo acceso
   ============================================================ */
.rg-hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #000;
    perspective: 1200px;
}
.rg-hero-bg {
    position: absolute; inset: -4%;
    background-size: cover; background-position: center;
    transform: scale(1.05);
    will-change: transform;
    filter: brightness(0.55) saturate(0.9) sepia(0.12);
}
/* il vignettone centrale: luce dello schermo nel buio */
.rg-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 72% 56% at 50% 42%, transparent 0%, rgba(12, 8, 6, 0.38) 60%, rgba(12, 8, 6, 0.94) 100%),
        linear-gradient(180deg, transparent 58%, var(--rg-bg) 100%);
}
/* via mirino e REC */
.rg-viewfinder, .rg-hero-rolling, .rg-rec-dot { display: none !important; }

.rg-hero-clip {
    position: relative; z-index: 2;
    width: 100%; max-width: 58rem;
    margin: 0 auto;
    padding: clamp(5rem, 10vh, 7rem) 1.5rem clamp(6rem, 12vh, 8rem);
    text-align: center;
}
.rg-hero-kicker {
    display: inline-block; margin: 0 0 1.6rem;
    color: var(--rg-meas); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
}
.rg-hero h1 {
    margin: 0;
    font-size: clamp(2.7rem, 6.4vw, 5.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.06;
    text-wrap: balance;
}
.rg-hero h1 .rg-hl { color: var(--rg-ink); font-style: italic; -webkit-text-stroke: 0; }
.rg-hero h1 .rg-hl-meas { color: var(--rg-meas); font-style: italic; }
.rg-hero-sub {
    max-width: 37rem; margin: 1.9rem auto 2.2rem;
    color: var(--rg-mid); font-size: clamp(1.05rem, 1.6vw, 1.22rem);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85);
}
.rg-hero-cta {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
    margin: 0 0 2.6rem;
}

/* HUD hero: teca di vetro, numeri serif grandi */
.rg-hud {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0;
    border: 1px solid var(--rg-line); border-radius: var(--rg-rad);
    background: rgba(12, 8, 6, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: fit-content; max-width: 100%; margin: 0 auto; overflow: hidden;
}
.rg-hud > div { padding: 1rem 1.6rem; border-right: 1px solid var(--rg-line); }
.rg-hud > div:last-child { border-right: 0; }
.rg-hud-num {
    display: block; font-family: var(--rg-serif); font-weight: 700;
    font-size: clamp(1.6rem, 2.8vw, 2.3rem); color: var(--rg-meas); line-height: 1.1;
}
.rg-hud-num small { font-size: 0.55em; color: var(--rg-rec); margin-left: 2px; }
.rg-hud-lab { font-family: var(--rg-mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rg-dim); }

/* ingresso una tantum: le righe si alzano dal buio */
@keyframes rg-rise { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: translateY(0); } }
.rg-hero-kicker { animation: rg-rise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards; }
.rg-hero h1 { animation: rg-rise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.28s backwards; }
.rg-hero-sub { animation: rg-rise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.48s backwards; }
.rg-hero-cta { animation: rg-rise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.62s backwards; }
.rg-hud { animation: rg-rise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.76s backwards; }
/* v3.2.0 — dissolvenza uniforme (pattern RAN): la "dissolvenza" una tantum
   (opacity 0.35 + zoom 1.18 in 1.5s) è sostituita dal breathe continuo 22s
   dello stesso hero RAN. Lo scale vive su .rg-hero-bg-img; la parallasse JS
   sul contenitore usa solo translate (niente conflitto). */
@keyframes rg-breathe { from { transform: scale(1); } to { transform: scale(1.07); } }
.rg-hero-bg-img {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    animation: rg-breathe 22s ease-in-out infinite alternate;
    will-change: transform;
}

/* ticker regole tecniche: fascia ferma sul bordo (scroll manuale su mobile) */
.rg-marquee {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
    border-top: 1px solid var(--rg-line);
    background: rgba(12, 8, 6, 0.86);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.rg-marquee-in {
    display: flex; gap: 3.2rem; padding: 0.95rem 2rem;
    max-width: var(--rg-max); margin: 0 auto;
    font-family: var(--rg-mono); font-size: 12.5px; color: var(--rg-dim);
    overflow-x: auto; white-space: nowrap; scrollbar-width: none;
}
.rg-marquee-in::-webkit-scrollbar { display: none; }
.rg-marquee-in b { color: var(--rg-meas); font-weight: 500; }

/* v3.6.21: barra scorciatoie utili al posto del ticker numeri */
.hcm-quickbar {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
    border-top: 1px solid var(--rg-line);
    background: rgba(12, 8, 6, 0.86);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.hcm-quickbar-in {
    display: grid; grid-template-columns: repeat(4, 1fr);
    max-width: var(--rg-max); margin: 0 auto;
}
.hcm-quickbar a {
    display: flex; align-items: baseline; gap: 0.75rem;
    padding: 0.95rem 1.4rem; text-decoration: none;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.25s ease;
}
.hcm-quickbar a:first-child { border-left: 0; }
.hcm-quickbar a:hover { background: rgba(232, 163, 92, 0.08); }
.hcm-qk-num {
    font-family: var(--rg-mono); font-size: 13px; letter-spacing: 0.04em;
    color: var(--rg-meas); flex: 0 0 auto;
}
.hcm-qk-txt {
    font-family: var(--rg-mono); font-size: 12.5px; color: var(--rg-dim);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hcm-quickbar a:hover .hcm-qk-txt { color: var(--rg-text); }
@media (max-width: 900px) {
    .hcm-quickbar { position: static; background: rgba(12, 8, 6, 0.92); }
    .hcm-quickbar-in { grid-template-columns: 1fr 1fr; }
    .hcm-quickbar a { border-top: 1px solid rgba(255, 255, 255, 0.06); }
    .hcm-quickbar a:nth-child(-n+2) { border-top: 0; }
    .hcm-quickbar a:nth-child(odd) { border-left: 0; }
}
@media (max-width: 560px) {
    .hcm-quickbar-in { grid-template-columns: 1fr; }
    .hcm-quickbar a { border-left: 0; }
    .hcm-quickbar a:nth-child(2) { border-top: 1px solid rgba(255, 255, 255, 0.06); }
}

/* ============================================================
   PULSANTI — pill luminosi
   ============================================================ */
.rg-btn-solid, a.rg-btn-solid, .wp-block-button__link, .rg-btn {
    display: inline-block; background: var(--rg-meas); color: var(--rg-ink-inv);
    padding: 0.95rem 2rem; border: 0; border-radius: 999px;
    font-family: var(--rg-mono); font-size: 13.5px; font-weight: 500; letter-spacing: 0.03em;
    box-shadow: var(--rg-glow);
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
}
.rg-btn-solid:hover, a.rg-btn-solid:hover, .wp-block-button__link:hover, .rg-btn:hover {
    transform: translateY(-3px); box-shadow: 0 14px 44px rgba(232, 163, 92, 0.4);
    text-decoration: none; color: var(--rg-ink-inv);
}
.rg-btn-ghost, a.rg-btn-ghost, .rg-btn.ghost {
    display: inline-block; background: transparent; color: var(--rg-ink);
    padding: 0.95rem 1.4rem; border: 0;
    font-family: var(--rg-mono); font-size: 13.5px;
    border-bottom: 1px solid var(--rg-line);
    transition: border-color 0.25s, color 0.25s;
}
.rg-btn-ghost:hover, .rg-btn.ghost:hover { border-color: var(--rg-meas); color: var(--rg-meas); text-decoration: none; background: transparent; }

/* ============================================================
   SEZIONI — ritmo editoriale
   ============================================================ */
.rg-section { max-width: var(--rg-max); margin: 0 auto; padding: clamp(4.5rem, 9vh, 7rem) 2rem; }
.rg-sect-head { margin-bottom: 3.2rem; }
.rg-sect-num {
    display: block;
    font-family: var(--rg-mono); font-size: 12.5px; font-weight: 400;
    letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--rg-meas);
    margin-bottom: 1.2rem;
}
.rg-sect-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.12; margin: 0 0 1.2rem; }
.rg-sect-sub { color: var(--rg-dim); font-size: clamp(1.02rem, 1.5vw, 1.16rem); max-width: 46rem; margin: 0; }
.rg-sect-rule { display: block; height: 1px; background: var(--rg-line); margin-top: 2rem; position: relative; overflow: hidden; }
.rg-sect-rule::after {
    content: ""; position: absolute; inset: 0; width: 0;
    background: linear-gradient(90deg, var(--rg-meas), transparent);
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.is-live .rg-sect-rule::after { width: 100%; }

.hcm-section-head { max-width: var(--rg-max); margin: 0 auto; padding: 3.4rem 2rem 0; }
.hcm-section-head h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin: 0.4rem 0 0.4rem; }

/* reveal */
.rg-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.rg-reveal.is-live { opacity: 1; transform: none; }
.rg-reveal.d1 { transition-delay: 0.08s; }
.rg-reveal.d2 { transition-delay: 0.16s; }
.rg-reveal.d3 { transition-delay: 0.24s; }

/* ============================================================
   CAROSELLO SALE — lo schermo grande che cambia
   ============================================================ */
.rg-stage {
    max-width: var(--rg-max);
    border: 0; background: transparent; padding-top: 0;
}
.rg-stage-box {
    position: relative;
    border: 1px solid var(--rg-line);
    border-radius: 24px;
    background: var(--rg-bg2);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.rg-shots {
    position: relative;
    aspect-ratio: 16 / 8.2;
    min-height: 340px;
    overflow: hidden;
    perspective: 1400px;
    transform-style: preserve-3d;
}
@media (max-width: 720px) {
    .rg-shots { aspect-ratio: 4 / 4.6; min-height: 420px; }
    .rg-shot-cap p { font-size: 0.85rem; }
}
.rg-shot {
    position: absolute; inset: 0; opacity: 0; pointer-events: none;
    transform: rotateY(22deg) translateX(10%) scale(0.94);
    transform-origin: 50% 50%;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.rg-shot.is-prev { transform: rotateY(-22deg) translateX(-10%) scale(0.94); }
.rg-shot.is-active { opacity: 1; transform: rotateY(0) translateX(0) scale(1); pointer-events: auto; }
.rg-shot img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.92) brightness(0.94); }
.rg-shot-cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 3.4rem 1.9rem 1.7rem;
    background: linear-gradient(180deg, transparent, rgba(10, 6, 4, 0.94));
}
.rg-shot-cap h3 { margin: 0 0 0.4rem; font-size: clamp(1.2rem, 2.4vw, 1.8rem); }
.rg-shot-cap p { margin: 0; color: var(--rg-mid); font-size: 0.96rem; max-width: 64ch; }
.rg-shot-spec { display: inline-flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.9rem; }
.rg-shot-spec span {
    font-family: var(--rg-mono); font-size: 11px; letter-spacing: 0.08em;
    color: var(--rg-meas); border: 1px solid var(--rg-line-strong);
    padding: 0.22rem 0.72rem; border-radius: 999px;
    background: rgba(12, 8, 6, 0.55);
}

/* timeline: capsule luminose sotto lo schermo */
.rg-timeline { display: flex; gap: 0.8rem; padding: 1rem 1.2rem 1.3rem; border-top: 1px solid var(--rg-line); flex-wrap: wrap; }
.rg-timeline button {
    flex: 1 1 12rem; appearance: none; cursor: pointer; position: relative; overflow: hidden;
    background: transparent; border: 1px solid var(--rg-line); border-radius: 999px;
    padding: 0.75rem 1.2rem;
    text-align: left; color: var(--rg-dim);
    font-family: var(--rg-mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
    transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.rg-timeline button small { display: block; color: inherit; opacity: 0.65; font-size: 10px; margin-top: 2px; letter-spacing: 0.16em; }
.rg-timeline button:hover { color: var(--rg-ink); border-color: var(--rg-line-strong); }
.rg-timeline button.is-active { color: var(--rg-ink-inv); background: var(--rg-meas); border-color: var(--rg-meas); box-shadow: var(--rg-glow); }
.rg-tl-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--rg-rec); }
.rg-tl-progress.go { animation: rg-fill var(--rg-dur, 7s) linear forwards; }
@keyframes rg-fill { from { width: 0; } to { width: 100%; } }

/* ============================================================
   TOOL — nastro di carte che respirano
   ============================================================ */
.rg-belt-wrap { overflow: hidden; position: relative; }
.rg-belt-wrap::before, .rg-belt-wrap::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.rg-belt-wrap::before { left: 0; background: linear-gradient(90deg, var(--rg-bg), transparent); }
.rg-belt-wrap::after { right: 0; background: linear-gradient(-90deg, var(--rg-bg), transparent); }
.rg-belt {
    display: flex; gap: 1.2rem; overflow-x: auto; padding: 0.4rem 0.2rem 1.4rem;
    scroll-snap-type: x mandatory; cursor: grab;
    scrollbar-width: thin; scrollbar-color: var(--rg-line-strong) transparent;
}
.rg-belt.dragging { cursor: grabbing; scroll-snap-type: none; }
.rg-tool-card {
    flex: 0 0 min(330px, 78vw); scroll-snap-align: center;
    border: 1px solid var(--rg-line); background: var(--rg-bg2);
    border-radius: var(--rg-rad);
    padding: 1.7rem 1.5rem 1.4rem; position: relative; color: inherit; display: block;
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s, background 0.3s;
}
.rg-tool-card:hover { text-decoration: none; border-color: rgba(232, 163, 92, 0.45); background: #1a130c; }
.rg-tool-card::after {
    content: attr(data-idx); position: absolute; top: 1rem; right: 1.2rem;
    font-family: var(--rg-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--rg-dim);
}
.rg-tool-ico { font-size: 1.7rem; line-height: 1; }
.rg-tool-card h3 { margin: 0.85rem 0 0.35rem; font-size: 1.22rem; }
.rg-tool-card p { margin: 0; color: var(--rg-dim); font-size: 0.9rem; }
.rg-tool-go {
    margin-top: 1.1rem; display: inline-block; font-family: var(--rg-mono); font-size: 11.5px;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--rg-meas);
}
.rg-tool-go::after { content: " →"; transition: margin-left 0.2s; }
.rg-tool-card:hover .rg-tool-go::after { margin-left: 8px; }

/* ============================================================
   CONFIGURATORE SALA — la stanza che si accende
   (NON toccare la geometria SVG: solo colori/look)
   ============================================================ */
.rg-room-wrap {
    display: grid; grid-template-columns: 1.15fr 0.85fr;
    border: 1px solid var(--rg-line); border-radius: 26px;
    background: var(--rg-bg2);
    padding: 2rem;
}
@media (max-width: 900px) { .rg-room-wrap { grid-template-columns: 1fr; padding: 1.1rem; } }

/* la pianta sta "sdraiata" sul piano, si alza quando entra in vista */
.rg-room-plan {
    perspective: 1100px; position: relative; min-height: 320px;
    background: #0f0a06; border: 1px solid var(--rg-line); border-radius: var(--rg-rad);
    padding: 1rem;
    box-shadow: inset 0 0 60px rgba(232, 163, 92, 0.05);
}
.rg-room-plan svg {
    display: block; width: 100%; height: 100%;
    transform: rotateX(46deg) scale(0.92);
    transform-origin: 50% 100%;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}
.is-live .rg-room-plan svg { transform: rotateX(0) scale(1); }

.rg-room-side { padding: 0.6rem 0 0.6rem 2rem; display: flex; flex-direction: column; gap: 1.1rem; }
@media (max-width: 900px) { .rg-room-side { padding: 1.2rem 0.4rem; } }
.rg-room-presets { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.rg-room-presets button {
    appearance: none; cursor: pointer; background: transparent; color: var(--rg-dim);
    border: 1px solid var(--rg-line); border-radius: 999px;
    padding: 0.5rem 1.15rem;
    font-family: var(--rg-mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
    transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.rg-room-presets button:hover { color: var(--rg-ink); border-color: var(--rg-line-strong); }
.rg-room-presets button.is-active { background: var(--rg-meas); border-color: var(--rg-meas); color: var(--rg-ink-inv); }
.rg-readout { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rg-line); border: 1px solid var(--rg-line); border-radius: var(--rg-rad); overflow: hidden; }
.rg-readout > div { background: var(--rg-bg2); padding: 0.95rem 0.7rem; text-align: center; }
.rg-readout b { display: block; font-family: var(--rg-serif); font-size: 1.9rem; font-weight: 700; color: var(--rg-meas); line-height: 1.15; }
.rg-readout span { font-family: var(--rg-mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rg-dim); }
.rg-room-note { color: var(--rg-mid); font-size: 0.92rem; margin: 0; }
.rg-room-hint { font-family: var(--rg-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rg-dim); }
.rg-room-hint::before { content: "▸ "; color: var(--rg-rec); }

/* SVG stanza — pianta luminosa su legno (geometria intoccata) */
.hcm-room-wall { fill: none; stroke: var(--rg-line-strong); stroke-width: 0.55; }
.hcm-room-grid { stroke: rgba(232, 163, 92, 0.07); stroke-width: 0.2; }
.rg-spk { cursor: pointer; }
.rg-spk circle { fill: var(--rg-amber); stroke: #0c0806; stroke-width: 0.22; transition: fill 0.2s; }
.rg-spk.is-front circle { fill: var(--rg-meas); }
.rg-spk.is-sub circle { fill: var(--rg-rec); }
.rg-spk text { font-family: var(--rg-mono); font-size: 2.4px; fill: var(--rg-ink); letter-spacing: 0.04em; }
.rg-spk:hover circle { fill: #fff; }
.rg-spk-wave { fill: none; stroke: var(--rg-meas); stroke-width: 0.3; opacity: 0.22; }
.rg-wire { stroke: rgba(247, 239, 226, 0.5); stroke-width: 0.25; stroke-dasharray: 1.1 1.1; opacity: 0; transition: opacity 0.5s; }
.rg-wire.is-on { opacity: 0.5; }
.rg-seat path { fill: none; stroke: rgba(247, 239, 226, 0.55); stroke-width: 0.4; }
.rg-seat text { font-family: var(--rg-mono); font-size: 2.3px; fill: var(--rg-dim); letter-spacing: 0.1em; }
.rg-screen-line { stroke: var(--rg-meas); stroke-width: 1.4; stroke-linecap: round; filter: drop-shadow(0 0 1.2px rgba(232, 163, 92, 0.85)); }

/* ============================================================
   TAKE / LISTE POST — righe editoriali
   ============================================================ */
.hcm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.rg-takes, .hcm-takes-list { border-top: 1px solid var(--rg-line); }
.rg-take, .hcm-take {
    position: relative; display: flex; gap: 1.6rem; align-items: center;
    color: inherit;
    border-bottom: 1px solid var(--rg-line);
    padding: 1.7rem 0.5rem;
    transition: background 0.25s, padding-left 0.25s;
}
.rg-take:hover, .hcm-take:hover { text-decoration: none; background: rgba(232, 163, 92, 0.05); padding-left: 1.3rem; color: inherit; }
.rg-take-no { font-family: var(--rg-mono); font-size: 0.9rem; color: var(--rg-meas); min-width: 3.4ch; }
.rg-take-body { flex: 1; min-width: 0; }
.rg-take-body h3 { margin: 0 0 0.25rem; font-size: clamp(1.12rem, 2vw, 1.4rem); }
.rg-take-body p { margin: 0; color: var(--rg-dim); font-size: 0.92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rg-take-meta { font-family: var(--rg-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--rg-dim); white-space: nowrap; text-transform: uppercase; }
.rg-take-meta::after, .hcm-take::after {
    content: "→"; color: var(--rg-dim); display: inline-block; margin-left: 0.9rem;
    transition: transform 0.25s, color 0.25s;
}
.rg-take:hover .rg-take-meta::after, .hcm-take:hover::after { color: var(--rg-meas); transform: translateX(6px); }

/* carte correlate (.hcm-more-section) + card archivio — pattern di rete
   (RAN v1.5.39 ran-card / ESP / OIB): pill categoria sovrapposta alla foto,
   titolo 1.3rem, excerpt 0.95rem, meta data, hover -8px + glow. */
.hcm-card, .rg-card {
    position: relative; height: 100%;
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, rgba(28, 20, 16, 0.7), rgba(12, 8, 6, 0.9));
    border: 1px solid rgba(232, 163, 92, 0.25);
    border-radius: calc(var(--rg-rad-lg) + 4px);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}
.hcm-card:hover, .rg-card:hover {
    transform: translateY(-8px);
    border-color: rgba(232, 163, 92, 0.5);
    box-shadow: 0 32px 72px rgba(0, 0, 0, 0.55), 0 0 48px rgba(232, 163, 92, 0.15);
}
.hcm-card-media { position: relative; margin: 0; overflow: hidden; aspect-ratio: 16/9; }
.hcm-card-media img {
    width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}
.hcm-card:hover .hcm-card-media img { transform: scale(1.08); filter: saturate(1.15); }
.hcm-card-media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 40%, rgba(12, 8, 6, 0.7));
}
/* Pill categoria in ALTO A SINISTRA della foto (standard di rete, RAN v1.5.29) */
.hcm-card-tag { position: absolute; top: 0.9rem; left: 0.9rem; z-index: 4; margin: 0; }
.hcm-card-tag a, .hcm-card-tag span {
    display: inline-block; font-family: var(--rg-mono); font-size: 9px; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--rg-ink);
    background: rgba(12, 8, 6, 0.7); border: 1px solid rgba(232, 163, 92, 0.4);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: 100px; padding: 0.28rem 0.66rem;
}
.hcm-card-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
/* FIX centratura FSE: theme.json forza margin auto !important sui figli di
   .is-layout-constrained → dentro la card i titoli corti venivano centrati. */
/* FIX (pattern RAN v1.5.29): le global styles FSE impongono position:relative
   a ogni .wp-block-group constrained — e il body delle card è constrained
   (is-layout-constrained). Senza questo fix il body diventerebbe il
   containing block della pill → pill sovrapposta al titolo invece che alla
   foto. Specificità (0,1,0) batte il :where() FSE (0,0,0). */
.hcm-card-body { position: static; }
.hcm-card-body.is-layout-constrained > * { margin-left: 0 !important; margin-right: 0 !important; max-width: none; }
.hcm-card-body h2, .hcm-card-body h3 {
    font-size: 1.3rem !important; margin: 0.2rem 0 0.6rem; line-height: 1.25;
    font-family: var(--rg-serif); font-weight: 600;
}
.hcm-card-body .wp-block-post-title { font-size: 1.3rem !important; }
.hcm-card-body a { color: inherit; text-decoration: none; }
.hcm-card-body h2 a, .hcm-card-body h3 a { color: var(--rg-ink); }
.hcm-card-body h2 a:hover, .hcm-card-body h3 a:hover { color: var(--rg-meas); }
.hcm-card-excerpt, .hcm-card-excerpt p { color: var(--rg-dim); font-size: 0.95rem; line-height: 1.65; margin: 0 0 1rem; flex: 1; }
.hcm-card-meta { display: flex; align-items: center; gap: 0.9rem; font-family: var(--rg-mono); font-size: 12.5px; color: var(--rg-dim); letter-spacing: 0.08em; margin-top: auto; }
.hcm-card-meta .sep { opacity: 0.4; }
.hcm-gear-title { font-size: 1.25rem; margin: 0.6rem 0 0.3rem; }
.hcm-gear-spec { font-family: var(--rg-mono); font-size: 0.82rem; color: var(--rg-meas); margin: 0 0 0.4rem; }
.rg-sect-sub a, .hcm-section-head a { color: var(--rg-meas); }

/* ============================================================
   PAGINE / SINGLE / ARCHIVIO
   ============================================================ */
.hcm-page-hero { max-width: var(--rg-max); margin: 0 auto; padding: 3.8rem 2rem 1.4rem; }
.hcm-single-hero { max-width: 880px; margin: 0 auto; padding: 3.8rem 2rem 1.6rem; }
/* Featured 21:9 full-bleed nel contenitore, come gli altri blog del network */
.hcm-single-hero-img { aspect-ratio: 21 / 9; margin: 0 0 1.6rem; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.hcm-single-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hcm-single-hero:not(:has(img)) .hcm-single-hero-img { display: none; }
.hcm-single-cat { font-family: var(--rg-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.hcm-single-cat a { color: var(--rg-meas); text-decoration: none; border: 1px solid var(--rg-line-strong); border-radius: 999px; padding: 0.3rem 0.8rem; }
/* v3.1.3 — pattern RAN: la dimensione va sull'elemento h1 (sui group div
   l'UA default 2em la raddoppiava: 38.4→76.8px) */
.hcm-single-title h1 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); margin: 0 0 1.2rem; line-height: 1.1; letter-spacing: -0.02em; }
.hcm-archive-head h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin: 0.4rem 0 0.6rem; line-height: 1.1; }
.hcm-page-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin: 0.4rem 0 0.8rem; line-height: 1.12; }
.hcm-single-meta { font-family: var(--rg-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rg-dim); display: flex; gap: 1.4rem; flex-wrap: wrap; }
.hcm-single-tags { font-family: var(--rg-mono); font-size: 11.5px; letter-spacing: 0.1em; }
/* Archive/home: card sempre in griglia. Il wrapper wp-block-query resta block;
   la griglia vera è il ul.wp-block-post-template (o l'elemento .hcm-grid stesso
   quando è già un ul, come nelle correlate del single). */
.wp-block-query.hcm-grid { display: block; max-width: var(--rg-max); margin: 0 auto; padding: 0 2rem 3rem; }
.wp-block-query.hcm-grid > ul,
ul.hcm-grid, .hcm-grid.wp-block-post-template {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem;
    margin: 0; padding: 0; list-style: none;
}
@media (max-width: 980px) {
    .wp-block-query.hcm-grid > ul,
    ul.hcm-grid, .hcm-grid.wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .wp-block-query.hcm-grid > ul,
    ul.hcm-grid, .hcm-grid.wp-block-post-template { grid-template-columns: 1fr; }
}
/* --- Stile editoriale articoli — uniformato 1:1 al blocco premium RAN v1.5.39
   (pattern di rete), palette Sala Cinema. --- */
.hcm-content { max-width: 880px; margin: 0 auto; padding: 1.4rem 1.6rem 4rem; font-kerning: normal; }
.hcm-content > * + * { margin-top: 1.4rem; }
.hcm-content p { margin: 0 0 1.75rem; line-height: 1.88; font-size: 1.06rem; letter-spacing: 0.003em; text-wrap: pretty; }
/* Drop cap sul primo paragrafo (solo single): i paragrafi vivono dentro
   div.entry-content (classe aggiunta dal core WP 7.1.x al post-content),
   non direttamente in .hcm-content. */
body.single-post .hcm-content .entry-content > p:first-of-type::first-letter {
    float: left; font-family: var(--rg-serif); font-weight: 600;
    font-size: 3.4em; line-height: 0.8; padding: 0.06em 0.12em 0 0;
    color: var(--rg-meas); text-shadow: 0 0 1.8rem rgba(232, 163, 92, 0.3);
}
/* H2 con linea accent (pattern RAN) */
.hcm-content h2 {
    position: relative; margin: 3.2rem 0 1.4rem; padding-top: 1.2rem;
    font-family: var(--rg-serif); font-weight: 640; letter-spacing: -0.01em;
    font-size: 1.72rem; line-height: 1.24; color: var(--rg-ink);
}
.hcm-content h2::before {
    content: ""; position: absolute; top: 0; left: 0;
    width: 48px; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, var(--rg-meas), rgba(232, 163, 92, 0.2));
}
/* H3 con bordo laterale (pattern RAN) */
.hcm-content h3 {
    margin: 2.6rem 0 1rem; padding-left: 1rem;
    border-left: 3px solid rgba(232, 163, 92, 0.4);
    font-family: var(--rg-serif); font-weight: 600;
    font-size: 1.38rem; line-height: 1.3; color: var(--rg-ink);
}
.hcm-content a { color: var(--rg-meas); text-decoration-color: rgba(232, 163, 92, 0.35); text-underline-offset: 3px; transition: color .18s ease, text-decoration-color .18s ease; }
.hcm-content a:hover { color: #ffd9a8; text-decoration-color: var(--rg-meas); }
/* Link affiliato (pattern RAN .ran-affiliate-link) */
.hcm-content a.hcm-affiliate-link { color: var(--rg-rec); text-decoration: none; border-bottom: 1px dotted rgba(255, 120, 71, 0.5); }
.hcm-content a.hcm-affiliate-link:hover { color: var(--rg-ink); border-bottom-color: rgba(247, 239, 226, 0.6); }
.hcm-content ul, .hcm-content ol { padding-left: 1.5rem; margin: 0 0 1.75rem; }
.hcm-content li { margin-bottom: 0.65rem; line-height: 1.78; }
/* Marker liste (pattern RAN: diamante ◈ per le puntate, cifre serif per le ordinate) */
.hcm-content ul > li::marker { content: "\25C8 "; font-size: 0.7em; vertical-align: 0.25em; color: var(--rg-meas); }
.hcm-content ol > li::marker { font-family: var(--rg-serif); font-weight: 700; color: var(--rg-meas); }
.hcm-content img { border-radius: calc(var(--rg-rad) + 4px); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(232, 163, 92, 0.12); }
.hcm-content figure { margin: 2.6rem 0; }
.hcm-content figcaption { font-size: 0.84rem; letter-spacing: 0.02em; color: var(--rg-mid); text-align: center; margin-top: 0.9rem; }
/* Blockquote con glyph di virgoletto (pattern RAN) */
.hcm-content blockquote {
    position: relative; margin: 2.4rem 0; padding: 1.8rem 2.2rem 1.8rem 2.6rem;
    background: linear-gradient(135deg, rgba(232, 163, 92, 0.08), rgba(255, 120, 71, 0.05));
    border-left: 4px solid var(--rg-meas); border-radius: 0 18px 18px 0;
    font-family: var(--rg-serif); font-style: italic; font-size: 1.28rem; line-height: 1.6; color: var(--rg-ink);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
.hcm-content blockquote::before {
    content: "\201C"; position: absolute; top: 0.4rem; left: 0.9rem;
    font-size: 3.5rem; line-height: 1; color: rgba(232, 163, 92, 0.25);
}
/* Tabelle con bordo arrotondato + header glass (pattern RAN) */
.hcm-content table {
    width: 100%; border-collapse: separate; border-spacing: 0; margin: 2rem 0; font-size: 0.95rem;
    border-radius: calc(var(--rg-rad) + 4px); overflow: hidden;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(232, 163, 92, 0.12);
}
.hcm-content th {
    text-align: left; padding: 1rem 1.2rem;
    background: linear-gradient(180deg, rgba(232, 163, 92, 0.16), rgba(232, 163, 92, 0.08));
    color: var(--rg-meas); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em;
    border-bottom: 2px solid rgba(232, 163, 92, 0.3);
}
.hcm-content td { padding: 0.9rem 1.2rem; border-bottom: 1px solid rgba(216, 202, 178, 0.12); }
.hcm-content tr:nth-child(even) td { background: rgba(232, 163, 92, 0.04); }
.hcm-content tbody tr:last-child td { border-bottom: 0; }
.hcm-content tr:hover td { background: rgba(42, 28, 17, 0.4); }
.hcm-content .wp-block-table { overflow-x: auto; border-radius: calc(var(--rg-rad) + 4px); }
.hcm-content hr { border: 0; border-top: 1px dashed var(--rg-line-strong); margin: 3rem 0; }
/* Disclosure affiliati in fondo articolo (standard di rete RAN/ESP) */
.hcm-affiliate-disclosure {
    margin: 2.4rem 0 0; padding: 1rem 1.3rem;
    background: rgba(232, 163, 92, 0.07); border: 1px solid rgba(232, 163, 92, 0.25);
    border-radius: var(--rg-rad); font-size: 0.85rem; line-height: 1.65; color: var(--rg-dim);
}
.hcm-affiliate-disclosure strong { color: var(--rg-mid); }
/* v3.1.3 — colonna di lettura ~745px (pattern RAN: contentSize 72ch):
   testo vincolato, figure escluse (larghezza 880px, come RAN).
   Posizionata dopo le regole esistenti perché i margin auto left/right vincano. */
.hcm-content .entry-content > p,
.hcm-content .entry-content > ul,
.hcm-content .entry-content > ol,
.hcm-content .entry-content > blockquote,
.hcm-content .entry-content > table,
.hcm-content .entry-content > div,
.hcm-content .entry-content > hr,
.hcm-content .entry-content > h2,
.hcm-content .entry-content > h3,
.hcm-content .entry-content > h4,
.hcm-content .entry-content > h5,
.hcm-content .entry-content > h6 {
    max-width: 745px;
    margin-left: auto;
    margin-right: auto;
}
/* la sezione correlate è sorella di entry-content (dentro .hcm-content), non figlia */
.hcm-content .hcm-rr { max-width: 745px; margin-left: auto; margin-right: auto; }
.hcm-archive-head { max-width: var(--rg-max); margin: 0 auto; padding: 3.6rem 2rem 0.6rem; text-align: center; }
.hcm-archive-head h1, .hcm-archive-head .wp-block-query-title { text-align: center; }

/* chip filtro */
.hcm-filter-chip {
    font-family: var(--rg-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--rg-dim); border: 1px solid var(--rg-line); border-radius: 999px;
    padding: 0.5rem 1.1rem;
    display: inline-flex; gap: 0.5rem; align-items: center; transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.hcm-filter-chip:hover { color: var(--rg-ink); border-color: var(--rg-line-strong); text-decoration: none; }
.hcm-filter-chip.is-active { background: var(--rg-meas); color: var(--rg-ink-inv); border-color: var(--rg-meas); }

/* 404 / ricerca */
.hcm-404 { max-width: 720px; margin: 0 auto; padding: 7rem 1.6rem; text-align: center; }
.hcm-404-code { font-family: var(--rg-serif); font-style: italic; font-size: clamp(4rem, 14vw, 9rem); font-weight: 700; color: transparent; -webkit-text-stroke: 1.5px var(--rg-line-strong); line-height: 1; }
.hcm-search-item input, .hcm-search-box input {
    background: var(--rg-bg2); color: var(--rg-ink); border: 1px solid var(--rg-line);
    border-radius: 999px; padding: 0.9rem 1.3rem; font-family: var(--rg-mono); width: 100%;
}
.hcm-search-item input:focus, .hcm-search-box input:focus { outline: 2px solid var(--rg-meas); outline-offset: 1px; border-color: transparent; }

/* ============================================================
   FOOTER — titoli di coda
   ============================================================ */
.hcm-footer { background: var(--rg-bg2); border-top: 1px solid var(--rg-line); }
.hcm-footer-grid { max-width: var(--rg-max); margin: 0 auto; padding: 3.8rem 2rem 2.2rem; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 1000px) { .hcm-footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 720px) { .hcm-footer-grid { grid-template-columns: 1fr 1fr; } }
.hcm-footer h4 { font-family: var(--rg-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rg-dim); margin: 0 0 0.9rem; font-weight: 400; }
.hcm-footer a { color: var(--rg-dim); display: block; padding: 0.22rem 0; font-size: 0.94rem; transition: color 0.2s; }
.hcm-footer a:hover { color: var(--rg-meas); text-decoration: none; }
.hcm-footer-links { margin: 0; }
.hcm-footer-grid .wp-block-column:first-child h4 { font-family: var(--rg-serif); font-size: 1.18rem; letter-spacing: -0.01em; color: var(--rg-ink); font-weight: 700; }
/* (il brand a piè di pagina ha già "Lab" nel markup: nessun ::after qui, altrimenti "Lab Lab") */
.hcm-footer-tagline { color: var(--rg-dim); font-size: 0.94rem; max-width: 34ch; }
.hcm-footer-bottom {
    max-width: var(--rg-max); margin: 0 auto; padding: 1.2rem 2rem 2.4rem;
    border-top: 1px solid var(--rg-line);
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    font-family: var(--rg-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--rg-dim);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .hcm-header { padding: 0.9rem 1.2rem 0; }
    .hcm-nav-list { gap: 1.2rem; }
    .hcm-header-cta { display: none; }
    .rg-section { padding-left: 1.2rem; padding-right: 1.2rem; }
    .hcm-footer-grid { padding-left: 1.2rem; padding-right: 1.2rem; }
    .hcm-footer-bottom { padding-left: 1.2rem; padding-right: 1.2rem; }
}
@media (max-width: 640px) {
    .hcm-nav { display: none; }
    .rg-hud > div { padding: 0.85rem 1rem; }
}

/* ============================================================
   ACCESSIBILITÀ
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
    .rg-reveal { opacity: 1; transform: none; }
    .rg-room-plan svg { transform: none !important; }
    .rg-shot { transform: none !important; }
    .rg-hero-bg-img { animation: none; }
}
:focus-visible { outline: 2px solid var(--rg-meas); outline-offset: 2px; }
.screen-reader-text, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ================================================================
   v3.2.0 — CONFIGURATORE SALA 3D (three.js self-hosted)
   Layout side già in .rg-room-wrap / .rg-room-side (2D riusato).
   ================================================================ */
.rg-room3d-view {
    position: relative;
    min-width: 0; /* griglia: lascia restringere la colonna (altrimenti il canvas copre il pannello) */
    min-height: 340px;
    width: 100%;
    /* NO aspect-ratio: con height:100% la larghezza verrebbe derivata dall'altezza (16/9) e sfonderebbe la colonna */
    border: 1px solid var(--rg-line);
    border-radius: 4px;
    overflow: hidden;
    background: #0a0705;
    cursor: grab;
    height: 100%;
}
.rg-room3d-view:active { cursor: grabbing; }
.rg-room3d-view canvas[data-rg-canvas] { display: block; width: 100%; height: 100%; }
.rg-room3d-hint {
    position: absolute; left: 12px; bottom: 12px;
    display: flex; align-items: center; gap: 0.55rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--rg-line);
    border-radius: 999px;
    background: rgba(10, 7, 5, 0.72);
    font-family: var(--rg-mono); font-size: 11px; letter-spacing: 0.05em;
    color: var(--rg-dim);
    pointer-events: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.rg-room3d-hint.is-hidden { opacity: 0; }
.rg-room3d-hint svg { width: 13px; height: 13px; stroke: var(--rg-meas); }
.rg-room3d-fallback {
    margin: 0; padding: 1.2rem;
    border: 1px dashed var(--rg-line); border-radius: 4px;
    font-family: var(--rg-mono); font-size: 12.5px; color: var(--rg-dim);
}

@media (max-width: 600px) {
    .rg-room3d-view { aspect-ratio: 4 / 3; min-height: 260px; }
    .rg-readout { grid-template-columns: repeat(2, 1fr) !important; }
}


/* ============================================================
   V3.6.0 — MAGAZINE: featured, categorie, TOC, più letti,
   condivisione, newsletter, banner studio
   Palette estesa: oro champagne + blu elettrico su dark cinematic
   ============================================================ */
:root { --rg-gold: #d9c08c; --rg-gold-soft: rgba(217,192,140,.14); --rg-electric: #4f8ff7; }

/* ---- Featured (home) ---- */
.hcm-feat { display: grid; grid-template-columns: 1.45fr 1fr; gap: 1.1rem; max-width: var(--rg-max); margin: 0 auto; }
.hcm-fcard { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 460px; border-radius: var(--rg-rad-lg); overflow: hidden; text-decoration: none; color: var(--rg-ink); border: 1px solid var(--rg-line); isolation: isolate; }
.hcm-fcard-media { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; transform: scale(1.02); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.hcm-fcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,8,6,.05) 30%, rgba(12,8,6,.82) 72%, rgba(12,8,6,.96)); }
.hcm-fcard:hover .hcm-fcard-media { transform: scale(1.07); }
.hcm-fcard-body { padding: 1.8rem 1.8rem 1.6rem; display: flex; flex-direction: column; gap: .55rem; }
.hcm-fcard-cat { align-self: flex-start; font: 600 .68rem/1 var(--rg-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--rg-gold); border: 1px solid var(--rg-line-strong); padding: .42em .7em; border-radius: 999px; background: rgba(12,8,6,.45); backdrop-filter: blur(4px); }
.hcm-fcard h3 { font-family: var(--rg-serif); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.14; margin: 0; }
.hcm-fcard p { color: var(--rg-mid); margin: 0; font-size: .95rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hcm-fcard-meta { font: 500 .72rem/1 var(--rg-mono); color: var(--rg-dim); letter-spacing: .06em; }
.hcm-feat-side { display: flex; flex-direction: column; gap: 1.1rem; }
.hcm-frow { display: flex; gap: .95rem; align-items: center; text-decoration: none; color: var(--rg-ink); background: var(--rg-panel); border: 1px solid var(--rg-line); border-radius: var(--rg-rad); padding: .85rem; transition: border-color .25s, transform .25s; flex: 1; }
.hcm-frow:hover { border-color: var(--rg-line-strong); transform: translateX(4px); }
.hcm-frow-img { flex: 0 0 108px; height: 82px; border-radius: 12px; background-size: cover; background-position: center; }
.hcm-frow-body { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.hcm-frow-cat { font: 600 .62rem/1 var(--rg-mono); letter-spacing: .13em; text-transform: uppercase; color: var(--rg-meas); }
.hcm-frow h3 { font-size: .98rem; line-height: 1.3; margin: 0; font-weight: 700; }
.hcm-frow-meta { font: 500 .68rem/1 var(--rg-mono); color: var(--rg-dim); }

/* ---- Griglia argomenti ---- */
.hcm-catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: .8rem; max-width: var(--rg-max); margin: 0 auto; }
.hcm-catcell { display: flex; flex-direction: column; gap: .3rem; text-decoration: none; color: var(--rg-ink); padding: 1.05rem 1.1rem; border: 1px solid var(--rg-line); border-radius: var(--rg-rad); background: linear-gradient(160deg, var(--rg-panel), rgba(28,20,16,.4)); transition: border-color .25s, box-shadow .25s, transform .25s; }
.hcm-catcell:hover { border-color: var(--rg-gold); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.4); }
.hcm-catcell .cc-n { font: 600 .64rem/1 var(--rg-mono); color: var(--rg-gold); letter-spacing: .16em; }
.hcm-catcell .cc-l { font-weight: 700; font-size: .95rem; line-height: 1.25; }
.hcm-catcell .cc-c { font: 500 .68rem/1 var(--rg-mono); color: var(--rg-dim); }

/* ---- Banner studio ---- */
.hcm-studio-banner { position: relative; margin: 3rem auto 0; max-width: var(--rg-max); padding: 0 1rem; }
.hcm-studio-banner .hsb-inner { position: relative; overflow: hidden; border-radius: var(--rg-rad-lg); border: 1px solid var(--rg-line-strong); padding: clamp(2.2rem, 5vw, 3.6rem) clamp(1.4rem, 4vw, 3.4rem); background: radial-gradient(1100px 420px at 12% -10%, rgba(79,143,247,.16), transparent 60%), radial-gradient(900px 420px at 95% 115%, rgba(232,163,92,.18), transparent 55%), linear-gradient(140deg, #100b08, #0c0806 60%); }
.hcm-studio-banner::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 42px, rgba(217,192,140,.05) 42px 43px); }
.hcm-studio-banner h2 { font-family: var(--rg-serif); font-size: clamp(1.7rem, 3.6vw, 2.7rem); margin: .5rem 0 .8rem; }
.hsb-sub { color: var(--rg-mid); max-width: 60ch; line-height: 1.6; }
.hsb-stats { display: flex; flex-wrap: wrap; gap: 1.6rem; margin: 1.3rem 0 1.6rem; }
.hsb-stats span { display: flex; flex-direction: column; gap: .3rem; font: 500 .74rem/1.2 var(--rg-mono); color: var(--rg-dim); letter-spacing: .05em; }
.hsb-stats b { font: 700 1.15rem/1 var(--rg-mono); color: var(--rg-gold); }
.hsb-cta { box-shadow: 0 10px 34px rgba(79,143,247,.25); }

/* ---- TOC articoli ---- */
.hcm-toc { border: 1px solid var(--rg-line); border-left: 3px solid var(--rg-gold); border-radius: 14px; background: var(--rg-gold-soft); padding: 1rem 1.3rem; margin: 1.6rem 0 2rem; font-size: .9rem; }
.hcm-toc-t { font: 600 .68rem/1 var(--rg-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--rg-gold); margin: 0 0 .6rem; }
.hcm-toc ol { margin: 0; padding-left: 1.15rem; columns: 2; column-gap: 2rem; }
.hcm-toc li { margin: .28rem 0; break-inside: avoid; }
.hcm-toc li.toc-lv3 { font-size: .84rem; color: var(--rg-dim); }
.hcm-toc a { color: var(--rg-mid); text-decoration: none; border-bottom: 1px dotted transparent; transition: color .2s; }
.hcm-toc a:hover { color: var(--rg-gold); }
.hcm-content h2[id], .hcm-content h3[id] { scroll-margin-top: 90px; }
.hcm-toc a.is-cur { color: var(--rg-gold); font-weight: 700; }

/* ---- Più letti ---- */
.hcm-mostread { border: 1px solid var(--rg-line); border-radius: var(--rg-rad); background: var(--rg-panel); padding: 1.15rem 1.2rem; }
.hcm-mostread-t { font: 600 .68rem/1 var(--rg-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--rg-gold); margin: 0 0 .8rem; }
.hcm-mostread ol { list-style: none; margin: 0; padding: 0; counter-reset: mr; }
.hcm-mostread li + li { border-top: 1px dashed var(--rg-line); }
.hcm-mostread a { display: grid; grid-template-columns: 34px 1fr; gap: .15rem .55rem; text-decoration: none; color: var(--rg-ink); padding: .6rem 0; align-items: baseline; }
.hcm-mostread .mr-n { grid-row: span 2; font: 700 1.05rem/1 var(--rg-mono); color: var(--rg-meas); opacity: .8; }
.hcm-mostread .mr-t { font-size: .88rem; font-weight: 600; line-height: 1.3; }
.hcm-mostread .mr-m { font: 500 .66rem/1 var(--rg-mono); color: var(--rg-dim); }
.hcm-side-cta { margin-top: 1rem; border: 1px solid var(--rg-line-strong); border-radius: var(--rg-rad); padding: 1.1rem 1.2rem; background: linear-gradient(160deg, rgba(79,143,247,.12), transparent); }
.hcm-side-cta-t { font-family: var(--rg-serif); font-size: 1.1rem; margin: 0 0 .7rem; }
.hcm-single-side { display: flex; flex-direction: column; }
/* v3.6.9: il blocco fisso a sinistra (left 24px, larghezza 250px) sovrappone il
   testo centrato da 880px finche' il bordo sinistro della colonna ((vw-880)/2)
   non resta oltre 274px, cioe' sopra ~1430px. Sotto la soglia la sidebar resta
   in flusso, dopo i tag in fondo all'articolo. */
@media (min-width: 1440px) {
	.hcm-single-side { position: fixed; left: max(1.5rem, calc(50% - 790px)); top: 220px; width: 250px; z-index: 5; }
	.hcm-single-side:empty { display: none; }
}
/* archivio: layout con sidebar */
@media (min-width: 1000px) {
	.hcm-archive-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 2rem; align-items: start; max-width: var(--rg-max); margin-left: auto; margin-right: auto; padding-left: 2rem !important; padding-right: 2rem !important; }
	.hcm-archive-layout .wp-block-query.hcm-grid { padding: 0; max-width: none; width: 100%; min-width: 0; }
	.hcm-archive-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1rem; }
}
.hcm-archive-side:empty { display: none; }
/* FIX v3.6.28 griglia /schede/: la nav dei filtri, iniettata prima della query,
   finiva coloccupare la 1a colonna della grid (main+sidebar) e spostava le card
   nella colonna da 300px → card da 85px. La nav àncora la colonna principale,
   la query resta in colonna 1 e la sidebar spanninga su entrambe le righe. */
.hcm-archive-layout:has(> .hcm-filter) { grid-template-rows: auto 1fr; }
.hcm-archive-layout > .hcm-filter { grid-column: 1; grid-row: 1; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.hcm-archive-layout > .wp-block-query.hcm-grid { grid-column: 1; grid-row: 2; }
.hcm-archive-layout > .hcm-archive-side { grid-column: 2; grid-row: 1 / span 2; }
/* Con la sidebar attiva la griglia card passa a 2 colonne (820px / 3 = troppo stretto). */
@media (min-width: 1000px) {
    .hcm-archive-layout > .wp-block-query.hcm-grid .wp-block-post-template {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
/* Riga modello + gruppo nelle card scheda (prima erano senza stile). */
.hcm-card-spec { font-family: var(--rg-mono); font-size: 0.78rem; color: var(--rg-meas); letter-spacing: 0.04em; margin: -0.25rem 0 0.55rem; }
.hcm-card-group { font-family: var(--rg-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rg-dim); margin: 0 0 0.7rem; }
.hcm-card-body h2 + .hcm-card-spec, .hcm-card-body h3 + .hcm-card-spec { margin-top: 0.1rem; }
@media (max-width: 999px) { .hcm-archive-side { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; } }

/* ---- Chip categorie (archivi) ---- */
.hcm-cat-desc { max-width: 62ch; margin: .75rem 0 0; color: var(--wp--preset--color--mist, #9aa4ad); font-size: .95rem; line-height: 1.6; }
.hcm-cat-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1rem; }
.hcm-cat-strip .chip { font: 600 .72rem/1 var(--rg-mono); letter-spacing: .05em; text-decoration: none; color: var(--rg-mid); border: 1px solid var(--rg-line); padding: .55em .9em; border-radius: 999px; transition: all .2s; background: var(--rg-panel); }
.hcm-cat-strip .chip:hover { color: var(--rg-ink); border-color: var(--rg-line-strong); }
.hcm-cat-strip .chip.is-cur { color: var(--rg-ink-inv); background: var(--rg-gold); border-color: var(--rg-gold); }

/* ---- Sharing ---- */
.hcm-share { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; align-items: center; }
.hcm-share .sh { font: 600 .72rem/1 var(--rg-mono); letter-spacing: .05em; text-decoration: none; color: var(--rg-mid); border: 1px solid var(--rg-line); padding: .6em .95em; border-radius: 999px; transition: all .2s; background: transparent; cursor: pointer; }
.hcm-share .sh:hover { color: var(--rg-ink); border-color: var(--rg-electric); box-shadow: 0 0 0 3px rgba(79,143,247,.15); }
.hcm-share .sh.is-ok { color: #79d99b; border-color: #79d99b; }

/* ---- Newsletter ---- */
.hcm-news { margin: 4.5rem auto 0; max-width: var(--rg-max); padding: 0 1rem 1rem; }
.hcm-news-in { border: 1px solid var(--rg-line-strong); border-radius: var(--rg-rad-lg); padding: clamp(2rem, 4.5vw, 3.2rem); text-align: center; background: radial-gradient(700px 260px at 50% -40%, rgba(232,163,92,.14), transparent 70%), var(--rg-bg2); }
.hcm-news-in h2 { font-family: var(--rg-serif); font-size: clamp(1.5rem, 3vw, 2.2rem); margin: .4rem 0 .5rem; }
.hcm-news-sub { color: var(--rg-mid); max-width: 52ch; margin: 0 auto 1.4rem; line-height: 1.55; }
.hcm-news-form { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.hcm-news-form input[type=email] { min-width: min(340px, 80vw); background: var(--rg-panel); border: 1px solid var(--rg-line); border-radius: 999px; color: var(--rg-ink); padding: .85rem 1.2rem; font: inherit; }
.hcm-news-form input[type=email]:focus { outline: none; border-color: var(--rg-gold); }
.hcm-news-msg { width: 100%; margin: .3rem 0 0; font-size: .85rem; color: var(--rg-meas); }
.hcm-news-legal { font-size: .72rem; color: var(--rg-dim); margin: 1rem 0 0; }

/* ---- Responsive ---- */
@media (max-width: 970px) {
	.hcm-feat { grid-template-columns: 1fr; }
	.hcm-fcard { min-height: 380px; }
}
@media (max-width: 640px) {
	.hcm-toc ol { columns: 1; }
	.hcm-fcard h3 { font-size: 1.25rem; }
	.hsb-stats { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
	.hcm-fcard-media, .hcm-frow, .hcm-catcell { transition: none; }
}

/* ---- V3.6.1 nav magazine unificata ---- */
/* V3.6.4: la nav NON ha pannello proprio — il velo unico e' su .hcm-header::before */
.hcm-mnav { position: static; z-index: auto; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; -webkit-mask-image: none; mask-image: none; }

.hcm-mnav-in { max-width: var(--rg-max); margin: 0 auto; padding: .55rem .2rem 1.15rem; display: flex; align-items: center; justify-content: flex-start; flex-wrap: nowrap; gap: .1rem; overflow: visible; scrollbar-width: none; }
.hcm-mnav-in::-webkit-scrollbar { display: none; }
.hcm-mnav a.mn { flex: 0 0 auto; display: inline-flex; align-items: center; height: 29px; font: 600 .62rem/1 var(--rg-mono); letter-spacing: .02em; text-transform: uppercase; text-decoration: none; color: var(--rg-mid); padding: 0 .48em; border-radius: 999px; border: 1px solid transparent; transition: color .2s, border-color .2s, background .2s; white-space: nowrap; }
.hcm-mnav a.mn:hover { color: var(--rg-ink); }
.hcm-mnav a.mn.is-cur { color: var(--rg-gold); border-color: var(--rg-line-strong); background: var(--rg-gold-soft); }
.hcm-mnav a.mn-studio { color: var(--rg-ink-inv); background: var(--rg-gold); border-color: var(--rg-gold); font-weight: 700; }
.hcm-mnav a.mn-studio:hover { color: var(--rg-ink-inv); filter: brightness(1.08); }
.hcm-mnav a.mn-studio.is-cur { filter: brightness(1.12); box-shadow: 0 0 0 3px var(--rg-gold-soft); }
.hcm-mnav-spacer { flex: 1 1 auto; min-width: .4rem; }
.hcm-mnav-search { flex: 0 0 auto; position: relative; display: flex; align-items: center; }
.hcm-mnav-search input { height: 30px; background: var(--rg-panel); border: 1px solid var(--rg-line); border-radius: 999px; color: var(--rg-ink); font: 500 .76rem/1 var(--rg-mono); padding: 0 1.7rem 0 .8rem; width: 112px; transition: width .3s, border-color .2s; }
.hcm-mnav-search input:focus { outline: none; width: 210px; border-color: var(--rg-gold); }
.hcm-mnav-search input::placeholder { color: var(--rg-dim); }
.hcm-mnav-search svg { position: absolute; right: .65rem; color: var(--rg-dim); pointer-events: none; }
.hcm-mnav-lang { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .25rem; border: 1px solid var(--rg-line); border-radius: 999px; padding: 2px; height: 30px; box-sizing: border-box; }
.hcm-mnav-lang a.mn-lang { display: inline-flex; align-items: center; gap: .35em; height: 100%; padding: 0 .62em; border-radius: 999px; font: 600 .66rem/1 var(--rg-mono); letter-spacing: .04em; text-decoration: none; color: var(--rg-mid); transition: background .2s, color .2s; }
.hcm-mnav-lang a.mn-lang:hover { color: var(--rg-ink); }
.hcm-mnav-lang a.mn-lang.is-cur { background: var(--rg-gold); color: var(--rg-ink-inv); }
.hcm-mnav-lang svg { display: block; }
/* vecchie nav/cta/lingua nell'header: non si usano più */
.hcm-header .hcm-nav, .hcm-header .hcm-header-cta, .hcm-header .hcm-lang { display: none !important; }
@media (max-width: 900px) {
	.hcm-mnav-search input { width: 120px; }
	.hcm-mnav-search input:focus { width: 150px; }
}
/* sotto 1320px la riga non sta: scroll centrato all'avvio, niente taglio (fix margin:auto che rompe lo scroll destro) */
@media (max-width: 1320px) {
	.hcm-mnav-in { overflow-x: auto; justify-content: flex-start; scroll-snap-type: x proximity; scroll-padding-left: 1rem; }
	.hcm-mnav-in > *:first-child { margin-left: auto; }
	.hcm-mnav-in::after { content: ""; flex: 0 0 1px; }
	.hcm-mnav a.mn { scroll-snap-align: center; }
}
@media (max-width: 1120px) {
	/* voci troppe per la riga: scroll morbido con dissolvenza laterale sulle sole voci */
	.hcm-mnav-in { justify-content: flex-start; overflow-x: auto; padding: .55rem 1rem 1.15rem;
		-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 40px), transparent 100%);
		mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 40px), transparent 100%); }
}
@media (max-width: 640px) {
	.hcm-mnav-in { padding: .5rem .8rem 1.1rem; }
	.hcm-mnav-search { display: none; }
}

/* --- Blocco affiliati Amazon (v3.6.14) --- */
.hcm-aff {
	margin: 2.6rem 0 1rem;
	padding: 1.4rem 1.5rem 1.2rem;
	border: 1px solid var(--rg-line, rgba(255,255,255,.09));
	border-radius: 14px;
	background: rgba(255,255,255,.025);
}
.hcm-aff h2 { margin: 0 0 .7rem; font-size: 1.06rem; letter-spacing: .04em; }
.hcm-aff-note { font-size: .8rem; color: var(--rg-mid, #9aa4ab); margin: 0 0 .9rem; line-height: 1.5; }
.hcm-aff-note a { color: var(--rg-mid, #9aa4ab); text-decoration: underline; }
.hcm-aff-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem .9rem; }
.hcm-aff-list li { margin: 0; }
.hcm-aff-list a {
	display: block; font-size: .86rem; line-height: 1.4; padding: .42rem .7rem;
	border: 1px solid var(--rg-line, rgba(255,255,255,.09)); border-radius: 9px;
	color: var(--rg-ink, #f2efe8); text-decoration: none; transition: border-color .18s ease, background .18s ease;
}
.hcm-aff-list a:hover { border-color: var(--rg-gold, #d9c08c); background: rgba(217,192,140,.07); }
.hcm-aff-list a::after { content: " \2197"; color: var(--rg-gold, #d9c08c); font-size: .8em; }
@media (max-width: 640px) { .hcm-aff-list { grid-template-columns: 1fr; } }

/* ---- v3.6.15: badge AI (piccolo, sotto la featured) + link aff in-testo ---- */
/* badge AI pattern RAN/OIB: pill corta "AI" in basso a destra dentro l'immagine */
.hcm-single-hero-img { position: relative; }
.hcm-ai-badge {
    display: inline-flex; align-items: center;
    position: absolute; right: .55rem; bottom: .55rem; z-index: 4;
    font-size: .66rem; font-weight: 600; line-height: 1; letter-spacing: .04em;
    color: #efe6d2; background: rgba(10, 8, 6, .66);
    border: 1px solid rgba(217, 192, 140, .42);
    border-radius: 999px;
    padding: .18rem .5rem;
    cursor: help; pointer-events: auto;
}
/* figure infografiche dentro i contenuti: stesso badge via ::before (zero JS) */
/* copre i wp-block-image quando avranno classe hcm-ai-fig (usarla nei blocchi delle infografiche future) */
.hcm-single-content figure.hcm-ai-fig { position: relative; }
.hcm-single-content figure.hcm-ai-fig::before {
    content: "AI";
    position: absolute; right: .45rem; bottom: .45rem; z-index: 4;
    font-size: .66rem; font-weight: 600; line-height: 1; letter-spacing: .04em;
    color: #efe6d2; background: rgba(10, 8, 6, .66);
    border: 1px solid rgba(217, 192, 140, .42);
    border-radius: 999px;
    padding: .18rem .5rem;
    pointer-events: none;
}
@media (max-width: 600px) {
    .hcm-ai-badge { font-size: .56rem; padding: .14rem .4rem; bottom: .35rem; right: .35rem; }
    .hcm-single-content figure.hcm-ai-fig::before { font-size: .56rem; padding: .14rem .4rem; bottom: .3rem; right: .3rem; }
}
a.hcm-aff-in {
    color: inherit; text-decoration: none;
    border-bottom: 1px dashed rgba(217, 192, 140, .55);
    transition: border-color .18s ease, color .18s ease;
}
a.hcm-aff-in:hover { color: var(--rg-gold, #d9c08c); border-bottom-style: solid; }
a.hcm-aff-in::after { content: " \2197"; font-size: .72em; color: var(--rg-gold, #d9c08c); }

/* ============================================================
   v3.6.17 — "Ultimi take": griglia card premium (no elenco colonna)
   ============================================================ */
.hcm-grid.hcm-takes-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.4rem; width: 100%;
}
a.hcm-take-card { color: inherit; text-decoration: none; }
.hcm-take-card .hcm-card-media { display: block; }
.hcm-take-card .hcm-card-body { display: flex; flex-direction: column; flex: 1; }
.hcm-take-card .hcm-card-title {
    display: block; font-size: 1.28rem; line-height: 1.25; font-weight: 600;
    letter-spacing: -0.01em; color: var(--rg-ink);
    transition: color 0.3s ease;
}
.hcm-take-card:hover .hcm-card-title { color: var(--rg-meas); }
.hcm-take-card .hcm-take-cat { display: inline-block; }
.hcm-take-foot {
    margin-top: auto; padding-top: 1.05rem; display: flex; align-items: center;
    justify-content: space-between; font-family: var(--rg-mono); font-size: 11.5px;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--rg-dim);
}
.hcm-take-go { transition: transform 0.3s ease, color 0.3s ease; color: var(--rg-dim); }
.hcm-take-card:hover .hcm-take-go { color: var(--rg-meas); transform: translateX(6px); }

/* ============================================================
   v3.6.18 — "Inquadra la tua sala": mini-calcolatore sala
   ============================================================ */
.hcm-finder {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(1.4rem, 3vw, 2.6rem); align-items: stretch;
    background: linear-gradient(180deg, rgba(28, 20, 16, 0.7), rgba(12, 8, 6, 0.9));
    border: 1px solid rgba(232, 163, 92, 0.25);
    border-radius: var(--rg-rad-lg, 22px);
    padding: clamp(1.4rem, 3vw, 2.4rem);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
@media (max-width: 860px) { .hcm-finder { grid-template-columns: 1fr; } }
.hcm-finder-controls { display: flex; flex-direction: column; gap: 1.6rem; padding-right: clamp(0.6rem, 2vw, 1.4rem); }
.hcm-finder-field { border: 0; padding: 0; margin: 0; }
.hcm-finder-label {
    display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
    font-family: var(--rg-mono); font-size: 12px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--rg-dim); margin-bottom: 0.7rem;
}
.hcm-finder-dist { color: var(--rg-meas); font-size: 1.05rem; letter-spacing: 0.04em; }
.hcm-finder input[type="range"] {
    -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--rg-meas, #d9c08c) 45%, rgba(217, 192, 140, 0.22) 45%);
    border-radius: 99px; outline-offset: 6px; cursor: pointer;
}
.hcm-finder input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 22px; height: 22px;
    border-radius: 50%; background: var(--rg-bg, #0e1014);
    border: 2px solid var(--rg-meas, #d9c08c); box-shadow: 0 0 18px rgba(217, 192, 140, 0.45);
}
.hcm-finder input[type="range"]::-moz-range-thumb {
    width: 18px; height: 18px; border-radius: 50%; background: var(--rg-bg, #0e1014);
    border: 2px solid var(--rg-meas, #d9c08c); box-shadow: 0 0 18px rgba(217, 192, 140, 0.45);
}
.hcm-finder-scale {
    display: flex; justify-content: space-between; font-family: var(--rg-mono);
    font-size: 10.5px; letter-spacing: 0.1em; color: var(--rg-dim); margin-top: 0.4rem; opacity: 0.75;
}
.hcm-finder-opts { display: flex; flex-direction: column; gap: 0.55rem; }
.hcm-finder-opts label { position: relative; display: block; cursor: pointer; }
.hcm-finder-opts input { position: absolute; opacity: 0; pointer-events: none; }
.hcm-finder-opts span {
    display: block; text-align: center; padding: 0.62rem 0.9rem;
    border: 1px solid rgba(217, 192, 140, 0.25); border-radius: 12px;
    font-size: 0.92rem; color: var(--rg-dim);
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}
.hcm-finder-opts input:checked + span {
    border-color: var(--rg-meas, #d9c08c); color: var(--rg-ink, #f2ede4);
    background: rgba(217, 192, 140, 0.1); box-shadow: 0 0 24px rgba(217, 192, 140, 0.12) inset;
}
.hcm-finder-opts input:focus-visible + span { outline: 2px solid var(--rg-meas, #d9c08c); outline-offset: 2px; }
.hcm-finder-results {
    display: flex; flex-direction: column; gap: 0.9rem;
    border-left: 1px solid rgba(217, 192, 140, 0.18);
    padding-left: clamp(1.6rem, 4vw, 2.8rem); margin-left: clamp(0, 1vw, 0.6rem);
}
@media (max-width: 860px) { .hcm-finder-results { border-left: 0; padding-left: 0; } }
.hcm-finder-res { display: flex; flex-direction: column; gap: 0.15rem; }
.hcm-finder-kicker {
    font-family: var(--rg-mono); font-size: 10.5px; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--rg-dim);
}
.hcm-finder-big { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; color: var(--rg-meas, #d9c08c); letter-spacing: -0.02em; }
.hcm-finder-mid { font-size: 1.06rem; font-weight: 600; color: var(--rg-ink, #f2ede4); }
.hcm-finder-note { font-size: 0.88rem; color: var(--rg-dim); }
.hcm-finder-extra { margin: 0.2rem 0 0; font-size: 0.92rem; color: var(--rg-dim); border-left: 2px solid rgba(217, 192, 140, 0.4); padding-left: 0.8rem; }
.hcm-finder-extra:empty { display: none; }
.hcm-finder-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.6rem; }
.hcm-finder-fine { margin: 0.3rem 0 0; font-size: 0.78rem; color: var(--rg-dim); opacity: 0.8; }
.hcm-finder-fine a { color: var(--rg-dim); }
