/* ============================================
     DESIGN TOKENS
  ============================================ */
  :root {
    /* Identidade Educação Adventista */
    --color-primary: #27357C;
    --color-primary-hover: #1D285F;
    --color-cta: #FDBE2E;
    --color-yellow: #FDBE2E;
    --color-text: #1B1B1B;
    --color-text-secondary: #5F6368;
    --color-white: #FFFFFF;
    --gradient-institutional: linear-gradient(90deg, #EB9D38 0%, #EBB031 25%, #FABE4B 50%, #FAC04F 75%, #FABE46 100%);

    /* Superfícies de apoio */
    --color-lavender: #F3F5FB;
    --color-pink-soft: #FFF1C8;
    --color-green-soft: #E8F5EC;
    --color-blue-soft: #E9ECF7;
    --color-surface: #FFF8E7;

    /* Funcionais */
    --color-success: #16803C;
    --color-error: #C62828;
    --color-warning: #A86100;
    --color-border: #D9DCE8;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(39,53,124,.06);
    --shadow-md: 0 4px 16px rgba(39,53,124,.08);
    --shadow-lg: 0 8px 22px rgba(39,53,124,.12);
    --shadow-cta: 0 6px 20px rgba(253,190,46,.32);

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Type */
    --font-heading: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  }

  /* ============================================
     RESET
  ============================================ */
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 144px; }
  body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text-secondary);
    background: var(--color-white);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
  }
  img { max-width: 100%; display: block; }
  .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, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text);
    line-height: 1.2;
    margin: 0;
  }
  p { margin: 0; }
  a { color: inherit; text-decoration: none; }
  ul { margin: 0; padding: 0; list-style: none; }
  button { font-family: inherit; cursor: pointer; }
  input, select, textarea { font-family: inherit; }

  /* Visible keyboard focus for accessibility */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
  }

  .skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    z-index: 1000;
  }
  .skip-link:focus {
    left: var(--space-md);
    top: var(--space-md);
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  }

  /* ============================================
     LAYOUT HELPERS
  ============================================ */
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
  }
  .section {
    padding: var(--space-2xl) 0;
  }
  .section--surface { background: var(--color-surface); }
  .section-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border: 1.5px solid var(--color-cta);
    background: transparent;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
  }
  .section-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(32px, 5vw, 55px);
    letter-spacing: -0.045em;
    line-height: .98;
    font-weight: 600;
    max-width: 700px;
  }
  .section-text {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    color: var(--color-text-secondary);
    max-width: 620px;
    margin: var(--space-md) auto 0;
  }
  .section-head {
    max-width: 820px;
    margin: 0 auto var(--space-2xl);
  }
  .section-title em,
  .section-text em {
    color: #d79d00;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: inherit;
  }
  .section-text .section-text-highlight {
    font-style: italic;
    font-weight: 700;
  }
  .faith-band .section-text,
  .enroll-band .section-text { color: rgba(255,255,255,.92); }
  .faith-band .section-text-highlight,
  .enroll-band .section-text-highlight { color: var(--color-yellow); }
  .section-head--inverse .section-title,
  .section-head--inverse .section-eyebrow { color: var(--color-white); }
  .section-head--inverse .section-title em { color: var(--color-yellow); }
  .section-head--inverse .section-text { color: rgba(255,255,255,.92); }
  .section-head--compact {
    margin-bottom: 0;
  }

  /* ============================================
     BUTTONS
  ============================================ */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    min-height: 44px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    border: none;
    transition: all 0.2s ease;
    white-space: normal;
    text-align: center;
  }
  .btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
  }
  .btn-primary:hover, .btn-primary:focus-visible {
    background: var(--color-primary-hover);
    box-shadow: var(--shadow-md);
  }
  .btn-cta {
    background: var(--color-cta);
    color: var(--color-primary);
    padding: 16px 28px;
    box-shadow: var(--shadow-cta);
  }
  .btn-cta:hover, .btn-cta:focus-visible {
    background: #F2B21C;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(253,190,46,.40);
  }
  .btn-secondary {
    background: var(--color-white);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
  }
  .btn-secondary:hover, .btn-secondary:focus-visible {
    background: var(--color-lavender);
  }
  .btn-link {
    background: transparent;
    color: var(--color-primary);
    padding: 8px 4px;
    min-height: 44px;
  }
  .btn-link:hover, .btn-link:focus-visible {
    text-decoration: underline;
  }
  .btn-whatsapp {
    background: var(--color-success);
    color: var(--color-white);
  }
  .btn-whatsapp:hover, .btn-whatsapp:focus-visible {
    background: #116630;
    box-shadow: var(--shadow-md);
  }
  .btn-block { width: 100%; }
  /* Shared section actions use the Segmentos CTA as their visual standard. */
  .btn.section-action {
    max-width: 100%;
    gap: 10px;
    font-family: var(--font-body);
    line-height: 1.4;
  }
  .section-action-arrow { flex-shrink: 0; }
  .section-action > svg { width: 20px; height: 20px; flex-shrink: 0; }
  .cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-xl);
  }

  /* ============================================
     HEADER / NAV
  ============================================ */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    padding: 10px 24px 8px;
    pointer-events: none;
  }
  .header-shell {
    position: relative;
    max-width: 1200px;
    margin-inline: auto;
    pointer-events: auto;
  }
  .header-ribbon {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: calc(100% - 48px);
    min-height: 26px;
    padding: 4px 22px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
  }
  .header-ribbon--top {
    margin-left: auto;
    margin-right: 24px;
    padding-bottom: 9px;
    margin-bottom: -5px;
    border-radius: 22px 22px 0 0;
    background: var(--color-primary);
    color: var(--color-white);
  }
  .header-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
    border-radius: 4px;
    color: var(--color-white);
    transition: color .2s ease;
  }
  .header-social-link svg { width: 16px; height: 16px; }
  .header-social-link:hover { color: var(--color-yellow); }
  .header-social-link:focus-visible {
    color: var(--color-yellow);
    outline: 2px solid var(--color-yellow);
    outline-offset: 2px;
  }
  .header-ribbon--bottom {
    margin-left: 24px;
    margin-top: -5px;
    padding-top: 9px;
    border-radius: 0 0 22px 22px;
    background: var(--color-yellow);
    color: var(--color-primary);
  }
  .header-ribbon-dot {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    border-radius: 50%;
    background: currentColor;
  }
  .nav-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(10px, 2vw, 28px);
    padding: 10px var(--space-lg);
    min-height: 64px;
    border: 1px solid rgba(39,53,124,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 6px 24px rgba(39,53,124,.09);
    margin: 0 auto;
  }
  /* Logo institucional no menu */
  .logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    min-width: 0;
    flex: 0 1 auto;
    flex-shrink: 1;
    line-height: 0;
  }
  .logo img {
    display: block;
    width: clamp(145px, 18vw, 205px);
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
  }
  .logo:focus-visible {
    border-radius: 6px;
  }
  .nav-links {
    display: none;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: nowrap;
  }
  .nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    padding: var(--space-sm);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }
  .nav-links a:hover, .nav-links a:focus-visible {
    color: var(--color-primary);
    background: var(--color-surface);
    border-radius: var(--radius-full);
  }
  .nav-cta {
    display: none;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 12px 20px;
    font-size: 14px;
  }
  .nav-toggle {
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
  }
  .nav-toggle { color: var(--color-primary); border-radius: 50%; background: var(--color-surface); }
  .nav-toggle:hover { background: var(--color-yellow); }
  .nav-toggle svg { width: 24px; height: 24px; }
  .nav-icon-close { display: none; }

  .mobile-menu {
    display: none;
    flex-direction: column;
    padding: 0 var(--space-lg) var(--space-lg);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    margin-top: 8px;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }
  .mobile-menu.is-open { display: flex; }
  .mobile-menu a {
    padding: var(--space-md) 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-surface);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .mobile-menu a:hover, .mobile-menu a:focus-visible { color: var(--color-primary); }
  .mobile-menu .btn { margin-top: var(--space-md); }
  .site-header .enrollment-menu-cta {
    border: 0;
    border-radius: var(--radius-full);
    gap: 12px;
    color: var(--color-primary);
    font-weight: 600;
    white-space: nowrap;
  }
  .enrollment-menu-cta svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform .2s ease;
  }
  .enrollment-menu-cta:hover svg,
  .enrollment-menu-cta:focus-visible svg { transform: translateX(3px); }
  @media (prefers-reduced-motion: reduce) {
    .enrollment-menu-cta:hover svg,
    .enrollment-menu-cta:focus-visible svg { transform: none; }
  }

  /* ============================================
     HERO — CAMPANHA VISUAL / SLIDER
     As artes 1920x1080 já possuem toda a composição.
     O código abaixo preserva a arte e anima somente
     a entrada/saída da camada, evitando distorções.
  ============================================ */
  .hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: min(760px, calc(100vh - 72px));
    height: clamp(560px, 56.25vw, 810px);
    max-height: 900px;
    padding: 0;
    overflow: hidden;
    background: var(--gradient-institutional);
  }

  .hero-slider,
  .hero-slides,
  .hero-slide {
    position: absolute;
    inset: 0;
  }

  .hero-slides { overflow: hidden; }

  .hero-slide {
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    transition: opacity .95s cubic-bezier(.22,.61,.36,1),
                visibility 0s linear .95s;
    background: var(--gradient-institutional);
  }

  .hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transition: opacity 1.05s cubic-bezier(.22,.61,.36,1);
  }

  .hero-slide-image {
    position: absolute;
    inset: -2.5%;
    width: 105%;
    height: 105%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    will-change: transform, filter, opacity;
    user-select: none;
    pointer-events: none;
  }

  /* Entrada 01 — zoom cinematográfico */
  .hero-slide.is-active[data-effect="zoom"] .hero-slide-image {
    animation: heroZoomIn 6.6s cubic-bezier(.16,1,.3,1) both;
  }

  /* Entrada 02 — deslocamento lateral */
  .hero-slide.is-active[data-effect="slide-left"] .hero-slide-image {
    animation: heroSlideLeft 6.6s cubic-bezier(.16,1,.3,1) both;
  }

  /* Entrada 03 — deslocamento vertical */
  .hero-slide.is-active[data-effect="slide-up"] .hero-slide-image {
    animation: heroSlideUp 6.6s cubic-bezier(.16,1,.3,1) both;
  }

  /* Entrada 04 — foco suave + aproximação */
  .hero-slide.is-active[data-effect="soft-focus"] .hero-slide-image {
    animation: heroSoftFocus 6.6s cubic-bezier(.16,1,.3,1) both;
  }

  @keyframes heroZoomIn {
    0%   { transform: scale(1.075); filter: saturate(.98); }
    100% { transform: scale(1); filter: saturate(1); }
  }

  @keyframes heroSlideLeft {
    0%   { transform: translate3d(2.5%,0,0) scale(1.035); }
    100% { transform: translate3d(-.8%,0,0) scale(1); }
  }

  @keyframes heroSlideUp {
    0%   { transform: translate3d(0,2.2%,0) scale(1.035); }
    100% { transform: translate3d(0,-.7%,0) scale(1); }
  }

  @keyframes heroSoftFocus {
    0%   { transform: scale(1.055); filter: blur(5px) saturate(.92); }
    18%  { filter: blur(0) saturate(1); }
    100% { transform: scale(1); filter: blur(0) saturate(1); }
  }

  .hero-vignette {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(0,0,0,.10) 0%, transparent 18%, transparent 76%, rgba(0,0,0,.14) 100%),
      linear-gradient(90deg, rgba(0,0,0,.08), transparent 28%, transparent 75%, rgba(0,0,0,.05));
  }

  .hero-ui {
    position: absolute;
    inset: auto 0 0;
    z-index: 10;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 0 34px 28px;
    pointer-events: none;
  }

  .hero-labels {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    pointer-events: auto;
  }

  .hero-label {
    appearance: none;
    border: 1px solid rgba(255,255,255,.45);
    background: rgba(39,53,124,.78);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
  }

  .hero-label:hover,
  .hero-label:focus-visible {
    transform: translateY(-2px);
    background: rgba(39,53,124,.95);
    border-color: rgba(255,255,255,.8);
  }

  .hero-label.is-active {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
  }

  .hero-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
  }

  .hero-arrow {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    background: rgba(39,53,124,.78);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform .25s ease, background .25s ease;
  }

  .hero-arrow:hover,
  .hero-arrow:focus-visible {
    transform: scale(1.06);
    background: var(--color-primary);
  }

  .hero-arrow svg { width: 20px; height: 20px; }

  .hero-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 11;
    height: 4px;
    background: rgba(255,255,255,.28);
    overflow: hidden;
  }

  .hero-progress-bar {
    width: 0;
    height: 100%;
    background: var(--color-primary);
    transform-origin: left center;
  }

  .hero-progress-bar.is-running {
    animation: heroProgress 6.6s linear both;
  }

  @keyframes heroProgress {
    from { width: 0; }
    to { width: 100%; }
  }

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

  @media (max-width: 767px) {
    .hero {
      min-height: 0;
      height: auto;
      aspect-ratio: 16 / 9;
      max-height: none;
    }

    .hero-slide-image {
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .hero-ui {
      padding: 0 14px 14px;
      gap: 10px;
    }

    .hero-labels {
      gap: 5px;
      max-width: calc(100% - 105px);
    }

    .hero-label {
      font-size: 10px;
      padding: 7px 9px;
    }

    .hero-label:nth-child(n+3) { display: none; }

    .hero-arrow {
      width: 40px;
      height: 40px;
    }

    .hero-progress { height: 3px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-slide-image,
    .hero-progress-bar {
      animation: none !important;
      transition: opacity .2s ease !important;
    }
  }

  /* ============================================
     STAT STRIP (Sobre Nós)
  ============================================ */
  .about-text p + p { margin-top: var(--space-md); }
  .about-text { max-width: 820px; margin-inline: auto; }
  .stat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-top: var(--space-xl);
  }
  .stat-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
  }
  .stat-dot {
    width: 14px;
    height: 14px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
    margin-top: 4px;
  }
  .stat-dot--yellow { background: var(--color-yellow); }
  .stat-dot--blue { background: var(--color-primary); }
  .stat-dot--green { background: var(--color-success); }
  .stat-dot--soft-blue { background: #7C8DD1; }
  .stat-card p {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
  }

  /* ============================================
     CARDS GRID (Diferenciais)
  ============================================ */
  .card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }
  .card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
  }
  .card-icon svg { width: 20px; height: 20px; }
  .card-icon--yellow { background: var(--color-pink-soft); }
  .card-icon--blue { background: var(--color-lavender); }
  .card-icon--green { background: var(--color-green-soft); }
  .card-icon--soft-blue { background: var(--color-blue-soft); }
  .card h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: var(--space-sm);
  }
  .card p { font-size: 15px; }

  /* ============================================
     ENSINO — Galeria expansível de segmentos
  ============================================ */
  .segmentos-section {
    position: relative;
    overflow: hidden;
    background: #fffdf7;
  }
  .segmentos-content { position: relative; z-index: 1; }
  .segmentos-orb,
  .segmentos-dot { position: absolute; pointer-events: none; border-radius: 50%; }
  .segmentos-orb {
    width: 270px;
    height: 270px;
    background: radial-gradient(circle, rgba(253,190,46,.28), rgba(253,190,46,0) 70%);
    animation: segmentos-float 14s ease-in-out infinite;
  }
  .segmentos-orb--left { left: -135px; top: 18%; }
  .segmentos-orb--right { right: -130px; bottom: 7%; animation-delay: -7s; }
  .segmentos-dot { width: 14px; height: 14px; background: var(--color-cta); animation: segmentos-drift 18s ease-in-out infinite; }
  .segmentos-dot--top { right: 16%; top: 15%; }
  .segmentos-dot--bottom { left: 5%; bottom: 11%; animation-delay: -9s; }
  @keyframes segmentos-float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(28px, -38px, 0) scale(1.14); }
  }
  @keyframes segmentos-drift {
    0%, 100% { transform: translate3d(0, 0, 0); }
    33% { transform: translate3d(22px, -24px, 0); }
    66% { transform: translate3d(-12px, 18px, 0); }
  }
  .segmentos-accordion {
    display: flex;
    gap: 12px;
    width: 100%;
    height: 530px;
  }
  .segmento-card {
    position: relative;
    flex: 1;
    min-width: 54px;
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    background-color: var(--color-primary);
    background-position: center;
    background-size: cover;
    box-shadow: 0 12px 28px -16px rgba(19, 39, 89, .55);
    cursor: pointer;
    transition: flex .7s cubic-bezier(.65,0,.35,1), box-shadow .5s ease, transform .3s ease;
  }
  .segmento-card[data-segmento="infantil"] { background-image: url('segmentos/maternal.png'); }
  .segmento-card[data-segmento="fundamental-1"] { background-image: url('segmentos/fundamental-1.png'); }
  .segmento-card[data-segmento="fundamental-2"] { background-image: url('segmentos/fundamental-2.png'); }
  .segmento-card[data-segmento="medio"] { background-image: url('segmentos/ensino-medio.png'); }
  .segmento-card[data-segmento="valores"] { background-image: url('segmentos/bilingue.png'); }
  .segmento-card.is-active {
    flex: 4.8;
    box-shadow: 0 28px 58px -24px rgba(19, 39, 89, .62), 0 0 0 3px var(--color-cta);
  }
  .segmento-card:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 4px; }
  .segmento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 35, 79, .14) 5%, rgba(20, 35, 79, .35) 54%, rgba(20, 35, 79, .94) 100%);
    transition: background .5s ease;
  }
  .segmento-card.is-active .segmento-overlay {
    background: linear-gradient(180deg, rgba(20, 35, 79, .04), rgba(20, 35, 79, .20) 48%, rgba(20, 35, 79, .92) 100%);
  }
  .segmento-info {
    position: absolute;
    inset: 0;
    z-index: 1;
    padding: 23px;
    color: var(--color-white);
  }
  .segmento-number {
    position: absolute;
    top: 19px;
    left: 22px;
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--color-cta);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -.07em;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,.42);
    transition: font-size .45s ease;
  }
  .segmento-card.is-active .segmento-number { font-size: 46px; }
  .segmento-collapsed {
    position: absolute;
    left: 50%;
    bottom: 24px;
    color: var(--color-white);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
    text-align: left;
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
    white-space: nowrap;
    transform: translateX(-50%) rotate(180deg);
    transform-origin: center;
    writing-mode: vertical-rl;
    transition: opacity .35s ease, transform .35s ease;
  }
  .segmento-card.is-active .segmento-collapsed { opacity: 0; transform: translateX(-50%) rotate(180deg) translateY(10px); pointer-events: none; }
  .segmento-expanded {
    position: absolute;
    right: 23px;
    bottom: 21px;
    left: 23px;
    max-width: 360px;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .45s ease, transform .55s cubic-bezier(.16,1,.3,1);
  }
  .segmento-card.is-active .segmento-expanded { opacity: 1; transform: translateY(0); transition-delay: .18s; }
  .segmento-age {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--color-cta);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 17px;
    font-style: italic;
    font-weight: 700;
  }
  .segmento-expanded h3 {
    margin: 0 0 10px;
    color: var(--color-white);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(29px, 3.2vw, 39px);
    font-weight: 700;
    letter-spacing: -.05em;
    line-height: .96;
    text-shadow: 0 2px 12px rgba(0,0,0,.45);
  }
  .segmento-expanded p { margin: 0; color: rgba(255,255,255,.91); font-size: 14px; line-height: 1.48; }
  .segmento-more {
    position: absolute;
    z-index: 3;
    top: 17px;
    right: 17px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--color-cta);
    color: var(--color-primary);
    box-shadow: 0 6px 14px rgba(0,0,0,.24), 0 0 0 4px rgba(253,190,46,.28);
    cursor: pointer;
    opacity: 0;
    transform: scale(.5) rotate(-90deg);
    transition: opacity .35s ease, transform .5s cubic-bezier(.34,1.56,.64,1), background .25s ease, color .25s ease;
  }
  .segmento-more svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 3; }
  .segmento-card.is-active .segmento-more { opacity: 1; transform: scale(1) rotate(0); transition-delay: .17s; }
  .segmento-more:hover, .segmento-more:focus-visible { background: var(--color-primary); color: var(--color-cta); transform: scale(1.12) rotate(90deg); }
  .segmentos-cta { margin-top: var(--space-2xl); }
  .segmentos-cta .btn { display: inline-flex; align-items: center; gap: 10px; }

  .segmento-dialog[hidden] { display: none; }
  .segmento-dialog {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: grid;
    place-items: center;
    padding: 20px;
  }
  .segmento-dialog-backdrop { position: absolute; inset: 0; background: rgba(19, 39, 89, .72); backdrop-filter: blur(8px); }
  .segmento-dialog-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(240px, .9fr) 1.1fr;
    width: min(940px, 100%);
    max-height: min(680px, calc(100vh - 40px));
    overflow: auto;
    border-radius: 24px;
    background: var(--color-white);
    box-shadow: 0 30px 90px rgba(0,0,0,.42);
    animation: segmento-dialog-in .35s cubic-bezier(.34,1.56,.64,1);
  }
  @keyframes segmento-dialog-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
  .segmento-dialog-image { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
  .segmento-dialog-body { align-self: center; padding: 48px 42px; }
  .segmento-dialog-kicker { display: block; margin-bottom: 13px; color: #bd8800; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
  .segmento-dialog-body h2 { margin: 0; color: var(--color-primary); font-family: Georgia, 'Times New Roman', serif; font-size: 38px; letter-spacing: -.045em; line-height: 1.03; }
  .segmento-dialog-body p { margin: 16px 0; color: var(--color-text-secondary); font-size: 15px; line-height: 1.6; }
  .segmento-dialog-body ul { display: grid; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; color: var(--color-text); font-size: 14px; }
  .segmento-dialog-body li::before { content: '✓'; margin-right: 9px; color: #bd8800; font-weight: 800; }
  .segmento-dialog-close {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0 0 3px;
    border: 0;
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: 0 3px 12px rgba(0,0,0,.2);
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
    transition: transform .25s ease, background .25s ease;
  }
  .segmento-dialog-close:hover, .segmento-dialog-close:focus-visible { background: var(--color-cta); transform: rotate(90deg); }
  body.segmento-dialog-open { overflow: hidden; }

  @media (max-width: 767px) {
    .segmentos-accordion { flex-direction: column; height: auto; gap: 16px; }
    .segmento-card, .segmento-card.is-active { flex: none; height: 236px; }
    .segmento-card.is-active { height: 310px; }
    .segmento-card:not(.is-active) .segmento-expanded { opacity: 0; }
    .segmento-card.is-active .segmento-expanded { opacity: 1; }
    .segmento-card .segmento-more { opacity: 1; transform: scale(1); }
    .segmento-collapsed { writing-mode: horizontal-tb; transform: translateX(-50%); }
    .segmento-card.is-active .segmento-collapsed { transform: translateX(-50%) translateY(10px); }
    .segmento-dialog { padding: 12px; }
    .segmento-dialog-card { grid-template-columns: 1fr; max-height: calc(100vh - 24px); }
    .segmento-dialog-image { height: 210px; min-height: 0; }
    .segmento-dialog-body { padding: 28px 24px 30px; }
    .segmento-dialog-body h2 { font-size: 31px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .segmentos-orb, .segmentos-dot, .segmento-card, .segmento-overlay, .segmento-collapsed, .segmento-expanded, .segmento-more, .segmento-dialog-card { animation: none; transition: none; }
  }

  /* ============================================
     VIDA CRISTÃ (feature band)
  ============================================ */
  .faith-band {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-xl);
    color: var(--color-white);
  }
  .faith-band p + p { margin-top: var(--space-md); }
  .faith-band .section-action { margin-top: var(--space-lg); }

  /* ============================================
     ESTRUTURA
  ============================================ */
  .structure-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  .structure-item {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-md) var(--space-lg);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
  }
  .structure-item svg { width: 18px; height: 18px; color: var(--color-success); flex-shrink: 0; }

  /* ============================================
     INFORMAÇÕES ÚTEIS
  ============================================ */
  .useful-section {
    overflow: hidden;
    background: var(--color-white);
  }
  .useful-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
  }
  .useful-card {
    position: relative;
    perspective: 1000px;
    min-height: 210px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .25s ease;
  }
  .useful-card:hover { box-shadow: 0 12px 28px rgba(39,53,124,.18); }
  .useful-card-inner {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform .6s ease-in-out;
  }
  .useful-card:hover .useful-card-inner,
  .useful-card.is-flipped .useful-card-inner { transform: rotateX(180deg); }
  .useful-card-face {
    position: absolute;
    display: grid;
    place-items: center;
    align-content: center;
    inset: 0;
    padding: var(--space-xl) var(--space-lg);
    overflow: hidden;
    border: 1px solid rgba(39,53,124,.1);
    border-radius: inherit;
    text-align: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  .useful-card-front {
    width: 100%;
    appearance: none;
    background: var(--color-yellow);
    color: var(--color-primary);
    cursor: pointer;
    font: inherit;
  }
  .useful-card-front::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0 0 auto;
    height: 30%;
    background: rgba(255,255,255,.2);
  }
  .useful-card-front::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 170%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    left: -125%;
    bottom: -95%;
  }
  .useful-card:hover .useful-card-front {
    background: #F2B21C;
  }
  .useful-card-back {
    background: var(--color-primary);
    color: var(--color-white);
    transform: rotateX(180deg);
  }
  .useful-card-back p {
    max-width: 22ch;
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
  }
  .useful-card-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: var(--space-md);
    color: var(--color-yellow);
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .useful-card-link:focus-visible { outline-color: var(--color-yellow); }
  .js-enabled .useful-card { opacity: 0; }
  .js-enabled .useful-grid.is-visible .useful-card { animation: useful-card-in .55s cubic-bezier(.22,.61,.36,1) both; }
  .useful-card:nth-child(2) { animation-delay: .06s; }
  .useful-card:nth-child(3) { animation-delay: .12s; }
  .useful-card:nth-child(4) { animation-delay: .18s; }
  .useful-card:nth-child(5) { animation-delay: .24s; }
  .useful-card:nth-child(6) { animation-delay: .30s; }
  .useful-card:nth-child(7) { animation-delay: .36s; }
  .useful-card:nth-child(8) { animation-delay: .42s; }
  .useful-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-md);
    border: 2px solid currentColor;
    border-radius: 50%;
  }
  .useful-icon svg { width: 30px; height: 30px; }
  .useful-card h3 {
    max-width: 16ch;
    margin: 0;
    color: inherit;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
  }
  @keyframes useful-card-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ============================================
     DEPOIMENTOS
  ============================================ */
  .testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-lg);
  }
  .testimonial-card blockquote {
    margin: 0;
    font-size: 15px;
    color: var(--color-text);
    font-style: italic;
  }
  .testimonial-card footer {
    margin-top: var(--space-md);
    font-size: 14px;
    color: var(--color-text-secondary);
    font-weight: 500;
  }

  /* ============================================
     SELOS
  ============================================ */
  .section-text + .section-action { margin-top: var(--space-lg); }

  /* ============================================
     MATRÍCULA CTA BAND
  ============================================ */
  .enroll-band {
    background: var(--color-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-xl);
  }
  .enroll-band .btn-cta { margin-top: var(--space-xl); }

  /* ============================================
     CONTATO / FORM
  ============================================ */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .contact-info-list {
    margin-top: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }
  .contact-title {
    color: var(--color-text);
    font-size: 18px;
    font-weight: 600;
  }
  .contact-info-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
    font-size: 15px;
    color: var(--color-text);
  }
  .contact-info-item svg { width: 20px; height: 20px; color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }
  .contact-info-item strong { font-weight: 600; }
  .contact-info-item span { display: block; color: var(--color-text-secondary); font-size: 14px; }

  .form-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-xl);
  }
  .form-field { margin-bottom: var(--space-lg); }
  .form-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
  }
  .form-field .required { color: var(--color-error); }
  .form-field input,
  .form-field select,
  .form-field textarea {
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--color-text);
    background: var(--color-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .form-field input::placeholder,
  .form-field textarea::placeholder { color: #747A86; }
  .form-field input:focus,
  .form-field select:focus,
  .form-field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(39,53,124,.18);
  }
  .form-field textarea { min-height: 110px; resize: vertical; }
  .form-field.has-error input,
  .form-field.has-error select,
  .form-field.has-error textarea {
    border-color: var(--color-error);
  }
  .form-error-text {
    display: none;
    color: var(--color-error);
    font-size: 13px;
    margin-top: var(--space-xs);
  }
  .form-field.has-error .form-error-text { display: block; }
  .form-success {
    display: none;
    background: var(--color-green-soft);
    color: #116630;
    border-radius: var(--radius-sm);
    padding: var(--space-md) var(--space-lg);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: var(--space-lg);
  }
  .form-success.is-visible { display: block; }

  /* ============================================
     FOOTER
  ============================================ */
  .site-footer {
    background: var(--color-primary);
    color: rgba(255,255,255,0.75);
    padding: var(--space-2xl) 0 var(--space-lg);
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .footer-brand p {
    margin-top: var(--space-md);
    font-size: 14px;
    line-height: 1.6;
    max-width: 380px;
  }
  .footer-heading {
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--space-md);
  }
  .footer-links { display: flex; flex-direction: column; gap: var(--space-sm); }
  .footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .footer-links a:hover, .footer-links a:focus-visible { color: var(--color-white); }
  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: space-between;
  }
  .footer-logo {
    width: min(230px, 100%);
    height: auto;
  }

  /* ============================================
     STICKY WHATSAPP CTA
  ============================================ */
  .sticky-cta {
    position: fixed;
    right: var(--space-lg);
    bottom: var(--space-lg);
    z-index: 400;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .sticky-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .sticky-cta a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--color-success);
    color: var(--color-white);
    font-weight: 600;
    font-size: 14px;
    padding: 14px 22px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    min-height: 44px;
  }
  .sticky-cta a:hover, .sticky-cta a:focus-visible { background: #116630; }
  .sticky-cta svg { width: 20px; height: 20px; }

  /* ============================================
     RESPONSIVE — MOBILE HEADER
  ============================================ */
  @media (max-width: 767px) {
    .site-header { padding: 8px 12px; }
    html { scroll-padding-top: 88px; }
    .header-ribbon { display: none; }
    .nav-wrap {
      min-height: 62px;
      padding: 6px 10px 6px 18px;
      gap: 10px;
    }
    .logo {
      max-width: calc(100% - 54px);
    }
    .logo img {
      width: 140px;
      max-height: 46px;
    }
    .nav-toggle {
      flex: 0 0 44px;
    }
  }

  /* ============================================
     RESPONSIVE — TABLET (>=768px)
  ============================================ */
  @media (min-width: 768px) {
    .section { padding: var(--space-3xl) 0; }
    .hero { padding: var(--space-3xl) 0 var(--space-4xl); }
    .hero-title { font-size: 44px; }
    .hero-subtitle { font-size: 17px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .structure-grid { grid-template-columns: repeat(3, 1fr); }
    .useful-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  }

  /* ============================================
     RESPONSIVE — DESKTOP (>=1024px)
  ============================================ */
  @media (min-width: 768px) {
    .nav-wrap {
      display: grid;
      grid-template-columns: 140px minmax(0, 1fr) 164px;
      gap: 8px;
      padding: 8px 14px;
    }
    .logo img { width: 140px; }
    .nav-links {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 4px;
      min-width: 0;
    }
    .nav-links a { padding: 8px 4px; }
    .nav-cta {
      display: inline-flex;
      white-space: normal;
      padding: 10px 12px;
      line-height: 1.35;
    }
    .nav-toggle { display: none; }
    .mobile-menu,
    .mobile-menu.is-open { display: none; }
  }

  @media (min-width: 1024px) {
    .nav-wrap {
      grid-template-columns: 156px minmax(0, 1fr) auto;
      gap: 20px;
      padding: 8px 18px 8px 24px;
    }
    .logo img { width: 156px; }
    .nav-links a { font-size: 14px; padding-left: 8px; padding-right: 8px; }
    .nav-links { gap: 8px; }
    .nav-cta { font-size: 14px; padding: 10px 20px; }
  }

  @media (min-width: 1024px) {
    .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
    .hero-title { font-size: 52px; }
    .card-grid { grid-template-columns: repeat(3, 1fr); }
    .structure-grid { grid-template-columns: repeat(3, 1fr); }
    .useful-card { min-height: 240px; }
  }
