/* OmniNeo — home nuova, Fase 1 (05/11/2026). Piano: plans/home-restyling-piano.md.
   Carosello «in evidenza», In turno (6 accessi), Continua, Studio / Desk / Risorse rapide,
   separatori ECG. Logica in js/home-nuova.js. Prefisso hn- per non toccare gli stili esistenti.
   Per tornare alla home di prima: togliere questo foglio, js/home-nuova.js e il blocco #homeNuova. */

.hn { --hn-line: var(--bd, rgba(148,163,184,.16)); --hn-surface: var(--bg-card, rgba(17,31,54,.85)); --hn-surface2: var(--bg-card2, rgba(22,40,74,.85)); }
.hn a { color: inherit; text-decoration: none; }

/* Selettore Medici/Infermieri: versione compatta sotto il logo */
.hero .hp-scelta { height: 184px; margin-top: 4px; }
.hero .hp-nodo { width: 88px; height: 88px; font-size: 14px; }
.hero .hp-med { left: calc(25% - 44px); }
.hero .hp-inf { left: calc(75% - 44px); }
.hero .hp-scelta + #trialBadge, .hero .hp-scelta ~ .hero-search { margin-top: 18px; }

/* ── Carosello ─────────────────────────────────────────────── */
.hn-car { position: relative; margin: 8px 0 6px; border-radius: 18px; overflow: hidden; background: #0b1730;
  border: 1px solid var(--hn-line); box-shadow: 0 18px 50px rgba(0,0,0,.35); outline: none; }
.hn-car:focus-visible { box-shadow: 0 0 0 3px rgba(20,184,166,.6); }
.hc-track { display: flex; transition: transform .55s cubic-bezier(.22,.8,.2,1); touch-action: pan-y; }
.hc-slide { position: relative; flex: 0 0 100%; min-height: 300px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center;
  gap: 24px; padding: 34px 72px 44px; overflow: hidden; isolation: isolate; }
.hc-slide { --kl: color-mix(in srgb, var(--k) 62%, #0b1220); }
.hc-bg { position: absolute; inset: 0; z-index: -2; }
.hc-slide::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6,14,28,.94) 0%, rgba(6,14,28,.78) 55%, rgba(6,14,28,.4) 100%); }
.hc-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--k, #2dd4bf); margin-bottom: 10px; }
.hc-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hc-title { font-size: 28px; line-height: 1.15; margin: 0 0 10px; color: #f8fafc; font-weight: 700; }
.hc-sub { color: #cbd5e1; margin: 0 0 18px; max-width: 52ch; font-size: 15px; line-height: 1.5; }
.hc-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--k, #14b8a6); color: #04121f !important; font-weight: 700;
  padding: 11px 18px; border-radius: 12px; font-size: 15px; }
.hc-cta svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.hc-media { justify-self: end; display: flex; justify-content: flex-end; }
.hc-glyph { width: 190px; height: 190px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%); }
.hc-glyph img { width: 140px; height: 140px; object-fit: contain; filter: drop-shadow(0 0 22px var(--k, #14b8a6)); }
.hc-glyph svg { width: 104px; height: 104px; stroke: var(--k, #14b8a6); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.hc-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
  background: rgba(2,6,23,.55); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 3; padding: 0; }
.hc-arrow:hover { background: rgba(20,184,166,.85); color: #04121f; }
.hc-arrow svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.hc-prev { left: 14px; } .hc-next { right: 14px; }
.hc-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 4px; z-index: 3; }
.hc-play { all: unset; cursor: pointer; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: rgba(255,255,255,.8); margin-right: 4px; }
.hc-play svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hc-play:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
:root[data-theme="light"] .hc-play { color: #334155; }
:root[data-theme="light"] .hc-play:focus-visible { outline-color: #0f766e; }
.hc-dot { all: unset; cursor: pointer; padding: 8px 2px; display: grid; place-items: center; }
.hc-dot i { display: block; width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.35); transition: width .3s, background .3s;
  position: relative; overflow: hidden; }
.hc-dot:focus-visible i { outline: 2px solid #fff; outline-offset: 2px; }
.hc-dot[aria-current="true"] i { width: 28px; background: rgba(255,255,255,.25); }
.hc-dot[aria-current="true"] i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0);
  animation: hn-fill var(--hc-dur, 6s) linear forwards; }
.hn-car.paused .hc-dot i::after { animation-play-state: paused; }
.hn-car.no-auto .hc-dot[aria-current="true"] i::after { animation: none; transform: scaleX(1); }
@keyframes hn-fill { to { transform: scaleX(1); } }

@media (max-width: 700px) {
  .hc-arrow { display: none; }
  .hc-slide { grid-template-columns: 1fr 30%; padding: 22px 18px 44px; gap: 12px; min-height: 270px; }
  .hc-title { font-size: 21px; }
  .hc-sub { font-size: 14px; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hc-cta { padding: 9px 14px; font-size: 14px; }
  .hc-glyph { width: 96px; height: 96px; } .hc-glyph img { width: 76px; height: 76px; } .hc-glyph svg { width: 56px; height: 56px; }
}

/* Tema chiaro: riquadro chiaro, testo scuro */
:root[data-theme="light"] .hn-car { background: #fff; box-shadow: 0 12px 34px rgba(15,23,42,.12); }
:root[data-theme="light"] .hc-slide::after { background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 55%, rgba(255,255,255,.55) 100%); }
:root[data-theme="light"] .hc-title { color: #0b1220; }
:root[data-theme="light"] .hc-sub { color: #334155; }
:root[data-theme="light"] .hc-kicker { color: var(--kl, var(--k)); }
:root[data-theme="light"] .hc-cta { background: var(--kl, var(--k)); color: #fff !important; }
:root[data-theme="light"] .hc-glyph svg { stroke: var(--kl, var(--k)); }
:root[data-theme="light"] .hc-glyph img { filter: none; }
:root[data-theme="light"] .hc-dot i { background: rgba(15,23,42,.22); }
:root[data-theme="light"] .hc-dot[aria-current="true"] i { background: rgba(15,23,42,.15); }
:root[data-theme="light"] .hc-dot[aria-current="true"] i::after { background: #0f766e; }
:root[data-theme="light"] .hc-dot:focus-visible i { outline-color: #0f766e; }

/* ── Sezioni ───────────────────────────────────────────────── */
.hn-sec { margin-top: 26px; }
.hn-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.hn-h h2 { font-size: 20px; margin: 0; color: var(--text); font-weight: 700; }
.hn-h h2 small { font-size: 13px; color: var(--text-muted); font-weight: 400; margin-left: 6px; }
.hn-h a, .hn-h button { font-size: 14px; color: var(--teal); font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }

.hn-quick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.hn-quick a { background: var(--hn-surface); border: 1px solid var(--hn-line); border-radius: 16px; padding: 14px 8px; text-align: center;
  font-size: 13px; font-weight: 600; color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 8px; line-height: 1.25;
  transition: transform .15s, border-color .15s; }
.hn-quick a:hover, .hn-quick a:focus-visible { transform: translateY(-2px); border-color: var(--c); }
.hn-qi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); }
.hn-qi svg { width: 24px; height: 24px; stroke: var(--c); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 700px) { .hn-quick { grid-template-columns: repeat(3, 1fr); } }

/* Continua: i blocchi Ultima consultazione / Recenti / Preferiti esistenti, spostati qui */
.hn-continua .last-visited { max-width: none; }

.hn-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.hn-row::-webkit-scrollbar { display: none; }
.hn-mode { background: var(--hn-surface); border: 1px solid var(--hn-line); border-radius: 18px; padding: 16px; margin-top: 14px; }
.hn-mode-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.hn-mi { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); }
.hn-mi svg { width: 22px; height: 22px; stroke: var(--c); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hn-mode-head h3 { margin: 0; font-size: 18px; color: var(--text); }
.hn-mode-head p { margin: 0; font-size: 13px; color: var(--text-muted); }
.hn-mode-head > a { margin-left: auto; font-size: 14px; color: var(--teal); font-weight: 600; white-space: nowrap; }
.hn-chap { flex: 0 0 84px; scroll-snap-align: start; text-align: center; font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.25; }
.hn-ci { width: 70px; height: 70px; margin: 0 auto 6px; border-radius: 20px; background: var(--hn-surface2); border: 1px solid var(--hn-line);
  display: grid; place-items: center; transition: border-color .15s; }
.hn-chap:hover .hn-ci, .hn-chap:focus-visible .hn-ci { border-color: var(--teal); }
.hn-ci img { width: 54px; height: 54px; object-fit: contain; }
.hn-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-top: 12px; }
.hn-links a { display: flex; align-items: center; gap: 10px; background: var(--hn-surface2); border: 1px solid var(--hn-line); border-radius: 12px;
  padding: 10px 12px; font-size: 14px; font-weight: 600; color: var(--text); transition: border-color .2s, transform .2s, box-shadow .2s; }
.hn-links a:hover, .hn-links a:focus-visible { border-color: var(--c, var(--teal)); transform: translateY(-2px);
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--c, var(--teal)) 60%, transparent); }
.hn-li { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: color-mix(in srgb, var(--c, var(--teal)) 16%, transparent); color: var(--c, var(--teal)); }
.hn-li svg, .hn-lc svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hn-lt { display: block; min-width: 0; }
.hn-lt span { display: block; font-weight: 400; font-size: 12px; color: var(--text-muted); }
.hn-lc { flex: none; margin-left: auto; color: var(--c, var(--teal)); opacity: .55; transition: transform .2s, opacity .2s; }
.hn-links a:hover .hn-lc, .hn-links a:focus-visible .hn-lc { transform: translateX(3px); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hn-links a, .hn-lc { transition: none; } .hn-links a:hover, .hn-links a:focus-visible { transform: none; } }
@media (max-width: 700px) { .hn-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Telefono: icona sopra il testo, freccia in alto a destra; le colonne non possono allargarsi oltre il riquadro */
@media (max-width: 520px) {
  .hn-links a { position: relative; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; min-width: 0; }
  .hn-li { width: 32px; height: 32px; }
  .hn-lt { width: 100%; overflow-wrap: anywhere; }
  .hn-lc { position: absolute; top: 14px; right: 10px; margin: 0; }
}

/* Separatori ECG */
.hn-ecg { height: 40px; margin: 22px 0 -6px; }
.hn-ecg svg { width: 100%; height: 100%; overflow: visible; display: block; }
.hn-ecg-base { fill: none; stroke: rgba(45,212,200,.18); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.hn-ecg-luce { fill: none; stroke: #2dd4c8; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 70 700; animation: hn-ecg 3.2s linear infinite; filter: drop-shadow(0 0 4px #2dd4c8); }
body.percorso-inf .hn-ecg-luce { stroke: #4ade80; filter: drop-shadow(0 0 4px #4ade80); }
body.percorso-inf .hn-ecg-base { stroke: rgba(74,222,128,.18); }
:root[data-theme="light"] .hn-ecg-luce { stroke: #0d9488; filter: none; }
:root[data-theme="light"] .hn-ecg-base { stroke: rgba(13,148,136,.22); }
@keyframes hn-ecg { from { stroke-dashoffset: 770; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hn-ecg-luce { animation: none; stroke-dasharray: none; opacity: .5; }
  .hc-track { transition: none; }
}

/* Barra «Novità» e riquadro «Articolo della settimana»: il contenuto ora passa dal carosello */
#discoveryBar, #artSett { display: none !important; }

/* Schede con immagine o video (data/home-evidenza.json) */
.hc-mbox { position: relative; }
.hc-mbox video, .hc-mbox img { display: block; border-radius: 12px; box-shadow: 0 12px 34px rgba(0,0,0,.45); background: #000; object-fit: cover; }
.is-video .hc-mbox video { width: 100%; max-width: 420px; aspect-ratio: 16/9; }
.is-reel .hc-mbox video { height: 250px; aspect-ratio: 9/16; }
.is-foto .hc-mbox img { height: 250px; aspect-ratio: 4/5; background: #fff; }
.is-video .hc-media { justify-self: stretch; }
.hc-badge { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 700; letter-spacing: .5px; background: rgba(0,0,0,.65); color: #fff; padding: 3px 8px; border-radius: 6px; }
@media (max-width: 700px) {
  /* telefono: il media resta a destra, ritagliato in verticale, così il carosello non si allunga */
  .hc-slide.is-video, .hc-slide.is-reel, .hc-slide.is-foto { grid-template-columns: 1fr 36%; }
  .hc-media .hc-mbox { width: 100%; }
  .is-video .hc-mbox video, .is-reel .hc-mbox video, .is-foto .hc-mbox img { height: auto; width: 100%; max-width: none; aspect-ratio: 4/5; max-height: 210px; }
}
:root[data-theme="light"] .hc-mbox video, :root[data-theme="light"] .hc-mbox img { box-shadow: 0 10px 26px rgba(15,23,42,.18); }

/* Fila dei capitoli scorrevole: frecce (mouse), sfumatura sui bordi, trascinamento */
.hn-rowwrap { position: relative; }
.hn-rowwrap .hn-row { cursor: grab; }
.hn-rowwrap .hn-row.hn-drag { cursor: grabbing; scroll-snap-type: none; }
.hn-rowwrap .hn-row.hn-drag a { pointer-events: none; }
.hn-rowwrap::before, .hn-rowwrap::after { content: ""; position: absolute; top: 0; bottom: 6px; width: 36px; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .2s; }
.hn-rowwrap::before { left: 0; background: linear-gradient(90deg, var(--hn-surface), transparent); }
.hn-rowwrap::after { right: 0; background: linear-gradient(270deg, var(--hn-surface), transparent); }
.hn-rowwrap.hn-fade-sx::before, .hn-rowwrap.hn-fade-dx::after { opacity: 1; }
.hn-scroll { position: absolute; top: 22px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; padding: 0; cursor: pointer;
  display: grid; place-items: center; border: 1px solid var(--hn-line); background: var(--hn-surface2); color: var(--text); box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.hn-scroll[hidden] { display: none; }
.hn-scroll svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.hn-scroll:hover, .hn-scroll:focus-visible { border-color: var(--teal); color: var(--teal); }
.hn-sx { left: -6px; } .hn-dx { right: -6px; }
:root[data-theme="light"] .hn-scroll { background: #fff; box-shadow: 0 4px 12px rgba(15,23,42,.15); }
@media (hover: none) { .hn-scroll { display: none !important; } }

/* Griglia dei capitoli e «Accesso rapido» vecchi: tolti dalla vista (05/11/2026). La griglia resta nel codice
   perché da lì si costruisce il riquadro Studio. */
.hn-vecchia { display: none !important; }

/* «Vedi tutti»: la fila diventa la griglia completa dei capitoli */
.hn-mode-head > .hn-tutti-btn { margin-left: auto; font: inherit; font-size: 14px; color: var(--teal); font-weight: 600; background: none; border: 0; padding: 4px 0; cursor: pointer; white-space: nowrap; }
.hn-studio { scroll-margin-top: calc(70px + env(safe-area-inset-top)); }
.hn-tutti .hn-row { flex-wrap: wrap; overflow: visible; justify-content: flex-start; row-gap: 14px; cursor: auto; }
.hn-tutti .hn-chap { flex: 0 0 84px; }
.hn-tutti .hn-scroll, .hn-tutti .hn-rowwrap::before, .hn-tutti .hn-rowwrap::after { display: none !important; }

/* Assistente AI dentro la casella di ricerca, a destra (05/11/2026) */
.hero .search-wrapper .search-input { padding-right: 78px; }
.hn-chiedi { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); z-index: 2; display: inline-flex; align-items: center; gap: 5px;
  height: 34px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; color: #ede9fe;
  background: rgba(167,139,250,.16); border: 1px solid rgba(167,139,250,.45); transition: background .15s, border-color .15s; }
.hn-chiedi svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hn-chiedi:hover, .hn-chiedi:focus-visible { background: rgba(167,139,250,.28); border-color: #a78bfa; }
:root[data-theme="light"] .hn-chiedi { color: #5b21b6; background: rgba(109,40,217,.08); border-color: rgba(109,40,217,.35); }

/* Etichetta IA sui video del carosello e lettore del video completo (05/11) */
.hc-ia { position: absolute; left: 6px; right: 6px; bottom: 6px; font-size: 10px; font-weight: 600; line-height: 1.25; text-align: center;
  background: rgba(0,0,0,.66); color: #fff; padding: 3px 6px; border-radius: 6px; }
button.hc-cta { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.hn-lettore { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(2,6,15,.9); overflow: hidden; }
.hn-lettore[open] { display: flex; align-items: center; justify-content: center; }
.hn-lettore::backdrop { background: rgba(2,6,15,.6); }
.hn-lettore-box { display: flex; flex-direction: column; align-items: center; padding: 0 12px; }
.hn-lettore video { display: block; width: auto; height: auto; max-width: min(92vw, 480px);
  max-height: calc(100vh - 130px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  max-height: calc(100dvh - 130px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  aspect-ratio: 9 / 16; border-radius: 14px; background: #000; }
.hn-lettore-x { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: 14px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); background: rgba(15,23,42,.85); color: #fff; cursor: pointer; display: grid; place-items: center; z-index: 2; }
.hn-lettore-x svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.hn-lettore-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hn-lettore-ia { margin: 8px 0 0; font-size: 12px; color: #e2e8f0; text-align: center; }

/* Area infermieri (05/11): fila sopra Studio solo con il percorso Infermieri; le icone non compaiono più sopra il carosello */
.hn-inf { display: none; }
body.percorso-inf .hn-inf { display: block; }
body.percorso-inf .hp-aree, .hp-aree { display: none !important; }
.hn-ci-svg { display: grid; place-items: center; color: #22c55e; background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.3); }
.hn-ci-svg svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hn-inf .hn-chap:hover .hn-ci, .hn-inf .hn-chap:focus-visible .hn-ci { border-color: #22c55e; }
:root[data-theme="light"] .hn-ci-svg { color: #15803d; background: rgba(21,128,61,.08); border-color: rgba(21,128,61,.25); }
.hn-inf { scroll-margin-top: 64px; }

/* Logo della home (05/11): l'anello esterno (.logo-ring-3, inset -42px) sporgeva 6px oltre il margine di 36px e toccava il titolo */
body .logo-scene { margin-bottom: 54px; }

/* Icone dei capitoli restaurate (06/11/2026, assets/capitoli/): sfondo trasparente, neon pensato per il fondo scuro.
   In tema chiaro il tasto dei capitoli resta blu-notte, altrimenti il bagliore si sbiadisce sul bianco */
:root[data-theme="light"] .hn-studio .hn-ci { background: #0f1b32; border-color: rgba(15,27,50,.35); }
:root[data-theme="light"] .hc-glyph:has(img[src*="assets/capitoli/"]) { background: radial-gradient(circle, #16284a 0%, #0f1b32 70%); }

/* Foto di sfondo nelle schede del carosello (06/11/2026, js/home-nuova.js SFONDI, assets/home/sfondi/).
   La foto ha il soggetto a destra; la velatura copre la parte del testo e lascia vedere il soggetto */
.hc-foto { background-size: cover; background-position: right center; background-repeat: no-repeat; filter: brightness(.78) saturate(.9); }
.is-sfondo::after { background: linear-gradient(90deg, rgba(6,14,28,.95) 0%, rgba(6,14,28,.86) 38%, rgba(6,14,28,.35) 70%, rgba(6,14,28,.08) 100%); }
:root[data-theme="light"] .hc-foto { filter: none; }
:root[data-theme="light"] .is-sfondo::after { background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 38%, rgba(255,255,255,.3) 70%, rgba(255,255,255,0) 100%); }
@media (max-width: 700px) {
  .is-sfondo::after { background: linear-gradient(90deg, rgba(6,14,28,.94) 0%, rgba(6,14,28,.84) 62%, rgba(6,14,28,.45) 100%); }
  :root[data-theme="light"] .is-sfondo::after { background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 62%, rgba(255,255,255,.4) 100%); }
}
/* Schede con video o immagine propria: la foto si vede dietro al video, appena ammorbidita;
   la velatura copre la parte del testo come nelle altre schede */
.is-tenue .hc-foto { filter: blur(1.5px) brightness(.8) saturate(.9); transform: scale(1.02); }
.is-tenue::after { background: linear-gradient(90deg, rgba(6,14,28,.95) 0%, rgba(6,14,28,.84) 42%, rgba(6,14,28,.4) 75%, rgba(6,14,28,.25) 100%); }
:root[data-theme="light"] .is-tenue .hc-foto { filter: blur(1.5px); }
:root[data-theme="light"] .is-tenue::after { background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.88) 42%, rgba(255,255,255,.35) 75%, rgba(255,255,255,.15) 100%); }
@media (max-width: 700px) {
  .is-tenue::after { background: linear-gradient(90deg, rgba(6,14,28,.92) 0%, rgba(6,14,28,.8) 60%, rgba(6,14,28,.45) 100%); }
  :root[data-theme="light"] .is-tenue::after { background: linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.85) 60%, rgba(255,255,255,.4) 100%); }
}
