/* Content Sections */
.content-section {
    margin-bottom: 60px;
    position: relative;
}

.section-blob {
    background: linear-gradient(135deg, #c8dff1 0%, #8fc7dd 100%);
    border-radius: 150px 40px 150px 40px;
    padding: 70px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(135, 206, 235, 0.3);
    animation: float 6s ease-in-out infinite;
}

.section-blob.right {
    margin-left: auto;
    margin-right: 0;
    max-width: 90%;
    background: linear-gradient(135deg, #e6f3ff 0%, #4784b2 100%);
}

.section-blob.left {
    margin-left: 0;
    margin-right: auto;
    max-width: 90%;
}

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

.section-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.vertical-layout .section-content {
    display: flex;
    flex-direction: column;
}

.section-blob.right .section-content {
    grid-template-columns: 300px 1fr;
}

.section-text h3 {
    color: #1e3a5f;
    font-size: 2rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(255,255,255,0.8);
}

.section-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2c3e50;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

#workflow .section-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 10px;
  }

.image-placeholder {
      width: fit-content;
      max-width: 100%;
      background: rgba(96, 157, 208, 0.1);
      border: 2px dashed #5362ae;
      border-radius: 10px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: #20189a;
      font-style: italic;
      margin: 20px auto;
      break-inside: avoid;
      font-size: 0.95rem;
      text-align: center;
      padding: 10px;
  }

  .image-placeholder img {
      max-width: 100%;
      height: auto; 
      max-height: 400px;  
      object-fit: contain;
      border-radius: 8px;
      display: block;
  }


  .figure-caption {
      font-size: 0.9rem;
      color: #333;
      text-align: center;
      font-style: italic;
      line-height: 1.4;
      padding: 0 10px;
      margin: 0 0 20px 0; 
  }

/* Decorative Elements */
.section-blob::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.section-blob::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

/* Riduci spazio solo per questa immagine specifica */
.image-placeholder.tight-spacing {
    margin-bottom: -5px !important;
}

.image-placeholder.tight-spacing + .figure-caption {
    margin-top: 0 !important;
}


/* Responsive Design */
@media (max-width: 768px) {
    .section-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .section-blob.right .section-content {
        grid-template-columns: 1fr;
    }
    
    .section-blob,
    .section-blob.right {
        max-width: 100%;
        margin: 0;
        padding: 40px 30px;
        border-radius: 40px;
    }
    
    .video-container {
        padding: 20px;
    }
    
    .video-placeholder {
        height: 250px;
    }

}
