/* Stili di pressione-pneumatici-moto.html (si aggiungono a index.css: nav, bottoni, form, tema scuro) */
body { background: var(--bg); }

/* ============ TESTATA ============ */
.tool-hero { padding-top: 56px; padding-bottom: 24px; }
.tool-hero .hero-copy { max-width: 820px; }
h1.tool-title { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.05; font-weight: 700; margin-bottom: 16px; }
.tool-sub { color: var(--text-dim); font-size: 17px; max-width: 60ch; margin: 0 auto; }

/* ============ STRUMENTO ============ */
.tool-section { padding: 24px 0 56px; }
.tool-panel { max-width: 760px; margin: 0 auto; padding: 32px; }
@media (max-width: 560px) { .tool-panel { padding: 22px 18px; } }

.tool-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.tool-form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .tool-form { grid-template-columns: 1fr; } }
select:disabled { opacity: .55; cursor: not-allowed; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.seg label { margin: 0; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label > span {
  display: flex; align-items: center; justify-content: center; padding: 12px 14px;
  border: 2px solid var(--border); border-radius: var(--radius); background: var(--bg-sunken);
  font-weight: 600; font-size: 14px; text-align: center; transition: border-color .15s, background .15s;
}
.seg input:checked + span { border-color: var(--accent); background: var(--bg-elevated); color: var(--accent); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hint { font-size: 12.5px; color: var(--text-faint); margin: 0 0 20px; line-height: 1.5; }
.hint.state-note { margin-top: -12px; color: var(--accent); font-weight: 600; }
.hint[hidden] { display: none; }
.seg label:has(input:disabled) { cursor: not-allowed; }
.seg input:disabled + span { opacity: .4; background: var(--bg-sunken); border-style: dashed; }

/* ============ RISULTATO ============ */
.result { display: none; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); }
.result.show { display: block; }
.r-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.r-title { font-size: clamp(24px, 3.4vw, 32px); font-weight: 600; margin: 6px 0 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.tag.ghost { background: var(--bg-sunken); color: var(--text-dim); }
.tag.track { background: var(--accent-2); color: var(--accent-ink); }

.axles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
@media (max-width: 560px) { .axles { grid-template-columns: 1fr; } }
.axle { background: var(--bg-sunken); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.axle-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }
.arow + .arow { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border-strong); }
.aval { font-family: var(--font-mono); font-size: 28px; font-weight: 600; color: var(--accent); line-height: 1.1; }
.aval small { font-size: 14px; color: var(--text-dim); font-weight: 500; }
.apsi { font-size: 13px; color: var(--text-dim); margin-top: 4px; }
.atarget { font-size: 12.5px; font-weight: 600; margin-top: 4px; }
.asize { font-size: 12px; color: var(--text-faint); margin-top: 2px; }

.notice { background: var(--bg-sunken); border-left: 3px solid var(--accent-2); border-radius: 8px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; margin-bottom: 12px; }
.notice.warn { border-left-color: var(--accent); }

.cta-btn { flex-direction: column; align-items: center; gap: 4px; margin-top: 8px; padding: 16px 20px; border-radius: var(--radius); }
.cta-btn .l1 { font-weight: 700; font-size: 16px; }
.cta-btn .l2, .cta-btn .l3 { font-weight: 500; font-size: 14px; }
.source { font-size: 12.5px; color: var(--text-faint); margin: 14px 0 0; }
.source a { color: var(--accent); }

/* ============ SEZIONI INFORMATIVE ============ */
.info-section, .table-section, .notes-section { padding: 40px 0; }
.info-section h2, .table-section h2, .notes-section h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; margin-bottom: 20px; text-align: center; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1000px; margin: 0 auto; }
@media (max-width: 800px) { .info-grid { grid-template-columns: 1fr; } }
.info-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.info-card h3 { font-family: var(--font-body); text-transform: none; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.info-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-dim); }

.table-wrap { max-width: 1000px; margin: 0 auto; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elevated); }
#ptable { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 680px; }
#ptable th, #ptable td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
#ptable thead th { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); background: var(--bg-sunken); }
#ptable tbody th { font-weight: 600; }
#ptable tbody tr:last-child th, #ptable tbody tr:last-child td { border-bottom: none; }
#ptable .tb { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); font-weight: 500; }
#ptable small { color: var(--text-faint); }
#ptable .tpsi { display: block; font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }
#ptable td > div + div { margin-top: 8px; }
#ptable .na { color: var(--text-faint); }
.table-note { max-width: 1000px; margin: 12px auto 0; font-size: 12.5px; color: var(--text-faint); }

.notes-section .disclaimer { max-width: 800px; margin: 0 auto 16px; font-size: 13.5px; line-height: 1.6; color: var(--text-dim); text-align: center; }
.notes-section .src-list { max-width: 800px; margin: 0 auto; padding: 0; list-style: none; font-size: 13px; color: var(--text-dim); display: grid; gap: 6px; }
.notes-section .src-list a { color: var(--accent); }
/* ============ FAQ ============ */
.faq-section { padding: 40px 0; }
.faq-section h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; margin-bottom: 20px; text-align: center; }
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: 10px; }
.faq-list details { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 18px; }
.faq-list summary { cursor: pointer; font-weight: 600; font-size: 15px; padding: 16px 24px 16px 0; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--accent); }
.faq-list details[open] summary::after { content: '–'; }
.faq-list summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.faq-list details p { margin: 0 0 16px; font-size: 14px; line-height: 1.65; color: var(--text-dim); }
.faq-more { max-width: 800px; margin: 18px auto 0; text-align: center; font-size: 14px; color: var(--text-dim); }
.faq-more a { color: var(--accent); font-weight: 600; }
noscript p { text-align: center; padding: 16px; color: var(--text-dim); }

/* ============ PAGINE PER MARCA ============ */
.crumbs { font-size: 13px; color: var(--text-faint); margin: 0 0 14px; }
.crumbs a { color: var(--accent); }
.brand-intro-section { padding: 16px 0 0; }
.brand-intro-section .brand-track { max-width: 800px; margin: 0 auto 16px; }
.brand-intro { max-width: 800px; margin: 0 auto; font-size: 15px; line-height: 1.65; color: var(--text-dim); text-align: center; }
.models-section { padding: 40px 0 16px; }
.models-section h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; margin-bottom: 20px; text-align: center; }
.model-card { max-width: 900px; margin: 0 auto 18px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; scroll-margin-top: 90px; }
@media (max-width: 560px) { .model-card { padding: 20px 16px; } }
.model-card h3 { font-size: clamp(21px, 2.8vw, 28px); font-weight: 600; margin: 4px 0 12px; }
.model-card .axles { margin-bottom: 12px; }
.state-line { display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: baseline; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border-strong); }
.arow .asize + .state-line { margin-top: 6px; padding-top: 10px; }
.arow .state-line:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.sl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); font-weight: 500; }
.state-line .na { font-size: 13px; color: var(--text-faint); }
.model-card .aval { font-size: 22px; }
.cta-section { padding: 24px 0 8px; }
.cta-wrap { max-width: 640px; margin: 0 auto; display: grid; gap: 10px; }
.cta-wrap .cta-btn { margin-top: 0; }
.brands-section { padding: 32px 0 8px; }
.brands-section h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; margin-bottom: 18px; text-align: center; }
.brand-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 800px; margin: 0 auto; }
