/* Officina Storta — stile comune. Niente font esterni, niente tracciamenti. */
:root {
  --ink: #222222;
  --red: #c44332;
  --blue: #6b8ebb;
  --kraft: #d9c9a9;
  --paper: #f4f3ed;
  --paper-2: #ebe7dc;
  --white: #fffdf8;
  --grey: #6b6760;
  --line: #cfc8b8;
  --f-head: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --f-body: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --f-hand: "Ink Free", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
  --max: 1060px;
  --r: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.62 var(--f-body);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

/* ---------- testata ---------- */
.site-head { border-bottom: 1.5px solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--f-head); letter-spacing: .02em; text-transform: uppercase; }
.brand .o { color: var(--red); }
.nut { width: 22px; height: 22px; flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 2px; margin: 0; padding: 0; list-style: none; }
.nav a { display: block; padding: 6px 10px; font: 700 15px/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; border-radius: var(--r); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--white); }
.nav a:hover:not([aria-current]) { background: var(--paper-2); color: var(--ink); }

/* ---------- tipografia ---------- */
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; line-height: 1.08; text-transform: uppercase; letter-spacing: .01em; margin: 0 0 .4em; }
h1 { font-size: clamp(34px, 6vw, 56px); }
h2 { font-size: clamp(26px, 4vw, 36px); margin-top: 1.6em; }
h3 { font-size: 20px; margin-top: 1.2em; }
.kicker { font: 21px/1.3 var(--f-hand); color: var(--red); margin: 0 0 1em; }
.rule { display: block; width: 180px; height: 10px; margin: 2px 0 10px; }
.lead { font-size: 19px; }
.muted { color: var(--grey); }
.small { font-size: 14.5px; }
.hand { font-family: var(--f-hand); }
p { margin: 0 0 1em; }

main { padding: 36px 0 64px; }
section { margin-bottom: 8px; }

/* ---------- hero ---------- */
.hero { display: grid; gap: 28px; align-items: center; }
@media (min-width: 820px) { .hero { grid-template-columns: 1fr 1.05fr; gap: 48px; } }
.hero .logo { max-width: 460px; margin: 0 auto; }
.hero h1 { font-size: clamp(30px, 4.6vw, 46px); }

/* ---------- blocchi ---------- */
.box { background: var(--kraft); padding: 18px 20px; border-radius: var(--r); margin: 18px 0; }
.box.white { background: var(--white); border: 1.5px solid var(--ink); }
.box.red { background: var(--white); border: 2px solid var(--red); }
.formula { font: 700 clamp(18px, 2.6vw, 24px)/1.3 var(--f-head); text-transform: uppercase; }
.formula .eq { color: var(--red); display: block; }

.rules3 { display: grid; gap: 12px; margin: 24px 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .rules3 { grid-template-columns: repeat(3, 1fr); } }
.rules3 li { background: var(--ink); color: var(--white); padding: 16px; border-radius: var(--r); font: 700 20px/1.15 var(--f-head); text-transform: uppercase; transform: rotate(var(--t, 0deg)); }
.rules3 li:nth-child(1) { --t: -.6deg; }
.rules3 li:nth-child(2) { --t: .5deg; background: var(--red); }
.rules3 li:nth-child(3) { --t: -.3deg; background: var(--blue); }
.rules3 small { display: block; font: 15px/1.4 var(--f-body); text-transform: none; margin-top: 6px; opacity: .92; }

.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--white); color: var(--ink); font: 700 15px/1.1 var(--f-head); text-transform: uppercase; letter-spacing: .04em; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink); color: var(--white); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); }
.btn.small { padding: 7px 11px; font-size: 13.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* principi */
.princ { list-style: none; padding: 0; margin: 0; }
.princ li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.princ .k { font: 700 38px/1 var(--f-head); color: var(--red); }
.princ h3 { margin: 2px 0 4px; font-size: 19px; }
.princ p { margin: 0; }

/* due colonne */
.cols2 { display: grid; gap: 18px; }
@media (min-width: 720px) { .cols2 { grid-template-columns: 1fr 1fr; } }
.list-yes, .list-no { list-style: none; padding: 0; margin: 0; }
.list-yes li, .list-no li { padding: 6px 0 6px 26px; position: relative; border-bottom: 1px dashed var(--line); }
.list-yes li::before, .list-no li::before { position: absolute; left: 0; top: 5px; font: 700 18px/1.2 var(--f-head); }
.list-yes li::before { content: "✓"; color: var(--blue); }
.list-no li::before { content: "✗"; color: var(--red); }
.tag { display: inline-block; font: 700 15px/1 var(--f-head); text-transform: uppercase; color: #fff; padding: 7px 10px; border-radius: var(--r); margin-bottom: 8px; }
.tag.blue { background: var(--blue); } .tag.red { background: var(--red); } .tag.ink { background: var(--ink); }

table.t { width: 100%; border-collapse: collapse; background: var(--white); font-size: 15.5px; }
table.t th, table.t td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { background: var(--ink); color: var(--white); font: 700 14px/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .04em; }
.table-scroll { overflow-x: auto; }

.grid3 { display: grid; gap: 10px; }
@media (min-width: 640px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.grid3 > div { background: var(--white); border: 1px solid var(--line); padding: 12px 14px; border-radius: var(--r); }
.grid3 b { font-family: var(--f-head); text-transform: uppercase; }

.levels { display: grid; gap: 10px; }
.levels > div { display: grid; grid-template-columns: 96px 1fr; background: var(--white); border-radius: var(--r); overflow: hidden; }
.levels .lv { color: #fff; font: 700 17px/1 var(--f-head); text-transform: uppercase; display: flex; align-items: center; justify-content: center; }
.levels p { margin: 0; padding: 10px 14px; }

blockquote.final { margin: 40px 0 0; text-align: center; font: clamp(22px, 3.4vw, 30px)/1.35 var(--f-hand); }
blockquote.final span { color: var(--red); display: block; }

/* ---------- pezzi ---------- */
.pezzi { display: grid; gap: 22px; margin-top: 18px; }
@media (min-width: 640px) { .pezzi { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .pezzi { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.card .ph { position: relative; background: var(--paper-2); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .ph img.placeholder { object-fit: contain; padding: 10px; opacity: .85; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font: 700 12.5px/1 var(--f-head); text-transform: uppercase; letter-spacing: .05em; padding: 6px 8px; border-radius: var(--r); transform: rotate(-2deg); }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 22px; }
.card .num { font: 15px/1 var(--f-hand); color: var(--red); }
.card .note { font-size: 13px; color: var(--grey); font-style: italic; }
.card details { margin-top: auto; border-top: 1px dashed var(--line); padding-top: 8px; }
.card summary { cursor: pointer; font: 700 14px/1.4 var(--f-head); text-transform: uppercase; letter-spacing: .04em; }
.card dl { margin: 8px 0 0; font-size: 14.5px; }
.card dt { font: 700 13px/1.3 var(--f-head); text-transform: uppercase; color: var(--red); margin-top: 8px; }
.card dd { margin: 2px 0 0; }

/* ---------- download ---------- */
.dl { display: grid; gap: 18px; }
@media (min-width: 720px) { .dl { grid-template-columns: 1fr 1fr; } }
.dl > div { background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--r); padding: 20px; }
.dl ol { padding-left: 1.2em; margin: 0 0 1em; }

/* ---------- piè di pagina ---------- */
.site-foot { border-top: 1.5px solid var(--ink); padding: 26px 0 34px; font-size: 14.5px; color: var(--grey); }
.site-foot .wrap { display: grid; gap: 14px; }
@media (min-width: 720px) { .site-foot .wrap { grid-template-columns: auto 1fr auto; align-items: center; } }
.site-foot img { width: 74px; }
.site-foot .contacts a { margin-right: 14px; }
.site-foot .slogan { font: 700 13px/1.4 var(--f-head); text-transform: uppercase; letter-spacing: .05em; color: var(--ink); }

/* ---------- stampa ---------- */
@media print {
  .site-head, .site-foot, .no-print { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  main { padding: 0; }
}

/* spazio verticale del contenuto (main usa anche .wrap) */
main.wrap { padding-top: 36px; padding-bottom: 64px; }
.hero > * { min-width: 0; }
.hero .logo { width: 100%; }
