/* ============================================================
   Italianità · T39 — Página de captura
   Design system Scuola Azzurra · Mobile-first, responsivo
   ============================================================ */

:root {
  /* Marca */
  --navy-deep: #0D1632;
  --navy-med: #203372;
  --gold: #FFE091;
  --gold-deep: #C9A961;

  /* CTA verde — contraste AA (branco sobre verde ~5:1) */
  --green: #0F7C34;
  --green-hover: #0C6A2C;
  --green-ring: rgba(15, 124, 52, .35);

  /* Neutros (escolhidos, viés navy discreto) */
  --ink: #171c2b;
  --ink-soft: #454c63;
  --ink-faint: #6e7590;
  --paper: #ffffff;
  --surface: #fbfbfd;
  --line: #e5e8f0;
  --line-strong: #c7ccdd;
  --err: #CF2E2E;

  --radius: 10px;
  --radius-sm: 8px;
  --maxw: 1080px;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --shadow-sm: 0 2px 8px rgba(13, 22, 50, .08);
  --shadow-md: 0 10px 30px rgba(13, 22, 50, .12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;               /* base ampliada p/ leitura 55+ */
  -webkit-font-smoothing: antialiased;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--navy-med); }

.ic {
  width: 1.15em; height: 1.15em;
  stroke: currentColor; fill: none;
  stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round;
  flex: 0 0 auto;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-weight: 700; font-size: 16px; line-height: 1.2;
  border: 0; border-radius: 100px; cursor: pointer; text-decoration: none;
  padding: 17px 28px; min-height: 56px; text-align: center;
  transition: background-color .18s ease, transform .05s ease, box-shadow .18s ease;
}
.btn-green { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-green:hover { background: var(--green-hover); }
.btn-green:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--green-ring); outline-offset: 3px; }
.btn-block { width: 100%; }

/* CTA pulsando */
.btn-pulse { animation: ctaPulse 1.8s ease-in-out infinite; }
@keyframes ctaPulse {
  0%   { box-shadow: 0 0 0 0 rgba(15, 124, 52, .50); transform: scale(1); }
  50%  { transform: scale(1.02); }
  70%  { box-shadow: 0 0 0 14px rgba(15, 124, 52, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 124, 52, 0); transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-pulse { animation: none; }
}
.btn-sm { min-height: 46px; padding: 11px 20px; font-size: 15px; }
.btn .ic { width: 1.2em; height: 1.2em; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #ffffff 0%, var(--surface) 100%); }

/* Imagem de fundo do topo (full-bleed) com fade para o fundo claro + logo sobreposto */
.hero-top { position: relative; margin-bottom: 36px; }
.hero-bg-img {
  width: 100%; height: 24vh; min-height: 160px; max-height: 320px;
  object-fit: cover; object-position: center top;
}
.hero-top::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 42%;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #ffffff 100%);
  pointer-events: none;
}
.hero-logo {
  position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%);
  width: clamp(160px, 40vw, 220px); height: auto; z-index: 1;
  filter: drop-shadow(0 4px 10px rgba(13, 22, 50, .18));
}
.hero-top.no-photo .hero-bg-img { display: none; }
.hero-top.no-photo {
  height: 150px;
  background: radial-gradient(120% 120% at 70% 20%, var(--navy-med) 0%, var(--navy-deep) 70%);
}

.hero-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 20px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.hero-content { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 560px; }
.hero-content .form { width: 100%; text-align: left; }

.badge {
  display: inline-flex; align-items: center; gap: 8px; align-self: center;
  background: rgba(255, 224, 145, .45); color: var(--navy-deep);
  border: 1px solid rgba(201, 169, 97, .35);
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  padding: 8px 18px; border-radius: 100px; margin: 0 0 12px;
}
.badge .ic { width: 16px; height: 16px; color: var(--navy-med); }

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

h1 {
  font-size: clamp(23px, 6.2vw, 40px); line-height: 1.18; font-weight: 700;
  margin: 0 0 10px; text-wrap: balance; letter-spacing: -.01em;
}
h1 mark {
  background: transparent; color: inherit;
  box-shadow: inset 0 -0.42em 0 rgba(201, 169, 97, .38);   /* grifo dourado c/ texto navy = contraste ok */
}
.hero-sub { font-size: 16px; color: var(--ink-soft); margin: 0 0 14px; max-width: 40ch; }

/* ---------- Formulário ---------- */
.form { display: flex; flex-direction: column; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field input {
  font-family: inherit; font-size: 16px; color: var(--ink);
  height: 48px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: #9aa0b4; }
.field input:focus {
  outline: none; border-color: var(--navy-med);
  box-shadow: 0 0 0 3px rgba(32, 51, 114, .12);
}
.field.invalid input { border-color: var(--err); }
.field.invalid input:focus { box-shadow: 0 0 0 3px rgba(207, 46, 46, .12); }

.tel-group { display: flex; gap: 8px; }
.tel-country {
  font-family: inherit; font-size: 15px; color: var(--ink);
  height: 48px; padding: 0 8px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; flex: 0 0 auto; width: 100px;
}
.tel-country:focus {
  outline: none; border-color: var(--navy-med);
  box-shadow: 0 0 0 3px rgba(32, 51, 114, .12);
}
.tel-group input { flex: 1 1 auto; min-width: 0; }
.field.invalid .tel-country { border-color: var(--err); }
.err { font-size: 13px; color: var(--err); min-height: 0; }
.field.invalid .err { min-height: 1em; }

.consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; cursor: pointer;
}
.consent input {
  width: 22px; height: 22px; flex: 0 0 auto; margin: 1px 0 0;
  accent-color: var(--green); cursor: pointer;
}
.consent a { font-weight: 600; }

.trust {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin: 4px 0 0;
}
.trust .ic { width: 16px; height: 16px; color: var(--green); }
.trust-sub { font-size: 13px; color: var(--ink-faint); margin: 0; }

.form-success {
  margin: 6px 0 0; padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(15, 124, 52, .10); border: 1px solid rgba(15, 124, 52, .35);
  color: #0b5f28; font-size: 14.5px; font-weight: 600;
}

/* ---------- Bloco: Como funciona (dark) ---------- */
.how { background: var(--navy-deep); color: #fff; }
.how-inner {
  max-width: 720px; margin: 0 auto; padding: 48px 20px 56px;
  display: flex; flex-direction: column; align-items: center;
}
.how h2 {
  font-size: clamp(22px, 5.5vw, 30px); font-weight: 700; letter-spacing: .01em;
  margin: 0 0 26px; text-align: center;
}
.how-list {
  list-style: none; margin: 0 auto 30px; padding: 0;
  width: 100%; max-width: 520px; display: grid; gap: 12px;
}
.how-list li {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius); padding: 16px 18px; font-size: 16px; text-align: center;
}
.how-list li .ic { width: 24px; height: 24px; color: var(--gold); }
.how-list li.highlight { background: rgba(255, 224, 145, .12); border-color: rgba(255, 224, 145, .38); }
.how-list li.highlight .ic { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #c7cde0; border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 36px 20px 96px;   /* folga p/ barra fixa no mobile */
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
}
@media (min-width: 920px) { .footer-inner { padding-bottom: 44px; } }
.footer-logo { height: 46px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.footer-links a { color: #cfd5e8; text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-copy { font-size: 12.5px; color: #8891ad; margin: 0; }

/* ---------- Barra fixa (sticky CTA) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,.12);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(13, 22, 50, .28);
  transform: translateY(100%); transition: transform .28s ease;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 14px; justify-content: space-between;
}
.sticky-label { color: #dfe4f2; font-size: 13.5px; font-weight: 600; }
.sticky-cta .btn { white-space: nowrap; }
@media (max-width: 380px) {
  .sticky-label { display: none; }
  .sticky-inner { justify-content: center; }
  .sticky-cta .btn { width: 100%; }
}

/* ============================================================
   Responsivo — tablet / desktop
   ============================================================ */
@media (min-width: 920px) {
  body { font-size: 17px; }
  .hero-bg-img { height: 38vh; max-height: 420px; }
  .hero-top { margin-bottom: 52px; }
  .hero-logo { bottom: -40px; width: 240px; }
  .hero-inner { padding: 0 20px 56px; }
  .hero-content { max-width: 620px; }
  .badge { font-size: 14px; }
  .hero-sub { font-size: 18px; }

  /* No desktop o formulário do hero já fica visível — barra fixa some */
  .sticky-cta { display: none; }
}

@media (min-width: 1100px) {
  h1 { font-size: 42px; }
}

/* ============================================================
   Blocos de conteúdo (copy Italianità · 5 blocos)
   ============================================================ */

/* ---------- Hero: eyebrow ---------- */
.eyebrow {
  font-size: 15px; font-weight: 600; color: var(--ink-soft);
  letter-spacing: .01em; margin: 0 0 10px; text-wrap: balance;
}

/* ---------- Bloco 2: complementos do convite ---------- */
.how h2 { max-width: 30ch; text-wrap: balance; }
.how-note {
  font-size: 16.5px; font-style: italic; color: #dfe4f2;
  text-align: center; max-width: 44ch; margin: 0 0 26px;
}
.how-limit {
  font-size: 17px; color: #dfe4f2; text-align: center;
  margin: 6px 0 28px; line-height: 1.55;
}
.how-limit strong { color: var(--gold); font-weight: 700; }

/* ---------- Cabeçalhos de seção (blocos claros) ---------- */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  color: var(--navy-med); margin: 0 0 10px;
}
.section-eyebrow .ic { width: 18px; height: 18px; color: var(--gold-deep); }

/* ---------- Bloco 3: agenda ---------- */
.agenda { background: var(--surface); }
.agenda-inner {
  max-width: 780px; margin: 0 auto; padding: 52px 20px 60px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.agenda h2 {
  font-size: clamp(24px, 5.5vw, 32px); font-weight: 700;
  margin: 0 0 10px; text-wrap: balance;
}
.agenda-sub { color: var(--ink-soft); max-width: 52ch; margin: 0 0 30px; }

.lessons {
  list-style: none; margin: 0 0 32px; padding: 0;
  width: 100%; display: grid; gap: 14px; text-align: left;
}
.lesson {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm);
}
.lesson-date {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 62px; padding: 10px 8px;
  background: var(--navy-deep); color: #fff; border-radius: var(--radius-sm);
}
.lesson-date .d { font-size: 22px; font-weight: 700; line-height: 1.1; }
.lesson-date .m { font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--gold); }
.lesson-body h3 { font-size: 18.5px; font-weight: 700; margin: 2px 0 6px; }
.lesson-body p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.lesson-meta {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  color: var(--green); margin: 0;
}
.lesson-meta .ic { width: 15px; height: 15px; }

/* ---------- Bloco 4: depoimentos em vídeo ---------- */
.depo { background: var(--paper); }
.depo-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 52px 20px 60px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.depo h2 {
  font-size: clamp(22px, 5vw, 29px); font-weight: 700;
  max-width: 34ch; margin: 0 0 28px; text-wrap: balance;
}

.carousel {
  width: 100%;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: min(280px, 74vw); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.carousel::-webkit-scrollbar { height: 8px; }
.carousel::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 100px; }

.video-card {
  scroll-snap-align: center; margin: 0;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.video-card figcaption { padding: 10px 14px; font-weight: 600; font-size: 15px; }

/* Fachada do YouTube: iframe só entra no clique (performance) */
.yt-facade {
  position: relative; display: block; width: 100%;
  aspect-ratio: 9 / 16; border: 0; padding: 0; cursor: pointer;
  background: radial-gradient(120% 120% at 70% 15%, var(--navy-med) 0%, var(--navy-deep) 75%);
  overflow: hidden;
}
.yt-facade img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .25s ease;
}
.yt-facade:hover img { transform: scale(1.03); }
.yt-facade .play-badge {
  position: absolute; inset: 0; margin: auto; z-index: 1;
  width: 62px; height: 62px; border-radius: 50%;
  background: rgba(13, 22, 50, .82); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .18s ease, transform .18s ease;
}
.yt-facade .play-badge .ic { width: 26px; height: 26px; margin-left: 3px; }
.yt-facade:hover .play-badge { background: var(--green); transform: scale(1.07); }
.yt-facade:focus-visible { outline: 3px solid var(--green-ring); outline-offset: 3px; }
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.carousel-nav { display: flex; gap: 12px; margin: 4px 0 24px; }
.carousel-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--navy-med);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.carousel-btn:hover { background: var(--navy-deep); color: #fff; }
.carousel-btn:focus-visible { outline: 3px solid var(--green-ring); outline-offset: 3px; }
.carousel-btn .ic { width: 22px; height: 22px; }

.depo-next { font-size: 18px; font-weight: 600; margin: 0 0 20px; }

/* ---------- Bloco 5: Giulia ---------- */
.guide { background: var(--surface); }
.guide-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 52px 20px 64px;
  display: flex; flex-direction: column; gap: 28px; align-items: center;
}
.guide-media {
  margin: 0; width: min(340px, 82vw);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
}
.guide-media img { width: 100%; height: auto; aspect-ratio: 466 / 672; object-fit: cover; }
.guide-body { max-width: 560px; text-align: center; }
.guide-body h2 {
  font-size: clamp(26px, 6vw, 34px); font-weight: 700; margin: 0 0 14px;
}
.guide-body h2 span {
  display: block; font-size: 14px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: 4px;
}
.guide-body p { color: var(--ink-soft); margin: 0 0 14px; text-align: left; }

.guide-stats {
  list-style: none; margin: 8px 0 26px; padding: 0;
  display: grid; gap: 12px; text-align: left;
}
.guide-stats li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; color: var(--ink-soft); }
.guide-stats .ic { width: 24px; height: 24px; color: var(--gold-deep); }
.guide-stats b { color: var(--ink); }

/* ---------- Responsivo dos novos blocos ---------- */
@media (min-width: 920px) {
  .carousel { grid-auto-columns: 250px; justify-content: safe center; }
  .guide-inner { flex-direction: row; align-items: center; gap: 56px; }
  .guide-media { flex: 0 0 380px; width: 380px; }
  .guide-body { text-align: left; }
}

/* ---------- Acessibilidade / motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
