@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

.historia-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #fff9e6 0%, #f0f9e6 50%, #ffe8d6 100%);
    position: relative;
    overflow: hidden;
}

.historia-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(235, 171, 61, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: float 8s ease-in-out infinite;
}

.historia-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(174, 216, 87, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-30px);
    }
}

.historia-content {
    position: relative;
    z-index: 2;
}

/* Badge */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(235, 171, 61, 0.3);
    animation: slideInLeft 0.6s ease-out;
}

.section-badge i {
    font-size: 1.1rem;
}

/* Título */
.historia-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 2.5rem;
    line-height: 1.2;
    animation: slideInLeft 0.8s ease-out;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Timeline */
.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2rem;
    animation: slideInLeft 1s ease-out;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 2.5rem;
    bottom: -2rem;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

.timeline-item:last-of-type::before {
    display: none;
}

.timeline-year {
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    box-shadow: 0 4px 15px rgba(235, 171, 61, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(235, 171, 61, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(235, 171, 61, 0.6);
    }
}

.timeline-content h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

.highlight-name {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
}

.highlight-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--tertiary-color));
    border-radius: 2px;
}

/* Stats */
.stats-container {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.stat-item:nth-child(1) {
    border-color: var(--primary-color);
}

.stat-item:nth-child(2) {
    border-color: var(--tertiary-color);
}

.stat-item:nth-child(3) {
    border-color: var(--secondary-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

/* Imagem */
.historia-image-wrapper {
    position: relative;
    z-index: 2;
}

.img-bg-home {
    width: 100%;
    height: 500px;
    background-image: url('/static/sobre/img/home.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.8s ease-out;
}

.img-bg-home::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(235, 171, 61, 0.2) 0%, rgba(174, 216, 87, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.img-bg-home:hover::before {
    opacity: 1;
}

/* Overlay da imagem */
.image-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.overlay-badge {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    animation: slideInUp 1s ease-out;
}

.overlay-badge i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.overlay-badge span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark-color);
}

/* Decorações */
.image-decoration {
    position: absolute;
    border-radius: 2rem;
    z-index: -1;
}

.decoration-1 {
    width: 100%;
    height: 100%;
    top: -20px;
    left: -20px;
    background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
    opacity: 0.3;
}

.decoration-2 {
    width: 150px;
    height: 150px;
    top: -30px;
    right: -30px;
    background: var(--secondary-color);
    opacity: 0.4;
    animation: float 6s ease-in-out infinite;
}

.decoration-3 {
    width: 100px;
    height: 100px;
    bottom: -20px;
    left: -20px;
    background: var(--tertiary-color);
    opacity: 0.4;
    animation: float 7s ease-in-out infinite reverse;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3;
    animation: floatCard 4s ease-in-out infinite;
}

.floating-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

.floating-card div {
    display: flex;
    flex-direction: column;
}

.floating-card strong {
    font-size: 1rem;
    color: var(--dark-color);
    font-weight: 700;
}

.floating-card span {
    font-size: 0.85rem;
    color: #666;
}

.floating-card-1 {
    top: 10%;
    right: -10%;
    border-left: 4px solid var(--primary-color);
}

.floating-card-2 {
    bottom: 15%;
    left: -8%;
    border-left: 4px solid var(--secondary-color);
    animation-delay: 1s;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Animações */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 992px) {
    .historia-title {
        font-size: 2.5rem;
    }
    
    .img-bg-home {
        height: 400px;
        margin-top: 3rem;
    }
    
    .floating-card-1,
    .floating-card-2 {
        position: static;
        margin-top: 1rem;
    }
    
    .stats-container {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .historia-section {
        padding: 3rem 0;
    }
    
    .historia-title {
        font-size: 2rem;
    }
    
    .timeline-content h4 {
        font-size: 1.2rem;
    }
    
    .timeline-content p {
        font-size: 0.95rem;
    }
    
    .img-bg-home {
        height: 350px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .floating-card {
        padding: 0.8rem 1rem;
    }
    
    .floating-card i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .historia-title {
        font-size: 1.8rem;
    }
    
    .img-bg-home {
        height: 300px;
    }
    
    .stats-container {
        flex-direction: column;
    }
    
    .stat-item {
        width: 100%;
    }
}


.img-bg-building {
  width: 100%;
  height: 400px; /* ajuste conforme necessário */
  background-image: url('/static/sobre/img/12.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  
}




:root {
      --primary-color: #ebab3d;
      --secondary-color: #aed857;
      --tertiary-color: #f29c5e;
      --quaternary-color: #96b83b;
      --dark-color: #2c3e50;
      --light-color: #f8f9fa;
  }

  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }

  body {
      font-family: 'Poppins', sans-serif;

      background: linear-gradient(135deg, #fff9e6 0%, #f0f9e6 50%, #ffe8d6 100%);
      min-height: 100vh;
      position: relative;
      overflow-x: hidden;
  }

  /* Fundo animado */
  .animated-bg {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none;
  }

  .bg-circle {
      position: absolute;
      border-radius: 50%;
      filter: blur(80px);
      opacity: 0.3;
      animation: pulse 4s ease-in-out infinite;
  }

  .bg-circle-1 {
      width: 300px;
      height: 300px;
      background: var(--primary-color);
      top: 10%;
      left: 10%;
  }

  .bg-circle-2 {
      width: 400px;
      height: 400px;
      background: var(--secondary-color);
      bottom: 10%;
      right: 10%;
      animation-delay: 1s;
  }

  .bg-circle-3 {
      width: 500px;
      height: 500px;
      background: var(--tertiary-color);
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      animation-delay: 2s;
  }

  @keyframes pulse {
      0%, 100% {
          transform: scale(1);
          opacity: 0.3;
      }
      50% {
          transform: scale(1.1);
          opacity: 0.5;
      }
  }

  @keyframes float {
      0%, 100% {
          transform: translateY(0px);
      }
      50% {
          transform: translateY(-15px);
      }
  }

  @keyframes slideIn {
      from {
          opacity: 0;
          transform: translateX(30px);
      }
      to {
          opacity: 1;
          transform: translateX(0);
      }
  }

  .carousel-section {
      position: relative;
      z-index: 1;
      padding: 3rem 1rem;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
  }

  .carousel-header {
      text-align: center;
      margin-bottom: 3rem;
      animation: slideIn 0.6s ease-out;
  }

  .carousel-header h2 {
      font-size: 3.5rem;
      font-weight: bold;
      background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color), var(--secondary-color));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: 1rem;
      display: inline-block;
  }

  .sparkle {
      display: inline-block;
      color: var(--primary-color);
      animation: pulse 2s ease-in-out infinite;
      font-size: 2rem;
      margin: 0 0.5rem;
  }

  .sparkle:nth-child(3) {
      animation-delay: 0.5s;
  }

  .carousel-header p {
      font-size: 1.5rem;
      color: var(--dark-color);
      font-weight: 500;
  }

  .carousel-container {
      position: relative;
      width: 100%;
      max-width: 1100px;
      margin: 0 auto;
  }

  .carousel-card {
      background: rgba(255, 255, 255, 0.95);
      border-radius: 2rem;
      padding: 4rem 3rem;
      text-align: center;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
      position: relative;
      overflow: hidden;
      border: 4px solid;
      transition: all 0.5s ease;
      animation: slideIn 0.5s ease-out;
  }

  .carousel-card::before,
  .carousel-card::after {
      content: '';
      position: absolute;
      border-radius: 50%;
      opacity: 0.1;
      pointer-events: none;
  }

  .carousel-card::before {
      width: 200px;
      height: 200px;
      top: -50px;
      left: -50px;
  }

  .carousel-card::after {
      width: 250px;
      height: 250px;
      bottom: -70px;
      right: -70px;
  }

  .icon-container {
      width: 140px;
      height: 140px;
      margin: 0 auto 2rem;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 4px solid;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
      animation: float 3s ease-in-out infinite;
      position: relative;
      z-index: 2;
  }

  .icon-container i {
      font-size: 4rem;
  }

  .member-name {
      font-size: 2.5rem;
      font-weight: bold;
      margin-bottom: 1rem;
      position: relative;
      z-index: 2;
  }

  .member-role {
      font-size: 1.3rem;
      font-weight: bold;
      color: var(--dark-color);
      margin-bottom: 0.5rem;
  }

  .member-info {
      font-size: 1.1rem;
      color: #666;
      margin-bottom: 0.3rem;
  }

  .member-crmv {
      font-size: 1.1rem;
      font-weight: 600;
      margin-bottom: 1.5rem;
  }

  .member-description {
      font-size: 1.1rem;
      color: var(--dark-color);
      line-height: 1.8;
      max-width: 800px;
      margin: 0 auto;
      font-weight: 500;
      position: relative;
      z-index: 2;
  }

  /* Botões de navegação */
  .carousel-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 60px;
      height: 60px;
      border-radius: 50%;
      border: 3px solid;
      background: white;
      color: white;
      font-size: 1.5rem;
      cursor: pointer;
      z-index: 10;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  }

  .carousel-btn:hover {
      transform: translateY(-50%) scale(1.1);
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  }

  .carousel-btn-prev {
      left: -30px;
  }

  .carousel-btn-next {
      right: -30px;
  }

  /* Indicadores */
  .carousel-indicators {
      display: flex;
      justify-content: center;
      gap: 0.8rem;
      margin-top: 2.5rem;
  }

  .indicator {
      height: 12px;
      border-radius: 10px;
      border: none;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .indicator:hover {
      transform: scale(1.1);
  }

  .indicator.active {
      width: 50px;
  }

  .indicator:not(.active) {
      width: 12px;
      opacity: 0.5;
  }

  /* Controle de auto-play */
  .autoplay-control {
      text-align: center;
      margin-top: 2rem;
  }

  .autoplay-btn {
      padding: 0.8rem 2rem;
      border-radius: 50px;
      border: 2px solid;
      background: rgba(255, 255, 255, 0.9);
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .autoplay-btn:hover {
      transform: scale(1.05);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  }

  /* Responsividade */
  @media (max-width: 768px) {
      .carousel-header h2 {
          font-size: 2.5rem;
      }

      .carousel-header p {
          font-size: 1.2rem;
      }

      .carousel-card {
          padding: 3rem 2rem;
      }

      .icon-container {
          width: 100px;
          height: 100px;
      }

      .icon-container i {
          font-size: 3rem;
      }

      .member-name {
          font-size: 2rem;
      }

      .member-role {
          font-size: 1.1rem;
      }

      .member-description {
          font-size: 1rem;
      }

      .carousel-btn {
          width: 50px;
          height: 50px;
          font-size: 1.2rem;
      }

      .carousel-btn-prev {
          left: -15px;
      }

      .carousel-btn-next {
          right: -15px;
      }
  }

  @media (max-width: 480px) {
      .carousel-header h2 {
          font-size: 2rem;
      }

      .sparkle {
          font-size: 1.5rem;
      }

      .carousel-card {
          padding: 2rem 1.5rem;
      }

      .icon-container {
          width: 80px;
          height: 80px;
      }

      .icon-container i {
          font-size: 2.5rem;
      }

      .member-name {
          font-size: 1.6rem;
      }
  }