/* La Tessera Arabian 971 — prototype chrome shared by every page in proto-tessera.
   Brand tokens copied from assets/a971-tokens.css; fonts self-hosted in ./font. */

@font-face { font-family: 'Cormorant Garamond'; src: url(font/a971-cormorant-garamond-400.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url(font/a971-cormorant-garamond-400i.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url(font/a971-cormorant-garamond-500.woff2) format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url(font/a971-cormorant-garamond-600.woff2) format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url(font/a971-manrope-var.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }
/* digits only: numerals switch to Manrope inside DM Sans / Cormorant text */
@font-face { font-family: 'A971 Cifre'; src: url(font/a971-manrope-var.woff2) format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0030-0039, U+20AC, U+0025; }
/* same digits inside Cormorant titles, scaled down to sit with its small x-height */
@font-face { font-family: 'A971 Cifre Serif'; src: url(font/a971-manrope-var.woff2) format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0030-0039, U+20AC, U+0025; size-adjust: 86%; }

:root {
  --sabbia: #EFE7D8;
  --crema: #F9F4E9;
  --oud: #3B2E1F;
  --oro: #AE8A4F;
  --oro-chiaro: #C9A96A;
  --oro-scuro: #8A6A36;          /* gold for small text on sabbia/crema (contrast ≥ 4:1) */
  --verde: #386B49;
  --rosso: #A24632;
  --linea: rgba(174, 138, 79, .28);
  --muto: rgba(59, 46, 31, .66);
  --serif: 'A971 Cifre Serif', 'Cormorant Garamond', Georgia, serif;
  --sans: 'A971 Cifre', 'DM Sans', system-ui, -apple-system, sans-serif;
  --num: 'Manrope', 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sabbia); color: var(--oud); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }

/* ── barra del prototipo ─────────────────────────────────── */
.pbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px; background: rgba(249, 244, 233, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linea); font-size: 12.5px; }
.pbar__home { text-decoration: none; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 10.5px; color: var(--oro-scuro); }
.pbar__titolo { color: var(--muto); }
.pbar__seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(174, 138, 79, .12); margin-left: auto; }
.pbar__seg a { padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--muto); white-space: nowrap; }
.pbar__seg a[aria-current="page"] { background: var(--oud); color: var(--crema); }
@media (max-width: 520px) { .pbar { padding: 8px 12px; gap: 8px; } .pbar__titolo { display: none; } .pbar__seg a { padding: 6px 10px; } }

/* ── testata della pagina prototipo ──────────────────────── */
.ptesta { max-width: 1180px; margin: 0 auto; padding: 36px 16px 8px; }
.eyebrow { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--oro); }
.ptesta h1 { margin: 10px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 46px); line-height: 1.08; letter-spacing: -.01em; }
.ptesta h1 em { font-style: italic; color: var(--oro); }
.ptesta p.lead { margin: 12px 0 0; max-width: 72ch; font-size: 15px; line-height: 1.65; color: var(--muto); }

/* state switcher (chips) */
.stati { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.stati button { border: 1px solid var(--linea); background: var(--crema); border-radius: 999px; padding: 8px 14px; font-size: 13px; cursor: pointer; color: var(--muto); min-height: 36px; }
.stati button[aria-pressed="true"] { background: var(--oud); border-color: var(--oud); color: var(--crema); }

/* ── note di lavoro e tabelle tecniche ───────────────────── */
.sezione { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.nota { margin: 40px 0 0; padding: 20px 0 0; border-top: 1px dashed rgba(174, 138, 79, .5); font-size: 13px; line-height: 1.7; color: var(--muto); }
.nota h2 { margin: 0 0 10px; font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--oud); }
.nota ul { margin: 0; padding-left: 18px; }
.nota li + li { margin-top: 6px; }
.nota b { color: var(--oud); font-weight: 600; }
.nota code, .spec code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: rgba(174, 138, 79, .12); padding: 1px 5px; border-radius: 4px; }
.da-sostituire { background: #F6E3B0; color: #6B4A12; border-radius: 4px; padding: 0 4px; font-weight: 600; font-size: .92em; }

.spec { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 8px 0 0; }
.spec th, .spec td { text-align: left; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--linea); vertical-align: top; }
.spec th { font-weight: 600; color: var(--oud); white-space: nowrap; }
.spec td { color: var(--muto); }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; border: 1px solid rgba(0, 0, 0, .15); }

.asset-griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 12px 0 0; }
.asset { background: var(--crema); border: 1px solid var(--linea); border-radius: 8px; padding: 10px; font-size: 12px; color: var(--muto); }
.asset__img { display: grid; place-items: center; min-height: 90px; border-radius: 6px; background: repeating-conic-gradient(#e8e0d0 0% 25%, #f4efe4 0% 50%) 50% / 14px 14px; padding: 8px; }
.asset__img img { max-height: 120px; width: auto; }
.asset a { color: var(--oud); }

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