/* Fast School - estilos próprios (ajustes, popup do vídeo, banner de cookies) */

/* ---------- Ajustes sobre o layout original ---------- */

/* Menu: links com rolagem suave */
.menu-ancora {
  color: inherit;
  transition: color .2s;
}
.menu-ancora:hover,
.gpc-e.e_texto .menu-ancora:hover {
  color: #47e3d9;
  text-decoration: none;
}

/* Rodapé: telefone e endereço clicáveis */
.link-rodape { color: inherit; }
.link-rodape:hover { color: #1fb5ab; }

/* Rodapé: "Autódromo Internacional de Tarumã" numa linha só */
#e_1511135_1_174103582667c61932e01c7521015786 { width: 360px; }
#e_1511135_1_174103582667c61932e01c7521015786 a { white-space: nowrap; }
@media (min-width: 801px) {
  /* com uma linha só, desce para ficar na altura do ícone (como o telefone) */
  #e_1511135_1_174103582667c61932e01c7521015786 { top: 59.5px; }
}
@media (max-width: 800px) {
  /* ícones e textos de endereço/telefone um pouco mais à esquerda para o endereço caber */
  #e_1511135_1_174103582667c61932e01c7521015786 { left: 96.704px !important; width: 230px !important; }
  #e_1511135_1_174103582667c61932e0382653136578 { left: 96.704px !important; }
  #e_1511135_1_174103582667c61932e0291634747617,
  #e_1511135_1_174103582667c61932e044b966106529 { margin-left: -20px; }
}

/* Cards de treinamento: as faixas escuras dos títulos ficavam deslocadas uma fração de pixel
   em relação ao card (sobrava fundo nas laterais); alinhadas exatamente com cada card */
#e_1511135_1_174103582667c61932de877544103815 { left: -119.011px; }
#e_1511135_1_174103582667c61932def54527691957 { left: 297.56px; }
#e_1511135_1_174103582667c61932df92b332251372 { left: 713.206px; }
@media (max-width: 800px) {
  #e_1511135_1_174103582667c61932de877544103815 { left: 21.8307px; }
  #e_1511135_1_174103582667c61932def54527691957 { left: 20.9807px; }
  #e_1511135_1_174103582667c61932df92b332251372 { left: 25.3807px; }
}

/* Cards de treinamento: ícone no espaço que ficava vazio acima do título */
#e_1511135_1_174103582667c61932de288767162860 .c::before,
#e_1511135_1_174103582667c61932dead1574100737 .c::before,
#e_1511135_1_174103582667c61932df3c5288862957 .c::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--faixa, 70px);
  display: grid;
  place-items: center;
  font-family: 'Material Icons';
  font-size: var(--icone, 34px);
  line-height: 1;
  color: #47e3d9;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
}
#e_1511135_1_174103582667c61932de288767162860 .c::before { content: 'flag'; }
#e_1511135_1_174103582667c61932dead1574100737 .c::before { content: 'speed'; }
#e_1511135_1_174103582667c61932df3c5288862957 .c::before { content: 'sports_motorsports'; }
@media (max-width: 800px) {
  #e_1511135_1_174103582667c61932de288767162860 .c { --faixa: 79px; }
  #e_1511135_1_174103582667c61932dead1574100737 .c { --faixa: 63px; }
  #e_1511135_1_174103582667c61932df3c5288862957 .c { --faixa: 36px; --icone: 26px; }
}

/* Logo no celular: a versão mobile gerada pelo GreatPages estava em branco */
@media (max-width: 800px) {
  #e_1511135_1_174103582667c61932dd16b503973859 {
    width: 92px !important;
    height: 56px !important;
    left: 16px !important;
    top: 22px !important;
  }
  #e_1511135_1_174103582667c61932dd16b503973859 .c .imagem_fundo {
    background-image: url("../img/layout/1511135_1_174103582667c61932dd16b503973859.png") !important;
    background-size: contain !important;
    background-position: left center !important;
  }
}

/* ---------- Popup do vídeo ---------- */
.popup {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(6, 9, 11, .88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
}
.popup.aberto { opacity: 1; visibility: visible; }

.popup__conteudo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: scale(.94) translateY(12px);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.popup.aberto .popup__conteudo { transform: none; }

/* vídeo vertical (9:16), cabe sempre na tela */
.popup__video {
  position: relative;
  height: min(78vh, 720px, calc((100vw - 32px) * 16 / 9));
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(71, 227, 217, .45), 0 0 40px rgba(71, 227, 217, .18), 0 30px 80px rgba(0, 0, 0, .6);
}
.popup__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.popup__legenda {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .7);
  text-align: center;
}
.popup__legenda strong {
  margin-right: 8px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: .08em;
  color: #47e3d9;
}

.popup__fechar {
  position: fixed;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.popup__fechar svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.popup__fechar:hover {
  background: #47e3d9;
  border-color: #47e3d9;
  color: #0b0d0f;
}

@media (max-width: 800px) {
  .popup__video { height: min(72vh, calc((100vw - 32px) * 16 / 9)); }
  .popup__fechar { top: 12px; right: 12px; width: 40px; height: 40px; }
}

/* ---------- Banner de cookies ---------- */
.cookies {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 720px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  padding: 16px 16px 16px 20px;
  background: #121417;
  border: 1px solid rgba(71, 227, 217, .35);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  font-family: 'Montserrat', sans-serif;
  color: #e7ecef;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 24px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s;
}
.cookies.visivel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.cookies__icone {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(71, 227, 217, .12);
  color: #47e3d9;
}
.cookies__icone svg { width: 22px; height: 22px; }
.cookies__texto {
  flex: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.cookies__btn {
  flex: none;
  height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #47e3d9;
  color: #0b0d0f;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.cookies__btn:hover { background: #7cefe7; }
.cookies__btn:active { transform: scale(.97); }

/* Fora do celular a frase fica numa linha só ("experiência" não desce) */
@media (min-width: 801px) {
  .cookies { width: max-content; }
  .cookies__texto { white-space: nowrap; }
}

@media (max-width: 800px) {
  .cookies {
    flex-wrap: wrap;
    bottom: 12px;
    gap: 12px;
    padding: 16px;
  }
  .cookies__texto { flex-basis: calc(100% - 56px); }
  .cookies__btn { width: 100%; }
}

/* Ícones retos (padrão de todos os sites): o CSS herdado do GreatPages deixa a página em itálico
   e o navegador inclinava os ícones de fonte (Font Awesome, Material Icons, Material Symbols) */
.fa, .fas, .far, .fab, .fal, .fad, .fa-solid, .fa-regular, .fa-brands, .fa-light,
[class^="fa-"], [class*=" fa-"],
.material-icons, .material-icons-outlined, .material-icons-round, .material-icons-sharp,
.material-symbols-outlined, .material-symbols-rounded, .material-symbols-sharp {
  font-style: normal !important;
}
