/* ==========================================================
   LANDING KIT — Studio Avanzato
   Foglio di stile unico e organizzato
   Palette semantica:
   - blu   = struttura e fiducia (titoli, nav, card)
   - verde = azione e soluzione (CTA, kicker, spunte)
   - rosso = solo zona problema (allarmi, pulsante problema)
   - grigio = contesto problema (situazione vecchia)
   ========================================================== */

/* ---------- Variabili ---------- */
:root {
  --ink: #16283a;
  --muted: #5b6b7c;
  --primary: #14507e;
  --accent: #2f9e44;          /* verde azione */
  --accent-dark: #2b8a3e;     /* verde hover / spunte */
  --green: #2b8a3e;
  --green-soft: #e6f4ea;      /* sfondo spunte */
  --green-bg: #eaf7ee;        /* sfondo card "dopo" */
  --green-line: #bfe3c8;
  --red: #c0392b;
  --red-soft: #fdecea;
  --gray-bg: #edf0f2;         /* sfondo sezione problema */
  --gray-soft: #eceff1;       /* sfondo card "prima" */
  --gray-dark: #454c52;       /* titoli problema, quote band */
  --gray-mid: #6b7075;        /* testi problema */
  --gray-text: #4b5257;
  --gray-line: #d3d8dc;
  --gray-border: #8a949c;
  --bg-alt: #f5f8fb;
  --line: #e2e9f0;
  --dark: #10293c;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(16, 41, 60, .12);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 14px; }
.uppercase { text-transform: uppercase; }

/* ---------- Utility ---------- */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; }
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
section[id], .section[id] { scroll-margin-top: 84px; }
.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 10px;
}
.lead { color: var(--muted); font-size: 1.12rem; max-width: 660px; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all .2s ease;
}
.btn-sm { padding: 9px 18px; font-size: .9rem; border-radius: 8px; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(47, 158, 68, .32);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-problem { border: 2px solid var(--red); color: var(--red); }
.btn-problem:hover { background: var(--red); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: #eaf1f7; transform: translateY(-2px); }

/* ---------- Chips ---------- */
.chips { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; margin: 0; padding: 0; }
.chips li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
}
.chips-small li { font-size: .78rem; padding: 4px 12px; }
.chips-light li { background: transparent; border-color: rgba(255, 255, 255, .35); color: #cfdbe6; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(16, 41, 60, .08); }
.header-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { font-weight: 800; font-size: 1.25rem; color: var(--primary); text-decoration: none; }
.brand span { color: var(--accent); }
.brand-light { color: #fff; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--primary); }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 88px; background: var(--bg-alt); }
.hero-in {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  grid-template-areas: "top media" "bottom media";
  column-gap: 56px;
  row-gap: 0;
  align-items: start;
}
.hero-top { grid-area: top; }
.hero-bottom { grid-area: bottom; }
.hero-media { grid-area: media; align-self: center; }
.badge {
  display: inline-block;
  background: rgba(20, 80, 126, .1);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.hero-top h1 { margin: 18px 0 14px; }
.h1-solution { display: block; color: var(--accent); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero-media { position: relative; }
.hero-media > img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.float-card {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
}
.float-card strong { color: var(--primary); font-size: .95rem; }
.float-card span { font-size: .8rem; color: var(--muted); }
.fc-1 { top: -18px; left: -14px; }
.fc-2 { top: 40%; right: -18px; }
.fc-3 { bottom: -16px; left: 10%; }

/* ---------- Sezione problema (grigia, con allarmi rossi) ---------- */
#problema { background: var(--gray-bg); }
#problema .kicker { color: #7a8288; }
#problema h2 { color: var(--gray-dark); }
#problema .lead { color: var(--gray-mid); }
.pain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-top: 44px; }
.pain-figures { display: grid; gap: 24px; margin: 0; }
.pain-figures figure { margin: 0; }
.pain-figures img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 14px;
  filter: grayscale(1);
}
.pain-figures figcaption { color: var(--gray-mid); font-size: .9rem; margin-top: 8px; }
.pain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.pain-list li { position: relative; padding-left: 36px; font-size: 1.05rem; color: var(--gray-text); }
.pain-list li::before {
  content: "✕";
  position: absolute;
  left: 0; top: 2px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: .75rem;
  font-weight: 800;
}

/* ---------- Quote band (grigio scuro) ---------- */
.quote-band { background: var(--gray-dark); color: #fff; padding: 60px 0; text-align: center; }
.quote-band p {
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  font-weight: 600;
  max-width: 840px;
  margin: 0 auto 10px;
}
.quote-band span { color: #b9bec4; font-size: .95rem; }

/* ---------- Prima / Dopo (grigio contro verde) ---------- */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 44px 0 36px; }
.ba-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.ba-card ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.ba-card li { padding-left: 26px; position: relative; }
.ba-before {
  background: var(--gray-soft);
  border-color: var(--gray-line);
  border-top: 4px solid var(--gray-border);
}
.ba-before h3 { color: #5a636b; }
.ba-before li { color: #5a636b; }
.ba-before li::before { content: "–"; position: absolute; left: 4px; color: var(--gray-border); font-weight: 800; }
.ba-after {
  background: var(--green-bg);
  border-color: var(--green-line);
  border-top: 4px solid var(--green);
}
.ba-after h3 { color: var(--green); }
.ba-after li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 800; }
.ba-figure { margin: 0; }
.ba-figure img {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(1.08);
}
.ba-figure figcaption { text-align: center; color: var(--muted); margin-top: 12px; font-size: .95rem; }

/* ---------- Pilastri del kit ---------- */
.pillar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 44px; }
.pillar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.pillar-card.pillar-ai { border-top-color: var(--accent); }
.pillar-tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.pillar-ai .pillar-tag { color: var(--accent-dark); }
.pillar-card .tool-sub { margin-bottom: 10px; }
.pillar-card figure { margin: 20px 0 0; }
.pillar-card figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
}
.kit-bridge {
  text-align: center;
  max-width: 720px;
  margin: 40px auto 0;
  font-size: 1.12rem;
  color: var(--muted);
}
.kit-bridge strong { color: var(--ink); }

/* ---------- Blocchi strumento ---------- */
.tool-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-top: 84px; }
.tool-rev .tool-copy { order: 2; }
.tool-rev .tool-media { order: 1; }
.tool-sub { font-size: 1.15rem; font-weight: 700; color: var(--accent); margin: 2px 0 14px; }
.tick { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 10px; }
.tick li { position: relative; padding-left: 32px; }
.tick li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: .75rem;
  font-weight: 800;
}
.tool-copy .chips { margin-bottom: 22px; }

/* ---------- Media e gallery ---------- */
.media-main { position: relative; margin: 0; }
.media-main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.media-main figcaption, .media-wide figcaption { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.media-wide { margin: 18px 0 0; }
.media-wide img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.tool-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.tool-gallery figure { margin: 0; }
.tool-gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.tool-gallery figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; }

/* ---------- Vimeo responsive ---------- */
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* aspect ratio 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #000;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Callout ---------- */
.callout {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-top: 18px;
}
.callout img { width: 130px; flex: none; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.callout p { margin: 0; font-size: .95rem; color: var(--muted); }
.callout strong { color: var(--ink); }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin: 48px 0 0; padding: 0; }
.steps li { position: relative; }
.step-n {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 23px; left: 56px; right: -14px;
  height: 2px;
  background: var(--line);
}
.steps h3 { font-size: 1.05rem; color: var(--primary); margin: 0 0 6px; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Testimonianze e benefici ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.testi-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stars { color: #f5b301; letter-spacing: 2px; font-size: 1rem; }
.testi-card > p { margin: 0; font-size: .98rem; }
.testi-who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: none;
}
.who-name strong { display: block; font-size: .95rem; }
.who-name span { color: var(--muted); font-size: .82rem; }

/* ---------- Value stack (prezzo kit) ---------- */
.stack-list { list-style: none; margin: 18px 0 6px; padding: 0; display: grid; gap: 12px; }
.stack-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--green-line);
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 600;
}
.stack-list li span small { display: block; font-weight: 500; color: var(--muted); font-size: .85rem; }
.stack-list del { color: var(--gray-mid); font-weight: 700; white-space: nowrap; }
.stack-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 2px dashed var(--green-line);
  margin: 14px 0 6px;
  padding-top: 14px;
  font-weight: 800;
}
.stack-total del { color: var(--gray-mid); }

/* ---------- FAQ ---------- */
#faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 0 0 12px;
  overflow: hidden;
}
#faq summary {
  cursor: pointer;
  padding: 18px 52px 18px 22px;
  font-weight: 700;
  list-style: none;
  position: relative;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  content: "+";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}
#faq details[open] summary::after { content: "–"; }
#faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* ---------- CTA finale ---------- */
.cta-final { background: var(--dark); color: #fff; padding: 88px 0; text-align: center; }
.cta-final h2 { color: #fff; }
.cta-final > .wrap > p { color: #b9c9d9; max-width: 640px; margin: 0 auto; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 32px 0 24px; }
.cta-final .chips { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: #0d2436; color: #9fb3c8; padding-top: 56px; }
.footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand p { margin-top: 12px; font-size: .95rem; max-width: 320px; }
.footer-col h3 { color: #fff; font-size: 1rem; margin: 0 0 14px; }
.footer-col a { display: block; color: #9fb3c8; text-decoration: none; margin-bottom: 10px; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .85rem;
}
.footer-bottom a { color: #9fb3c8; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; grid-template-areas: "top" "media" "bottom"; gap: 36px; }
  .hero-media { max-width: 640px; }
  .fc-2 { right: 0; }
  .pain-grid, .ba-grid, .pillar-grid { grid-template-columns: 1fr; gap: 32px; }
  .tool-block { grid-template-columns: 1fr; gap: 36px; margin-top: 64px; }
  .tool-rev .tool-copy { order: 1; }
  .tool-rev .tool-media { order: 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:not(:last-child)::after { display: none; }
  .testi-grid { grid-template-columns: 1fr; max-width: 640px; }
  .footer-in { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav { display: none; }
  .header-in { justify-content: space-between; }
  .fc-1, .fc-3 { display: none; }
  .fc-2 { top: auto; bottom: -14px; right: 8px; }
  .ba-figure img { aspect-ratio: 16 / 9; }
  .callout { flex-direction: column; align-items: flex-start; }
  .callout img { width: 100%; }
  .stack-list li { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (max-width: 520px) {
  h1 { font-size: 1.95rem; }
  .steps { grid-template-columns: 1fr; }
  .tool-gallery { grid-template-columns: 1fr 1fr; }
  .hero-cta .btn { width: 100%; text-align: center; }
  .cta-buttons .btn { width: 100%; }
}

/* ==========================================================
   CONVERSIONE — popup offerta €149 + toast social proof
   Sezione aggiunta in coda: usa solo variabili esistenti
   ========================================================== */

/* ---------- Link "guarda dentro" nell'hero ---------- */
.play-link {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px 9px 10px;
  font-weight: 700; font-size: .95rem; color: var(--primary); text-decoration: none;
  transition: all .2s ease;
}
.play-link:hover { border-color: var(--accent); color: var(--accent-dark); transform: translateY(-2px); }
.pl-ico {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: .62rem;
}
#anteprima, #anteprima-ai { scroll-margin-top: 90px; }

/* ---------- Overlay + modal offerta ---------- */
.conv-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(16, 41, 60, .55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, visibility .25s;
}
.conv-overlay.show { opacity: 1; visibility: visible; pointer-events: auto; }
.conv-modal {
  position: relative; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); max-width: 520px; width: 100%;
  padding: 36px 34px 30px;
  transform: translateY(14px) scale(.97); transition: transform .28s ease;
}
.conv-overlay.show .conv-modal { transform: none; }
.conv-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--line); background: #fff;
  color: var(--muted); font-size: 1.15rem; line-height: 1; cursor: pointer;
  transition: all .2s;
}
.conv-close:hover { color: var(--red); border-color: var(--red); }
.conv-title { font-size: 1.55rem; font-weight: 800; margin: 4px 0 10px; }
.conv-modal p { color: var(--muted); font-size: .98rem; }
.conv-price { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 4px; }
.conv-price del { color: var(--gray-mid); font-weight: 700; font-size: 1.2rem; }
.conv-price strong { color: var(--accent); font-weight: 800; font-size: 2.5rem; line-height: 1; }
.conv-price span { color: var(--muted); font-size: .85rem; }
.conv-modal .btn-primary { display: block; width: 100%; text-align: center; margin-top: 18px; }
.conv-decline { display: block; text-align: center; margin-top: 12px; color: var(--muted); font-size: .86rem; text-decoration: underline; }
.conv-decline:hover { color: var(--red); }
body.conv-locked { overflow: hidden; }

/* ---------- Toast social proof ---------- */
.toast-zone {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 190;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 420px;
}
.toast {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px 20px;
  font-size: 1.05rem;
  color: var(--ink);
  animation: toast-in .3s ease;
}
.toast.hide {
  opacity: 0;
  transform: translateY(8px);
  transition: all .3s ease;
}
.t-ico {
  flex: none;
  color: #f5b301;
  font-weight: 800;
  font-size: 1.2rem;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* Toast promo speciale */
.toast.toast-promo {
  background: linear-gradient(135deg, #fff 0%, #f0fdf4 100%);
  border-left-color: var(--accent);
  border-left-width: 5px;
}
.toast-promo .toast-body { flex: 1; }
.toast-promo .toast-title {
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
  font-size: 1.1rem;
}
.toast-promo .toast-txt {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 12px;
}
.toast-promo .btn-promo {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .2s;
}
.toast-promo .btn-promo:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* Mobile: toast più piccoli */
@media (max-width: 720px) {
  .toast-zone {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
  .toast {
    padding: 14px 16px;
    font-size: .95rem;
  }
  .t-ico { font-size: 1.1rem; }
}

/* ---------- Mobile: il modal diventa bottom-sheet ---------- */
@media (max-width: 720px) {
  .conv-overlay { align-items: flex-end; padding: 0; }
  .conv-modal {
    max-width: 100%; border-radius: 20px 20px 0 0;
    padding: 30px 22px calc(26px + env(safe-area-inset-bottom));
    transform: translateY(100%);
  }
  .conv-overlay.show .conv-modal { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .toast { animation: none; }
  .conv-modal, .conv-overlay { transition: none; }
}

/* ---------- Flipbook verticale su mobile ---------- */
@media (max-width: 720px) {
  .embed-flipbook { padding-bottom: 125%; }
}

/* ==========================================================
   SEZIONE "COSA RICEVI" (#corso) — sopra-sotto, TESTO PRIMA
   Testo introduttivo sopra, embed (video/flipbook) sotto.
   ========================================================== */
@media (min-width: 981px) {
  #corso .tool-block {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  /* PRIMA il testo, a due colonne interne */
  #corso .tool-copy {
    order: 1;
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    column-gap: 48px;
    align-content: start;
    grid-template-areas:
      "title   tick"
      "sub     tick"
      "chips   tick"
      "callout callout";
  }
  #corso .tool-copy h3        { grid-area: title; margin: 0; font-size: 1.6rem; }
  #corso .tool-copy .tool-sub { grid-area: sub; margin: 6px 0 0; }
  #corso .tool-copy .tick     { grid-area: tick; margin: 0; }
  #corso .tool-copy .chips    { grid-area: chips; margin: 18px 0 0; align-self: start; }
  #corso .tool-copy .callout  { grid-area: callout; margin: 26px 0 0; }
  /* POI il media, largo ma contenuto */
  #corso .tool-media {
    order: 2;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
  }
  /* flipbook più alto del 16:9 */
  #corso .embed-flipbook { padding-bottom: 72%; }
}

/* ==========================================================
   STACCO TRA I DUE CORSI (#corso)
   Etichette "Corso 1/2" sopra ciascun blocco del kit.
   ========================================================== */
.band-head { text-align: center; margin: 44px 0 0; }
.band-tag {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--primary);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 800;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.band-tag-green {
  border-color: var(--green-line);
  color: var(--green);
}
/* dopo l'etichetta il blocco non deve ripartire con 84px di margine */
.band-head + .tool-block { margin-top: 40px; }
/* il primo blocco dopo l'intro mantiene lo stacco giusto */
#corso .band-head:first-of-type { margin-top: 8px; }

@media (max-width: 720px) {
  .band-head { margin-top: 24px; }
}