/*!
 * FIle CSS per classi CUSTOM 
 * Da utilizzare per aggiungere classi una volta online o per cose che non modificanno Bootstrap
 * 
 */

/* EXTRA 
--------------------------------------------------*/

:root {
    --height-menu: 137px;
}

.site-footer p {
    -webkit-filter: opacity(1);
    filter: opacity(1);
}

.form-check-input {
    border: var(--bs-border-width) solid #2b2b2b;
}

#edit-actions {
    text-align: center;
}

#edit-actions-wizard-next,
#edit-actions-submit {
    color: #ffffff;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.05rem;
}

#edit-actions-wizard-prev {
    color: #313131;
    background-color: transparent;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.05rem;
}

.side-menu {
    z-index: 10 !important;
    top: calc(var(--height-menu) + 20px);
}

::selection {
    background-color: rgba(var(--bs-primary-rgb), 0.3);
    filter: opacity(0);
}

.button-primary::selection {
    color: var(--bs-secondary);
}

.side-menu a {
    color: inherit !important;
    cursor: pointer;


    &:hover {
        color: var(--bs-primary) !important;
    }
}

@media (max-width: 564px) {
    .sticky-top {
        position: relative;
    }

    :root {
        --height-menu: 0;
    }
}

html {
    scroll-timeline: --page-scroll block;
}

@keyframes grow-progress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

#progress {
    position: fixed;
    left: 0;
    top: var(--height-menu);
    width: 100%;
    height: 0.5em;
    background: var(--bs-secondary);

    transform-origin: 0 50%;
    animation: grow-progress auto linear;
    animation-timeline: --page-scroll;
    z-index: 2;
}

.search-icon {
    color: white;
    font-size: 1.2rem;
    margin-left: 5px;
}

.link-no-link a,
h1.link-no-link,
h2.link-no-link,
h3.link-no-link,
h4.link-no-link,
h5.link-no-link,
h6.link-no-link,
p.link-no-link {
    color: inherit;
    font-weight: 400;
    transition: all 0.5s;

    &:hover {
        color: var(--bs-primary)
    }
}

h1.link-no-link,
h2.link-no-link,
h3.link-no-link,
h4.link-no-link,
h5.link-no-link,
h6.link-no-link {
    font-weight: 600;
}

.p-m-0 p {
    margin: 0 !important;
}

.button-light {
    display: block;
    padding: 15px 20px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 100px;
    color: inherit;
    text-align: center;
    transition: all 0.5s;
    margin-bottom: 10px;

    background-color: var(--custom-bg);

    &:hover {
        background-color: var(--bs-primary);
        color: white;
    }
}

.bg-title {
    background-color: rgba(255, 255, 255, 0);
    background-image: linear-gradient(360deg, var(--custom-bg) 14%, #ffffff 14%);
    background-position: center center;
    background-repeat: no-repeat;
}

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

/* FONT 
--------------------------------------------------*/

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/manrope/v15/xn7gYHE41ni1AdIRggexSvfedN4.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* @import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap'); */

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: "Manrope", sans-serif;
    font-weight: 600;
    font-optical-sizing: auto;
    font-style: normal;
    color: var(--bs-secondary);
}

body {
    font-family: "Manrope", sans-serif;
    font-style: normal;
    font-optical-sizing: auto;
    color: var(--bs-secondary);
}

/* HEADER 
--------------------------------------------------*/

/* animate */

header {
    transition: all 1s;
    position: static;
    z-index: 99;
}

header.animate-fade-in {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 99;
    transform: translateY(-10px);
    animation: header-animation 1s ease forwards;
}

@keyframes header-animation {
    from {
        transform: translateY(-100px);
    }

    to {
        transform: translateY(0);
    }
}

/* transparent */

.transparent-header {
    position: fixed;
    width: 100%;
}

.transparent-header nav {
    background: transparent !important;
}

/* animate-transparent */

.animate-transparent-header {
    position: absolute;
    width: 100%;
}

.animate-transparent-header nav {
    background: transparent !important;
}

.animate-transparent-fade-in {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 99;
    transform: translateY(-10px);
    animation: header-animation 1s ease forwards;
    background: var(--bs-primary);
}


li.nav-item {
    position: relative;

}

.nav-link {
    color: var(--bs-secondary) !important;
    font-size: 18px;
    font-weight: 600;
}

span.menu-animation,
a.nav-link.is-active,
span.nav-link.active {
    display: block;
    border-top-width: 2px;
    border-bottom-width: 2px;
    border-left-width: 0;
    border-right-width: 0;
    border-color: #2cbc63;
    width: 100%;
    border-style: solid;
    height: 100%;
    transition: all 0.5s;
    z-index: 0;
}

span.menu-animation {
    transform: scaleX(0);
    position: absolute;
}

li:hover .menu-animation {
    transform: scaleX(1);
}

.dropdown-item .menu-animation {
    display: none;
}

footer .menu-animation,
footer a.nav-link.is-active,
footer span.nav-link.active {
    border-top-width: 0px !important;
    bottom: 0;
    height: auto;
}

a.nav-link {
    position: relative;
    z-index: 1;
}

a.nav-link,
span.nav-link {
    position: relative;
    z-index: 1;

    border-top-width: 2px;
    border-bottom-width: 2px;
    border-left-width: 0;
    border-right-width: 0;
    border-color: transparent;
    width: 100%;
    border-style: solid;
    height: 100%;
}

.dropdown-menu {
    margin-top: 3px;
    border-radius: 10px !important;
    border: none;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

.dropdown-item {
    padding: 10px 15px !important;
    border-radius: 10px;
}

.dropdown-item:hover {
    color: var(--bs-primary);
    background-color: white;
}

.dropdown-item.active {
    color: var(--bs-primary);
    background-color: transparent;
}

@media (max-width: 1024px) {

    span.menu-animation,
    a.nav-link.is-active {
        border-color: transparent;
    }
}

/* HOME 
--------------------------------------------------*/

/* Carousel */

#carousel-home-1,
#carousel-home-1 .carousel-child,
#carousel-home-1 .carousel-child img {
    height: 100vh;
    width: 100%;
}

#carousel-home-1 .carousel-child {
    position: relative;
    overflow: hidden;
}

#carousel-home-1 .carousel-child img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: -1;
}

#carousel-home-1 .carousel-child .text-block {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;

    height: 100%;
}

.tag-field {
    column-gap: 10px;
}

.tag-field div {
    margin: 0 !important;
}

.tag-field a {
    display: block;
    padding: 5px 15px !important;
    background-color: var(--bs-gray-300);
    border-radius: 50px;
}

/*
--------------------------------------------------*/

.cover-img::after {
    content: '';
    position: absolute;
    display: block;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background-color: white;
    opacity: 0.7;
    z-index: -1;
}