﻿
.highlighted {
    background-color: #79e55f;
}

.loading-bar {
    width: 100%;
    border: 2px solid #ccc;
    background-color: #555;
    box-sizing: border-box;
}

    .loading-bar .bar.success {
        background-color: #39b54a;
    }

    .loading-bar .bar {
        background-color: #39b54a;
        box-sizing: border-box;
        height: 8px;
        transition: width .5s ease-in;
    }

.success {
    background-color: #39b54a;
    color: #fff;
}

#grammarbox img {
    cursor: pointer;
}

#grammarbox img {
    transition: filter 0.3s, box-shadow 0.3s;
}

    #grammarbox img:hover {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Applica un'ombra */
    }

.accordion {
    margin: auto;
    width: 100%;
}

.accordion input {
    display: none;
}

.box {
    position: relative;
    height: 64px;
    transition: all .15s ease-in-out;
}

    .box::before {
        content: '';
        position: absolute;
        display: block;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        pointer-events: none;
        box-shadow: 0 -1px 0 #e5e5e5,0 0 2px rgba(0,0,0,.12),0 2px 4px rgba(0,0,0,.24);
    }

header.box {
    z-index: 100;
    cursor: initial;
    box-shadow: 0 -1px 0 #e5e5e5,0 0 2px -2px rgba(0,0,0,.12),0 2px 4px -4px rgba(0,0,0,.24);
}

header .box-title {
    margin: 0;
    font-weight: normal;
    font-size: 16pt;
    color: white;
    cursor: initial;
}

.box-title {
    width: calc(100% - 40px);
    height: 64px;
    line-height: 64px;
    padding: 0 20px;
    display: inline-block;
    cursor: pointer;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.box-content {
    width: calc(100% - 40px);
    padding: 30px 20px;
    font-size: 11pt;
    color: rgba(0,0,0,.54);
    display: none;
}

.box-close {
    position: absolute;
    height: 64px;
    width: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
    display: none;
}

input:checked + .box {
    height: auto;
    margin: 16px 0;
    box-shadow: 0 0 6px rgba(0,0,0,.16),0 6px 12px rgba(0,0,0,.32);
}

    input:checked + .box .box-title {
        border-bottom: 1px solid rgba(0,0,0,.18);
    }

    input:checked + .box .box-content,
    input:checked + .box .box-close {
        display: inline-block;
    }

.arrows section .box-title {
    padding-left: 44px;
    width: calc(100% - 64px);
}

    .arrows section .box-title:before {
        position: absolute;
        display: block;
        content: '\203a';
        font-size: 18pt;
        left: 20px;
        top: -2px;
        transition: transform .15s ease-in-out;
        color: rgba(0,0,0,.54);
    }

input:checked + section.box .box-title:before {
    transform: rotate(90deg);
}

.underline {
    text-decoration: underline;
}

.current-lesson {
    background-color: #dcdcdc;
}

#faq {
    margin: auto;
}

#faq section.faq {
    padding-top: 2em;
    padding-bottom: 3em;
}

#faq ul {
    text-align: left;
}

#faq .transition, p, ul li i:before, ul li i:after {
    transition: all 0.3s;
}

#faq .no-select, #faq h2 {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

#faq h3 {
    color: #000;
    margin-bottom: 30px;
    margin-top: 0;
}

#faq h2 {
    color: #cc071e;
    font-size: 20px;
    line-height: 34px;
    text-align: left;
    padding: 15px 15px 0;
    text-transform: none;
    font-weight: 300;
    letter-spacing: 1px;
    display: block;
    margin: 0;
    cursor: pointer;
    transition: .2s;
}

#faq p {
    color: #333;
    text-align: left;
    font-size: 14px;
    line-height: 1.45;
    position: relative;
    overflow: hidden;
    max-height: 250px;
    will-change: max-height;
    contain: layout;
    display: inline-block;
    opacity: 1;
    transform: translate(0, 0);
    margin-top: 5px;
    margin-bottom: 15px;
    padding: 0 50px 0 15px;
    transition: .3s opacity, .6s max-height;
    hyphens: auto;
    z-index: 2;
}

#faq ul {
    list-style: none;
    perspective: 900;
    padding: 0;
    margin: 0;
}

    #faq ul li {
        position: relative;
        overflow: hidden;
        padding: 0;
        margin: 0;
        background: #fff;
        box-shadow: 0 3px 10px -2px rgba(0,0,0,0.1);
        -webkit-tap-highlight-color: transparent;
    }

        #faq ul li + li {
            margin-top: 15px;
        }

        #faq ul li:last-of-type {
            padding-bottom: 0;
        }

        #faq ul li i {
            position: absolute;
            transform: translate(-6px, 0);
            margin-top: 28px;
            right: 15px;
        }

            #faq ul li i:before, #faq ul li i:after {
                content: "";
                position: absolute;
                background-color: #cc071e;
                width: 3px;
                height: 9px;
            }

            #faq ul li i:before {
                transform: translate(-2px, 0) rotate(45deg);
            }

            #faq ul li i:after {
                transform: translate(2px, 0) rotate(-45deg);
            }

        #faq ul li input[type=checkbox] {
            position: absolute;
            cursor: pointer;
            width: 100%;
            height: 100%;
            z-index: 1;
            opacity: 0;
            touch-action: manipulation;
        }

            #faq ul li input[type=checkbox]:checked ~ h2 {
                color: #000;
            }

            #faq ul li input[type=checkbox]:checked ~ p {
                /*margin-top: 0;*/
                max-height: 0;
                transition: .3s;
                opacity: 0;
                /*transform: translate(0, 50%);*/
            }

            #faq ul li input[type=checkbox]:checked ~ i:before {
                transform: translate(2px, 0) rotate(45deg);
            }

            #faq ul li input[type=checkbox]:checked ~ i:after {
                transform: translate(-2px, 0) rotate(-45deg);
            }


:root {
    --timeline-primary: #37a9e1;
    --timeline-primary-gradient: linear-gradient(45deg, #153c7e 0%, #37a9e1 100%);
}

.section-header {
    text-align: center;
}

    .section-header h2 {
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 16px;
    }

    .section-header hr {
        width: 56px;
    }

.bg-gradient_solid {
    background: var(--timeline-primary-gradient);
    color: black;
    width: 2px;
    padding: 48px 0;
}

.steps {
    position: relative;
    margin-top: 32px;
}

    .steps::after {
        content: "";
        position: absolute;
        width: 1px;
        background-color: black;
        opacity: 0.4;
        top: 0;
        bottom: 0;
        left: 50%;
    }

    .steps .content p {
        color: #676767;
        font-size: 16px;
    }

    .steps .content h2 {
        font-weight: 600;
        font-size: 16px;
        color: #676767;
    }

.steps-container {
    position: relative;
    background-color: inherit;
    width: calc(50% + 32px);
}

    .steps-container .content {
        padding: 32px;
        background-color: white;
        position: relative;
        border-radius: 0px 0px 80px 0px;
        box-shadow: 0px 16px 27px rgb(0 11 30 / 10%);
        border: 1px solid black;
        width: 100%;
    }

.steps .steps-container:nth-child(even) {
    left: calc(50% - 32px);
    flex-direction: row-reverse;
}

.steps-container {
    display: flex;
}

.steps .steps-container .timeline-date {
    font-weight: 900;
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 10px;
    width: 62px;
    height: 62px;
    background-color: var(--timeline-primary);
    border-radius: 50%;
    flex-shrink: 0;
    align-items: center;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.step-line {
    width: 40px;
    background-color: black;
    height: 1px;
    margin-top: 31px;
    opacity: 0.4;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .steps::after {
        left: 32px;
    }

    .steps-container {
        left: 0;
        flex-direction: row-reverse;
        width: auto;
        margin-bottom: 16px;
    }

    .steps .steps-container:nth-child(even) {
        left: 0;
    }
}

.content table {
    width: 100%;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.vocab-card {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1rem;
    background: #f9f9f9;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.05);
}

    .vocab-card h4 {
        margin-top: 0;
    }

.grammar-lesson, .vocabulary-section {
    text-align: left;
}

.grammar-explanation, .examples {
    margin-top: 35px;
}

.vocabulary-cards {
    margin-top: 35px;
}

.grammar-explanation > h3 {
    margin-top: 25px;
}

.bold-simulated {
    font-weight: 700 !important;
    display: contents;
    padding-left: 2px;
    padding-right: 2px;
}

.vocabulary-story br,
.dialogue br {
    display: none;
}

.vocabulary-story .legend1,
.dialogue .legend1 {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: #ffffff;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    border-left: 5px solid #e9ecef;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

    .vocabulary-story .legend1 i.icon-question-circle,
    .dialogue .legend1 i.icon-question-circle {
        margin-left: auto;
        margin-right: 10px;
        color: #bdc3c7;
        font-size: 1.2rem;
    }

    .vocabulary-story .legend1 a,
    .dialogue .legend1 a {
        display: flex;
        align-items: center;
        text-decoration: none;
    }

    .vocabulary-story .legend1 i.icon-play-circle-o,
    .dialogue .legend1 i.icon-play-circle-o {
        color: #bdc3c7;
        font-size: 1.2rem;
        margin: 0;
    }

    .vocabulary-story .legend1:hover,
    .dialogue .legend1:hover {
        background-color: #f8fbff;
        border-left-color: #007bff;
        transform: translateX(5px);
    }

        .vocabulary-story .legend1:hover i.icon-question-circle,
        .dialogue .legend1:hover i.icon-question-circle {
            color: #f39c12;
        }

        .vocabulary-story .legend1:hover i.icon-play-circle-o,
        .dialogue .legend1:hover i.icon-play-circle-o {
            color: #28a745;
        }

.vocabulary-story b,
.vocabulary-story strong,
.dialogue b,
.dialogue strong {
    display: inline !important;
    width: auto !important;
    float: none !important;
    padding-left: 3px;
    padding-right: 3px;
    white-space: normal !important;
}

/* ---------------------*/

/* 1. GRIGLIA (Layout Base) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* 2. LA CARD (Contenitore Bianco) */
.vocab-card {
    background: #ffffff;
    border: 1px solid #e5e7eb; /* Bordo grigio molto chiaro */
    border-radius: 12px; /* Angoli ben arrotondati */
    padding: 24px; /* Spaziatura interna abbondante */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); /* Ombra morbida e moderna */
    display: flex;
    flex-direction: column; /* Impila gli elementi verticalmente */
    gap: 10px; /* Spazio tra titolo, traduzione ed esempio */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .vocab-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    /* 3. IL TITOLO (Parola Inglese in BLU) */
    .vocab-card .word {
        color: #3b82f6; /* Il blu acceso dell'immagine (Blue-500) */
        font-size: 1.8rem; /* Molto grande */
        font-weight: 800; /* Molto grassetto */
        margin: 0;
        line-height: 1.2;
        text-transform: capitalize;
        /* Opzionale: se un domani aggiungi il badge arancione, questo lo allinea */
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

/* 4. LA TRADUZIONE (Grassetto Nero) */
.vocab-card-translate {
    font-size: 1.1rem;
    font-weight: 700; /* Grassetto come nell'immagine */
    color: #1f2937; /* Grigio scuro quasi nero */
    margin-bottom: 5px;
}

    /* TRUCCO VISIVO: 
   Nell'immagine di riferimento non c'è scritto "Translate:", c'è solo la parola.
   Qui nascondiamo la scritta "Translate:" per rendere il design identico alla foto.
   Se invece la vuoi tenere, rimuovi "display: none". */
    .vocab-card-translate strong {
        display: none;
    }

/* 5. L'ESEMPIO */
.vocab-card-example {
    font-size: 0.95rem;
    color: #4b5563; /* Grigio medio */
    line-height: 1.5;
    margin-top: 5px; /* Un po' di aria sopra */
}

    /* Stile per la scritta "Example:" */
    .vocab-card-example strong {
        color: #9ca3af; /* Grigio chiaro */
        font-weight: 600;
        margin-right: 4px;
    }

