/* Squadra Page Specific Styles */

/* Page Header — riusa gli stili di istruttori.css via styles.css */
.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;
}

/* Intro */
.squadra-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);
}

/* Squadre Grid */
.squadre-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.squadra-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.squadra-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.squadra-card.highlight {
    background: var(--color-primary);
    color: var(--color-white);
}

.squadra-card.highlight h3,
.squadra-card.highlight p,
.squadra-card.highlight .stat-label,
.squadra-card.highlight .stat-value {
    color: var(--color-white);
}

.squadra-card.highlight .squadra-stats {
    border-top-color: rgba(255,255,255,0.2);
}

.squadra-card.highlight .squadra-stats li {
    border-bottom-color: rgba(255,255,255,0.1);
}

.squadra-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.squadra-icon {
    width: 52px;
    height: 52px;
    color: var(--color-primary);
}

.squadra-card.highlight .squadra-icon {
    color: rgba(255,255,255,0.85);
}

.squadra-icon svg {
    width: 100%;
    height: 100%;
}

.squadra-badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: var(--color-gray-100);
    color: var(--color-gray-700);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
}

.squadra-badge.top {
    background: rgba(255,255,255,0.2);
    color: var(--color-white);
}

.squadra-card h3 {
    font-size: 1.5rem;
    color: var(--color-dark);
    margin: 0;
}

.squadra-card p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--color-gray-600);
    margin: 0;
    flex: 1;
}

.squadra-stats {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid var(--color-gray-200);
    padding-top: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.squadra-stats li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--color-gray-100);
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-gray-500);
    font-weight: 600;
}

.stat-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-dark);
}

/* Gallery */
.squadra-gallery-section {
    background: var(--color-white);
}

.squadra-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: var(--space-sm);
}

.sg-item {
    overflow: hidden;
    border-radius: var(--radius-md);
}

.sg-item.sg-wide {
    grid-column: span 2;
}

.sg-item.sg-tall {
    grid-row: span 2;
}

.sg-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.sg-item:hover img {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .squadre-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }

    .squadra-gallery {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 180px;
    }
}

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

    .squadra-card {
        padding: var(--space-lg);
    }

    .squadra-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }

    .sg-item.sg-wide {
        grid-column: span 2;
    }

    .sg-item.sg-tall {
        grid-row: span 1;
    }
}
