/* ==========================================================================
   Copilot Academy — styles.css
   Foglio di stile condiviso da tutte le pagine del sito.
   Palette Microsoft Fluent (Copilot), tipografia Segoe UI, layout responsive.
   ========================================================================== */

:root {
  /* Palette Microsoft Copilot */
  --ms-blue: #0078D4;
  --ms-blue-dark: #106EBE;
  --ms-blue-darker: #005A9E;
  --copilot-purple: #8B5CF6;
  --copilot-pink: #EC4899;
  --copilot-teal: #00B7C3;
  --copilot-gradient: linear-gradient(135deg, #0078D4 0%, #8B5CF6 50%, #EC4899 100%);
  --copilot-gradient-soft: linear-gradient(135deg, rgba(0,120,212,0.08) 0%, rgba(139,92,246,0.08) 50%, rgba(236,72,153,0.08) 100%);

  /* Neutri */
  --neutral-50: #FAFAFA;
  --neutral-100: #F3F2F1;
  --neutral-200: #EDEBE9;
  --neutral-300: #E1DFDD;
  --neutral-400: #C8C6C4;
  --neutral-500: #A19F9D;
  --neutral-600: #605E5C;
  --neutral-700: #3B3A39;
  --neutral-800: #201F1E;
  --neutral-900: #11100F;

  /* Semantici */
  --bg: #FFFFFF;
  --bg-soft: #FAF9F8;
  --bg-card: #FFFFFF;
  --text: #201F1E;
  --text-soft: #605E5C;
  --border: #E1DFDD;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl: 0 24px 48px rgba(0,0,0,0.10), 0 8px 24px rgba(0,0,0,0.08);

  /* Tipografia */
  --font-base: "Segoe UI", "Segoe UI Web (West European)", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Segoe UI", "Segoe UI Web (West European)", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --max-width: 1200px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.6em 0;
  color: var(--neutral-900);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
p { margin: 0 0 1em 0; color: var(--text-soft); }
a {
  color: var(--ms-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--ms-blue-dark); text-decoration: underline; }
img, video, iframe { max-width: 100%; }
ul, ol { margin: 0 0 1em 0; }

/* ==========================================================================
   Container & Layout
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--neutral-900);
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--neutral-900); }
.brand__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--copilot-gradient);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.30);
  color: white;
}
.brand__text strong { display: block; line-height: 1; }
.brand__text small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-soft);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav a {
  color: var(--neutral-700);
  font-size: 0.94rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.nav a:hover {
  background: var(--neutral-100);
  color: var(--neutral-900);
  text-decoration: none;
}
.nav a.active {
  color: var(--ms-blue);
  background: rgba(0, 120, 212, 0.08);
}
.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--neutral-800);
}

/* ==========================================================================
   Hero (homepage)
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 80px);
  overflow: hidden;
  background: var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(139, 92, 246, 0.12), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(0, 120, 212, 0.10), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0, 120, 212, 0.08);
  border: 1px solid rgba(0, 120, 212, 0.20);
  color: var(--ms-blue-darker);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.hero__eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--copilot-gradient);
}
.hero__title {
  font-size: clamp(2.2rem, 4vw + 1rem, 3.6rem);
  margin-bottom: 0.5em;
}
.hero__title .grad,
.grad {
  background: var(--copilot-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero__lead {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 60ch;
  margin-bottom: 28px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin-left: auto;
}
.hero__visual-card {
  position: absolute;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}
.hero__visual-card.main {
  inset: 8% 8% 8% 8%;
  background: var(--copilot-gradient);
  color: white;
  z-index: 2;
}
.hero__visual-card.float-1 {
  width: 200px;
  top: 10%;
  left: -10%;
  z-index: 3;
  border: 1px solid var(--border);
}
.hero__visual-card.float-2 {
  width: 220px;
  bottom: 8%;
  right: -10%;
  z-index: 3;
  border: 1px solid var(--border);
}
.hero__visual-card.main h3 { color: white; font-size: 1.4rem; margin-bottom: 6px; }
.hero__visual-card.main p { color: rgba(255,255,255,0.92); margin: 0; }
.mini-stat { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mini-stat__num {
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--copilot-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mini-stat__lbl { font-size: 0.85rem; color: var(--text-soft); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-decoration: none;
  font-family: var(--font-base);
  line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn--primary {
  background: var(--ms-blue);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 120, 212, 0.28);
}
.btn--primary:hover {
  background: var(--ms-blue-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 120, 212, 0.36);
}
.btn--gradient {
  background: var(--copilot-gradient);
  color: white;
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.32);
}
.btn--gradient:hover {
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.42);
}
.btn--secondary {
  background: var(--bg);
  color: var(--neutral-800);
  border-color: var(--border);
}
.btn--secondary:hover {
  background: var(--neutral-50);
  color: var(--neutral-900);
  border-color: var(--neutral-400);
}
.btn--ghost {
  background: transparent;
  color: var(--ms-blue);
}
.btn--ghost:hover { background: rgba(0,120,212,0.08); color: var(--ms-blue-dark); }
.btn[disabled], .btn.is-loading { opacity: 0.6; pointer-events: none; }

/* ==========================================================================
   Section
   ========================================================================== */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--soft { background: var(--bg-soft); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section__eyebrow {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ms-blue);
  margin-bottom: 12px;
}
.section__lead { font-size: 1.1rem; color: var(--text-soft); }

/* ==========================================================================
   Lesson cards (homepage grid)
   ========================================================================== */
.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.lesson-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}
.lesson-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--copilot-gradient);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lesson-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  text-decoration: none;
}
.lesson-card:hover::before { opacity: 1; }
.lesson-card__step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ms-blue);
  margin-bottom: 16px;
}
.lesson-card__step .num {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--copilot-gradient);
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.30);
}
.lesson-card__title { font-size: 1.25rem; margin-bottom: 12px; color: var(--neutral-900); }
.lesson-card__excerpt { color: var(--text-soft); font-size: 0.95rem; flex: 1; margin-bottom: 20px; }
.lesson-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-soft);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
}
.lesson-card__meta .duration { display: inline-flex; align-items: center; gap: 6px; }
.lesson-card__meta .arrow { color: var(--ms-blue); font-weight: 600; transition: transform 0.2s ease; }
.lesson-card:hover .arrow { transform: translateX(4px); }

/* ==========================================================================
   Lesson page (lezione-*.html — quando linkano styles.css)
   ========================================================================== */
.lesson-hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
}
.breadcrumb { font-size: 0.88rem; color: var(--text-soft); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--ms-blue); }
.breadcrumb .sep { margin: 0 8px; color: var(--neutral-400); }
.breadcrumb .current { color: var(--neutral-800); font-weight: 500; }
.lesson-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--neutral-800);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.lesson-step-pill .num {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--copilot-gradient);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
}
.lesson-title { font-size: clamp(1.8rem, 3vw + 1rem, 2.8rem); margin-bottom: 16px; }
.lesson-subtitle { font-size: 1.1rem; color: var(--text-soft); max-width: 70ch; margin: 0; }

.video-wrap {
  margin: 32px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
  position: relative;
  aspect-ratio: 16 / 9;
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.lesson-content { display: grid; grid-template-columns: 1fr 280px; gap: 48px; margin: 48px 0; }
.lesson-content__main h2 { margin-top: 32px; font-size: 1.5rem; }
.lesson-content__main h2:first-child { margin-top: 0; }
.lesson-content__main p,
.lesson-content__main li { font-size: 1rem; color: var(--neutral-800); line-height: 1.7; }
.lesson-content__main ul,
.lesson-content__main ol { padding-left: 22px; }
.lesson-content__main li { margin-bottom: 8px; }
.lesson-content__aside { position: sticky; top: 88px; align-self: start; }

.aside-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}
.aside-card h4 {
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ms-blue);
  margin: 0 0 12px;
}
.aside-card ul { padding-left: 16px; margin: 0; }
.aside-card li { font-size: 0.92rem; color: var(--neutral-800); margin-bottom: 6px; }

/* Prompt cards (lezioni) */
.prompt-list { display: grid; gap: 14px; margin: 20px 0 8px; padding: 0; list-style: none; }
.prompt-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--ms-blue);
  border-radius: var(--radius-md);
  padding: 18px 20px 18px 22px;
  font-size: 0.98rem;
  color: var(--neutral-800);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}
.prompt-card:hover { box-shadow: var(--shadow-md); }
.prompt-card__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ms-blue);
  margin-bottom: 8px;
}
.prompt-card__copy {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--neutral-50);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--text-soft);
  font-family: var(--font-base);
  transition: background 0.15s ease, color 0.15s ease;
}
.prompt-card__copy:hover { background: var(--ms-blue); color: white; border-color: var(--ms-blue); }
.prompt-card__copy.copied { background: #107C10; color: white; border-color: #107C10; }
.prompt-card__text { margin: 0; white-space: pre-wrap; font-style: italic; line-height: 1.6; color: var(--neutral-800); }

/* Tip grid */
.tip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 24px 0; }
.tip { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; font-size: 0.92rem; }
.tip__icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--copilot-gradient-soft);
  margin-bottom: 10px;
  font-size: 18px;
}
.tip strong { display: block; margin-bottom: 4px; color: var(--neutral-900); }

.lesson-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0 16px; padding-top: 32px; border-top: 1px solid var(--border); }
.lesson-nav__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  background: var(--bg-card);
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.lesson-nav__link:hover { border-color: var(--ms-blue); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.lesson-nav__link--next { justify-content: flex-end; text-align: right; }
.lesson-nav__link--disabled { opacity: 0.4; pointer-events: none; }
.lesson-nav__dir { font-size: 0.78rem; color: var(--text-soft); letter-spacing: 0.06em; text-transform: uppercase; }
.lesson-nav__title { font-weight: 600; color: var(--neutral-900); margin-top: 2px; }

/* ==========================================================================
   Gate (percorso-avanzato.html)
   ========================================================================== */
.gate-section {
  padding: clamp(40px, 5vw, 64px) 0;
}
.gate-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.gate-wrap h2 { margin-top: 0; }
.gate-form { display: grid; gap: 14px; margin-top: 18px; }
.gate-form__row { display: grid; gap: 6px; }
.gate-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gate-form label { font-size: 0.88rem; font-weight: 600; color: var(--neutral-800); }
.gate-form input[type="text"],
.gate-form input[type="email"],
.gate-form input[type="tel"],
.gate-form select,
.gate-form textarea {
  font: inherit;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--neutral-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.gate-form input:focus,
.gate-form select:focus,
.gate-form textarea:focus {
  outline: none;
  border-color: var(--ms-blue);
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.18);
}
.gate-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-soft);
}
.gate-form__consent input { margin-top: 3px; }
.gate-form__feedback { font-size: 0.9rem; color: var(--text-soft); min-height: 0; }
.gate-form__feedback.is-error { color: #B4262C; }
.gate-form__feedback.is-success { color: #107C10; }

.tappe-locked { opacity: 0.45; pointer-events: none; filter: blur(2px); }
.tappe-unlocked .gate-wrap { display: none; }

/* ==========================================================================
   Tappa cards (su percorso-avanzato.html)
   ========================================================================== */
.tappe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin: 32px 0;
}
.tappa-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.tappa-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--copilot-gradient);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.tappa-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; text-decoration: none; }
.tappa-card:hover::before { opacity: 1; }
.tappa-card__num {
  /*width: 40px;*/ height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--copilot-gradient);
  color: #fff!important;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.tappa-card__title { font-size: 1.15rem; margin-bottom: 8px; color: var(--neutral-900); }
.tappa-card__excerpt { font-size: 0.94rem; color: var(--text-soft); flex: 1; margin-bottom: 16px; }
.tappa-card__meta { font-size: 0.84rem; color: var(--text-soft); display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   Resources
   ========================================================================== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.resource {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.resource:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.resource__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--copilot-gradient-soft);
  margin-bottom: 14px;
  font-size: 22px;
}
.resource h4 { margin: 0 0 8px; }
.resource p { font-size: 0.92rem; margin: 0 0 12px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--neutral-900);
  padding: 4px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--ms-blue);
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq[open] summary::after { content: "−"; }
.faq__body { padding-top: 12px; color: var(--text-soft); font-size: 0.96rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--neutral-900);
  color: var(--neutral-300);
  padding: 56px 0 28px;
  margin-top: 80px;
}
.site-footer a { color: var(--neutral-300); text-decoration: none; }
.site-footer a:hover { color: white; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h5 {
  color: white;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.92rem; }
.site-footer .brand { color: white; }
.site-footer .brand__text strong { color: white; }
.site-footer .brand__text small { color: var(--neutral-400); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--neutral-400);
}

/* ==========================================================================
   Animazioni
   ========================================================================== */
.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up.delay-1 { animation-delay: 0.10s; }
.fade-up.delay-2 { animation-delay: 0.20s; }
.fade-up.delay-3 { animation-delay: 0.30s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 360px; margin: 0 auto; }
  .lesson-content { grid-template-columns: 1fr; gap: 24px; }
  .lesson-content__aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gate-form__grid { grid-template-columns: 1fr; }
}
@media (max-width: 890px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav__toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .lesson-nav { grid-template-columns: 1fr; }
  .lesson-nav__link--next { justify-content: flex-start; text-align: left; }
}
@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 18px; }
  .hero__visual-card.float-1, .hero__visual-card.float-2 { display: none; }
  .gate-wrap { padding: 22px; }
}

@media print {
  .site-header, .site-footer, .lesson-nav, .video-wrap, .gate-section, .qa-section { display: none !important; }
  body { background: white; }
}
