/* =========================================================
   Federica Parrinello — Pedagogista
   Foglio di stile unico. Nessuna dipendenza esterna.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg:        #FBF8F4;
  --bg-alt:    #F4EFE7;
  --surface:   #FFFFFF;
  --ink:       #2A2622;
  --ink-soft:  #5C544C;
  --muted:     #857B71;
  --line:      #E6DDD1;
  --accent:    #6F8465;
  --accent-ink:#5A6E51;
  --accent-bg: #EDF1E9;
  --warm:      #C4785A;
  --warm-bg:   #FAEDE6;
  --shadow-sm: 0 1px 2px rgba(42,38,34,.05), 0 2px 8px rgba(42,38,34,.04);
  --shadow-md: 0 2px 4px rgba(42,38,34,.05), 0 12px 32px rgba(42,38,34,.08);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --maxw: 1140px;
  --pad: clamp(1.15rem, 4vw, 2.5rem);
}

:root[data-theme="dark"] {
  --bg:        #16150F;
  --bg-alt:    #1E1C16;
  --surface:   #232019;
  --ink:       #F3EEE5;
  --ink-soft:  #C9C1B4;
  --muted:     #9C9386;
  --line:      #37332A;
  --accent:    #9DB48F;
  --accent-ink:#B4C9A6;
  --accent-bg: #232B1E;
  --warm:      #DB9573;
  --warm-bg:   #2E211A;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 12px 34px rgba(0,0,0,.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #16150F;
    --bg-alt:    #1E1C16;
    --surface:   #232019;
    --ink:       #F3EEE5;
    --ink-soft:  #C9C1B4;
    --muted:     #9C9386;
    --line:      #37332A;
    --accent:    #9DB48F;
    --accent-ink:#B4C9A6;
    --accent-bg: #232B1E;
    --warm:      #DB9573;
    --warm-bg:   #2E211A;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
    --shadow-md: 0 12px 34px rgba(0,0,0,.45);
  }
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .97rem + .16vw, 1.075rem);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--warm); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.012em; margin: 0 0 .55em; }
h1 { font-size: clamp(2.1rem, 1.35rem + 3.3vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.35rem); }
h3 { font-size: 1.16rem; font-family: var(--sans); font-weight: 650; letter-spacing: -.005em; }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2.5px solid var(--warm); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.wrap.narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* segnaposto da sostituire prima del go-live */
mark.todo {
  background: var(--warm-bg);
  color: var(--warm);
  padding: .06em .38em;
  border-radius: 5px;
  border: 1px dashed color-mix(in srgb, var(--warm) 45%, transparent);
  font-size: .93em;
  font-style: italic;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; margin-right: auto; }
.brand-mark {
  width: 38px; height: 38px; flex: none; border-radius: 11px;
  background: var(--accent); color: #FBF8F4;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.15rem; line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.brand-text small { color: var(--muted); font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  padding: .5rem .72rem; border-radius: var(--r-sm);
  color: var(--ink-soft); text-decoration: none; font-size: .93rem; font-weight: 500;
  transition: background .18s ease, color .18s ease;
}
.nav a:hover { background: var(--accent-bg); color: var(--accent-ink); }
.nav a.is-active { color: var(--accent-ink); background: var(--accent-bg); }
.nav .nav-cta {
  margin-left: .35rem; background: var(--accent); color: #FBF8F4;
  padding: .58rem 1.05rem; border-radius: 999px;
}
.nav .nav-cta:hover { background: var(--accent-ink); color: #fff; }

.header-tools { display: flex; align-items: center; gap: .4rem; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface); color: var(--ink-soft); cursor: pointer;
  transition: border-color .18s, color .18s, transform .18s;
}
.icon-btn:hover { color: var(--accent-ink); border-color: var(--accent); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ico-moon { display: none; }
:root[data-theme="dark"] .ico-sun { display: none; }
:root[data-theme="dark"] .ico-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ico-sun  { display: none; }
  :root:not([data-theme="light"]) .ico-moon { display: block; }
}

.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); cursor: pointer; padding: 0; }
.burger span { display: block; width: 17px; height: 1.8px; margin: 3.6px auto; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.4px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto; z-index: 99;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .8rem var(--pad) 1.4rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .24s ease, opacity .24s ease;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: .8rem .6rem; font-size: 1rem; }
  .nav .nav-cta { margin: .5rem 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  font-size: .96rem; font-weight: 600; font-family: inherit;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-primary { background: var(--accent); color: #FBF8F4; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-ink); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-glow {
  position: absolute; z-index: -1; top: -22%; right: -12%;
  width: min(720px, 85vw); aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 26%, transparent) 0%, transparent 68%);
  filter: blur(18px); pointer-events: none;
}

.eyebrow {
  font-size: .8rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: .9rem;
}
.lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); color: var(--ink-soft); max-width: 54ch; }

.hero-role {
  font-family: var(--serif); font-size: clamp(1.15rem, 1rem + .6vw, 1.42rem);
  color: var(--ink-soft); margin: -.25rem 0 1.3rem; line-height: 1.35;
}
.hero-quote {
  margin: 0; padding: 0 0 0 1.15rem; border-left: 3px solid var(--accent);
  font-size: clamp(1.02rem, .98rem + .3vw, 1.14rem); color: var(--ink-soft);
  max-width: 54ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.8rem 0 1.9rem; }

.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem .55rem; }
.hero-badges li {
  font-size: .82rem; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line);
  padding: .38rem .85rem; border-radius: 999px;
}

.hero-media { margin: 0; }
.photo-frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--accent-bg);
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder { display: none; }
.photo-frame.is-empty .photo-placeholder {
  display: grid; place-content: center; justify-items: center; gap: .8rem;
  height: 100%; color: var(--accent); text-align: center; padding: 1rem;
}
.photo-frame.is-empty .photo-placeholder svg { width: 68px; height: 68px; fill: none; stroke: currentColor; stroke-width: 1.1; opacity: .55; }
.photo-frame.is-empty .photo-placeholder span { font-size: .82rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; opacity: .75; }
.hero-media figcaption { margin-top: .8rem; font-size: .85rem; color: var(--muted); text-align: center; }

/* ---------- Band (frasi) ---------- */
.band { background: var(--accent-bg); padding: clamp(2.6rem, 5vw, 4rem) 0; border-block: 1px solid var(--line); }
.section-title { text-align: center; max-width: 22ch; margin-inline: auto; }
.signals { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: .9rem; margin-top: 2rem; }
.signals p {
  margin: 0; padding: 1.15rem 1.3rem; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.03rem; font-style: italic; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.band-note { text-align: center; margin: 1.9rem 0 0; color: var(--accent-ink); font-weight: 550; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.2rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 660px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-sub { color: var(--ink-soft); }

.two-col { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }

.credentials { margin-top: 1.8rem; display: grid; gap: .1rem; }
.credentials li {
  display: grid; grid-template-columns: 148px 1fr; gap: 1rem;
  padding: .78rem 0; border-top: 1px solid var(--line); align-items: baseline;
}
.credentials li:last-child { border-bottom: 1px solid var(--line); }
.credentials span { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 540px) { .credentials li { grid-template-columns: 1fr; gap: .2rem; } }

.callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--r-md); padding: 1.6rem 1.7rem; box-shadow: var(--shadow-sm);
  position: sticky; top: 96px;
}
.callout h3 { color: var(--accent-ink); }
.callout p:last-child { margin-bottom: 0; }
@media (max-width: 880px) { .callout { position: static; } }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.75rem 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card-ico {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 1.1rem;
  background: var(--accent-bg); color: var(--accent-ink); display: grid; place-items: center;
}
.card-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--ink-soft); font-size: .97rem; }

.ticks { display: grid; gap: .42rem; margin-top: 1.1rem; padding-top: 1.05rem; border-top: 1px solid var(--line); }
.ticks li { position: relative; padding-left: 1.5rem; font-size: .91rem; color: var(--ink-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .48em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); opacity: .55;
}

.fineprint { margin: 2rem 0 0; font-size: .92rem; color: var(--muted); }

.cta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem;
  margin-top: 2.2rem;
}
.cta-row .fineprint { margin: 0; flex: 1 1 260px; }

/* ---------- Etichette ---------- */
.tag {
  display: inline-block; align-self: flex-start; width: fit-content;
  margin-bottom: .85rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px;
  background: var(--accent-bg); color: var(--accent-ink);
}
.tag-next { background: var(--warm-bg); color: var(--warm); }
.tag-soon { background: transparent; color: var(--muted); border: 1px dashed var(--line); }

/* ---------- Corso in presenza ---------- */
.course {
  display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(1.5rem, 3vw, 2.6rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm);
}
@media (max-width: 820px) { .course { grid-template-columns: 1fr; } }

.course-title { font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); font-weight: 600; }
.course-sub {
  margin: 1.6rem 0 .7rem; font-size: .8rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.course-main .ticks { border-top: 0; padding-top: 0; margin-top: 0; }

.course-side {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.35rem 1.3rem; align-self: start;
}
.course-facts { margin: 0 0 1.2rem; display: grid; gap: .1rem; }
.course-facts > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: .8rem;
  padding: .55rem 0; border-bottom: 1px solid var(--line);
}
.course-facts > div:last-child { border-bottom: 0; }
.course-facts dt { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.course-facts dd { margin: 0; font-size: .9rem; font-weight: 600; text-align: right; }

/* ---------- Corsi online ---------- */
.courses-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 720px) { .courses-grid { grid-template-columns: repeat(2, 1fr); } }

.course-card { display: flex; flex-direction: column; }
.course-card h3 { font-family: var(--serif); font-size: 1.32rem; font-weight: 600; }
.course-card .ticks { margin-bottom: 1.2rem; }
.course-card .price {
  margin: auto 0 1rem; padding-top: 1rem; border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.5rem; color: var(--accent-ink);
}
.course-card.is-soon { opacity: .82; border-style: dashed; }

.ticks-check li::before {
  content: "✓"; width: auto; height: auto; border-radius: 0; background: none;
  top: 0; color: var(--accent); font-weight: 700; opacity: 1; font-size: .95em;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 1.1rem; counter-reset: s; }
.steps li {
  position: relative; padding: 1.7rem 1.5rem 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.step-n {
  display: inline-block; font-family: var(--serif); font-size: 1.6rem;
  color: var(--accent); opacity: .55; line-height: 1; margin-bottom: .7rem;
}
.steps p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .6rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 3rem 1.05rem 1.35rem;
  font-weight: 600; font-size: 1rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.35rem; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform .22s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--accent-ink); }
.faq details > div { padding: 0 1.35rem 1.2rem; }
.faq details p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* ---------- Contatti ---------- */
.contact-list { display: grid; gap: .9rem; margin: 1.8rem 0; }
.contact-list li { display: flex; align-items: flex-start; gap: .85rem; }
.ci {
  width: 36px; height: 36px; flex: none; border-radius: 10px;
  background: var(--accent-bg); color: var(--accent-ink); display: grid; place-items: center;
}
.ci svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { color: var(--accent-ink); border-color: var(--accent); }

.socials { display: flex; gap: .5rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink-soft); background: var(--surface);
  transition: color .18s, border-color .18s, transform .18s;
}
.socials a:hover { color: var(--accent-ink); border-color: var(--accent); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Form ---------- */
.form { display: grid; gap: 1rem; padding: 1.9rem 1.75rem; }
.field { display: grid; gap: .38rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field label em { font-weight: 400; font-style: normal; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: .78rem .9rem;
  font: inherit; font-size: .96rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .18s ease, background .18s ease;
}
.field textarea { resize: vertical; min-height: 118px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--surface);
}
.field.is-invalid input, .field.is-invalid select,
.field.is-invalid textarea { border-color: var(--warm); }
.err { font-size: .82rem; color: var(--warm); min-height: 0; }
.field.is-invalid .err { min-height: 1.2em; }

.field.check { grid-template-columns: auto 1fr; align-items: start; gap: .1rem .6rem; }
.field.check input { width: 17px; height: 17px; margin-top: .28rem; accent-color: var(--accent); }
.field.check label { font-weight: 400; font-size: .89rem; color: var(--ink-soft); line-height: 1.5; }
.field.check .err { grid-column: 2; }

.form-note { margin: 0; font-size: .82rem; color: var(--muted); text-align: center; }
.form-status { margin: 0; font-size: .92rem; text-align: center; font-weight: 550; }
.form-status.ok { color: var(--accent-ink); }
.form-status.ko { color: var(--warm); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 2.6rem 0 2rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.2rem 2rem; align-items: start; }
.footer-brand { font-family: var(--serif); font-size: 1.08rem; margin: 0 0 .3rem; }
.footer-meta { margin: 0; font-size: .87rem; color: var(--muted); }
.footer-nav { display: flex; gap: 1.2rem; }
.footer-nav a { font-size: .89rem; color: var(--ink-soft); text-decoration: none; }
.footer-nav a:hover { color: var(--accent-ink); }
.footer-credit {
  grid-column: 1 / -1; margin: .6rem 0 0; padding-top: 1.3rem;
  border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted);
}
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Pagina legale ---------- */
.legal h1 { margin-bottom: .4em; }
.legal h2 { font-size: 1.28rem; margin-top: 2.4rem; }
.legal .ticks { margin-top: .6rem; padding-top: 0; border-top: 0; }
.legal .ticks li { font-size: .97rem; margin-bottom: .3rem; }
.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em;
  background: var(--accent-bg); padding: .1em .4em; border-radius: 5px;
}

/* ---------- Reveal on scroll ----------
   Il contenuto è visibile per impostazione predefinita: viene nascosto solo
   se JavaScript è attivo (classe .js sull'elemento <html>). Così, se lo script
   non parte o l'observer non scatta, il sito resta comunque leggibile. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .hero-glow, .socials, .form, .burger, .icon-btn { display: none !important; }
  body { background: #fff; color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}
