
html {
    font-size: 26px;
    @media (max-width: 600px) {
        font-size: 20px;
    }

}

body {
    background-color: #c3b0b0;
    margin: 0;
}
*, *::before, *::after {
    box-sizing: border-box;
}
.container {
    position: relative;
    margin: 0 auto;
    width: 100%;
    background-color: #f2f0e3;
overflow: hidden;
}

#header {
    margin: 0 auto;
    height: 100%;
    transition: all 300ms;
    @media screen and (max-width: 800px) {
        height: 0;
        overflow: hidden;
        transition: all 300ms;
        &.visible {
            height: 350px;
        }
    }
}


.hamburger_menu_icon {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1000;
    @media screen and (max-width: 800px) {
        &.visible {
            display: block;
        }
    }

}

#topbar {
    width: 100%;
    max-width: 1200px;
    position: relative;
    margin: auto;

    font-family: "Opensans", sans-serif;
        display: flex;
        align-items: center;
        padding: 10px 0;
        background-color: transparent;
        font-size: 1rem;
        color: #333333;
        justify-content: space-between;
    @media screen and (max-width: 800px) {
        background-color: #c9c0b3;
        flex-direction: column;
        padding: 10px 0;
    }



        nav {
            width: 100%;
            font-weight: 400;

            ul {
                padding: 0;
                list-style: none;
                font-size: 0.75rem;
                text-align: center ;
                li {
                    margin: 0 10px;
                    display: inline-block;
                    @media screen and (max-width: 800px) {
                        display: block;
                        width: 100%;
                        text-align: center;
                        padding: 10px 0;
                        margin:0;
                    }
                    a {
                        text-decoration: none;
                        color: #333333;

                        &:hover {
                            color: #4a4a4a;
                        }
                    }
                }
            }
        }

        .logo {

            .image {
                background: url("../res/imgs/logo-stb.jpg");
                background-size: cover;
                background-position-y: -20px;
                width: 50px;
                height: 50px;
                border-radius: 50%;
                border: 1px solid #333333;
                box-shadow: 0 0 5px #000000;
                @media screen and (max-width: 800px) {
                    /*display: none;*/
                }
            }


        }

        .right_button {
            text-align: right;
            input[type="Button"] {
                width: 100px;
                background-color: #2c2c2c;
                border: none;
                color: #faf4eb;
                padding: 15px 10%;
                text-align: center;
                text-decoration: none;
                display: inline-block;
                font-family: "OpenSans", sans-serif;
                font-size: 0.5rem;
                cursor: pointer;
                border-radius: 10px;
            }
        }



}

#welcome {
    font-family: 'Junicode', serif;
    font-size: 1.5em;
    color: #333333;
    text-align: center;
    padding-top: 100px;
    margin: 0 auto 10dvh;
    line-height: 2.5rem;
    position: relative;

    h2 {
        font-size: min(6vw, 1.3rem);
        font-weight: normal;
        margin: 0;
    }

    h1 {
        font-size: min(8vw, 3rem);
        font-weight: normal;
        margin: 0;
    }

    p {
        text-align: center;
        font-size: min(4.5vw, 1rem);
        margin: 0;
        font-style: italic;
        line-height: 1.5rem;
    }
}

.section {
    position: relative;
    color: #333333;
    font-family: "Signika", sans-serif;
    margin: auto;
    padding: 25px 0;
    width: 95%;
    max-width: 1200px;
    h1 {

        margin: 0;
        font-weight: normal;

        font-size: min(7vw, 1.4rem);
    }

    h2 {
        font-family: "Signika", sans-serif;
        font-weight: normal;
        margin: 0;
        font-size: 0.8rem;
    }

    .title {
        margin: 30px auto;
    }

    img {
        width: 100%;
        height: auto;
        border-radius: 15px;
        box-shadow: 0 0 10px #000000;
        @media screen and (max-width: 800px) {
            border-radius: 0;
            width: 95%;
        }
    }

    .horizontal_content {
        display: flex;
        justify-content: space-between;
        gap: 30px;
        width: 100%;
        flex-wrap: wrap; /* Permette di andare a capo se il numero massimo è superato */

        & > * {
            flex: 1 1 calc(50% - 15px); /* 50% meno metà del gap (30px / 2) */
            max-width: calc(50% - 15px); /* 50% meno metà del gap */
        }

        @media screen and (max-width: 800px) {
            flex-direction: column;
            align-items: center;
            flex-wrap: nowrap;
            & > * {
                flex: 1 1 100%; /* 100% per occupare tutta la larghezza */
                max-width: 100%; /* 100% per occupare tutta la larghezza */
            }
        }


    }


    .vertical_content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .center_content {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .textbox {
        font-size: 0.8rem;
        text-align: justify;
        width: 100%;
        padding: 20px;
        border-radius: 10px;
        background-color: #e3e1d5;

        h1 {
            font-size: 1.2rem;
            font-weight: 600;
        }

        h2 {
            font-size: 0.8rem;
            font-weight: 600;
        }

        p {
            font-size: 0.8rem;
            font-weight: 300;
        }
    }

    ul {
        li {
            font-weight: 300;
            margin: 20px auto;
        }
    }


}


#courses {
        cursor: pointer;
    .horizontal_content {
        @media screen and (max-width: 800px) {
            flex-direction: column-reverse;
        }
    }
    .area_navbar {
        @media screen and (max-width: 800px) {
           flex-direction: row;
            align-items: center;
            justify-content: center;
            margin-top: 70px;
        }
    }
    .area_link {
        background-color: transparent;
        transition: all 300ms;
        &:hover {
            background-color: #e3e1d5;
        }
        &.selected {
            background-color: #e3e1d5;
            h1 {
                color: #bf0000;
            }
        }
        @media screen and (max-width: 800px) {
            background-color: #c9c0b3;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            padding: 0;
            h1 {
                display: none;
            }
            &.selected {
                background-color: #bf0000;
            }

        }
    }

    .moreinfo_list {
        position: relative;
        width: 100%;
        min-height: 500px;
        @media screen and (max-width: 800px) {
            margin: 0 auto;
            min-height: 450px;
        }
    }

    .moreinfo{
            transition: all 300ms;
            position: absolute;
            top: 0;
            scale: 0;
            width: 100%;

            h1 {
                display: none;
            }
            img {
                border: none;
                box-shadow: none;
                border-radius: 0;
                display: block;
                position: relative;
                margin: auto;
                width: 64px;
                height: 64px;
            }
            &.selected {
                scale: 1 !important;
                @media screen and (max-width: 800px) {
                    h1 {
                        color: #333333;
                    }
                }
            }

            @media screen and (max-width: 800px) {
                h1 {
                    position: relative;
                    margin: 10px auto;
                    text-align: center;
                    display: block;
                }
            }
        }

}

#magazine {
    .frontpages_carousel {
        position: relative;
        margin: 0 auto;
        .magazine_frontpage {
            position: relative;
            margin: 0 auto;
            width: 80%;
            height: 30%;
            padding: 10px 0;
            display: flex;
            align-items: center;
            scale: 0.8;
            transition: all 300ms;
            cursor: pointer;
            opacity: 0.5;
            .frontpage {
                display: block;
                width: 20%;
                box-shadow: 0 0 10px #000000;
                position: relative;
                left: 10px;
            }
            .description {
                display: block;
                width: 100%;
                text-align: center;
                background-color: #fff;
                border-radius: 10px;
                border: 1px solid #505050;
               padding: 20px 0;
                box-shadow: 0 0 10px #000000;
                a {
                    display: none;
                    width: 100%;
                    text-decoration: none;
                    color: #ffffff;
                    padding: 5px 0;
                    background-color: #2a9d8f;
                    margin-top: 10px;
                }
            }

            &.selected {
                scale: 1;
                opacity: 1;
                a {
                    display: inline-block;
                }
            }

        }
    }
    .other_numbers {
        margin: 10px auto;
        text-align: right;
        a {
            text-decoration: none;
        }
    }

}

#footer {
 .horizontal_content {
     flex-wrap: nowrap;
     @media screen and (max-width: 800px) {
    flex-wrap: wrap;
        justify-content: left;
         align-items: flex-start;
     }
 }
    .content {
        margin:50px 0;
        color: #ffffff;
        h1 {
            font-size: 1.5rem;

        }
        h2 {
            font-size: 1rem;

        }
        p {
            font-size: 0.8rem;
            color: #b6b1ab;
        }
    }
    .footer_line {
        text-align: right;
        color: #b6b1ab;
        font-size: 0.8rem;
        margin: 20px auto;
    }
    a {
        text-decoration: underline dotted;
        color: #b6b1ab;
        font-weight: 600;
        font-size: 0.8rem;
        transition: all 300ms;
        &:hover {
            color: #ffffff;

        }
    }
}



#iscrizioni {
    img {
        display: block;
        width: 64px;
        height: 64px;
        box-shadow: none;
        border: none;
        position: relative;
        margin:10px auto;
    }


#steps {
    display: flex;
    gap: 10px;
    cursor: pointer;
    h1 {
        display: block;
        text-align: center;
    }
    @media screen and (max-width: 800px) {
        flex-direction: column;
        align-items: center;
    }
}


}