/* pictureframes.me — vetrina del gioco. Stessa tavolozza e stesso carattere della home del gioco. */
:root {
  --ink: #2b2622;
  --paper: #fbf6ee;
  --card: #fff;
  --soft: #f3ece0;
  --yellow: #ffcf4a;
  --pale: #fff3c4;
  --green: #5aa469;
  --red: #d9534a;
  --muted: #6b625a;
  --round: ui-rounded, "Arial Rounded MT Bold", Nunito, "Varela Round", system-ui, sans-serif;
  /* bordo "a mano": angoli leggermente diversi, come i riquadri del gioco */
  --hand: 18px 14px 20px 13px / 14px 20px 13px 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 600 17px/1.55 var(--round);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }

/* barra in alto */
.top { display: flex; justify-content: space-between; align-items: center; padding-block: 16px; }
.top .mini { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; }
.top .mini img { width: 36px; height: 36px; border-radius: 9px; border: 2px solid var(--ink); }
.lang { display: flex; gap: 6px; }
.lang a, .lang span {
  font-weight: 800; font-size: 14px; text-decoration: none;
  padding: 4px 10px; border: 2px solid var(--ink); border-radius: var(--hand);
}
.lang span { background: var(--yellow); }
.lang a { background: var(--card); }
.lang a:hover { background: var(--pale); }

/* apertura */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-block: 24px 56px; }
.logo {
  margin: 0;
  font: 900 clamp(44px, 8vw, 84px)/1.05 var(--round);
  color: var(--yellow);
  -webkit-text-stroke: clamp(8px, 1.3vw, 13px) var(--ink);
  paint-order: stroke;
  letter-spacing: .5px;
}
.claim { font: 900 clamp(24px, 3.4vw, 34px)/1.2 var(--round); margin: 18px 0 10px; }
.sub { font-size: 19px; color: var(--muted); margin: 0 0 24px; max-width: 34em; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--pale); border: 3px solid var(--ink); border-radius: var(--hand);
  padding: 10px 16px; font-weight: 800;
}
.badge::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px #e7f3e2; }
.stage { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.phone {
  width: min(270px, 62vw);
  background: var(--card); border: 4px solid var(--ink); border-radius: 34px 30px 36px 28px / 30px 36px 28px 34px;
  padding: 12px; transform: rotate(2deg);
  box-shadow: 8px 10px 0 rgba(43, 38, 34, .12);
}
.phone img { border-radius: 20px; border: 2px solid var(--soft); }
.stage .fotografo { order: -1; width: 120px; margin-right: -22px; margin-bottom: -6px; position: relative; z-index: 1; transform: rotate(-4deg); }

/* sezioni */
section { padding-block: 48px; }
h2 { font: 900 clamp(28px, 4vw, 38px)/1.15 var(--round); margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 28px; max-width: 40em; }
.soft { background: var(--soft); }

/* come si gioca */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: passo; }
.steps li {
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--hand);
  padding: 20px 20px 22px; position: relative; counter-increment: passo;
}
.steps li::before {
  content: counter(passo);
  position: absolute; top: -18px; left: 16px;
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--yellow); border: 3px solid var(--ink); border-radius: 50%;
  font-weight: 900;
}
.steps h3 { margin: 10px 0 6px; font-size: 21px; font-weight: 900; }
.steps p { margin: 0; color: var(--muted); }

.more { margin: 26px 0 0; }
a.badge { color: var(--ink); text-decoration: none; }
a.badge:hover { background: var(--yellow); }

/* manuale: vignette del gioco, due righe per passo */
.man-page { padding-block: 24px 8px; }
.man-page .sub { margin-bottom: 30px; }
.man { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 20px; list-style: none; padding: 0; margin: 0; counter-reset: passo; }
.man li {
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--hand);
  padding: 18px 18px 20px; position: relative; counter-increment: passo;
}
.man li:nth-child(2n) { border-radius: 13px 20px 14px 18px / 18px 13px 20px 14px; }
.man li::before {
  content: counter(passo);
  position: absolute; top: -18px; left: 16px;
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--yellow); border: 3px solid var(--ink); border-radius: 50%;
  font-weight: 900;
}
.man img { width: 100%; max-width: 300px; height: auto; aspect-ratio: 2 / 1; display: block; margin: 6px auto 0; }
.man h2 { margin: 10px 0 4px; font-size: 20px; }
.man p { margin: 0; color: var(--muted); font-size: 16px; }

/* classifica */
.board-page { padding-block: 24px 8px; }
.board-last { background: var(--yellow); border: 4px solid var(--ink); border-radius: var(--hand); padding: 18px 24px; margin-bottom: 26px; }
.board-last h2 { font-size: 22px; margin: 0 0 4px; }
.board-last p { margin: 0; font-size: 20px; font-weight: 900; }
.board-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.board-cols h2 { font-size: 24px; }
.board-cols ol { list-style: none; counter-reset: pos; padding: 0; margin: 0; background: var(--card); border: 3px solid var(--ink); border-radius: var(--hand); }
.board-cols li { counter-increment: pos; display: flex; gap: 10px; align-items: baseline; padding: 10px 16px; border-top: 2px dashed var(--soft); }
.board-cols li:first-child { border-top: 0; }
.board-cols li::before { content: counter(pos); font-weight: 900; min-width: 1.6em; }
.board-cols li:nth-child(-n+3)::before { color: var(--green); }
.board-cols li.empty::before { content: ""; min-width: 0; }
.board-cols .name { flex: 1; font-weight: 800; overflow-wrap: anywhere; }
.board-cols .pts { color: var(--muted); white-space: nowrap; }
.board-updated { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* documenti del gioco */
.legal { max-width: 46em; padding-block: 24px 8px; }
.legal h2 { font-size: 22px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink); font-size: 16.5px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 6px 0; }
.legal a { color: var(--ink); }
.legal-meta { color: var(--muted); font-size: 14px; }

/* schermate come foto incorniciate */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 22px; list-style: none; padding: 0; margin: 0; }
.shots figure {
  margin: 0; background: var(--card); padding: 10px 10px 0;
  border: 2px solid #e4dccd; box-shadow: 4px 6px 0 rgba(43, 38, 34, .10);
}
.shots li:nth-child(4n+1) figure { transform: rotate(-1.6deg); }
.shots li:nth-child(4n+2) figure { transform: rotate(1.2deg); }
.shots li:nth-child(4n+3) figure { transform: rotate(-.6deg); }
.shots li:nth-child(4n+4) figure { transform: rotate(1.8deg); }
.shots img { aspect-ratio: 1170 / 2040; width: 100%; height: auto; background: var(--soft); }
.shots figcaption { font-size: 14.5px; line-height: 1.35; padding: 10px 2px 14px; min-height: 4.2em; }

/* lavori */
.jobs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.jobs li {
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--hand);
  padding: 14px 12px 16px; text-align: center; position: relative;
}
.jobs img { width: 86px; height: 86px; margin: 0 auto 6px; }
.jobs h3 { margin: 0 0 4px; font-size: 17px; font-weight: 900; line-height: 1.2; }
.jobs p { margin: 0; font-size: 14px; line-height: 1.35; color: var(--muted); }
.tag {
  display: inline-block; margin-bottom: 8px; padding: 1px 9px;
  font-size: 12.5px; font-weight: 900; border: 2px solid var(--ink); border-radius: 999px;
}
.tag.free { background: #e7f3e2; }
.tag.premium { background: var(--pale); }
.tag.soon { background: var(--soft); }
.jobs li.soon { border-style: dashed; }
.jobs li.soon img { opacity: .55; }

/* caratteristiche */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.feats li { border-left: 5px solid var(--yellow); padding: 4px 0 4px 16px; }
.feats h3 { margin: 0 0 4px; font-size: 18px; font-weight: 900; }
.feats p { margin: 0; color: var(--muted); font-size: 16px; }

/* in arrivo */
.soon-box {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  background: var(--yellow); border: 4px solid var(--ink); border-radius: var(--hand);
  padding: 28px 32px;
}
.soon-box img { width: 110px; }
.soon-box h2 { margin-bottom: 6px; }
.soon-box p { margin: 0; font-size: 18px; }

/* piè di pagina */
footer { padding-block: 40px 48px; color: var(--muted); font-size: 14px; }
footer .by { font-weight: 900; color: var(--ink); font-size: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0; }
footer nav a { font-weight: 800; }
footer p { margin: 6px 0; font-weight: 600; }
footer .em, footer p a[href^="mailto:"] { font-weight: 800; color: var(--ink); }

/* pagina non trovata */
.nf { padding-block: 40px 80px; text-align: center; }
.nf img { width: 152px; margin: 0 auto 20px; }
.nf .sub { margin-inline: auto; }

/* telefono e tablet */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .jobs { grid-template-columns: repeat(3, 1fr); }
  .feats, .steps { grid-template-columns: 1fr; }
  .steps { gap: 30px; }
  .man { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .board-cols { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .sub { font-size: 17px; }
  .jobs { grid-template-columns: repeat(2, 1fr); }
  .phone { width: min(230px, 58vw); }
  .stage .fotografo { width: 84px; margin-right: -18px; }
  .soon-box { grid-template-columns: 1fr; padding: 22px; text-align: left; }
  .soon-box img { width: 84px; }
  .man { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
