/* Stile della guida (guida.html, en/guide.html) */
:root {
  --ink: #1a1a1a;
  --paper: #f8f8f8;
  --accent: #1a6fa8;
  --accent-soft: #e8f3fb;
  --rule: #d4d4d4;
  --muted: #6b6b6b;
  --code-bg: #efefef;
  --sidebar-w: 260px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--paper); color: var(--ink); line-height: 1.7; font-size: 16px; }
.sidebar { position: fixed; top: 0; left: 0; width: var(--sidebar-w); height: 100vh; overflow-y: auto; background: var(--ink); color: #e8e8e8; padding: 40px 0 60px; z-index: 100; }
.sidebar-logo { padding: 0 28px 32px; border-bottom: 1px solid #333; margin-bottom: 24px; }
.sidebar-logo img { width: 140px; height: auto; display: block; margin-bottom: 10px; }
.sidebar-logo .tagline { font-size: 0.72rem; color: #888; font-weight: 300; letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; }
.nav-section { margin-bottom: 24px; padding: 0 28px; }
.nav-section-title { font-size: 0.65rem; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; color: #666; margin-bottom: 10px; }
.nav-link { display: block; font-size: 0.85rem; color: #aaa; text-decoration: none; padding: 5px 0; font-weight: 300; transition: color 0.2s; line-height: 1.4; }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active { color: #6ab4e8; }
.main { margin-left: var(--sidebar-w); min-height: 100vh; }
.hero { background: var(--ink); color: #fff; padding: 100px 80px 90px; position: relative; overflow: hidden; }
.hero-logo { position: absolute; top: 40px; right: 80px; width: 80px; opacity: 0.85; }
.hero::before { content: ''; position: absolute; top: -80px; right: -80px; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(200,57,10,0.15) 0%, transparent 70%); }
.hero-label { font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 24px; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; line-height: 1.15; margin-bottom: 24px; letter-spacing: -1px; }
.hero h1 em { font-style: italic; color: #6ab4e8; }
.hero-sub { font-size: 1.1rem; color: #a8a8a8; font-weight: 300; max-width: 560px; line-height: 1.6; }
.hero-meta { margin-top: 48px; display: flex; gap: 40px; font-size: 0.8rem; color: #666; font-weight: 300; }
.hero-meta span strong { display: block; color: #ccc; font-weight: 400; font-size: 1rem; margin-bottom: 2px; }
.content { max-width: 760px; margin: 0 auto; padding: 80px 80px 120px; }
.section { margin-bottom: 80px; padding-top: 20px; }
.section-number { font-family: 'Playfair Display', serif; font-size: 4rem; color: var(--rule); line-height: 1; margin-bottom: -16px; font-style: italic; }
.section h2 { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; margin-bottom: 28px; letter-spacing: -0.5px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.section h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; margin: 48px 0 16px; color: var(--ink); }
.section h4 { font-size: 0.8rem; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin: 32px 0 12px; }
.section p { margin-bottom: 16px; font-weight: 300; color: #333; }
.callout { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 20px 24px; margin: 32px 0; border-radius: 0 4px 4px 0; }
.callout.tip { border-color: #2a7a5a; background: #eef6f2; }
.callout.warning { border-color: #b8860b; background: #fef9e7; }
.callout-label { font-size: 0.65rem; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.callout.tip .callout-label { color: #2a7a5a; }
.callout.warning .callout-label { color: #b8860b; }
.callout p { margin: 0; font-size: 0.92rem; }
.steps { counter-reset: step; list-style: none; margin: 24px 0; }
.steps li { counter-increment: step; display: flex; gap: 20px; margin-bottom: 20px; align-items: flex-start; }
.steps li::before { content: counter(step); flex-shrink: 0; width: 28px; height: 28px; background: var(--ink); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 500; margin-top: 2px; }
.steps li p { margin: 0; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; }
.feature-card { border: 1px solid var(--rule); border-radius: 6px; padding: 24px; background: #fff; }
.feature-card .icon { font-size: 1.6rem; margin-bottom: 12px; }
.feature-card h5 { font-size: 0.9rem; font-weight: 500; margin-bottom: 8px; color: var(--ink); }
.feature-card p { font-size: 0.85rem; color: var(--muted); margin: 0; }
table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.88rem; }
th { background: var(--ink); color: #fff; padding: 12px 16px; text-align: left; font-weight: 400; font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; }
td { padding: 12px 16px; border-bottom: 1px solid var(--rule); color: #444; font-weight: 300; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: #f2f2f2; }
code { font-family: 'DM Mono', monospace; font-size: 0.85em; background: var(--code-bg); padding: 2px 6px; border-radius: 3px; color: var(--accent); }
.divider { border: none; border-top: 1px solid var(--rule); margin: 60px 0; }
.workflow { display: flex; align-items: center; gap: 0; margin: 32px 0; flex-wrap: wrap; row-gap: 16px; }
.workflow-step { flex: 1; min-width: 120px; text-align: center; padding: 16px 12px; background: #fff; border: 1px solid var(--rule); border-radius: 6px; }
.workflow-step .ws-icon { font-size: 1.6rem; margin-bottom: 6px; }
.workflow-step .ws-label { font-size: 0.78rem; font-weight: 500; color: var(--ink); }
.workflow-step .ws-sub { font-size: 0.7rem; color: var(--muted); margin-top: 2px; }
.workflow-arrow { font-size: 1.2rem; color: var(--rule); padding: 0 6px; flex-shrink: 0; }
.layout-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.layout-card { border: 1px solid var(--rule); border-radius: 6px; padding: 16px; text-align: center; background: #fff; }
.layout-card .lc-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--rule); line-height: 1; margin-bottom: 8px; }
.layout-card .lc-name { font-size: 0.8rem; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.layout-card .lc-desc { font-size: 0.72rem; color: var(--muted); }
.footer { background: var(--ink); color: #666; padding: 48px 80px; font-size: 0.8rem; font-weight: 300; }
.footer a { color: #888; }
.progress-bar { position: fixed; top: 0; left: var(--sidebar-w); right: 0; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); z-index: 200; transition: transform 0.1s; }
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .hero { padding: 60px 32px; }
  .content { padding: 48px 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .layout-grid { grid-template-columns: 1fr 1fr; }
  .workflow { flex-direction: column; align-items: stretch; }
  .workflow-arrow { transform: rotate(90deg); text-align: center; }
  .footer { padding: 40px 32px; }
}

/* Selettore lingua (vedi lingua.js), nell'intestazione scura */
.hero .lang-switch { position: absolute; top: 14px; right: 24px; z-index: 2; font-size: 0.8rem; font-weight: 300; color: #666; }
.hero .lang-switch a { color: #a8a8a8; text-decoration: none; }
.hero .lang-switch a:hover { color: #fff; }
.hero .lang-switch .attiva { color: #fff; font-weight: 500; }
