/*
Theme Name: Palladino LEMC
Description: Tema personalizado para o motoclube Palladino LEMC - Law Enforcement Motorcycle Club
Author: silvaprof
Version: 3.0
*/

/* Vídeo full screen atrás do conteúdo */
.youtube-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.youtube-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw; /* proporção 16:9 */
  min-height: 100vh; /* cobre telas altas, como celular em pé */
  min-width: 177.77vh; /* cobre telas largas, como celular deitado */
}

/* Zoom no mobile */
@media (max-width: 768px) {
  .youtube-bg iframe {
    transform: translate(-50%, -50%) scale(1.3); /* zoom de 130% */
  }
}

/* Container do topo com fundo semi-transparente para destacar */
.topo-container {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 204, 0, 0.3);
  transition: all 0.3s ease;
}

/* Ajustar header para ficar no topo */
header {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

/* Logo e nome do motoclube */
.logo-nome {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  width: 65px;
  height: 65px;
  object-fit: cover;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.logo:hover {
  transform: scale(1.05);
}

.logo-nome h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  letter-spacing: 1px;
  background: linear-gradient(45deg, #fff, #ffcc00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Menu toggle (hambúrguer) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 12;
}

/* Menu */
nav ul.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

nav ul.menu li a {
  color: #fff;
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  position: relative;
  padding: 8px 16px;
  border-radius: 6px;
}

nav ul.menu li a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ffcc00, #ff6b35);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

nav ul.menu li a:hover::before {
  width: 80%;
}

nav ul.menu li a:hover {
  color: #ffcc00;
  background: rgba(255, 204, 0, 0.1);
  transform: translateY(-2px);
}

/* Botão de fechar menu (mobile) */
.menu-close {
  display: none;
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 15;
  width: 40px;
  height: 40px;
  padding: 0;
  text-align: center;
  line-height: 1;
}

/* Responsivo mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  nav ul.menu {
    position: fixed;
    top: 0;
    right: -100vw;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: right 0.4s ease;
    z-index: 15;
    padding: 80px 20px;
  }
  
  nav ul.menu.active {
    right: 0;
  }
  
  nav ul.menu.deactivate {
    animation: slideOut 0.4s ease forwards;
  }
  
  @keyframes slideOut {
    from { right: 0; }
    to { right: -100vw; }
  }
  
  .menu-close {
    display: block !important;
  }
  
  nav ul.menu li {
    margin: 0;
  }
  
  nav ul.menu li a {
    font-size: 1.8rem;
    padding: 15px 30px;
    display: block;
    text-align: center;
    border-radius: 10px;
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.3);
  }
  
  nav ul.menu li a:hover {
    background: rgba(255, 204, 0, 0.2);
    transform: scale(1.05);
  }
}

/* Estilos gerais */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Rajdhani', sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

main {
  padding-top: 120px;
}

/* Seções */
section {
  padding: 80px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.tela-inicial {
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.texto-destaque h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.8rem;
  font-weight: 400;
  margin: 0;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.9);
  line-height: 1.3;
  background: linear-gradient(135deg, #fff, #ffcc00, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
  from { filter: drop-shadow(0 0 10px rgba(255, 204, 0, 0.5)); }
  to { filter: drop-shadow(0 0 20px rgba(255, 204, 0, 0.8)); }
}

.texto-destaque p {
  font-size: 1.4rem;
  margin: 25px 0 0;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
  color: #f0f0f0;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Sobre */
#sobre {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(20, 20, 20, 0.9));
  border-radius: 20px;
  margin: 60px auto;
  border: 1px solid rgba(255, 204, 0, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

#sobre::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 204, 0, 0.1), transparent);
  transition: left 0.5s;
}

#sobre:hover::before {
  left: 100%;
}

#sobre h2 {
  font-size: 2.8rem;
  margin-bottom: 35px;
  text-align: center;
  background: linear-gradient(45deg, #ffcc00, #ff6b35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

#sobre h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #ffcc00, #ff6b35);
  border-radius: 2px;
}

#sobre p {
  font-size: 1.15rem;
  line-height: 1.9;
  margin-bottom: 25px;
  text-align: justify;
  color: #e0e0e0;
  position: relative;
  z-index: 1;
  text-indent: 30px;
}

/* Galeria */
#galeria {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(20, 20, 20, 0.9));
  border-radius: 20px;
  margin: 60px auto;
  border: 1px solid rgba(255, 204, 0, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

#galeria h2 {
  font-size: 2.8rem;
  margin-bottom: 35px;
  text-align: center;
  background: linear-gradient(45deg, #ffcc00, #ff6b35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

#galeria h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #ffcc00, #ff6b35);
  border-radius: 2px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 204, 0, 0.2), rgba(255, 107, 53, 0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 40px rgba(255, 204, 0, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #ffcc00;
}

/* Contato */
.contato-container {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(20, 20, 20, 0.9));
  border-radius: 20px;
  padding: 50px;
  text-align: center;
  margin: 60px auto;
  border: 1px solid rgba(255, 204, 0, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.contato-container h2 {
  font-size: 2.8rem;
  margin-bottom: 35px;
  background: linear-gradient(45deg, #ffcc00, #ff6b35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.contato-container h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #ffcc00, #ff6b35);
  border-radius: 2px;
}

.contato-container p {
  font-size: 1.3rem;
  margin: 20px 0;
  color: #e0e0e0;
}

.contato-container a {
  background: linear-gradient(45deg, #ffcc00, #ff6b35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 10px;
  border-radius: 8px;
}

.contato-container a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 204, 0, 0.1), rgba(255, 107, 53, 0.1));
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contato-container a:hover::before {
  opacity: 1;
}

.contato-container a:hover {
  transform: translateY(-2px);
}

/* Botão flutuante Instagram */
.botao-flutuante {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d, #f56040, #f77737, #fcaf45, #ffdc80);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  z-index: 100;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4); }
  50% { box-shadow: 0 8px 35px rgba(255, 107, 53, 0.6); }
  100% { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4); }
}

.botao-flutuante:hover {
  transform: scale(1.15) translateY(-5px);
  color: #fff;
  animation: none;
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.8);
}

/* Rodapé */
.rodape {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(10, 10, 10, 0.95));
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, #ffcc00, #ff6b35) 1;
  backdrop-filter: blur(10px);
}

.rodape p {
  margin: 0;
  font-size: 1.1rem;
  color: #ccc;
  font-weight: 300;
}

.rodape a {
  background: linear-gradient(45deg, #ffcc00, #ff6b35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.rodape a:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 2px 4px rgba(255, 204, 0, 0.5));
}

/* Responsivo */
@media (max-width: 768px) {
  .logo-nome h1 {
    font-size: 1.6rem;
    letter-spacing: 0.5px;
  }
  
  .logo {
    width: 55px;
    height: 55px;
  }
  
  .texto-destaque h2 {
    font-size: 2.2rem;
    padding: 0 15px;
  }
  
  .texto-destaque p {
    font-size: 1.2rem;
    padding: 0 15px;
  }
  
  section {
    padding: 60px 15px;
  }
  
  #sobre h2, #galeria h2, .contato-container h2 {
    font-size: 2.3rem;
  }
  
  #sobre, #galeria, .contato-container {
    margin: 40px auto;
    border-radius: 15px;
  }
  
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
  }
  
  .botao-flutuante {
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
    font-size: 1.4rem;
  }
  
  .close {
    top: 20px;
    right: 30px;
    font-size: 30px;
  }
  
  .contato-container {
    padding: 35px 25px;
  }
  
  .topo-container {
    padding: 12px 0;
  }
}

@media (max-width: 480px) {
  .contato-container {
    padding: 30px 20px;
    border-radius: 12px;
  }
  
  .contato-container p {
    font-size: 1.1rem;
  }
  
  .texto-destaque h2 {
    font-size: 1.9rem;
  }
  
  .logo-nome h1 {
    font-size: 1.4rem;
  }
  
  nav ul.menu li a {
    font-size: 1.4rem;
    padding: 12px 20px;
  }
  
  #sobre, #galeria, .contato-container {
    margin: 30px auto;
  }
}

/* Estilos adicionais para templates WordPress */

.page-content, .post-content {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  padding: 40px;
  margin: 40px auto;
  max-width: 1000px;
  line-height: 1.8;
}

.page-content h1, .page-content h2, .page-content h3,
.post-content h1, .post-content h2, .post-content h3 {
  color: #ffcc00;
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-content p, .post-content p {
  margin-bottom: 20px;
}

.post-meta {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.post-meta time, .post-meta span {
  margin-right: 15px;
}

.post-thumbnail {
  margin: 20px 0;
  text-align: center;
}

.post-thumbnail img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.post-tags {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #333;
  color: #ccc;
}

.post-tags a {
  color: #ffcc00;
  text-decoration: none;
  margin-right: 10px;
}

.post-tags a:hover {
  text-decoration: underline;
}

/* Estilos para arquivo de posts */
.posts-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.post-preview {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 40px;
}

.post-preview h2 {
  margin: 0 0 15px 0;
}

.post-preview h2 a {
  color: #ffcc00;
  text-decoration: none;
  transition: color 0.3s;
}

.post-preview h2 a:hover {
  color: #fff;
}

.post-excerpt {
  margin: 20px 0;
  line-height: 1.6;
}

.read-more {
  color: #ffcc00;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.read-more:hover {
  color: #fff;
  text-decoration: underline;
}

.pagination {
  text-align: center;
  margin: 40px 0;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.pagination a, .pagination span {
  display: inline-block;
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.pagination a:hover, .pagination .current {
  background: #ffcc00;
  color: #000;
}

/* Responsivo para templates */
@media (max-width: 768px) {
  .page-content, .post-content, .post-preview {
    padding: 20px;
    margin: 20px auto;
  }
  
  .posts-container {
    padding: 0 15px;
  }
  
  .pagination .nav-links {
    flex-wrap: wrap;
  }
}
