/* Primopiano — sito */
/* Caratteri ospitati sul tuo server (nessuna richiesta a Google) */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(fonts/bricolage-grotesque-latin-opsz-normal.woff2) format("woff2-variations"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-display: swap; font-weight: 400;
  src: url(fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-display: swap; font-weight: 700;
  src: url(fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); }

:root {
  --ink: #1C2230;
  --ink-2: #4A5263;
  --paper: #FFFFFF;
  --rack: #F1F2F4;
  --line: #DDE1E6;
  --tag: #FFC93C;
  --tag-ink: #3A2A00;
  --sold: #17915A;
  --radius-s: 6px;
  --radius-m: 12px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #EEF0F4; --ink-2: #AEB5C2; --paper: #151A24; --rack: #1D2330; --line: #2E3646;
    --tag: #FFC93C; --tag-ink: #2A1E00; --sold: #3BC07D;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 18px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--tag); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 34em; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }

/* ---------- Barra ---------- */
.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.3rem; text-decoration: none; letter-spacing: -0.02em; }
.brand-mark { width: 28px; height: 28px; }
.bar nav { display: flex; gap: 22px; margin-left: auto; }
.bar nav a { text-decoration: none; color: var(--ink-2); font-size: .95rem; }
.bar nav a:hover { color: var(--ink); }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1rem/1 var(--body); padding: 15px 22px; border-radius: var(--radius-s);
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--tag); border-color: var(--tag); color: var(--tag-ink); }
.btn-primary:hover { filter: brightness(.96); }
.btn-ghost:hover { background: var(--rack); }
.btn-small { padding: 10px 14px; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 11em; }
.hero .lead { margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 14px; font-size: .9rem; color: var(--ink-2); }

/* Feed animato: l'elemento simbolo della pagina */
.feed {
  position: relative; background: var(--rack); border: 1px solid var(--line);
  border-radius: 22px; padding: 18px; min-height: 520px; overflow: hidden;
}
.feed-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 6px 14px; }
.feed-head strong { font-family: var(--display); font-size: 1.05rem; }
.feed-count { font-size: .9rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.feed-count b { color: var(--sold); }
.feed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; position: relative; }
.listing {
  position: relative; display: grid; grid-template-columns: 72px 1fr 92px; gap: 14px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 10px 14px 10px 10px;
  transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .5s ease, box-shadow .4s ease;
}
.listing .ph { width: 72px; height: 72px; border-radius: 9px; display: grid; place-items: center; }
.listing .ph svg { width: 54px; height: 54px; }
.listing > div:nth-child(2) { min-width: 0; }
.listing .t { font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listing .m { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listing .m { font-size: .85rem; color: var(--ink-2); }
.listing .p { font-family: var(--display); font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; text-align: right; transition: opacity .2s; }
.listing.is-sold .p { opacity: 0; }
.listing.is-up { box-shadow: 0 0 0 2px var(--tag); }
.badge-up {
  position: absolute; top: -9px; left: 12px; background: var(--tag); color: var(--tag-ink);
  font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 99px;
  opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s;
}
.listing.is-up .badge-up { opacity: 1; transform: none; }
.stamp {
  position: absolute; right: 10px; top: 50%; translate: 0 -50%; rotate: -10deg;
  border: 3px solid var(--sold); color: var(--sold); border-radius: 8px;
  font-family: var(--display); font-weight: 800; font-size: 1.15rem; padding: 2px 10px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  opacity: 0; scale: 1.8; transition: opacity .25s ease, scale .35s cubic-bezier(.3,1.6,.5,1);
  pointer-events: none;
}
.listing.is-sold .stamp { opacity: 1; scale: 1; }
.listing.is-gone { opacity: 0; }

/* ---------- Sezioni ---------- */
section { padding: 96px 0; }
.alt { background: var(--rack); }
.section-head { max-width: 40em; margin-bottom: 48px; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 1.1rem; }

/* Funzioni: griglia irregolare, la prima più grande */
.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.feature { background: var(--paper); padding: 30px 28px; grid-column: span 2; }
.feature.wide { grid-column: span 3; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: 1rem; }
.feature .ico { width: 36px; height: 36px; margin-bottom: 16px; color: var(--ink); }
.alt .feature { background: var(--paper); }

/* Come si usa: è davvero una sequenza, quindi numerata */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; max-width: 760px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step); font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1;
  color: var(--ink);
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-2); }
.steps-more { margin-top: 28px; }

/* Prezzi */
.billing-toggle { display: inline-flex; border: 2px solid var(--ink); border-radius: 99px; padding: 3px; margin-bottom: 36px; }
.billing-toggle button { border: 0; background: transparent; font: 700 .95rem var(--body); color: var(--ink); padding: 9px 18px; border-radius: 99px; cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.billing-toggle .save { font-weight: 400; opacity: .8; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; max-width: 900px; }
.plan { border: 2px solid var(--line); border-radius: var(--radius-m); padding: 30px; background: var(--paper); }
.plan.pro { border-color: var(--ink); }
.plan-top { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 18px; }
.plan-top p { color: var(--ink-2); font-size: .95rem; margin-top: 4px; }
/* il cartellino del prezzo */
.pricetag {
  position: relative; background: var(--tag); color: var(--tag-ink); padding: 10px 14px 10px 26px;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
  font-family: var(--display); font-weight: 800; white-space: nowrap; text-align: right;
}
.pricetag::before { content: ""; position: absolute; left: 11px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--paper); }
.pricetag .amount { font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; }
.pricetag .per { font-size: .8rem; font-weight: 700; display: block; margin-top: 2px; font-family: var(--body); }
.plan.base .pricetag { background: var(--rack); color: var(--ink); border: 0; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.plan li { padding-left: 28px; position: relative; font-size: 1rem; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--sold); border-bottom: 3px solid var(--sold); rotate: -45deg; }
.plan li.inherit { color: var(--ink-2); }
.plan .btn { width: 100%; }
.plan .fine { margin-top: 12px; font-size: .85rem; color: var(--ink-2); text-align: center; }
.pay-methods { margin-top: 28px; font-size: .9rem; color: var(--ink-2); }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--ink-2); }

/* Chiusura */
.closing { padding: 88px 0; }
.closing .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; border-top: 2px solid var(--ink); padding-top: 56px; }
.closing h2 { max-width: 14em; }

/* Footer */
footer { background: var(--rack); padding: 48px 0 40px; font-size: .9rem; color: var(--ink-2); }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; justify-content: flex-end; align-items: start; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
.disclaimer { margin-top: 14px; max-width: 46em; }

/* ---------- Pagine di testo (guida, legali) ---------- */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.1rem, 5vw, 3rem); margin-bottom: 12px; }
.doc h2 { font-size: 1.6rem; margin: 48px 0 12px; }
.doc h3 { margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 6px; }
.doc .updated { color: var(--ink-2); font-size: .95rem; }
.doc .note { background: var(--rack); border-left: 4px solid var(--tag); padding: 16px 18px; border-radius: 0 var(--radius-s) var(--radius-s) 0; margin: 20px 0; }
.toc { background: var(--rack); border-radius: var(--radius-m); padding: 18px 22px; margin: 24px 0 8px; }
.toc ol { margin: 6px 0 0; }
.kbd { font-family: var(--body); font-weight: 700; background: var(--rack); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; font-size: .9em; }

/* Form gestione abbonamento */
.form-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.form-row input { flex: 1; min-width: 220px; font: inherit; padding: 13px 14px; border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--paper); color: var(--ink); }
.license-box { font-family: var(--display); font-size: 1.4rem; font-weight: 800; letter-spacing: .02em; background: var(--rack); border: 2px dashed var(--ink-2); padding: 16px; border-radius: var(--radius-m); margin: 16px 0; word-break: break-all; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature, .feature.wide { grid-column: span 1; }
  .plans { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr; }
  footer nav { justify-content: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .bar nav { display: none; }
  .hero { padding: 40px 0 64px; }
  section { padding: 64px 0; }
  .features { grid-template-columns: 1fr; }
  .feed { min-height: 480px; padding: 12px; }
  .listing { grid-template-columns: 56px 1fr 84px; }
  .listing .ph { width: 56px; height: 56px; }
  .listing .ph svg { width: 42px; height: 42px; }
  .steps li { grid-template-columns: 44px 1fr; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .listing, .badge-up, .stamp { transition: none; }
}

/* ---------- Aggiunte: navigazione, messaggi, blog, area utente ---------- */
.skip { position: absolute; left: -9999px; top: 8px; background: var(--tag); color: var(--tag-ink); padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }
.flash { margin: 20px 0 0; padding: 14px 16px; border-radius: var(--radius-s); background: var(--rack); border-left: 4px solid var(--sold); }
.flash-err { border-left-color: #C2410C; }
.wrap.narrow { max-width: 620px; }
.btn-danger { border-color: #B42318; color: #B42318; background: var(--paper); }
.btn-danger:hover { background: #FDECEA; }
.linklike { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; font: inherit; cursor: pointer; }
.inline { display: inline; }
.crumbs { font-size: .9rem; color: var(--ink-2); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); }

.post-list { display: grid; gap: 0; margin-top: 32px; }
.post-card { padding: 26px 0; border-top: 1px solid var(--line); }
.post-card:last-child { border-bottom: 1px solid var(--line); }
.post-card h2 { font-size: 1.45rem; margin: 0 0 8px; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
.post-card p + p { margin-top: 6px; }
.post-cta { margin: 48px 0 8px; padding: 26px; border: 2px solid var(--ink); border-radius: var(--radius-m); }
.post-cta h2 { margin: 0 0 8px; font-size: 1.4rem; }
.post-cta p + p { margin-top: 14px; }
.doc .lead { margin-bottom: 8px; }

.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .85rem; color: var(--ink-2); font-weight: 700; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table td { font-variant-numeric: tabular-nums; }
.doc .table { margin-top: 12px; }

.account-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; flex-wrap: wrap; }
.account-head h1 { margin-bottom: 4px; }
.license-card { border: 2px solid var(--line); border-radius: var(--radius-m); padding: 22px; margin-top: 16px; }
.license-card.is-valid { border-color: var(--ink); }
.lc-top { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.lc-top h3 { margin: 0 0 6px; }
.status { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-2); }
.is-valid .status .dot { background: var(--sold); }
.lc-dates { margin: 0; display: flex; gap: 22px; }
.lc-dates dt { font-size: .85rem; color: var(--ink-2); }
.lc-dates dd { margin: 2px 0 0; font: 800 1.05rem var(--display); }
.lc-label { margin-top: 18px; font-size: .85rem; color: var(--ink-2); }
.lc-key { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 10px; }
.lc-key code { font: 800 1.2rem var(--display); letter-spacing: .03em; background: var(--rack); padding: 10px 14px; border-radius: var(--radius-s); word-break: break-all; }

/* Selettore lingua */
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; font-weight: 700; font-size: .9rem; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-s); }
.langs summary::-webkit-details-marker { display: none; }
.langs ul { position: absolute; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); min-width: 140px; z-index: 20; }
.langs a { display: block; padding: 6px 10px; text-decoration: none; border-radius: 4px; }
.langs a:hover { background: var(--rack); }
.langs a[aria-current] { font-weight: 700; }
.bar nav + .langs { margin-left: 4px; }
@media (max-width: 640px) { .langs { margin-left: auto; } }

/* Dispositivi nell'area utente */
.devices { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.devices li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; background: var(--rack); border-radius: var(--radius-s); flex-wrap: wrap; }
.devices .dev-name { font-weight: 700; }
.devices .dev-meta { font-size: .85rem; color: var(--ink-2); }
.lang-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.lang-form select { font: inherit; padding: 10px 12px; border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--paper); color: var(--ink); }

/* ---------- Recensioni ---------- */
.stars { display: inline-flex; gap: 2px; color: #E7A400; vertical-align: -3px; }
.stars svg { width: 18px; height: 18px; }
.stars-lg svg { width: 26px; height: 26px; }
.rating-summary { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: 32px; align-items: center;
  padding: 24px; border: 2px solid var(--ink); border-radius: var(--radius-m); background: var(--rack); margin: 24px 0 32px; }
.rating-big { display: grid; justify-items: start; gap: 6px; }
.rating-big strong { font: 800 3.4rem/1 var(--display); }
.rating-dist { display: grid; gap: 6px; }
.rating-dist a { display: grid; grid-template-columns: 80px 1fr 36px; gap: 10px; align-items: center; text-decoration: none; font-size: .95rem; padding: 2px 6px; border-radius: var(--radius-s); }
.rating-dist a:hover, .rating-dist a.on { background: var(--paper); }
.rating-dist .bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; display: block; }
.rating-dist .bar span { display: block; height: 100%; background: #E7A400; }
.rating-dist .n { text-align: right; color: var(--ink-2); }
.rating-dist .clear { display: inline-block; font-size: .9rem; text-decoration: underline; }
.review-list { display: grid; gap: 18px; }
.review { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px 22px; }
.review header { display: grid; gap: 6px; }
.review h2 { font-size: 1.15rem; margin: 0; }
.review > p { margin: 10px 0; }
.review footer, .review header { background: none; padding: 0; margin: 0; border: 0; }
.review footer { margin-top: 4px; }
.review .who { font-weight: 700; color: var(--ink); }
.tag-gift { background: var(--rack); border: 1px solid var(--line); border-radius: 99px; padding: 0 8px; }
.review .reply { margin-top: 12px; padding: 12px 16px; border-left: 4px solid var(--tag); background: var(--rack); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.review .reply p { margin: 4px 0 0; }
.empty-reviews { padding: 28px; border: 2px dashed var(--line); border-radius: var(--radius-m); margin: 24px 0; }
.empty-reviews h2 { margin-top: 0; }
.write-review { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: space-between;
  margin: 32px 0; padding: 20px 24px; background: var(--tag); color: var(--tag-ink); border-radius: var(--radius-m); }
.write-review p { margin: 0; font-weight: 700; }
.write-review .btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.small-h { font-size: 1.2rem; margin-top: 36px; }
.pager-pub { display: flex; gap: 10px; justify-content: center; margin: 24px 0; }
.rating-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0 0; }
.review-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: 20px 0 24px; }
.review-card { margin: 0; padding: 20px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius-m); display: grid; gap: 10px; align-content: start; }
.review-card blockquote { margin: 0; }
.review-card blockquote p { margin: 0; }
/* modulo nell'area utente */
.review-form { display: grid; gap: 14px; max-width: 640px; margin: 12px 0; }
.review-form label { display: grid; gap: 4px; font-weight: 700; }
.review-form label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.review-form input:not([type=radio]):not([type=checkbox]), .review-form textarea { font: inherit; padding: 10px 12px; border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--paper); color: var(--ink); }
.review-form textarea { resize: vertical; }
.star-input { border: 0; padding: 0; margin: 0; }
.star-input legend { font-weight: 700; margin-bottom: 4px; padding: 0; }
.star-row { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2rem; line-height: 1; cursor: pointer; color: var(--line); font-weight: 400; display: inline; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #E7A400; }
.star-input input:focus-visible + label { outline: 3px solid var(--tag); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .85rem; font-weight: 700; background: var(--rack); }
.pill-approved { background: #DCF5E7; color: #0B5D37; }
.pill-pending { background: #FFF1C2; color: #5C4300; }
.pill-hidden { background: #F1F2F4; color: #4A5263; }
@media (max-width: 640px) {
  .rating-summary { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .rating-dist a { grid-template-columns: 70px 1fr 30px; }
}
@media (max-width: 1080px) { .bar nav { gap: 14px; } }

/* ---------- Scarica ---------- */
.dl-note { padding: 14px 18px; border-left: 4px solid var(--tag); background: var(--rack); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.dl-card { padding: 22px 24px; border: 2px solid var(--ink); border-radius: var(--radius-m); margin: 20px 0 28px; display: grid; gap: 10px; justify-items: start; }
.dl-card p { margin: 0; }
.dl-store { grid-template-columns: 1fr auto; align-items: center; background: var(--rack); }
.dl-store h2 { margin: 0 0 4px; font-size: 1.25rem; }
.btn-dl { display: inline-flex; gap: 10px; align-items: center; font-size: 1.05rem; }
.dl-steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 12px; }
.dl-steps li { counter-increment: s; position: relative; padding: 12px 16px 12px 58px; background: var(--rack); border-radius: var(--radius-s); }
.dl-steps li::before { content: counter(s); position: absolute; left: 14px; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--tag); color: var(--tag-ink); font: 800 1rem/30px var(--display); text-align: center; }
.dl-steps code, .download-page li code { background: var(--paper); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
@media (max-width: 640px) { .dl-store { grid-template-columns: 1fr; } }
