/* pages.css — stile condiviso delle pagine contenuto (guide + confronti).
   Replica il look della home (dark, Inter, blu primario). La home NON usa
   questo file: ha il proprio CSS inline. */

:root {
    --primary: #0066cc;
    --primary-hover: #0052a3;
    --bg: #0a0a0c;
    --bg-card: #16161a;
    --text: #ffffff;
    --text-muted: #a1a1aa;
    --accent: #2e7d32;
    --border: #26262c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: #4da3ff; }
a:hover { color: #7dbcff; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.site-header .inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.site-header .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.05rem;
}
.site-header nav {
    margin-left: auto;
    display: flex;
    gap: 20px;
    align-items: center;
}
.site-header nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}
.site-header nav a:hover { color: var(--text); }
.site-header nav a.cta {
    color: #fff;
    background: var(--primary);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
}
.site-header nav a.cta:hover { background: var(--primary-hover); }

main {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}
main.wide { max-width: 900px; }

.breadcrumb {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

h1 {
    font-size: clamp(1.9rem, 4.5vw, 2.7rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.lede {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}
h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 44px 0 14px;
}
h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 28px 0 10px;
}
p { margin-bottom: 16px; }
ul, ol { margin: 0 0 16px 1.3em; }
li { margin-bottom: 8px; }

figure {
    margin: 28px 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
figure img { max-width: 100%; height: auto; }
figcaption {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 12px;
}
figure.plain { background: none; border: none; padding: 0; }

.table-wrap { overflow-x: auto; margin: 28px 0; }
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
th, td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
th {
    background: #1c1c22;
    font-weight: 600;
    white-space: nowrap;
}
tr:last-child td { border-bottom: none; }
td.yes { color: #6fcf74; font-weight: 600; }
td.no { color: #e57373; }

.note {
    background: var(--bg-card);
    border-left: 3px solid var(--primary);
    border-radius: 0 10px 10px 0;
    padding: 14px 18px;
    margin: 24px 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.cta-box {
    background: linear-gradient(135deg, #10233b, #16161a);
    border: 1px solid #1f3a5c;
    border-radius: 14px;
    padding: 32px 28px;
    text-align: center;
    margin: 48px 0 8px;
}
.cta-box h2 { margin-top: 0; }
.cta-box p { color: var(--text-muted); }
.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 10px;
    margin-top: 8px;
}
.btn:hover { background: var(--primary-hover); color: #fff; }
.btn.secondary {
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    margin-left: 10px;
}
.btn.secondary:hover { border-color: var(--text-muted); background: none; }
.cta-sub { font-size: 0.82rem; color: var(--text-muted); margin-top: 14px; }

.faq-item { margin-bottom: 22px; }
.faq-item h3 { margin-top: 0; }
.faq-item p { color: var(--text-muted); margin-bottom: 0; }

.site-footer {
    border-top: 1px solid var(--border);
    padding: 36px 24px 48px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin-bottom: 10px; }

@media (max-width: 640px) {
    .site-header nav a:not(.cta) { display: none; }
    th, td { padding: 10px; }
}

.lang-row {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: -14px 0 26px;
}
.lang-row a { color: var(--text-muted); text-decoration: none; }
.lang-row a:hover { color: var(--text); text-decoration: underline; }
.lang-row strong { color: var(--text); font-weight: 600; }

.consent-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 20px;
    background: rgba(22, 22, 26, 0.96);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    z-index: 2000;
    font-size: 0.9rem;
}
.consent-banner[hidden] { display: none; }
.consent-banner p {
    flex: 1;
    min-width: 240px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.4;
}
.consent-banner .consent-actions { display: flex; gap: 8px; flex-shrink: 0; }
.consent-banner button {
    font: inherit;
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.consent-banner button:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.3); }
.consent-banner button.primary { background: var(--primary); border-color: var(--primary); }
.consent-banner button.primary:hover { background: var(--primary-hover); }
