#kit-didattico-app {
    --bg-main: #f8f9fb;
    --bg-white: #ffffff;
    --bg-muted: #f1f5f9;
    --primary: #293b61;
    --primary-hover: #1e2a45;
    --secondary: #5074a8;
    --secondary-alpha: rgba(80, 116, 168, 0.1);
    --border: #e2e8f0;
    --text-main: #293b61;
    --text-muted: #90a1b9;
    --text-white: #ffffff;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --radius-full: 9999px;
    --radius-lg: 20px;

    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#kit-didattico-app * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Top Bar */
#kit-didattico-app .top-bar {
    background-color: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 60px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
}

#kit-didattico-app .steps-nav.horizontal {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
}

#kit-didattico-app .step-item-horizontal {
    display: flex;
    align-items: stretch;
}

#kit-didattico-app .step-btn-horizontal {
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    flex-direction: column;
    gap: 6px;
    width: 160px;
    height: 100%;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

#kit-didattico-app .step-btn-horizontal:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}

#kit-didattico-app .step-btn-horizontal.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border-bottom-color: #3873a7;
}

#kit-didattico-app .step-icon-horizontal {
    width: 16px;
    height: 16px;
}

/* Main Layout */
#kit-didattico-app .main-layout {
    display: flex;
    gap: 10px;
    padding: 0 60px;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
}

/* Sidebar */
#kit-didattico-app .sidebar {
    width: 300px;
    padding: 40px 0;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    height: auto;
}

#kit-didattico-app .sidebar-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

#kit-didattico-app .steps-nav.vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Icone sidebar */
#kit-didattico-app .step-icon-vertical {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--text-muted); /* grigio #90a1b9 */
}

#kit-didattico-app .step-btn-vertical.active .step-icon-vertical {
    color: var(--secondary); /* blu #5074a8 quando attivo */
}

/* Buttons */
#kit-didattico-app .step-btn {
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

#kit-didattico-app .step-btn-vertical {
    padding: 10px 12px;
    border-radius: 60px;
    width: 224px;
    justify-content: space-between;
    font-size: 12px;
    background-color: var(--bg-white);
    border: none;
}

#kit-didattico-app .step-btn-vertical:hover {
    box-shadow: var(--shadow-md);
}

#kit-didattico-app .step-btn-vertical.active {
    outline: 2px solid var(--secondary);
    box-shadow: var(--shadow-lg);
}

#kit-didattico-app .step-num-small {
    width: 24px;
    height: 24px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
}

#kit-didattico-app .step-btn-vertical.active .step-num-small {
    background-color: var(--secondary);
    color: var(--text-white);
}

#kit-didattico-app .step-btn-vertical:not(.active) .step-num-small {
    background-color: var(--bg-muted);
    color: var(--secondary);
}

#kit-didattico-app .step-num-small p {
    opacity: 0.5;
}

#kit-didattico-app .step-btn-vertical.active .step-num-small p {
    opacity: 1;
}

#kit-didattico-app .step-title-text {
    width: 148px;
    text-align: left;
    transition: all 0.2s ease;
}

#kit-didattico-app .step-btn-vertical.active .step-title-text {
    color: var(--secondary);
    font-weight: 700;
}

#kit-didattico-app .step-btn-vertical:not(.active) .step-title-text {
    color: var(--text-main);
}

#kit-didattico-app .step-icon-svg {
    width: 14px;
    height: 14px;
    stroke: var(--text-muted);
    transition: stroke 0.3s ease;
}

#kit-didattico-app .active .step-icon-svg {
    stroke: var(--secondary);
}

/* Content Area */
#kit-didattico-app .content-area {
    flex: 1;
    padding: 40px 0;
    min-width: 0;
}

#kit-didattico-app .content-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
}

#kit-didattico-app .content-title {
    font-size: 30px;
    font-weight: 400;
    color: var(--text-main);
    width: 100%;
    margin-bottom: 10px;
}

#kit-didattico-app .content-body {
    width: 100%;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#kit-didattico-app .content-body p {
    line-height: 1.6;
}

#kit-didattico-app .content-body strong, #kit-didattico-app .content-body .bold {
    font-weight: 700;
}

#kit-didattico-app .highlight-text {
    color: var(--secondary);
    font-weight: 700;
}

#kit-didattico-app .media-container {
    width: 100%;
    max-width: 852px;
    height: 480px;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 10px;
    background-color: var(--bg-muted);
}

#kit-didattico-app .media-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#kit-didattico-app .placeholder-media {
    width: 100%;
    height: 400px;
    background-color: var(--bg-muted);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 24px;
    font-weight: 500;
}

/* Footer Button */
#kit-didattico-app .content-footer {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

#kit-didattico-app .btn-next {
    background-color: var(--primary);
    color: var(--text-white);
    border: none;
    padding: 20px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

#kit-didattico-app .btn-next:hover:not(:disabled) {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

#kit-didattico-app .btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#kit-didattico-app .icon-arrow {
    transition: transform 0.3s ease;
}

#kit-didattico-app .btn-next:hover .icon-arrow {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 1024px) {
    #kit-didattico-app .main-layout {
        flex-direction: column;
        padding: 0 20px;
    }
    
    #kit-didattico-app .sidebar {
        width: 100%;
        position: static;
        height: auto;
        padding: 20px 0;
    }
    
    #kit-didattico-app .steps-nav.vertical {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    #kit-didattico-app .steps-nav.vertical::-webkit-scrollbar {
        display: none;
    }
    
    #kit-didattico-app .step-btn-vertical {
        width: auto;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    #kit-didattico-app .top-bar {
        padding: 15px 20px;
    }
    
    #kit-didattico-app .steps-nav.horizontal {
        display: none;
    }
}

/* Visore Section Styles */
.visore {
    background-color: #3873a7 !important;
    display: flex;
    gap: 10px;
    align-items: stretch; /* Forza le due colonne ad avere la stessa altezza */
    justify-content: center;
    position: relative;
    width: 100%;
    height: 600px; /* Aumentato da 500px a 600px */
    overflow: hidden;
}

.visore-txt {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    padding: 60px 60px 60px 120px !important; /* Leggermente ridotto padding verticale */
    flex-shrink: 0;
    width: 720px;
    color: #ffffff !important;
    justify-content: center; /* Centra il testo verticalmente */
}

.visore-title {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: 54px !important;
    line-height: 0.9 !important; /* Ridotto per compattare */
    margin: 0 !important;
    color: #ffffff !important;
    text-align: left;
}

.visore-subtitle {
    font-family: 'Playfair Display', serif !important;
    font-weight: 300 !important;
    font-style: italic !important;
    font-size: 50px !important;
    line-height: 1 !important; /* Ridotto per compattare */
    margin: 0 !important;
    color: #ffffff !important;
    text-align: left;
}

.visore-description {
    font-family: 'Poppins', sans-serif !important;
    font-size: 18px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    color: #ffffff !important;
    text-align: left;
}

.visore-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    color: rgba(255, 255, 255, 0.8) !important;
}

.visore-meta-item {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    font-family: 'Poppins', sans-serif !important;
}

.visore-cta {
    background-color: #293b61 !important;
    color: #ffffff !important;
    padding: 18px 36px !important; /* Aumentato padding orizzontale */
    border-radius: 50px;
    text-decoration: none !important;
    display: inline-flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important; /* Forza una line-height corretta */
    font-family: 'Poppins', sans-serif !important;
    transition: all 0.3s ease;
    width: fit-content;
    margin-top: 10px;
}

.visore-cta span {
    color: #ffffff !important;
    line-height: 1.2 !important;
}

.visore-cta:hover {
    background-color: #1e2b46 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.visore-frame {
    background-color: white;
    flex: 1;
    display: flex;
    align-items: center; /* Centra verticalmente */
    justify-content: center; /* Centra orizzontalmente */
    min-width: 400px;
    position: relative;
    align-self: stretch;
    overflow: hidden;
    border-radius: 50% 0 0 50%;
}

.visore-img-container {
    width: 85%; /* Ridotto per creare il margine */
    height: 85%; /* Ridotto per creare il margine */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visore-featured-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: right center !important; /* Allinea il contenuto dell'immagine a destra */
    display: block;
    transition: transform 0.5s ease;
}

.visore:hover .visore-featured-img {
    transform: scale(1.05);
}

.visore-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5e8f7 0%, #c4c6ec 100%);
}

@media (max-width: 1024px) {
    .visore {
        flex-direction: column;
        align-items: stretch;
    }
    
    .visore-txt {
        width: 100%;
        padding: 40px 20px;
    }
    
    .visore-title {
        font-size: 40px !important;
    }
    
    .visore-subtitle {
        font-size: 36px !important;
    }
    
    .visore-frame {
        border-radius: 0;
        align-items: center;
        padding: 20px;
    }
    
    .visore-svg-container {
        width: 100%;
        height: auto;
        max-width: 577px;
    }
}

/* Animations */
.visore-title, .visore-subtitle, .visore-description {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpVisore 0.8s ease forwards;
}

.visore-title { animation-delay: 0.1s; }
.visore-subtitle { animation-delay: 0.3s; }
.visore-description { animation-delay: 0.5s; }

@keyframes fadeInUpVisore {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nuove Sezioni: Video e Correlati */
.kit-video-container {
    margin: 30px 0;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #000;
    z-index: 10;
}

.kit-video-container iframe,
.kit-video-container object,
.kit-video-container embed,
.kit-video-container video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 11;
}

/* Fallback per i link di testo nel box nero */
.kit-video-container a {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #f1c40f;
    text-decoration: underline;
}

.correlati-wrapper {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.correlato-card {
    display: flex;
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-decoration: none !important;
}

.correlato-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.correlato-img {
    width: 300px;
    height: 200px;
    position: relative;
    flex-shrink: 0;
}

.correlato-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Triangolo Giallo in alto a sinistra */
.correlato-tag-corner {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 40px 40px 0 0;
    border-color: #f1c40f transparent transparent transparent;
    z-index: 2;
}

.correlato-info {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.correlato-tax {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #293b61;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.correlato-title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    line-height: 1.2;
    color: #293b61;
}

.correlato-title strong {
    font-weight: 700;
    display: block;
}

.correlato-title em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    display: block;
}

.correlato-btn {
    margin-top: 15px;
    background-color: #f1c40f;
    color: #FFFFFF !important;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    transition: background 0.3s ease;
}

.correlato-btn:hover {
    background-color: #d4ac0d;
}

@media (max-width: 768px) {
    .correlato-card {
        flex-direction: column;
    }
    .correlato-img {
        width: 100%;
        height: 180px;
    }
}
