@import url('./tokens.css?v=e253f52c1a7c7990');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 74% 4%, rgba(124,44,255,.13), transparent 26rem),
    radial-gradient(circle at 8% 58%, rgba(243,63,165,.07), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, select, input, textarea { font: inherit; }
a { color: inherit; }
button, a, select, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid #cf7aff; outline-offset: 3px; }

.skip-link { position: fixed; left: 12px; top: -60px; z-index: 1000; padding: 10px 14px; background: var(--text); color: var(--bg); border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px);
}
.nav { width: var(--page); max-width: 1780px; margin: 0 auto; height: 68px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 1.45rem; font-weight: 950; font-style: italic; letter-spacing: .02em; }
.brand img { width: 31px; height: 31px; object-fit: contain; }
.brand span { background: linear-gradient(135deg, #d87aff, #8d36ff 58%, #f147ac); -webkit-background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-links a { padding: 7px 10px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 650; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: #d17cff; background: rgba(160,58,255,.10); box-shadow: inset 0 0 0 1px rgba(191,105,255,.22); }
.nav-toggle { display: none; min-height: 44px; margin-left: auto; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--text); cursor: pointer; font-weight: 750; }

.beta-banner { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 18px; border-bottom: 1px solid rgba(184,91,255,.24); background: linear-gradient(90deg, rgba(111,31,183,.19), rgba(225,50,169,.10), rgba(111,31,183,.19)); color: var(--muted); text-align: center; font-size: .8rem; }
.beta-banner strong { color: #ce83ff; text-transform: uppercase; letter-spacing: .055em; font-size: .72rem; }

main { overflow: hidden; }
.hero {
  position: relative;
  min-height: 440px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(92deg, rgba(3,4,10,.98) 0%, rgba(6,5,13,.91) 37%, rgba(9,6,20,.52) 57%, rgba(10,7,23,.20) 100%),
    url('../assets/backgrounds/gestore-cristallo.webp?v=e253f52c1a7c7990') center right / cover no-repeat;
}
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 72% 48%, rgba(151,55,255,.14), transparent 26rem); pointer-events: none; }
.hero-inner { width: var(--page); max-width: 1780px; margin: 0 auto; min-height: 440px; position: relative; display: flex; align-items: center; }
.hero-copy { position: relative; z-index: 3; padding: 46px 0 52px; width: min(57%, 860px); }
.hero-kicker { margin: 0 0 2px; font-size: clamp(5rem, 8vw, 8.8rem); font-weight: 1000; line-height: .78; letter-spacing: -.07em; font-style: italic; background: linear-gradient(180deg, #dc75ff 0%, #a43bff 46%, #7125ed 100%); -webkit-background-clip: text; color: transparent; text-shadow: 0 0 42px rgba(153,62,255,.28); }
.hero h1 { margin: 0; font-size: clamp(2.5rem, 4vw, 4.35rem); line-height: .98; letter-spacing: -.045em; font-weight: 950; text-transform: uppercase; }
.hero-copy > p:not(.hero-kicker) { max-width: 700px; margin: 22px 0 28px; color: color-mix(in srgb, var(--text) 84%, var(--muted)); font-size: clamp(1rem, 1.45vw, 1.22rem); line-height: 1.5; }
.hero-art { position: absolute; z-index: 2; right: clamp(2%, 6vw, 8%); bottom: -4px; width: min(33vw, 560px); max-height: 95%; object-fit: contain; filter: drop-shadow(0 0 38px rgba(142,48,255,.34)); pointer-events: none; }

.home-overview { width: var(--page); max-width: 1780px; margin: 0 auto; padding: 20px 0 0; }
.public-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.public-stats article { min-height: 122px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); }
.public-stats span, .public-stats small { display: block; color: var(--muted); }
.public-stats span { font-size: .74rem; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.public-stats strong { display: block; margin: 10px 0 4px; color: #ca70ff; font-size: clamp(1.55rem, 3vw, 2.35rem); }
.public-stats small { font-size: .75rem; }
.product-intro { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: clamp(22px, 4vw, 58px); align-items: center; padding: clamp(28px, 5vw, 58px) 0 20px; }
.product-intro h2 { margin: 7px 0 14px; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1; letter-spacing: -.045em; }
.product-intro p { color: var(--muted); line-height: 1.62; }
.product-intro .product-note { font-size: .86rem; color: #cfaee5; }
.hero-community { max-width: 690px; color: #d8c3e8 !important; font-size: .92rem; }
.inline-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 20px; }
.inline-links a { color: #d185ff; font-weight: 750; text-underline-offset: 4px; }
.product-shots { display: grid; grid-template-columns: minmax(180px, .45fr) minmax(360px, 1fr); gap: 14px; align-items: end; }
.product-shots figure { margin: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow), var(--glow); }
.product-shots img { display: block; width: 100%; height: auto; }
.product-shots figcaption { padding: 11px 13px; color: var(--muted); font-size: .75rem; line-height: 1.4; }

.cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 9px; border: 1px solid rgba(213,135,255,.55); color: white; text-decoration: none; font-weight: 800; background: linear-gradient(135deg, #a636ff, #7721d7 58%, #a62eff); box-shadow: 0 0 26px rgba(159,46,255,.28), inset 0 1px rgba(255,255,255,.16); transition: transform .18s ease, filter .18s ease; }
.cta:hover { transform: translateY(-1px); filter: brightness(1.08); }
.cta[aria-disabled="true"] { cursor: not-allowed; opacity: .72; }

.dashboard, .detail-content { width: var(--page); max-width: 1780px; margin: 0 auto; }
.dashboard { padding: 20px 0 34px; }
.panel { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, rgba(130,62,255,.05)), var(--surface)); box-shadow: var(--shadow); overflow: hidden; }
.panel-inner { position: relative; z-index: 2; padding: 22px; }
.panel-heading-row { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; margin-bottom: 17px; }
.panel-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.16rem; font-weight: 900; letter-spacing: .025em; text-transform: uppercase; }
.panel-title .icon { color: var(--violet); font-size: 1.2em; }
.panel-title.magenta .icon { color: var(--magenta); }
.panel-lead { margin: 7px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.45; }

.meta-status { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: flex-end; align-items: center; color: var(--muted); font-size: .86rem; padding-top: 3px; }
.meta-status strong { color: var(--text); }
.meta-status time { color: #c065ff; }

.explorer-controls { display: grid; grid-template-columns: 145px 145px 145px 220px minmax(220px, 1.15fr) 180px minmax(210px, .85fr) auto; gap: 11px; align-items: end; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--surface-2) 93%, rgba(127,43,255,.07)); }
.filter-field { min-width: 0; }
.filter-field label, .field-label { display: block; margin: 0 0 6px; color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .045em; }
.select-wrap { position: relative; display: block; }
.select-wrap select { width: 100%; appearance: none; border: 1px solid var(--line-strong); background: var(--surface-3); color: var(--text); border-radius: 9px; padding: 10px 38px 10px 13px; cursor: pointer; min-height: 42px; }
.select-wrap select:disabled { opacity: .48; cursor: not-allowed; }
.select-wrap::after { content: "⌄"; position: absolute; right: 13px; top: 9px; pointer-events: none; color: var(--muted); }
.search-box { min-height: 42px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); background: var(--surface-3); border-radius: 9px; padding: 0 12px; }
.search-box span { color: var(--violet); font-size: 1.15rem; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.search-box input::placeholder { color: var(--muted-2); }
.color-filters { display: flex; gap: 7px; min-height: 42px; align-items: center; }
.color-pip { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); color: #111; font-weight: 950; cursor: pointer; box-shadow: inset 0 1px rgba(255,255,255,.3); opacity: .58; filter: saturate(.55); transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease, filter .15s ease; }
.color-pip:hover:not(:disabled) { transform: translateY(-1px); opacity: .82; filter: saturate(.85); }
.color-pip[aria-pressed="true"] { opacity: 1; filter: none; outline: 2px solid var(--violet); outline-offset: 2px; box-shadow: 0 0 18px rgba(166,68,255,.28); }
.color-pip:disabled { opacity: .20; cursor: not-allowed; filter: grayscale(.75); }
.color-w { background: #f0e7c7; }
.color-u { background: #73b8e7; }
.color-b { background: #51465e; color: #fff; }
.color-r { background: #e76f56; }
.color-g { background: #67a86c; }
.clear-filters { min-height: 42px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted); padding: 0 14px; cursor: pointer; }
.clear-filters:hover { color: var(--text); border-color: var(--line-strong); }
.classification-help { margin: 9px 2px 14px; color: var(--warning); font-size: .76rem; }
.classification-help.ready { color: var(--muted); }

.table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { background: color-mix(in srgb, var(--surface-3) 84%, var(--violet) 5%); color: var(--muted); font-size: .78rem; font-weight: 800; }
th button { border: 0; background: transparent; color: inherit; cursor: pointer; font-weight: inherit; padding: 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(143,55,255,.045); }
.deck-link { display: block; text-decoration: none; margin: -11px -13px; padding: 11px 13px; }
.deck { display: grid; grid-template-columns: 34px minmax(0, 1fr) 20px; align-items: center; gap: 10px; min-width: 320px; }
.deck-mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: white; background: linear-gradient(135deg, #3f2b6e, #8727c9); border: 1px solid rgba(255,255,255,.12); font-size: .73rem; font-weight: 900; }
.deck-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.deck-name { overflow: hidden; text-overflow: ellipsis; color: var(--text); font-weight: 780; }
.deck-copy small { color: var(--muted); font-size: .68rem; }
.deck-copy small.classified { color: #bb75ff; }
.deck-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 1px; }
.mini-color { width: 19px; height: 19px; display: inline-grid; place-items: center; border-radius: 50%; color: #101015; font-size: .58rem; font-weight: 950; }
.mini-w { background: #f0e7c7; }.mini-u { background: #73b8e7; }.mini-b { background: #51465e; color: white; }.mini-r { background: #e76f56; }.mini-g { background: #67a86c; }
.strategy-chip { display: inline-flex; align-items: center; min-height: 19px; padding: 0 7px; border: 1px solid var(--line-strong); border-radius: 999px; color: #c77bff; font-size: .62rem; }
.row-chevron { color: var(--violet); font-size: 1.6rem; opacity: .55; transition: transform .15s ease, opacity .15s ease; }
.deck-link:hover .row-chevron { transform: translateX(2px); opacity: 1; }
.positive { color: var(--green); font-weight: 800; }
.negative { color: var(--red); font-weight: 800; }
.insufficient { color: var(--muted); font-style: italic; }
.share-cell { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.share-bar { width: 52px; height: 4px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.share-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--magenta), var(--violet)); border-radius: inherit; }
.meta-footer-row { display: flex; justify-content: space-between; gap: 16px; }
.note { color: var(--muted); font-size: .79rem; margin: 10px 2px 0; }

.matchup-panel { margin-top: 16px; isolation: isolate; }
.matchup-panel::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--surface) 98%, transparent) 0 43%, color-mix(in srgb, var(--surface) 78%, transparent)), url('../assets/backgrounds/gestore-osservatorio.webp?v=e253f52c1a7c7990') right center / cover no-repeat; opacity: .34; pointer-events: none; }
.threshold-badge { flex: 0 0 auto; border: 1px solid rgba(243,63,165,.28); border-radius: 999px; color: #ff69bd; background: rgba(243,63,165,.075); padding: 7px 11px; font-size: .72rem; font-weight: 800; }
.unavailable { min-height: 146px; display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 18px; padding: 22px; border-radius: 12px; border: 1px solid var(--line); background: radial-gradient(circle at 45% 50%, rgba(124,44,255,.11), transparent 50%), repeating-radial-gradient(circle at 45% 50%, transparent 0 30px, rgba(168,94,255,.045) 31px 32px); }
.unavailable.wide { max-width: 1120px; }
.lock { width: 62px; height: 62px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; color: var(--violet); font-size: 1.55rem; box-shadow: var(--glow); }
.unavailable h3 { margin: 0 0 6px; font-size: 1rem; }
.unavailable p { margin: 0; color: var(--muted); line-height: 1.45; font-size: .86rem; }
.unavailable .matchup-context { margin-top: 8px; color: #c472ff; }
.matchup-panel.is-unavailable .panel-inner { padding-top: 18px; padding-bottom: 18px; }
.matchup-panel.is-unavailable .panel-heading-row { margin-bottom: 10px; }
.matchup-panel.is-unavailable .unavailable { min-height: 94px; padding-top: 14px; padding-bottom: 14px; }

.methodology { margin-top: 16px; }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.method-card { min-height: 116px; padding: 15px; display: grid; grid-template-columns: 54px 1fr; gap: 13px; align-items: center; border: 1px solid var(--line); background: var(--surface-2); border-radius: 11px; }
.method-icon { width: 50px; height: 50px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; color: var(--violet); font-size: 1.35rem; }
.method-card:nth-child(2) .method-icon, .method-card:nth-child(2) strong { color: var(--magenta); }
.method-card strong { display: block; color: #c05fff; font-size: 1rem; margin-bottom: 4px; }
.method-card p { margin: 0; color: var(--muted); line-height: 1.4; font-size: .8rem; }

.final-cta { margin-top: 16px; min-height: 88px; border: 1px solid rgba(207,61,255,.38); border-radius: 12px; background: radial-gradient(circle at 15% 50%, rgba(142,33,255,.25), transparent 28%), radial-gradient(circle at 85% 50%, rgba(234,44,172,.14), transparent 30%), linear-gradient(90deg, rgba(65,18,96,.38), rgba(16,11,26,.85) 45%, rgba(74,15,82,.38)); display: flex; align-items: center; justify-content: center; gap: clamp(20px, 6vw, 90px); padding: 18px; }
.final-cta strong { font-size: clamp(1.1rem, 2vw, 1.45rem); }
.site-footer { border-top: 1px solid var(--line); padding: 24px 20px 32px; text-align: center; color: var(--muted); }
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 18px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.state { padding: 30px 18px; text-align: center; color: var(--muted); }
.state strong { display: block; color: var(--text); margin-bottom: 5px; }
.retry { margin-top: 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-3); color: var(--text); padding: 8px 14px; cursor: pointer; }
.skeleton { min-height: 200px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.035), transparent); background-size: 220% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -220% 0; } }
.mobile-meta { display: none; }
.mobile-deck { display: block; padding: 14px; border-bottom: 1px solid var(--line); text-decoration: none; }
.mobile-deck:last-child { border-bottom: 0; }
.mobile-deck-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.mobile-deck-head > div { display: flex; flex-direction: column; gap: 3px; }
.mobile-deck-head small { color: var(--muted); font-weight: 400; }
.mobile-deck-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.mobile-metric { border: 1px solid var(--line); border-radius: 9px; padding: 9px; }
.mobile-metric span { display: block; color: var(--muted); font-size: .7rem; margin-bottom: 3px; }

/* Detail page */
.detail-hero { min-height: 295px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(3,4,10,.97), rgba(8,5,17,.86) 56%, rgba(12,7,27,.42)), url('../assets/backgrounds/gestore-osservatorio.webp?v=e253f52c1a7c7990') right center / cover no-repeat; }
.detail-hero-inner { width: var(--page); max-width: 1780px; margin: 0 auto; padding: 32px 0 26px; }
.back-link { display: inline-flex; color: var(--muted); text-decoration: none; font-size: .84rem; margin-bottom: 20px; }
.back-link:hover { color: var(--text); }
.detail-heading { min-height: 195px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.detail-title-block { min-width: 0; }
.eyebrow { display: block; margin-bottom: 8px; color: #bd6dff; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 900; }
.detail-heading h1 { margin: 0; font-size: clamp(2.7rem, 6vw, 5.2rem); line-height: .96; letter-spacing: -.045em; }
.detail-heading > img { width: min(21vw, 290px); max-height: 210px; object-fit: contain; filter: drop-shadow(0 0 30px rgba(138,48,255,.25)); }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.detail-tag { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: #d69cff; background: rgba(153,59,255,.08); font-size: .74rem; font-weight: 800; }
.pending-tag { color: var(--warning); border-color: rgba(243,191,98,.32); background: rgba(243,191,98,.07); }
.muted-tag { color: var(--muted); }
.color-tag { color: #101015; border-color: transparent; }
.tag-w { background:#f0e7c7; }.tag-u { background:#73b8e7; }.tag-b { background:#51465e; color:#fff; }.tag-r { background:#e76f56; }.tag-g { background:#67a86c; }
.detail-content { padding: 20px 0 34px; }
.detail-error { margin-bottom: 16px; border: 1px solid rgba(255,107,113,.32); background: rgba(255,107,113,.08); color: #ff9ea2; border-radius: 12px; padding: 14px 16px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.summary-card { min-height: 130px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); }
.summary-card > span { display:block; color: var(--muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .045em; }
.summary-card > strong { display:block; margin: 12px 0 4px; color: #c762ff; font-size: clamp(1.55rem, 3vw, 2.45rem); letter-spacing: -.035em; }
.summary-card small { color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail-grid > .deck-profile-panel { grid-column: 1 / -1; }
.detail-section { min-height: 220px; }
.locked-feature { min-height: 135px; display: flex; flex-direction: column; justify-content: center; border: 1px dashed var(--line-strong); border-radius: 11px; padding: 18px; background: rgba(124,44,255,.035); }
.locked-feature strong { margin-bottom: 7px; }
.locked-feature p { margin: 0; color: var(--muted); line-height: 1.5; }
.trend-panel { margin-top: 16px; }
.trend-placeholder { min-height: 180px; display: grid; grid-template-columns: minmax(260px, .8fr) 1.2fr; align-items: center; gap: 28px; }
.trend-placeholder p { margin: 6px 0 0; color: var(--muted); line-height: 1.5; }
.trend-empty { height: 130px; display: grid; place-items: center; border: 1px dashed var(--line-strong); border-radius: 10px; background: radial-gradient(circle at 50% 50%, rgba(124,44,255,.09), transparent 55%); color: var(--violet); }
.trend-empty span { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 1.6rem; opacity: .72; }
.muted-content { opacity: .5; }

/* Privacy */
.privacy-hero { min-height: 250px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(3,4,10,.98), rgba(9,5,19,.86) 60%, rgba(12,7,27,.42)), url('../assets/backgrounds/gestore-osservatorio.webp?v=e253f52c1a7c7990') right center / cover no-repeat; }
.privacy-hero-inner { width: var(--page); max-width: 1180px; min-height: 250px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; }
.privacy-hero h1 { margin: 0; font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: .94; letter-spacing: -.055em; }
.privacy-hero p { max-width: 720px; margin: 16px 0 0; color: var(--muted); line-height: 1.55; }
.privacy-content { width: var(--page); max-width: 1180px; margin: 0 auto; padding: 20px 0 38px; display: grid; gap: 14px; }
.privacy-section { padding: 22px; }
.privacy-section h2 { margin: 0 0 12px; font-size: 1.12rem; }
.privacy-section h3 { margin: 20px 0 8px; font-size: .98rem; }
.privacy-section p, .privacy-section li { color: var(--muted); line-height: 1.65; }
.privacy-section p { margin: 8px 0; }
.privacy-section ul { margin: 8px 0 0; padding-left: 20px; }
.privacy-section a { color: #c87cff; }
.privacy-section .release-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 16px; }
.privacy-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.privacy-meta span { padding: 6px 9px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: .72rem; }

.download-content { width: var(--page); max-width: 1180px; margin: 0 auto; padding: clamp(24px, 5vw, 62px) 0 84px; }
.download-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .38fr); align-items: center; gap: clamp(24px, 5vw, 64px); padding: clamp(24px, 5vw, 54px); overflow: hidden; }
.download-hero h1 { margin: 8px 0 16px; font-size: clamp(2.4rem, 5vw, 4.7rem); line-height: .98; letter-spacing: -.05em; }
.download-hero p { max-width: 720px; color: var(--muted); line-height: 1.6; }
.download-hero .download-release { color: #d28bff; font-size: .86rem; }
.download-hero img { width: 100%; max-width: 340px; justify-self: end; filter: drop-shadow(0 0 34px rgba(142,48,255,.35)); }
.download-section { margin-top: clamp(56px, 8vw, 96px); }
.anchor-section { scroll-margin-top: 96px; }
.download-toc { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; padding: 18px 20px; }
.download-toc strong { flex: 1 0 100%; }
.download-toc a { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: #d28bff; font-size: .86rem; text-decoration: none; }
.download-toc a:hover, .download-toc a:focus-visible { border-color: var(--lilac); background: rgba(124,44,255,.12); }
.download-section-head { margin-bottom: 24px; }
.download-section-head h2 { margin: 6px 0 0; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1; }
.download-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.download-steps + .download-guide-card { margin-top: 20px; }
.download-steps article { display: flex; flex-direction: column; height: 100%; padding: 22px; }
.download-steps span { display: inline-grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: #d28bff; font-weight: 900; }
.download-steps h3 { margin: 18px 0 8px; font: 600 1.12rem/1.25 var(--sans); }
.download-steps p { margin: 0; color: var(--muted); line-height: 1.58; }
.download-content code { padding: 2px 6px; border-radius: 5px; background: rgba(255,255,255,.06); color: var(--text); font-size: .9em; overflow-wrap: anywhere; }
.download-tools { display: grid; gap: 20px; }
.download-tool { display: grid; grid-template-columns: minmax(0, .82fr) minmax(320px, 1.18fr); align-items: center; gap: clamp(24px, 5vw, 56px); padding: clamp(22px, 4vw, 40px); overflow: hidden; }
.download-tool:nth-child(even) .download-tool-copy { order: 2; }
.download-tool-icon { width: 46px; height: 46px; object-fit: contain; }
.download-tool h3 { margin: 14px 0 8px; font-size: clamp(1.55rem, 3vw, 2.1rem); }
.download-tool p, .download-wide p, .download-info-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.download-tool-shot { display: block; width: 100%; height: auto; border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.download-howto, .download-info-grid, .download-support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.download-options-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.download-options-grid > .panel { padding: clamp(22px, 4vw, 34px); }
.download-options-grid h3 { margin: 0 0 12px; font-size: 1.25rem; }
.download-options-grid p, .download-options-grid li { color: var(--muted); line-height: 1.65; }
.download-options-grid p { margin: 0; }
.download-options-grid ul { margin: 0; padding-left: 1.25rem; }
.download-howto > .panel + .panel, .download-info-grid > .panel + .panel, .download-support-grid > .panel + .panel { margin-top: 0; }
.download-guide-card, .download-info-card { padding: clamp(22px, 4vw, 34px); }
.download-guide-card h2, .download-info-card h2 { margin: 0 0 14px; font-size: clamp(1.45rem, 3vw, 2rem); }
.download-guide-card ol { margin: 0; padding-left: 1.35rem; }
.download-guide-card li { padding-left: 5px; color: var(--text-2); line-height: 1.65; }
.download-guide-card li + li { margin-top: 5px; }
.download-note { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.download-wide { display: grid; grid-template-columns: minmax(0, .9fr) minmax(300px, 1.1fr); align-items: center; gap: clamp(24px, 5vw, 56px); margin-top: clamp(56px, 8vw, 96px); padding: clamp(22px, 4vw, 40px); overflow: hidden; }
.download-wide h2 { margin: 6px 0 10px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.download-wide img { display: block; width: 100%; height: auto; border: 1px solid var(--line-strong); border-radius: 12px; }
.download-info-card .eyebrow { display: block; margin-bottom: 7px; }
.download-info-card p + p { margin-top: 16px; }
.download-info-card a, .download-help-links a { color: #d28bff; font-weight: 600; text-underline-offset: 3px; }
.download-help-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.download-help-links a { padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; }
.download-help-links a:hover { border-color: var(--lilac); background: rgba(124,44,255,.12); }
.research-teaser { width: var(--page); max-width: 1180px; margin: 0 auto 20px; }
.research-teaser h2 { margin: 7px 0 10px; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.research-teaser p { max-width: 860px; margin: 0; color: var(--muted); line-height: 1.6; }

@media (max-width: 1500px) {
  .explorer-controls { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .color-field { grid-column: span 2; }
  .clear-filters { justify-self: start; }
}

@media (max-width: 980px) {
  :root { --page: calc(100% - 28px); }
  .hero-copy { width: 68%; }
  .hero-art { width: min(42vw, 430px); right: 1%; opacity: .88; }
  .explorer-controls { grid-template-columns: 1fr 1fr; }
  .search-field, .strategy-field, .color-field { grid-column: span 1; }
  .clear-filters { width: fit-content; }
  .panel-heading-row { flex-direction: column; gap: 8px; }
  .meta-status { justify-content: flex-start; }
  .method-grid, .summary-grid { grid-template-columns: 1fr 1fr; }
  .product-intro { grid-template-columns: 1fr; }
  .download-hero { grid-template-columns: 1fr; }
  .download-hero img { justify-self: center; max-width: 230px; }
  .download-tool, .download-wide { grid-template-columns: 1fr; }
  .download-tool:nth-child(even) .download-tool-copy { order: 0; }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --page: calc(100% - 22px); }
  .nav { position: relative; height: 62px; gap: 13px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 7px; }
  .nav-links { display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; z-index: 40; margin-left: 0; padding: 8px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; background: rgba(7,8,13,.98); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .nav-links[data-open] { display: flex; }
  .nav-links a { width: 100%; min-height: 44px; display: flex; align-items: center; padding: 10px 12px; }
  .beta-banner { align-items: flex-start; gap: 4px; flex-direction: column; text-align: left; padding-inline: 11px; }
  .hero { min-height: 500px; background-position: 72% center; }
  .hero-inner { min-height: 500px; align-items: flex-start; }
  .hero-copy { width: 100%; padding-top: 44px; }
  .hero-copy > p:not(.hero-kicker) { max-width: 88%; }
  .hero-art { width: 68vw; max-width: none; right: -20%; bottom: -2%; opacity: .38; }
  .dashboard { padding-top: 12px; }
  .panel-inner { padding: 14px; }
  .explorer-controls { grid-template-columns: 1fr 1fr; padding: 11px; }
  .search-field, .strategy-field, .color-field { grid-column: 1 / -1; }
  .clear-filters { grid-column: 1 / -1; }
  .desktop-table { display: none; }
  .mobile-meta { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
  .meta-footer-row { flex-direction: column; gap: 0; }
  .unavailable { grid-template-columns: 52px 1fr; }
  .lock { width: 48px; height: 48px; }
  .method-grid, .summary-grid { grid-template-columns: 1fr; }
  .public-stats, .product-shots { grid-template-columns: 1fr; }
  .download-steps { grid-template-columns: 1fr; }
  .download-howto, .download-info-grid, .download-support-grid, .download-options-grid { grid-template-columns: 1fr; }
  .download-help-links { grid-template-columns: 1fr; }
  .method-card { min-height: 92px; }
  .final-cta { flex-direction: column; text-align: center; gap: 14px; }
  .detail-heading > img { opacity: .26; position:absolute; right: -5%; width: 46vw; }
  .detail-heading { position:relative; min-height: 160px; }
  .trend-placeholder { grid-template-columns: 1fr; }
  .privacy-section { padding: 16px; }
}

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

/* Il filtro del rank: un intervallo, non una scelta sola.
   Due cursori sullo stesso binario, e sopra le sei insegne che dicono a colpo
   d'occhio dove sei. Il testo dei rank non ci stava nella colonna: si
   sovrapponeva al campo di ricerca. */
.rank-field { min-width: 0; }
.rank-range { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rank-range output { font-size: .74rem; color: var(--text); min-height: 16px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-ticks { display: flex; justify-content: space-between; list-style: none;
  margin: 0; padding: 0 2px; gap: 2px; }
.rank-ticks li { flex: 0 0 auto; line-height: 0; }
.rank-ticks img { width: 24px; height: 24px; display: block;
  filter: grayscale(1) brightness(.62); opacity: .5;
  transition: filter .14s ease, opacity .14s ease, transform .14s ease; }
.rank-ticks li.attivo img { filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55));
  opacity: 1; transform: translateY(-1px); }
.rank-track { position: relative; height: 20px; }
.rank-track::before { content: ""; position: absolute; left: 0; right: 0; top: 8px;
  height: 4px; border-radius: 3px; background: var(--surface-3); border: 1px solid var(--line); }
.rank-selected { position: absolute; top: 8px; height: 4px; border-radius: 3px;
  background: #a855f7; pointer-events: none; }
.rank-track input[type="range"] { position: absolute; left: 0; width: 100%; margin: 0;
  height: 20px; background: none; appearance: none; pointer-events: none; }
.rank-track input[type="range"]::-webkit-slider-thumb { appearance: none; pointer-events: auto;
  width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--surface-1);
  background: #a855f7; cursor: pointer; }
.rank-track input[type="range"]::-moz-range-thumb { pointer-events: auto;
  width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--surface-1);
  background: #a855f7; cursor: pointer; }
.rank-track input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--text); }
@media (max-width: 980px) { .rank-field { grid-column: span 1; } }
