/* Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: dark;
  --bg: #0c0d10;
  --bg-alt: #13151b;
  --surface: #1a1d24;
  --text: #f2f4f7;
  --text-muted: #b8c0cc;
  --accent: #2ea36b;
  --accent-soft: rgba(46, 163, 107, 0.15);
  --accent-glow: rgba(46, 163, 107, 0.35);
  --gold: #d7b564;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --player-height: 150px;
}

@media (max-width: 767px) {
  :root {
    --player-height: 230px;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg) !important;
  color: var(--text) !important;
  line-height: 1.6;
  padding-top: var(--player-height) !important;
  overflow-x: hidden;
  overflow-y: auto !important;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* Header */
.header {
  position: relative;
  width: 100%;
  background: rgba(12, 13, 16, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.brand-mark {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: url("img/logo.png") center / contain no-repeat;
  color: transparent;
  font-size: 0;
  letter-spacing: 0;
  text-indent: -9999px;
  overflow: hidden;
  box-shadow: 0 0 20px var(--accent-glow);
}

.brand-name {
  font-size: 1rem;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.nav a {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  transition: transform 0.3s ease;
}

/* Hero */
.hero {
  padding-top: 40px !important;
}

/* Top player */
.top-player {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: #0a0b0e;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Reforço de layout após o CSS do player */
section.section {
  padding: 90px 0 !important;
}

section.chat {
  padding: 60px 0 90px !important;
}

.chat-stack {
  width: 90%;
  margin: 24px auto 0;
}

.chat-frame {
  width: 100%;
  margin: 0;
  border-radius: 16px 16px 0 0;
  box-shadow: var(--shadow);
}

.chat-weather {
  margin-top: 0;
  display: flex;
  justify-content: center;
}

.chat-weather > div {
  width: 100%;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
}

#player.player-bar {
  padding: 12px 16px !important;
}

.slider {
  position: relative;
  overflow: hidden;
  height: min(75vh, 700px);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1s ease, transform 1s ease;
  background: linear-gradient(120deg, rgba(12, 13, 16, 0.7), rgba(12, 13, 16, 0.2));
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(46, 163, 107, 0.2), transparent 60%);
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide-clickable {
  cursor: pointer;
}

.slide-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 0 8%;
  max-width: 600px;
}

.slide-link {
  display: flex;
  height: 100%;
  color: inherit;
}

.slide-content h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.1;
}

.slide-content p {
  color: var(--text-muted);
  font-size: 1rem;
}

.cta {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px var(--accent-glow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-link-btn {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px var(--accent-glow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px var(--accent-glow);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px var(--accent-glow);
}

.slider-controls {
  position: absolute;
  bottom: 24px;
  left: 8%;
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* Sections */
.section {
  padding: 90px 0;
}

.section.alt {
  background: var(--bg-alt);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 36px;
}

/* Chat */
.chat {
  padding: 60px 0 90px;
  background: var(--bg-alt);
  text-align: center;
}

.chat iframe {
  margin: 0;
  border-radius: 16px 16px 0 0;
  box-shadow: none;
}


.chat p a {
  color: var(--gold);
  font-size: 0.85rem;
}

.floating-app-btn {
  position: fixed !important;
  left: 24px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 3000;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(120deg, #1f8b6a, #f2c94c, #d35454);
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35), 0 0 18px rgba(46, 163, 107, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-app-btn:hover {
  transform: translateY(calc(-50% - 2px)) !important;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45), 0 0 24px rgba(215, 181, 100, 0.45);
}

.floating-app-btn.image-only {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.floating-app-btn.image-only:hover {
  transform: translateY(calc(-50% - 2px)) !important;
  box-shadow: none;
}

.floating-app-btn.image-only img {
  width: 200px;
  height: auto;
}

/* Schedule */
.schedule {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.schedule-item {
  background: var(--surface);
  padding: 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border 0.3s ease;
}

.schedule-item:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.schedule-item h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.schedule-wrapper {
  display: grid;
  gap: 20px;
}

.schedule-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  background: #f5f5f5;
  padding: 10px;
  border-radius: 16px;
}

.schedule-tab {
  background: #f0f0f0;
  border: 1px solid #d6d6d6;
  border-radius: 10px;
  padding: 12px 10px;
  font-weight: 600;
  cursor: pointer;
  color: #000;
  opacity: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.schedule-tab.active {
  background: linear-gradient(120deg, #23a25f, #d7b564);
  color: #0b0b0b;
}

.schedule-table {
  background: #fdfdfd;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.schedule-header {
  display: grid;
  grid-template-columns: 160px 1fr 1fr;
  gap: 16px;
  padding: 16px 24px;
  background: linear-gradient(120deg, #f2c94c, #f2994a);
  color: #1a1a1a;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.schedule-rows {
  display: grid;
}

.schedule-row {
  display: grid;
  grid-template-columns: 160px 1fr 1fr;
  gap: 16px;
  padding: 16px 24px;
  color: #1a1a1a;
  background: #ffffff;
  border-bottom: 1px solid #ececec;
}

.schedule-row span:first-child {
  font-weight: 700;
  color: #0b0b0b;
}

.schedule-empty {
  padding: 24px;
  text-align: center;
  color: #5f5f5f;
}

@media (max-width: 800px) {
  .schedule-header,
  .schedule-row {
    grid-template-columns: 1fr;
  }
}

/* Team */
#equipe .team-carousel {
  position: relative;
  overflow: hidden;
  padding: 8px 0 18px;
}

#equipe .team-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: teamScroll 28s linear infinite;
}

#equipe .team-card {
  flex: 0 0 auto;
  width: 180px;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s ease;
}

#equipe .team-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

#equipe .team-card .card-body {
  padding: 12px 14px 16px;
  text-align: center;
}

#equipe .team-card .card-body h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

#equipe .team-card .card-body p {
  font-size: 0.8rem;
  margin: 0;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  #equipe .team-card {
    width: 150px;
  }

  #equipe .team-card img {
    height: 120px;
  }
}
#equipe .team-card:hover {
  transform: translateY(-6px);
}

.team-empty {
  color: var(--text-muted);
  padding: 12px 0;
}

@keyframes teamScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(46, 163, 107, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item img {
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-6px);
}

.news-body {
  padding: 20px;
  color: var(--text);
  background: var(--surface);
}

.news-body p {
  color: var(--text-muted);
  margin: 12px 0 16px;
}

.news-body span {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
}

.news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-summary {
  color: var(--text-muted);
  margin: 12px 0 16px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

.news-card.compact {
  display: grid;
  grid-template-rows: 170px auto;
  gap: 0;
}

.news-thumb {
  width: 100%;
  height: 170px;
  overflow: hidden;
  background: #11151c;
}

.news-card.compact .news-body {
  padding: 16px;
  background: var(--surface);
}

.news-card.compact .news-body h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.3;
}

.news-link {
  display: grid;
  grid-template-rows: 170px auto;
  color: inherit;
  height: 100%;
  width: 100%;
}

.news-card.compact {
  grid-template-rows: none;
}

.news-link .news-thumb {
  height: 170px;
}

.news-link .news-body {
  padding: 16px;
  background: var(--surface);
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.news-read-more:hover {
  box-shadow: 0 10px 20px var(--accent-glow);
}

/* News detail */
.news-detail {
  display: grid;
  gap: 18px;
}

.news-detail-date {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.news-detail-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
}

.news-detail-media {
  background: #0f1218;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.news-detail-media img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  background: #0f1218;
}

@media (max-width: 700px) {
  .news-detail-media img {
    height: auto;
    max-height: 320px;
  }
}

.news-detail-text {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.news-share {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 12px;
}

.news-share-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.news-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.news-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 21, 27, 0.8);
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s ease, border 0.2s ease, transform 0.2s ease;
}

.news-share-btn svg {
  width: 18px;
  height: 18px;
}

.news-share-btn:hover {
  background: rgba(46, 163, 107, 0.15);
  border-color: rgba(46, 163, 107, 0.35);
  transform: translateY(-1px);
}

.news-share-feedback {
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 1em;
}

/* About */
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: start;
}

.about p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.values {
  display: grid;
  gap: 16px;
}

.value-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.contact-email {
  color: var(--text);
  margin: 0;
}

.contact-icons {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.contact-link svg {
  width: 18px;
  height: 18px;
}

.contact-link:hover {
  transform: translateY(-1px);
  background: rgba(46, 163, 107, 0.12);
  border-color: rgba(46, 163, 107, 0.4);
}

.contact-card a {
  color: var(--text);
}

@media (max-width: 720px) {
  .contact-card {
    grid-template-columns: 1fr;
    justify-items: flex-start;
  }
}

/* Footer */
.footer {
  padding: 24px 0;
  text-align: center;
  color: var(--text-muted);
  background: #0a0b0e;
}

/* Responsive */
@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 72px;
    right: 4%;
    flex-direction: column;
    background: var(--surface);
    padding: 18px 22px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  .slider {
    height: 52vh;
    min-height: 320px;
  }

  .slide-content {
    max-width: 100%;
    padding: 0 7%;
    text-align: left;
  }

  .slide-content h1 {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
  }

  .slide-content p {
    font-size: 0.95rem;
  }

  .slider-controls {
    bottom: 16px;
    left: 7%;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .slide-content {
    padding: 0 6%;
  }

  .chat iframe {
    width: 100%;
  }

  .floating-app-btn {
    position: static !important;
    transform: none !important;
    margin: 16px auto 0;
    display: inline-flex;
  }
}
