:root {
        --bg-dark: #080706;
        --gold-light: #f7e2b7;
        --gold-mid: #d1a153;
        --gold-dark: #7a501a;
        --text-pearl: #ede7dc;
        --text-muted: #a69e90;
        --card-bg: rgba(18, 15, 12, 0.88);
        --card-border: rgba(209, 161, 83, 0.28);
        --focus-ring: #f7e2b7;
      }

      * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }

      html {
        scroll-behavior: smooth;
      }

      body {
        background-color: var(--bg-dark);
        color: var(--text-pearl);
        font-family: "Inter", sans-serif;
        overflow-x: hidden;
        line-height: 1.6;
        min-height: 100vh;
        position: relative;
      }

      :focus-visible {
        outline: 2px solid var(--focus-ring);
        outline-offset: 3px;
        border-radius: 4px;
      }
      .bg-fixed {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: var(--bg-dark);
        background-image: url("images/fundo.webp");
        background-repeat: no-repeat;
        z-index: -2;
        background-size: 100% auto;
        background-position: center top;
      }

      .bg-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: linear-gradient(
          180deg,
          rgba(8, 7, 6, 0.15) 0%,
          rgba(8, 7, 6, 0.5) 40%,
          rgba(8, 7, 6, 0.85) 60%,
          var(--bg-dark) 85%
        );
        z-index: -1;
        pointer-events: none;
      }

      /* SEÇÃO HERO */
      .hero-container {
        position: relative;
        width: 100%;
        min-height: 100svh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2.5rem 1rem 2rem;
      }

      .hero-content {
        width: 100%;
        max-width: 480px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
      }

      .header-logo-wrapper {
        width: 100%;
        max-width: 380px;
        margin-bottom: 1rem;
        display: flex;
        justify-content: center;
      }

      .header-logo {
        width: 100%;
        max-width: 380px;
        height: auto;
        aspect-ratio: 608 / 411;
        object-fit: contain;
        display: block;
        filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.9));
      }

      .quote-block {
        font-family: "Cormorant Garamond", serif;
        font-size: 1.2rem;
        color: var(--text-pearl);
        line-height: 1.35;
        max-width: 320px;
        margin: 0 auto 1.25rem;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
      }

      .quote-author {
        display: block;
        font-size: 0.9rem;
        color: var(--text-muted);
        margin-top: 0.4rem;
        letter-spacing: 0.04em;
      }

      .hero-date-card {
        background: var(--card-bg);
        border: 1px solid var(--card-border);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-radius: 8px;
        padding: 1.2rem 1.5rem;
        width: 100%;
        max-width: 380px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
      }

      .event-date {
        font-family: "Cinzel", serif;
        font-size: 1.45rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        color: var(--gold-mid);
        line-height: 1.1;
      }

      .time-row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.8rem;
        margin: 0.4rem 0 0.5rem;
      }

      .dash {
        height: 1px;
        width: 32px;
        background: var(--gold-mid);
        opacity: 0.6;
      }

      .event-time {
        font-family: "Cinzel", serif;
        font-size: 1.05rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        color: var(--text-pearl);
      }

      .event-tagline {
        font-family: "Cinzel", serif;
        font-size: 0.75rem;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: #b5aba0;
        margin-bottom: 0.8rem;
      }

      .countdown-wrapper {
        border-top: 1px solid rgba(209, 161, 83, 0.2);
        padding-top: 0.75rem;
        margin-top: 0.5rem;
      }

      .countdown-title {
        font-family: "Cinzel", serif;
        font-size: 0.68rem;
        letter-spacing: 0.15em;
        color: var(--gold-light);
        text-transform: uppercase;
        margin-bottom: 0.5rem;
      }

      .countdown-grid {
        display: flex;
        justify-content: center;
        gap: 0.6rem;
      }

      .countdown-box {
        background: rgba(8, 7, 6, 0.6);
        border: 1px solid rgba(209, 161, 83, 0.25);
        border-radius: 6px;
        padding: 0.35rem 0.5rem;
        min-width: 54px;
        text-align: center;
      }

      .countdown-value {
        font-family: "Cinzel", serif;
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--gold-mid);
        line-height: 1;
      }

      .countdown-label {
        font-size: 0.6rem;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-top: 0.15rem;
      }

      /* BOTÕES DE AÇÃO RÁPIDA (AGENDA E COMPARTILHAMENTO) */
      .action-buttons {
        display: flex;
        gap: 0.5rem;
        margin-top: 1rem;
        width: 100%;
        max-width: 380px;
        position: relative;
      }

      .btn-action {
        flex: 1;
        font-family: "Cinzel", serif;
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--gold-light);
        background: rgba(209, 161, 83, 0.12);
        border: 1px solid var(--gold-mid);
        padding: 0.6rem 0.4rem;
        border-radius: 6px;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        cursor: pointer;
        transition: all 0.2s ease;
      }

      .btn-action:hover {
        background: rgba(209, 161, 83, 0.28);
        color: #fff;
        border-color: var(--gold-light);
      }
      .calendar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: calc(50% - 0.25rem);
        margin-top: 0.4rem;
        background: rgba(20, 16, 12, 0.96);
        border: 1px solid var(--gold-mid);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: 6px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.9);
        display: none;
        flex-direction: column;
        z-index: 20;
        overflow: hidden;
      }

      .calendar-menu.show {
        display: flex;
        animation: fadeIn 0.2s ease;
      }

      .calendar-item {
        padding: 0.6rem 0.8rem;
        font-family: "Cinzel", serif;
        font-size: 0.7rem;
        color: var(--text-pearl);
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        border-bottom: 1px solid rgba(209, 161, 83, 0.12);
        transition: background 0.2s;
      }

      .calendar-item:last-child {
        border-bottom: none;
      }

      .calendar-item:hover {
        background: rgba(209, 161, 83, 0.2);
        color: var(--gold-light);
      }

      /* ESTRUTURA DE ABAS COMPACTA E RESPONSIVA COM CARROSSEL MOBILE */
      .main-compact {
        position: relative;
        max-width: 640px;
        margin: 0 auto;
        padding: 0 1rem 3.5rem;
      }

      .tabs-nav {
        display: flex;
        gap: 0.35rem;
        margin-bottom: 0.5rem;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        padding-bottom: 4px;
        scrollbar-width: thin;
        scrollbar-color: rgba(209, 161, 83, 0.4) transparent;
      }

      .tabs-nav::-webkit-scrollbar {
        height: 3px;
      }

      .tabs-nav::-webkit-scrollbar-track {
        background: transparent;
      }

      .tabs-nav::-webkit-scrollbar-thumb {
        background: rgba(209, 161, 83, 0.4);
        border-radius: 3px;
      }

      .tab-btn {
        flex: 0 0 auto;
        scroll-snap-align: center;
        background: rgba(18, 15, 12, 0.75);
        border: 1px solid var(--card-border);
        border-bottom: none;
        border-radius: 8px 8px 0 0;
        padding: 0.65rem 0.95rem;
        color: var(--text-muted);
        font-family: "Cinzel", serif;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        cursor: pointer;
        transition: all 0.25s ease;
        text-align: center;
        white-space: nowrap;
      }

      .tab-btn.active,
      .tab-btn[aria-selected="true"] {
        background: var(--card-bg);
        color: var(--gold-light);
        border-color: var(--gold-mid);
        border-bottom: 2px solid var(--gold-mid);
      }

      @media (min-width: 580px) {
        .tabs-nav {
          overflow-x: visible;
          padding-bottom: 0;
          scrollbar-width: none;
        }

        .tabs-nav::-webkit-scrollbar {
          display: none;
        }

        .tab-btn {
          flex: 1;
          padding: 0.7rem 0.2rem;
          font-size: 0.78rem;
        }
      }

      .tab-content-card {
        background: var(--card-bg);
        border: 1px solid var(--card-border);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 0 0 10px 10px;
        padding: 1.75rem 1.5rem;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
        min-height: 250px;
      }

      .tab-pane {
        display: none;
        animation: fadeIn 0.3s ease;
      }

      .tab-pane.active {
        display: block;
      }

      @keyframes fadeIn {
        from {
          opacity: 0;
          transform: translateY(4px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      /* CRONOGRAMA / TIMELINE */
      .timeline-list {
        list-style: none;
        position: relative;
        padding-left: 1.5rem;
      }

      .timeline-list::before {
        content: "";
        position: absolute;
        left: 6px;
        top: 6px;
        bottom: 6px;
        width: 2px;
        background: rgba(209, 161, 83, 0.3);
      }

      .timeline-item {
        position: relative;
        margin-bottom: 1.25rem;
      }

      .timeline-item:last-child {
        margin-bottom: 0;
      }

      .timeline-item::before {
        content: "";
        position: absolute;
        left: -1.5rem;
        top: 4px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--gold-mid);
        border: 2px solid var(--bg-dark);
        box-shadow: 0 0 8px var(--gold-mid);
      }

      .timeline-time {
        font-family: "Cinzel", serif;
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--gold-light);
        margin-bottom: 0.1rem;
      }

      .timeline-title {
        font-family: "Cinzel", serif;
        font-size: 0.95rem;
        color: var(--text-pearl);
        margin-bottom: 0.2rem;
      }

      .timeline-desc {
        font-size: 0.85rem;
        color: var(--text-muted);
        line-height: 1.4;
      }

      /* PALESTRANTES */
      .speakers-slider {
        display: flex;
        gap: 0.6rem;
        overflow-x: auto;
        padding-bottom: 0.75rem;
        margin-bottom: 1.25rem;
        scrollbar-width: thin;
      }

      .speaker-pill {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(8, 7, 6, 0.6);
        border: 1px solid var(--card-border);
        padding: 0.4rem 0.8rem;
        border-radius: 40px;
        cursor: pointer;
        transition: all 0.2s ease;
      }

      .speaker-pill.active {
        border-color: var(--gold-mid);
        background: rgba(209, 161, 83, 0.2);
      }

      .speaker-thumb {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        object-fit: cover;
        border: 1px solid var(--gold-mid);
      }

      .speaker-name-pill {
        font-family: "Cinzel", serif;
        font-size: 0.78rem;
        color: var(--text-pearl);
      }

      .speaker-box {
        text-align: center;
        border-top: 1px solid rgba(209, 161, 83, 0.15);
        padding-top: 1.25rem;
      }

      .speaker-photo {
        width: 95px;
        height: 95px;
        border-radius: 50%;
        border: 2px solid var(--gold-mid);
        object-fit: cover;
        margin-bottom: 0.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
      }

      /* FAQ (ACCORDION) */
      .faq-details {
        border-bottom: 1px solid rgba(209, 161, 83, 0.15);
        padding: 0.8rem 0;
      }

      .faq-summary {
        font-family: "Cinzel", serif;
        font-size: 0.88rem;
        font-weight: 600;
        color: var(--gold-light);
        cursor: pointer;
        list-style: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      .faq-summary::-webkit-details-marker {
        display: none;
      }

      .faq-summary::after {
        content: "+";
        font-size: 1.1rem;
        color: var(--gold-mid);
      }

      details[open] .faq-summary::after {
        content: "−";
      }

      .faq-content {
        margin-top: 0.5rem;
        font-size: 0.88rem;
        color: #dfd7cb;
        line-height: 1.5;
      }

      /* MAPAS E ROTAS DUPLAS */
      .maps-group {
        display: flex;
        justify-content: center;
        gap: 0.75rem;
        margin-top: 1.25rem;
        flex-wrap: wrap;
      }

      .btn-maps {
        font-family: "Cinzel", serif;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--gold-light);
        background: rgba(209, 161, 83, 0.1);
        border: 1px solid var(--gold-mid);
        padding: 0.65rem 1.2rem;
        border-radius: 6px;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        transition: all 0.2s ease;
      }

      .btn-maps:hover {
        background: rgba(209, 161, 83, 0.25);
        color: #fff;
      }

      /* STICKY CTA BAR PARA MOBILE */
      .sticky-cta-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(12, 10, 8, 0.95);
        border-top: 1px solid var(--gold-mid);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 0.6rem 1rem;
        display: flex;
        justify-content: space-around;
        gap: 0.5rem;
        z-index: 100;
        transform: translateY(100%);
        transition: transform 0.3s ease;
      }

      .sticky-cta-bar.visible {
        transform: translateY(0);
      }

      .btn-sticky {
        flex: 1;
        font-family: "Cinzel", serif;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        color: var(--gold-light);
        background: rgba(209, 161, 83, 0.15);
        border: 1px solid var(--gold-mid);
        padding: 0.5rem 0.2rem;
        border-radius: 4px;
        text-decoration: none;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
      }

      /* RODAPÉ */
      footer {
        border-top: 1px solid rgba(209, 161, 83, 0.18);
        background: rgba(8, 7, 6, 0.95);
        padding: 2rem 1rem 4rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
      }

      .footer-logo {
        width: 80px;
        height: auto;
        aspect-ratio: 452 / 470;
        object-fit: contain;
      }

      @media (min-width: 768px) {
        .bg-fixed {
          background-size: cover;
        }

        .sticky-cta-bar {
          display: none !important;
        }

        footer {
          padding-bottom: 2rem;
        }
      }

/* Otimização de Performance e Core Web Vitals */
.section-title, .event-date, .quote-block, .timeline-title {
  text-wrap: balance;
}

p, .timeline-desc, .faq-content {
  text-wrap: pretty;
}
