/* ===== TAB CSS ===== */
/* Un file CSS base completo con i comandi base della sezione delle tab di cosa imparerai */

.cosa-imparerai-section {
    padding: 100px 128px;
    background-color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.padding-top {
    padding-top: 128px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tagline {
    font-size: 24px;
    font-weight: 500;
    font-family: 'Gotham Condensed', 'Gotham', sans-serif;
    color: #00B4C3;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 60px;
    font-weight: 400;
    color: #333;
    margin-bottom: 20px;
}

.highlighted {
    color: #404040;
    font-weight: 700;
}

.section-description {
    font-size: 18px;
    line-height: 1.6;
    color: #667085;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Tabs Navigation */
.features-tabs {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
    background-color: white;
    position: relative;
}

.tab-navigation {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-behavior: smooth;
}

.tab-navigation::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.tab-button {
    flex: 1;
    min-width: 120px;
    padding: 20px 15px;
    background: none;
    border: none;
    font-family: 'Gotham', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #4B5563;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    outline: none;
}

.tab-button:hover {
    background-color: rgba(0, 180, 195, 0.05);
    color: #00B4C3;
}

.tab-button.active {
    color: #00B4C3;
    background-color: white;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: #00B4C3;
    border-radius: 3px 3px 0 0;
    transition: all 0.3s ease;
}

.tab-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tab-button:hover .tab-icon {
    transform: translateY(-5px);
}

.tab-button.active .tab-icon {
    transform: translateY(-5px);
}

.tab-icon i {
    font-size: 20px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.tab-button:hover .tab-icon img {
    filter: grayscale(0%);
    opacity: 1;
}

.tab-button.active .tab-icon img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Tab Content */
.tab-content-wrapper {
    position: relative;
    overflow: hidden;
    background-color: white;
    min-height: 400px;
}

.tab-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
    transform: translateX(20px);
    padding: 0;
}

.tab-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
}

.tab-content-inner {
    display: flex;
    padding: 40px;
    gap: 40px;
    height: 100%;
}

.tab-media {
    flex: 1;
    min-width: 0;
}

.tab-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.tab-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.tab-description {
    font-size: 16px;
    line-height: 1.6;
    color: #4B5563;
    margin-bottom: 30px;
}

/* Feature List in Tab */
.tab-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.feature-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: #ebfbfc;
}

.feature-number {
    width: 40px;
    height: 40px;
    background-color: #00B4C3;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.feature-number i {
    font-size: 18px;
}

.feature-text {
    font-size: 15px;
    font-weight: 500;
    color: #4B5563;
    line-height: 1.3;
}

/* Mobile Scroll Indicators */
.scroll-indicators {
    display: none;
    justify-content: center;
    margin: 20px 0;
    gap: 10px;
}

.scroll-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    transition: background-color 0.3s ease;
}

.scroll-indicator.active {
    background-color: #00B4C3;
}

/* Responsive Designs */
@media (max-width: 1024px) {
    .cosa-imparerai-section {
        padding: 80px 64px;
    }

    .section-title {
        font-size: 48px;
    }

    .tab-content-inner {
        flex-direction: column;
        padding: 30px;
        gap: 30px;
    }

    .tab-features {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .tab-button {
        min-width: 100px;
        padding: 15px 10px;
        font-size: 14px;
    }

    .tab-icon {
        width: 35px;
        height: 35px;
        margin-bottom: 8px;
    }

    .tab-icon img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    .cosa-imparerai-section {
        padding: 60px 32px;
    }

    .section-title {
        font-size: 36px;
    }

    .section-description {
        font-size: 16px;
    }

    .tab-navigation {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .tab-button {
        min-width: 100px;
        flex: 0 0 auto;
    }

    .scroll-indicators {
        display: flex;
    }

    .tab-content-inner {
        padding: 25px;
    }

    .tab-title {
        font-size: 24px;
    }

    .tab-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .cosa-imparerai-section {
        padding: 50px 20px;
    }

    .section-title {
        font-size: 30px;
    }

    .tab-button {
        min-width: 90px;
        padding: 12px 8px;
        font-size: 12px;
    }

    .tab-icon {
        width: 30px;
        height: 30px;
        margin-bottom: 6px;
    }

    .tab-icon img {
        width: 18px;
        height: 18px;
    }

    .tab-content-inner {
        padding: 20px;
    }

    .feature-item {
        padding: 12px;
        gap: 10px;
    }

    .feature-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .feature-text {
        font-size: 14px;
    }
}   

/* Tab Buttons Attention Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 180, 195, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 180, 195, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 180, 195, 0);
    }
}

.tab-button:not(.clicked) {
    animation: pulse 2s infinite;
}

.tab-navigation:hover .tab-button {
    animation: none;
}

/* Add a hover effect to indicate tabs are clickable */
.tab-button::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #00B4C3;
    opacity: 0;
    transition: all 0.3s ease;
}

.tab-button:not(.active):hover::before {
    opacity: 1;
}

/* Custom Video Player Styles */
.custom-video-player {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  .tab-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
  }
  
  .video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    padding: 10px 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .custom-video-player:hover .video-controls {
    opacity: 1;
  }
  
  .video-play-button, .video-fullscreen-button {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease;
  }
  
  .video-fullscreen-button {
    margin-left: 10px;
    margin-right: 0;
  }
  
  .video-play-button:hover, .video-fullscreen-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
  
  .video-progress-container {
    flex-grow: 1;
    margin: 0 10px;
  }
  
  .video-progress {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
  }
  
  .video-progress-filled {
    width: 0;
    height: 100%;
    background-color: #00B4C3;
    transition: width 0.1s linear;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  /* Video overlay per il click per riprodurre */
  .tab-video::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .tab-video:hover::before {
    opacity: 1;
  }
  
  /* Animazione pulsante play all'hover */
  @keyframes pulse-play {
    0% {
      transform: scale(1);
      opacity: 0.8;
    }
    70% {
      transform: scale(1.1);
      opacity: 1;
    }
    100% {
      transform: scale(1);
      opacity: 0.8;
    }
  }
  
  .custom-video-player:hover .video-play-button {
    animation: pulse-play 1.5s infinite;
  }