*, *::before, *::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  background-color: #2d2b2b;
  color: white;
  line-height: 1.5;
}
a {
  text-decoration: none;
  color: white;
  transition: color 0.3s ease;
}
a:hover { color: #28a745; }

header {
  background-color: #2d2b2b;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #383838;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo img { height: 40px; }

nav {
  position: absolute;
  top: 60px;
  right: 20px;
  background: #2d2b2b;
  border-radius: 8px;
  padding: 10px 20px;
  display: none;
  flex-direction: column;
  gap: 16px;
}
nav.active { display: flex; }
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn-planos {
  background: #28a745;
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  margin-right: 20px;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 5px;
  transition: 0.3s;
}
.hamburger.active 
  span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active 
  span:nth-child(2) {
    opacity: 0; 
  }
.hamburger.active
  span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 768px) {
  nav {
    position: static;
    display: flex !important;
    flex-direction: row;
    background: none;
    padding: 0;
  }
  nav ul { flex-direction: row; gap: 32px; }
  .hamburger { display: none; }
}
@media (max-width: 767px) {
  .hamburger { display: flex; }
  .btn-planos { margin-left: 10px; }
}

main {
  padding: 40px 20px 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.text-block { flex: 1 1 350px; max-width: 600px; }
.text-block h1 {
  font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}
.highlight { font-weight: 800; color: #28a745; }

.modalities-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modality-badge {
  background: #28a745;
  padding: 6px 16px;
  border-radius: 16px;
  font-weight: 700;
  max-width: 200px;
}

.image-container {
  flex: 1 1 510px;
  max-width: 900px;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.75);
}
.image-container img {
  width: 100%;
  border-radius: 24px;
}
.image-tagline {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #28a745;
  padding: 6px 14px;
  border-radius: 14px;
  font-weight: 600;
}

footer {
  background: #1e1d1d;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 auto 40px auto;
  border-radius: 12px;
  max-width: 1200px;
}
footer p { margin: 0; flex: 1; }

.botao {
  background: #28a745;
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: bold;
}

.modalidades-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin: 20px;
}
.card-flip {
  width: 300px;
  height: 430px;
  perspective: 1000px;
}
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}
.card-flip:hover .card-inner { transform: rotateY(180deg); }
.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #1b1b1b;
  color: #f4f4f4;
}
.card-back { transform: rotateY(180deg); }
.card-front img {
  width: 100%;
  max-height: 180px;
  border-radius: 8px;
  margin-bottom: 15px;
}
@media (max-width: 600px) {
  .card-flip { width: 90%; height: auto; }
  .card-inner { transform: none !important; }
  .card-front, .card-back {
    position: relative;
    height: auto;
    transform: none;
    margin-bottom: 20px;
  }
}