/* ==========================================================================
   CSS SCHEDA MODELLI COMPLETI SPORTIVI (PHOENIX)
   ========================================================================== */

/* 1. HERO & BREADCRUMBS */
.sport-hero {
    background-color: #0a192f;
    padding-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.breadcrumb-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.breadcrumb-custom .crumb-link {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.breadcrumb-custom .crumb-link:hover {
    color: #ccff00 !important; /* Dettaglio Lime Phoenix */
}

.breadcrumb-custom .crumb-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
}

.breadcrumb-custom .crumb-current {
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.title-section-container {
    padding: 30px 0 10px 0;
}

.title-section {
    position: relative;
    display: inline-block;
}

.hero-main-title {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin: 0;
    position: relative;
    z-index: 2;
}

.diagonal-line {
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: #b31f24; /* Linea di accento rossa */
    z-index: 1;
    transform: skewX(-15deg);
}

/* 2. SPECIFICHE (ICONE FIT) */
.specifiche {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.specifiche img {
    height: 85px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
    transition: transform 0.3s ease;
}

.specifiche img:hover {
    transform: translateY(-4px);
}

/* 3. STICKY ANCHOR MENU */
.sticky-container {
    display: flex;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.sticky-container .flex-item {
    flex: 1;
    max-width: 160px;
    text-align: center;
}

.sticky-container .flex-item a {
    display: block;
    padding: 16px 0;
    color: #0a192f;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-decoration: none;
    position: relative;
    transition: all 0.2s;
}

.sticky-container .flex-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #b31f24;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.sticky-container .flex-item.active a,
.sticky-container .flex-item a:hover {
    color: #b31f24;
    background-color: #f8f9fa;
}

.sticky-container .flex-item.active a::after {
    transform: scaleX(1);
}

/* 4. SEZIONE DETTAGLI & GALLERY HIDDEN */
.section-sub-title {
    color: #0a192f;
    font-size: 22px;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 10px;
}

.decorazione-media-text {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin: 40px 0;
}

@media (min-width: 992px) {
    .decorazione-media-text {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.decorazione-media-text__media img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.gallery-1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gallery-1 figure {
    margin: 0;
    text-align: center;
}

.gallery-1 figure img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s;
}

.gallery-1 figure img:hover {
    border-color: #0a192f;
}

.gallery-1 figure figcaption {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-top: 6px;
}

/* Nascondiamo la seconda e terza foto inizialmente */
.gallery-1 figure:nth-child(n+2) {
    display: none;
}

/* Stato quando la gallery viene espansa via JS */
.gallery-1.is-expanded figure {
    display: block !important;
    animation: fadeIn 0.4s ease forwards;
}

.mostra-altro-wrapper {
    text-center: center;
    margin: 15px 0 30px 0;
}

.mostra-altro-trigger {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #0a192f;
    border: 2px solid #0a192f;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.05em;
}

.mostra-altro-trigger:hover {
    background-color: #0a192f;
    color: #ffffff;
}

/* Blocco info tessuto */
.block-tessuto-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #0a192f;
    margin-top: 25px;
}

.bordoazzurro {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffffff;
}
.bordoazzurro img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 5. TABELLA MISURE PROFESSIONALE */
.table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: center;
}

.table-wrap th {
    background-color: #0a192f;
    color: #ffffff;
    font-weight: 700;
    padding: 12px 8px;
    text-transform: uppercase;
    font-size: 12px;
}

.table-wrap td {
    padding: 12px 8px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.table-wrap tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.table-wrap tbody tr td:first-child {
    background-color: #f1f5f9;
    font-weight: 700;
    color: #0a192f;
}

/* 6. SEZIONE ORDINE E FORM */
.ordine-section {
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
    padding: 50px 30px;
    border-radius: 8px;
    margin-top: 60px;
}

.custom-order-list li {
    font-size: 15px;
    color: #334155;
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

.custom-order-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #b31f24;
    font-weight: 900;
}

/* Inputs design */
.order-input {
    height: 48px;
    border: 2px solid #e2e8f0 !important;
    border-radius: 4px !important;
    padding: 0 15px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    background-color: #ffffff !important;
    transition: border-color 0.2s !important;
}

.order-input:focus {
    border-color: #0a192f !important;
    box-shadow: none !important;
}

/* Radio button personalizzati */
.form-check-input:checked {
    background-color: #0a192f !important;
    border-color: #0a192f !important;
}

/* Bottone invio tecnico sportivo */
.btn-invio-ordine {
    background-color: #b31f24 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 14px 50px !important;
    border-radius: 4px !important;
    border: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(179, 31, 36, 0.2);
}

.btn-invio-ordine:hover {
    background-color: #0a192f !important;
    box-shadow: 0 4px 12px rgba(10, 25, 47, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}