@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/dm-sans-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/dm-sans-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #0a1020;
  --deep: #070b18;
  --surface: #111b30;
  --raised: #192942;
  --ink: #edf3ff;
  --muted: #acbed9;
  --line: #2a3b57;
  --accent: #83baff;
  --accent-hover: #a8cfff;
  --warm: #ffba59;
  --ok: #7fd6a4;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --width: 1140px;
  --gutter: clamp(1.1rem, 4vw, 2.75rem);
  --radius: .9rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1.0625rem/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, p, ul, ol, dl { margin: 0; }
h1, h2 { font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.6rem); line-height: 1.1; }
h3 { font-size: 1.15rem; line-height: 1.3; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(var(--width), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--raised); color: var(--ink); padding: .5rem 1rem; border-radius: .5rem; z-index: 20; }
.skip:focus { left: .5rem; }
.eyebrow { color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Testata */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--deep) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 1rem; min-height: 3.9rem; }
.brand { display: flex; align-items: baseline; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.02em; font-size: 1.15rem; white-space: nowrap; }
.brand span { color: var(--muted); font-weight: 500; font-size: .92rem; letter-spacing: 0; }
.nav { display: flex; gap: .2rem; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); text-decoration: none; padding: .4rem .65rem; border-radius: .45rem; font-size: .95rem; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--raised); }
.top .btn { white-space: nowrap; }
@media (max-width: 860px) { .nav { display: none; } .top .btn { margin-left: auto; } }
@media (max-width: 420px) { .brand span { display: none; } }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.9rem; padding: .65rem 1.2rem; border-radius: .6rem; border: 1px solid #405c83; background: var(--raised); color: var(--ink); font-weight: 700; text-decoration: none; font-size: 1rem; cursor: pointer; font-family: inherit; }
.btn:hover { background: #2d4870; color: var(--ink); }
.btn.main { background: var(--accent); border-color: transparent; color: #08172b; }
.btn.main:hover { background: var(--accent-hover); color: #08172b; }
.btn.warm { background: var(--warm); border-color: transparent; color: #271705; }
.btn.warm:hover { background: #ffce85; color: #271705; }
.btn.small { min-height: 2.4rem; padding: .4rem .9rem; font-size: .92rem; }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Apertura */
.hero { background: radial-gradient(ellipse at 85% 0%, #1b3156 0%, var(--bg) 65%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero-copy { display: grid; gap: 1.25rem; }
.hero-note { color: var(--muted); font-size: .95rem; }
.fan { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; align-items: end; }
.fan figure { margin: 0; display: grid; gap: .45rem; justify-items: center; }
.fan img { border-radius: .3rem; box-shadow: 0 18px 40px #02050fb0; }
.fan figure:nth-child(odd) { transform: translateY(-1.1rem); }
.fan figcaption { font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .fan { max-width: 520px; } }

/* Fascia delle prove */
.facts { border-bottom: 1px solid var(--line); background: var(--deep); }
.facts ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 1.6rem; }
.facts li { display: grid; gap: .15rem; }
.facts b { font-size: clamp(1.45rem, 2.6vw, 2rem); letter-spacing: -.03em; line-height: 1.1; }
.facts span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .facts ul { grid-template-columns: repeat(2, 1fr); } }

/* Sezioni */
section.block { padding-block: clamp(3rem, 7vw, 5.5rem); border-bottom: 1px solid var(--line); }
section.block.alt { background: var(--deep); }
.head { display: grid; gap: .8rem; align-content: start; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); max-width: 760px; }
.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .g2, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.35rem 1.45rem; display: grid; gap: .55rem; align-content: start; }
.card p { color: var(--muted); }
.step-n { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: #24406a; color: var(--ink); font-weight: 700; }

.checks { list-style: none; padding: 0; display: grid; gap: .6rem; }
.checks li { position: relative; padding-left: 1.75rem; }
.checks li::before { content: ''; position: absolute; left: .1rem; top: .45rem; width: .9rem; height: .5rem; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg); }
.checks.no li::before { content: '×'; border: 0; transform: none; color: #ff8f80; font-weight: 700; top: -.05rem; left: .2rem; width: auto; height: auto; font-size: 1.2rem; }
.checks small { display: block; color: var(--muted); font-size: .92rem; }

/* Esempi */
.case { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); margin-bottom: 1rem; }
.case .covers { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.case .covers img { border-radius: .25rem; box-shadow: 0 10px 24px #02050f90; }
.case-copy { display: grid; gap: .8rem; }
.timeline { list-style: none; padding: 0; display: grid; gap: .35rem; color: var(--muted); }
.timeline b { color: var(--ink); }
.links { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .95rem; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } }
.book { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: center; }
.book img { filter: drop-shadow(0 10px 18px #02050fa0); }
.pages { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.pages img { border-radius: .25rem; }

/* Prezzi */
.price { position: relative; }
.price .amount { font-size: 2.3rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.price .amount small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price.best { border-color: #5b86bd; background: linear-gradient(180deg, #172a49, var(--surface)); }
.tag { justify-self: start; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .55rem; border-radius: .4rem; background: #2b4b73; color: var(--ink); }
.launch { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; background: #2a1d0a; border: 1px solid #7a5520; border-radius: var(--radius); padding: 1.2rem 1.35rem; }
.launch p { color: #f3dcb8; max-width: 70ch; }
.launch b { color: #ffd59a; }
table.extra { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .98rem; }
table.extra th, table.extra td { text-align: left; padding: .6rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.extra td:last-child { text-align: right; white-space: nowrap; font-weight: 700; }
table.extra th { color: var(--muted); font-weight: 500; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }

.note { border-left: 3px solid var(--warm); background: #18233a; padding: 1rem 1.2rem; border-radius: 0 .6rem .6rem 0; color: var(--ink); }

/* Domande */
details { background: var(--surface); border: 1px solid var(--line); border-radius: .7rem; padding: 0 1.1rem; }
details + details { margin-top: .6rem; }
summary { cursor: pointer; padding: 1rem 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--accent); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: '−'; }
details p { color: var(--muted); padding-bottom: 1rem; }

/* Contatti */
form { display: grid; gap: 1rem; }
label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
input, select, textarea { width: 100%; background: var(--deep); color: var(--ink); border: 1px solid #3a5070; border-radius: .55rem; padding: .7rem .8rem; font: inherit; font-weight: 400; }
textarea { min-height: 6.5rem; resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: .6rem; padding: .8rem 1rem 1rem; margin: 0; }
legend { font-weight: 600; font-size: .95rem; padding: 0 .3rem; }
.langs { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.langs label { display: flex; align-items: center; gap: .45rem; font-weight: 500; }
.langs input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.form-msg { color: var(--ok); font-weight: 600; min-height: 1.5rem; }
.contact-side { display: grid; gap: 1rem; align-content: start; }

/* Piede */
footer { padding-block: 2.2rem 3rem; color: var(--muted); font-size: .92rem; background: var(--deep); }
footer .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
footer a { color: var(--muted); }

/* Pagina privacy */
.doc { max-width: 760px; padding-block: 3rem 4rem; display: grid; gap: 1.1rem; }
.doc h2 { font-size: 1.35rem; letter-spacing: -.01em; margin-top: .8rem; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 1.2rem; display: grid; gap: .35rem; }

/* Guide */
.article { padding-block: clamp(2rem, 5vw, 3.5rem) 4rem; display: grid; gap: 1.1rem; max-width: 820px; }
.article .eyebrow a { color: inherit; text-decoration: none; }
.prose { display: grid; gap: 1rem; margin-top: .5rem; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 1.2rem; }
.prose h3 { margin-top: .6rem; }
.prose p, .prose li { color: #d3deef; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: .45rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.prose th, .prose td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; }
.prose .fonti { font-size: .9rem; color: var(--muted); }
.prose .fonti li { color: var(--muted); }
.cta-box { margin-top: 2rem; background: linear-gradient(180deg, #172a49, var(--surface)); border: 1px solid #5b86bd; border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 1.8rem); display: grid; gap: .8rem; }
.cta-box h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.cta-box p { color: var(--muted); }
.related { margin-top: 1.5rem; }
.related h2 { font-size: 1.2rem; margin-bottom: .6rem; }
.related ul { padding-left: 1.2rem; display: grid; gap: .4rem; }
a.guide-card { text-decoration: none; color: var(--ink); }
a.guide-card:hover { border-color: #5b86bd; }
