﻿/* Home v5 — implantado 2026-07-23. Backup: SystemPHPContext/generated/home-backup-2026-07-23 */
body.home-v5 { text-align: left; }

    /*
      index_v5 â€” modernizaÃ§Ã£o da home atual (CPTA Â· Open Â· Super50 Â· infos Â· banners Â· parceiros)
      Melhorias propostas vs. Blade de hoje:
      1. Hero full-bleed com marca em escala, em vez de banner topo duplicado
      2. Nav sticky limpa (sem logo minÃºsculo + dropdowns densos no primeiro olhar)
      3. Cada circuito = seÃ§Ã£o com identidade cromÃ¡tica (nÃ£o alert Bootstrap)
      4. CTA primÃ¡rio (InscriÃ§Ã£o) destacado; docs secundÃ¡rios em chips
      5. Tabelas de preÃ§o legÃ­veis + scroll no mobile
      6. Infos (Facebook / Resultados / Fotos) sem caixas alert empilhadas
      7. Parceiro sem card-header pesado
      8. Tipografia e ritmo vertical consistentes
    */
    :root {
      --ink: #0b2430;
      --muted: #4d6672;
      --paper: #f3f7f8;
      --white: #ffffff;
      --water: #0f7c8a;
      --water-deep: #0a4f5c;
      --cpta: #1a7a4c;
      --cpta-soft: #e7f5ee;
      --open: #1c5f9a;
      --open-soft: #e8f1f9;
      --s50: #8a4b12;
      --s50-soft: #f8efe4;
      --signal: #e3a008;
      --line: #d5e2e7;
      --radius: 10px;
      --max: 1100px;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: "Source Sans 3", sans-serif;
      color: var(--ink);
      background: var(--paper);
      line-height: 1.5;
    }
    h1, h2, h3, .brand, .nav-brand {
      font-family: Outfit, sans-serif;
      letter-spacing: -0.03em;
    }
    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; display: block; }

    .wrap {
      width: min(var(--max), 92vw);
      margin: 0 auto;
    }

    /* â€”â€” Top nav â€”â€” */
    .site-nav {
      position: sticky;
      top: 0;
      z-index: 20;
      background: rgba(243, 247, 248, 0.92);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--line);
    }
    .site-nav .inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 0.85rem 0;
    }
    .nav-brand {
      display: inline-flex;
      align-items: center;
      gap: 0.65rem;
      font-weight: 800;
      font-size: 1.05rem;
      color: var(--water-deep);
    }
    .nav-brand img {
      height: 40px;
      width: auto;
      object-fit: contain;
    }
    .nav-brand span { white-space: nowrap; }
    @media (max-width: 520px) {
      .nav-brand span { display: none; }
    }
    .nav-auth {
      display: inline-flex;
      align-items: center;
      gap: 0.6rem;
    }
    .nav-user {
      font-weight: 700;
      color: var(--water-deep);
      max-width: 12ch;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .nav-login {
      border: 1px solid var(--water);
      color: var(--water) !important;
      padding: 0.4rem 0.9rem;
      border-radius: 999px;
      font-size: 0.85rem;
      font-weight: 700;
    }
    .nav-login:hover { background: var(--water); color: #fff !important; }
    .nav-logout-form { margin: 0; }
    .nav-logout {
      border: 1px solid var(--line);
      background: transparent;
      color: var(--muted);
      padding: 0.35rem 0.8rem;
      border-radius: 999px;
      font-size: 0.82rem;
      font-weight: 700;
      cursor: pointer;
    }
    .nav-logout:hover { border-color: var(--water); color: var(--water); }

    /* —— Hero —— */
    .hero {
      position: relative;
      min-height: min(88vh, 720px);
      display: grid;
      align-items: center;
      color: #fff;
      overflow: hidden;
      background:
        linear-gradient(180deg, rgba(8, 36, 48, 0.2) 0%, rgba(8, 36, 48, 0.55) 45%, rgba(8, 36, 48, 0.9) 100%),
        url("/media/art/background_gaivotas.jpeg") center / cover no-repeat;
    }
    .hero::after {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 70% 45% at 80% 15%, rgba(15, 124, 138, 0.45), transparent 60%);
      animation: drift 16s ease-in-out infinite alternate;
      pointer-events: none;
    }
    @keyframes drift {
      from { transform: translateX(-2%) scale(1); }
      to { transform: translateX(3%) scale(1.04); }
    }
    .hero .wrap {
      position: relative;
      z-index: 1;
      padding: 1.25rem 0 3.5rem;
      width: min(var(--max), 92vw);
      margin-inline: auto;
    }
    .hero-nav {
      margin-bottom: 2rem;
      animation: rise 0.7s ease both;
    }
    .hero-nav-links {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: flex-end;
      gap: 0.45rem 1.15rem;
      list-style: none;
      font-size: 0.95rem;
      font-weight: 600;
    }
    .hero-nav-links a {
      color: rgba(255, 255, 255, 0.9);
      text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
    }
    .hero-nav-links a:hover { color: #fff; }
    .hero-nav-cta {
      background: var(--signal);
      color: #062028 !important;
      padding: 0.45rem 0.95rem;
      border-radius: 999px;
      font-size: 0.88rem;
      font-weight: 700;
      text-shadow: none !important;
    }
    .hero-nav-cta:hover { filter: brightness(1.06); color: #062028 !important; }
    @media (max-width: 600px) {
      .hero-nav-links { justify-content: flex-start; gap: 0.4rem 0.9rem; font-size: 0.88rem; }
    }
    .hero-grid {
      display: grid;
      grid-template-columns: 0.9fr 1.15fr;
      gap: 2rem 2.5rem;
      align-items: center;
    }
    @media (max-width: 900px) {
      .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
      }
    }
    .hero-copy {
      min-width: 0;
    }
    .brand {
      font-size: clamp(2.6rem, 7vw, 4.6rem);
      font-weight: 800;
      line-height: 0.95;
      margin-bottom: 0.85rem;
      animation: rise 0.85s ease both;
    }
    .hero-logo {
      display: block;
      width: min(280px, 58vw);
      height: auto;
      margin-bottom: 1rem;
      filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
      animation: rise 0.85s ease both;
    }
    .hero .brand-name {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }
    .hero h1 {
      font-size: clamp(1.2rem, 2.6vw, 1.65rem);
      font-weight: 600;
      max-width: 22ch;
      margin-bottom: 0.55rem;
      animation: rise 0.85s 0.08s ease both;
    }
    .hero .support {
      max-width: 42ch;
      opacity: 0.92;
      margin-bottom: 0;
      animation: rise 0.85s 0.16s ease both;
    }
    @keyframes rise {
      from { opacity: 0; transform: translateY(16px); }
      to { opacity: 1; transform: none; }
    }

    /* Hero carousel (direita) */
    .hero-carousel {
      position: relative;
      margin-right: 0.5rem;
      border-radius: var(--radius);
      overflow: hidden;
      background: rgba(8, 36, 48, 0.45);
      border: 1px solid rgba(255, 255, 255, 0.18);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
      animation: rise 0.85s 0.18s ease both;
      min-height: 280px;
    }
    .hero-carousel-track {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      background: rgba(0, 0, 0, 0.25);
    }
    .hero-carousel-slide {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.55s ease;
      z-index: 0;
      padding: 0.5rem;
    }
    .hero-carousel-slide.is-active {
      opacity: 1;
      visibility: visible;
      z-index: 1;
    }
    .hero-carousel-slide a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;
    }
    .hero-carousel-slide img {
      display: block;
      width: 100%;
      height: 100%;
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      object-position: center;
    }
    .hero-carousel-dots {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0.75rem;
      z-index: 2;
      display: flex;
      justify-content: center;
      gap: 0.4rem;
      pointer-events: none;
    }
    .hero-carousel-dot {
      pointer-events: auto;
      width: 0.55rem;
      height: 0.55rem;
      border-radius: 999px;
      border: 0;
      padding: 0;
      background: rgba(255, 255, 255, 0.45);
      cursor: pointer;
      transition: background 0.2s ease, transform 0.2s ease;
    }
    .hero-carousel-dot.is-active {
      background: #fff;
      transform: scale(1.2);
    }
    .hero-carousel-dot:focus-visible {
      outline: 2px solid var(--signal);
      outline-offset: 2px;
    }
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.8rem 1.25rem;
      font-weight: 700;
      font-size: 0.92rem;
      border-radius: 999px;
      border: 0;
      cursor: pointer;
      transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    }
    .btn:hover { transform: translateY(-2px); }
    .btn-signal { background: var(--signal); color: var(--ink); }
    .btn-ghost {
      background: transparent;
      color: #fff;
      border: 1px solid rgba(255,255,255,0.55);
    }

    /* â€”â€” Circuit sections â€”â€” */
    .circuit {
      padding: 3.25rem 0 2.5rem;
    }
    .circuit-cpta {
      background:
        linear-gradient(180deg, rgba(231, 245, 238, 0.55) 0%, rgba(243, 247, 248, 0.68) 100%),
        url("/media/art/background_cpta_001.jpeg") center / cover no-repeat;
    }
    .circuit-open {
      background:
        linear-gradient(180deg, rgba(232, 241, 249, 0.55) 0%, rgba(243, 247, 248, 0.68) 100%),
        url("/media/art/piscina-do-ibirapuera.jpg") center / cover no-repeat;
    }
    .circuit-s50 {
      background:
        linear-gradient(180deg, rgba(248, 239, 228, 0.55) 0%, rgba(243, 247, 248, 0.68) 100%),
        url("/media/art/background_piscina_cotp.jpg") center / cover no-repeat;
    }

    .circuit-head {
      display: flex;
      flex-wrap: wrap;
      align-items: flex-end;
      justify-content: space-between;
      gap: 1rem;
      margin-bottom: 1.25rem;
    }
    .kicker {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      margin-bottom: 0.35rem;
    }
    .circuit-cpta .kicker { color: var(--cpta); }
    .circuit-open .kicker { color: var(--open); }
    .circuit-s50 .kicker { color: var(--s50); }
    .circuit-head h2 {
      font-size: clamp(1.55rem, 3vw, 2.1rem);
      line-height: 1.15;
    }
    .circuit-head p {
      color: var(--muted);
      max-width: 40ch;
      font-size: 0.98rem;
    }

    .actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-bottom: 1.5rem;
    }
    .chip {
      display: inline-flex;
      align-items: center;
      padding: 0.45rem 0.9rem;
      border-radius: 999px;
      font-size: 0.85rem;
      font-weight: 600;
      font-family: inherit;
      line-height: inherit;
      background: var(--white);
      border: 1px solid var(--line);
      color: var(--ink);
      cursor: pointer;
      text-decoration: none;
      transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    }
    .chip:hover { border-color: currentColor; }
    button.chip { appearance: none; }
    .chip-primary {
      color: #fff;
      border-color: transparent;
    }
    .circuit-cpta .chip-primary { background: var(--cpta); }
    .circuit-open .chip-primary { background: var(--open); }
    .circuit-s50 .chip-primary { background: var(--s50); }

    .circuit-body {
      display: grid;
      grid-template-columns: 1.05fr 1fr;
      gap: 1.25rem;
      align-items: start;
    }
    @media (max-width: 860px) {
      .circuit-body { grid-template-columns: 1fr; }
    }

    .banner-slot {
      border-radius: var(--radius);
      overflow: hidden;
      background: #c5d8de;
      min-height: 220px;
      position: relative;
    }
    .banner-slot img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      min-height: 220px;
      transition: transform 0.6s ease;
    }
    .banner-slot:hover img { transform: scale(1.03); }
    .banner-slot .ph {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      color: var(--muted);
      font-weight: 600;
      font-size: 0.9rem;
      background:
        linear-gradient(135deg, rgba(255,255,255,0.35), transparent),
        repeating-linear-gradient(-45deg, transparent, transparent 12px, rgba(255,255,255,0.2) 12px, rgba(255,255,255,0.2) 24px);
    }

    .price-panel {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 1rem 1rem 0.75rem;
      overflow: hidden;
    }
    .price-panel h3 {
      font-size: 1rem;
      margin-bottom: 0.75rem;
    }
    .table-scroll { overflow-x: auto; }
    table.prices {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.9rem;
      min-width: 360px;
    }
    table.prices th,
    table.prices td {
      padding: 0.55rem 0.4rem;
      border-bottom: 1px solid var(--line);
      text-align: center;
    }
    table.prices th:first-child,
    table.prices td:first-child { text-align: left; }
    table.prices thead th {
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: var(--muted);
      font-weight: 700;
    }
    table.prices tbody td:not(:first-child) { font-weight: 600; font-variant-numeric: tabular-nums; }
    .note {
      margin-top: 1rem;
      font-size: 0.88rem;
      color: var(--muted);
      padding: 0.75rem 0 0;
      border-top: 1px solid var(--line);
    }

    /* â€”â€” Infos / util â€”â€” */
    .utils {
      padding: 2.75rem 0;
      background: var(--white);
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }
    .utils h2 {
      font-size: 1.45rem;
      margin-bottom: 0.35rem;
    }
    .utils .lede {
      color: var(--muted);
      margin-bottom: 1.25rem;
      max-width: 42ch;
    }
    .util-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0.85rem;
    }
    @media (max-width: 720px) {
      .util-grid { grid-template-columns: 1fr; }
    }
    .util-link {
      display: block;
      padding: 1.1rem 1.15rem;
      border-radius: var(--radius);
      background: var(--paper);
      border: 1px solid var(--line);
      font-weight: 700;
      transition: border-color 0.2s ease, transform 0.2s ease;
    }
    .util-link:hover {
      border-color: var(--water);
      transform: translateY(-2px);
    }
    .util-link span {
      display: block;
      font-size: 0.8rem;
      font-weight: 500;
      color: var(--muted);
      margin-top: 0.2rem;
    }

    /* â€”â€” Banners / outros eventos â€”â€” */
    .more {
      padding: 3rem 0;
    }
    .more h2 {
      font-size: 1.45rem;
      margin-bottom: 0.35rem;
    }
    .more .lede {
      color: var(--muted);
      margin-bottom: 1.25rem;
    }
    .banner-rail {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
    }
    @media (max-width: 720px) {
      .banner-rail { grid-template-columns: 1fr; }
    }
    .banner-rail .banner-slot { min-height: 160px; }

    /* â€”â€” Partners â€”â€” */
    .partners {
      padding: 2.5rem 0 3rem;
      background: var(--white);
      border-top: 1px solid var(--line);
    }
    .partners h2 {
      font-size: 1.35rem;
      margin-bottom: 0.35rem;
    }
    .partners .lede {
      color: var(--muted);
      margin-bottom: 1.25rem;
    }
    .partner {
      display: inline-flex;
      flex-direction: column;
      gap: 0.5rem;
      max-width: 200px;
    }
    .partner .tag {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .partner a {
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 1rem;
      transition: border-color 0.2s ease;
    }
    .partner a:hover { border-color: var(--water); }

    footer {
      background: var(--ink);
      color: rgba(255,255,255,0.78);
      padding: 2.5rem 0;
      font-size: 0.92rem;
    }
    footer .brand {
      color: #fff;
      font-size: 1.35rem;
      margin-bottom: 0.4rem;
    }
    footer .footer-logo {
      height: 52px;
      width: auto;
      margin-bottom: 0.75rem;
      object-fit: contain;
    }
    footer .cols {
      display: flex;
      flex-wrap: wrap;
      gap: 1.5rem;
      justify-content: space-between;
    }

    

    .reveal {
      animation: rise 0.7s ease both;
    }
  
