 :root {
    --bg-deep: #001F24;
    --bg-main: #003942;
    --bg-soft: #0A4B52;
    --bg-card: #002B33;
    --bg-card-hover: #003A44;
    
    --ink: #F5F1E6;
    --ink-dim: #C9D6CE;
    --ink-muted: #8AA3A0;
    
    --gold: #C9994A;
    --gold-bright: #E6BE72;
    --gold-glow: rgba(201, 153, 74, 0.15);
    
    --sage: #4A7A68;
    
    --border-color: rgba(255, 255, 255, 0.06);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  * { 
    box-sizing: border-box; 
    margin: 0;
    padding: 0;
  }

  html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-main);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
  }

  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  ::-webkit-scrollbar {
    width: 6px;
  }
  ::-webkit-scrollbar-track {
    background: var(--bg-deep);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
  }

  /* --- HERO CAROUSEL --- */
  .hero-carousel {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .carousel-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
  }

  .carousel-slide.active {
    opacity: 1;
    z-index: 2;
  }

  .carousel-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0, 31, 36, 0.4) 0%, rgba(0, 31, 36, 0.8) 100%);
    z-index: 1;
  }

  .carousel-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
  }

  .carousel-content h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: clamp(2.8rem, 7vw, 5rem);
    line-height: 1.05;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
  }

  .carousel-content h1 em {
    font-style: italic;
    font-weight: 400;
    color: var(--gold-bright);
  }

  .carousel-content p {
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    color: var(--ink-dim);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  }

  .carousel-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--bg-deep);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
  }

  /* --- BOTÕES SOCIAIS --- */
  .social-links-hero {
    position: absolute;
    bottom: 60px;
    z-index: 3;
    display: flex;
    gap: 1rem;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    padding: 0 20px;
  }

  .btn-social {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.6rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--ink);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-smooth);
  }

  .btn-social:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--gold-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  }

  .btn-social svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  /* --- INDICADORES --- */
  .slide-indicators {
    position: absolute;
    bottom: 130px;
    z-index: 3;
    display: flex;
    gap: 8px;
    justify-content: center;
    width: 100%;
  }

  .slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    padding: 0;
  }

  .slide-dot.active {
    background: var(--gold-bright);
    width: 24px;
    border-radius: 4px;
  }

  /* --- SEÇÕES --- */
  .section {
    padding: 6rem 6vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
  }

  .section:nth-child(even) {
    background-color: var(--bg-deep);
  }

  .section-divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 1.5rem;
    opacity: 0.5;
  }

  .section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.01em;
  }

  .section-subtitle {
    color: var(--ink-dim);
    text-align: center;
    font-size: 1.05rem;
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 300;
  }

  /* --- MISSÃO --- */
  .mission-box {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 3rem;
    max-width: 900px;
    width: 100%;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition-smooth);
  }

  .mission-box:hover {
    border-color: var(--gold);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  }

  .mission-box p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--ink-dim);
    font-weight: 300;
  }

  .mission-box .mission-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--gold-bright);
  }
  
  .mission-box .mission-icon svg {
    width: 48px;
    height: 48px;
  }

  /* --- VISÃO --- */
  .vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 1000px;
    width: 100%;
  }

  .vision-item {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
  }

  .vision-item:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  }

  .vision-item .vision-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--gold-bright);
    opacity: 0.4;
    margin-bottom: 0.5rem;
    display: block;
  }

  .vision-item p {
    color: var(--ink-dim);
    line-height: 1.7;
    font-weight: 300;
    font-size: 0.95rem;
  }

  /* --- VALORES --- */
  .values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    max-width: 1000px;
    width: 100%;
  }

  .value-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.8rem;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    opacity: 0;
    transition: var(--transition-smooth);
  }

  .value-card:hover::before {
    opacity: 1;
  }

  .value-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  }

  .value-card .value-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.2rem;
    color: var(--gold-bright);
  }
  
  .value-card .value-icon svg {
    width: 36px;
    height: 36px;
  }

  .value-card p {
    color: var(--ink-dim);
    line-height: 1.6;
    font-weight: 300;
    font-size: 0.9rem;
  }

  /* --- HISTÓRIA --- */
  .history-content {
    max-width: 800px;
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--ink-dim);
    text-align: center;
    font-weight: 300;
  }

  .history-content p { 
    margin-bottom: 1.5rem; 
  }

  /* --- CARDS DE EVENTOS --- */
  .events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
  }

  .event-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
    position: relative;
    cursor: pointer;
  }

  .event-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    background: var(--bg-card-hover);
  }

  .event-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
  }

  .event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
  }

  .event-card:hover .event-card-image img {
    transform: scale(1.03);
  }

  .event-card-image .event-date-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(0, 31, 36, 0.85);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .event-card-image .event-date-badge strong {
    color: var(--gold-bright);
    font-weight: 600;
  }

  .event-card-body {
    padding: 1.8rem;
  }

  .event-card-body .event-tag {
    display: inline-block;
    background: var(--gold-glow);
    color: var(--gold-bright);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 0.8rem;
  }

  .event-card-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--ink);
  }

  .event-card-body p {
    font-size: 0.9rem;
    color: var(--ink-dim);
    line-height: 1.6;
    font-weight: 300;
  }

  .event-card-body .event-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--ink-muted);
  }

  .event-card-body .event-time svg {
    width: 16px;
    height: 16px;
    opacity: 0.5;
  }

  .event-card .click-hint {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 1rem;
    font-size: 0.7rem;
    color: var(--ink-muted);
    opacity: 0.5;
    transition: var(--transition-smooth);
  }

  .event-card:hover .click-hint {
    opacity: 1;
    color: var(--gold-bright);
  }

  /* --- MODAL --- */
  .modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn 0.3s ease;
  }

  .modal-overlay.active {
    display: flex;
  }

  @keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
  }

  .modal-content {
    background: var(--bg-main);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  }

  .modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--ink);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
  }

  .modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--gold);
    transform: rotate(90deg);
  }

  .modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
  }

  .modal-image-hidden {
    display: none;
  }

  .modal-body {
    padding: 2.5rem;
  }

  .modal-body .modal-tag {
    display: inline-block;
    background: var(--gold-glow);
    color: var(--gold-bright);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
  }

  .modal-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.8rem;
  }

  .modal-body .modal-datetime {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--ink-dim);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
  }

  .modal-body .modal-datetime svg {
    width: 18px;
    height: 18px;
    opacity: 0.6;
  }

  .modal-body .modal-datetime span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
  }

  .modal-body .modal-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ink-dim);
    font-weight: 300;
    margin-bottom: 1.5rem;
    white-space: pre-wrap;
  }

  .modal-body .modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
  }

  .modal-body .btn-modal {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
  }

  .btn-modal-primary {
    background: var(--gold);
    color: var(--bg-deep);
  }

  .btn-modal-primary:hover {
    background: var(--gold-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 153, 74, 0.3);
  }

  .btn-modal-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink);
    border: 1px solid var(--border-color);
  }

  .btn-modal-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--gold);
  }

  /* --- VÍDEO --- */
  .video-container {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
  }
  .video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
  }

  /* --- PESSOAS --- */
  .grid-people {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    max-width: 1000px;
  }

  .person-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-smooth);
    padding: 1.5rem 1rem;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    min-width: 120px;
    flex: 0 1 140px;
  }

  .person-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  }

  .person-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    margin-bottom: 0.8rem;
    transition: var(--transition-smooth);
  }

  .person-card:hover .person-img {
    border-color: var(--gold-bright);
  }

  .person-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 0.2rem;
    line-height: 1.2;
  }

  .person-meta {
    font-size: 0.75rem;
    color: var(--ink-muted);
  }

  .is-today .person-img {
    border-color: var(--gold-bright);
    box-shadow: 0 0 30px rgba(201, 153, 74, 0.2);
  }

  .badge-today {
    background: var(--gold);
    color: var(--bg-deep);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  /* --- FOOTER --- */
  footer {
    text-align: center;
    padding: 4rem 1rem;
    background: var(--bg-deep);
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
  }

  .footer-content {
    max-width: 600px;
    margin: 0 auto;
  }

  .footer-contact {
    margin-bottom: 1.5rem;
    color: var(--ink-dim);
    font-size: 0.9rem;
    line-height: 1.8;
    font-weight: 300;
  }

  .footer-contact strong {
    color: var(--ink);
    font-weight: 500;
  }

  .footer-copy {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: var(--ink-muted);
    text-transform: uppercase;
    font-weight: 300;
  }

  .footer-divider {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 1.5rem;
    opacity: 0.3;
  }

  /* --- RESPONSIVO --- */
  @media (max-width: 1024px) {
    .values-grid {
      grid-template-columns: 1fr 1fr;
    }
  }

  @media (max-width: 768px) {
    .section {
      padding: 4rem 5vw;
    }
    .events-grid {
      grid-template-columns: 1fr;
      max-width: 500px;
    }
    .grid-people {
      gap: 1.5rem;
    }
    .person-card {
      flex: 0 1 110px;
      padding: 1rem;
    }
    .person-img {
      width: 65px;
      height: 65px;
    }
    .social-links-hero {
      bottom: 40px;
    }
    .btn-social {
      padding: 0.5rem 1.2rem;
      font-size: 0.75rem;
    }
    .slide-indicators {
      bottom: 100px;
    }
    .modal-body {
      padding: 1.5rem;
    }
    .modal-image {
      height: 200px;
    }
    .modal-body h2 {
      font-size: 1.5rem;
    }
    .vision-grid {
      grid-template-columns: 1fr;
    }
    .values-grid {
      grid-template-columns: 1fr;
    }
    .mission-box {
      padding: 2rem 1.5rem;
    }
    .mission-box p {
      font-size: 1rem;
    }
  }

  @media (max-width: 480px) {
    .event-card-image {
      height: 170px;
    }
    .event-card-body {
      padding: 1.2rem;
    }
    .person-card {
      flex: 0 1 90px;
    }
    .person-img {
      width: 55px;
      height: 55px;
    }
    .modal-body .modal-actions {
      flex-direction: column;
    }
    .modal-body .btn-modal {
      justify-content: center;
    }
  }