/***********************
    SUBMENU FORMAZIONE
************************/
.m-top {
    margin-top: 4rem;
}

.f_link a.active {
    color: var(--bright_gold);
    font-weight: 700;
}

.sub_page_title {
    text-align: center;
    color: var(--dark_gold);
    text-transform: uppercase;
    font-weight: 500;
    font-size: 1.8rem;
    line-height: 2.8rem;
    max-width: 900px;
    width: 100;
    margin: 3rem auto;
}

.online_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.online_row img,
.online_row p {
    width: calc((100% - 3rem) / 2);
}

.online_row img {
    box-shadow: 10px 10px rgba(140, 115, 56, .7);
}

.online_row p {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    text-align: justify;
}

.text {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    text-align: justify;
}

@media screen and (max-width: 1280px) {
    .sub_page_title {
        font-size: 1.5rem;
        line-height: 2.5rem;
    }
}

@media screen and (max-width: 1024px) {
    .sub_page_title {
        font-size: 1.3rem;
        line-height: 2.3rem;
    }

    .online_row {
        justify-content: center;
        flex-direction: column;
    }

    .online_row img {
        width: 50%;
    }

    .online_row p {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .sub_page_title {
        font-size: 1.1rem;
        line-height: 1.5rem;
    }

    .f_link div {
        flex-direction: row;
        gap: 1.5rem;
    }

    .f_link a {
        padding: 0;
    }

    .f_link_breack {
        display: block;
    }
}

@media screen and (max-width: 658px) {
    .f_link div {
        flex-direction: column;
        gap: 1rem;
    }

    .f_link_breack {
        display: block;
        width: 90vw;
    }

    .online_row img {
        width: 80%;
    }
}

/***********************
    FILTRO CATEGORIE 
************************/
.azioni {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 3rem 0;
}

.filtro_categorie {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.select_container {
    position: relative;
}

.corsi_select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    background-color: var(--white);
    color: var(--black);
    padding: .5rem 2.5rem .5rem 1.5rem;
    /* border-radius: 10px; */
    border: 3px solid var(--bordeaux);
    outline: none;
    font-size: 1rem;
    text-transform: capitalize;
    font-family: var(--font);
}

.fa-chevron-down {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--bordeaux);
    pointer-events: none;
}

.corsi_select option {
    text-transform: capitalize;
}

.filter_btn {
    border: none;
    /* border-radius: 10px; */
    background-color: var(--bright_gold);
    color: var(--white);
    padding: .5rem 1.5rem;
    font-size: 1.1rem;
    font-family: var(--font);
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all .3s linear;
}

.filter_btn:hover {
    background-color: var(--dark_gold);
}

/***********************
    SEARCH CORSI
************************/
.f_search {
    /* margin: 3rem 0; */
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.f_search div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
}

.f_search label {
    /* font-size: 1.1rem; */
    font-weight: 600;
    color: var(--dark_gold);
    text-transform: uppercase;
}

.f_search label i {
    color: var(--bordeaux);
    margin-right: .5rem;
    font-size: 1.2rem;
}

.f_search input {
    border: 3px solid var(--bordeaux);
    /* border-radius: 10px; */
    color: var(--black);
    font-size: 16px;
    padding: .5rem 1.5rem;
    width: 300px;
}

.f_search input:focus,
.f_search input:valid {
    border: 3px solid var(--bordeaux);
}

.no-results {
    text-align: center;
    display: none;
}

.no-results-categorie {
    text-align: center;
}

.no-results div,
.no-results-categorie div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.no-results span,
.no-results-categorie span {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--dark_gray);
}

@media (max-width: 1280px) {
    .f_search input {
        width: 250px;
    }
}

@media (max-width: 1024px) {
    .f_search {
        margin-top: 5rem;
    }
}

@media (max-width: 768px) {
    .azioni {
        display: flex;
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 3rem;
        width: fit-content;
        margin: auto;
        margin-bottom: 3rem;
    }

    .f_search {
        margin-top: 0;
        justify-content: flex-start;
    }
}

@media (max-width: 658px) {

    .no-results span,
    .no-results-categorie span {
        font-size: 1rem;
    }
}

@media (max-width: 500px) {
    .f_search {
        justify-content: center;
    }

    .filtro_categorie {
        flex-direction: column;
	/* flex-direction: row; /* VERIFICARE SE ROW O COLUMN luca 5/10/25 */
    }
}

@media (max-width: 430px) {
    .corsi_select {
        padding: .5rem;
    }

    .no-results-categorie div,
    .no-results div {
        flex-direction: column;
    }
}

/***********************
    CATALOGO CORSI
************************/
.table_container {
    max-width: 1920px;
    width: 90%;
    margin: 0 auto;
    margin-top: 3rem;
}

.table_btn {
    width: 85%;
    margin: 0 auto;
    display: inline-block;
    padding: 0.3rem 0.5rem;
    background-color: var(--dark_gold);
    color: var(--white);
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1);
    font-size: .75rem;
    font-weight: 600;
    transition: all .3s ease;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
}

.table_btn:hover {
    background-color: var(--bright_gold);
}

.table_btn:active {
    box-shadow: none;
}

/* .table_btn i{
    margin-right: .3rem;
} */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background-color: var(--bordeaux);
}

.table_title {
    text-transform: uppercase;
    color: var(--bright_gold);
    font-weight: 500;
    margin-bottom: .5rem;
}

.table_p {
    margin-bottom: .5rem;
}

.table thead tr th {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--white);
    text-align: center;
    padding: 5px;
    vertical-align: top;
    border: 1px solid var(--white);
    text-transform: uppercase;
}

.table thead tr th {
    border: none;
    border-right: 1px solid var(--white);
}

.table thead tr th:last-of-type {
    border: none;
}

.table tbody tr td {
    font-size: 14px;
    letter-spacing: 0.35px;
    font-weight: normal;
    color: var(--black);
    background-color: var(--white);
    padding: 8px;
    text-align: center;
    border: 1px solid var(--bordeaux);
}

.table {
    margin-bottom: 2rem;
}

.table tbody,
thead {
    border: 2px solid var(--bordeaux);
}

.table tbody tr td:first-child {
    text-transform: uppercase;
}

@media (max-width: 1740px) {
    .table_container {
        width: 85%;
    }
}

@media (max-width: 1220px) {
    .table_container {
        margin-top: 5rem;
    }

    .table thead {
        display: none;
    }

    .table,
    .table tbody,
    .table tr,
    .table td {
        display: block;
        width: 100%;
    }

    .table {
        margin-bottom: 15px;
    }

    .table_btn {
        width: 130px;
        text-align: center;
    }

    .table tbody tr td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    /* luca - 31/7/25 - aumenta l'altezza della cella se il testo della label è troppo lungo */
    .table tbody tr td::before {
        content: attr(data-label);
        display: block;
        font-weight: bold;
        margin-bottom: 4px;
        white-space: normal; /* Permette di andare a capo */
        word-break: break-word; /* Permette di spezzare parole lunghe */
        /*background-color: #aaa*/
    }

    /* luca - 6/10/25 */
    td.min50h {
        min-height: 50px;
    }   

    .table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        top: 10px;
        width: 50%;
        padding-left: 5px;
        font-weight: 700;
        font-size: 12px;
        text-align: left;
        color: var(--bordeaux);
        text-transform: uppercase;
    }

    .table tbody {
        border: 1px solid var(--bordeaux);
    }
}

@media (max-width: 768px) {
    .table_container {
        margin-top: 3rem;
    }
}

@media (max-width: 430px) {
    .table_title {
        text-align: center;
    }

    .table_p {
        text-align: justify;
    }

    .table td::before {
        padding-left: 5px;
    }
}

@media (max-width: 375px) {
    .table td::before {
        top: 10px;
    }
}

@media (max-width: 357px) {
    .table td::before {
        /* top: 5px; */
        font-size: 11px;
    }

    .table_title {
        font-size: 1.3rem;
    }

    .table tbody tr td {
        font-size: 12px;
    }

    .table_btn {
        width: 100px;
    }
}

/***********************
    DETTAGLIO CORSO
************************/
.corso_hero {
    width: 100%;
    padding: 3rem 0;
    border-top: 5px solid var(--bordeaux);
    border-bottom: 5px solid var(--bordeaux);
}

.corso_hero_flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5rem;
}

.corso_tags {
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 3rem;
    color: var(--dark_gray);
}

.corso_tags div {
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5rem;
}

.corso_tags div:nth-child(2) {
    letter-spacing: 1px;
}

.corso_titolo {
    max-width: 900px;
    width: 100%;
    font-size: 2rem;
    font-weight: 600;
    line-height: 2.8rem;
    /* text-transform: lowercase; */
    text-transform: none;
}

.corso_p {
    margin: 3rem 0;
    max-width: 600px;
    width: 100%;
    font-weight: 500;
    line-height: 1.5rem;
    text-align: justify;
}

.corso_btns {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
}

.corso_btns a:nth-child(2) {
    box-shadow: inset 0 0 0 3px var(--bordeaux), 0px 4px 4px 0px rgba(0, 0, 0, 0.1);
    color: var(--bordeaux);
}

.corso_btns a:nth-child(2):hover {
    box-shadow: inset 0 0 0 3px var(--dark_gold), 0px 4px 4px 0px rgba(0, 0, 0, 0.1);
    color: var(--dark_gold);
}

.corso_btns a:nth-child(2):active {
    box-shadow: inset 0 0 0 3px var(--dark_gold), 0px 0px 0px 0px rgba(0, 0, 0, 0);
}

.corso_allegati {
    display: flex;
    justify-content: baseline;
    align-items: center;
    gap: 3rem;
}

.corso_allegati a {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2rem;
    text-transform: capitalize;
    color: var(--bordeaux);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    transition: all 250ms linear;
}

.corso_allegati a svg path {
    transition: all 250ms linear;
}

.corso_allegati a:hover {
    color: var(--dark_gold);
}

.corso_allegati a:hover svg path {
    fill: var(--dark_gold);
}

.corso_wrapper {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.corso_list_item {
    margin: 3rem 0;
}

.corso_list_item:first-child {
    margin-top: 5rem;
}

.corso_list_item:last-child {
    margin-bottom: 5rem;
}

.corso_wrapper h2 {
    font-size: 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    color: var(--dark_gold);
}

.corso_wrapper div {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.8rem;
    text-align: justify;
}

.corso_wrapper a {
    margin-bottom: 5rem;
}

/**************************
    RESET TXT DAL CRM
***************************/
.corso_wrapper p {
    max-width: 900px;
    width: 100%;
    margin: 0;
    text-align: justify;
    pointer-events: all;
}

.corso_wrapper p:not(.corso_wrapper p:last-child) {
    padding-bottom: 2rem;
}

p>a,
.corso_wrapper>ul li a {
    text-decoration: underline;
    color: var(--bright_gold);
}

.corso_wrapper>ul {
    list-style: disc;
    text-align: justify;
    padding-bottom: 2rem;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.corso_wrapper>ul li:not(.corso_wrapper > ul li:last-child) {
    margin-bottom: 1rem;
}

/*****************************/
@media screen and (max-width: 1024px) {
    .corso_hero {
        margin-top: 60px;
    }

    .corso_wrapper {
        width: 80%;
    }
}

@media screen and (max-width: 960px) {
    .corso_hero_flex {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5rem;
    }
}

@media screen and (max-width: 430px) {
    .corso_tags {
        justify-content: center;
    }

    .corso_titolo {
        text-align: center;
    }

    .corso_btns {
        justify-content: center;
    }

    .corso_allegati {
        justify-content: center;
    }

    .corso_wrapper {
        width: 90%;
    }

    .corso_wrapper h2 {
        text-align: center;
        line-height: 2.5rem;
    }

    .corso_wrapper div {
        text-align: center;
    }

    .corso_wrapper a {
        width: 50%;
        margin: 0 auto;
        margin-bottom: 3rem;
    }
}

@media screen and (max-width: 395px) {
    .corso_titolo {
        font-size: 1.5rem;
        line-height: 2.5rem;
    }

    .corso_p {
        margin: 2rem 0;
    }

    .corso_btns {
        gap: 1rem;
    }

    .corso_wrapper h2 {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .corso_wrapper div {
        font-size: 1rem;
    }
}

@media screen and (max-width: 368px) {
    .corso_btns a:nth-child(2) {
        display: none;
    }
}