:root {
  --red: #d2232a;
  --yellow: #ffd400;
  --dark: #2b2b2b;
  --muted: #f7f5f3;
  --radius: 12px;
  --container: 1100px;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--dark);
  line-height: 1.45;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px;
}

header {
  background: linear-gradient(90deg, var(--red), var(--yellow));
  color: #fff;
  padding: 18px 0;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

nav ul {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
}

nav a:hover {
  color: #e5e5e5;
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

article .link:hover {
  color: darkred;
}

/* HERO */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 30px 0;
}

.hero-card {
  flex: 1 1 320px;
  background: #fff;
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

aside {
  flex: 1 1 260px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.card {
  background: #fff;
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.btn {
  display: inline-block;
  padding: 10px;
  background: var(--red);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
}

.link a:hover {
  color: #e5e5e5;
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* CARROSSEL */
.carousel {
  width: 100%;
  height: 420px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.carousel-track {
  display: flex;
  height: 100%;
}

.carousel-track .slide {
  min-width: 100%;
  height: 100%;
  display: block;
}

.carousel-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsivo */
@media (max-width: 768px) {
  .carousel {
    height: 300px;
  }

  .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
  }

  .insta-rodape {
    display: none;
  }
}

@media (max-width: 480px) {
  .carousel {
    height: 220px;
  }
}

footer {
  margin-top: 40px;
  background: #111;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

/* Mobile improvements */
@media (max-width: 768px) {
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    flex-direction: column;
  }

  aside {
    order: -1;
  }

  h1 {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 48px;
    height: 48px;
  }

  body {
    font-size: 15px;
  }

  .wrap {
    padding: 14px;
  }

  nav a {
    padding: 6px 10px;
    font-size: 14px;
  }
}

/* Iocalization */

.loc-btn {
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.loc-btn.maps {
  margin: 10px 10px 10px 0;
  background: #d2232a;
  color: #fff;
}

.loc-btn.waze {
  margin-bottom: 10px;
  background: #ffd400;
  color: #000;
}

.fade-in a:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.fade-in {
  animation: fadeInUp 1s ease both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animação nas localizações */

/* APP Escola Web */

.app-section {
  display: flex;
  justify-content: center;
  padding: 40px 16px;
}

.app-header {
  margin-bottom: 10px;
}

.escola-web {
  width: 100%;
  max-width: 460px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  background: linear-gradient(180deg, #ffffff, #f4f6f8);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.15);
}

/* Ícone do app */
.app-icon {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Títulos */
.escola-web h3 {
  margin: 6px 0 4px;
  font-size: 1.6rem;
  color: var(--vermelho);
}

.subtitle {
  margin-bottom: 18px;
  font-size: 0.95rem;
  color: #555;
}

/* Botões das lojas */
.store-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-badge {
  height: 64px;
  width: auto;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.escola-web .store-buttons a:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* QR Code */
.qr-area {
  margin: 22px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-area img {
  width: 160px;
  height: 160px;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Downloads */
.downloads {
  margin: 12px 0;
}

.downloads strong {
  font-size: 1.4rem;
  color: var(--vermelho);
}

/* Texto final */
.hint {
  font-size: 0.85rem;
  color: #444;
  max-width: 380px;
}

/* Mobile */
@media (max-width: 480px) {
  .store-badge {
    height: 56px;
  }
}

/* Atualização do header */

.app-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  gap: 10px;
  margin-bottom: 20px;
}

/* Ícone */
.app-header .app-icon {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* Texto */
.app-header-text h3 {
  margin: 4px 0 2px;
  font-size: 1.6rem;
  color: var(--vermelho);
}

.app-header-text .subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
  max-width: 360px;
}

/* Dark mode automático */
@media (prefers-color-scheme: dark) {
  .app-header-text .subtitle {
    color: #bbb;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .app-header .app-icon {
    width: 84px;
    height: 84px;
  }

  .app-header-text h3 {
    font-size: 1.45rem;
  }
}

/* =========================
   ESCOLA WEB - DARK CARD
========================= */
.app-header,
.escola-web {
  background: linear-gradient(180deg, #1e1e22, #141416);
  color: #f1f1f1;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

/* Título */
.escola-web .app-header-text h3 {
  color: #ffd400; /* amarelo institucional */
}

/* Subtítulo */
.escola-web .subtitle {
  color: #c9c9c9;
}

/* Texto auxiliar */
.escola-web .hint,
.escola-web .qr-area p {
  color: #bdbdbd;
}

/* Downloads */
.escola-web .downloads {
  color: #e5e5e5;
}

.escola-web .downloads strong {
  color: #ffd400;
}

/* Ícone */
.escola-web .app-icon {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.85);
}

/* Store badges */
.escola-web .store-badge {
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.8));
}

/* =========================
   CARROSSEL DE VÍDEOS 9:16
========================= */

.video-carousel {
  position: relative;
  max-width: 360px; /* largura ideal para 9:16 */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.video-track {
  display: flex;
  transition: transform 0.4s ease;
}

.video-slide {
  min-width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
}

.video-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

/* Botões */
.video-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  padding: 10px 14px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
}

.video-btn.prev {
  left: 10px;
}

.video-btn.next {
  right: 10px;
}

.video-btn:hover {
  background: var(--red);
}

/* Mobile */
@media (max-width: 480px) {
  .video-carousel {
    max-width: 100%;
  }
}
