/* Istruttori Page Specific Styles */

/* Page Header */
.page-header {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.page-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.6) 0%,
        rgba(10, 10, 10, 0.7) 100%
    );
}

.page-header-content {
    text-align: center;
    color: var(--color-white);
    max-width: 800px;
    padding: 0 var(--space-lg);
    z-index: 1;
}

.page-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.page-header-content h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.page-header-content p {
    font-size: 1.125rem;
    color: var(--color-gray-300);
    max-width: 600px;
    margin: 0 auto;
}

/* Team Intro */
.team-intro {
    background: var(--color-white);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-content .lead {
    font-size: 1.25rem;
    color: var(--color-gray-700);
    margin-bottom: var(--space-md);
}

.intro-content p {
    color: var(--color-gray-600);
}

/* Instructors Section */
.instructors-detailed {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
}

.instructor-detailed {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-3xl);
    align-items: center;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.instructor-detailed.reverse {
    grid-template-columns: 1.5fr 1fr;
}

.instructor-detailed.reverse .instructor-photo {
    order: 2;
}

.instructor-photo {
    aspect-ratio: 3/4;
    overflow: hidden;
}

.instructor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.instructor-detailed:hover .instructor-photo img {
    transform: scale(1.03);
}

.instructor-details {
    padding: var(--space-2xl);
}

.instructor-header {
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
    margin-bottom: var(--space-xs);
}

.instructor-header h2 {
    font-size: 2rem;
    color: var(--color-dark);
}

.instructor-age {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    font-weight: 500;
}

.instructor-role {
    display: block;
    font-size: 1rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.certifications {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.cert-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--color-gray-100);
    color: var(--color-gray-700);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-gray-200);
}

.cert-badge.highlight {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.instructor-details > p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-gray-600);
    margin-bottom: var(--space-lg);
}

.specialties h4 {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-dark);
    margin-bottom: var(--space-sm);
}

.specialties ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.specialties li {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    padding-left: 1rem;
    position: relative;
}

.specialties li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* Video Section */
.video-section {
    background: var(--color-dark);
}

.video-section .section-label {
    color: var(--color-accent);
}

.video-section .section-title {
    color: var(--color-white);
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-wrapper video {
    width: 100%;
    display: block;
}

/* Certifications Section */
.certifications-section {
    background: var(--color-white);
}

/* Certifications Carousel */
.cert-carousel {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #f5f5f5;
}

.cert-carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.cert-carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.cert-carousel-slide img {
    max-width: 100%;
    max-height: 520px;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-sm);
}

.cert-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s, transform 0.2s;
}

.cert-carousel-btn:hover {
    background: var(--color-white);
    transform: translateY(-50%) scale(1.1);
}

.cert-carousel-btn svg {
    width: 20px;
    height: 20px;
    color: var(--color-dark);
}

.cert-carousel-prev {
    left: var(--space-sm);
}

.cert-carousel-next {
    right: var(--space-sm);
}

.cert-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: var(--space-md) 0;
}

.cert-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--color-gray-300);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}

.cert-carousel-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .instructor-detailed,
    .instructor-detailed.reverse {
        grid-template-columns: 1fr;
    }
    
    .instructor-detailed.reverse .instructor-photo {
        order: 0;
    }
    
    .instructor-photo {
        aspect-ratio: 16/9;
        max-height: 350px;
    }
    
    .cert-carousel {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .page-header {
        height: 50vh;
        min-height: 350px;
    }

    .instructor-photo {
        aspect-ratio: 3/4;
        max-height: none;
    }

    .instructor-details {
        padding: var(--space-md);
    }

    .instructor-header {
        flex-direction: column;
        gap: 0.125rem;
        margin-bottom: 0.25rem;
    }

    .instructor-header h2 {
        font-size: 1.5rem;
    }

    .instructor-role {
        margin-bottom: var(--space-sm);
    }

    .certifications {
        margin-bottom: var(--space-sm);
        gap: var(--space-xs);
    }

    .cert-badge {
        padding: 0.25rem 0.625rem;
        font-size: 0.6875rem;
    }

    .instructor-details > p {
        font-size: 0.9375rem;
        line-height: 1.6;
        margin-bottom: var(--space-sm);
    }

    .specialties h4 {
        margin-bottom: var(--space-xs);
    }

    .specialties li {
        font-size: 0.8125rem;
    }

    .instructors-detailed {
        gap: var(--space-xl);
    }

    .cert-carousel {
        max-width: 100%;
    }

    .cert-carousel-slide img {
        max-height: 400px;
    }

    .cert-carousel-btn {
        width: 36px;
        height: 36px;
    }

    .cert-carousel-btn svg {
        width: 16px;
        height: 16px;
    }
}
