/* Estilos específicos para a página História com fontes elegantes */
.hero-history {
  padding: 4rem 1rem 3rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(169, 0, 255, 0.08) 0%, rgba(255, 0, 255, 0.08) 100%);
  border-bottom: 1px solid rgba(169, 0, 255, 0.2);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-history::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #a900ff, transparent);
}

.history-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #d47aff, #a900ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
}

.history-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 25%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #a900ff, transparent);
}

.history-subtitle {
  font-family: 'Crimson Text', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 1.5rem auto 0;
  line-height: 1.5;
  font-style: italic;
}

.about-section-expanded {
  padding: 2rem 1rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-container-expanded {
  background: rgba(25, 25, 35, 0.8);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  border: 1px solid rgba(169, 0, 255, 0.25);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
}

.about-timeline {
  position: relative;
  padding-left: 2.5rem;
}

.about-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #ff00ff, #a900ff, #6a00ff);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
  display: flex;
  align-items: flex-start;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-year {
  position: absolute;
  left: -2.5rem;
  top: 0;
  transform: translateX(-100%);
  background: linear-gradient(135deg, #ff00ff, #a900ff);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(169, 0, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}

/* Imagens da Timeline - Visíveis apenas em Desktop */
.timeline-image {
  display: none;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 2rem;
  flex-shrink: 0;
  border: 4px solid #a900ff;
  box-shadow: 
    0 5px 15px rgba(169, 0, 255, 0.3),
    0 0 0 8px rgba(169, 0, 255, 0.1),
    0 0 0 12px rgba(255, 0, 255, 0.05);
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}

.timeline-image::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -30px;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #a900ff, transparent);
  transform: translateY(-50%);
  z-index: -1;
  transition: all 0.4s ease;
}

.timeline-image::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -25px;
  width: 10px;
  height: 10px;
  background: #ff00ff;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 10px #ff00ff;
  z-index: 2;
  transition: all 0.4s ease;
}

.timeline-image:hover {
  border-color: #ff00ff;
  box-shadow: 
    0 8px 25px rgba(255, 0, 255, 0.4),
    0 0 0 8px rgba(255, 0, 255, 0.15),
    0 0 0 12px rgba(169, 0, 255, 0.1);
  transform: scale(1.05);
}

.timeline-image:hover::before {
  background: linear-gradient(90deg, #ff00ff, transparent);
  width: 40px;
}

.timeline-image:hover::after {
  background: #a900ff;
  box-shadow: 0 0 15px #a900ff;
  transform: translateY(-50%) scale(1.3);
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.timeline-image:hover img {
  transform: scale(1.1);
}

.timeline-content {
  background: rgba(40, 40, 50, 0.6);
  border-radius: 10px;
  padding: 2rem;
  border-left: 4px solid #a900ff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1;
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.timeline-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #d47aff;
  letter-spacing: -0.3px;
}

.timeline-description {
  font-family: 'Crimson Text', serif;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.timeline-description:last-child {
  margin-bottom: 0;
}

.about-signature-expanded {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(169, 0, 255, 0.2);
  position: relative;
}

.about-signature-expanded::before {
  content: "❦";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(25, 25, 35, 0.8);
  padding: 0 1rem;
  color: #a900ff;
  font-size: 1.5rem;
}

.signature-text-expanded {
  font-family: 'Dancing Script', cursive;
  font-size: 3rem;
  color: #ff80e6;
  display: block;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.signature-line-expanded {
  height: 2px;
  width: 200px;
  background: linear-gradient(90deg, transparent, #a900ff, #ff00ff, transparent);
  margin: 0.5rem auto;
  border-radius: 2px;
}

/* Animações sutis */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-item {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }
.timeline-item:nth-child(7) { animation-delay: 0.7s; }

/* Estilos para Desktop - Imagens visíveis */
@media (min-width: 1024px) {
  .about-timeline {
    padding-left: 0;
  }
  
  .about-timeline::before {
    left: 190px; /* Ajuste para centralizar com as imagens */
  }
  
  .timeline-item {
    padding-left: 190px; /* Espaço para a imagem */
    margin-bottom: 4rem;
  }
  
  .timeline-year {
    left: 70px; /* Posicionado entre a imagem e a linha */
    transform: translateX(-50%);
  }
  
  .timeline-image {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
  }
  
  .timeline-content {
    margin-left: 0;
  }
}

/* Responsividade para Tablets e Mobile */
@media (max-width: 1023px) {
  .timeline-item {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero-history {
    padding: 3rem 1rem 2rem;
  }
  
  .history-title {
    font-size: 2.2rem;
  }
  
  .history-subtitle {
    font-size: 1.2rem;
  }
  
  .about-container-expanded {
    padding: 2rem 1.5rem;
  }
  
  .about-timeline {
    padding-left: 2rem;
  }
  
  .timeline-year {
    position: relative;
    left: 0;
    transform: none;
    display: inline-block;
    margin-bottom: 1rem;
  }
  
  .timeline-content {
    padding: 1.5rem;
  }
  
  .timeline-title {
    font-size: 1.3rem;
  }
  
  .timeline-description {
    font-size: 1.05rem;
  }
  
  .signature-text-expanded {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .history-title {
    font-size: 1.8rem;
  }
  
  .history-subtitle {
    font-size: 1.1rem;
  }
  
  .about-container-expanded {
    padding: 1.5rem 1rem;
  }
  
  .timeline-content {
    padding: 1.2rem;
  }
}

/* CSS para ícones do menu */
.menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.menu-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Torna os ícones brancos */
  transition: all 0.3s ease;
}

.menu-item:hover .menu-icon img {
  filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(200deg); /* Efeito hover azul */
}

/* Responsividade para diferentes telas */
@media (max-width: 768px) {
  .menu-icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .menu-icon {
    width: 18px;
    height: 18px;
  }
}

/* Para telas muito pequenas */
@media (max-width: 320px) {
  .menu-icon {
    width: 16px;
    height: 16px;
  }
}

/* Para telas grandes com alta densidade de pixels */
@media (min-width: 1200px) and (-webkit-min-device-pixel-ratio: 2),
       (min-width: 1200px) and (min-resolution: 192dpi) {
  .menu-icon img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Garantir qualidade de imagem em diferentes dispositivos */
.menu-icon img {
  image-rendering: auto;
}

/* Ajustes para o ícone de emoji (RGB) */
.menu-toggle-item .menu-icon {
  font-size: 18px;
  width: auto;
  height: auto;
}

/* Estados de foco para acessibilidade */
.menu-item:focus .menu-icon img,
.menu-accordion-header:focus .menu-icon img {
  filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(200deg);
}

/* Transições suaves */
.menu-icon, .menu-icon img {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}







/* ===== REGRAS AJUSTADAS PARA IMAGENS CIRCULARES ===== */

/* Desktop */
@media (min-width: 1024px) {
    /* Garantir formato circular e corte preciso */
    .timeline-image,
    .timeline-image img {
        border-radius: 50% !important;
        overflow: hidden !important;
        display: block;
    }

    /* Container principal da imagem do carrossel */
    .timeline-carousel-container {
        position: relative;
        width: 160px;
        height: 160px;
        border-radius: 50%;
        overflow: hidden;
        margin-right: 2rem;
        flex-shrink: 0;
        border: 4px solid #a900ff;
        box-shadow: 0 0 25px rgba(169, 0, 255, 0.35);
        background-color: #0d0016; /* fundo neutro para evitar halo duplo */
    }

    /* Imagem do carrossel */
    .carousel-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        opacity: 0;
        transition: opacity 1.2s ease-in-out;
    }

    .carousel-image.active {
        opacity: 1;
    }

    /* Exibir apenas a imagem ativa */
    .timeline-carousel-container .carousel-image:not(.active) {
        display: none;
    }
}

/* Mobile */
@media (max-width: 1023px) {
    .timeline-carousel-container {
        display: none;
    }
}