/* ==========================================================
   lucavandone.it — foglio di stile
   Colori e caratteri si cambiano tutti da qui (:root)
   ========================================================== */

@font-face { font-family: "Unbounded"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/unbounded-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/unbounded-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/figtree-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/figtree-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #fcfaff;
  --surface: #f3eefb;
  --ink: #1d1430;
  --muted: #5e5472;
  --line: #e2d9f0;
  --accent: #6a2bd9;
  --accent-hover: #5720b8;
  --accent-ink: #ffffff;
  --accent-soft: #ece3fc;

  --hero-bg: #24104a;
  --hero-ink: #f6f1ff;
  --hero-muted: #c9b9ea;
  --hero-line: #3d2770;
  --glow: #9b6bff;

  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius-lg: 28px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #120c1c;
    --surface: #1c1429;
    --ink: #efe9f8;
    --muted: #a99dbd;
    --line: #2e2440;
    --accent: #b28cff;
    --accent-hover: #c6a8ff;
    --accent-ink: #1a0f2e;
    --accent-soft: #2a1d45;
    --hero-bg: #1b0d38;
    --hero-line: #33215d;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { top: 1rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 500; font-size: .95rem; letter-spacing: -0.01em; }
.brand-mark { width: 2rem; height: 2rem; flex: none; }
.brand:hover { color: var(--ink); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav a { display: block; padding: .5rem .8rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover { background: var(--accent-soft); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.nav-toggle { display: none; }

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem;
    font: 600 .95rem var(--text); color: var(--ink);
    background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
    padding: .45rem .9rem; cursor: pointer;
  }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: .5rem var(--gutter) 1rem; }
  .nav a { padding: .8rem .9rem; border-radius: var(--radius-sm); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.35rem; border-radius: 999px;
  font: 600 1rem var(--text); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); color: inherit; }

/* ---------- hero (home) ---------- */
.hero {
  background: var(--hero-bg);
  color: var(--hero-ink);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: auto -10% -60% 30%; height: 120%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 38%, transparent), transparent);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2rem, 4.5vw, 3.2rem);
}
.hero-name {
  font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.5rem);
  line-height: .95; letter-spacing: -0.045em;
}
.hero-name span { display: inline; }
.hero-name span + span { color: var(--glow); }
@media (prefers-color-scheme: dark) { .hero-name span + span { color: #c3a6ff; } }
.hero-lead { margin-top: 1.5rem; font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); line-height: 1.5; max-width: 32ch; color: var(--hero-ink); }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero .btn-primary { background: var(--hero-ink); color: var(--hero-bg); }
.hero .btn-primary:hover { background: #fff; color: var(--hero-bg); }

/* ---------- page header (pagine interne) ---------- */
.page-head { background: var(--hero-bg); color: var(--hero-ink); }
.page-head .wrap { padding-block: clamp(1.6rem, 3.5vw, 2.4rem); }
.page-head h1 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); letter-spacing: -0.035em; }
.page-head p { margin-top: .5rem; max-width: 60ch; color: var(--hero-muted); font-size: 1.05rem; }

/* ---------- sezioni ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); max-width: 46ch; }
.more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }

/* chi sono */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about-text p { font-size: 1.2rem; line-height: 1.55; max-width: 38ch; }
.about-text p + p { margin-top: 1.1rem; font-size: 1.0625rem; color: var(--muted); }
.facts { margin: 0; display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts div:first-child { border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .95rem; padding-top: .1rem; }
.facts dd { margin: 0; font-weight: 500; }
.facts dd small { display: block; color: var(--muted); font-weight: 400; font-size: .92rem; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: .15rem; }
}

/* progetto esteso (pagina progetti) */
.project-full { display: grid; grid-template-columns: 15rem 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: clamp(2.2rem, 5vw, 3.2rem); border-top: 1px solid var(--line); }
.project-full:first-of-type { border-top: 2px solid var(--ink); }
.project-full aside { color: var(--muted); font-size: .97rem; }
.project-full aside .kind { color: var(--ink); font-weight: 600; font-size: 1rem; }
.project-full aside .status { margin-top: .5rem; }
.project-full h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.project-full .sub { margin-top: .4rem; color: var(--accent); font-weight: 600; }
.project-full .body p { margin-top: 1rem; max-width: 62ch; }
.project-full .body ul { margin: 1rem 0 0; padding-left: 1.1rem; max-width: 62ch; }
.project-full .body li { margin-top: .35rem; }
.project-full .body li::marker { color: var(--accent); }
@media (max-width: 760px) { .project-full { grid-template-columns: 1fr; gap: .8rem; } }

/* articoli e pubblicazioni */
.pubs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.pub { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.25rem; align-items: start; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.book { aspect-ratio: 2 / 3; border-radius: 4px 8px 8px 4px; padding: .6rem .5rem; display: flex; flex-direction: column; justify-content: space-between; font-family: var(--display); font-size: .56rem; line-height: 1.15; color: #fff; box-shadow: inset 4px 0 0 rgba(0,0,0,.18), 0 10px 22px -10px rgba(20,0,50,.5); }
.book small { font-family: var(--text); font-size: .55rem; opacity: .85; }
.book-ia { background: linear-gradient(160deg, #0384fc, #023e8a); }
.book-qc { background: #071a2c; color: #2fff05; }
.pub h3 { font-size: 1.15rem; font-weight: 700; }
.pub p { margin-top: .5rem; color: var(--muted); font-size: 1rem; }
.pub .status { margin-top: .8rem; font-size: .92rem; color: var(--muted); }
@media (max-width: 860px) { .pubs { grid-template-columns: 1fr; } }

.articles { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.articles li { border-bottom: 1px solid var(--line); }
.articles a { display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; padding: 1.4rem 0; text-decoration: none; color: var(--ink); }
.articles a:hover h3 { color: var(--accent); }
.articles time { color: var(--muted); font-size: .95rem; padding-top: .15rem; }
.articles p { margin-top: .35rem; color: var(--muted); }
.articles.featured a { padding-block: 2rem; }
.articles.featured h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); font-weight: 700; }
@media (max-width: 640px) { .articles a { grid-template-columns: 1fr; gap: .3rem; } }

.empty { padding: clamp(2rem, 5vw, 3rem); border: 1.5px dashed var(--line); border-radius: var(--radius-lg); text-align: center; }
.empty h3 { font-size: 1.2rem; }
.empty p { margin: .6rem auto 0; color: var(--muted); max-width: 44ch; }
.empty .btn { margin-top: 1.4rem; }

/* contatti */
.contact { background: var(--hero-bg); color: var(--hero-ink); border-radius: var(--radius-lg); padding: clamp(2rem, 6vw, 4rem); display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem 3rem; align-items: end; }
.contact h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.2rem); letter-spacing: -0.035em; }
.contact p { margin-top: 1rem; color: var(--hero-muted); max-width: 40ch; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { border-top: 1px solid var(--hero-line); }
.contact-list li:last-child { border-bottom: 1px solid var(--hero-line); }
.contact-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; color: var(--hero-ink); text-decoration: none; font-weight: 600; font-size: 1.08rem; overflow-wrap: anywhere; }
.contact-list a span { color: var(--hero-muted); font-weight: 400; font-size: .92rem; flex: none; }
.contact-list a:hover { color: #fff; }
.contact-list a:hover span { color: var(--hero-ink); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* testo lungo (privacy, articoli) */
.prose { max-width: 66ch; }
.prose h2 { font-size: 1.4rem; margin-top: 2.4rem; }
.prose p, .prose ul { margin-top: 1rem; }
.prose li { margin-top: .4rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(3rem, 8vw, 5rem); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-block: 2rem 2.5rem; color: var(--muted); font-size: .95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.notfound .code { font-family: var(--display); font-weight: 700; font-size: clamp(5rem, 20vw, 10rem); line-height: 1; letter-spacing: -0.06em; color: var(--accent); }
.notfound p { margin: 1rem auto 1.8rem; color: var(--muted); max-width: 36ch; }

/* ---------- libri e app (home) ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.show { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3.5vw, 2.4rem); display: flex; flex-direction: column; }
.show h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.show > p { margin-top: .7rem; color: var(--muted); max-width: 40ch; }
.show-items { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.8rem 0; align-items: end; }
.show .more { margin-top: auto; }
.show .book { width: 6.5rem; font-size: .66rem; }
.show .book:hover, .app-logo:hover { transform: translateY(-3px); }
.show .book, .app-logo { transition: transform .15s; }
@media (prefers-reduced-motion: reduce) { .show .book, .app-logo { transition: none; } }
.app-logo { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.app-logo img { width: 5.5rem; height: 5.5rem; border-radius: 22%; box-shadow: 0 12px 24px -12px rgba(20,0,50,.45); }
@media (max-width: 860px) { .showcase { grid-template-columns: 1fr; } }

/* ---------- newsletter ---------- */
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 3rem; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 5vw, 3.2rem); }
.newsletter h2 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem); }
.newsletter p { margin-top: .9rem; color: var(--muted); max-width: 44ch; }
.nl-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.nl-form input {
  flex: 1 1 14rem; min-width: 0; font: 500 1rem var(--text); color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px; padding: .85rem 1.2rem;
}
.nl-form input:focus { outline: 3px solid var(--glow); outline-offset: 1px; border-color: var(--accent); }
.nl-note { margin-top: .9rem; font-size: .92rem; color: var(--muted); }
@media (max-width: 860px) { .newsletter { grid-template-columns: 1fr; } }

/* ---------- social ---------- */
.socials { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .75rem; }
.socials a { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-md); text-decoration: none; color: var(--ink); transition: background-color .15s, border-color .15s; }
.socials a:hover { background: var(--accent-soft); border-color: transparent; color: var(--ink); }
.socials svg { width: 1.6rem; height: 1.6rem; flex: none; fill: var(--accent); }
.socials strong { display: block; font-weight: 600; line-height: 1.2; }
.socials span { display: block; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }

/* ---------- pagina libri ---------- */
.book-row { display: grid; grid-template-columns: 13rem 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: clamp(2.2rem, 5vw, 3.2rem); border-top: 1px solid var(--line); align-items: start; }
.book-row:first-of-type { border-top: 2px solid var(--ink); }
.book-row .book { width: 100%; font-size: 1.05rem; padding: 1.1rem 1rem; border-radius: 6px 12px 12px 6px; }
.book-row .book small { font-size: .8rem; }
.book-row h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
.book-row .sub { margin-top: .4rem; color: var(--accent); font-weight: 600; }
.book-row p { margin-top: 1rem; max-width: 62ch; }
.book-meta { margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 2rem; color: var(--muted); font-size: .97rem; }
.book-meta dt { display: inline; }
.book-meta dd { display: inline; margin: 0 0 0 .3rem; color: var(--ink); font-weight: 500; }
.book-row .btn { margin-top: 1.6rem; }
.book-ia { background: linear-gradient(160deg, #0384fc, #023e8a); box-shadow: inset 4px 0 0 rgba(0,0,0,.18), inset 0 -6px 0 #00ffe5, 0 10px 22px -10px rgba(20,0,50,.5); }
@media (max-width: 640px) { .book-row { grid-template-columns: 1fr; } .book-row .book { width: 9rem; } }

/* ---------- pagina app ---------- */
.app-row { display: grid; grid-template-columns: 7rem 1fr auto; gap: clamp(1.2rem, 3vw, 2.5rem); align-items: center; padding-block: 2rem; border-top: 1px solid var(--line); }
.app-row:first-of-type { border-top: 2px solid var(--ink); }
.app-row img { width: 7rem; height: 7rem; border-radius: 22%; box-shadow: 0 14px 28px -14px rgba(20,0,50,.5); }
.app-row h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.app-row p { margin-top: .5rem; color: var(--muted); max-width: 56ch; }
.app-row .status { margin-top: .6rem; font-size: .92rem; color: var(--muted); }
.btn-play svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
@media (max-width: 760px) { .app-row { grid-template-columns: 5rem 1fr; } .app-row img { width: 5rem; height: 5rem; } .app-row .btn { grid-column: 1 / -1; justify-self: start; } }

/* ---------- gruppi nella pagina progetti ---------- */
.group + .group { margin-top: clamp(3rem, 7vw, 4.5rem); }
.group-title { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); margin-bottom: 1.2rem; color: var(--accent); }

/* ritocchi */
.show-items a { text-decoration: none; }

/* ---------- foto profilo (hero) ---------- */
.hero-photo { position: relative; width: clamp(9rem, 18vw, 14rem); aspect-ratio: 1; justify-self: end; margin: 14px; }
.hero-photo::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--hero-muted) 45%, transparent); }
.hero-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 40px 70px -30px rgba(8, 0, 30, .8); }
@media (max-width: 640px) { .hero .wrap { grid-template-columns: 1fr; } .hero-photo { grid-row: 1; justify-self: start; width: 7.5rem; margin: 10px; } }

/* ---------- chi sono ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.bio p { font-size: 1.15rem; line-height: 1.6; max-width: 46ch; }
.bio p + p { margin-top: 1rem; }
.bio .facts { margin-top: 2rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- widget scacchi ---------- */
.chess {
  --c-bg: #262421; --c-panel: #312e2b; --c-ink: #ffffff; --c-muted: #b4b2ad; --c-green: #81b64c; --c-green-dark: #45753c;
  background: var(--c-bg); color: var(--c-ink); border-radius: 20px; padding: 1.4rem; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.chess-top { display: flex; align-items: center; gap: 1rem; }
.chess-avatar { width: 4.5rem; height: 4.5rem; border-radius: 12px; background: var(--c-panel); object-fit: cover; flex: none; }
.chess-name { font-weight: 700; font-size: 1.25rem; line-height: 1.2; display: flex; align-items: center; gap: .5rem; }
.chess-name .flag { width: 1.3rem; height: .9rem; border-radius: 2px; overflow: hidden; display: inline-flex; flex: none; }
.chess-name .flag i { flex: 1; }
.chess-site { display: flex; align-items: center; gap: .35rem; margin-top: .25rem; color: var(--c-muted); font-size: .92rem; }
.chess-site svg { width: 1rem; height: 1rem; fill: var(--c-green); }
.chess-ratings { list-style: none; margin: 1.3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.chess-ratings li { background: var(--c-panel); border-radius: 12px; padding: .9rem .6rem; display: flex; flex-direction: column; align-items: center; gap: .45rem; }
.chess-ratings svg { width: 1.9rem; height: 1.9rem; }
.chess-ratings b { font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.02em; }
.chess-btn { display: flex; justify-content: center; margin-top: 1rem; padding: .9rem 1rem; border-radius: 10px; background: var(--c-green); color: #fff; font-weight: 700; text-decoration: none; box-shadow: inset 0 -4px 0 var(--c-green-dark); }
.chess-btn:hover { background: #95c95f; color: #fff; }

/* ---------- social (pannelli grandi) ---------- */
.social-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.social-grid a {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2.2rem;
  min-height: 11.5rem; padding: 1.3rem; border-radius: 22px; color: #fff; text-decoration: none; overflow: hidden;
  background: var(--brand); transition: transform .18s, box-shadow .18s;
}
.social-grid a::after { content: ""; position: absolute; right: -2.5rem; bottom: -2.5rem; width: 9rem; height: 9rem; border-radius: 50%; background: rgba(255,255,255,.1); pointer-events: none; }
.social-grid a:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -22px var(--shadow, rgba(0,0,0,.6)); color: #fff; }
@media (prefers-reduced-motion: reduce) { .social-grid a { transition: none; } .social-grid a:hover { transform: none; } }
.social-grid svg { width: 2.6rem; height: 2.6rem; fill: #fff; }
.social-grid strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.social-grid span { display: block; margin-top: .2rem; opacity: .88; font-size: .95rem; overflow-wrap: anywhere; }
.s-instagram { --brand: linear-gradient(135deg, #feda75 -10%, #fa7e1e 20%, #d62976 50%, #962fbf 78%, #4f5bd5 110%); }
.s-youtube   { --brand: #e62117; }
.s-tiktok    { --brand: #111111; }
.s-tiktok svg { filter: drop-shadow(2px 2px 0 #fe2c55) drop-shadow(-2px -2px 0 #25f4ee); }
.s-x         { --brand: #000000; }
.s-facebook  { --brand: #0866ff; }
.s-linkedin  { --brand: #0a66c2; }
.s-github    { --brand: #24292f; }
.s-substack  { --brand: #ff6719; }
@media (prefers-color-scheme: dark) { .s-x, .s-tiktok, .s-github { box-shadow: inset 0 0 0 1px #3a3346; } }
@media (max-width: 960px) { .social-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .social-grid a { min-height: 9.5rem; gap: 1.4rem; padding: 1.1rem; } .social-grid strong { font-size: 1.1rem; } }

/* ---------- copertine dei libri (immagine vera sopra quella disegnata) ---------- */
.cover { position: relative; display: block; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 4px 10px 10px 4px; box-shadow: 0 14px 28px -14px rgba(20,0,50,.55); }

/* ---------- elenco progetti con anteprime ---------- */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pcard { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .18s, box-shadow .18s; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(30,10,70,.55); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .pcard { transition: none; } .pcard:hover { transform: none; } }
.pcard-body { padding: 1.2rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.pcard-kind { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .9rem; }
.pcard h2 { font-size: 1.3rem; letter-spacing: -0.02em; margin-top: .4rem; }
.pcard p { color: var(--muted); font-size: 1rem; }
.pcard .open { margin-top: auto; padding-top: .9rem; color: var(--accent); font-weight: 600; font-size: .95rem; }
@media (max-width: 960px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pgrid { grid-template-columns: 1fr; } }

/* anteprime disegnate */
.art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: grid; place-items: center; }
.art svg, .art img { display: block; }
.art-fisica { background: radial-gradient(circle at 50% 60%, #4b2a9a, #170a35 70%); }
.art-fisica svg { width: 100%; height: 100%; }
.art-dialekto { background: linear-gradient(135deg, #4a0211, #7a0f27 55%, #b8323f); }
.art-dialekto img { position: absolute; left: 50%; bottom: 0; height: 88%; width: auto; transform: translateX(-46%); }
.art-mycloset { background: linear-gradient(135deg, #2441b0, #3355d6 60%, #86a0ff); }
.art-mycloset svg { width: 34%; height: auto; }
.art-metastasi { background: #120707; }
.art-metastasi span { font-family: var(--display); font-weight: 700; color: #e11d2e; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: .92; letter-spacing: -0.05em; text-align: center; text-transform: uppercase; text-shadow: 0 0 24px rgba(225,29,46,.45); }
.art-tensori { background: linear-gradient(135deg, #0b3b3a, #0f766e); color: #ecfdf5; }
.art-tensori span { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: clamp(2.6rem, 5vw, 3.6rem); }
.art-tensori .idx { display: inline-flex; flex-direction: column; font-size: .42em; line-height: 1.05; vertical-align: middle; margin-left: .08em; }
.art-romecup { background: linear-gradient(135deg, #e85d04, #f48c06 60%, #ffba08); }
.art-romecup svg { width: 40%; height: auto; }

/* ---------- pagina del singolo progetto ---------- */
.crumb { display: inline-block; margin-bottom: 1rem; color: var(--hero-muted); text-decoration: none; font-weight: 500; }
.crumb:hover { color: #fff; text-decoration: underline; }
.detail { display: grid; grid-template-columns: 1fr 17rem; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.detail .art { border-radius: var(--radius-lg); }
.detail .prose { margin-top: 2rem; }
.detail .prose h2:first-child { margin-top: 0; }
.detail aside { position: sticky; top: 5.5rem; }
.detail aside .facts div { grid-template-columns: 1fr; gap: .15rem; }
.detail aside .btn { margin-top: 1.4rem; width: 100%; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } .detail aside { position: static; } }

/* =====================================================================
   VERSIONE 4
   ===================================================================== */
.hero-lead { margin-top: 1rem; max-width: 46ch; }
.hero-actions { margin-top: 1.4rem; }

/* ---------- chi sono ---------- */
.about-grid { grid-template-columns: 1fr 22rem; }
.bio-lead { font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 1rem + .9vw, 1.6rem); line-height: 1.3; letter-spacing: -0.02em; max-width: 30ch; }
.bio-lead em { font-style: normal; color: var(--accent); }
.bio p.bio-text { margin-top: 1rem; font-size: 1.08rem; color: var(--muted); max-width: 54ch; }
.stats { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.stats li { border-radius: 18px; padding: 1.1rem 1.2rem; color: #fff; position: relative; overflow: hidden; }
.stats li::after { content: ""; position: absolute; right: -1.6rem; top: -1.6rem; width: 5.5rem; height: 5.5rem; border-radius: 50%; background: rgba(255,255,255,.12); }
.stats b { display: block; font-family: var(--display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.03em; line-height: 1.1; }
.stats span { display: block; margin-top: .35rem; font-size: .95rem; opacity: .92; line-height: 1.35; }
.st-1 { background: linear-gradient(135deg, #6a2bd9, #9b6bff); }
.st-2 { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.st-3 { background: linear-gradient(135deg, #e85d04, #f59e0b); }
.st-4 { background: linear-gradient(135deg, #1d4ed8, #60a5fa); }
.chips { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { padding: .45rem .9rem; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-weight: 500; font-size: .95rem; }
.about-side { position: sticky; top: 5.5rem; display: grid; gap: 1rem; }
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; } .about-side { position: static; } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }

/* percorso (timeline) */
.journey { margin-top: clamp(2.5rem, 6vw, 4rem); }
.journey h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 1.2rem; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: .55rem; height: 2px; background: linear-gradient(90deg, var(--accent), #f59e0b); opacity: .6; }
.timeline li { position: relative; padding: 1.8rem .9rem 0 0; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.timeline li.big::before { background: var(--accent); }
.timeline time { display: block; font-weight: 700; color: var(--accent); font-size: .95rem; }
.timeline strong { display: block; margin-top: .25rem; font-weight: 600; line-height: 1.3; }
.timeline span { display: block; margin-top: .25rem; color: var(--muted); font-size: .92rem; line-height: 1.4; }
@media (max-width: 960px) {
  .timeline { grid-template-columns: 1fr; padding-left: 1.6rem; }
  .timeline::before { left: .48rem; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), #f59e0b); }
  .timeline li { padding: 0 0 1.4rem 0; }
  .timeline li::before { left: -1.6rem; top: .1rem; }
}

/* ---------- contatti in evidenza ---------- */
.contact-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.contact-tiles a { display: flex; align-items: center; gap: 1rem; padding: 1.4rem 1.5rem; border-radius: 22px; color: #fff; text-decoration: none; background: var(--brand); transition: transform .18s, box-shadow .18s; min-width: 0; }
.contact-tiles a:hover { transform: translateY(-3px); box-shadow: 0 20px 36px -22px rgba(20,0,50,.7); color: #fff; }
@media (prefers-reduced-motion: reduce) { .contact-tiles a { transition: none; } .contact-tiles a:hover { transform: none; } }
.contact-tiles svg { width: 2.4rem; height: 2.4rem; flex: none; fill: #fff; }
.contact-tiles div { min-width: 0; }
.contact-tiles strong { display: block; font-family: var(--display); font-size: 1.15rem; letter-spacing: -0.02em; }
.contact-tiles span { display: block; margin-top: .15rem; font-size: 1rem; opacity: .95; overflow-wrap: anywhere; }
.c-email { --brand: linear-gradient(135deg, #4c1d95, #7c3aed); }
.c-phone { --brand: linear-gradient(135deg, #24104a, #4b2a9a); }
.c-whatsapp { --brand: linear-gradient(135deg, #128c7e, #25d366); }
@media (max-width: 860px) { .contact-tiles { grid-template-columns: 1fr; } }
.block-title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin-bottom: 1.2rem; }
.contact-page .section { padding-block: clamp(1.8rem, 4vw, 2.8rem); }
.contact-page .section + .section { border-top: 0; padding-top: 0; }

/* ---------- newsletter (pagina) ---------- */
.nl-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(180deg, #120a35 0%, #3b1a72 38%, #b4407a 66%, #f08a4b 84%, #ffc36b 100%); }
.nl-hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(9rem, 16vw, 12rem); }
.nl-hero h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); letter-spacing: -0.045em; line-height: .95; }
.nl-hero .kicker { font-weight: 600; opacity: .85; margin-bottom: .6rem; }
.nl-hero p.lead { margin-top: 1rem; font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); max-width: 40ch; opacity: .95; }
.nl-hero .nl-form { margin-top: 1.6rem; max-width: 30rem; }
.nl-hero .nl-form input { background: rgba(255,255,255,.95); border-color: transparent; color: #1d1430; }
.nl-hero .nl-form .btn-primary { background: #1d1430; color: #fff; }
.nl-hero .nl-form .btn-primary:hover { background: #000; }
.nl-hero .nl-note { color: rgba(255,255,255,.85); }
.nl-hero .nl-note a { color: #fff; }
.nl-scene { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.nl-scene svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; }
.nl-sun { position: absolute; right: 12%; bottom: 6.5rem; width: clamp(9rem, 20vw, 15rem); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #fff6d8, #ffd27a 45%, #ff9f43 75%); box-shadow: 0 0 80px 30px rgba(255, 190, 110, .45); animation: sunset 3.2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes sunset { from { transform: translateY(-55%); opacity: .2; } to { transform: none; opacity: 1; } }
.nl-stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .7; animation: twinkle 3.5s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .15; } }
@media (prefers-reduced-motion: reduce) { .nl-sun, .nl-stars i { animation: none; } }
@media (max-width: 860px) { .nl-hero .wrap { grid-template-columns: 1fr; } .nl-sun { right: 8%; bottom: 5rem; } }

.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.topic { border-radius: 24px; padding: 1.6rem; color: #fff; position: relative; overflow: hidden; min-height: 16rem; display: flex; flex-direction: column; justify-content: flex-end; }
.topic svg { position: absolute; right: 1rem; top: 1rem; width: 6.5rem; height: 6.5rem; opacity: .95; }
.topic h3 { font-family: var(--display); font-size: 1.6rem; font-weight: 700; }
.topic p { margin-top: .5rem; opacity: .92; max-width: 34ch; }
.t-politica { background: linear-gradient(150deg, #7f1d1d, #dc2626); }
.t-religione { background: linear-gradient(150deg, #78350f, #d97706 70%, #fbbf24); }
.t-attualita { background: linear-gradient(150deg, #1e3a8a, #2563eb 70%, #38bdf8); }
@media (max-width: 860px) { .topics { grid-template-columns: 1fr; } .topic { min-height: 12rem; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: s; }
.steps li { counter-increment: s; padding: 1.4rem; border-radius: 20px; background: var(--surface); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-weight: 700; margin-bottom: .9rem; }
.steps strong { display: block; font-size: 1.1rem; }
.steps span { display: block; margin-top: .3rem; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.nl-cta { border-radius: 28px; padding: clamp(1.8rem, 5vw, 3rem); background: linear-gradient(120deg, #3b1a72, #b4407a 60%, #f08a4b); color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; align-items: center; }
.nl-cta h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.nl-cta .nl-form input { background: #fff; border-color: transparent; color: #1d1430; }
.nl-cta .nl-form .btn-primary { background: #1d1430; color: #fff; }
@media (max-width: 860px) { .nl-cta { grid-template-columns: 1fr; } }

/* ---------- articoli ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.filters button { font: 600 .95rem var(--text); padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.filters button:hover { border-color: var(--accent); }
.tools { display: flex; flex-wrap: wrap; gap: .6rem; }
.tools input, .tools select { font: 500 1rem var(--text); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px; padding: .6rem 1rem; min-width: 0; }
.tools input { width: 15rem; max-width: 100%; }
.tools input:focus, .tools select:focus { outline: 3px solid var(--glow); outline-offset: 1px; border-color: var(--accent); }
.count { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.art-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.art-list a { display: block; height: 100%; padding: 1.5rem; border-radius: 22px; background: var(--surface); color: var(--ink); text-decoration: none; border-top: 5px solid var(--tc, var(--accent)); }
.art-list a:hover { box-shadow: 0 22px 40px -28px rgba(30,10,70,.6); color: var(--ink); }
.art-meta { display: flex; gap: .8rem; color: var(--muted); font-size: .92rem; }
.art-meta .tag { color: var(--tc, var(--accent)); font-weight: 700; }
.art-list h3 { margin-top: .6rem; font-size: 1.3rem; font-weight: 700; }
.art-list p { margin-top: .5rem; color: var(--muted); }
@media (max-width: 760px) { .art-list { grid-template-columns: 1fr; } }

/* ---------- pubblicazioni ---------- */
.pubs-list { display: grid; gap: 1.4rem; }
.pubcard { display: grid; grid-template-columns: 13rem 1fr; gap: clamp(1.2rem, 3vw, 2.4rem); padding: clamp(1.2rem, 3vw, 1.8rem); border-radius: 26px; background: var(--surface); align-items: start; }
.pubcard .thumb { display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 18px 36px -20px rgba(20,0,50,.55); background: #fff; aspect-ratio: 745 / 1053; }
.pubcard .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.pubcard .thumb:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .pubcard .thumb img { transition: none; } }
.pub-tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.pub-tags span { padding: .3rem .75rem; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--accent-soft); color: var(--accent); }
.pub-tags .date { background: var(--ink); color: var(--bg); }
.pubcard h2 { margin-top: .8rem; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }
.pubcard .sub { margin-top: .3rem; color: var(--accent); font-weight: 600; }
.pubcard p.desc { margin-top: .9rem; max-width: 64ch; }
.pubcard .meta { margin-top: .9rem; color: var(--muted); font-size: .95rem; }
.pub-actions { margin-top: 1.3rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.pub-actions .btn-ghost { color: var(--accent); }
@media (max-width: 700px) { .pubcard { grid-template-columns: 1fr; } .pubcard .thumb { width: 10rem; } }

/* ---------- app: elenco ---------- */
.app-row .app-actions { display: flex; flex-direction: column; gap: .5rem; }
.app-row .app-actions .btn-ghost { color: var(--accent); }
@media (max-width: 760px) { .app-row .app-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; } }

/* ---------- app: pagina dettaglio ---------- */
.app-hero { color: #fff; position: relative; overflow: hidden; }
.app-hero .wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem, 3vw, 2.2rem); align-items: center; padding-block: clamp(1.8rem, 4vw, 2.8rem); position: relative; z-index: 1; }
.app-hero .icon { width: clamp(5.5rem, 10vw, 7.5rem); height: auto; aspect-ratio: 1; border-radius: 24%; box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); }
.app-hero h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); letter-spacing: -0.04em; }
.app-hero .tagline { margin-top: .4rem; font-size: 1.1rem; opacity: .92; max-width: 50ch; }
.app-hero .badges { margin-top: .8rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.app-hero .badges span { padding: .25rem .7rem; border-radius: 999px; background: rgba(255,255,255,.18); font-size: .85rem; font-weight: 600; }
.app-hero .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .6rem; }
.app-hero .btn-primary { background: #fff; color: var(--hero-c, #1d1430); }
.app-hero .btn-primary:hover { background: #f3f3f3; color: var(--hero-c, #1d1430); }
.app-hero .crumb { color: rgba(255,255,255,.8); grid-column: 1 / -1; margin: 0; }
.app-hero .btn svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.hero-dialekto { --hero-c: #7a0f27; background: linear-gradient(120deg, #3a0110, #7a0f27 55%, #b8323f); }
.hero-dialekto::after { content: ""; position: absolute; right: -2rem; bottom: -3rem; width: 22rem; height: 28rem; background: url("../img/dante-bianco.png") no-repeat center / contain; opacity: .09; }
.hero-mycloset { --hero-c: #2441b0; background: linear-gradient(120deg, #172b7a, #3355d6 60%, #86a0ff); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature { padding: 1.3rem; border-radius: 20px; background: var(--surface); }
.feature .ic { width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center; background: var(--fc, var(--accent)); margin-bottom: .8rem; }
.feature .ic svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.08rem; font-weight: 700; }
.feature p { margin-top: .35rem; color: var(--muted); font-size: .98rem; }
.f-dialekto .feature { --fc: #9a1e3b; }
.f-mycloset .feature { --fc: #3355d6; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.app-info { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.app-info .prose p:first-child { margin-top: 0; }
.spec { margin: 0; border-radius: 20px; background: var(--surface); padding: .4rem 1.3rem; }
.spec div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.spec div:last-child { border-bottom: 0; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 860px) { .app-info { grid-template-columns: 1fr; } }

.install { list-style: none; margin: 1rem 0 0; padding: 0; counter-reset: i; display: grid; gap: .6rem; }
.install li { counter-increment: i; display: grid; grid-template-columns: 2rem 1fr; gap: .8rem; align-items: start; }
.install li::before { content: counter(i); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; }

/* pacchetti lingue (due per riga) */
.packs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.pack { border-radius: 24px; padding: 1.5rem; color: #fff; background: var(--pc); display: flex; flex-direction: column; gap: .9rem; position: relative; overflow: hidden; }
.pack::after { content: ""; position: absolute; right: -3rem; top: -3rem; width: 10rem; height: 10rem; border-radius: 50%; background: rgba(255,255,255,.08); }
.pack-top { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.pack h3 { font-family: var(--display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.pack .n { flex: none; padding: .3rem .75rem; border-radius: 999px; background: rgba(255,255,255,.2); font-size: .85rem; font-weight: 700; }
.pack p { opacity: .92; }
.pack ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.pack li { padding: .3rem .7rem; border-radius: 999px; background: rgba(255,255,255,.16); font-size: .9rem; font-weight: 500; }
.pack .pack-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.pack .lvl { font-size: .9rem; opacity: .9; }
.pack .btn { background: #fff; color: #1d1430; padding: .65rem 1.1rem; }
.pack .btn:hover { background: #f2f2f2; color: #1d1430; }
.pack .btn[aria-disabled="true"] { background: rgba(255,255,255,.22); color: #fff; cursor: default; }
.p-regioni { --pc: linear-gradient(135deg, #7a0f27, #c2410c); }
.p-europa-base { --pc: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.p-europa-esteso { --pc: linear-gradient(135deg, #0f766e, #22c55e); }
.p-europa-totale { --pc: linear-gradient(135deg, #4c1d95, #8b5cf6); }
.p-asia { --pc: linear-gradient(135deg, #9f1239, #f43f5e); }
.p-semitiche { --pc: linear-gradient(135deg, #78350f, #d97706); }
.p-arabi { --pc: linear-gradient(135deg, #065f46, #0d9488); }
.p-base { --pc: linear-gradient(135deg, #24104a, #6a2bd9); }
@media (max-width: 760px) { .packs { grid-template-columns: 1fr; } }

/* elenco lingue filtrabile */
.lang-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: .8rem; }
.lang { display: flex; gap: .9rem; align-items: center; padding: .9rem 1rem; border-radius: 16px; background: var(--surface); border-left: 5px solid var(--lc, var(--accent)); }
.lang .code { flex: none; width: 3rem; height: 3rem; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: .78rem; text-transform: uppercase; color: #fff; background: var(--lc, var(--accent)); }
.lang strong { display: block; font-weight: 700; line-height: 1.2; }
.lang .nat { display: block; color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.lang .tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.lang .tags span { font-size: .75rem; font-weight: 600; padding: .1rem .5rem; border-radius: 999px; background: var(--bg); color: var(--muted); }
.lang-empty { padding: 2rem; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: 18px; }

/* easter egg MyCloset */
.egg { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: center; padding: clamp(1.4rem, 4vw, 2.2rem); border-radius: 26px; background: linear-gradient(135deg, #172b7a, #3355d6); color: #fff; }
.wardrobe { width: 8rem; height: 10rem; position: relative; perspective: 600px; cursor: pointer; background: none; border: 0; padding: 0; }
.wardrobe .inside { position: absolute; inset: 0; border-radius: 8px; background: #0f1d55; display: grid; place-items: center; }
.wardrobe .inside svg { width: 4rem; height: 4rem; }
.wardrobe .door { position: absolute; top: 0; bottom: 0; width: 50%; background: linear-gradient(180deg, #c8a27a, #a47b52); border: 2px solid #7a5634; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.wardrobe .door::after { content: ""; position: absolute; top: 45%; width: 4px; height: 1.2rem; border-radius: 2px; background: #f5d9a8; }
.wardrobe .l { left: 0; border-radius: 8px 0 0 8px; transform-origin: left center; }
.wardrobe .l::after { right: 6px; }
.wardrobe .r { right: 0; border-radius: 0 8px 8px 0; transform-origin: right center; }
.wardrobe .r::after { left: 6px; }
.wardrobe[aria-expanded="true"] .l { transform: rotateY(-105deg); }
.wardrobe[aria-expanded="true"] .r { transform: rotateY(105deg); }
@media (prefers-reduced-motion: reduce) { .wardrobe .door { transition: none; } }
.egg h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }
.egg p { margin-top: .5rem; opacity: .92; max-width: 50ch; }
.egg .btn { margin-top: 1rem; background: #fff; color: #172b7a; }
.egg .btn[hidden] { display: none; }
@media (max-width: 560px) { .egg { grid-template-columns: 1fr; } }

/* ritocchi v4 */
.btn { white-space: nowrap; }
.btn svg { width: 1.1rem; height: 1.1rem; fill: currentColor; flex: none; }
.nl-sun { bottom: .8rem; }
@media (max-width: 860px) { .nl-sun { bottom: .2rem; width: 8rem; } }
.wardrobe { margin-inline: 1.8rem; }

/* =====================================================================
   VERSIONE 5
   ===================================================================== */
.about-side { position: static; }

/* ruoli (chi sono) */
.roles { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.roles li > a, .roles li > div:only-child, .roles li { color: inherit; }
.roles li { border-radius: 18px; background: var(--surface); position: relative; overflow: hidden; }
.roles li > a, .roles li:not(:has(> a)) { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; text-decoration: none; height: 100%; }
.roles li > a:hover { background: color-mix(in srgb, var(--rc) 10%, transparent); color: inherit; }
.roles li > a:hover strong { color: var(--rc); }
.roles .ri { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center; background: var(--rc); color: #fff; }
.roles .ri svg { width: 1.35rem; height: 1.35rem; }
.roles strong { display: block; font-weight: 700; line-height: 1.25; }
.roles span:not(.ri) { display: block; margin-top: .2rem; color: var(--muted); font-size: .93rem; line-height: 1.35; }
.roles li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--rc); }
.roles li.r-4 { grid-column: span 2; }
.r-1 { --rc: #6a2bd9; } .r-2 { --rc: #2563eb; } .r-3 { --rc: #9a1e3b; } .r-4 { --rc: #0b2a6f; }
.r-5 { --rc: #4d7c2a; } .r-6 { --rc: #0f766e; } .r-7 { --rc: #e85d04; }
@media (prefers-color-scheme: dark) { .r-4 { --rc: #5b8def; } }
@media (max-width: 560px) { .roles { grid-template-columns: 1fr; } .roles li.r-4 { grid-column: auto; } }

/* Seterra */
.seterra { --s-bg: #0d4f8b; border-radius: 20px; padding: 1.3rem 1.3rem 1.1rem; color: #fff; background: linear-gradient(160deg, #0b3d73, #1173c4 70%, #2aa6e0); box-shadow: 0 30px 60px -30px rgba(5, 40, 90, .7); position: relative; overflow: hidden; }
.seterra::after { content: ""; position: absolute; right: -3.5rem; top: -3.5rem; width: 11rem; height: 11rem; border-radius: 50%; border: 18px solid rgba(255,255,255,.08); }
.seterra-top { display: flex; align-items: center; gap: .9rem; position: relative; z-index: 1; }
.seterra .globe { width: 3.2rem; height: 3.2rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); flex: none; }
.seterra .globe svg { width: 2rem; height: 2rem; }
.seterra-name { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.seterra-sub { font-size: .92rem; opacity: .85; }
.seterra-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .45rem; position: relative; z-index: 1; }
.seterra-list li { display: flex; gap: .7rem; align-items: center; padding: .55rem .7rem; border-radius: 12px; background: rgba(255,255,255,.12); }
.seterra-list .ok { width: 1.6rem; height: 1.6rem; border-radius: 50%; flex: none; display: grid; place-items: center; background: #4ade80; color: #0b3d73; }
.seterra-list .ok svg { width: 1rem; height: 1rem; }
.seterra-list strong { display: block; font-weight: 600; font-size: .96rem; line-height: 1.25; }
.seterra-list span:not(.ok) { display: block; font-size: .82rem; opacity: .8; }

/* Telegram */
.c-telegram { --brand: linear-gradient(135deg, #1c8adb, #2aabee); }

/* pacchetti con bandiera */
.pack-top { align-items: center; justify-content: flex-start; gap: 1rem; }
.pack-top > div { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
.pack-flag { width: 4.5rem; height: 3rem; object-fit: cover; border-radius: 8px; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 10px 20px -10px rgba(0,0,0,.6); background: #fff; }

/* lingue: card con bandiera */
.lang-grid { grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); gap: 1rem; }
.lang { display: flex; flex-direction: column; gap: 0; padding: 0; border-left: 0; border-radius: 20px; overflow: hidden; background: var(--surface); transition: transform .18s, box-shadow .18s; }
.lang:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -28px rgba(30,10,70,.6); }
@media (prefers-reduced-motion: reduce) { .lang { transition: none; } .lang:hover { transform: none; } }
.lang-flag { position: relative; aspect-ratio: 3 / 1.45; background: linear-gradient(135deg, color-mix(in srgb, var(--lc) 22%, var(--surface)), var(--surface)); display: grid; place-items: center; border-bottom: 4px solid var(--lc); }
.lang-flag img { width: 6.2rem; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; box-shadow: 0 12px 24px -12px rgba(20,0,50,.55), 0 0 0 1px rgba(0,0,0,.06); }
.lang-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.lang-body strong { font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.015em; }
.lang .nat { color: var(--muted); font-size: .95rem; }
.lang-meta { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
.lang-meta span { font-size: .76rem; font-weight: 600; padding: .12rem .5rem; border-radius: 999px; background: var(--bg); color: var(--muted); }
.lang-foot { margin-top: auto; padding-top: .8rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.lang-tag { font: 700 .8rem var(--text); padding: .35rem .75rem; border-radius: 999px; border: 0; cursor: pointer; background: var(--lc); color: #fff; }
.lang-tag:hover { filter: brightness(1.1); }
.lang-act { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; font-size: .85rem; padding: .35rem .75rem; border-radius: 999px; text-decoration: none; }
.lang-act svg { width: .95rem; height: .95rem; fill: currentColor; }
.lang-act.dl { background: var(--ink); color: var(--bg); }
.lang-act.dl:hover { background: var(--accent); color: var(--accent-ink); }
.lang-act.incl { background: var(--accent-soft); color: var(--accent); }
.lang-act.soon { color: var(--muted); border: 1.5px dashed var(--line); }

/* progetti: navigazione precedente/successivo */
.pcount { color: var(--hero-muted); font-size: .92rem; margin-bottom: .2rem; }
.cta-stack { display: grid; gap: .6rem; margin-top: 1.4rem; }
.cta-stack .btn { width: 100%; margin: 0; }
.cta-stack .btn-ghost { color: var(--accent); }
.pnav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-block: 0 clamp(2rem, 5vw, 3rem); }
.pnav a { display: block; text-decoration: none; color: var(--ink); }
.pnav .dir { display: block; font-weight: 600; color: var(--muted); font-size: .92rem; margin-bottom: .5rem; }
.pnav-next { text-align: right; }
.pnav-card { display: grid; grid-template-columns: 6.5rem 1fr; align-items: center; gap: 1rem; padding: .7rem; border-radius: 18px; background: var(--surface); transition: background-color .15s; }
.pnav-next .pnav-card { grid-template-columns: 1fr 6.5rem; }
.pnav-next .pnav-card .art { order: 2; }
.pnav a:hover .pnav-card { background: var(--accent-soft); }
.pnav-card .art { border-radius: 12px; aspect-ratio: 16 / 10; }
.pnav-card .art span { font-size: .85rem !important; }
.pnav-card strong { font-family: var(--display); font-size: 1.05rem; letter-spacing: -0.015em; }
.pnav .dir::before { content: "‹ "; } .pnav-next .dir::after { content: " ›"; } .pnav-next .dir::before { content: ""; }
@media (max-width: 640px) { .pnav { grid-template-columns: 1fr; } .pnav-next { text-align: left; } .pnav-next .pnav-card { grid-template-columns: 6.5rem 1fr; } .pnav-next .pnav-card .art { order: 0; } }

/* Mars Mission */
.art-mars { background: #000; }
.art-mars img { width: 100%; height: 100%; object-fit: cover; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1.2rem; }
.shots img { border-radius: 12px; width: 100%; height: auto; }
@media (max-width: 560px) { .shots { grid-template-columns: 1fr; } }

/* ---------- politica ---------- */
.pol-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(120% 140% at 85% 10%, #1d3f8f 0%, #0b1f4b 55%, #071433 100%); }
.pol-hero .wrap { position: relative; z-index: 1; padding-block: clamp(2.2rem, 5vw, 3.4rem); }
.pol-hero .kicker { font-weight: 600; opacity: .8; }
.pol-hero h1 { margin-top: .4rem; font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); letter-spacing: -0.04em; line-height: 1; }
.pol-hero .lead { margin-top: 1rem; max-width: 52ch; font-size: 1.1rem; opacity: .92; }
.pol-hero .btn-primary { background: #fff; color: #0b1f4b; }
.pol-hero .btn-primary:hover { background: #eef2ff; color: #0b1f4b; }
.pol-hero .btn svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.pol-swoosh { position: absolute; right: -4%; bottom: -6%; width: min(56%, 40rem); height: auto; opacity: .9; pointer-events: none; }
@media (max-width: 760px) { .pol-swoosh { width: 80%; opacity: .35; } }

.pol-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pol-role { display: block; padding: 1.5rem; border-radius: 22px; background: linear-gradient(140deg, #0b1f4b, #1d3f8f); color: #fff; text-decoration: none; position: relative; overflow: hidden; }
.pol-role::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, #009246 33%, #fff 33% 66%, #ce2b37 66%); }
.pol-role h3 { margin-top: .6rem; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); font-weight: 700; overflow-wrap: anywhere; }
.pol-role p { margin-top: .6rem; opacity: .9; max-width: 46ch; }
.pr-label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .85rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(255,255,255,.16); }
.pr-label svg { width: 1rem; height: 1rem; fill: currentColor; }
.pr-ig { background: linear-gradient(135deg, #feda75 -20%, #fa7e1e 10%, #d62976 45%, #962fbf 75%, #4f5bd5 110%); }
.pr-ig:hover { color: #fff; filter: brightness(1.05); }
.pr-ig .more { display: inline-block; margin-top: 1rem; color: #fff; text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 760px) { .pol-roles { grid-template-columns: 1fr; } }

.pol-about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.pf-title { font-size: 1.1rem; font-weight: 700; margin: 1.4rem 0 .6rem; }
@media (max-width: 860px) { .pol-about { grid-template-columns: 1fr; } }

.event { display: grid; grid-template-columns: 8rem 1fr; gap: 1.5rem; padding: clamp(1.2rem, 3vw, 1.8rem); border-radius: 24px; background: var(--surface); border: 2px solid #1d3f8f; }
.event-date { border-radius: 18px; overflow: hidden; text-align: center; background: #fff; box-shadow: 0 14px 28px -18px rgba(11,31,75,.6); align-self: start; }
.event-date .m { display: block; background: #ce2b37; color: #fff; font-weight: 700; padding: .35rem; font-size: .9rem; }
.event-date .d { display: block; font-family: var(--display); font-weight: 700; font-size: 2.6rem; color: #0b1f4b; padding-top: .3rem; }
.event-date .y { display: block; color: #4b5563; font-size: .85rem; padding-bottom: .6rem; }
.event h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); font-weight: 700; }
.event-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .5rem; color: var(--muted); font-weight: 500; }
.event-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.event-meta svg { width: 1.1rem; height: 1.1rem; color: var(--accent); }
.event-body > p:not(.event-meta) { margin-top: .8rem; max-width: 62ch; }
.event-body .btn { margin-top: 1.2rem; }
.event-past { margin-top: 1rem; color: var(--muted); }
@media (max-width: 560px) { .event { grid-template-columns: 1fr; } .event-date { width: 7rem; } }

.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ig-post { position: relative; display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; color: #fff; text-decoration: none; background: #0b1f4b; }
.ig-post img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ig-post:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .ig-post img { transition: none; } .ig-post:hover img { transform: none; } }
.ig-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1rem 1rem; background: linear-gradient(transparent, rgba(0,0,0,.82)); display: grid; grid-template-columns: auto 1fr; column-gap: .6rem; align-items: center; }
.ig-cap .ig-ic { grid-row: span 2; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, #fa7e1e, #d62976, #962fbf); }
.ig-cap svg { width: 1.1rem; height: 1.1rem; fill: #fff; }
.ig-cap strong { font-weight: 700; line-height: 1.25; }
.ig-cap span:last-child { font-size: .85rem; opacity: .85; }
.ig-follow { background: linear-gradient(135deg, #feda75 -20%, #fa7e1e 10%, #d62976 45%, #962fbf 75%, #4f5bd5 110%); display: grid; place-items: center; text-align: center; padding: 1.5rem; }
.ig-follow:hover { color: #fff; }
.ig-follow-in { display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.ig-follow-in > svg { width: 3.4rem; height: 3.4rem; fill: #fff; }
.ig-follow-in strong { font-family: var(--display); font-size: 1.05rem; overflow-wrap: anywhere; }
.ig-follow-in .btn { background: #fff; color: #962fbf; margin-top: .4rem; }
@media (max-width: 860px) { .ig-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ig-grid { grid-template-columns: 1fr; } }

.steps li .more { display: inline-block; margin-top: .7rem; }

/* ritocchi v5 */
.lang { align-items: stretch; }
.lang-flag { width: 100%; }
.roles { grid-auto-flow: row dense; }
.art-mars img { object-fit: contain; }
.pr-ig h3 { font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); overflow-wrap: normal; word-break: break-word; }
.ig-post { aspect-ratio: auto; display: flex; flex-direction: column; background: var(--surface); color: var(--ink); }
.ig-post img { aspect-ratio: 900 / 1274; height: auto; }
.ig-post:hover { color: var(--ink); }
.ig-cap { position: static; background: none; padding: .9rem 1rem 1rem; }
.ig-cap span:last-child { color: var(--muted); opacity: 1; }
.ig-follow { color: #fff; }
.ig-follow-in strong { overflow-wrap: anywhere; font-size: .98rem; }
.ig-post.ig-follow { background: linear-gradient(135deg, #feda75 -20%, #fa7e1e 10%, #d62976 45%, #962fbf 75%, #4f5bd5 110%); color: #fff; }
.ig-post.ig-follow:hover { color: #fff; }

/* ===================== VERSIONE 6 ===================== */
/* Chi sono: pannelli uno sotto l'altro, tutti uguali */
.roles { grid-template-columns: 1fr; gap: .6rem; }
.roles li.r-4 { grid-column: auto; }
.roles li > a, .roles li:not(:has(> a)) { align-items: center; min-height: 4.6rem; padding: .8rem 1.1rem; }
.r-8 { --rc: #c8102e; } .r-9 { --rc: #e2589b; } .r-10 { --rc: #fffca1; }
.roles li.r-10 .ri { color: #6b5f00; box-shadow: inset 0 0 0 1px rgba(107, 95, 0, .25); }
.roles li.r-10::before { background: #e8de4a; }
@media (prefers-color-scheme: dark) { .r-8 { --rc: #ef4456; } .roles li.r-10::before { background: #fffca1; } }

/* Seterra: pannello cliccabile nei colori dell'app */
.seterra { display: block; text-decoration: none; color: #fff; background: linear-gradient(160deg, #0c2151, #14306f 65%, #1d3f86); box-shadow: 0 30px 60px -30px rgba(8, 20, 55, .8); transition: transform .2s ease, box-shadow .2s ease; }
.seterra:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 34px 64px -28px rgba(8, 20, 55, .9); }
.seterra:focus-visible { outline: 3px solid #deb418; outline-offset: 3px; }
.seterra::after { border-color: rgba(222, 180, 24, .12); }
.seterra-top > span { display: block; }
.seterra-logo { width: 3.4rem; height: 3.4rem; border-radius: 14px; flex: none; display: block; box-shadow: 0 0 0 2px rgba(222, 180, 24, .35); }
.seterra-name, .seterra-sub { display: block; }
.seterra-name { color: #deb418; }
.seterra-list { grid-auto-rows: 1fr; }
.seterra-list li { min-height: 3.3rem; background: rgba(255, 255, 255, .08); border: 1px solid rgba(222, 180, 24, .18); }
.seterra-list .ok { background: #deb418; color: #0c2151; }
.seterra-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; padding: .5rem .95rem; border-radius: 999px; background: #deb418; color: #0c2151; font-weight: 700; font-size: .9rem; }
.seterra-btn::after { content: "→"; transition: transform .2s ease; }
.seterra:hover .seterra-btn::after { transform: translateX(3px); }

/* Politica: due pulsanti per scrivermi */
.more-row { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .5rem; }
.more-row .more { margin-top: 0; }

/* ===================== VERSIONE 7 ===================== */
/* Icona di Futuro Nazionale nel pannello */
.roles .ri-img img { width: 1.85rem; height: auto; display: block; }

/* Libro in fase di stesura */
.cover-tag { position: absolute; z-index: 2; left: 50%; top: 58%; transform: translate(-50%, -50%); white-space: nowrap; padding: .25rem .6rem; border-radius: 999px; background: #fde68a; color: #6b3d00; font: 700 .72rem/1.2 var(--text); letter-spacing: .02em; box-shadow: 0 6px 14px -6px rgba(0,0,0,.45); }
.wip-pill { display: inline-block; vertical-align: middle; margin-left: .4rem; padding: .2rem .6rem; border-radius: 999px; background: #fde68a; color: #6b3d00; font-size: .78rem; font-weight: 700; }
.book-soon { color: var(--muted); font-style: italic; margin: 0; }

/* Pacchetti non ancora pronti */
.btn-soon { background: var(--surface); color: var(--muted); border-color: var(--line); cursor: default; }

/* Locandina in formato leggero */
.ig-post picture { display: contents; }

/* Pop-up "lavori in corso" (Amazon e Google Play) */
dialog.wip { border: 0; padding: 0; border-radius: 22px; width: min(25rem, calc(100vw - 32px)); background: var(--bg); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(20, 8, 40, .6); }
dialog.wip::backdrop { background: rgba(20, 8, 40, .55); backdrop-filter: blur(3px); }
dialog.wip[open] { animation: wip-in .18s ease-out; }
@keyframes wip-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { dialog.wip[open] { animation: none; } }
.wip-box { padding: 1.7rem 1.6rem 1.4rem; text-align: center; }
.wip-ic { width: 3.4rem; height: 3.4rem; border-radius: 16px; margin: 0 auto 1rem; display: grid; place-items: center; background: #fde68a; color: #9a4b00; }
.wip-ic svg { width: 1.9rem; height: 1.9rem; }
dialog.wip h2 { font-size: 1.25rem; margin: 0 0 .5rem; }
dialog.wip p { color: var(--muted); margin: 0 0 1.3rem; line-height: 1.5; }
dialog.wip form { margin: 0; }

/* ===================== VERSIONE 8 ===================== */
/* Mars Mission: anteprima quadrata in pixel art */
.art-mars img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
