/* ============================================================
   CentoxCento VOD — unico foglio di stile. Token e regole da DESIGN.md.
   ============================================================ */
/* Inter ospitato qui (niente richieste a Google Fonts): font variabile 400-800, licenza in assets/fonts/OFL.txt */
@font-face { font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/inter-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/inter-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #111111;
  --surface: #121212;
  --surface-2: #1B1B1B;
  --scrim: rgba(10, 10, 10, .98);
  --border: rgba(84, 84, 84, .48);
  --border-hover: rgba(84, 84, 84, .65);
  --blue: #0C77BD;
  --yellow: #FFE500;
  --ink: #000000;
  --text: #FFFFFF;
  --text-muted: rgba(235, 235, 235, .64);
  --danger: #E80000;
  --grad-play: linear-gradient(95.47deg, #FFE500 0%, #FFB300 42.71%, #FA3A19 100%);
  --grad-account: linear-gradient(95.47deg, #5BD2FF 0%, #1E9FE0 42.71%, #0C77BD 100%);
  --grad-neutral: linear-gradient(95.47deg, #3A3F43 0%, #2C3134 45.5%, #1D1E1F 100%);
  --shadow-btn: 0 6px 0 rgba(0, 0, 0, .45);
  --shadow-btn-lg: 0 8px 0 rgba(0, 0, 0, .45);
  --shadow-card: 0 4px 0 rgba(0, 0, 0, .35);
  --r-sm: 3px;
  --r: 6px;
  --gutter: 1rem;
  --max: 1280px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
@media (min-width: 768px) { :root { --gutter: 2rem; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.6 var(--font);
  min-height: 100vh; display: flex; flex-direction: column;
}
body.has-gate { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.2; }
h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }
@media (min-width: 768px) { h1 { font-size: 2.25rem; line-height: 1.1; letter-spacing: -.02em; } }
p { margin: 0 0 1rem; max-width: 68ch; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--ink); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.page { flex: 1; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 860px; padding-top: 3rem; padding-bottom: 5rem; }

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .875rem 1.75rem; border-radius: var(--r); border: 2px solid var(--ink);
  font-weight: 700; font-size: 1.125rem; line-height: 1.2; text-decoration: none;
  transition: transform 80ms, box-shadow 80ms; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--play { background: var(--grad-play); color: var(--ink); box-shadow: var(--shadow-btn); }
.btn--account { background: var(--grad-account); color: var(--ink); box-shadow: var(--shadow-btn); }
.btn--neutral { background: var(--grad-neutral); color: var(--text); box-shadow: var(--shadow-card); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); box-shadow: none; }
.btn--lg { padding: 1rem 2rem; box-shadow: var(--shadow-btn-lg); }
.btn--play:active, .btn--account:active { transform: translateY(6px); box-shadow: 0 0 0 rgba(0,0,0,0); }
.btn--neutral:active { transform: translateY(4px); box-shadow: 0 0 0 rgba(0,0,0,0); }
.btn--sm { padding: .5rem 1rem; font-size: .9375rem; }

/* ---------- age gate ---------- */
.gate { position: fixed; inset: 0; z-index: 60; background: var(--scrim); display: grid; place-items: center; padding: var(--gutter); overflow: auto; }
.gate__panel { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-btn-lg); padding: 0 2rem 2rem; max-width: 560px; width: 100%; text-align: center; }
.gate__logo { margin: 2rem auto 1rem; width: 180px; }
.gate__eyebrow { color: var(--yellow); font-weight: 700; margin: 0 0 .5rem; }
.gate__panel h1 { font-size: 1.5rem; margin-bottom: 1rem; }
.gate__panel p { margin-left: auto; margin-right: auto; color: var(--text-muted); font-size: .9375rem; }
.gate__actions { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.gate__leave { color: var(--text-muted); }
.gate__legal { font-size: .875rem; margin: 0 auto .5rem; }
.gate__legal a { color: var(--text); text-decoration: underline; }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar__inner { position: relative; max-width: var(--max); margin: 0 auto; height: 64px; padding: 0 var(--gutter); display: flex; align-items: center; gap: .5rem; }
.topbar__brand { flex: none; margin-right: auto; }
.topbar__brand img { width: 120px; height: auto; }
.topbar__icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; background: none; border: 1px solid transparent; border-radius: var(--r); color: var(--text); }
.topbar__icon:hover { border-color: var(--border); text-decoration: none; }
.topbar__toggle { margin-left: -.5rem; }
.topbar__toggle .i-close, .topbar__toggle[aria-expanded="true"] .i-open { display: none; }
.topbar__toggle[aria-expanded="true"] .i-close { display: inline; }
.topbar__actions { display: flex; align-items: center; gap: .5rem; }
.topbar__search { display: inline-flex; align-items: center; gap: .625rem; height: 44px; padding: 0 .625rem; background: none; border: 1px solid transparent; border-radius: var(--r); color: var(--text); }
.topbar__search:hover { border-color: var(--border); }
.topbar__search-t, .topbar__search kbd, .topbar__wide { display: none; }
.topbar__search kbd { font: 700 .75rem/1 var(--font); color: var(--text-muted); border: 1px solid var(--border); border-radius: var(--r-sm); padding: .25rem .4rem; }
.topbar__actions .btn--sm { padding: .5rem 1rem; }

/* menu: tendina a tutta larghezza sotto i 1024px */
.nav { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 64px); overflow: auto; background: var(--surface); border-bottom: 2px solid var(--ink); box-shadow: var(--shadow-card); padding: .5rem var(--gutter) 1.25rem; flex-direction: column; gap: .125rem; }
.nav.is-open { display: flex; }
body.nav-open { overflow: hidden; }
.nav__link { display: flex; align-items: center; gap: .375rem; width: 100%; padding: .75rem .5rem; font-weight: 700; font-size: 1.125rem; border-radius: var(--r-sm); background: none; border: 0; text-align: left; color: var(--text); }
.nav__link:hover { text-decoration: none; background: var(--surface-2); }
.nav__link.is-active { color: var(--yellow); }
.nav__chev { transition: transform .18s; }
.nav__group.is-open > .nav__drop .nav__chev { transform: rotate(180deg); }
.nav__group { position: relative; }
.nav__menu { display: none; }
.nav__group.is-open > .nav__menu { display: block; }
.nav__mega { padding: .25rem .5rem 1rem; }
.nav__group--mega.is-open > .nav__mega { display: grid; gap: 1.25rem; }
.nav__h { margin: 0 0 .375rem; font-size: .875rem; font-weight: 700; color: var(--text-muted); }
.nav__col > a { display: block; padding: .375rem 0; font-weight: 700; }
.nav__col > a:hover, .nav__years a:hover { color: var(--yellow); text-decoration: none; }
.nav__years { display: grid; grid-template-columns: repeat(4, 1fr); gap: .25rem; }
.nav__years a { padding: .375rem .25rem; text-align: center; border: 1px solid var(--border); border-radius: var(--r-sm); font-weight: 700; font-size: .875rem; }
.nav__tags { display: flex; flex-wrap: wrap; gap: .375rem; }
.nav__tags a { padding: .3125rem .75rem; border: 1px solid var(--border); border-radius: 9999px; background: var(--surface-2); font-weight: 700; font-size: .875rem; white-space: nowrap; }
.nav__tags a:hover { border-color: var(--yellow); color: var(--yellow); text-decoration: none; }
.nav__extra { margin-top: .5rem; padding-top: .5rem; border-top: 1px solid var(--border); }
.nav__account { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; padding: .75rem 0 0; }
.nav__account .btn { padding: .75rem 1rem; font-size: 1rem; }

/* account */
.acct__btn { display: flex; align-items: center; gap: .5rem; height: 44px; padding: 0 .5rem; background: none; border: 1px solid transparent; border-radius: var(--r); color: var(--text); text-align: left; }
.acct__btn:hover, .acct.is-open .acct__btn { border-color: var(--border); }
.acct__name { display: none; font-weight: 700; line-height: 1.15; }
.acct__name small, .acct__head small { display: block; font-size: .75rem; color: var(--yellow); }
.acct__menu { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 220px; padding: .5rem; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-card); z-index: 50; }
.acct__menu a { display: block; padding: .5rem .625rem; border-radius: var(--r-sm); font-weight: 700; }
.acct__menu a:hover { background: var(--surface-2); text-decoration: none; }
.acct__head { margin: 0 0 .25rem; padding: .25rem .625rem .625rem; border-bottom: 1px solid var(--border); font-weight: 800; }

@media (min-width: 640px) {
  .topbar__narrow { display: none; }
  .topbar__wide { display: inline-flex; }
  .acct__name { display: block; }
}
@media (min-width: 1024px) {
  .topbar__inner { height: 72px; gap: 1rem; }
  .topbar__brand { margin-right: .5rem; }
  .topbar__brand img { width: 140px; }
  .topbar__toggle { display: none; }
  .nav { display: flex; position: static; flex-direction: row; align-items: center; gap: .25rem; max-height: none; overflow: visible; padding: 0; border: 0; box-shadow: none; background: none; margin-right: auto; }
  .nav__link { position: relative; width: auto; padding: .5rem .75rem; font-size: 1rem; white-space: nowrap; }
  .nav__link:hover { background: none; color: var(--yellow); }
  .nav__link.is-active { color: var(--text); }
  .nav__link.is-active::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: -14px; height: 3px; background: var(--yellow); }
  .nav__extra { display: none; }
  .nav__mega { position: absolute; top: calc(100% + 14px); left: -1rem; width: 680px; padding: 1.5rem; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-btn); z-index: 50; }
  .nav__group--mega.is-open > .nav__mega { grid-template-columns: 1.1fr 1.3fr 1fr; gap: 2rem; }
  .nav__col--tags { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid var(--border); }
  .topbar__search { padding: 0 .5rem 0 .875rem; min-width: 150px; background: var(--surface-2); border-color: var(--border); color: var(--text-muted); }
  .topbar__search:hover { border-color: var(--border-hover); color: var(--text); }
  .topbar__search-t { display: inline; flex: 1; text-align: left; }
  .topbar__search kbd { display: inline-block; }
}
@media (min-width: 1280px) {
  .topbar__search { min-width: 260px; }
  /* da qui le tag stanno come quarta colonna, a destra di "Scopri" */
  .nav__mega { width: 820px; }
  .nav__group--mega.is-open > .nav__mega { grid-template-columns: 1fr 1.2fr .85fr 1.1fr; gap: 1.75rem; }
  .nav__col--tags { grid-column: auto; padding-top: 0; border-top: 0; }
}

/* ---------- pannello di ricerca ---------- */
.so { position: fixed; inset: 0; z-index: 65; background: rgba(10, 10, 10, .85); display: flex; justify-content: center; align-items: flex-start; padding: 0; }
body.so-open { overflow: hidden; }
.so__panel { width: 100%; max-width: 760px; height: 100%; display: flex; flex-direction: column; background: var(--surface); animation: so-in .18s ease-out; }
.so__form { flex: none; display: flex; align-items: center; gap: .75rem; padding: .75rem var(--gutter); border-bottom: 1px solid var(--border); color: var(--text-muted); }
.so__input { flex: 1; min-width: 0; height: 48px; background: none; border: 0; color: var(--text); font-size: 1.125rem; font-weight: 700; }
.so__input:focus { outline: none; }
.so__input::placeholder { color: var(--text-muted); font-weight: 400; }
.so__input::-webkit-search-cancel-button { display: none; }
.so__close { display: inline-flex; align-items: center; gap: .25rem; height: 36px; padding: 0 .5rem; background: none; border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text-muted); font-size: .75rem; font-weight: 700; }
.so__close span { display: none; }
.so__body { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 1rem var(--gutter) 1.5rem; }
.so__sec + .so__sec, .so__all + .so__sec { margin-top: 1.5rem; }
.so__h { margin: 0 0 .625rem; font-size: .875rem; font-weight: 700; color: var(--text-muted); }
.so__films { display: grid; grid-template-columns: minmax(0, 1fr); gap: .25rem; }
.so__film { display: flex; align-items: center; gap: .875rem; padding: .5rem; border-radius: var(--r); }
.so__film img { flex: none; width: 48px; height: 68px; object-fit: cover; border-radius: var(--r-sm); background: var(--surface-2); }
.so__film span { flex: 1; min-width: 0; }
.so__film strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.so__film small { display: block; color: var(--text-muted); font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.so__item:hover, .so__item:focus-visible { background: var(--surface-2); text-decoration: none; outline: none; box-shadow: inset 0 0 0 2px var(--blue); }
.so__all { display: block; margin-top: 1rem; padding: .875rem 1rem; text-align: center; font-weight: 700; border: 1px solid var(--border); border-radius: var(--r); }
.so__none { color: var(--text-muted); margin: .5rem 0; }
.so__hint { display: none; flex: none; margin: 0; max-width: none; padding: .625rem var(--gutter); border-top: 1px solid var(--border); font-size: .8125rem; color: var(--text-muted); }
@media (min-width: 768px) {
  .so { padding: 4.5rem 1rem 1rem; }
  .so__panel { height: auto; max-height: calc(100vh - 6rem); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-btn-lg); }
  .so__close span { display: inline; }
  .so__close svg { display: none; }
  .so__hint { display: block; }
}
@keyframes so-in { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* pill e chip (ricerca e filtri) */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { display: inline-flex; align-items: center; padding: .375rem .875rem; border: 1px solid var(--border); border-radius: 9999px; background: var(--surface-2); font-size: .875rem; font-weight: 700; white-space: nowrap; }
.pill:hover { border-color: var(--blue); text-decoration: none; }
.pill.is-active { background: var(--yellow); color: var(--ink); border-color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; background: #000; overflow: hidden; }
.hero__track { position: relative; width: 100%; height: min(56.25vw, 82vh); }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .3s; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__media { width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,17,17,0) 30%, rgba(17,17,17,.75) 75%, var(--bg) 100%); }
.hero__text { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--gutter) 1.5rem; max-width: var(--max); margin: 0 auto; }
.hero__code { display: inline-block; margin: 0 0 .5rem; background: var(--yellow); color: var(--ink); font-size: .75rem; font-weight: 800; letter-spacing: .06em; padding: .125rem .625rem; border-radius: var(--r-sm); }
.hero__title { font-size: 1.5rem; margin-bottom: .5rem; text-shadow: 0 2px 0 rgba(0,0,0,.6); }
.hero__sub { display: none; color: var(--text-muted); }
.hero__actions { display: flex; align-items: center; gap: 1rem; }
.hero__sound { width: 48px; height: 48px; border-radius: 9999px; border: 2px solid var(--ink); background: var(--surface-2); color: var(--text); display: grid; place-items: center; box-shadow: var(--shadow-card); }
.hero__sound .ico-on { display: none; }
.hero__sound[aria-pressed="true"] .ico-on { display: block; }
.hero__sound[aria-pressed="true"] .ico-off { display: none; }
.hero__arrow { position: absolute; top: 40%; width: 44px; height: 44px; border-radius: 9999px; border: 2px solid var(--ink); background: var(--surface-2); color: var(--text); display: none; place-items: center; box-shadow: var(--shadow-card); }
.hero__arrow--prev { left: var(--gutter); }
.hero__arrow--next { right: var(--gutter); }
.hero__dots { position: absolute; right: var(--gutter); bottom: 1rem; display: flex; gap: .5rem; }
.hero__dots button { width: 12px; height: 12px; border-radius: 9999px; border: 2px solid var(--ink); background: var(--surface-2); padding: 0; }
.hero__dots button[aria-selected="true"] { background: var(--yellow); }
@media (min-width: 768px) {
  .hero__track { height: min(42.86vw, 82vh); }
  .hero__title { font-size: 2.25rem; line-height: 1.1; letter-spacing: -.02em; }
  .hero__sub { display: block; }
  .hero__text { padding-bottom: 2.5rem; }
  .hero__arrow { display: grid; }
}

/* ---------- sezioni e rail ---------- */
.section { padding: 2rem 0 0; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section__head h2 { font-size: 1.25rem; }
.section__tools { display: flex; align-items: center; gap: .5rem; }
.section__all { display: inline-flex; align-items: center; gap: .25rem; height: 36px; padding: 0 .75rem 0 1rem; border-radius: 9999px; border: 2px solid var(--ink); background: var(--surface-2); color: var(--text); font-size: .875rem; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-card); margin-right: .25rem; transition: background-color .15s; }
.section__all:hover { background: #262626; text-decoration: none; }
.section__all:hover svg { transform: translateX(2px); }
.section__all svg { transition: transform .15s; }
.section__all:active { transform: translateY(4px); box-shadow: none; }
.rail__arrow { width: 36px; height: 36px; border-radius: 9999px; border: 2px solid var(--ink); background: var(--surface-2); color: var(--text); display: none; place-items: center; box-shadow: var(--shadow-card); }
.rail__arrow:active { transform: translateY(4px); box-shadow: none; }
@media (min-width: 768px) { .rail__arrow { display: grid; } .section { padding-top: 3rem; } .section__head h2 { font-size: 1.5rem; } }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 1rem) / 2); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .5rem; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 640px) { .rail { grid-auto-columns: calc((100% - 2rem) / 3); } }
@media (min-width: 1024px) { .rail { grid-auto-columns: calc((100% - 3rem) / 4); } }
@media (min-width: 1280px) { .rail { grid-auto-columns: calc((100% - 4rem) / 5); } }

/* ---------- griglia ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(5, 1fr); } }
.listing__head { padding: 2rem 0 1rem; }
.listing__head p { margin: .25rem 0 0; }
.empty { padding: 3rem 0; color: var(--text-muted); }

/* ---------- banner del tema in /offerte.php (public/assets/offerta/) ---------- */
.obanner { position: relative; display: block; margin: 0 0 1.5rem; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); color: var(--text); text-decoration: none; }
a.obanner:hover { border-color: var(--border-hover); }
.obanner picture, .obanner img { display: block; width: 100%; height: auto; }
.obanner__body { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 3rem 1rem 1rem; background: linear-gradient(to top, rgba(0, 0, 0, .88), transparent); }
.obanner__body--badge { inset: .75rem .75rem auto auto; padding: 0; background: none; }
.obanner__until { padding: .25rem .6rem; background: var(--yellow); color: var(--ink); border-radius: var(--r-sm); font-size: .8125rem; font-weight: 700; }
.obanner__title { margin: 0; font-size: 1.5rem; line-height: 1.15; }
.obanner__text { margin: 0; max-width: 46ch; color: rgba(255, 255, 255, .86); }
.obanner--text { background: var(--grad-account); border: 0; }
.obanner--text .obanner__body { position: static; padding: 1.5rem; background: none; }
@media (min-width: 768px) {
  .obanner__body { inset: 0 auto 0 0; justify-content: center; width: min(60%, 620px); padding: 2rem 4rem 2rem 2rem; background: linear-gradient(90deg, rgba(0, 0, 0, .85) 55%, transparent); }
  .obanner__body--badge { inset: 1rem 1rem auto auto; width: auto; padding: 0; background: none; }
  .obanner__title { font-size: 2.25rem; letter-spacing: -.02em; }
  .obanner--text .obanner__body { width: auto; padding: 2rem; }
}

/* ---------- catalogo con filtri: barra con menu a tendina ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.listing { display: grid; gap: 1rem; align-items: start; }
.ftools { display: flex; flex-wrap: wrap; gap: .75rem; padding: .75rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); }
.ftools__q { position: relative; display: flex; align-items: center; flex: 1 1 100%; min-width: 0; }
.ftools__q svg { position: absolute; left: .75rem; color: var(--text-muted); pointer-events: none; }
.ftools__q input { width: 100%; height: 42px; padding: 0 .75rem 0 2.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text); font: inherit; }
.ftools__q input:focus { border-color: var(--blue); outline: none; }
.ftools__drops { position: relative; display: flex; flex-wrap: wrap; gap: .5rem; flex: 1 1 100%; }
.fdrop { position: static; }
.fdrop__btn { display: inline-flex; align-items: center; gap: .375rem; height: 42px; padding: 0 .75rem 0 1rem; border: 1px solid var(--border); border-radius: 9999px; background: var(--surface); font-size: .875rem; font-weight: 700; white-space: nowrap; cursor: pointer; list-style: none; user-select: none; }
.fdrop__btn::-webkit-details-marker { display: none; }
.fdrop__btn:hover, .fdrop[open] > .fdrop__btn { border-color: var(--blue); }
.fdrop__btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.fdrop__btn.is-set { color: var(--yellow); border-color: var(--yellow); }
.fdrop__k { font-weight: 400; color: var(--text-muted); }
.fdrop__chev { transition: transform 120ms; }
.fdrop[open] .fdrop__chev { transform: rotate(180deg); }
.fdrop__menu { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + .5rem); display: grid; padding: .375rem; background: var(--surface-2); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-btn); max-height: 60vh; overflow: auto; animation: so-in 120ms ease-out; }
.fdrop__menu--years { grid-template-columns: repeat(4, 1fr); }
.fdrop__menu--years .fdrop__opt:first-child { grid-column: 1 / -1; }
.fdrop__opt { display: flex; align-items: center; gap: .625rem; padding: .5rem .75rem; border-radius: var(--r-sm); font-size: .875rem; font-weight: 700; white-space: nowrap; }
.fdrop__opt:hover, .fdrop__opt:focus-visible { background: var(--surface); text-decoration: none; outline: none; box-shadow: inset 0 0 0 2px var(--blue); }
.fdrop__opt.is-on { color: var(--yellow); }
.fdrop__menu--years .fdrop__opt { justify-content: center; }
.fdrop__box { flex: none; width: 18px; height: 18px; border: 2px solid var(--border-hover); border-radius: var(--r-sm); display: grid; place-items: center; }
.fdrop__opt.is-on .fdrop__box { background: var(--yellow); border-color: var(--yellow); }
.fdrop__opt.is-on .fdrop__box::after { content: ""; width: 5px; height: 9px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.chip { display: inline-flex; align-items: center; gap: .375rem; padding: .25rem .625rem .25rem .875rem; background: var(--yellow); color: var(--ink); border: 1px solid var(--ink); border-radius: 9999px; font-size: .875rem; font-weight: 700; }
.chip:hover { text-decoration: none; filter: brightness(.95); }
.chips__reset { font-size: .875rem; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; margin-left: .25rem; }
.empty .btn { margin-top: .5rem; }
/* da tablet in su ogni menu si apre sotto il suo bottone */
@media (min-width: 640px) {
  .fdrop { position: relative; }
  .fdrop__menu { right: auto; min-width: 220px; }
  .fdrop--end .fdrop__menu { left: auto; right: 0; }
  .fdrop__menu--years { min-width: 280px; }
}
@media (min-width: 1024px) {
  .ftools { flex-wrap: nowrap; align-items: center; }
  .ftools__q { flex: 0 1 320px; }
  .ftools__drops { flex: 1 1 auto; flex-wrap: nowrap; }
  .fdrop--end { margin-left: auto; }
}

/* ---------- card ---------- */
.card { display: flex; flex-direction: column; min-width: 0; }
.card__thumb { position: relative; display: block; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--surface-2); aspect-ratio: 7 / 10; transition: border-color 120ms; }
.card__thumb--wide { aspect-ratio: 7 / 10; }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 120ms; }
.card__thumb:hover { border-color: var(--blue); }
.card__thumb:hover img { transform: scale(1.03); }
.card__code { position: absolute; left: .5rem; bottom: .5rem; max-width: calc(100% - 5.5rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--yellow); color: var(--ink); font-size: .6875rem; font-weight: 800; letter-spacing: .06em; padding: .125rem .5rem; border-radius: var(--r-sm); font-variant-numeric: tabular-nums; }
.card__duration { position: absolute; right: .5rem; bottom: .5rem; background: rgba(0,0,0,.8); color: var(--text); font-size: .75rem; padding: .125rem .5rem; border-radius: 9999px; }
.card__ribbon { position: absolute; left: -32px; top: 12px; transform: rotate(-35deg); background: var(--yellow); color: var(--ink); font-size: .75rem; font-weight: 700; padding: .125rem 2.5rem; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.card__ribbon--offer { background: var(--blue); color: var(--text); }
.card__body { padding: .5rem 0 0; }
.card__title { font-size: 1rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a:hover { text-decoration: none; color: var(--yellow); }
.card__meta { font-size: .875rem; color: var(--text-muted); margin: .25rem 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- banda delle offerte (home) ---------- */
.oband { margin: 2rem 0 0; padding: 1.25rem .875rem 1rem; background: linear-gradient(180deg, rgba(255,229,0,.09), transparent 65%), var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); }
.oband__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1rem; }
.oband__head h2 { font-size: 1.25rem; }
.oband__sub { margin: .25rem 0 0; font-size: .875rem; color: var(--text-muted); }
.oband__all { white-space: nowrap; }
.oband .rail { padding-bottom: .25rem; }
@media (min-width: 768px) {
  .oband { margin-top: 3rem; padding: 1.5rem 1.5rem 1.25rem; }
  .oband__head h2 { font-size: 1.5rem; }
}

/* ---------- paginazione ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; padding: 1rem 0 4rem; }
.pager__num, .pager__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 .75rem; border: 1px solid var(--border); border-radius: var(--r-sm); font-weight: 700; }
.pager__num.is-current { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.pager__gap { color: var(--text-muted); }

/* ---------- scheda video ---------- */
.player-wrap { background: #000; }
.player { max-width: var(--max); margin: 0 auto; aspect-ratio: 16 / 9; max-height: 82vh; position: relative; }
.player__poster { width: 100%; height: 100%; object-fit: cover; }
.player__note { position: absolute; left: 1rem; bottom: 1rem; background: rgba(0,0,0,.8); padding: .5rem 1rem; border-radius: var(--r-sm); margin: 0; font-size: .875rem; }
/* Player (video.js 8). Il CSS di video.js arriva dopo questo file: le regole partono da .video-js.vjs-cxc
   per vincere sulle sue. Comandi su sfumatura (niente barra piena), avanzamento sopra i pulsanti. */
.video-js.vjs-cxc { width: 100%; height: 100%; background: #000; font-family: var(--font); }
.video-js.vjs-cxc.vjs-ended .vjs-poster { display: block; } /* a fine video la locandina invece dello schermo nero */
.video-js.vjs-cxc .vjs-big-play-button { width: 88px; height: 88px; margin: -44px 0 0 -44px; line-height: 88px; font-size: 3.25rem; color: var(--ink); background: var(--grad-play); border: 0; border-radius: 50%; box-shadow: 0 8px 28px rgba(0,0,0,.55); transition: transform .15s; }
.video-js.vjs-cxc:hover .vjs-big-play-button, .video-js.vjs-cxc .vjs-big-play-button:focus { background: var(--grad-play); transform: scale(1.08); transition: transform .15s; }
.video-js.vjs-cxc .vjs-big-play-button .vjs-icon-placeholder::before { left: -1px; } /* centro ottico: a meta' tra ingombro e baricentro del triangolo */

.video-js.vjs-cxc .vjs-control-bar { font-size: 12px; height: 4em; padding: 0 .5em; background: none; isolation: isolate; }
.video-js.vjs-cxc .vjs-control-bar::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 11em; z-index: -1; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.45) 50%, transparent); }
.video-js.vjs-cxc.vjs-fullscreen .vjs-control-bar { font-size: 14px; }
.video-js.vjs-cxc .vjs-button > .vjs-icon-placeholder::before { font-size: 2.1em; line-height: 1.9; }
.video-js.vjs-cxc .vjs-custom-control-spacer { display: block; flex: auto; width: auto; }
.video-js.vjs-cxc .vjs-current-time, .video-js.vjs-cxc .vjs-time-divider, .video-js.vjs-cxc .vjs-duration { display: flex; align-items: center; }
.video-js.vjs-cxc .vjs-remaining-time { display: none; }
.video-js.vjs-cxc .vjs-time-control { font-size: 1.15em; font-weight: 500; font-variant-numeric: tabular-nums; min-width: 0; padding: 0 .3em; }
.video-js.vjs-cxc .vjs-current-time { padding-left: .6em; }
.video-js.vjs-cxc .vjs-time-divider { color: var(--text-muted); }
.video-js.vjs-cxc .vjs-playback-rate .vjs-playback-rate-value { font-size: 1.3em; font-weight: 600; line-height: 3.08; }
.video-js.vjs-cxc .vjs-quality-button .vjs-icon-placeholder::before { content: "HD"; font-family: var(--font); font-size: 1.05em; font-weight: 800; line-height: 3.81; }

/* avanzamento: linea sottile che si ingrossa al passaggio, con pallino giallo */
.video-js.vjs-cxc .vjs-progress-control { position: absolute; left: .75em; right: .75em; bottom: 100%; width: auto; min-width: 0; height: 1.6em; }
.video-js.vjs-cxc .vjs-progress-control .vjs-progress-holder { margin: 0; height: 4px; font-size: 1em; border-radius: 2px; background: rgba(255,255,255,.25); transition: height .15s; }
.video-js.vjs-cxc .vjs-progress-control:hover .vjs-progress-holder, .video-js.vjs-cxc.vjs-scrubbing .vjs-progress-holder { height: 7px; font-size: 1em; }
.video-js.vjs-cxc .vjs-play-progress, .video-js.vjs-cxc .vjs-load-progress div { border-radius: inherit; }
.video-js.vjs-cxc .vjs-play-progress { background: var(--yellow); }
.video-js.vjs-cxc .vjs-play-progress::before { content: ""; width: 14px; height: 14px; top: 50%; right: -7px; border-radius: 50%; background: var(--yellow); transform: translateY(-50%) scale(0); transition: transform .15s; }
.video-js.vjs-cxc .vjs-progress-control:hover .vjs-play-progress::before, .video-js.vjs-cxc.vjs-scrubbing .vjs-play-progress::before { transform: translateY(-50%) scale(1); }
.video-js.vjs-cxc .vjs-load-progress { background: none; }
.video-js.vjs-cxc .vjs-load-progress div { background: rgba(255,255,255,.3); }
.video-js.vjs-cxc .vjs-progress-control:hover .vjs-play-progress .vjs-time-tooltip { display: none; } /* col mouse basta il tempo sotto il puntatore */
.video-js.vjs-cxc .vjs-progress-control .vjs-mouse-display { background: rgba(255,255,255,.5); }
.video-js.vjs-cxc .vjs-progress-control .vjs-mouse-display .vjs-time-tooltip { top: -36px; padding: 6px 8px; font: 600 13px/1 var(--font); color: #fff; background: rgba(0,0,0,.85); border-radius: 4px; }
.video-js.vjs-cxc .vjs-volume-level { background: var(--yellow); }

/* menu (velocita', sottotitoli, qualita') */
.video-js.vjs-cxc .vjs-menu-button-popup .vjs-menu { width: 13em; left: -4.5em; }
.video-js.vjs-cxc .vjs-menu-button-popup .vjs-menu .vjs-menu-content { bottom: 1.25em; max-height: 22em; padding: .4em 0; background: rgba(18,18,18,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.video-js.vjs-cxc .vjs-menu li { justify-content: flex-start; padding: .5em 1em; font-size: 1.1em; line-height: 1.3; text-align: left; text-transform: none; }
.video-js.vjs-cxc .vjs-menu li::before { content: ""; flex: none; width: 1.3em; }
.video-js.vjs-cxc .vjs-menu li.vjs-menu-item:hover, .video-js.vjs-cxc .vjs-menu li.vjs-menu-item:focus { background: rgba(255,255,255,.12); }
.video-js.vjs-cxc .vjs-menu li.vjs-selected, .video-js.vjs-cxc .vjs-menu li.vjs-selected:hover, .video-js.vjs-cxc .vjs-menu li.vjs-selected:focus { color: var(--yellow); font-weight: 700; background: none; }
.video-js.vjs-cxc .vjs-menu li.vjs-selected::before { content: "✓"; }
.video-js.vjs-cxc .vjs-menu li.vjs-texttrack-settings { margin-bottom: .3em; color: var(--text-muted); border-bottom: 1px solid rgba(255,255,255,.12); }

/* sottotitoli: Inter, sfondo semitrasparente arrotondato (lo sfondo lo imposta player.js, resta modificabile
   dalle impostazioni); salgono sopra i comandi quando sono visibili. In Safari sono nativi: ::cue. */
.video-js.vjs-cxc .vjs-text-track-display { bottom: 76px; }
.video-js.vjs-cxc.vjs-fullscreen .vjs-text-track-display { bottom: 88px; }
.video-js.vjs-cxc.vjs-user-inactive.vjs-playing .vjs-text-track-display { bottom: 4%; }
.video-js.vjs-cxc .vjs-text-track-cue > div { padding: .06em .4em; font-family: var(--font); font-size: max(15px, .8em); font-weight: 600; line-height: 1.4; border-radius: .2em; text-shadow: 0 1px 3px rgba(0,0,0,.6); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.video-js.vjs-cxc video::cue { font-family: var(--font); font-weight: 600; background-color: rgba(0,0,0,.55); }
.video-js.vjs-cxc video::-webkit-media-text-track-display { transform: translateY(-64px); }

/* Mobile: schermo stretto, oppure telefono in orizzontale (touch e poca altezza, cioe' anche lo schermo intero
   ruotato). Niente skip +-10 (c'e' il doppio tap sul video), niente velocita' ne' volume (tasti fisici); target
   touch da 48px (barra a 4em con font 12px), zona tap della barra di avanzamento piu' alta, voci di menu comode.
   La larghezza fissa vale solo per i bottoni con icona: i tempi restano a misura del testo. */
@media (max-width: 640px), ((pointer: coarse) and (max-height: 520px)) {
  .video-js.vjs-cxc .vjs-control-bar, .video-js.vjs-cxc.vjs-fullscreen .vjs-control-bar { font-size: 12px; }
  .video-js.vjs-cxc .vjs-control-bar .vjs-button { width: 4em; }
  .video-js.vjs-cxc .vjs-button > .vjs-icon-placeholder::before { font-size: 2.3em; line-height: 1.74; }
  .video-js.vjs-cxc .vjs-quality-button .vjs-icon-placeholder::before { font-size: 1.05em; line-height: 3.81; } /* "HD" resta a misura di testo */
  .video-js.vjs-cxc .vjs-big-play-button { width: 68px; height: 68px; margin: -34px 0 0 -34px; line-height: 68px; font-size: 2.5rem; }
  .video-js.vjs-cxc .vjs-playback-rate, .video-js.vjs-cxc .vjs-skip-backward-10, .video-js.vjs-cxc .vjs-skip-forward-10,
  .video-js.vjs-cxc .vjs-volume-panel { display: none; }
  .video-js.vjs-cxc .vjs-time-control { font-size: 1.15em; }
  .video-js.vjs-cxc .vjs-progress-control { height: 22px; }
  .video-js.vjs-cxc .vjs-progress-control .vjs-progress-holder { height: 5px; }
  .video-js.vjs-cxc .vjs-play-progress::before { transform: translateY(-50%) scale(1); } /* cursore sempre visibile: niente hover sul touch */
  .video-js.vjs-cxc .vjs-menu li { padding: .8em 1.2em; font-size: 1.15em; }
  /* la voce "Impostazioni sottotitoli" (finestra colori/carattere) su telefono e' solo ingombro in cima al menu CC */
  .video-js.vjs-cxc .vjs-menu li.vjs-texttrack-settings { display: none; }
  .video-js.vjs-cxc .vjs-text-track-display, .video-js.vjs-cxc.vjs-fullscreen .vjs-text-track-display { bottom: 76px; }
}

/* Indicatori del doppio tap +-10s (mobile, vedi player.js) */
.video-js.vjs-cxc .vjs-cxc-tap { position: absolute; top: 0; bottom: 0; width: 34%; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .15s ease; z-index: 2; }
.video-js.vjs-cxc .vjs-cxc-tap--left { left: 0; background: radial-gradient(ellipse at left, rgba(255,255,255,.18), transparent 70%); border-radius: 0 50% 50% 0; }
.video-js.vjs-cxc .vjs-cxc-tap--right { right: 0; background: radial-gradient(ellipse at right, rgba(255,255,255,.18), transparent 70%); border-radius: 50% 0 0 50%; }
.video-js.vjs-cxc .vjs-cxc-tap span { font-size: 18px; font-weight: 800; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.video-js.vjs-cxc .vjs-cxc-tap.is-active { opacity: 1; }

/* Chromecast / AirPlay (plugin Silvermine; icone Material inline, niente CSS del plugin). Il bottone Cast c'e'
   solo su Chrome/Edge con una Chromecast in rete, AirPlay solo su Safari (vedi player.js). */
.video-js.vjs-cxc .vjs-chromecast-button .vjs-icon-placeholder,
.video-js.vjs-cxc .vjs-airplay-button .vjs-icon-placeholder { display: block; width: 100%; height: 100%; background: center / 1.85em no-repeat; }
.video-js.vjs-cxc .vjs-chromecast-button .vjs-icon-placeholder { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2c4.97 0 9 4.03 9 9h2c0-6.08-4.93-11-11-11z'/%3E%3C/svg%3E"); }
.video-js.vjs-cxc .vjs-chromecast-button.vjs-chromecast-casting-state .vjs-icon-placeholder { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H5v1.63c3.96 1.28 7.09 4.41 8.37 8.37H19V7zM1 10v2c4.97 0 9 4.03 9 9h2c0-6.08-4.93-11-11-11zm20-7H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z'/%3E%3C/svg%3E"); }
.video-js.vjs-cxc .vjs-airplay-button .vjs-icon-placeholder { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M6 22h12l-6-6zM21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4v-2H3V5h18v12h-4v2h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z'/%3E%3C/svg%3E"); }
/* Riquadro del player mentre si trasmette (markup del plugin): locandina e titolo. */
.video-js.vjs-cxc .vjs-tech-chromecast { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; overflow: hidden; background: #000; }
.video-js.vjs-cxc .vjs-tech-chromecast-poster { display: flex; justify-content: center; height: 45%; }
.video-js.vjs-cxc .vjs-tech-chromecast-poster-img { width: auto; max-width: 70vw; max-height: 100%; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.video-js.vjs-cxc .vjs-tech-chromecast-title-container { order: 2; padding: 0 16px; text-align: center; }
.video-js.vjs-cxc .vjs-tech-chromecast-title { font-size: clamp(16px, 2.4vw, 24px); font-weight: 700; }
.video-js.vjs-cxc .vjs-tech-chromecast-subtitle { padding-top: 4px; font-size: 15px; color: var(--text-muted); }
.video-js.vjs-cxc .vjs-tech-chromecast-title-empty,
.video-js.vjs-cxc .vjs-tech-chromecast-subtitle-empty,
.video-js.vjs-cxc .vjs-tech-chromecast-poster-img-empty { display: none; }
.player__lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: 1.5rem; text-align: center; background: rgba(0,0,0,.78); }
.player__lock h2 { font-size: clamp(1.125rem, 3vw, 1.75rem); margin: 0; }
.player__lock p { max-width: 520px; margin: 0; }
.player__lock-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: .5rem; }
/* padding-block: lo shorthand azzerava il gutter laterale di .wrap */
/* minmax(0, 1fr): senza, i bottoni nowrap dell'offerta allargano la colonna oltre lo schermo da mobile */
.video { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding-block: 1.25rem 3rem; grid-template-areas: "head" "side" "main"; }
.video__head { grid-area: head; }
.video__main { grid-area: main; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.video__main .video__h, .video__main .gallery__head { margin-top: 0; }
.video__side { grid-area: side; }
@media (min-width: 1024px) { .video { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "head side" "main side"; align-items: start; gap: 2rem; padding-top: 2rem; } }
.video__title { font-size: 1.375rem; line-height: 1.25; letter-spacing: -.01em; }
@media (min-width: 768px) { .video__title { font-size: 1.875rem; } }
.video__code { display: block; margin-top: .375rem; font-size: .8125rem; font-weight: 400; letter-spacing: .04em; color: var(--text-muted); }
/* separatori: ogni voce ha il suo "·" a sinistra; quello della prima voce di ogni riga cade nella fascia
   tagliata da clip-path, cosi' andando a capo non resta un punto orfano a inizio riga */
.video__meta { display: flex; flex-wrap: wrap; align-items: center; row-gap: .25rem; margin: .5rem 0 1rem -1rem; clip-path: inset(0 0 0 1rem); color: var(--text-muted); font-size: .875rem; line-height: 1.5; }
.video__meta > span { position: relative; display: inline-flex; align-items: center; margin-left: 1rem; }
.video__meta > span::before { content: "·"; position: absolute; left: -.65rem; }
.video__subs { gap: .375rem; }
.video__subs-icon { flex: none; margin-right: .125rem; }
.video__flag { flex: none; width: 18px; height: 12px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.video__note { margin: 0; background: var(--surface-2); border-left: 4px solid var(--yellow); padding: .625rem 1rem; border-radius: var(--r-sm); font-size: .875rem; line-height: 1.5; color: var(--text-muted); max-width: none; }
.video__h { font-size: 1.125rem; margin: 1.5rem 0 .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.video__h .count { color: var(--text-muted); font-weight: 400; font-size: .9375rem; }
.cast__list { display: flex; flex-wrap: wrap; gap: .75rem; }
.cast__item a { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .875rem; border: 1px solid var(--border); border-radius: 9999px; background: var(--surface-2); font-weight: 700; font-size: .9375rem; white-space: nowrap; }
.cast__item a:hover { border-color: var(--blue); text-decoration: none; }
.cast__item img { width: 40px; height: 40px; margin: -.25rem 0 -.25rem -.625rem; border-radius: 9999px; object-fit: cover; }
.desc__text { max-width: 68ch; margin: 0; }
.desc__toggle { display: none; margin: .375rem 0 0; padding: 0; background: none; border: 0; color: var(--blue); font: inherit; font-weight: 700; cursor: pointer; }
.details { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; margin: 1.25rem 0 0; }
.details dt { font-size: .8125rem; color: var(--text-muted); }
.details dd { margin: 0; font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.tags a { display: inline-block; padding: .3125rem .75rem; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); font-size: .875rem; line-height: 1.3; white-space: nowrap; }
.tags a:hover { border-color: var(--blue); text-decoration: none; }
/* da mobile: cast, tag e foto su una riga da scorrere che arriva al bordo destro dello schermo
   (sfumata, per far capire che continua); descrizione accorciata a 4 righe */
@media (max-width: 767px) {
  .cast__list, .tags { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2rem), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 2rem), transparent); }
  .cast__list, .tags, .gallery__strip { margin-right: calc(-1 * var(--gutter)); padding-right: 2rem; }
  .cast__list::-webkit-scrollbar, .tags::-webkit-scrollbar { display: none; }
  .cast__item, .tags li { flex: none; scroll-snap-align: start; }
  .cast__list { padding-block: .25rem; margin-block: -.25rem; } /* spazio per il bordo dei pill, che overflow taglierebbe */
  .desc__text.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
  .desc__toggle { display: inline-block; }
}
.covers__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); gap: 1rem; }
@media (max-width: 767px) { .covers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 420px; gap: .75rem; } }
.covers__grid a { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.gallery { --gallery-h: 240px; }
@media (min-width: 768px) { .gallery { --gallery-h: 320px; } }
.gallery__head { display: flex; align-items: flex-end; gap: 1rem; margin: 1.5rem 0 .75rem; border-bottom: 1px solid var(--border); }
.gallery__head .video__h { flex: 1; margin: 0; border-bottom: 0; }
.gallery__head .section__tools { padding-bottom: .5rem; }
.gallery__strip { display: flex; gap: .5rem; height: var(--gallery-h); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery__strip::-webkit-scrollbar { display: none; }
.gallery__strip > a { flex: none; height: 100%; scroll-snap-align: start; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.gallery__strip img { height: 100%; width: auto; max-width: none; transition: transform .2s ease; }
.gallery__strip > a:hover img { transform: scale(1.03); }
.gallery__strip > .gallery__lock { display: grid; place-content: center; gap: .5rem; width: calc(var(--gallery-h) * .55); padding: 1rem; text-align: center; background: var(--grad-account); color: var(--ink); font-weight: 700; font-size: .875rem; line-height: 1.25; }
.gallery__lock strong { font-size: 2rem; }
.gallery__lock:hover { text-decoration: none; }
.comments__list { display: grid; gap: 1rem; }
.comment { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: .75rem 1rem; }
.comment__head { display: flex; gap: .75rem; align-items: baseline; font-size: .875rem; }
.comment__rate { margin-left: auto; color: var(--yellow); font-weight: 700; }
.comment p { margin: .5rem 0 0; }
.comment--mine { border-color: rgba(255,229,0,.35); }
.comment__you { font-size: .75rem; font-weight: 700; color: var(--ink); background: var(--yellow); border-radius: var(--r-sm); padding: 0 .375rem; }
.comment__act { margin-top: .375rem; padding: .25rem 0; background: none; border: 0; color: var(--text-muted); font: inherit; font-size: .8125rem; font-weight: 700; cursor: pointer; }
.comment__act:hover { color: var(--yellow); }
.comment__rlist { list-style: none; margin: .5rem 0 0; padding: 0 0 0 .875rem; border-left: 2px solid var(--border); display: grid; gap: .625rem; }
.comment__rlist:empty { display: none; }
.comment--reply { background: var(--surface); padding: .5rem .75rem; }
.comment__show { margin-top: .5rem; padding: .25rem 0; background: none; border: 0; color: var(--yellow); font: inherit; font-size: .875rem; font-weight: 700; cursor: pointer; }
.reply-form { margin-top: .625rem; display: grid; gap: .5rem; }
.reply-form textarea { width: 100%; min-height: 4.5rem; padding: .5rem .75rem; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-sm); font: inherit; font-size: 1rem; resize: vertical; }
.reply-form textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(12,119,189,.35); }
.reply-form__bar { display: flex; align-items: center; gap: 1rem; }
.reply-form__bar .comment__act { margin: 0; }
/* avviso commenti per l'ospite: titolo, una riga di testo, bottoni (da mobile a meta' larghezza ciascuno) */
.comments__lock { display: grid; gap: .25rem; padding: .875rem 1rem 1rem; border: 1px solid rgba(255,229,0,.3); border-left: 3px solid var(--yellow); border-radius: var(--r); background: rgba(255,229,0,.06); }
.comments__lock p { margin: 0; max-width: none; }
.comments__lock-title { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: .9375rem; line-height: 1.3; }
.comments__lock-icon { flex: none; color: var(--yellow); }
.comments__lock-text { font-size: .875rem; line-height: 1.45; color: var(--text-muted); }
.comments__lock-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; margin-top: .75rem; }
@media (min-width: 640px) { .comments__lock-actions { display: flex; } }
.offer { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 1rem; display: grid; gap: .75rem; }
.offer h2 { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-top: .75rem; }
.offer h2:first-child { margin-top: 0; }
.offer__btn { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; min-height: 52px; text-align: left; font-size: 1rem; padding: .625rem 1rem; }
.offer__label { min-width: 0; white-space: normal; line-height: 1.25; }
.offer__label small { display: block; font-weight: 400; font-size: .75rem; opacity: .8; }
.offer__price { font-size: 1.125rem; white-space: nowrap; }
.offer__price s { font-size: .8125rem; opacity: .7; margin-left: .25rem; }
.lightbox { position: fixed; inset: 0; z-index: 70; background: var(--scrim); display: grid; place-items: center; padding: 1rem; }
.lightbox img { max-width: 100%; max-height: 90vh; width: auto; border: 2px solid var(--ink); border-radius: var(--r); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 9999px; border: 2px solid var(--ink); background: var(--surface-2); color: var(--text); display: grid; place-items: center; }
.lightbox__nav[hidden] { display: none; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; width: 44px; height: 44px; border-radius: 9999px; border: 2px solid var(--ink); background: var(--surface-2); color: var(--text); font-size: 1.5rem; }

/* ---------- personaggi ---------- */
.stars__tools { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.letters { display: flex; flex-wrap: wrap; gap: .25rem; }
.letters a { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 .5rem; border: 1px solid var(--border); border-radius: var(--r-sm); font-weight: 700; font-size: .875rem; }
.letters a.is-active { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.stars__form { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.stars__form input, .stars__form select { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text); padding: .5rem .75rem; }
.stars__form label { display: inline-flex; gap: .5rem; align-items: center; color: var(--text-muted); font-size: .875rem; }
.stars__form .btn { padding: .5rem 1rem; font-size: 1rem; }
.grid--stars { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid--stars { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid--stars { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1280px) { .grid--stars { grid-template-columns: repeat(6, 1fr); } }
.star { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25rem; }
.star img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9999px; border: 2px solid var(--ink); box-shadow: var(--shadow-card); transition: border-color 120ms; }
.star:hover { text-decoration: none; }
.star:hover img { border-color: var(--blue); }
.star__name { font-weight: 700; margin-top: .5rem; }
.star__count { font-size: .875rem; color: var(--text-muted); }

/* ---------- pagine statiche ---------- */
.prose { color: var(--text); }
.prose h1, .prose h2, .prose h3 { margin: 1.5rem 0 .5rem; }
.prose h1 { font-size: 1.5rem; }
.prose h2 { font-size: 1.25rem; }
.prose h3 { font-size: 1.125rem; }
.prose p, .prose li { color: var(--text-muted); max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1rem; }
.prose ul { list-style: disc; }
.prose a { color: var(--text); text-decoration: underline; }
.prose img { margin: 1rem 0; border-radius: var(--r); }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .375rem; }
.prose strong { color: var(--text); }
.prose em { color: var(--text); font-style: normal; font-weight: 700; }
.prose code { font-size: .85em; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: .05em .35em; color: var(--text); white-space: nowrap; }
.prose small { color: var(--text-muted); }
.prose h2[id], .prose h3[id] { scroll-margin-top: 5rem; }

/* pagine legali (privacy, cookie, termini): sezioni separate, indice, tabelle scorrevoli su mobile */
.prose > h2 { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--border); }
.prose > h3 { margin-top: 1.75rem; }
.legal__meta { font-size: .875rem; color: var(--text-muted); margin-top: -.5rem; }
.legal__summary { background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--yellow); border-radius: var(--r); padding: 1rem 1.25rem; margin: 1.5rem 0; }
.legal__summary p { color: var(--text); margin-bottom: .75rem; }
.legal__summary p:last-child { margin-bottom: 0; }
.legal__toc { margin: 1.5rem 0 0; }
.legal__toc ol { margin: 0; padding-left: 1.5rem; }
.legal__toc li { margin-bottom: .25rem; }
.legal__toc a { color: var(--text-muted); text-decoration: none; }
.legal__toc a:hover { color: var(--text); text-decoration: underline; }
@media (min-width: 768px) { .legal__toc ol { columns: 2; column-gap: 2.5rem; } .legal__toc li { break-inside: avoid; } }
.table-scroll { overflow-x: auto; margin: 0 0 1rem; border: 1px solid var(--border); border-radius: var(--r); }
.prose table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.prose th, .prose td { padding: .625rem .875rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.prose th { background: var(--surface-2); color: var(--text); font-weight: 700; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--text); min-width: 8.5rem; }
/* su telefono ogni riga diventa un blocco: prima cella come titolo, le altre affiancate sotto */
@media (max-width: 599px) {
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose tr { display: grid; grid-template-columns: 3fr 2fr; column-gap: 1rem; padding: .75rem .875rem; border-bottom: 1px solid var(--border); }
  .prose tr:last-child { border-bottom: 0; }
  .prose td { display: block; padding: 0; border: 0; min-width: 0; }
  .prose td:first-child { grid-column: 1 / -1; margin-bottom: .25rem; font-weight: 700; }
  .prose td:nth-child(2):last-child { grid-column: 1 / -1; }
}

/* ---------- cookie banner: card in basso (mobile), barra larga al centro da 900px ---------- */
.ck { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 55; max-width: 1100px; margin-inline: auto; background: var(--surface-2); border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow-btn-lg), 0 0 0 1px rgba(255, 255, 255, .08); animation: ck-up .26s cubic-bezier(.2, .8, .2, 1); }
.ck:focus { outline: none; }
.ck__in { max-height: calc(100vh - 2rem); overflow: auto; overscroll-behavior: contain; padding: 1.25rem; }
.ck__head { display: flex; align-items: center; gap: .75rem; margin-bottom: .625rem; }
.ck__icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: rgba(255, 229, 0, .12); color: var(--yellow); border-radius: 10px; }
.ck__title { font-size: 1.125rem; }
.ck__text { margin: 0; font-size: .9375rem; color: var(--text-muted); }
.ck__text a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.ck__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s cubic-bezier(.2, .8, .2, 1); }
.ck__more > div { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility .28s; }
.ck__more.is-open { grid-template-rows: 1fr; }
.ck__more.is-open > div { visibility: visible; }
.ck__grid { display: grid; gap: .625rem; margin-top: 1rem; }
.ck__cat { display: flex; align-items: flex-start; gap: .875rem; padding: .875rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); transition: border-color .18s; }
.ck__cat.is-on { border-color: var(--blue); }
.ck__cat-t { flex: 1; min-width: 0; }
.ck__cat-n { margin: 0; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; }
.ck__cat-n label { cursor: pointer; }
.ck__cat-d { margin: .25rem 0 0; font-size: .8125rem; color: var(--text-muted); }
.ck__tag { font-size: .75rem; font-weight: 700; color: var(--ink); background: var(--yellow); border-radius: var(--r-sm); padding: 0 .375rem; }
.ck__date { margin: .625rem 0 0; font-size: .8125rem; color: var(--text-muted); max-width: none; }
.ck__acts { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.25rem; }
.ck__acts .btn { padding: .75rem .5rem; font-size: 1rem; }
.ck__acts .ck__aux { grid-column: 1 / -1; order: 1; }
.ck.is-expanded .ck__acts { position: sticky; bottom: -1.25rem; padding: .75rem 0 1.25rem; margin-bottom: -1.25rem; background: var(--surface-2); }
@media (min-width: 900px) {
  .ck { bottom: 1.5rem; }
  .ck__in { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "head acts" "text acts" "more more"; column-gap: 2.5rem; padding: 1.5rem 1.75rem; }
  .ck__head { grid-area: head; }
  .ck__text { grid-area: text; max-width: 68ch; }
  .ck__more { grid-area: more; }
  .ck__grid { grid-template-columns: 1fr 1fr; }
  .ck__acts { grid-area: acts; align-self: center; display: flex; margin-top: 0; }
  .ck__acts .btn { padding: .75rem 1.25rem; }
  .ck__acts .ck__aux { order: 0; }
  .ck.is-expanded .ck__acts { position: static; padding: 0; margin-bottom: 0; background: none; }
}
/* velo sul resto del sito finche' il banner e' aperto: lo fa risaltare, ma non blocca scroll e clic */
body.ck-open::after { content: ""; position: fixed; inset: 0; z-index: 54; background: rgba(10, 10, 10, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); pointer-events: none; animation: ck-fade .26s; }
@keyframes ck-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* interruttore (usato dal banner cookie) */
.switch { position: relative; flex: none; width: 44px; height: 26px; margin-top: .125rem; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 9999px; background: #3A3F43; border: 1px solid var(--ink); transition: background-color .18s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 9999px; background: var(--text); transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + span { opacity: .55; }
.switch input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* pulsante di riapertura in basso a sinistra */
.ck-reopen { position: fixed; left: 1rem; bottom: 1rem; z-index: 45; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; background: var(--surface-2); color: var(--text); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-card); transition: transform 80ms, box-shadow 80ms, border-color 120ms; animation: ck-fade .3s; }
.ck-reopen:hover { border-color: var(--blue); }
.ck-reopen:active { transform: translateY(4px); box-shadow: none; }
@keyframes ck-fade { from { opacity: 0; } to { opacity: 1; } }
body.nav-open .ck-reopen, body.so-open .ck-reopen, body.has-gate .ck-reopen { display: none; }
/* su mobile copriva i contenuti: resta il link "Gestisci cookie" nel footer */
@media (max-width: 767px) { .ck-reopen { display: none; } }

/* ---------- footer ---------- */
.footer { margin-top: 5rem; border-top: 1px solid var(--border); background: var(--surface); padding: 3rem var(--gutter) 2rem; }
.footer__grid { max-width: var(--max); margin: 0 auto; display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer__brand { grid-column: 1 / -1; }
@media (min-width: 768px) { .footer__brand { grid-column: auto; } }
.footer__brand p { color: var(--text-muted); margin-top: 1rem; }
.footer h2 { font-size: .9375rem; margin-bottom: .75rem; }
.footer li { margin-bottom: .375rem; }
.footer li a { color: var(--text-muted); }
.footer li a:hover { color: var(--text); }
/* lingua: riusa .fdrop (stessa chiusura con click fuori ed Esc in app.js) */
.langdrop { position: relative; display: inline-block; margin-bottom: 1rem; }
.langdrop .fdrop__btn { gap: .5rem; }
.langdrop .fdrop__menu { right: auto; min-width: 200px; }
.langdrop__flag { flex: none; width: 21px; height: 14px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.footer__legal { max-width: var(--max); margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid var(--border); font-size: .875rem; color: var(--text-muted); }
.footer__legal p { max-width: none; }
.footer__legal a { text-decoration: underline; color: var(--text-muted); }
.footer__legal img { margin-bottom: 1rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1rem 0; }
.footer__linkbtn { background: none; border: 0; padding: 0; text-decoration: underline; color: var(--text-muted); }
.footer__copy { margin: 1rem 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- form, account, modale ---------- */
.auth { max-width: 520px; margin: 0 auto; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 1.5rem; }
.auth--wide { max-width: 720px; }
.auth__head { margin-bottom: 1.25rem; }
.auth__head h1 { font-size: 1.5rem; margin-bottom: .25rem; }
.auth__tabs { display: flex; gap: 1.5rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.auth__tabs a { padding: .5rem 0; font-weight: 700; color: rgba(255,255,255,.6); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.auth__tabs a.is-active { color: var(--text); border-color: var(--yellow); }
.auth__tabs a:hover { text-decoration: none; color: var(--text); }
.auth__submit { width: 100%; margin-top: .5rem; }
.auth__legal { margin: 0; font-size: .8125rem; line-height: 1.5; color: var(--text-muted); }
.auth__legal a { text-decoration: underline; }
.auth__links { margin: 1rem 0 0; font-size: .9375rem; color: var(--text-muted); }
.auth__links a { text-decoration: underline; }
.form { display: grid; gap: 1rem; }
.form--inline { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1rem; }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .375rem; }
.field > span { font-weight: 700; font-size: .9375rem; }
.field small { color: var(--text-muted); font-size: .8125rem; }
.field input, .field textarea, .select, .field select { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text); padding: .625rem .75rem; font-size: 1rem; }
.field input:focus, .field textarea:focus, .select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(12,119,189,.35); }
.field--code input { font-size: 1.75rem; letter-spacing: .5em; text-align: center; font-weight: 800; }
/* Codice a 6 cifre: un solo input reale, trasparente sopra le caselle (incolla e autofill restano nativi). */
.otp { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) .625rem repeat(3, minmax(0, 1fr)); gap: .375rem; align-items: center; }
@media (min-width: 480px) { .otp { gap: .625rem; grid-template-columns: repeat(3, minmax(0, 1fr)) .875rem repeat(3, minmax(0, 1fr)); } }
.otp__cell { display: grid; place-items: center; min-width: 0; min-height: 0; aspect-ratio: 6 / 7; line-height: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-card); font-size: clamp(1.375rem, 6vw, 2rem); font-weight: 800; font-variant-numeric: tabular-nums; transition: border-color .15s, box-shadow .15s, transform .15s; }
.otp__cell.is-filled { border-color: var(--border-hover); transform: translateY(-2px); }
.otp__cell.is-active { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(12,119,189,.35), var(--shadow-card); }
.otp__cell.is-active:empty::after { content: ""; width: 2px; height: 40%; background: var(--text); animation: otp-caret 1s steps(1) infinite; }
.otp__sep { height: 2px; background: var(--border-hover); border-radius: 2px; }
.field--code .otp input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; color: transparent; caret-color: transparent; font-size: 1rem; letter-spacing: 0; box-shadow: none; }
.field--code .otp input::selection { background: transparent; }
@keyframes otp-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .otp__cell { transition: none; } .otp__cell.is-filled { transform: none; } .otp__cell.is-active:empty::after { animation: none; } }
.check { display: flex; gap: .625rem; align-items: flex-start; font-size: .9375rem; color: var(--text-muted); }
.check input { flex: none; margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--yellow); }
.check a { text-decoration: underline; }
.hp { position: absolute; left: -9999px; }
.alert { padding: .75rem 1rem; border-radius: var(--r-sm); border-left: 4px solid; margin: 0 0 1rem; max-width: none; font-size: .9375rem; }
.alert--error { border-color: var(--danger); background: rgba(232,0,0,.12); }
.alert--ok { border-color: var(--yellow); background: rgba(255,229,0,.1); }
.alert--info { border-color: var(--blue); background: rgba(12,119,189,.15); }
/* Banner "conferma la tua email" sotto l'header (partials/verify-banner.php) */
.verify { background: rgba(255,229,0,.1); border-bottom: 1px solid rgba(255,229,0,.35); }
.verify__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding-top: .625rem; padding-bottom: .625rem; }
.verify__icon { flex: none; color: var(--yellow); }
.verify__text { flex: 1 1 16rem; margin: 0; max-width: none; font-size: .9375rem; }
.verify__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.verify--ok { background: rgba(255,229,0,.16); }
@media (max-width: 639px) { .verify__icon { display: none; } .verify__actions { width: 100%; } .verify__actions > * { flex: 1; } .verify__actions .btn { width: 100%; } }
.confirm__change { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.confirm__change summary { width: max-content; cursor: pointer; list-style: none; color: var(--text-muted); font-size: .9375rem; text-decoration: underline; text-underline-offset: 3px; }
.confirm__change summary::-webkit-details-marker { display: none; }
.confirm__change[open] summary { margin-bottom: .75rem; }
.signup-film { display: flex; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: .75rem; margin-bottom: 1.25rem; }
.signup-film img { width: 90px; border-radius: var(--r-sm); }
.signup-film p { margin: 0; font-size: .875rem; }
.account { display: grid; gap: 1.5rem; margin-bottom: 2rem; }
@media (min-width: 1024px) { .account { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.panel { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 1.25rem; }
.panel h2 { font-size: 1.125rem; margin-bottom: 1rem; }
.account__credits { font-size: 2.25rem; font-weight: 800; color: var(--yellow); margin: 0 0 1rem; }
.table-wrap { overflow-x: auto; margin-bottom: 2rem; }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table th, .table td { text-align: left; padding: .625rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-size: .8125rem; color: var(--text-muted); font-weight: 700; }
.table tr.is-expired td { color: var(--text-muted); }
.video__note--ok { border-color: var(--blue); }
.offer__credits { margin: .5rem 0 0; font-size: .875rem; }
.offer__credits a { text-decoration: underline; }
.comment-form { margin-top: 1rem; }
.comment-form__msg { margin: 0; color: var(--yellow); font-weight: 700; }
.modal { position: fixed; inset: 0; z-index: 70; background: var(--scrim); display: grid; place-items: center; padding: 1rem; }
.modal__panel { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow-btn-lg); width: 100%; max-width: 480px; padding: 1.5rem; position: relative; }
.modal__panel h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.modal__close { position: absolute; top: .75rem; right: .75rem; width: 36px; height: 36px; border-radius: 9999px; border: 2px solid var(--ink); background: var(--surface-2); color: var(--text); font-size: 1.25rem; }
.modal__film { font-weight: 700; margin-bottom: .75rem; }
.modal__line { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 .5rem; }
.modal__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }

/* ---------- crediti ---------- */
.packs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem .75rem; margin: 2rem 0 1.25rem; }
@media (min-width: 768px) { .packs { grid-template-columns: repeat(3, 1fr); gap: 1.75rem 1.25rem; } }
.pack { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .375rem; padding: 1.5rem .75rem 1rem; background: linear-gradient(180deg, rgba(91,210,255,.07), transparent 60%), var(--surface); color: var(--text); border: 2px solid var(--border); border-radius: var(--r); transition: border-color 120ms, transform 120ms; }
@media (min-width: 768px) { .pack { padding: 1.75rem 1.25rem 1.25rem; } }
.pack:hover { text-decoration: none; border-color: #1E9FE0; transform: translateY(-3px); }
.pack:active .pack__cta { transform: translateY(6px); box-shadow: none; }
.pack--recommended { border-color: var(--yellow); background: linear-gradient(180deg, rgba(255,229,0,.12), transparent 60%), var(--surface-2); box-shadow: 0 0 0 1px var(--yellow), 0 10px 32px rgba(255,179,0,.18); }
.pack--recommended:hover { border-color: var(--yellow); }
.pack--top_bonus { border-color: #1E9FE0; }
.pack__ribbon { position: absolute; top: -.8rem; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--grad-account); color: var(--ink); border: 2px solid var(--ink); border-radius: 9999px; padding: .125rem .75rem; font-size: .6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.pack--recommended .pack__ribbon { background: var(--grad-play); }
.pack__credits { font-size: .9375rem; font-weight: 700; color: var(--text-muted); }
.pack__credits strong { display: block; font-size: 2.5rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--text); }
@media (min-width: 768px) { .pack__credits strong { font-size: 3.25rem; } }
.pack--recommended .pack__credits strong { color: var(--yellow); }
.pack__pct { background: var(--blue); border: 1px solid var(--ink); border-radius: 9999px; padding: .125rem .625rem; font-size: .8125rem; font-weight: 800; }
.pack__bonus { font-size: .8125rem; color: var(--text-muted); }
.pack__per { font-size: .75rem; color: var(--text-muted); margin-bottom: .75rem; }
.pack__cta { width: 100%; margin-top: auto; padding: .75rem .25rem; font-size: .875rem; white-space: normal; }
@media (min-width: 768px) { .pack__cta { padding: .75rem .5rem; font-size: 1rem; } }
.pack.is-disabled { opacity: .5; pointer-events: none; }
.pack.is-disabled .pack__cta { background: var(--grad-neutral); color: var(--text-muted); }
.packs__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin: 0 0 1rem; padding: .875rem 1rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); font-size: .875rem; font-weight: 600; }
.packs__trust li { display: inline-flex; align-items: center; gap: .5rem; }
.packs__trust svg { color: var(--yellow); flex: none; }
@media (prefers-reduced-motion: reduce) { .pack:hover { transform: none; } }
.direct { margin-bottom: 2rem; }
.direct__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0; }
.coupon { margin-top: 2rem; }
.modal__cards { display: grid; gap: .75rem; margin-top: 1rem; }
.modal__cards .btn { width: 100%; }
.modal__waiver { margin: 1rem 0 0; font-size: .8125rem; color: var(--text-muted); }
.modal__line--total { font-size: 1.0625rem; font-weight: 700; padding-top: .5rem; border-top: 1px solid var(--border); }
/* carta salvata: CVV di Epoch in un iframe (pagina bianca, alta ~600px) */
.modal--pay .modal__panel { max-width: 720px; max-height: calc(100dvh - 2rem); overflow-y: auto; }
.modal__frame { margin-top: 1rem; background: #fff; border-radius: var(--r-sm); overflow: hidden; }
.modal__frame iframe { display: block; width: 100%; height: 600px; border: 0; }
.modal__alt { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin: .75rem 0 0; font-size: .8125rem; }
.modal__alt a { color: var(--text-muted); text-decoration: underline; }
@media (max-width: 600px) {
  .modal--pay { padding: 0; place-items: stretch; }
  .modal--pay .modal__panel { max-width: none; max-height: none; height: 100dvh; border: 0; border-radius: 0; padding: 1rem; }
  .modal__frame iframe { height: 640px; }
}
.direct__waiver { font-size: .8125rem; }
.modal__panel.trailer-end { max-height: calc(100dvh - 2rem); overflow-y: auto; }
.trailer-end__quota { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: .875rem 1rem; margin: 1rem 0; }
.trailer-end__quota p { margin: 0; }
.trailer-end__dots { display: flex; gap: .375rem; list-style: none; padding: 0; margin: .625rem 0; }
.trailer-end__dots li { flex: 1; height: 8px; border-radius: 9999px; background: var(--border); }
.trailer-end__dots li.is-used { background: var(--yellow); }
.trailer-end__perks { margin: 0 0 .25rem; padding-left: 1.25rem; display: grid; gap: .25rem; }
.trailer-end__login { margin: .75rem 0 0; text-align: center; }
.trailer-end__login a { text-decoration: underline; }

/* ---------- registrazione a passi: account, offerta di benvenuto, conferma ---------- */
.signup-page { padding-top: 2rem; padding-bottom: 4rem; }
.stepper { display: flex; max-width: 560px; margin: 0 auto 2rem; }
.stepper__item { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: .375rem; text-align: center; font-size: .8125rem; font-weight: 700; color: var(--text-muted); }
.stepper__item + .stepper__item::before { content: ""; position: absolute; top: 17px; left: calc(-50% + 26px); right: calc(50% + 26px); height: 2px; border-radius: 2px; background: var(--border); }
.stepper__item.is-done::before, .stepper__item.is-current::before { background: var(--blue); }
.stepper__n { width: 36px; height: 36px; border-radius: 9999px; display: grid; place-items: center; background: var(--surface-2); border: 2px solid var(--border); font-size: .9375rem; font-weight: 800; }
.stepper__item.is-done, .stepper__item.is-current { color: var(--text); }
.stepper__item.is-done .stepper__n { background: var(--blue); border-color: var(--ink); }
.stepper__item.is-current .stepper__n { background: var(--yellow); color: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255,229,0,.18); }

.signup { display: grid; gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
@media (min-width: 900px) { .signup { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } }
.signup .auth { max-width: none; margin: 0; }
@media (min-width: 640px) { .signup .auth, .auth--signup { padding: 2rem; } }
.signup__perks { border: 1px solid var(--border); border-radius: var(--r); padding: 1.75rem 1.5rem; background: radial-gradient(120% 80% at 100% 0%, rgba(12,119,189,.35), transparent 60%), radial-gradient(90% 70% at 0% 100%, rgba(255,229,0,.1), transparent 60%), var(--surface); }
.signup__perks h2 { font-size: 1.25rem; color: var(--yellow); margin-bottom: 1.25rem; }
.signup__perks ul { display: grid; gap: 1.125rem; }
.signup__perks li { display: flex; gap: .875rem; align-items: flex-start; }
.signup__perks li strong { display: block; }
.signup__perks li small { display: block; color: var(--text-muted); font-size: .875rem; line-height: 1.45; }
.signup__perk-icon { flex: none; width: 42px; height: 42px; border-radius: 9999px; display: grid; place-items: center; background: var(--grad-account); color: var(--ink); border: 2px solid var(--ink); }
.signup__perks-note { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px dashed var(--border-hover); font-size: .9375rem; }
.signup__coupon summary { width: max-content; cursor: pointer; list-style: none; color: var(--text-muted); font-size: .9375rem; text-decoration: underline; text-underline-offset: 3px; }
.signup__coupon summary::-webkit-details-marker { display: none; }
.signup__coupon[open] summary { margin-bottom: .5rem; }
.field__label { font-weight: 700; font-size: .9375rem; }
.field__pass, .field > .field__pass { position: relative; display: block; font-weight: inherit; font-size: inherit; }
.field .field__pass input { padding-right: 3rem; }
.field__reveal { position: absolute; top: 50%; right: .25rem; transform: translateY(-50%); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; background: none; border: 0; border-radius: var(--r-sm); color: var(--text-muted); cursor: pointer; }
.field__reveal:hover, .field__reveal:focus-visible { color: var(--text); }
.field__reveal[aria-pressed="false"] .i-slash { display: none; }

.auth--signup { max-width: 860px; }
.auth__head--center { text-align: center; }
.auth__head--center p { margin-inline: auto; }
.auth__head--center h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.auth__head-line { display: block; }
.auth__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: .75rem; border-radius: 9999px; background: var(--grad-account); color: var(--ink); border: 2px solid var(--ink); box-shadow: var(--shadow-card); }
.auth__fine { margin: 0; max-width: none; text-align: center; font-size: .8125rem; }

.offers { display: grid; gap: 1.5rem 1rem; grid-template-columns: 1fr; margin: 2rem 0 1rem; }
@media (min-width: 640px) { .offers { grid-template-columns: repeat(auto-fit, minmax(220px, 280px)); justify-content: center; } }
.offer-card { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: .375rem; padding: 1.75rem 1.25rem 1.25rem; background: var(--surface); border: 2px solid var(--border); border-radius: var(--r); text-align: center; transition: border-color 120ms, transform 120ms; }
.offer-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.offer-card:active .offer-card__cta { transform: translateY(6px); box-shadow: none; }
.offer-card.is-best { border-color: var(--yellow); background: linear-gradient(180deg, rgba(255,229,0,.08), transparent 55%), var(--surface); box-shadow: var(--shadow-btn); }
.offer-card--single { border-color: var(--ink); background: var(--surface-2); box-shadow: var(--shadow-btn); }
.offer-card__ribbon { position: absolute; top: -.8rem; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); border-radius: 9999px; padding: .125rem .75rem; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.offer-card__label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.offer-card__credits { font-size: 1.125rem; font-weight: 700; }
.offer-card__credits strong { display: block; font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.offer-card__note { color: var(--text-muted); font-size: .9375rem; }
.offer-card__bonus { background: var(--blue); border: 1px solid var(--ink); border-radius: 9999px; padding: .125rem .75rem; font-size: .8125rem; font-weight: 700; }
.offer-card__bonus, .offer-card--single .offer-card__note { margin-bottom: 1rem; }
.offer-card__thumb { width: 100%; max-width: 220px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-sm); margin-bottom: .5rem; }
.offer-card__film { font-weight: 800; font-size: 1.0625rem; max-width: 26ch; }
.offer-card__price { font-size: 2.5rem; font-weight: 800; line-height: 1.05; }
.offer-card__cta { width: 100%; margin-top: auto; }
.offers__pay { margin: 0 auto 1.5rem; text-align: center; font-size: .875rem; }
.offers__skip { display: grid; justify-items: center; gap: .5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); text-align: center; }
.offers__skip p { margin: 0; font-size: .875rem; }
@media (prefers-reduced-motion: reduce) { .offer-card:hover { transform: none; } }

/* titoli numerati dei moduli a passi (contatti) */
.steps { display: flex; align-items: center; gap: .75rem; margin: 1.5rem 0 1rem; }
.steps__n { width: 34px; height: 34px; border-radius: 9999px; background: var(--blue); color: var(--text); border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 800; }
.steps h2 { font-size: 1.25rem; color: var(--yellow); }

/* ---------- contatti a passi ---------- */
.contact__form { gap: 1.5rem; }
.contact__step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 1rem; }
.contact__step .steps { margin: 0 0 .25rem; padding: 0; }
.steps__t { font-size: 1.25rem; font-weight: 800; color: var(--yellow); }
.contact__note { margin: 0; }
.contact__note a { text-decoration: underline; }
.contact__disclaimer { margin: 0; font-size: .875rem; }
.tiles { display: grid; grid-template-columns: 1fr; gap: .75rem; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tiles--small { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .tiles--small { grid-template-columns: repeat(3, 1fr); } }
.tile { position: relative; display: flex; align-items: center; gap: .75rem; padding: .875rem 1rem; background: var(--surface); border: 2px solid var(--border); border-radius: var(--r); font-weight: 700; cursor: pointer; transition: border-color 120ms, transform 80ms, box-shadow 80ms; }
.tile:hover { border-color: var(--border-hover); }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile svg { flex: none; color: var(--text-muted); }
.tile--small { justify-content: center; text-align: center; }
.tile:has(input:checked) { border-color: var(--ink); background: var(--grad-account); color: var(--ink); box-shadow: var(--shadow-card); }
.tile:has(input:checked) svg { color: var(--ink); }
.tile:has(input:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 3px; }
.contact__done { display: grid; justify-items: center; gap: .5rem; text-align: center; padding: 1.5rem 0 .5rem; }
.contact__done svg { color: var(--yellow); }
.contact__done p { margin: 0; }
.contact__done .btn { margin-top: 1rem; }

/* ---------- PWA e notifiche push (assets/js/pwa.js) ---------- */
/* Proposta "soft" (partials/push-prompt.php): card in basso a destra, sotto il banner cookie (z 55),
   che pero' non e' mai aperto nello stesso momento. */
.pushask { position: fixed; right: 1rem; bottom: 1rem; z-index: 54; display: flex; gap: 1rem; align-items: center; width: min(560px, calc(100vw - 2rem)); padding: 1.125rem 2.75rem 1.125rem 1.125rem; background: var(--surface-2); color: var(--text); border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow-btn-lg), 0 0 0 1px rgba(255, 255, 255, .08); opacity: 0; transform: translateY(12px); transition: opacity .26s cubic-bezier(.2, .8, .2, 1), transform .26s cubic-bezier(.2, .8, .2, 1); }
.pushask.is-visible { opacity: 1; transform: none; }
.pushask[hidden] { display: none; }
.pushask__icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: rgba(12, 119, 189, .18); color: #5BD2FF; border-radius: 10px; }
.pushask__content { flex: 1; min-width: 0; }
.pushask__title { margin: 0 0 .25rem; font-size: 1rem; }
.pushask p { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--text-muted); }
.pushask__actions { display: flex; flex: none; gap: .625rem; align-items: center; }
.pushask__actions .btn { white-space: nowrap; }
.pushask__close { position: absolute; top: .5rem; right: .5rem; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-muted); }
.pushask__close:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
@media (max-width: 720px) {
  .pushask { right: 1rem; left: 1rem; width: auto; flex-wrap: wrap; gap: .75rem; }
  .pushask__content { flex-basis: calc(100% - 60px); }
  .pushask__actions { width: 100%; justify-content: flex-end; }
}

/* Riquadro notifiche (partials/push-box.php): profilo, pagina app, guida notifiche. */
.pushbox p { margin: 0 0 .5rem; color: var(--text-muted); }
.pushbox__state { display: block; margin: 0 0 .75rem; font-size: .875rem; color: var(--text); }
.pushbox__state a { text-decoration: underline; text-underline-offset: 3px; }
.pushbox__state[hidden], .pushbox .btn[hidden] { display: none; }
.pushbox .btn.is-active { background: var(--surface); border: 1px solid var(--border); box-shadow: none; }
.pushbox .btn[disabled] { opacity: .55; cursor: default; }

/* Dentro l'app installata (html.pwa-standalone, messa da pwa.js) la voce "Installa l'app" non ha senso. */
html.pwa-standalone [data-pwa-hide-standalone] { display: none !important; }

/* Pagina /app.php (static/app.*.php): due colonne con il telefono, poi i passi per sistema. */
.app__hero { display: grid; gap: 1.5rem; align-items: center; margin: 1rem 0 2rem; }
@media (min-width: 720px) { .app__hero { grid-template-columns: 1.3fr 1fr; } }
.app__hero p { max-width: none; }
.app__phone { max-width: 320px; margin: 0 auto; }
.app__btns { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 0; }
.app__btns .btn img { width: 22px; height: 22px; margin-right: .5rem; }
.app__os { margin: 2rem 0; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.app__os h2 { display: flex; align-items: center; gap: .625rem; margin-top: 0; }
.app__os h2 img { width: 28px; height: 28px; }
.steps { display: grid; gap: 1rem; margin: 1rem 0 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.steps li { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 1rem; }
.steps__n { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: .5rem; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 800; }
.steps p { margin: 0 0 .75rem; }
.steps img { border-radius: var(--r-sm); }
.app__push { margin-top: 2rem; padding: 1.25rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); }
.app__push h2 { margin-top: 0; }
.browsericon { display: inline-block; width: 28px; height: 28px; vertical-align: middle; margin-right: .5rem; }
