/* Reset */
* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

body {
    font-family: "Sedan", serif;
}

html {
    overflow-x: hidden;
}

/* .crimson-text-regular {
    font-family: "Crimson Text", serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .crimson-text-semibold {
    font-family: "Crimson Text", serif;
    font-weight: 600;
    font-style: normal;
  }
  
  .crimson-text-bold {
    font-family: "Crimson Text", serif;
    font-weight: 700;
    font-style: normal;
  }
  
  .crimson-text-regular-italic {
    font-family: "Crimson Text", serif;
    font-weight: 400;
    font-style: italic;
  }
  
  .crimson-text-semibold-italic {
    font-family: "Crimson Text", serif;
    font-weight: 600;
    font-style: italic;
  }
  
  .crimson-text-bold-italic {
    font-family: "Crimson Text", serif;
    font-weight: 700;
    font-style: italic;
  } */



/* .dm-serif-display-regular {
    font-family: "DM Serif Display", serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .dm-serif-display-regular-italic {
    font-family: "DM Serif Display", serif;
    font-weight: 400;
    font-style: italic;
  } */


/* .sedan-regular {
    font-family: "Sedan", serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .sedan-regular-italic {
    font-family: "Sedan", serif;
    font-weight: 400;
    font-style: italic;
  } */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "DM Serif Display", serif;
    font-weight: 400;
    font-style: italic;
}

p {
    font-family: "Sedan", serif;
    font-weight: 400;
    font-style: normal;
}

li {
    font-family: "Sedan", serif;
    font-weight: 400;
    font-style: normal;
}

ul {
    font-family: "Sedan", serif;
    font-weight: 400;
    font-style: normal;
}

.header {
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../img/cartelle_dei_cassetti.webp");
    background-position: center;
    background-size: cover;
    position: relative;
}

nav {
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}

nav img {
    width: 150px;
}

.nav-links {
    flex: 1;
    text-align: right;
}

.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.nav-links ul li a {
    color: #fff;
    font-size: 15px;
}

.nav-links ul li::after {
    content: '';
    width: 0%;
    height: 2px;
    background: #b01e26;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after {
    width: 100%;
}

.text-box {
    width: 70%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: left;
}

.text-box p {
    margin: 10px 0 40px;
    font-size: 30px;
    color: #fff;
    line-height: 110%;
}


.hero-btn {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 34px;
    font-size: 20px;
    background: transparent;
    position: relative;
    cursor: pointer;
    font-family: "Crimson Text", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.hero-btn:hover {
    border: 1px solid #b01e26;
    background: #b01e26;
    transition: 1s;
}

nav .fa-solid {
    display: none;
}

/* -------------------------------------------------------------------------------- */
/* ! /* dispositivi small */
/* -------------------------------------------------------------------------------- */

@media(max-width: 768px) {


    .text-box p {
        font-size: 12px;
        color: #fff;
        line-height: 110%;
    }

    .nav-links ul li {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100%;
        background-color: #b01e26;
        transition: right 0.3s ease;
        z-index: 2;
    }

    .nav-links.active {
        right: 0;
    }

    nav .fa-solid {
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }

    .nav-links ul {
        padding: 30px;
    }

    .row {
        flex-direction: column;
    }

    .testimonial-col img {
        margin-left: 0px;
        margin-right: 15px;
    }

    .hero-btn {
        display: inline-block;
        text-decoration: none;
        color: #fff;
        border: 1px solid #fff;
        padding: 6px 17px;
        font-size: 10px;
        background: transparent;
        position: relative;
        cursor: pointer;
        font-family: "Crimson Text", sans-serif;
        font-weight: 400;
        font-style: normal;
    }

    .cta h1 {
        font-size: 18px;
    }

    .logo_img .logo-img {
        height: 40px;
    }

    .footer-col {
        flex: 1;
        margin-right: 20px;
    }

    .footer ul a:hover {
        color: #b01e26;
        transition: 0.5s;
    }
}

/* -------------------------------------------------------------------------------- */
/* ! /* dispositivi medium */
/* -------------------------------------------------------------------------------- */

@media(max-width: 1300px) {


    .text-box p {
        font-size: 15px;
        color: #fff;
        line-height: 110%;
        margin-top: 30px;
    }

    .nav-links ul li {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 200px;
        height: 100%;
        background-color: #b01e26;
        transition: right 0.3s ease;
        z-index: 2;
    }

    .nav-links.active {
        right: 0;
    }

    nav .fa-solid {
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }

    .nav-links ul {
        padding: 30px;
    }

    .row {
        flex-direction: column;
    }

    .testimonial-col img {
        margin-left: 0px;
        margin-right: 15px;
    }

    .hero-btn {
        display: inline-block;
        text-decoration: none;
        color: #fff;
        border: 1px solid #fff;
        padding: 6px 17px;
        font-size: 15px;
        background: transparent;
        position: relative;
        cursor: pointer;
        font-family: "Crimson Text", sans-serif;
        font-weight: 400;
        font-style: normal;
    }

    .cta h1 {
        font-size: 18px;
    }

    .logo_img .logo-img {
        height: 45px;
    }

    .logo_title h1 {
        text-align: center;
        font-size: 20px;
        margin-top: 20px;
    }

    .footer-col a {
        margin-top: 20px;
    }



    .footer ul a:hover {
        color: #b01e26;
        transition: 0.5s;
    }

    .icons .fa-brands {
        color: #ffffff;
        margin-right: 13px;
        cursor: pointer;
        padding: 10px 0;
        margin-top: 20px;
    }

}

/* -------------------------------------------------------------------------------- */
/* ! /* courses */
/* -------------------------------------------------------------------------------- */

.course {
    width: 80%;
    margin: auto;
    text-align: center;
}

h1 {
    font-size: 36px;
    font-weight: 600;

}


p {
    color: #000000;
    font-size: 20px;
    font-weight: 200;
    line-height: 22px;

}

.row {
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
}

.course-col {
    flex-basis: 31%;
    background: #b42d27;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5s;
}

h3 {
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
    color: #000000;
}

.course-col h3 {
    color: #ffffff;
}

.course-col p {
    color: #ffffff;
}

.course-col:hover {
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.6);
}


/* -------------------------------------------------------------------------------- */
/* ! /* campus */
/* -------------------------------------------------------------------------------- */


.campus {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 50px;

}

.campus-col {
    flex-basis: 32%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}


.campus-col img {
    width: 100%;
    display: block;
}

.layer {
    background: transparent;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
}

.layer:hover {
    background: rgba(180, 45, 39, 0.7);
}

.layer h3 {
    width: 100%;
    font-weight: 500;
    color: #fff;
    font-size: 26px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    opacity: 0;
    transition: 0.5s;
}

.layer:hover h3 {
    bottom: 49%;
    opacity: 1;
}

/* -------------------------------------------------------------------------------- */
/* ! /* facilities */
/* -------------------------------------------------------------------------------- */

.facilities {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}

.facilities-col {
    flex-basis: 31%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
}

.facilities-col img:hover {
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.6);
    transition: 0.5s;
}

.facilities-col img {
    width: 100%;
    border-radius: 10px;
}

.facilities-col p {
    padding: 0;
}



.facilities-col h3 {
    margin-top: 16px;
    margin-bottom: 15px;
    text-align: left;
}

/* -------------------------------------------------------------------------------- */
/* ! /* <!-- testimonials --> */
/* -------------------------------------------------------------------------------- */

.testimonials {
    width: 80%;
    margin: auto;
    padding-top: 50px;
    text-align: center;
}

.testimonial-col {
    flex-basis: 44%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
    background: #ffffff;
    border: 1px solid #b42d27;
    padding: 25px;
    cursor: pointer;
    display: flex;
}

.testimonial-col img {
    height: 40px;
    margin-left: 5px;
    margin-right: 30px;
    border-radius: 50%;

}

.testimonial-col p {
    padding: 0;
}

.testimonial-col h3 {
    margin-top: 15px;
    text-align: left;
}


/* -------------------------------------------------------------------------------- */
/* ! /* call to action */
/* -------------------------------------------------------------------------------- */

.cta {
    margin: 100px auto;
    width: 80%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(../img/cassetti.jpg) no-repeat fixed;
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;
    margin-bottom: 5%;
}

.cta__container {
    margin: 5px auto;
    width: 80%;
    text-align: center;
    position: center;
}

.cta h1 {
    color: #fff;
    margin-bottom: 40px;
    padding: 0;
    font-size: 18px;
}

/* -------------------------------------------------------------------------------- */
/* ! /* logo */
/* -------------------------------------------------------------------------------- */

.logo_img {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.logo_img .logo-img {
    height: 50px;
    margin: 10px;
}

.logo_title {
    text-align: center;
    margin-top: 30px;
}

/* -------------------------------------------------------------------------------- */
/* ! /* footer */
/* -------------------------------------------------------------------------------- */

.footer {
    background-color: #000000;
    padding: 10px;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;

}

.footer-col {
    flex: 1;
    margin-right: 30px;
}

.footer-col img {
    height: 200px;
}

.footer-menu {
    padding: 0;
}

.icons {
    margin-top: 10px;
}

.icons a {
    margin-right: 10px;
}

.footer a {
    font-weight: 400;
    color: #ffffff;
    font-family: "DM Serif Display", serif;
    font-weight: 400;
    font-style: normal;
}

.footer ul li {
    color: #fff;
}

.footer ul a {
    display: flex;
    font-weight: 200;
    color: #fff;
}

.footer ul a:hover {
    color: #b01e26;
    transition: 0.5s;
}

.icons .fa-brands {
    color: #ffffff;
    margin-right: 13px;
    cursor: pointer;
    padding: 10px;
    display: flex;

}

.footer-col a:hover {
    color: #b01e26;
    transition: 0.5s;
}