/* ============================
   RESET E BASE
   ============================ */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Space Grotesk", sans-serif;
  background: var(--bg, #f4f4f4);
  color: var(--text, #0a0a0a);
}

/* ============================
   HEADER (padronizado com style.css)
   ============================ */

header {
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000;
  color: #fff;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a.cta-primary {
  background: #fff;
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

nav a.cta-primary:hover {
  background: #ddd;
}

.back-arrow {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: #000;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  transition: 0.2s;
}

.back-arrow:hover {
  background: #333;
}

/* ============================
   GALERIA
   ============================ */

.gallery-container {
  width: 100%;
  padding: 0;
  margin: 0;
  padding-top: var(--header-height);
}

.gallery-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.gallery-item {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* Responsivo */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    aspect-ratio: 4 / 5;
  }
}

/* ============================
   BLOCO ESPECIAL (MOTORSPORT)
   ============================ */

.gallery-featured {
  width: 100%;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0;
}

.featured-left {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
}

.featured-left .gallery-item {
  aspect-ratio: 16 / 9;
}

.featured-right {
  aspect-ratio: 5 / 4;
}

/* ============================
   LIGHTBOX
   ============================ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 9999;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 4px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #fff;
  color: #000;
  border: none;
  font-size: 1.4rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.close-btn:hover {
  background: #ddd;
}

/* ============================
   CONTATO (padronizado com style.css)
   ============================ */

.contato {
  padding: 4rem 2rem;
  text-align: center;
  background: #fff;
}

.contato h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contato p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: #444;
}

.contato form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contato input,
.contato textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.contato button {
  padding: 1rem;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
}

.contato button:hover {
  background: #333;
}

.whats-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 1.4rem;
  background: #25D366;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}

.whats-btn:hover {
  background: #1ea955;
}
