/* =========================================================
   Corso Pizzaiolo Caserta — foglio di stile
   Nessuna dipendenza esterna: solo CSS puro.
   ========================================================= */

/* ---------- Variabili ---------- */
:root {
  --bg: #fbf7f0;
  --bg-tint: #f4ede1;
  --surface: #ffffff;
  --ink: #1d1a17;
  --ink-soft: #5b534a;
  --line: #e7dfd2;
  --brand: #c23b22;
  --brand-dark: #9a2c17;
  --brand-soft: #f6e2dc;
  --basil: #3f6b45;
  --gold: #e8a33d;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -22px rgba(29, 26, 23, .35);
  --shadow-soft: 0 8px 24px -18px rgba(29, 26, 23, .4);

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

  --container: 1140px;
  --header-h: 72px;
  --section-y: clamp(4.5rem, 8vw, 7.5rem);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); letter-spacing: -.028em; line-height: 1.04; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.22rem; }

p { margin: 0 0 1em; }

a { color: inherit; }

ul, ol { margin: 0; padding: 0; }

::selection { background: var(--brand); color: #fff; }

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

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ---------- Testo di servizio ---------- */
.kicker {
  display: inline-block;
  margin: 0 0 .9rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 34em;
}

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  border: 2px solid var(--brand);
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 650;
  font-size: .98rem;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease,
              color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -14px rgba(154, 44, 23, .8);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: var(--surface);
  color: var(--brand-dark);
  border-color: var(--brand);
  box-shadow: var(--shadow-soft);
}

.btn--small {
  padding: .55rem 1.15rem;
  font-size: .9rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 240, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(251, 247, 240, .94);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--brand);
  margin-right: auto;
}
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  color: var(--ink);
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: -.01em;
}
.brand-text span {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
}

.nav ul {
  display: flex;
  gap: .35rem;
  list-style: none;
}
.nav a {
  display: block;
  padding: .5rem .78rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 550;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease;
}
.nav a:hover { color: var(--ink); background: rgba(194, 59, 34, .08); }
.nav a[aria-current="true"] {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(29, 26, 23, .09) 1px, transparent 0);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 70% 10%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 70% 10%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: -18rem;
  right: -14rem;
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 163, 61, .22), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2rem, 4vw, 3.75rem);
  align-items: center;
}

.hero-copy h1 em {
  font-style: italic;
  color: var(--brand);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.9rem;
}

/* foto hero con didascalia */
.hero-figure {
  margin: 0;
  position: relative;
}
.hero-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-figure figcaption {
  margin-top: .8rem;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34em;
}

/* ---------- Fascia dati ---------- */
.strip {
  position: relative;
  z-index: 1;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: clamp(2.75rem, 5vw, 4rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
}
.strip li {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.strip strong {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.15;
  color: var(--brand-dark);
}
.strip span {
  font-size: .84rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* ---------- Sezioni ---------- */
.section {
  padding: var(--section-y) 0;
  scroll-margin-top: calc(var(--header-h) + 8px);
}
.section--tinted { background: var(--bg-tint); }

.section-head {
  max-width: 46rem;
  margin: 0 auto clamp(2.5rem, 5vw, 3.75rem);
  text-align: center;
}
.section-head--left {
  margin-inline: 0;
  text-align: left;
}
.section-intro {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  margin: 0;
}

/* ---------- Introduzione editoriale ---------- */
.editorial {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}
.editorial h2 { margin-bottom: 0; }
.editorial-body {
  padding-top: .35rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.3vw, 1.08rem);
}
.editorial-body p:last-child { margin-bottom: 0; }

/* ---------- Carte "Il corso" ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2vw, 1.6rem);
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #d8cbb6;
}
.card h3 { margin-bottom: .55rem; }
.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .98rem;
}

.audience {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line);
}
.audience h3 { margin-bottom: 1rem; }
.audience-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem 2rem;
  list-style: none;
}
.audience-list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--ink-soft);
}
.audience-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: .62rem;
  height: .62rem;
  border-radius: 50%;
  background: var(--brand);
}

/* foto a fondo pagina dentro una sezione */
.section-figure {
  margin: clamp(2.5rem, 5vw, 3.75rem) 0 0;
}
.section-figure img {
  width: 100%;
  height: clamp(15rem, 30vw, 23rem);
  object-fit: cover;
  object-position: center 58%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section-figure figcaption {
  margin-top: .85rem;
  text-align: center;
  font-size: .92rem;
  color: var(--ink-soft);
}

/* ---------- Foto di intervallo (full width) ---------- */
.break {
  margin: 0;
  background: var(--bg-tint);
}
.break img {
  width: 100%;
  height: clamp(16rem, 34vw, 27rem);
  object-fit: cover;
  object-position: center 55%;
}
.break figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem 1.1rem;
  padding-top: clamp(1.1rem, 2vw, 1.5rem);
  padding-bottom: clamp(1.1rem, 2vw, 1.5rem);
  font-size: .97rem;
  color: var(--ink-soft);
  max-width: 52rem;
}
.break figcaption span {
  flex: none;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
}

/* ---------- Accordion (programma / faq) ---------- */
.accordion {
  max-width: 52rem;
  margin-inline: auto;
  display: grid;
  gap: .8rem;
}
.faq-grid .accordion { max-width: none; margin-inline: 0; }

.acc-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.acc-item[open] {
  border-color: #d8cbb6;
  box-shadow: var(--shadow-soft);
}
.acc-item summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  transition: background-color .18s ease;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover { background: rgba(194, 59, 34, .05); }

.acc-index {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  white-space: nowrap;
}
.acc-title { font-size: 1.03rem; }

/* FAQ: nessun indice */
.accordion--faq .acc-item summary { grid-template-columns: minmax(0, 1fr) auto; }

.acc-icon {
  position: relative;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-soft);
}
.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--brand-dark);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.acc-icon::before { width: 12px; height: 2px; }
.acc-icon::after { width: 2px; height: 12px; }
.acc-item[open] .acc-icon::after { transform: rotate(90deg); opacity: 0; }

.acc-body {
  padding: 0 1.25rem 1.3rem;
}
.accordion--faq .acc-body { padding-left: 1.25rem; }
.acc-item[open] .acc-body { animation: acc-in .3s ease both; }
.acc-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .99rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
@keyframes acc-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Passi ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 3.4rem;
}
.step::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: 3.1rem;
  right: calc(-1 * clamp(1.25rem, 2.5vw, 2rem));
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
}
.step:last-child::before { display: none; }
.step-number {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 0 0 6px var(--bg);
}
.step h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.step p {
  margin: 0;
  font-size: .95rem;
  color: var(--ink-soft);
}

/* ---------- Chi insegna ---------- */
.teacher-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.teacher-figure { margin: 0; }
.teacher-figure img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.teacher-figure figcaption {
  margin-top: .8rem;
  font-size: .88rem;
  color: var(--ink-soft);
}
.teacher-copy > p:not(.kicker) {
  color: var(--ink-soft);
  max-width: 36em;
}
.role {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  padding-top: clamp(1.1rem, 2vw, 1.4rem);
  border-top: 1px solid var(--line);
}
.role h3 {
  font-size: 1.1rem;
  margin-bottom: .4rem;
}
.role p {
  margin: 0;
  font-size: .97rem;
  color: var(--ink-soft);
  max-width: 38em;
}

/* ---------- Strumenti ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.check-list {
  list-style: none;
  display: grid;
  gap: .15rem;
  margin-top: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 1.9rem);
  box-shadow: var(--shadow-soft);
}
.check-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: .9rem;
  align-items: start;
  padding: .75rem 0;
  border-top: 1px solid var(--line);
  font-size: .99rem;
}
.check-list li:first-child { border-top: 0; padding-top: 0; }
.check-list li:last-child { padding-bottom: 0; }
.check-list svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--basil);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: .18rem;
}
.tools-figure { margin: 0; }
.tools-figure img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tools-figure figcaption {
  margin-top: .8rem;
  font-size: .88rem;
  color: var(--ink-soft);
}

/* ---------- FAQ layout ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.faq-grid .section-head { margin-bottom: 0; }

/* intestazioni laterali che restano a vista durante lo scorrimento */
@media (min-width: 961px) {
  .faq-grid .section-head {
    position: sticky;
    top: calc(var(--header-h) + 1.75rem);
  }
}

/* ---------- Iscrizioni ---------- */
.enroll-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.enroll-copy > p:not(.kicker) {
  color: var(--ink-soft);
  max-width: 38em;
}
.plain-list {
  list-style: none;
  display: grid;
  gap: .7rem;
  margin: 1.6rem 0 0;
}
.plain-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: .99rem;
  color: var(--ink);
}
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .95rem;
  height: 2.5px;
  border-radius: 2px;
  background: var(--brand);
}

.enroll-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  box-shadow: var(--shadow);
}
.card-label {
  margin: 0 0 1.1rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
}
.spec-list {
  margin: 0;
  display: grid;
  gap: 0;
}
.spec-list > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: .75rem;
  padding: .8rem 0;
  border-top: 1px solid var(--line);
}
.spec-list > div:first-child { border-top: 0; padding-top: 0; }
.spec-list > div:last-child { padding-bottom: 0; }
.spec-list dt {
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.spec-list dd {
  margin: 0;
  font-size: .97rem;
}

/* ---------- Pagine legali ---------- */
.page-head {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 1px 1px, rgba(29, 26, 23, .08) 1px, transparent 0) 0 0 / 26px 26px,
    var(--bg);
}
.page-head h1 { font-size: clamp(2.1rem, 4.5vw, 3.25rem); }
.page-head .lead { margin-bottom: 0; }

.prose {
  max-width: 47rem;
}
.prose h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  margin-top: clamp(2.25rem, 4vw, 3rem);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.1rem;
  margin-top: 1.75rem;
}
.prose p,
.prose li {
  color: var(--ink-soft);
  font-size: 1.01rem;
}
.prose ul,
.prose ol {
  padding-left: 1.3rem;
  margin: 0 0 1em;
  display: grid;
  gap: .5rem;
}
.prose li::marker { color: var(--brand); }
.prose a { color: var(--brand-dark); }
.prose strong { color: var(--ink); }
.prose .note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: .96rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cfc6ba;
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-brand .brand { color: var(--gold); margin-right: 0; }
.footer-brand .brand-text strong { color: #f3ece2; }
.footer-brand .brand-text span { color: var(--gold); }
.footer-brand p {
  margin-top: 1.1rem;
  font-size: .94rem;
  color: rgba(207, 198, 186, .8);
  max-width: 32em;
}
.footer-nav h2 {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #f3ece2;
  margin-bottom: 1rem;
}
.footer-nav ul { list-style: none; display: grid; gap: .6rem; }
.footer-nav a {
  font-size: .95rem;
  color: rgba(207, 198, 186, .85);
  text-decoration: none;
  transition: color .18s ease;
}
.footer-nav a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding: 1.35rem 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem;
  color: rgba(207, 198, 186, .7);
}
.footer-bottom p { margin: 0; }
.footer-credits {
  flex-basis: 100%;
  font-size: .78rem;
  color: rgba(207, 198, 186, .55);
}
.footer-credits a {
  color: rgba(207, 198, 186, .75);
  text-underline-offset: 2px;
}
.footer-credits a:hover { color: var(--gold); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.1rem;
  align-items: center;
}
.footer-legal a {
  color: rgba(207, 198, 186, .85);
  text-decoration: none;
}
.footer-legal a:hover { color: var(--gold); text-decoration: underline; }
.footer-legal span { letter-spacing: .04em; }

/* ---------- Animazioni d'ingresso ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.22, .61, .36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem 2rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
  .step:nth-child(2)::before { display: none; }
}

@media (max-width: 960px) {
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: .75rem 1.25rem 1.25rem;
    display: none;
  }
  .nav ul {
    flex-direction: column;
    gap: .25rem;
  }
  .nav a {
    padding: .8rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }
  .site-header.nav-open .nav { display: block; }
  .site-header.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { max-width: 36rem; }

  .editorial { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .cards-grid { grid-template-columns: minmax(0, 1fr); }
  .teacher-grid,
  .tools-grid,
  .faq-grid,
  .enroll-grid { grid-template-columns: minmax(0, 1fr); }
  .teacher-figure,
  .tools-figure { max-width: 26rem; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { width: min(100% - 1.75rem, var(--container)); }

  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .step { padding-top: 0; padding-left: 3.9rem; min-height: 2.75rem; }
  .step::before { display: none; }
  .step-number { top: 0; left: 0; }
  .step h3 { margin-top: .35rem; }

  .audience-list { grid-template-columns: minmax(0, 1fr); }

  .acc-item summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .65rem;
    padding: .95rem 1rem;
  }
  .acc-index { grid-column: 1 / -1; margin-bottom: -.35rem; }
  .acc-body { padding: 0 1rem 1.1rem; }

  .spec-list > div { grid-template-columns: minmax(0, 1fr); gap: .15rem; }

  .break figcaption { padding-inline: 0; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
