/* Pagina di presentazione di yesweviz.com: stessi colori e caratteri delle guide (senza Google Fonts: la CSP del sito
   ammette solo risorse proprie) */
:root {
  --bg: #f6f6f4; --card: #ffffff; --fg: #262626; --muted: #66665f; --rule: #dcdcd7; --soft: #f1f1ee; --ibcs: #404040;
  --accent: #6f8f00; --accent-soft: #eef4dc; --red: #c4141c; --red-soft: #fbe6e6; --beta: #8a5a00; --beta-soft: #fbf1dc;
  --pulsante: #262626; --pulsante-fg: #ffffff;
  --display: "Barlow Semi Condensed", "Segoe UI Semibold", "Arial Narrow", Arial, sans-serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #171716; --card: #222221; --fg: #ececea; --muted: #a3a39d; --rule: #353533; --soft: #2a2a29; --ibcs: #cfcfcb; --accent: #a9cf4a; --accent-soft: #2a3317; --red: #ff7b82; --red-soft: #3a1a1c; --beta: #f0c060; --beta-soft: #3a2e14; --pulsante: #ececea; --pulsante-fg: #171716; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #171716; --card: #222221; --fg: #ececea; --muted: #a3a39d; --rule: #353533; --soft: #2a2a29; --ibcs: #cfcfcb; --accent: #a9cf4a; --accent-soft: #2a3317; --red: #ff7b82; --red-soft: #3a1a1c; --beta: #f0c060; --beta-soft: #3a2e14; --pulsante: #ececea; --pulsante-fg: #171716; color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16.5px; line-height: 1.6; padding-inline: 16px; padding-block: 40px 80px; margin: 0; }
main { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.15; text-wrap: balance; }
h1 { font-weight: 700; font-size: 2.6rem; max-width: 22ch; }
h2 { font-weight: 700; font-size: 1.45rem; }
h3 { font-weight: 600; font-size: 1.25rem; }
p, ol { margin: 0; max-width: 72ch; }
ol { padding-left: 1.25em; display: flex; flex-direction: column; gap: 4px; }
a { color: inherit; text-underline-offset: 2px; }
code { font-family: var(--mono); font-size: .85em; background: var(--soft); padding: 1px 5px; border-radius: 3px; overflow-wrap: anywhere; }
.muted { color: var(--muted); }

.testata { display: flex; flex-direction: column; gap: 18px; }
.marchio { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nome { font-family: var(--display); font-size: 2.1rem; line-height: 1; white-space: nowrap; }
.nome b { font-weight: 700; } .nome span { font-weight: 500; } .nome i { font-style: normal; font-weight: 500; color: var(--muted); margin-left: .22em; }
.sotto { font-size: 1.15rem; color: var(--muted); }
.beta, .prodotto { display: inline-block; font-family: var(--display); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: 3px; }
.beta { color: var(--beta); background: var(--beta-soft); }
.prodotto { color: var(--accent); background: var(--accent-soft); align-self: flex-start; }

.pulsante { display: inline-block; background: var(--pulsante); color: var(--pulsante-fg); border: 0; border-radius: 4px; padding: 11px 20px; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; }
.pulsante:hover { opacity: .88; }
.pulsante:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pulsante[disabled] { opacity: .5; cursor: progress; }

/* i grafici sono immagini su fondo bianco: restano su una scheda bianca anche al buio */
.vetrina, .galleria figure { margin: 0; background: #ffffff; border: 1px solid var(--rule); border-radius: 6px; padding: 16px; }
img { display: block; width: 100%; height: auto; }
.galleria { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
figcaption { color: #66665f; font-size: .9rem; margin-top: 8px; }

.tre { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.tre div { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--ibcs); padding-top: 14px; }

.prodotti { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.scheda { background: var(--card); border: 1px solid var(--rule); border-radius: 6px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }

.prova { background: var(--card); border: 1px solid var(--rule); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 22px; scroll-margin-top: 16px; }
.prova .capo { display: flex; flex-direction: column; gap: 6px; }
.prova h2 { font-size: 1.85rem; }
.modulo { display: flex; flex-direction: column; gap: 14px; }
.campi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; max-width: 720px; }
.campi label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .95rem; }
input[type="email"], input[type="number"], input:not([type]), select, textarea { font: 1rem var(--sans); color: var(--fg); background: var(--bg); border: 1px solid var(--rule); border-radius: 4px; padding: 9px 11px; width: 100%; }
textarea { resize: vertical; }
select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }
/* pagina della richiesta di licenza (licenza.html) */
.largo { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .95rem; max-width: 720px; }
.largo .muted, .campi .muted { font-weight: 400; }
.dal-componente { background: var(--soft); border-radius: 4px; padding: 12px 14px; max-width: 720px; display: flex; flex-direction: column; gap: 6px; font-size: .92rem; }
.dal-componente dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 14px; }
.dal-componente dt { color: var(--muted); }
.dal-componente dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.spunta { display: flex; gap: 10px; align-items: flex-start; max-width: 80ch; }
.spunta input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.spunta em { font-style: normal; color: var(--muted); }
.trappola { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.errore { background: var(--red-soft); color: var(--red); padding: 10px 14px; border-radius: 4px; }
.ok { font-weight: 600; color: var(--accent); }
.scarica { display: flex; flex-direction: column; gap: 18px; outline: none; }
.scarica .scheda { background: var(--bg); }
.versione { color: var(--muted); font-size: .9rem; margin-left: 8px; }
[hidden] { display: none !important; }
.codice { font-family: var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.prerilascio a { font-weight: 600; }

footer { display: flex; flex-direction: column; gap: 8px; font-size: .9rem; border-top: 1px solid var(--rule); padding-top: 18px; }

@media (max-width: 600px) {
  body { padding-block: 24px 56px; }
  h1 { font-size: 1.9rem; }
  .nome { font-size: 1.7rem; }
  .prova { padding: 18px; }
  .campi { grid-template-columns: 1fr; }
  .vetrina, .galleria figure { padding: 8px; }
}
