/* ===================================
   Chi Siamo Page Styles
   Mobile-First Responsive Design
   =================================== */

/* ===================================
   HEADER SECTION
   =================================== */

.chi-siamo-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
  padding: 50px 0 35px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.chi-siamo-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.chi-siamo-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.title-decoration {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ec4899 0%, #db2777 50%, #a855f7 100%);
  margin: 1.5rem auto;
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(236, 72, 153, 0.5);
}

.chi-siamo-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ===================================
   TIMELINE SECTION
   =================================== */

.timeline-section {
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  padding: 45px 0 80px 0;
  position: relative;
  overflow: hidden;
}

.timeline-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="timelineGrain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="25" cy="75" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="75" cy="25" r="1" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23timelineGrain)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.timeline-section .container {
  position: relative;
  z-index: 2;
}

.timeline-section .section-title {
  color: #ffffff;
}

.timeline-section .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #666666;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}


.timeline-content {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.timeline-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.timeline-content:hover .timeline-image img {
  transform: scale(1.05);
}

.timeline-text {
  padding: 2rem;
}

.timeline-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 1rem;
}

.timeline-description {
  font-size: 1rem;
  color: #666666;
  line-height: 1.7;
  margin: 0;
}

/* ===================================
   VALORI SECTION
   =================================== */

.valori-section {
  background: linear-gradient(135deg, #a855f7 0%, #db2777 50%, #ec4899 100%);
  padding: 45px 0 80px 0;
  position: relative;
  overflow: hidden;
}

.valori-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="valoriPattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23valoriPattern)"/></svg>');
  z-index: 1;
}

.valori-section .container {
  position: relative;
  z-index: 2;
}

.valori-section .section-title {
  color: #ffffff;
}

.valori-section .title-decoration {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.valori-section .section-subtitle {
  color: rgba(255, 255, 255, 0.95);
}

.valori-section .section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.valori-section .title-decoration {
  margin: 1.5rem auto;
}

.valori-section .section-subtitle {
  text-align: center;
  margin-bottom: 4rem;
}

.valori-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.valore-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.valore-card:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.valore-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899 0%, #db2777 50%, #a855f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.valore-icon svg {
  width: 40px;
  height: 40px;
  color: #ffffff;
}

.valore-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 0.75rem;
}

.valore-description {
  font-size: 1rem;
  color: #666666;
  line-height: 1.6;
  margin: 0;
}

/* ===================================
   TEAM SECTION
   =================================== */

.team-section {
  background: #ffffff;
  padding: 35px 0 80px 0;
}

.team-section .section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.team-section .section-title .mobile-break {
  display: none;
}

.team-section .title-decoration {
  margin: 1.5rem auto;
}

.team-section .section-subtitle {
  text-align: center;
  margin-bottom: 2.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.team-image {
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.05);
}

.team-info {
  padding: 2rem;
  text-align: center;
}

.team-name {
  font-size: 1.75rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 0.5rem;
}

.team-role {
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(90deg, #ec4899 0%, #db2777 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.team-bio {
  font-size: 1rem;
  color: #666666;
  line-height: 1.7;
  margin: 0;
}

/* ===================================
   WHY US SECTION
   =================================== */

.why-us-section {
  background: linear-gradient(135deg, #a855f7 0%, #db2777 50%, #ec4899 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.why-us-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="whyPattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23whyPattern)"/></svg>');
  z-index: 1;
}

.why-us-section .container {
  position: relative;
  z-index: 2;
}

.why-us-section .section-title,
.why-us-section .title-decoration,
.why-us-section .section-subtitle {
  color: #ffffff;
}

.why-us-section .section-subtitle {
  color: rgba(255, 255, 255, 0.95);
}

.why-us-section .section-header {
  margin-bottom: 3rem;
}

.why-us-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 14px;
  padding: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.why-us-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.why-us-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e8e8e8;
  transition: all 0.3s ease;
}

.why-us-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.why-us-item:hover {
  transform: translateX(5px);
}

.check-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: #ec4899;
  stroke-width: 2.5;
}

.why-us-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 0.5rem;
}

.why-us-content p {
  font-size: 0.95rem;
  color: #666666;
  line-height: 1.6;
  margin: 0;
}

/* ===================================
   CTA SECTION
   =================================== */

.cta-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 300px;
  margin: 0 auto;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.cta-btn svg {
  width: 20px;
  height: 20px;
}

.cta-btn-primary {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 50%, #a855f7 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.cta-btn-primary:hover {
  background: linear-gradient(135deg, #db2777 0%, #ec4899 50%, #a855f7 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5);
}

.cta-btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* ===================================
   ANIMATIONS
   =================================== */

.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   RESPONSIVE - MOBILE
   =================================== */

@media (max-width: 767px) {
  .team-section .section-title .mobile-break {
    display: block;
  }
}

/* ===================================
   RESPONSIVE - TABLET
   =================================== */

@media (min-width: 768px) {
  .chi-siamo-header {
    padding: 70px 0 50px 0;
  }

  .chi-siamo-title {
    font-size: 2.75rem;
  }

  .chi-siamo-subtitle {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .section-subtitle {
    font-size: 1.2rem;
  }

  /* Timeline Zigzag */
  .timeline-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .timeline-item:nth-child(odd) .timeline-image {
    order: 1;
  }

  .timeline-item:nth-child(odd) .timeline-text {
    order: 2;
  }

  .timeline-item:nth-child(even) .timeline-image {
    order: 2;
  }

  .timeline-item:nth-child(even) .timeline-text {
    order: 1;
  }

  .timeline-image {
    height: 100%;
    min-height: 350px;
  }

  /* Valori Grid */
  .valori-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Team Grid */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .team-image {
    height: 400px;
  }

  /* CTA Buttons */
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
    max-width: 300px;
  }

  .cta-btn {
    width: 100%;
  }
}

/* ===================================
   RESPONSIVE - DESKTOP
   =================================== */

@media (min-width: 1024px) {
  .chi-siamo-header {
    padding: 90px 0 65px 0;
  }

  .chi-siamo-title {
    font-size: 3.25rem;
  }

  .chi-siamo-subtitle {
    font-size: 1.35rem;
  }

  .timeline-section,
  .valori-section,
  .team-section,
  .why-us-section,
  .cta-section {
    padding: 100px 0;
  }

  .section-title {
    font-size: 2.75rem;
  }

  .timeline-title {
    font-size: 1.75rem;
  }

  .timeline-description {
    font-size: 1.05rem;
  }

  /* Valori Grid */
  .valori-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .valore-icon {
    width: 90px;
    height: 90px;
  }

  .valore-icon svg {
    width: 44px;
    height: 44px;
  }

  .team-name {
    font-size: 2rem;
  }

  .team-bio {
    font-size: 1.05rem;
  }

  .cta-title {
    font-size: 2.75rem;
  }

  .cta-subtitle {
    font-size: 1.3rem;
  }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
