/* ── RESET GLOBAL ─────────────────────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --black:    #000000;
      --white:    #ffffff;
      --muted:    #666666;
      --border:   rgba(0,0,0,0.1);
      --hover-bg: #f5f5f5;
      --ease:     cubic-bezier(0.4, 0, 0.2, 1);
      --font:     'Miranda Sans', sans-serif;
    }

    body {
      font-family: var(--font);
      background: transparent;
      -webkit-font-smoothing: antialiased;
    }
    /*----------------------------------------------- CSS DO CABEÇALHO -----------------------------------------------*/
    /* ── HEADER ─────────────────────────────────────────────────────── */
    header {
      background: var(--white);
      border-bottom: 1px solid var(--border);
      position: relative;
      z-index: 100;
    }

    .header-inner {
      width: 100%;
      padding: 0 4%;
      height: 68px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    /* ── LOGO ───────────────────────────────────────────────────────── */
    .header-inner .logo {
      display: flex;
      align-items: center;
      gap: 8px;
      text-decoration: none;
      flex-shrink: 0;
      margin-right: 3%;
    }

    .header-inner .logo-mark {
      width: clamp(44px, 4vw, 52px);
      height: clamp(44px, 4vw, 52px);
      flex-shrink: 0;
      display: block;
    }

    .header-inner .logo-name {
      font-size: clamp(14px, 1.2vw, 17px);
      font-weight: 600;
      color: var(--black);
      display: block;
    }

    .header-inner .logo-sub {
      font-size: clamp(9px, 0.7vw, 10px);
      font-weight: 500;
      color: var(--muted);
      letter-spacing: 1.4px;
      text-transform: uppercase;
      margin-top: 3px;
      display: block;
    }

    /* ── NAV (desktop) ──────────────────────────────────────────────── */
    .header-inner nav {
      display: flex;
      align-items: stretch;
      height: 100%;
      flex: 1;
    }

    .header-inner .nav-item {
      position: relative;
      display: flex;
      align-items: center;
    }

    .header-inner .nav-link {
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 0 clamp(8px, 1.2vw, 16px);
      font-size: clamp(12px, 1vw, 13.5px);
      font-weight: 500;
      color: var(--muted);
      text-decoration: none !important;
      cursor: pointer;
      height: 100%;
      border-bottom: 2px solid transparent;
      transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
      white-space: nowrap;
      user-select: none;
    }

    .header-inner .nav-item:hover > .nav-link {
      color: var(--black);
      border-bottom-color: var(--black);
    }

    .header-inner .chevron {
      width: 13px;
      height: 13px;
      opacity: 0.4;
      transition: transform 0.2s var(--ease);
      flex-shrink: 0;
    }

    .header-inner .nav-item:hover > .nav-link .chevron {
      transform: rotate(180deg);
      opacity: 0.7;
    }

    /* ── DROPDOWN ───────────────────────────────────────────────────── */
    .header-inner .dropdown {
      position: absolute;
      top: calc(100% + 1px);
      left: 0;
      background: var(--white);
      border: 1px solid var(--border);
      border-top: 2px solid var(--black);
      border-radius: 0 0 10px 10px;
      min-width: 200px;
      padding: 6px 0;
      box-shadow: 0 12px 32px rgba(0,0,0,0.1);
      z-index: 9999;
      opacity: 0;
      pointer-events: none;
      transform: translateY(-6px);
      transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    }

    /* evita que dropdowns nos últimos itens “escapem” para fora da tela */
    .header-inner .nav-item:last-child .dropdown,
    .header-inner .nav-item:nth-last-child(2) .dropdown {
      left: auto;
      right: 0;
    }

    /* ponte invisível entre o nav-link e o dropdown para o mouse não "cair" */
    .header-inner .nav-item::after {
      content: '';
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      height: 12px;
    }

    .header-inner .nav-item:hover .dropdown {
      opacity: 1;
      pointer-events: all;
      transform: translateY(0);
      transition-delay: 0s;
      z-index: 2;
    }

    .header-inner .nav-item:not(:hover) .dropdown {
      transition-delay: 0s;
    }

    .header-inner .dropdown-link {
      display: block;
      padding: 10px 20px;
      font-size: 13.5px;
      color: #333;
      text-decoration: none !important;
      transition: background 0.15s;
    }

    .header-inner .dropdown-link:hover {
      background: var(--hover-bg);
      color: var(--black);
    }

    .header-inner .dropdown-divider {
      height: 1px;
      background: var(--border);
      margin: 4px 0;
    }

    /* Línguas em grid */
    .header-inner .dropdown.languages {
      min-width: 240px;
      padding: 10px;
    }

    .header-inner .dd-section-label {
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      color: var(--muted);
      padding: 2px 8px 8px;
    }

    .header-inner .lang-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2px;
    }

    .header-inner .lang-chip {
      display: block;
      padding: 8px 10px;
      border-radius: 6px;
      font-size: 13px;
      color: #333;
      text-decoration: none;
      transition: background 0.15s;
    }

    .header-inner .lang-chip:hover {
      background: var(--hover-bg);
      color: var(--black);
    }

    /* evita cor azul herdada de temas/plugins do WordPress */
    header .nav-link,
    header .nav-link:link,
    header .nav-link:visited {
      color: var(--muted) !important;
    }

    header .nav-item:hover > .nav-link,
    header .nav-item:hover > .nav-link:visited {
      color: var(--black) !important;
    }

    header .dropdown-link,
    header .dropdown-link:link,
    header .dropdown-link:visited,
    header .lang-chip,
    header .lang-chip:link,
    header .lang-chip:visited,
    header .mobile-link,
    header .mobile-link:link,
    header .mobile-link:visited,
    header .mobile-sub a,
    header .mobile-sub a:link,
    header .mobile-sub a:visited {
      color: #333 !important;
    }

    header .mobile-link,
    header .mobile-link:link,
    header .mobile-link:visited {
      color: var(--black) !important;
    }

    /* ── HAMBÚRGUER ─────────────────────────────────────────────────── */
    .hamburger {
      display: none;           /* escondido no desktop */
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      width: 36px;
      height: 36px;
      cursor: pointer;
      margin-left: auto;
      background: none;
      border: none;
      padding: 4px;
    }

    .hamburger span {
      display: block;
      height: 2px;
      background: var(--black);
      border-radius: 2px;
      transition: transform 0.25s var(--ease), opacity 0.2s;
    }

    /* animação → X quando aberto */
    .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* ── MENU MOBILE ────────────────────────────────────────────────── */
    .mobile-menu {
      display: none;           /* escondido no desktop */
      position: absolute;
      top: 68px;
      left: 0;
      width: 100%;
      background: #ffffff;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      overflow-y: auto;
      max-height: calc(100vh - 68px);
    }

    .mobile-menu.open { display: block; }

    /* item simples */
    .mobile-menu .mobile-link {
      display: block;
      padding: 14px 6%;
      min-height: 44px;
      font-size: 15px;
      font-weight: 500;
      color: var(--black);
      text-decoration: none;
      border-bottom: 1px solid var(--border);
      cursor: pointer;
      user-select: none;
    }

    .mobile-menu .mobile-link:hover { background: var(--hover-bg); }

    /* grupo com submenu */
    .mobile-menu .mobile-group summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 6%;
      min-height: 44px;
      font-size: 15px;
      font-weight: 500;
      color: var(--black);
      border-bottom: 1px solid var(--border);
      cursor: pointer;
      list-style: none;
      user-select: none;
    }

    .mobile-menu .mobile-group summary::-webkit-details-marker { display: none; }

    .mobile-menu .mobile-group summary svg {
      width: 14px;
      height: 14px;
      opacity: 0.4;
      transition: transform 0.2s var(--ease);
    }

    .mobile-menu .mobile-group[open] summary svg { transform: rotate(180deg); opacity: 0.7; }

    .mobile-menu .mobile-sub {
      background: #ffffff;
      border-bottom: 1px solid var(--border);
    }

    .mobile-menu .mobile-sub a {
      display: block;
      padding: 11px 8%;
      min-height: 44px;
      font-size: 14px;
      color: #333 !important;
      text-decoration: none !important;
      border-bottom: 1px solid var(--border);
    }

    .mobile-menu .mobile-sub a:last-child { border-bottom: none; }
    .mobile-menu .mobile-sub a:hover { color: var(--black); }

    /* tablet e telas médias: prioriza menu hambúrguer para evitar quebra do nav */
    @media (max-width: 1024px) {
      header .header-inner nav { display: none !important; }
      header .hamburger { display: flex !important; }
      header { position: relative; } /* para o menu mobile se posicionar certo */
      .header-inner { height: 64px; }
      .mobile-menu {
        top: 64px;
        max-height: calc(100vh - 64px);
      }
    }

    /* mobile menor: reduz ruído visual do logo e preserva espaço útil */
    @media (max-width: 480px) {
      .header-inner { padding: 0 5%; }
      .logo { gap: 10px; margin-right: 0; }
      .logo-mark {
        width: 36px;
        height: 36px;
      }
      .logo-sub { display: none; }
      .logo-name { font-size: 13px; }
      .hamburger {
        width: 40px;
        height: 40px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
      }
    }

    .nav-link:focus-visible,
    .dropdown-link:focus-visible,
    .mobile-link:focus-visible,
    .mobile-sub a:focus-visible,
    .mobile-group summary:focus-visible,
    .hamburger:focus-visible {
      outline: 2px solid var(--black);
      outline-offset: 2px;
    }

    /* ── PÁGINA DE VIDEOBLOGS ─────────────────────────────────────────── */
    .videoblogs-page {
      background: #f6f7f3;
      color: var(--black);
      overflow: hidden;
    }

    .banner {
      min-height: clamp(260px, 32vw, 410px);
      position: relative;
      isolation: isolate;
      display: grid;
      place-items: center;
      overflow: hidden;
    }

    .imgBanner {
      position: absolute;
      inset: 0;
      z-index: -2;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center 72%;
    }

    .banner::after {
      content: '';
      position: absolute;
      inset: 0;
      z-index: -1;
      background: linear-gradient(90deg, rgba(8,14,3,.82), rgba(8,14,3,.46) 54%, rgba(8,14,3,.66));
    }

    .banner-content {
      width: min(1180px, 88%);
      padding: 56px 0;
      color: var(--white);
    }

    .banner-kicker,
    .section-kicker,
    .now-playing {
      color: #b8dc18;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: .16em;
      text-transform: uppercase;
    }

    .titulo {
      max-width: 800px;
      margin-top: 9px;
      font-size: clamp(52px, 8vw, 104px);
      font-weight: 650;
      line-height: .92;
      letter-spacing: -.05em;
    }

    .banner-description {
      max-width: 560px;
      margin-top: 22px;
      color: rgba(255,255,255,.82);
      font-size: clamp(16px, 2vw, 20px);
      line-height: 1.55;
    }

    .video-showcase {
      width: min(1180px, 88%);
      margin: 0 auto;
      padding: clamp(64px, 8vw, 112px) 0;
    }

    .section-intro {
      display: grid;
      grid-template-columns: minmax(0, .9fr) minmax(300px, .7fr);
      gap: clamp(36px, 8vw, 112px);
      align-items: end;
      margin-bottom: 44px;
      position: static;
      z-index: auto;
      background: transparent;
      border: 0;
    }

    .section-kicker { color: #718b00; }

    .section-intro h2 {
      max-width: 650px;
      margin-top: 10px;
      font-size: clamp(34px, 5vw, 62px);
      font-weight: 600;
      line-height: 1.02;
      letter-spacing: -.035em;
    }

    .section-intro > p {
      color: var(--muted);
      font-size: 17px;
      line-height: 1.65;
    }

    .player-card {
      overflow: hidden;
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 24px;
      box-shadow: 0 24px 70px rgba(27,35,15,.12);
    }

    .player-frame {
      position: relative;
      aspect-ratio: 16 / 9;
      background: #10120d;
    }

    #videoPlayer {
      display: block;
      width: 100%;
      height: 100%;
      border: 0;
    }

    .local-player-fallback[hidden] { display: none; }

    .local-player-fallback {
      position: relative;
      display: block;
      width: 100%;
      height: 100%;
      overflow: hidden;
      color: var(--white);
      background: #10120d;
      text-decoration: none;
    }

    .local-player-fallback > img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: .66;
      transition: opacity .25s var(--ease), transform .45s var(--ease);
    }

    .local-player-fallback::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(0deg, rgba(0,0,0,.78), rgba(0,0,0,.08) 68%);
    }

    .local-player-fallback__overlay {
      position: absolute;
      z-index: 1;
      left: clamp(20px, 4vw, 48px);
      right: clamp(20px, 4vw, 48px);
      bottom: clamp(20px, 4vw, 44px);
      display: flex;
      align-items: center;
      gap: 18px;
    }

    .local-player-fallback__icon {
      flex: 0 0 auto;
      display: grid;
      place-items: center;
      width: 58px;
      height: 58px;
      color: var(--white);
      background: #92b300;
      border-radius: 50%;
      box-shadow: 0 10px 30px rgba(0,0,0,.3);
    }

    .local-player-fallback__icon svg { width: 30px; height: 30px; }
    .local-player-fallback__overlay strong { display: block; font-size: clamp(20px, 3vw, 32px); }
    .local-player-fallback__overlay small { display: block; margin-top: 5px; color: rgba(255,255,255,.75); font-size: 13px; }
    .local-player-fallback:hover > img { opacity: .8; transform: scale(1.02); }

    .playerInfo {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 28px;
      padding: clamp(22px, 3vw, 34px);
    }

    .playerInfo h3 {
      margin-top: 7px;
      font-size: clamp(26px, 3vw, 38px);
      line-height: 1.1;
    }

    #videoData {
      margin-top: 8px;
      color: var(--muted);
      font-size: 15px;
    }

    .class-badge {
      flex: 0 0 auto;
      padding: 9px 15px;
      color: #506400;
      background: #edf5cc;
      border: 1px solid #d9e99a;
      border-radius: 999px;
      font-size: 14px;
      font-weight: 700;
    }

    .playlist-heading {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 20px;
      margin: clamp(64px, 8vw, 96px) 0 24px;
    }

    .playlist-heading h2 {
      font-size: clamp(28px, 4vw, 42px);
      letter-spacing: -.025em;
    }

    .playlist-heading p { color: var(--muted); font-size: 14px; }

    .video-grid {
      display: grid;
      grid-template-columns: repeat(6, minmax(0, 1fr));
      gap: 22px;
    }

    .video-card {
      grid-column: span 2;
      overflow: hidden;
      min-width: 0;
      padding: 0;
      color: inherit;
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: 16px;
      box-shadow: 0 8px 24px rgba(27,35,15,.06);
      font: inherit;
      text-align: left;
      cursor: pointer;
      transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
    }

    .video-card:nth-child(-n+2) { grid-column: span 3; }

    .video-card:hover {
      transform: translateY(-5px);
      border-color: rgba(113,139,0,.45);
      box-shadow: 0 18px 38px rgba(27,35,15,.12);
    }

    .video-card.active {
      border-color: #92b300;
      box-shadow: 0 0 0 2px #92b300, 0 16px 36px rgba(69,87,0,.15);
    }

    .video-card:focus-visible {
      outline: 3px solid #92b300;
      outline-offset: 4px;
    }

    .thumbnail-wrap {
      position: relative;
      display: block;
      aspect-ratio: 16 / 9;
      overflow: hidden;
      background: #dfe3d5;
    }

    .thumb {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform .45s var(--ease);
    }

    .video-card:hover .thumb { transform: scale(1.035); }

    .thumbnail-wrap::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(0deg, rgba(0,0,0,.24), transparent 45%);
      pointer-events: none;
    }

    .play-badge {
      position: absolute;
      right: 16px;
      bottom: 14px;
      z-index: 1;
      display: grid;
      place-items: center;
      width: 46px;
      height: 46px;
      color: var(--black);
      background: rgba(255,255,255,.93);
      border-radius: 50%;
      box-shadow: 0 8px 24px rgba(0,0,0,.2);
      transition: color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
    }

    .play-badge svg { width: 24px; height: 24px; }
    .video-card.active .play-badge,
    .video-card:hover .play-badge { color: var(--white); background: #92b300; transform: scale(1.06); }

    .card-content { display: block; padding: 19px 20px 20px; }
    .card-content strong { display: block; font-size: clamp(19px, 2vw, 24px); line-height: 1.2; }

    .card-meta {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      margin-top: 11px;
      color: var(--muted);
      font-size: 13px;
    }

    .card-meta span:last-child { color: #617700; font-weight: 700; }

    @media (max-width: 860px) {
      .section-intro { grid-template-columns: 1fr; gap: 22px; }
      .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .video-card,
      .video-card:nth-child(-n+2) { grid-column: span 1; }
    }

    @media (max-width: 600px) {
      .banner { min-height: 330px; }
      .banner-content,
      .video-showcase { width: min(90%, 1180px); }
      .titulo { font-size: clamp(48px, 17vw, 72px); }
      .player-card { border-radius: 16px; }
      .playerInfo { align-items: flex-start; padding: 20px; }
      .class-badge { padding: 7px 11px; font-size: 12px; }
      .video-grid { grid-template-columns: 1fr; gap: 18px; }
      .playlist-heading { align-items: flex-end; }
    }
