:root { --bg: #ffffff; --fg: #111111; --muted: #5a5a5a; --line: #e9e9e9; --accent: #111111; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; background: var(--bg); color: var(--fg); line-height: 1.6; }

.container { width: min(1100px, 92vw); margin: 0 auto; }
.site-header { position: sticky; top: 0; background: var(--bg); border-bottom: 1px solid var(--line); z-index: 10; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { font-weight: 700; text-decoration: none; color: var(--fg); letter-spacing: 0.2px; }
.menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.menu a { color: var(--fg); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.menu a:hover, .menu a:focus { background: #f5f5f5; outline: none; }

.hero { padding: 72px 0 48px; text-align: left; }
h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.15; margin: 0 0 10px; }
.lead { color: var(--muted); font-size: clamp(16px, 2.4vw, 18px); max-width: 68ch; }
.cta { display: flex; gap: 12px; margin-top: 18px; }
.btn { border: 1px solid var(--fg); color: var(--fg); background: transparent; padding: 10px 14px; border-radius: 10px; text-decoration: none; display: inline-block; transition: transform .12s ease, background .12s ease; }
.btn:hover { transform: translateY(-1px); background: #f5f5f5; }
.btn.primary { background: var(--fg); color: var(--bg); }
.btn.primary:hover { background: #000; }

.section { padding: 48px 0; }
.section-head h2 { font-size: clamp(22px, 3.5vw, 32px); margin: 0 0 6px; }
.section-head p { color: var(--muted); margin: 0 0 18px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; display: flex; flex-direction: column; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card .meta { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tag { border: 1px solid var(--line); padding: 4px 8px; border-radius: 999px; font-size: 12px; color: var(--muted); }
.card .actions { margin-top: auto; display: flex; gap: 8px; }
.card details { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.card details[open] { animation: fadeIn .18s ease; }
.card summary { cursor: pointer; list-style: none; }
.card summary::-webkit-details-marker { display: none; }
.card summary:focus { outline: 2px dashed var(--fg); outline-offset: 3px; }

.nota { color: var(--muted); font-size: 14px; margin-top: 10px; }

.timeline { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 14px; }
.timeline li { border: 1px solid var(--line); border-radius: 12px; padding: 14px; position: relative; background: #fff; }
.timeline li h3 { margin: 0 0 6px; font-size: 16px; }
.timeline li::before { counter-increment: step; content: counter(step); position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-size: 12px; }

.quiz { display: grid; gap: 18px; }
.question { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.question legend { font-weight: 600; margin-bottom: 6px; }
.options { display: grid; gap: 8px; margin-top: 8px; }
.option { display: flex; align-items: center; gap: 10px; }
.quiz .controls { display: flex; gap: 10px; }
.quiz-result { margin-top: 12px; font-weight: 600; }

.accordion details { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.accordion details + details { margin-top: 10px; }
.accordion summary { cursor: pointer; font-weight: 600; }
.details-body { margin-top: 8px; color: var(--muted); }

.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.links a { text-decoration: none; color: var(--fg); border: 1px solid var(--line); padding: 10px 12px; border-radius: 10px; }
.links a:hover { background: #f5f5f5; }

.site-footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 14px; }

.reveal { opacity: 1; transform: none; }
.sr-init .reveal { opacity: 0; transform: translateY(8px); }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

@media (prefers-reduced-motion: reduce) {
  .btn, .reveal { transition: none; transform: none !important; }
}
