/* Hero Section */
.ebook_hero-section {
    width: 100%;
    min-height: 400px;
    background: #000000;
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: 0 50px;
    box-sizing: border-box;
    padding-top: 60px;
    padding-bottom: 60px;
    margin-top: 126px;
}

.ebook_hero-content {
    width: 100%;
    max-width: 943px;
    height: auto;
    display: grid;
    gap: 20px;
    justify-items: center;
}

.ebook_hero-title {
    width: 100%;
    max-width: 943px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 50px;
    line-height: 56px;
    text-align: center;
    color: #FFFFFF;
    margin: 0;
}

.ebook_hero-description {
    width: 100%;
    max-width: 859px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    text-align: center;
    color: #FFFFFF;
    margin: 0;
}

/* Article Meta Section */
.ebook_article-meta {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 60px 50px;
    box-sizing: border-box;
}

.ebook_meta-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
    flex-wrap: nowrap;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}


.ebook_meta-category,
.ebook_meta-date,
.ebook_meta-author,
.ebook_meta-reads {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 26px;
    color: #000000;
}

.ebook_meta-category a {
    text-decoration: underline;
    color: black;
}

.ebook_meta-category a:hover {
    text-decoration: underline;
}

/* Table of Contents Section */
.ebook_toc-section {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 50px;
    box-sizing: border-box;
    padding-bottom: 60px;
}

.ebook_toc-container {
    width: 100%;
    max-width: 1200px;
    background: #EFEFEF;
    padding: 30px;
    box-sizing: border-box;
    margin: 0 auto;
}

.ebook_toc-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
}

.ebook_toc-title {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 26px;
    color: #000000;
    margin: 0;
}

.ebook_toc-index-header {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 10px;
}

.ebook_toc-index-title {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 26px;
    color: #000000;
}

.ebook_toc-toggle {
    width: 23px;
    height: 23px;
    background: #D9D9D9;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.3s ease;
}

.ebook_toc-toggle:hover {
    background: #c0c0c0;
}

.ebook_toggle-icon {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 12px;
    line-height: 20px;
    color: #000000;
}

.ebook_toc-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    opacity: 1;
}

.ebook_toc-content.ebook_collapsed {
    max-height: 0;
    opacity: 0;
}

.ebook_toc-list {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #000000;
    margin: 0;
    padding-left: 20px;
    max-width: 914px;
    margin-top: 20px;
}



.ebook_toc-list a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ebook_toc-list a:hover {
    text-decoration: underline;
}

/* Contenuto demo */
.demo-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
}

.demo-content section {
    margin-bottom: 60px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.demo-content section:last-child {
    border-bottom: none;
}

.demo-content h2 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.demo-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* TITOLO */
@media (max-width: 1231px) {
    .ebook_hero-title {
        line-height: 54px;
        font-size: 46px;
    }
}

@media (min-width: 1066px) and (max-width: 1230px) {
    .ebook_hero-title {
        line-height: 51px;
        font-size: 43px;
    }
}

@media (min-width: 964px) and (max-width: 1065px) {
    .ebook_hero-title {
        font-size: 41px;
        line-height: 48px;
    }
}

@media (min-width: 887px) and (max-width: 963px) {
    .ebook_hero-title {
        font-size: 39px;
        line-height: 46px;
    }
}

@media (min-width: 849px) and (max-width: 886px) {
    .ebook_hero-title {
        font-size: 38px;
        line-height: 45px;
    }
}

@media (min-width: 830px) and (max-width: 848px) {
    .ebook_hero-title {
        font-size: 37px;
        line-height: 44px;
    }
}

@media (min-width: 810px) and (max-width: 829px) {
    .ebook_hero-title {
        font-size: 36px;
        line-height: 43px;
    }
}

@media (min-width: 791px) and (max-width: 809px) {
    .ebook_hero-title {
        font-size: 35px;
        line-height: 42px;
    }
}

@media (min-width: 430px) and (max-width: 790px) {
    .ebook_hero-title {
        font-size: 34px;
        line-height: 41px;
    }
}

@media (min-width: 414px) and (max-width: 429px) {
    .ebook_hero-title {
        font-size: 32.5px;
        line-height: 40px;
    }
}

@media (min-width: 409px) and (max-width: 413px) {
    .ebook_hero-title {
        font-size: 33px;
        line-height: 40px;
    }
}

@media (min-width: 375px) and (max-width: 408px) {
    .ebook_hero-title {
        font-size: 32px;
        line-height: 41px;
    }
}

@media (min-width: 369px) and (max-width: 374px) {
    .ebook_hero-title {
        font-size: 31px;
        line-height: 40px;
    }
}

@media (max-width: 368px) {
    .ebook_hero-title {
        font-size: 30px;
        line-height: 39px;
    }
}

/* DESCRIZIONE */
@media (max-width: 1128px) {
    .ebook_hero-description {
        font-size: 16px;
        line-height: 22px;
    }

    .ebook_hero-description {
        margin-block-start: 0px !important;
        margin-block-end: 0px !important;
    }
}

@media (max-width: 369px) {
    .ebook_hero-description {
        line-height: 20px;
        font-size: 14px;
    }
}


/* LI */
@media (max-width: 915px) {
    .ebook_meta-container {
        display: grid;
        grid-template-columns: repeat(2, auto);
        gap: 20px 40px;
        justify-content: start;
        text-align: left;
    }

    .ebook_meta-container>div {
        margin: 0;
    }
}

@media (max-width: 699px) {
    .ebook_meta-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        justify-items: center;
        text-align: center;
    }

    .ebook_meta-container>div {
        width: 100%;
    }
}

@media (max-width: 409px) {

    .ebook_hero-section,
    .ebook_article-meta,
    .ebook_toc-section {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (min-width: 410px) and (max-width: 699px) {

    .ebook_hero-section,
    .ebook_article-meta,
    .ebook_toc-section {
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media (min-width: 700px) and (max-width: 870px) {

    .ebook_hero-section,
    .ebook_article-meta,
    .ebook_toc-section {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* CSS dedicato solo per l'Header del ebook */

/* Reset base per body */
.ebook_header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    /* completamente bianca */
    z-index: 1000;
    padding-left: 50px;
    padding-right: 50px;

    /* Ombreggiatura leggera per separarla dal contenuto */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}




/* wrapper interno con max-width */
.ebook_header-bar {
    max-width: 1500px;
    margin: 0 auto;
    height: 50px;
    display: flex;
    /* uso flex invece di grid */
    justify-content: space-between;
    /* spazio tra titolo e bottoni */
    align-items: center;
    /* centra verticalmente */
    flex-wrap: nowrap;
    /* mai andare a capo */
    box-sizing: border-box;
    gap: 20px;
}


.ebook_header-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 22px;
    color: #020202;
    margin: 0;
    white-space: nowrap;
    /* mai andare a capo */
    overflow: hidden;
    text-overflow: ellipsis;
    /* aggiunge ... se troppo lungo */
    max-width: 70%;
    /* si riduce su schermi piccoli */
}


.ebook_buttons-container {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    /* non si riduce troppo */
}



.ebook_comment-group {
    width: auto;
    /* si adatta al contenuto */
    height: auto;
}


.ebook_comment-btn {
    padding: 6px 16px;
    /* altezza finale circa 34px */
    font-size: 15px;
    line-height: 20px;
    border-radius: 18px;
    background: #008BEE;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    font-family: Inter;
}

.ebook_comment-btn:hover {
    background: #0077cc;
}



/* Contenuto demo */
.demo-content {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.demo-content h2 {
    color: #333;
    margin: 30px 0 15px 0;
}

.demo-content p {
    margin-bottom: 20px;
    color: #666;
}

/* Responsive Design - Tablet */
@media (max-width: 768px) {
    .ebook_header-bar {
        height: auto;
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "buttons";
        padding: 8px;
        gap: 15px;
        justify-items: center;
    }

    .ebook_header-title {
        font-size: 18px;
        line-height: 22px;
        text-align: center;
        max-width: 100%;
    }



    .ebook_comment-group,
    .ebook_share-group {
        width: 130px;
        height: 35px;
    }

    .ebook_comment-btn {
        font-size: 16px;
    }

    .ebook-share-btn {
        font-size: 14px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 480px) {
    .ebook_header-title {
        font-size: 16px;
        line-height: 20px;
        max-width: 280px;
    }

    .ebook_buttons-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
        justify-items: center;
    }

    .ebook_comment-group,
    .ebook_share-group {
        width: 150px;
    }
}

@media (max-width: 409px) {
    .ebook_header-container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (min-width: 410px) and (max-width: 699px) {
    .ebook_header-container {
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media (min-width: 700px) and (max-width: 870px) {
    .ebook_header-container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* formazione_sezione_superiore SECTION */

.formazione_sezione_superiore-section {
    width: 100%;
    height: 400px;
    background: #000000;
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: 0 50px;
    box-sizing: border-box;
    font-family: Inter, sans-serif;
    margin-top: 126px;
}

body {
    margin: 0;
    padding: 0;
}



/* titolo */

.formazione_sezione_superiore-title {
    font-size: 50px;
    line-height: 58px;
    font-family: Inter, sans-serif;
    font-weight: 600;
    margin-block-start: 0px !important;
    margin-block-end: 0px !important;
    color: #fff;
    padding-bottom: 30px;
    max-width: 660px;
}

/* Contenitore del testo */

.formazione_sezione_superiore-container {
    position: relative;
    z-index: 1;

    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
}

/* Descrizione */

.description-formazione_sezione_superiore {
    font-family: Inter, sans-serif;
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
    margin-block-start: 0px !important;
    margin-block-end: 0px !important;
    color: #fff;
    max-width: 650px;
}

/* Bottone */

.btn-blu-formazione_sezione_superiore {
    width: 300px;
    height: 54px;
    background-color: #008bee;
    border: 0px;
    border-radius: 30px;
    font-family: Inter;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    color: #fff !important;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
}

.btn-preventivo-formazione_sezione_superiore {
    background-color: #007BFF;
    color: #fff;
    transition: background-color 0.3s ease;
}

.btn-blu-formazione_sezione_superiore:hover {
    background-color: #0056b3;
}

/* MEDIA QUERIES */

/* formazione_sezione_superiore CONTAINER */



/* formazione_sezione_superiore */

@media (max-width: 699px) {
    .formazione_sezione_superiore-cols-xl-12.formazione_sezione_superiore-cols-xs-12.formazione_sezione_superiore-cols-sm-12.formazione_sezione_superiore-cols-md-12.formazione_sezione_superiore-cols-lg-12 {
        padding-left: 0px;
        padding-right: 0px;
    }
}

/* TITOLO SEZIONE*/

@media (max-width: 1231px) {
    .formazione_sezione_superiore-title {
        line-height: 54px;
        font-size: 46px;
    }
}

@media (min-width: 1066px) and (max-width: 1230px) {
    .formazione_sezione_superiore-title {
        line-height: 51px;
        font-size: 43px;
    }
}

@media (min-width: 964px) and (max-width: 1065px) {
    .formazione_sezione_superiore-title {
        font-size: 41px;
        line-height: 48px;
    }
}

@media (min-width: 887px) and (max-width: 963px) {
    .formazione_sezione_superiore-title {
        font-size: 39px;
        line-height: 46px;
    }
}

@media (min-width: 849px) and (max-width: 886px) {
    .formazione_sezione_superiore-title {
        font-size: 38px;
        line-height: 45px;
    }
}

@media (min-width: 830px) and (max-width: 848px) {
    .formazione_sezione_superiore-title {
        font-size: 37px;
        line-height: 44px;
    }
}

@media (min-width: 810px) and (max-width: 829px) {
    .formazione_sezione_superiore-title {
        font-size: 36px;
        line-height: 43px;
    }
}

@media (min-width: 791px) and (max-width: 809px) {
    .formazione_sezione_superiore-title {
        font-size: 35px;
        line-height: 42px;
    }
}

@media (min-width: 430px) and (max-width: 790px) {
    .formazione_sezione_superiore-title {
        font-size: 34px;
        line-height: 41px;
    }
}

@media (min-width: 414px) and (max-width: 429px) {
    .formazione_sezione_superiore-title {
        font-size: 32.5px;
        line-height: 40px;
    }
}

@media (min-width: 409px) and (max-width: 413px) {
    .formazione_sezione_superiore-title {
        font-size: 33px;
        line-height: 40px;
    }
}

@media (min-width: 375px) and (max-width: 408px) {
    .formazione_sezione_superiore-title {
        font-size: 32px;
        line-height: 41px;
    }
}

@media (min-width: 369px) and (max-width: 374px) {
    .formazione_sezione_superiore-title {
        font-size: 31px;
        line-height: 40px;
    }
}

@media (max-width: 368px) {
    .formazione_sezione_superiore-title {
        font-size: 31px;
        line-height: 40px;
    }
}

@media (min-width: 370px) and (max-width: 1128px) {
    .description-formazione_sezione_superiore {
        font-size: 16px;
        line-height: 22px;
    }

    .description-formazione_sezione_superiore {
        margin-block-start: 0px !important;
        margin-block-end: 0px !important;
    }
}

@media (max-width: 369px) {
    .description-formazione_sezione_superiore {
        line-height: 20px;
        font-size: 14px;
    }

    .description-formazione_sezione_superiore {
        margin-block-start: 0px !important;
        margin-block-end: 0px !important;
    }
}






@media (max-width: 1280px) {
    .formazione_sezione_superiore-section {
        margin-top: 0px;
    }
}

@media (max-width: 1280px) {
    .ebook_hero-section {
        margin-top: 0px !important;
    }
}