/* HISTÓRIA PAGE - HERO SECTION */
.historia-hero {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,  rgba(74, 160, 163, 0.697) 0%, rgba(23, 56, 57, 0.697) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  top: 40px;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 6rem var(--spacing-6);
}

.hero-text-container {
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-4);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* HISTÓRIA PAGE - TIMELINE SECTION */
.timeline-section {
  padding: var(--spacing-24) 0;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--light-gray) 100%);
  position: relative;
}

.timeline-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-6);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-20);
}

.timeline-main-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--black);
  margin-bottom: var(--spacing-4);
  position: relative;
}

.timeline-main-title::after {
  content: '';
  position: absolute;
  bottom: -var(--spacing-2);
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-teal) 0%, var(--secondary-blue) 100%);
  border-radius: var(--radius-full);
}

.timeline-subtitle {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-normal);
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--line-height-relaxed);
}

.timeline-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary-teal) 0%, var(--secondary-blue) 100%);
  transform: translateX(-50%);
  border-radius: var(--radius-full);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-16);
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
}

.timeline-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.timeline-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-6);
}

.timeline-left .timeline-content {
  justify-content: flex-end;
  text-align: left;
}

.timeline-right .timeline-content {
  justify-content: flex-start;
  text-align: left;
}

.timeline-center .timeline-content {
  justify-content: center;
  text-align: center;
}

.timeline-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-blue) 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--font-size-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.timeline-icon-future {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-teal-dark) 0%, var(--secondary-blue-dark) 100%);
  font-size: var(--font-size-2xl);
}

.timeline-card {
  background: var(--white);
  padding: var(--spacing-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  max-width: 400px;
  position: relative;
}

.timeline-card-future {
  max-width: 500px;
  background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
  border: 2px solid var(--primary-teal);
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 12px solid transparent;
  transform: translateY(-50%);
}

.timeline-left .timeline-card::before {
  right: -24px;
  border-left-color: var(--white);
}

.timeline-right .timeline-card::before {
  left: -24px;
  border-right-color: var(--white);
}

.timeline-center .timeline-card::before {
  display: none;
}

.timeline-image {
  width: 100%;
  height: fit-content;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--spacing-4);
}

.timeline-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-normal);
}
/* 
.timeline-card:hover .timeline-img {
  transform: scale(1.05);
} */

.timeline-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--black);
  margin-bottom: var(--spacing-3);
  position: relative;
}

.timeline-description {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  color: var(--text-gray);
  line-height: var(--line-height-relaxed);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .hero-title {
    font-size: var(--font-size-4xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
  
  .timeline-main-title {
    font-size: var(--font-size-3xl);
  }
  
  .timeline-card {
    max-width: 350px;
  }
}

@media (max-width: 768px) {
  .historia-hero {
    height: 40vh;
    min-height: 300px;
  }
  
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-base);
  }
  
  .timeline-section {
    padding: var(--spacing-16) 0;
  }
  
  .timeline-main-title {
    font-size: var(--font-size-2xl);
  }
  
  .timeline-subtitle {
    font-size: var(--font-size-base);
  }
  
  .timeline-line {
    left: 30px;
    transform: none;
  }
  
  .timeline-item {
    margin-bottom: var(--spacing-12);
  }
  
  .timeline-left .timeline-content,
  .timeline-right .timeline-content,
  .timeline-center .timeline-content {
    justify-content: flex-start;
    text-align: left;
    padding-left: var(--spacing-20);
  }
  
  .timeline-icon {
    position: absolute;
    left: 0;
    width: 50px;
    height: 50px;
    font-size: var(--font-size-lg);
  }
  
  .timeline-icon-future {
    width: 60px;
    height: 60px;
    font-size: var(--font-size-xl);
  }
  
  .timeline-card {
    max-width: none;
    margin-left: 0;
  }
  
  .timeline-card::before {
    left: -24px;
    border-right-color: var(--white);
    border-left-color: transparent;
  }
  
  .timeline-left .timeline-card::before {
    left: -24px;
    border-right-color: var(--white);
    border-left-color: transparent;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 0 var(--spacing-4);
  }
  
  .hero-title {
    font-size: var(--font-size-2xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-sm);
  }
  
  .timeline-container {
    padding: 0 var(--spacing-4);
  }
  
  .timeline-main-title {
    font-size: var(--font-size-xl);
  }
  
  .timeline-subtitle {
    font-size: var(--font-size-sm);
  }
  
  .section-header {
    margin-bottom: var(--spacing-12);
  }
  
  .timeline-card {
    padding: var(--spacing-6);
  }
  
  .timeline-title {
    font-size: var(--font-size-lg);
  }
  
  .timeline-description {
    font-size: var(--font-size-sm);
  }
  
  .timeline-image {
    height: fit-content;
  }
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.timeline-icon {
  animation: pulse 2s ease-in-out infinite;
}

.timeline-icon:hover {
  animation-play-state: paused;
  transform: scale(1.1);
}

/* Seção Missão, Visão, Valores e Experiência */
.mvv-section {
  padding: var(--spacing-24) var(--spacing-4);
  background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
  position: relative;
  overflow: hidden;
}

/* Elementos decorativos de fundo */
.mvv-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: radial-gradient(circle at 30% 70%, var(--primary-teal-light) 0%, transparent 50%);
  opacity: 0.05;
  z-index: 1;
}

.mvv-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 80%;
  height: 150%;
  background: radial-gradient(circle at 70% 30%, var(--secondary-blue-light) 0%, transparent 40%);
  opacity: 0.08;
  z-index: 1;
}

.mvv-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-8);
  position: relative;
  z-index: 2;
}

/* Posiciona o quarto item no centro quando tela grande */
@media (min-width: 1024px) {
  .mvv-container {
    grid-template-rows: auto auto;
  }
  
  .mvv-card:nth-child(4) {
    grid-column: 2 / 3;
    grid-row: 2;
  }
}

.mvv-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-8);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-gray);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.mvv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-teal) 0%, var(--secondary-blue) 100%);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.mvv-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.mvv-card:hover::before {
  transform: scaleX(1);
}

/* Card destacado para experiência */
.mvv-card-highlight {
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--primary-teal);
}

.mvv-card-highlight .mvv-title,
.mvv-card-highlight .mvv-description {
  color: var(--black);
}

.mvv-card-highlight::before {
  background: linear-gradient(90deg, var(--primary-teal) 0%, var(--secondary-blue) 100%);
  height: 6px;
}

/* Ícones */
.mvv-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-6);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  position: relative;
  font-size: var(--font-size-3xl);
  transition: all var(--transition-normal);
}

.mvv-icon-mission {
  background: linear-gradient(135deg, var(--primary-teal-light) 0%, var(--primary-teal) 100%);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(92, 197, 200, 0.3);
}

.mvv-icon-experience {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
  position: relative;
}

.mvv-icon-vision {
  background: linear-gradient(135deg, var(--secondary-blue-light) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(74, 144, 164, 0.3);
}

.mvv-icon-values {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.mvv-card-highlight .mvv-icon {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

/* Badge de experiência */
.experience-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--white);
  color: #FFA500;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  padding: var(--spacing-1) var(--spacing-2);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
}

.mvv-card-highlight .experience-badge {
  background: var(--white);
  color: #FFA500;
}

/* Hover nos ícones */
.mvv-card:hover .mvv-icon {
  transform: scale(1.1) rotate(5deg);
}

.mvv-card-highlight:hover .mvv-icon {
  transform: scale(1.1);
}

/* Conteúdo */
.mvv-content {
  text-align: center;
}

.mvv-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--black);
  margin-bottom: var(--spacing-4);
  letter-spacing: 0.5px;
  line-height: var(--line-height-tight);
}

.mvv-description {
  font-size: var(--font-size-base);
  color: var(--text-gray);
  line-height: var(--line-height-relaxed);
  margin-bottom: 0;
}

/* Lista de valores */
.mvv-values-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mvv-values-list li {
  font-size: var(--font-size-base);
  color: var(--text-gray);
  padding: var(--spacing-2) 0;
  border-bottom: 1px solid var(--border-gray);
  position: relative;
  padding-left: var(--spacing-6);
  transition: color var(--transition-fast);
}

.mvv-values-list li:last-child {
  border-bottom: none;
}

.mvv-values-list li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: var(--primary-teal);
  font-weight: var(--font-weight-bold);
  transition: transform var(--transition-fast);
}

.mvv-values-list li:hover {
  color: var(--black);
}

.mvv-values-list li:hover::before {
  transform: scale(1.2);
}

/* Responsividade */
@media (max-width: 1023px) {
  .mvv-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mvv-section {
    padding: var(--spacing-16) var(--spacing-4);
  }
  
  .mvv-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-6);
  }
  
  .mvv-card {
    padding: var(--spacing-6);
  }
  
  .mvv-icon {
    width: 60px;
    height: 60px;
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-4);
  }
  
  .mvv-title {
    font-size: var(--font-size-lg);
  }
  
  .mvv-description {
    font-size: var(--font-size-sm);
  }
  
  .experience-badge {
    font-size: 10px;
    padding: 2px var(--spacing-1);
  }
}

@media (max-width: 480px) {
  .mvv-section {
    padding: var(--spacing-12) var(--spacing-3);
  }
  
  .mvv-card {
    padding: var(--spacing-5);
  }
  
  .mvv-icon {
    width: 50px;
    height: 50px;
    font-size: var(--font-size-xl);
  }
  
  .mvv-title {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-3);
  }
  
  .mvv-values-list li {
    font-size: var(--font-size-sm);
    padding: var(--spacing-1) 0;
    padding-left: var(--spacing-5);
  }
}

/* Animações de entrada */
@media (prefers-reduced-motion: no-preference) {
  .mvv-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
  }
  
  .mvv-card:nth-child(1) { animation-delay: 0.1s; }
  .mvv-card:nth-child(2) { animation-delay: 0.2s; }
  .mvv-card:nth-child(3) { animation-delay: 0.3s; }
  .mvv-card:nth-child(4) { animation-delay: 0.4s; }
  
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

