/* ==========================================================
   Dott. Nicolò Gamberini — Biologo Nutrizionista
   Stylesheet condiviso: landing, blog, articolo
   ========================================================== */

/* Font serviti dal sito (nessuna richiesta a Google Fonts). Lora e Inter: SIL Open Font License.
   File variabili, sottoinsieme latino scaricato da Google Fonts (Inter 2026-10-02, Lora 2026-10-03).
   Lora ha sostituito Fraunces il 2026-10-03: la "f" di Fraunces, con l'uncino marcato, non piaceva. */
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/2026-10-03-Lora.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("/fonts/2026-10-03-Lora-Italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/2026-10-02-Inter.woff2") format("woff2"); }

:root {
  --ink: #12302b;
  --ink-soft: #3d5a54;
  --muted: #6b8079;
  --bg: #f7f4ee;
  --surface: #ffffff;
  --line: #e4ded2;
  --brand: #1f5c4f;
  --brand-dark: #12302b;
  --brand-tint: #e3eee9;
  --accent: #e07a3f;
  --accent-tint: #fbe9dd;
  --star: #f2b01e;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(18, 48, 43, .06), 0 8px 28px rgba(18, 48, 43, .08);
  --shadow-lg: 0 24px 60px rgba(18, 48, 43, .16);
  --max: 1180px;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; }
.section--tint { background: var(--surface); }
.section--dark { background: var(--brand-dark); color: #e9f1ee; }
.section__head { max-width: 680px; margin-bottom: 52px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section__head p { color: var(--ink-soft); font-size: 1.08rem; }
.section--dark .section__head p { color: #b8cdc6; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px;
  font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 600 .98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(224, 122, 63, .32); }
.btn--primary:hover { background: #c9662d; transform: translateY(-2px); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--brand-dark); }
.btn--light:hover { transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; background: rgba(247, 244, 238, .88);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(18, 48, 43, .05); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.nav__logo img { height: 38px; width: auto; filter: brightness(0) saturate(100%) invert(15%) sepia(19%) saturate(1200%) hue-rotate(118deg); }
.nav__logo span { font: 600 1.02rem/1.15 var(--serif); }
.nav__logo small { display: block; font: 500 .72rem/1.2 var(--sans); color: var(--muted); letter-spacing: .04em; }
.nav__menu { display: flex; align-items: center; gap: 30px; }
.nav__menu a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; white-space: nowrap; }
.nav__menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav__menu a:not(.btn):hover, .nav__menu a[aria-current="page"] { color: var(--ink); }
.nav__menu a:not(.btn):hover::after, .nav__menu a[aria-current="page"]::after { transform: scaleX(1); }
.nav__menu .btn { padding: 11px 20px; color: #fff; }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .3s, top .3s; }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav.is-open .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -12%; top: -20%; width: 62vw; height: 62vw; max-width: 820px; max-height: 820px;
  background: radial-gradient(circle at 40% 40%, var(--brand-tint), transparent 68%); z-index: -1;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 600; }
.hero h1 em { font-style: italic; color: var(--brand); font-weight: 500; }
.hero__lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 560px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 28px; padding: 0; margin: 0; list-style: none; }
.hero__trust li { display: flex; flex-direction: column; gap: 2px; font-size: .88rem; color: var(--muted); }
.hero__trust strong { font: 600 1.6rem/1.1 var(--serif); color: var(--ink); }
.stars { color: var(--star); letter-spacing: 2px; }
.hero__media { position: relative; }
.hero__photo {
  border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4/5;
  background: #ece8e1; box-shadow: var(--shadow-lg);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero__badge {
  position: absolute; left: -28px; bottom: 44px; background: var(--surface); border-radius: 16px;
  padding: 16px 20px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; max-width: 260px;
}
.hero__badge-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; flex: none; }
.hero__badge-icon svg { width: 24px; height: 24px; }
.hero__badge b { display: block; font-size: .95rem; line-height: 1.25; }
.hero__badge span { font-size: .8rem; color: var(--muted); line-height: 1.3; display: block; }

/* ---------- Per chi ---------- */
.targets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.target {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.target:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; background: var(--surface); }
.target__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; background: var(--brand-tint); color: var(--brand); }
.target__icon svg { width: 28px; height: 28px; }
.target h3 { font-size: 1.4rem; }
.target p { color: var(--ink-soft); margin: 0; }

/* ---------- Chi sono ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.about__photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 1/1; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__text h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.about__text > p { color: var(--ink-soft); font-size: 1.06rem; }
.pillars { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 36px; padding: 0; list-style: none; }
.pillars li { background: var(--accent-tint); color: #9a4a1c; font-weight: 600; font-size: .9rem; padding: 8px 16px; border-radius: 999px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -8px; top: 5px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--brand);
}
.timeline time { font: 600 .8rem/1 var(--sans); letter-spacing: .08em; color: var(--accent); text-transform: uppercase; }
.timeline b { display: block; font-size: 1.02rem; margin-top: 4px; }
.timeline span { color: var(--muted); font-size: .93rem; }

/* ---------- Servizi ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.service__img { aspect-ratio: 4/3; overflow: hidden; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service:hover .service__img img { transform: scale(1.05); }
.service__body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.service__num { font: 500 .85rem/1 var(--serif); color: var(--accent); margin-bottom: 10px; }
.service h3 { font-size: 1.45rem; }
.service p { color: var(--ink-soft); }
.service ul { margin: auto 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.service li { display: flex; gap: 10px; font-size: .93rem; color: var(--ink-soft); }
.service li::before { content: "✓"; color: var(--brand); font-weight: 700; }

/* ---------- Percorso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font: 500 2.4rem/1 var(--serif); color: var(--accent); margin-bottom: 18px;
}
.step h3 { font-size: 1.2rem; color: #fff; }
.step p { color: #b8cdc6; font-size: .95rem; margin: 0; }

/* ---------- Mission ---------- */
.mission { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: start; max-width: 980px; margin: 0 auto; }
.mission__mark { font: 600 9rem/0.7 var(--serif); color: var(--accent); }
.mission blockquote { margin: 0; font: 400 clamp(1.4rem, 2.6vw, 2rem)/1.4 var(--serif); color: var(--ink); }
.mission blockquote strong { font-weight: 600; color: var(--brand); }
.mission figcaption { margin-top: 26px; color: var(--muted); font-size: .95rem; }

/* ---------- Recensioni ---------- */
.reviews__top { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.reviews__top .section__head { margin: 0; }
.rating { display: flex; gap: 16px; align-items: center; background: var(--surface); padding: 16px 22px; border-radius: 14px; box-shadow: var(--shadow); }
.rating strong { font: 600 2.2rem/1 var(--serif); }
.rating span { font-size: .85rem; color: var(--muted); display: block; }
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .reviews { grid-template-columns: 1fr; } }
.review { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.review p { margin: 0; color: var(--ink-soft); flex: 1; }
.reviews.is-collapsed .review:nth-child(n+7) { display: none; }
.reviews__more { text-align: center; margin-top: 28px; }
.review p.is-clamped { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review__more { align-self: start; background: none; border: 0; padding: 0; color: var(--brand); font: 600 .9rem var(--sans); cursor: pointer; }
.review footer { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); font-weight: 700; flex: none; }
.review footer b { display: block; font-size: .95rem; }
.review footer span { font-size: .8rem; color: var(--muted); }

/* ---------- Blog cards ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s;
}
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post__img { aspect-ratio: 16/10; overflow: hidden; background: var(--brand-tint); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post:hover .post__img img { transform: scale(1.05); }
.post__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.chip {
  display: inline-block; padding: 5px 11px; border-radius: 999px; font: 600 .72rem/1.2 var(--sans);
  letter-spacing: .04em; text-transform: uppercase; background: var(--brand-tint); color: var(--brand);
}
.chip[data-cat="sport"] { background: #fde8dc; color: #a2471a; }
.chip[data-cat="integratori"] { background: #e6ecfa; color: #2f4f9a; }
.chip[data-cat="patologie"] { background: #f6e3e8; color: #93324b; }
.chip[data-cat="composizione"] { background: #f4eed7; color: #7a5d0c; }
.post h3 { font-size: 1.28rem; margin: 0; }
.post p { color: var(--ink-soft); font-size: .94rem; margin: 0; }
.post__more { margin-top: auto; padding-top: 6px; color: var(--brand); font-weight: 600; font-size: .92rem; }
.post--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.post--featured .post__img { aspect-ratio: auto; min-height: 340px; }
.post--featured .post__body { padding: 44px; justify-content: center; }
.post--featured h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.post--featured p { font-size: 1.02rem; }
.blog-cta { display: flex; justify-content: center; margin-top: 48px; }
.cat-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: -24px 0 44px; }
.cat-strip a { text-decoration: none; }

/* ---------- Contatti ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface); }
.contact__info { background: var(--brand-dark); color: #e9f1ee; padding: 56px 52px; }
.contact__info h2 { font-size: clamp(2rem, 3.6vw, 2.6rem); color: #fff; }
.contact__info > p { color: #b8cdc6; }
.contact__list { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 16px; align-items: center; }
.contact__list .ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; flex: none; }
.contact__list svg { width: 21px; height: 21px; }
.contact__list small { display: block; color: #8fa9a1; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.contact__list a { color: #fff; text-decoration: none; font-weight: 500; }
.contact__list a:hover { text-decoration: underline; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); color: #fff; transition: background .2s; }
.socials a:hover { background: var(--accent); border-color: var(--accent); }
.socials svg { width: 18px; height: 18px; }
.contact__form { padding: 56px 52px; }
.contact__form h3 { font-size: 1.6rem; }
.contact__form > p { color: var(--muted); font-size: .95rem; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .88rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 13px 15px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; }
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 6px 0 22px; }
.check input { margin-top: 4px; accent-color: var(--brand); }
.form-note { font-size: .8rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.map { margin-top: 28px; border-radius: var(--radius); overflow: hidden; height: 300px; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__consent { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 24px; text-align: center; background: var(--brand-tint); color: var(--ink-soft); font-size: .92rem; }
.map__consent p { margin: 0; max-width: 480px; }
.map__consent strong { color: var(--ink); }
.map__consent .btn { margin-top: 14px; }

/* Pagine legali */
.legal { padding-bottom: 72px; }
.legal .prose { max-width: 760px; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 1.25em; font-size: .92rem; line-height: 1.5; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--ink); font-weight: 600; }
.legal .table-wrap { overflow-x: auto; }
.legal .updated { color: var(--muted); font-size: .9rem; }

/* ---------- Footer ---------- */
.footer { background: #0c221e; color: #9db5ae; padding: 64px 0 28px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer__logo { height: 44px; width: auto; margin-bottom: 18px; }
.footer h4 { font: 600 .8rem/1 var(--sans); color: #fff; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { color: #cfe0da; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .82rem; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37, 211, 102, .4);
  transition: transform .2s; text-decoration: none;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Blog archive ---------- */
.page-hero { padding: 64px 0 40px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); max-width: 820px; }
.page-hero p { color: var(--ink-soft); font-size: 1.12rem; max-width: 640px; }
.toolbar {
  position: sticky; top: 76px; z-index: 30; background: rgba(247, 244, 238, .94); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); padding: 16px 0; border-bottom: 1px solid var(--line); margin-bottom: 40px;
}
.toolbar__inner { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-soft); border-radius: 999px;
  padding: 9px 16px; font: 600 .86rem/1 var(--sans); cursor: pointer; transition: all .2s;
}
.filter:hover { border-color: var(--brand); color: var(--brand); }
.filter[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.filter sup { font-size: .7rem; opacity: .7; margin-left: 3px; }
.search { position: relative; min-width: 260px; }
.search input { width: 100%; padding: 11px 16px 11px 42px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; font-size: .95rem; color: var(--ink); }
.search input:focus { outline: none; border-color: var(--brand); }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.results-info { color: var(--muted); font-size: .9rem; margin: -16px 0 24px; }
.empty { text-align: center; padding: 64px 20px; color: var(--muted); grid-column: 1 / -1; }
.load-more { display: flex; justify-content: center; margin: 48px 0 0; }

/* ---------- Articolo ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 60; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.article-head { padding: 48px 0 32px; max-width: 860px; }
.article-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.article-meta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.article-meta .avatar { width: 38px; height: 38px; overflow: hidden; }
.article-meta .avatar img { width: 100%; height: 100%; object-fit: cover; }
.article-cover { border-radius: 22px; overflow: hidden; aspect-ratio: 21/9; margin-bottom: 56px; box-shadow: var(--shadow); background: var(--brand-tint); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 64px; justify-content: center; }
.toc { position: sticky; top: 104px; align-self: start; font-size: .88rem; }
.toc h4 { font: 600 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { border-color: var(--accent); color: var(--ink); font-weight: 600; }
.prose { font-size: 1.1rem; line-height: 1.78; color: #233f3a; }
.prose h2 { font-size: 1.85rem; margin: 2em 0 .6em; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.35rem; margin: 1.6em 0 .5em; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.25em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); }
.prose figure { margin: 2em 0; }
.prose img { border-radius: 14px; margin: 0 auto; }
.prose figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 10px; }
.prose .biblio { margin-top: 3em; padding: 26px 28px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: .86rem; line-height: 1.6; color: var(--ink-soft); overflow-wrap: anywhere; }
.prose .biblio h2, .prose .biblio h3 { font-size: 1.15rem; margin: 0 0 .8em; }
.prose .biblio p, .prose .biblio li { margin-bottom: .6em; }
.disclaimer { margin: 40px 0; padding: 20px 24px; border-radius: 14px; background: var(--accent-tint); color: #7d3d17; font-size: .92rem; display: flex; gap: 14px; }
.disclaimer svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 32px 0; }
.tags span { font-size: .82rem; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); }
.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.share a, .share button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: all .2s; }
.share a:hover, .share button:hover { border-color: var(--brand); color: var(--brand); }
.share svg { width: 17px; height: 17px; }
.author { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: center; margin: 44px 0; padding: 30px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.author img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.author h4 { font-size: 1.25rem; margin-bottom: 4px; }
.author p { font-size: .94rem; color: var(--ink-soft); margin: 0 0 12px; }
.author a { font-weight: 600; font-size: .92rem; }
.cta-band { background: var(--brand-dark); color: #e9f1ee; border-radius: 26px; padding: 56px; display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 8px; }
.cta-band p { color: #b8cdc6; margin: 0; max-width: 560px; }
.source-note { font-size: .82rem; color: var(--muted); margin-top: 8px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0, 720px); }
  .toc { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: 12px 24px 28px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s;
  }
  .nav.is-open .nav__menu { transform: none; opacity: 1; visibility: visible; }
  .nav__menu a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__menu a:not(.btn)::after { display: none; }
  .nav__menu .btn { margin-top: 18px; padding: 15px; border: 0; }
}
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .hero__grid, .about, .contact { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .hero__media { max-width: 420px; margin: 0 auto; width: 100%; }
  .hero__badge { left: 0; }
  .about { gap: 40px; }
  .about__photo { max-width: 520px; }
  .targets, .services, .posts { grid-template-columns: 1fr 1fr; }
  .post--featured { grid-template-columns: 1fr; }
  .post--featured .post__img { min-height: 0; aspect-ratio: 16/9; }
  .post--featured .post__body { padding: 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .mission { grid-template-columns: 1fr; gap: 8px; }
  .mission__mark { font-size: 6rem; }
  .toolbar { top: 76px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .targets, .services, .posts, .steps, .field-row { grid-template-columns: 1fr; }
  .hero__trust { gap: 20px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .contact__info, .contact__form { padding: 36px 24px; }
  .cta-band { padding: 36px 24px; }
  .author { grid-template-columns: 1fr; text-align: center; }
  .author img { margin: 0 auto; }
  .footer__grid { grid-template-columns: 1fr; }
  .search { min-width: 0; width: 100%; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .filter { flex: none; }
  .nav__logo small { display: none; }
  .wa-float { right: 16px; bottom: 16px; }
}
