/* claudioalberti.ch — pagina di riferimento EU AI Act (EN/FR/IT)
   Usa i token di styles.css; qui solo i componenti specifici della pagina. */

.hero.hero-ref { padding-bottom: 56px; }
.hero.hero-ref h1 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); max-width: 18ch; }
.hero-ref .reviewed { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--on-dark-mute); margin: 22px 0 0; }

.toc { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 8px 10px; }
.toc a {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--on-dark-mute); text-decoration: none; border: 1px solid rgba(255,255,255,.2);
  padding: 5px 10px; border-radius: 2px;
}
.toc a:hover { color: var(--ink); background: var(--accent-hi); border-color: var(--accent-hi); }
@media (min-width: 1200px) { .hero.hero-ref .wrap > .toc, .hero.hero-ref .wrap > .reviewed { grid-column: 1 / -1; } }

section.ref { padding: 64px 0; scroll-margin-top: 70px; }
section.ref .body { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; min-width: 0; }
section.ref .body p { margin: 0; }
section.ref ul, section.ref ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 7px; max-width: var(--measure); font-size: 16.5px; }
section.ref li::marker { color: var(--muted); }
section.ref h3 { font-size: 1.08rem; margin-bottom: 4px; }

.art { font-family: var(--f-mono); font-size: .8em; color: var(--primary); white-space: nowrap; font-weight: 500; }
.small { font-size: 15px; color: var(--muted); }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.box { background: var(--surface); border: 1px solid var(--rule); padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
section.alt .box { background: var(--ground); }
.box ul, .box ol { font-size: 15.5px !important; }

.callout { border-left: 3px solid var(--accent); background: var(--surface); padding: 14px 20px; font-size: 16px; max-width: 80ch; }
section.alt .callout { background: var(--ground); }
.callout strong { color: var(--ink); }

/* tabelle */
.tbl { overflow-x: auto; border: 1px solid var(--rule); background: var(--surface); }
section.alt .tbl { background: var(--ground); }
.tbl table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 15px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--rule-soft); }
.tbl th { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.tbl tr:last-child td { border-bottom: 0; }

.tier { display: inline-block; font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; white-space: nowrap; }
.t-ban { background: #F4DCD8; color: #8E2A22; }
.t-high { background: #F6E6B8; color: #6E5200; }
.t-trans { background: #D9E5EC; color: var(--primary); }
.t-min { background: #DCEADF; color: var(--verified); }

/* timeline */
.tl { list-style: none; padding: 0 !important; gap: 0 !important; max-width: none !important; border-top: 1px solid var(--rule); }
.tl li { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--rule-soft); font-size: 16px; }
.tl time { font-family: var(--f-mono); font-size: 14px; font-weight: 600; color: var(--primary); font-variant-numeric: tabular-nums; padding-top: 2px; }
.tl li.past time { color: var(--muted); font-weight: 400; }
.tl .was { display: block; font-size: 14px; color: var(--muted); }
.omni { font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6E5200; background: #F6E6B8; padding: 2px 6px; border-radius: 2px; margin-left: 6px; white-space: nowrap; }
@media (max-width: 560px) { .tl li { grid-template-columns: 1fr; gap: 4px; } }

/* autoverifica */
.cards { display: flex; flex-direction: column; gap: 10px; max-width: 90ch; }
.cards details { background: var(--surface); border: 1px solid var(--rule); padding: 16px 20px; }
section.alt .cards details { background: var(--ground); }
.cards summary { cursor: pointer; font-family: var(--f-display); font-weight: 600; color: var(--ink); font-size: 1.02rem; letter-spacing: -.01em; }
.cards summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cards details[open] summary { margin-bottom: 10px; }
.cards details p { font-size: 16px; }

.disclaimer { font-size: 14.5px; color: var(--muted); max-width: 90ch; }
.lang-alt { display: flex; gap: 8px; }
