/* Reset e configurações básicas */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #719f9e; /* Ciano */
  --secondary-color: #8c6364; /* Vermelho */
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --dark-gray: #333333;
  --text-color: #555555;
  --border-color: #e0e0e0;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;

  /* Dark mode variables */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #333333;
  --text-secondary: #555555;
  --card-bg: #ffffff;
  --header-bg: #ffffff;
}

[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --card-bg: #2d2d2d;
  --header-bg: #1a1a1a;
  --border-color: #404040;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .hero {
  background: linear-gradient(
      135deg,
      rgba(26, 26, 26, 0.9) 0%,
      rgba(45, 45, 45, 0.9) 100%
    ),
    url("../img/wallpaper.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  [data-theme="dark"] .hero {
    background-attachment: scroll;
  }
}

/* Estilos específicos para dark mode */
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #404040;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
  background: #1a1a1a;
  border-color: var(--primary-color);
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
  color: #cccccc;
  opacity: 0.7;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  transition: var(--transition);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header e Navegação */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--header-bg);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: var(--transition);
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo h2 {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.8rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

/* Theme Toggle Button */
.theme-toggle {
  margin-right: 1rem;
}

.theme-btn {
  background: transparent;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.theme-btn:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

.theme-btn i {
  font-size: 1.2rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.theme-btn:hover i {
  color: var(--white);
}

.theme-btn .fa-sun {
  position: absolute;
  opacity: 1;
  transform: rotate(0deg);
}

.theme-btn .fa-moon {
  position: absolute;
  opacity: 0;
  transform: rotate(90deg);
}

[data-theme="dark"] .theme-btn .fa-sun {
  opacity: 0;
  transform: rotate(-90deg);
}

[data-theme="dark"] .theme-btn .fa-moon {
  opacity: 1;
  transform: rotate(0deg);
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  margin: 3px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(248, 249, 250, 0.9) 100%
    ),
    url("../img/wallpaper.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 20%,
      rgba(113, 159, 158, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(140, 99, 100, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(113, 159, 158, 0.3) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(140, 99, 100, 0.3) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(113, 159, 158, 0.2) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 90% 20%,
      rgba(140, 99, 100, 0.2) 1px,
      transparent 1px
    );
  background-size: 100px 100px, 150px 150px, 80px 80px, 120px 120px;
  background-position: 0 0, 50px 50px, 25px 25px, 75px 75px;
  animation: float-particles 20s linear infinite;
  pointer-events: none;
  opacity: 0.6;
}

@keyframes float-particles {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-100px);
  }
}

/* Responsividade para mobile */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background: #5a8a89;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(113, 159, 158, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-placeholder {
  width: 400px;
  height: 400px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.hero-placeholder i {
  font-size: 8rem;
  color: var(--white);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* About Section */
.about {
  padding: 80px 0;
  background: var(--bg-primary);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.about-text p {
  margin-bottom: 2rem;
  line-height: 1.8;
}

.about-text ul {
  list-style: none;
  padding-left: 0;
}

.about-text li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 2rem;
}

.about-text li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 15px;
  border-left: 4px solid var(--primary-color);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Services Section */
.services {
  padding: 80px 0;
  background: var(--bg-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--primary-color);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(113, 159, 158, 0.05),
    rgba(140, 99, 100, 0.05)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 20px;
  pointer-events: none;
}

.service-card:hover::after {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-icon i {
  font-size: 2rem;
  color: var(--white);
}

.service-card h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Classes Section */
.classes {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.class-card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--primary-color);
}

.class-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Corrigir problema de scroll nos cards */
.class-card {
  touch-action: pan-y;
}

.class-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.class-icon i {
  font-size: 2rem;
  color: var(--white);
}

.class-card h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.class-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.class-details {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  flex-wrap: wrap;
}

.class-details span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Schedule Section */
.schedule {
  padding: 80px 0;
  background: var(--bg-primary);
}

/* Pricing Section */
.pricing-section {
  margin-bottom: 4rem;
}

.pricing-section h3 {
  text-align: center;
  color: var(--text-primary);
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pricing-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--primary-color);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.pricing-card h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.pricing-card .frequency {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.pricing-info {
  text-align: center;
  padding: 1rem 0;
  margin-top: 1rem;
}

.pricing-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Ajustes específicos para mobile */
@media (max-width: 480px) {
  .pricing-info {
    padding: 1rem 10px;
  }

  .pricing-info p {
    font-size: 0.9rem;
  }
}

.schedule-table {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 1000px;
  margin: 0 auto;
}

/* Layout mobile para agenda */
.schedule-mobile {
  display: none;
}

.schedule-table h3 {
  text-align: center;
  color: var(--text-primary);
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 600;
  padding: 2rem 2rem 0 2rem;
}

.schedule-header {
  display: grid;
  grid-template-columns: 100px repeat(6, 1fr);
  background: var(--primary-color);
  color: var(--white);
}

.schedule-row {
  display: grid;
  grid-template-columns: 100px repeat(6, 1fr);
  border-bottom: 1px solid var(--border-color);
}

.schedule-row:last-child {
  border-bottom: none;
}

.schedule-cell {
  padding: 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

.schedule-header .schedule-cell {
  font-weight: 600;
  font-size: 0.9rem;
}

.schedule-row .schedule-cell.time {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--primary-color);
}

.schedule-row .schedule-cell:not(.time) {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Gallery Section */
.gallery {
  padding: 80px 0;
  background: var(--bg-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  aspect-ratio: 1;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.gallery-placeholder::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.gallery-item:hover .gallery-placeholder::before {
  left: 100%;
}

.gallery-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.gallery-placeholder p {
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
}

/* Efeito de loading para imagens */
.gallery-item.loading {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Efeito de zoom suave para imagens reais */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-cta {
  text-align: center;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.gallery-cta p {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.social-gallery {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-gallery .btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 25px;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  color: var(--white);
  font-size: 1.2rem;
}

.contact-details h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-details p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-form {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(113, 159, 158, 0.1);
  background: var(--bg-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Footer */
.footer {
  background: var(--dark-gray);
  color: var(--white);
  padding: 60px 0 20px;
}

[data-theme="dark"] .footer {
  background: #0f0f0f;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-section p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #444;
  color: #ccc;
}

/* Responsividade */
@media (max-width: 768px) {
  .theme-toggle {
    margin-right: 0.5rem;
  }

  .theme-btn {
    width: 40px;
    height: 40px;
  }

  .theme-btn i {
    font-size: 1rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--header-bg);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-placeholder {
    width: 300px;
    height: 300px;
    position: relative;
    z-index: 1;
  }

  .hero-placeholder i {
    font-size: 6rem;
  }

  /* Corrigir bug da bola no mobile */
  .hero-image {
    position: relative;
    z-index: 1;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-stats {
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .stat-item {
    flex: 1;
    min-width: 100px;
    max-width: 150px;
    padding: 1.5rem 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    padding: 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }

  .gallery-placeholder i {
    font-size: 2.5rem;
  }

  .gallery-placeholder p {
    font-size: 1rem;
  }

  .social-gallery {
    flex-direction: column;
    align-items: center;
  }

  .classes-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Melhorar interação touch nos cards */
  .class-card {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .class-card:hover {
    transform: translateY(-5px);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .pricing-card {
    padding: 1.5rem;
    margin: 0 10px;
  }

  .pricing-card .price {
    font-size: 1.8rem;
  }

  .pricing-card h4 {
    font-size: 1rem;
  }

  .pricing-card .frequency {
    font-size: 0.85rem;
  }

  .schedule-header,
  .schedule-row {
    grid-template-columns: 80px repeat(6, 1fr);
  }

  .schedule-cell {
    padding: 0.5rem;
    font-size: 0.8rem;
  }

  /* Layout mobile para agenda - substituir tabela por cards */
  .schedule-table {
    display: none;
  }

  .schedule-mobile {
    display: block;
  }

  .schedule-mobile .day-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
  }

  .schedule-mobile .day-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
  }

  .schedule-mobile .time-slot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  .schedule-mobile .time-slot:last-child {
    border-bottom: none;
  }

  .schedule-mobile .period {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
  }

  .schedule-mobile .activity {
    color: var(--text-secondary);
    font-size: 0.9rem;
  }

  .schedule-mobile .activity.online {
    color: var(--primary-color);
    font-weight: 500;
  }

  .schedule-mobile .activity.time {
    color: var(--secondary-color);
    font-weight: 600;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 250px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  /* Ajustes para seção experimental */
  .about-text {
    padding: 0 10px;
  }

  .about-text p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
    overflow-x: hidden;
  }

  /* Garantir que nada saia da tela */
  .about,
  .classes,
  .schedule,
  .contact {
    overflow-x: hidden;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  /* Garantir que o texto fique sempre visível */
  .hero-content {
    position: relative;
    z-index: 2;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    width: 100%;
    max-width: 250px;
  }

  .schedule-header,
  .schedule-row {
    grid-template-columns: 60px repeat(6, 1fr);
  }

  .schedule-cell {
    padding: 0.3rem;
    font-size: 0.7rem;
    min-height: 40px;
  }

  /* Ajustes específicos para telas muito pequenas */
  .schedule-table {
    border-radius: 10px;
  }

  .schedule-table h3 {
    font-size: 1.5rem;
    padding: 1.5rem 1.5rem 0 1.5rem;
  }

  .class-card {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

/* Animações */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.about-text,
.service-card,
.gallery-item,
.class-card,
.contact-item {
  animation: fadeInUp 0.8s ease-out;
}

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* Melhorar scroll para navegadores que não suportam scroll-behavior */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Efeito de destaque para seções ativas */
.section-highlight {
  position: relative;
}

.section-highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.section-highlight.active::before {
  opacity: 1;
}

/* Estados ativos para navegação */
.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  width: 100%;
}
