/* Stili personalizzati per i pulsanti */

/* Bottone Viola per ISP Billing */
.btn-purple {
    background-color: rgba(208, 50, 208, 1.0);
    color: #fff;
    border-color: rgba(208, 50, 208, 1.0);
}

.btn-purple:hover, 
.btn-purple:focus, 
.btn-purple:active {
    background-color: rgba(188, 30, 188, 1.0);
    color: #fff;
    border-color: rgba(188, 30, 188, 1.0);
}

/* Bottone Outline Viola per ISP Billing */
.btn-outline-purple {
    color: rgba(208, 50, 208, 1.0);
    border-color: rgba(208, 50, 208, 1.0);
    background-color: transparent;
}

.btn-outline-purple:hover,
.btn-outline-purple:focus,
.btn-outline-purple:active {
    background-color: rgba(208, 50, 208, 1.0);
    color: #fff;
    border-color: rgba(208, 50, 208, 1.0);
}

/* Stili per la galleria video */
.video-gallery .carousel-item {
    min-height: 450px;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.video-gallery .carousel-indicators {
    bottom: -40px;
}

.video-gallery .carousel-indicators button {
    background-color: rgba(0, 0, 0, 0.3);
    height: 10px;
    width: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

.video-gallery .carousel-indicators button.active {
    background-color: #045bc1; /* Colore blu Ke-Rete */
}

.video-gallery .carousel-control-prev,
.video-gallery .carousel-control-next {
    background-color: rgba(0, 0, 0, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.video-gallery .carousel-control-prev {
    left: 10px;
}

.video-gallery .carousel-control-next {
    right: 10px;
}

.video-title {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 0 0 5px 5px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.video-thumb {
    transition: transform 0.3s ease;
    margin-bottom: 15px;
}

.video-thumb:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.thumb-player {
    transform: scale(0.7);
}

/* Nuovi stili per le video card */
.video-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    overflow: hidden;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.video-caption {
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.video-caption h5 {
    color: #333;
    font-weight: 500;
}

/* Stili per le thumbnail con pulsante di riproduzione */
.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    transition: transform 0.3s ease;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.9);
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 2;
    opacity: 0.8;
}

.video-play-btn:hover {
    color: #fff;
    background-color: rgba(255, 0, 0, 0.7);
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.video-thumbnail::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
}

/* Team member styles */
.team-member {
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.team-member .member-image {
  overflow: hidden;
  border-radius: 50%;
  position: relative;
}

.team-member .member-image img {
  transition: all 0.3s ease;
  border: 5px solid rgba(0, 0, 0, 0.05);
}

.team-member:hover .member-image img {
  transform: scale(1.05);
  border-color: rgba(243, 81, 21, 0.2);
}

.team-member .member-social {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 0;
  background: rgba(243, 81, 21, 0.8);
  display: flex;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.team-member:hover .member-social {
  opacity: 1;
  transform: translateY(0);
}

.team-member .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: #f35115;
  transition: all 0.3s ease;
}

.team-member .social-icon:hover {
  background: #fff;
  color: #000;
}

.team-member .member-info {
  padding: 5px;
}

.team-member .member-info h5 {
  margin-bottom: 5px;
  font-weight: 600;
}

.team-member .member-info p {
  margin-bottom: 0;
  color: #6c757d;
  font-size: 0.9rem;
}

/* Responsive adjustments for the team grid */
@media (max-width: 767px) {
  .team-member .member-image img {
    width: 140px;
  }
}

@media (max-width: 575px) {
  .team-member .member-image img {
    width: 120px;
  }
}

/* Stili responsive */
@media (max-width: 768px) {
    .video-gallery .carousel-item {
        min-height: 350px;
    }
    
    .video-card {
        margin-bottom: 20px;
    }
}
