@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); }

:root {
  --bg: #f8f7f3;
  --bg-fascia: #f0eee8;
  --fg: #15201f;
  --muted: #55625f;
  --line: #e1ded5;
  --card: #ffffff;
  --accent: #115e59;
  --accent-fg: #ffffff;
  --accent-soft: #e3f1ef;
  --accent-text: #0f6b64;
  --warm: #b4741a;
  --code-bg: #0f1f1e;
  --code-fg: #d8efec;
  --ombra: 0 1px 2px rgba(16, 32, 30, .06), 0 8px 24px rgba(16, 32, 30, .06);
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --raggio: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101413;
    --bg-fascia: #151a19;
    --fg: #e8e6e1;
    --muted: #9fabA8;
    --line: #26302e;
    --card: #181e1d;
    --accent: #5eead4;
    --accent-fg: #052e2b;
    --accent-soft: #14302d;
    --accent-text: #5eead4;
    --warm: #f2b95c;
    --code-bg: #0a1211;
    --code-fg: #cfe9e5;
    --ombra: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.7 var(--sans); font-feature-settings: "cv11", "ss03"; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap-largo { max-width: 72rem; margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* testata */
.testata { border-bottom: 1px solid var(--line); background: var(--bg); }
.testata-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.marchio { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; }
.marchio-nome { font: 700 21px/1 var(--sans); letter-spacing: -0.03em; }
.logo { flex: none; color: #fff; }
.logo-sfondo { fill: #115e59; }
@media (prefers-color-scheme: dark) { .logo-sfondo { fill: #14958a; } }
.menu { display: flex; gap: 4px; }
.menu a { padding: 8px 12px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; border-radius: 8px; }
.menu a:hover { color: var(--fg); background: var(--accent-soft); }

/* hero */
.hero { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg) 0%, var(--bg-fascia) 100%); }
.hero-in { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 48px; align-items: center; }
.occhiello { font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 16px; }
.hero h1 { font-size: clamp(32px, 8vw, 54px); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 18px; font-weight: 600; }
.hero-sotto { font-size: 18px; color: var(--muted); margin: 0 0 26px; max-width: 34rem; }
.hero-azioni { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin: 0; }
.bottone { display: inline-block; padding: 11px 20px; background: var(--accent); color: var(--accent-fg); text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 10px; }
.bottone:hover { filter: brightness(1.1); }
.link-sobrio { font-weight: 500; font-size: 15px; text-decoration: none; }
.link-sobrio:hover { text-decoration: underline; }
.hero-figura img { width: 100%; max-width: 560px; margin: 0 auto; border-radius: 28px; box-shadow: var(--ombra); }

/* sezioni home */
.sezione { padding-top: 56px; padding-bottom: 56px; }
.sezione-testa { margin-bottom: 28px; }
.sezione-testa h2 { font-size: clamp(26px, 5vw, 34px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 6px; }
.sezione-testa p { margin: 0; color: var(--muted); }
.sezione-fascia { background: var(--bg-fascia); border-block: 1px solid var(--line); }
.etichetta { font: 600 11.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.meta { font-size: 13.5px; color: var(--muted); }

.evidenza { display: grid; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; color: var(--fg); text-decoration: none; box-shadow: var(--ombra); margin-bottom: 28px; }
.evidenza-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.evidenza-testo { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 24px; }
.evidenza-testo strong { font: 600 clamp(24px, 5vw, 32px)/1.2 var(--serif); letter-spacing: -0.015em; }
.evidenza:hover strong, .scheda:hover strong { color: var(--accent-text); }
.estratto { color: var(--muted); font-size: 16px; line-height: 1.55; }

.griglia-guide { display: grid; gap: 20px; }
.scheda { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--raggio); overflow: hidden; color: var(--fg); text-decoration: none; transition: border-color .15s, transform .15s; }
.scheda:hover { border-color: var(--accent); transform: translateY(-2px); }
.scheda-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.scheda-corpo { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.scheda-corpo strong { font: 600 20px/1.28 var(--serif); letter-spacing: -0.01em; }
.scheda .estratto { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.scheda .meta { margin-top: auto; padding-top: 4px; }

.griglia-categorie, .griglia-metodo { display: grid; gap: 16px; }
.categoria { background: var(--card); border: 1px solid var(--line); border-radius: var(--raggio); padding: 24px 22px; }
.categoria-icona { fill: none; stroke: var(--accent-text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.categoria-icona .pieno { fill: var(--accent-text); stroke: none; }
.categoria h3 { font-size: 22px; margin: 0 0 8px; letter-spacing: -0.01em; }
.categoria p { margin: 0 0 14px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.categoria ul { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 15px; }
.categoria li { margin: 4px 0; }
.categoria .presto { color: var(--muted); font-style: italic; }
.metodo { padding: 4px 0 4px 18px; border-left: 2px solid var(--accent); }
.numero { font: 600 13px var(--mono); color: var(--accent-text); }
.metodo h3 { font-size: 20px; margin: 6px 0 6px; }
.metodo p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

/* pagina guida */
.guida-testa { padding-top: 32px; max-width: 52rem; }
.briciole { display: flex; gap: 8px; font: 500 12.5px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.briciole a { color: var(--muted); text-decoration: none; }
.briciole a:hover { color: var(--accent-text); }
.guida h1 { font-size: clamp(30px, 6.5vw, 48px); line-height: 1.12; letter-spacing: -0.025em; margin: 16px 0 16px; }
.sommario { font: 400 clamp(18px, 3.4vw, 21px)/1.5 var(--serif); color: var(--muted); margin: 0 0 18px; }
.firma { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13.5px; color: var(--muted); margin: 0 0 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.firma span + span::before { content: "·"; margin-right: 18px; color: var(--line); }
@media (max-width: 480px) { .firma span + span::before { display: none; } .firma { gap: 2px 14px; } }
.guida-cover { margin-bottom: 36px; }
.guida-cover img { width: 100%; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--ombra); aspect-ratio: 16 / 9; object-fit: cover; }

.guida-corpo { display: grid; gap: 24px; padding-bottom: 56px; }
.colonna { min-width: 0; max-width: 44rem; }
.indice { background: var(--card); border: 1px solid var(--line); border-radius: var(--raggio); padding: 16px 20px; align-self: start; max-width: 44rem; font-size: 14.5px; }
.indice h2 { font: 600 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.indice ol { margin: 0; padding-left: 1.3em; line-height: 1.45; }
.indice li { margin: 6px 0; padding-left: 2px; }
.indice a { color: var(--fg); text-decoration: none; }
.indice a:hover { color: var(--accent-text); text-decoration: underline; }

.in-breve { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); border-left: 4px solid var(--accent); border-radius: 4px var(--raggio) var(--raggio) 4px; padding: 6px 22px 12px; margin: 0 0 32px; }
.in-breve h2 { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent-text); margin: 16px 0 8px; }
.in-breve ul { margin: 0; padding-left: 1.2em; }
.in-breve li { margin: 8px 0; font-size: 16px; line-height: 1.55; }
.in-breve li::marker { color: var(--accent-text); }

.testo { font-size: 17.5px; }
.testo > :first-child { margin-top: 0; }
.testo p { margin: 0 0 1.1em; }
.testo h2 { font-size: clamp(26px, 5vw, 32px); line-height: 1.2; margin: 2.2em 0 .5em; letter-spacing: -0.02em; padding-top: 1.1em; border-top: 1px solid var(--line); }
.testo h3 { font-size: 22px; line-height: 1.3; margin: 1.8em 0 .4em; letter-spacing: -0.01em; }
.testo ul, .testo ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.testo li { margin: .4em 0; }
.testo li::marker { color: var(--accent-text); }
.testo strong { font-weight: 650; }
.testo img { border-radius: 12px; margin: 1.4em 0; }
.testo code { font: 0.86em var(--mono); background: var(--accent-soft); color: var(--fg); padding: 2px 6px; border-radius: 5px; overflow-wrap: anywhere; }
.testo pre { background: var(--code-bg); color: var(--code-fg); border-radius: 12px; padding: 16px 18px; overflow-x: auto; margin: 1.4em 0; font-size: 14px; line-height: 1.6; border: 1px solid var(--line); }
.testo pre code { background: none; color: inherit; padding: 0; font-size: inherit; overflow-wrap: normal; }
.testo blockquote { margin: 1.6em 0; padding: 14px 20px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--warm); border-radius: 4px var(--raggio) var(--raggio) 4px; font-size: 16.5px; }
.testo blockquote > :last-child { margin-bottom: 0; }
.testo blockquote > :first-child { margin-top: 0; }
.testo hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.tabella { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--raggio); background: var(--card); -webkit-overflow-scrolling: touch; }
.tabella:focus-visible { outline-offset: 2px; }
.testo table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; min-width: 36rem; }
.testo th, .testo td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.testo tbody tr:last-child td { border-bottom: 0; }
.testo tbody tr:nth-child(even) { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.testo thead th { font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: var(--bg-fascia); white-space: nowrap; }

.compra { display: inline-block; font-size: 14px; font-weight: 500; color: var(--accent-text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent-text) 35%, transparent); text-underline-offset: 3px; margin: 0 0 .8em; }
.compra::after { content: " ↗"; font-size: .9em; }
.compra:hover { text-decoration-color: currentColor; }
.nota-affiliati { font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 40px; }

.altre { background: var(--bg-fascia); border-top: 1px solid var(--line); padding: 48px 0 56px; }
.altre h2 { font-size: 26px; margin: 0 0 22px; letter-spacing: -0.015em; }

/* piede */
.piede { background: var(--bg-fascia); border-top: 1px solid var(--line); padding: 48px 0 0; font-size: 15px; color: var(--muted); }
.piede-griglia { display: grid; gap: 32px; padding-bottom: 36px; }
.piede h2 { font: 600 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg); margin: 0 0 12px; }
.piede .piede-sotto { margin-top: 24px; }
.piede ul { list-style: none; margin: 0; padding: 0; }
.piede li { margin: 8px 0; line-height: 1.4; }
.piede a { color: var(--muted); text-decoration: none; }
.piede a:hover { color: var(--accent-text); text-decoration: underline; }
.piede .marchio { color: var(--fg); }
.piede-chi p { margin: 14px 0 0; max-width: 24rem; line-height: 1.6; }
.piede-fondo { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 13px; }

@media (min-width: 720px) {
  .hero-in { grid-template-columns: 1.05fr .95fr; gap: 48px; padding-top: 64px; padding-bottom: 72px; }
  .evidenza { grid-template-columns: 1.25fr 1fr; }
  .evidenza-img img { height: 100%; aspect-ratio: auto; }
  .evidenza-testo { padding: 32px 32px 32px; justify-content: center; }
  .griglia-guide { grid-template-columns: repeat(2, 1fr); }
  .griglia-categorie, .griglia-metodo { grid-template-columns: repeat(3, 1fr); }
  .griglia-metodo { gap: 32px; }
  .piede-griglia { grid-template-columns: 1.4fr 1.2fr 1fr; gap: 48px; }
}
@media (min-width: 1000px) {
  .griglia-guide { grid-template-columns: repeat(3, 1fr); }
  .guida-corpo { grid-template-columns: 15rem minmax(0, 44rem); justify-content: center; gap: 56px; }
  .indice { position: sticky; top: 24px; }
  .guida-testa { max-width: 72rem; padding-left: calc(16px + 0px); }
  .guida-testa > * { max-width: 52rem; }
}
@media print { .testata, .piede, .indice, .altre { display: none; } }
