@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

/* Reset CSS básico */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  font-size: 100%;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  background: url("images/bg.png") center/cover no-repeat fixed;
  position: relative;
  overflow-x: hidden;
}

.top-header {
  background-color: #333;
  color: #fff;
  padding: 0.5rem 2rem;
}

.top-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.header-social {
  display: flex;
  align-items: center;
}

.header-social a {
  margin-left: 1rem;
}

.header-social svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

nav {
  display: flex;
  flex-direction: row;
  height: 80px;
  width: 100%;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
  font-size: 1rem;
  background: linear-gradient(to right, #00adef 50%, #ed1c24 50%);
  position: relative;
}

section {
  padding-top: 3rem;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 3rem;
  background: linear-gradient(to right, #ffffff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navbar */
nav ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  padding: 0.5rem 4rem;
  width: 50%;
}

.menu-item {
  flex: 1;
  white-space: normal;
  text-align: center;
  padding: 0.8rem 0.3rem;
  font-weight: 700;
  color: #fff;
}

.menu-internacional {
  justify-content: end;
}

.logo {
  position: relative;
  width: 170px;
  height: 150px;
}

.logo img {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.hero-section {
  padding: 4rem 2rem;
  height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 2;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  max-width: 90%;
}

/* Football field lines effect */
.hero-line-art {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  background:
    repeating-linear-gradient(#fff,
      #fff 2px,
      transparent 2px,
      transparent 100px);
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.hero-content .subtitle {
  font-size: 1.5rem;
  margin-top: 0.5rem;
  font-style: italic;
}

.event-details {
  margin-top: 2.5rem;
  border-top: 2px solid rgba(255, 255, 255, 0.5);
  padding-top: 2rem;
}

.event-details .date {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.event-details .location {
  font-size: 1.2rem;
  line-height: 1.6;
}

.hamburguer {
  position: absolute;
  right: 10px;
  top: 15px;
  padding: 10px;
  width: 50px;
  height: 50px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border-radius: 0.8rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.hamburguer span {
  display: block;
  height: 3px;
  background-color: #111;
  border-radius: 2px;
}

.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1000000;
  top: 0;
  right: 0;
  background: rgba(17, 17, 17, 0.9);
  overflow-x: hidden;
  transition: 0.5s;
  padding: 60px 0;
}

.sidebar a {
  padding: 8px 8px 12px 32px;
  font-size: 25px;
  color: #fff;
  display: block;
  transition: 0.3s;
  border-bottom: 1px solid #818181;
}

.sidebar .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 60px;
  margin-left: 50px;
  border-bottom: none;
}

.history-section {
  padding: 6rem;
}

.history-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background-color: #fff;
  color: #111;
  border-radius: 0.8rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-height: 250px;
  overflow: hidden;
}

.history-card img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 400px;
  object-fit: cover;
  object-position: center center;
}

.history-card p {
  text-indent: 2rem;
  text-align: justify;
  text-justify: inter-word;
}

.container-events {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem;
}

.event-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #fff;
  align-items: center;
  color: #000;
  border-radius: 0.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-top-right-radius: 0.8rem;
  border-top-left-radius: 0.8rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.event-card img:hover {
  transform: scale(1.05);
}

.event-card h3 {
  color: #333;
  font-size: 1.3rem;
  cursor: pointer;
  transition: color 0.3s ease;
  text-align: center;
  margin: 0 2rem;
}

.event-card h3:hover {
  color: #667eea;
}

.event-text {
  padding: 0 2rem 2rem 2rem;
  text-align: justify;
  text-justify: inter-word;
  text-indent: 0.8rem;
  color: #666;
  line-height: 1.6;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.4s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-content {
  position: relative;
  width: 90%;
  height: 90%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  padding: 3rem 1rem;
}

.modal-image {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.3),
    0 0 0 2px #fff;
}

.modal-info {
  background: rgba(30, 30, 30, 0.8);
  color: #fff;
  padding: 1.5rem;
  margin-top: 1.5rem;
  border-radius: 12px;
  text-align: center;
  max-width: 700px;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-info h3 {
  margin-bottom: 0.8rem;
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(to right, #00adef, #ed1c24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-info p {
  color: #e0e0e0;
  line-height: 1.7;
  font-size: 1rem;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  background: rgba(40, 40, 40, 0.7);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.close:hover {
  background: #ed1c24;
  transform: rotate(90deg);
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  border: none;
  font-size: 2.5rem;
  padding: 1rem;
  cursor: pointer;
  border-radius: 50%;
  transition:
    all 0.3s ease,
    transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nav-button:hover {
  transform: translateY(-50%) scale(1.1);
}

.nav-button:active {
  transform: translateY(-50%) scale(0.95);
}

.prev {
  left: 20px;
  background: #00adef;
}

.next {
  right: 20px;
  background: #ed1c24;
}

.image-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.thumbnails {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.thumbnail {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.5;
  transition:
    all 0.3s ease,
    transform 0.2s ease;
  border: 3px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.thumbnail:hover {
  opacity: 1;
  transform: scale(1.08);
}

.thumbnail.active {
  opacity: 1;
  transform: scale(1.1);
  border-image: linear-gradient(to right, #00adef, #ed1c24) 1;
  box-shadow:
    0 0 20px rgba(0, 173, 239, 0.5),
    0 0 20px rgba(237, 28, 36, 0.5);
}

/* --- Seção de Contato --- */
.contact-section {
  padding: 6rem 2rem;
  position: relative;
  z-index: 2;
  color: #111;
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background-color: #fff;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.contact-form-wrapper h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  color: #333;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #555;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00adef;
  box-shadow: 0 0 0 3px rgba(0, 173, 239, 0.2);
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(to right, #00adef, #ed1c24);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* --- Seção de Patrocinadores MELHORADA --- */
.sponsors-section {
  padding: 6rem 2rem;
  position: relative;
  z-index: 2;
}

.sponsors-card {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #fff;
  padding: 3rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.sponsors-card h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #333;
}

.logos-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 2rem 0;
  -webkit-mask-image: linear-gradient(to right,
      transparent,
      #000 15%,
      #000 85%,
      transparent);
  mask-image: linear-gradient(to right,
      transparent,
      #000 15%,
      #000 85%,
      transparent);
}

.logos-slide {
  display: flex;
  align-items: center;
  gap: 5rem;
  width: fit-content;
  animation: scroll 80s linear infinite;
  padding: 0 2rem;
}

.logos-slide:hover {
  animation-play-state: paused;
}

.logos-slide img {
  height: 80px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  transition: all 0.4s ease;
  filter: grayscale(0%);
  opacity: 0.85;
}

.logos-slide img:hover {
  transform: scale(1.15);
  filter: grayscale(0%);
  opacity: 1;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* --- Seção de Galeria de Vídeos --- */
.video-gallery-section {
  padding: 6rem 2rem;
  position: relative;
  z-index: 2;
  color: #111;
  text-align: center;
}

.video-gallery-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

.video-gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.main-video video {
  width: 100%;
  border-radius: 8px;
}

.video-playlist {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 500px;
  overflow-y: auto;
}

.video-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.video-item:hover,
.video-item.active {
  background-color: #f0f0f0;
}

.video-item img {
  width: 100px;
  height: 60px;
  object-fit: contain;
  border-radius: 4px;
}

.video-item p {
  font-weight: 600;
  color: #333;
}

.dark-section {
  position: relative;
  color: #fff;
}

.dark-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
  pointer-events: none;
}

.dark-section>* {
  position: relative;
  z-index: 2;
}

.light-section {
  background-color: #fff;
  color: #111;
  position: relative;
  z-index: 2;
}

/* Modal de Resposta do Formulário */
.form-response-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

.form-response-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-response-content {
  background: #fff;
  border-radius: 15px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-out;
  position: relative;
}

.modal-response-header {
  padding: 30px;
  text-align: center;
  position: relative;
}

.modal-response-header.success {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
}

.modal-response-header.error {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.modal-close-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.3);
}

.modal-response-icon {
  font-size: 60px;
  margin-bottom: 15px;
  display: block;
}

.modal-response-icon.success::before {
  content: "✓";
}

.modal-response-icon.error::before {
  content: "⚠";
}

.modal-response-title {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  margin-bottom: 10px;
}

.modal-response-subtitle {
  font-size: 16px;
  margin: 0;
  opacity: 0.9;
}

.modal-response-body {
  padding: 30px;
  text-align: center;
}

.modal-response-message {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 30px;
}

.modal-response-btn {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.modal-response-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.modal-response-btn.success {
  background: linear-gradient(135deg, #28a745, #1e7e34);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.modal-response-btn.success:hover {
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.modal-response-btn.error {
  background: linear-gradient(135deg, #dc3545, #bd2130);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.modal-response-btn.error:hover {
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Ocultar a mensagem antiga do PHP */
.message {
  display: none !important;
}

/* ============================================
   MEDIA QUERIES - RESPONSIVIDADE APRIMORADA
   ============================================ */

/* Tablets grandes e desktops pequenos (992px - 1200px) */
@media (max-width: 1200px) {
  .section-title {
    font-size: 2.5rem;
  }

  nav ul {
    gap: 1.5rem;
    padding: 0.5rem 2rem;
  }

  .menu-item {
    font-size: 0.9rem;
    padding: 0.6rem 0.2rem;
  }

  .hero-content h1 {
    font-size: 3.5rem;
  }

  .hero-content .subtitle {
    font-size: 1.3rem;
  }

  .event-details .date {
    font-size: 2.2rem;
  }
}

/* Tablets (768px - 992px) */
@media (max-width: 992px) {
  .top-header {
    padding: 0.5rem 1rem;
  }

  .top-header .container {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }

  nav ul {
    display: none;
  }

  .logo {
    width: 120px;
    height: 120px;
  }

  .logo img {
    left: 20px;
  }

  .hamburguer {
    display: flex;
  }

  .hero-section {
    padding: 3rem 1.5rem;
    height: auto;
    min-height: 75vh;
  }

  .hero-content {
    padding: 1.8rem;
    max-width: 95%;
  }

  .hero-content h1 {
    font-size: 2.8rem;
    letter-spacing: 1px;
  }

  .hero-content .subtitle {
    font-size: 1.2rem;
  }

  .event-details {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .event-details .date {
    font-size: 1.8rem;
  }

  .event-details .location {
    font-size: 1rem;
  }

  .history-section {
    padding: 4rem 2rem;
  }

  .history-card {
    padding: 1.5rem;
  }

  .container-events {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .contact-section {
    padding: 4rem 1.5rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
  }

  .contact-image {
    max-height: 400px;
  }

  .contact-form-wrapper h2 {
    font-size: 2rem;
  }

  .sponsors-section {
    padding: 4rem 1.5rem;
  }

  .sponsors-card {
    padding: 2.5rem 1.5rem;
  }

  .sponsors-card h2 {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
  }

  .logos-slide {
    gap: 4rem;
    animation-duration: 35s;
  }

  .logos-slide img {
    height: 70px;
    max-width: 160px;
  }

  .video-gallery-section {
    padding: 4rem 1.5rem;
  }

  .video-gallery-section h2 {
    font-size: 2rem;
  }

  .video-gallery-container {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .video-playlist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    max-height: none;
  }

  .video-item {
    flex-direction: column;
    text-align: center;
  }

  .video-item img {
    width: 100%;
    height: auto;
  }

  .modal-image {
    max-height: 70vh;
  }

  .modal-info {
    max-width: 90%;
    padding: 1.2rem;
  }

  .modal-info h3 {
    font-size: 1.5rem;
  }

  .modal-info p {
    font-size: 0.95rem;
  }
}

/* Smartphones grandes (576px - 768px) */
@media (max-width: 768px) {
  .top-header {
    font-size: 0.85rem;
  }

  .header-social a {
    margin-left: 0.7rem;
  }

  .header-social svg {
    width: 18px;
    height: 18px;
  }

  .section-title {
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
  }

  .hero-section {
    padding: 2rem 1rem;
    min-height: 70vh;
  }

  .hero-content {
    padding: 1.5rem;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content .subtitle {
    font-size: 1rem;
  }

  .event-details {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }

  .event-details .date {
    font-size: 1.5rem;
  }

  .event-details .location {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .history-section {
    padding: 3rem 1rem;
  }

  .history-card {
    padding: 1.2rem;
    gap: 1.5rem;
  }

  .history-card h2 {
    font-size: 1.8rem;
  }

  .history-card p {
    font-size: 0.95rem;
    text-indent: 1rem;
  }

  .container-events {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }

  .event-card h3 {
    font-size: 1.2rem;
    margin: 0 1rem;
  }

  .event-text {
    font-size: 0.95rem;
    padding: 0 1rem 1rem 1rem;
  }

  .contact-section {
    padding: 3rem 1rem;
  }

  .contact-container {
    padding: 1.5rem;
  }

  .contact-form-wrapper h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-group label {
    font-size: 0.95rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.95rem;
    padding: 0.7rem 0.9rem;
  }

  .submit-btn {
    font-size: 1rem;
    padding: 0.9rem;
  }

  .sponsors-section {
    padding: 3rem 1rem;
  }

  .sponsors-card {
    padding: 2rem 1rem;
  }

  .sponsors-card h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .logos-slide {
    gap: 3rem;
    animation-duration: 30s;
  }

  .logos-slide img {
    height: 60px;
    max-width: 140px;
  }

  .logos-container {
    padding: 1.5rem 0;
    -webkit-mask-image: linear-gradient(to right,
        transparent,
        #000 10%,
        #000 90%,
        transparent);
    mask-image: linear-gradient(to right,
        transparent,
        #000 10%,
        #000 90%,
        transparent);
  }

  .video-gallery-section {
    padding: 3rem 1rem;
  }

  .video-gallery-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .video-gallery-container {
    padding: 1rem;
  }

  .video-playlist {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .video-item p {
    font-size: 0.9rem;
  }

  .modal-content {
    width: 100%;
    height: 100%;
    justify-content: flex-start;
    padding-top: 4rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .modal-image {
    max-height: 55vh;
    width: 95%;
    border-radius: 10px;
  }

  .modal-info {
    margin-top: 1rem;
    width: 95%;
    padding: 1rem;
  }

  .modal-info h3 {
    font-size: 1.3rem;
  }

  .modal-info p {
    font-size: 0.9rem;
  }

  .nav-button {
    display: none;
  }

  .close {
    top: 10px;
    right: 10px;
    font-size: 2rem;
    width: 40px;
    height: 40px;
  }

  .thumbnails {
    gap: 8px;
    margin-top: 1rem;
  }

  .thumbnail {
    width: 55px;
    height: 55px;
  }

  .main-video video {
    height: 400px;
    object-fit: cover;
  }

  .modal-response-content {
    width: 95%;
    margin: 20px;
  }

  .modal-response-header {
    padding: 25px 20px;
  }

  .modal-response-body {
    padding: 25px 20px;
  }

  .modal-response-icon {
    font-size: 50px;
  }

  .modal-response-title {
    font-size: 20px;
  }

  .modal-response-subtitle {
    font-size: 14px;
  }

  .modal-response-message {
    font-size: 14px;
  }
}

/* Smartphones médios (480px - 576px) */
@media (max-width: 576px) {
  .top-header .container {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .header-social {
    justify-content: center;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content .subtitle {
    font-size: 0.95rem;
  }

  .event-details .date {
    font-size: 1.3rem;
  }

  .event-details .location {
    font-size: 0.85rem;
  }

  .contact-form-wrapper h2 {
    font-size: 1.6rem;
  }

  .sponsors-card h2 {
    font-size: 1.6rem;
  }

  .video-gallery-section h2 {
    font-size: 1.6rem;
  }
}

/* Smartphones pequenos (menos de 480px) */
@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content .subtitle {
    font-size: 0.9rem;
  }

  .event-details .date {
    font-size: 1.2rem;
  }

  .event-details .location {
    font-size: 0.8rem;
  }

  .history-card h2 {
    font-size: 1.5rem;
  }

  .history-card p {
    font-size: 0.9rem;
  }

  .event-card h3 {
    font-size: 1.1rem;
  }

  .contact-form-wrapper h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
  }

  .submit-btn {
    font-size: 0.95rem;
    padding: 0.8rem;
  }

  .sponsors-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .logos-slide {
    gap: 2.5rem;
    animation-duration: 25s;
  }

  .logos-slide img {
    height: 50px;
    max-width: 120px;
  }

  .video-gallery-section h2 {
    font-size: 1.5rem;
  }

  .thumbnail {
    width: 45px;
    height: 45px;
  }

  .modal-response-title {
    font-size: 18px;
  }

  .modal-response-subtitle,
  .modal-response-message {
    font-size: 13px;
  }
}

/* Ajustes extras para telas muito pequenas */
@media (max-width: 360px) {
  .hero-content {
    padding: 1rem;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .event-details .date {
    font-size: 1.1rem;
  }

  .history-card {
    padding: 1rem;
  }

  .contact-container {
    padding: 1rem;
  }

  .sponsors-card {
    padding: 1.5rem 0.8rem;
  }
}

/* Landscape mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    height: auto;
    min-height: 100vh;
    padding: 2rem 1rem;
  }

  .hero-content {
    padding: 1rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .event-details {
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .event-details .date {
    font-size: 1.3rem;
  }
}

/* --- Seção de Galeria de Vídeos --- */
.video-gallery-section {
  padding: 6rem 2rem;
  position: relative;
  z-index: 2;
}

.video-gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 600px;
}

.main-video {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
}

.main-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.video-playlist {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.5rem;
  height: 100%;
}

/* Scrollbar customizada para a playlist */
.video-playlist::-webkit-scrollbar {
  width: 8px;
}

.video-playlist::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.video-playlist::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #00adef, #ed1c24);
  border-radius: 10px;
}

.video-playlist::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #0099d6, #d41820);
}

.video-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  padding: 0.8rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
  border: 2px solid transparent;
}

.video-item:hover {
  background-color: #e8f4fd;
  transform: translateX(5px);
  border-color: #00adef;
}

.video-item.active {
  background: linear-gradient(135deg, rgba(0, 173, 239, 0.1), rgba(237, 28, 36, 0.1));
  border-color: #00adef;
  box-shadow: 0 2px 8px rgba(0, 173, 239, 0.3);
}

.video-item img {
  width: 80px;
  height: 60px;
  object-fit: contain;
  border-radius: 6px;
  background-color: #fff;
  padding: 0.3rem;
  flex-shrink: 0;
}

.video-item p {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
  margin: 0;
}

/* Tablets (768px - 992px) */
@media (max-width: 992px) {
  .video-gallery-section {
    padding: 4rem 1.5rem;
  }

  .video-gallery-container {
    grid-template-columns: 1fr;
    height: auto;
    padding: 1.5rem;
  }

  .main-video {
    height: 400px;
  }

  .video-playlist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
  }

  .video-item {
    flex-direction: column;
    text-align: center;
    padding: 0.8rem;
  }

  .video-item:hover {
    transform: translateY(-3px);
  }

  .video-item img {
    width: 100%;
    height: 90px;
  }
}

/* Smartphones (menos de 768px) */
@media (max-width: 768px) {
  .video-gallery-section {
    padding: 3rem 1rem;
  }

  .video-gallery-container {
    padding: 1rem;
    gap: 1.5rem;
  }

  .main-video {
    height: 350px;
  }

  .video-playlist {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.8rem;
    max-height: 250px;
  }

  .video-item {
    padding: 0.6rem;
  }

  .video-item img {
    height: 80px;
  }

  .video-item p {
    font-size: 0.85rem;
  }
}

/* Smartphones pequenos (menos de 480px) */
@media (max-width: 480px) {
  .video-gallery-section {
    padding: 2rem 0.8rem;
  }

  .main-video {
    height: 280px;
  }

  .video-playlist {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.6rem;
    max-height: 220px;
  }

  .video-item {
    padding: 0.5rem;
  }

  .video-item img {
    height: 70px;
  }

  .video-item p {
    font-size: 0.8rem;
  }
}