:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --white-color: #FFFFFF;
    --bg-body: #f8f9fa;
    --black-color: #161A1D;
    --red: #E5383B;
    --darkred-10: #BA181B;
    --darkred-20: #A4161A;
    --darkred-30: #660708;
    --darkred-10-transparent: rgba(186, 24, 27, 0.2);
    --fs-sm: clamp(0.8rem, 0.17vi + 0.76rem, 0.89rem);
    --fs-base: clamp(1rem, 0.34vi + 0.91rem, 1.19rem);
    --fs-md: clamp(1.25rem, 0.61vi + 1.1rem, 1.58rem);
    --fs-lg: clamp(1.56rem, 1vi + 1.31rem, 2.11rem);
    --fs-xl: clamp(1.95rem, 1.56vi + 1.56rem, 2.81rem);
    --fs-2xl: clamp(2.44rem, 2.38vi + 1.85rem, 3.75rem);
    --fs-3xl: clamp(11.05rem, 3.54vi + 2.17rem, 5rem);
    --fs-4xl: clamp(18.05rem, 3.54vi + 2.17rem, 5rem);
}

body {
    font-family: 'Urbanist', sans-serif;
    background-color: var(--bg-body);
}

.link-scopri {
    position: relative;
    color: var(--white-color);
    text-decoration: none;

}

.link-scopri::after {
    margin-bottom: -0.3rem;
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--white-color);
    transition: width 0.3s ease;
}

.link-scopri:hover {
    color: var(--white-color);
}

.link-scopri:hover::after {

    width: 100%;
}

.link-scopri-btn {
    background-color: var(--darkred-30);
    color: var(--white-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.icon-mini {
    width: 1em;
    height: 1em;
    margin-left: 0.5em;
}

.header-video {
    width: 100%;
    object-fit: cover;
    max-height: 95dvh;
}

.header-section-page img {
    object-fit: cover;
    max-height: 80vh;
}

.box-text-page {

    flex: 1;

    border-radius: 16px;
}

.img-page {
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
    display: flex;
    flex: 1;
    height: 100%;
    object-fit: cover;
    object-position: center;

    border-radius: 12px;

}

.title-sez {
    font-weight: 800;
    font-size: var(--fs-lg);
    color: var(--darkred-20);
}

.link-sez {
    color: var(--black-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-menu {
    color: var(--black-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.relative {
    position: relative;
}

.title-page {
    border-left: 1.5vh solid var(--darkred-20);
    padding-left: 0.1em;
    z-index: 999;
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    font-size: var(--fs-3xl);
    text-transform: uppercase;
    color: var(--white-color);
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.img-header {
    z-index: -1;
    filter: brightness(0.7);
}

.owl-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.owl-carousel .owl-item {
    float: none;
    display: flex;
}

.owl-carousel .owl-item>.item {
    display: flex;
    width: 100%;
    height: 100%;
}

.owl-carousel .owl-item .card-box {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.row-cards {

    display: flex;
    gap: 1rem;
    justify-content: start;
}

.card-box {
    flex: 1;
    transition: flex 0.3s ease;
    border-radius: 12px;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
    padding: 3em;
    background-color: var(--darkred-20);

}

.card-box img {
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
}

.bg-body {
    background-color: var(--bg-body);
}

.relative {
    position: relative;
}

.header-overlay {
    position: absolute;
    top: 0;
    z-index: 9;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.h1-header {
    text-shadow: 3px 3px 12px rgba(255, 255, 255, 0.097);
    font-weight: 800;
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    font-size: var(--fs-4xl);
    color: var(--darkred-20);
}

.header-list {
    font-size: var(--fs-md);
    gap: 2rem;
    display: inline-flex;
    color: var(--white-color);
}



.bg-red {
    background-color: var(--darkred-20);
}

.title-mini {
    font-size: var(--fs-md);
    font-weight: 500;
    line-height: 1rem;
    color: var(--white-color);
}

.title {
    font-family: 'Roboto', sans-serif;
    margin-bottom: 1.5rem;
    font-size: var(--fs-xl);
    font-weight: 800;
    line-height: 2.5rem;
    color: var(--white-color)
}

.title-footer {
    color: var(--bg-body);
    font-size: var(--fs-lg);
    padding-bottom: 0.5rem;
}

.link-footer {
    transition: color 0.2s ease;
    color: var(--bg-body);
    font-size: var(--fs-base);
    text-decoration: none;
}

.link-footer:hover {
    color: var(--darkred-30);
}

.line {
    color: var(--bg-body);
}

.text-footer {
    color: var(--bg-body);
    font-size: var(--fs-base);
}

.text {
    font-size: var(--fs-base);
    color: var(--white-color)
}

.black {
    color: var(--black-color);
}

.box {
    padding-top: 4vh;
    padding-bottom: 4vh;
    padding-left: 22vh;
    padding-right: 22vh;
}

.navbar-brand {

    padding: 0;
}

.navbar {

    padding: 0;
    top: 1rem;
    border-radius: 10px;
    max-width: 80%;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 3px solid var(--darkred-10-transparent);

}

.marquee {
    border-bottom: 4px solid var(--darkred-30);
    margin: 0 auto;
    white-space: nowrap;
    overflow: hidden;
    position: absolute;
}

.marquee span {

    font-family: "Roboto", sans-serif;
    color: var(--white-color);
    display: inline-block;
    padding-left: 100%;
    font-size: var(--fs-xl);
    font-weight: 600;
    animation: marquee 50s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

.list-btn {
    display: inline-flex;
    flex-direction: row;
    gap: 1rem;
    list-style: none;
    padding: 0;

}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--darkred-30);
    color: var(--white-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: var(--fs-base);

    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--red);
}


.nav-link {
    font-weight: 600;
    font-size: var(--fs-base);
    border-bottom: 2px solid transparent;
}

.logo-nav {
    border-radius: 15px;
    max-width: 220px;
}

.bg-darkred {
    color: var(--black-color);
}

.text-card {
    color: var(--bg-body);
}

.title-card {

    color: var(--bg-body);
}

.box-glass {
    padding: 2rem;
    background: rgba(233, 233, 233, 0.5);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.link-privacy {
    transition: color 0.2s ease;
    color: var(--bg-body);

    text-decoration: none;
}

.ul-contatti-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: var(--fs-sm);
    gap: 2rem;
}

.nav-link:hover {
    border-bottom: 2px solid var(--darkred-20);
}

.btn-nav {
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.824);

    padding: 0.5rem 1rem;
    border-radius: 8px;

    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-nav:hover {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
    background-color: var(--darkred-10);
    color: var(--white-color);
}

.ul-contatti-nav .nav-link {

    font-size: var(--fs-base);
}

.black {
    color: var(--black-color);
}

.link-privacy:hover {
    color: var(--darkred-30);
}

.title-black {
    font-family: "Roboto", sans-serif;
    font-weight: 800;
    font-size: var(--fs-xl);
    color: var(--black-color);
}

.form-check-input:checked {
    background-color: var(--darkred-20);
    border-color: var(--darkred-20);
}

.form-check-label {
    font-size: var(--fs-base);

}

label {
    margin-left: 1em;
}

.red-dark {
    color: var(--darkred-20);
}

.tit-menu {
    font-family: "Roboto", sans-serif;
    font-weight: 700;

    color: var(--darkred-20);
    margin-bottom: 1rem;
}

.form-control:focus {
    border-color: var(--darkred-20);
    box-shadow: 0 0 0 0.2rem rgba(164, 22, 26, 0.25);
}

.dropdown-menu {
    border: 3px solid var(--darkred-10-transparent);
    margin-right: 0 !important;
    min-width: 78rem;


}

.navbar .dropdown {
    position: relative;
}

.navbar .dropdown-menu.dropdown-menu-centered {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
}

.list-menu {


    list-style: none;
    padding-left: 1em;
    margin: 0;
    font-size: var(--fs-base);
    color: var(--black-color);
}

.list-menu li {
    margin-bottom: 0.5rem;
}

#sendBtn {
    width: auto;
}

.white {
    color: var(--bg-body) !important;
}

/*-----------SIDE POPUP----------------*/
#sidePopup {
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));

    justify-content: stretch;
    display: flex;


    transition: right 0.3s ease;
    position: fixed;
    right: -20rem;
    top: 40%;
    z-index: 99999;

}

.hidden-part {
    padding-left: 1em;
    width: 32vh;
    flex: 1;
    background-color: var(--bg-body);
    font-size: var(--fs-base);

}

.visible-part {
    flex: 1;
    max-width: 7rem;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;

    background-color: var(--bg-body);
    padding: 0.5rem;

}




/*-----------SIDE POPUP----------------*/
@media (min-width: 992px) {
    .navbar .nav-item.dropdown {
        position: relative;
    }

    .navbar .dropdown-menu.dropdown-menu-centered {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .navbar .dropdown-menu {
        display: block;
    }


    .navbar .dropdown-menu.dropdown-menu-centered {
        left: 50%;
        right: auto;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translate3d(-40%, 10px, 0);
        transition:
            opacity 180ms ease,
            transform 180ms ease,
            visibility 0s linear 180ms;
    }


    .navbar .dropdown-menu.dropdown-menu-centered.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform: translate3d(-40%, 0, 0);
        transition:
            opacity 180ms ease,
            transform 180ms ease,
            visibility 0s;
    }
}

@media only screen and (max-width: 1920px) {
    .box {
        padding-top: 7vh;
        padding-bottom: 7vh;
        padding-left: 7vh;
        padding-right: 7vh;
    }
    .title-page {
        border-left: 1vh solid var(--darkred-20);
        font-size: var(--fs-2xl);

    }
}

@media only screen and (max-width: 1780px) {

    .box {
        padding-top: 4vh;
        padding-bottom: 4vh;
        padding-left: 4vh;
        padding-right: 4vh;
    }
}

@media only screen and (max-width: 1280px) {
    .logo-nav {
        border-radius: 15px;
        max-width: 160px;
    }

    .img-impianti {

        object-position: 20%;
    }

    .img-corsi {
        object-position: 20%;
    }

    .box {
        padding-top: 4vh;
        padding-bottom: 4vh;
        padding-left: 4vh;
        padding-right: 4vh;
    }

    .navbar {
        max-width: 95%;
    }

    .title-page {
        border-left: 1vh solid var(--darkred-20);
        font-size: var(--fs-2xl);

    }

    .btn {
        font-size: var(--fs-sm);
    }

    .dropdown-menu {
        min-width: 50rem;
    }

    .link-footer {

        font-size: var(--fs-sm);

    }
}

@media only screen and (max-width: 1024px) {
    .header-section {
        height: auto;
    }
}

@media only screen and (max-width: 920px) {
    .nav-link {
        padding-left: 0.5em;
    }

    .title-page {
        border-left: 1vh solid var(--darkred-20);
        font-size: var(--fs-2xl);

    }

    .img-header {
        aspect-ratio: 4/5;
    }

    .box {
        padding-top: 1vh;
        padding-bottom: 1vh;

    }

    .row-box {
        gap: 1rem
    }

    .text-footer {

        font-size: var(--fs-sm);
    }

    .dropdown-menu {
        margin-right: auto !important;
        min-width: auto;
        overflow-y: scroll;
        overflow-x: hidden;
        max-height: 500px;

    }

    .navbar .dropdown-menu.dropdown-menu-centered {
        left: 0;
        transform: unset;
        right: auto;
    }

    .ul-contatti-nav {
        right: auto;
        left: 0;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-item {
        width: auto;
        display: inline-block;
    }

    .navbar {
        max-width: 95%;
    }

    .box {
        padding-left: 2vh;
        padding-right: 2vh;
    }

    .h1-header {
        text-align: left;
        font-size: var(--fs-3xl);
    }

    .header-list {
        gap: 0.3rem;
        text-align: center;
        list-style: none;

        flex-direction: row;

        padding-left: 0;
        font-size: var(--fs-base);


    }

    .header-section {
        height: auto;
        padding-top: 0vh;
        padding-bottom: 0vh;
    }

    .wrapper {
        text-align: left !important;
    }

    .header-section video {
        object-fit: cover;
        height: 80vh;
        object-position: left;
    }

    .navbar {
        margin: 0.5rem;
    }

    .logo-nav {
        max-width: 150px;
    }

    .box-text-header {
        align-items: end !important;
    }

    .list-btn {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn {
        font-size: var(--fs-base);
    }
}