/* AUDIO PLAYER STYLES */
.audio-player-container {
  background: #fff;
  border-radius: 12px;
  border: 1.5px solid #e2e8ef;
  box-shadow: 0 2px 10px rgba(98,165,111,0.05);
  margin: 1.5em 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.audio-trigger-btn {
  width: 100%;
  padding: 1.2em 1.5em;
  background: linear-gradient(135deg, #206140, #62a56f);
  color: white;
  border: none;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px 12px 0 0;
}

.audio-trigger-btn:hover {
  background: linear-gradient(135deg, #1a4d33, #4e8a5b);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(98,165,111,0.2);
}

.audio-trigger-btn .btn-text {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.audio-trigger-btn .chevron {
  transition: transform 0.3s ease;
  font-size: 1.2em;
}

.audio-trigger-btn.active .chevron {
  transform: rotate(180deg);
}

.audio-player-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: #f9fafc;
  border-top: 1px solid #e2e8ef;
}

.audio-player-content.active {
  max-height: 200px;
  padding: 1.5em;
}

.audio-progress-container {
  width: 100%;
  height: 6px;
  background: #e2e8ef;
  border-radius: 3px;
  margin-bottom: 1em;
  overflow: hidden;
  cursor: pointer;
}

.audio-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #206140, #62a56f);
  width: 0%;
  transition: width 0.1s ease;
  border-radius: 3px;
}

.audio-time-info {
  display: flex;
  justify-content: space-between;
  color: #666;
  font-size: 0.85em;
  margin-bottom: 1em;
}

.audio-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
}

.audio-control-btn {
  background: #fff;
  border: 2px solid #e2e8ef;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  color: #206140;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  box-shadow: 0 2px 6px rgba(98,165,111,0.1);
}

.audio-control-btn:hover {
  background: #206140;
  color: white;
  border-color: #206140;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(98,165,111,0.2);
}

.audio-control-btn.play-pause {
  width: 55px;
  height: 55px;
  font-size: 1.4em;
  background: linear-gradient(135deg, #206140, #62a56f);
  color: white;
  border-color: #206140;
}

.audio-control-btn.play-pause:hover {
  background: linear-gradient(135deg, #1a4d33, #4e8a5b);
  transform: scale(1.1);
}

.audio-control-btn.playing {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(98,165,111,0.4); }
  70% { box-shadow: 0 0 0 8px rgba(98,165,111,0); }
  100% { box-shadow: 0 0 0 0 rgba(98,165,111,0); }
}

/* RESPONSIVE per il player audio */
@media (max-width: 768px) {
  .audio-trigger-btn {
    font-size: 1em;
    padding: 1em 1.2em;
  }
  
  .audio-control-btn {
    width: 40px;
    height: 40px;
    font-size: 1em;
  }
  
  .audio-control-btn.play-pause {
    width: 50px;
    height: 50px;
    font-size: 1.2em;
  }
  
  .audio-controls {
    gap: 0.8em;
  }
}

@media (max-width: 480px) {
  .audio-trigger-btn {
    font-size: 0.9em;
    padding: 0.8em 1em;
  }
  
  .audio-player-content.active {
    padding: 1em;
  }
  
  .audio-control-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9em;
  }
  
  .audio-control-btn.play-pause {
    width: 45px;
    height: 45px;
    font-size: 1.1em;
  }
}