:root {

    --black: #000000;
    --white: #f7f7f7;
    --azzurro: #afd2ed;
    --blu: #00315a;
    --pervinca: #7d83c1;
    --pervinca-dark: #676c9b;
    --pervinca-light: #b8c0e4;
    --fs-sm: clamp(0.8rem, 0.17vi + 0.96rem, 1.99rem);
    --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-xxl: clamp(2.44rem, 2.38vi + 1.85rem, 3.75rem);
    --fs-xxxl: clamp(6.05rem, 4.54vi + 2.17rem, 5rem);
}

body {
    font-family: "Urbanist", sans-serif;
    background: #7D83C1;
    background: linear-gradient(0deg, rgba(125, 131, 193, 0.308) 24%, rgba(175, 210, 237, 0.28) 80%);
}
.container-wha{
    z-index: 999;
    position:fixed;
    bottom:2rem;
    right:2rem;
}
.img-wha{
    
    max-width: 8vh;
    min-width: 8vh;
}
.row-h-100 {
    height: 100%;
}

.relative {
    position: relative;
}

.background-header {
    background-position: top left;
    background-size: cover;
    background-image: url(../img/pervinca.svg);
    height: 100%;
}

.navbar {
    background-color: var(--pervinca-light);
    margin: auto;
    max-width: 99%;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    border-radius: 10px;
    margin-top: 0.5rem;
}

.img-fiore {
    position: absolute;
    top: 7%;
    left: 22;
    width: 40%;
    height: 90%;
    object-fit: cover;
}

.list-button {
    list-style: none;
    padding-left: 0;
    display: inline-flex;
    flex-direction: row;
}

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

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

.parent {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 20px;
    grid-row-gap: 0px;
}

.nav-link {
    text-decoration: none;
    color: var(--black);
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--pervinca);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.text-header {
    z-index: 9;
    position: absolute;
    top: 40%;
    left: 9%;


}

.title-h4 {}

.title-h2 {
    line-height: 6rem;
    font-size: var(--fs-xxxl);
}

.payof {
    font-size: var(--fs-md);
    color: var(--black);
}

.navlink:hover {
    text-decoration: none;
}

.text {
    text-align: justify;
    font-size: var(--fs-md);
}

.img-chi-sono {
    filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.206));
}

.link-footer:hover {
    text-decoration: none;
}

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

.background-header {
    background-color: var();
}

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

#map {
    height: 45vh;
}

.spacing-top {
    margin-top: 3rem
}

.btn-pervinca {
    background-color: var(--azzurro);
    color: var(--blu);
    border: 2px solid transparent;
    font-size: var(--fs-md);

}

.btn-pervinca:hover {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.spacing-line {

    margin-top: 15rem;


}

hr {
    opacity: 1;
    border: 2px solid var(--pervinca);
}

.btn-lilla,
#sendBtn {
    background-color: var(--pervinca);
    color: var(--white);
    border: 2px solid transparent;
    font-size: var(--fs-md);
}

.btn-lilla:hover {
    background-color: transparent;
    border: 2px solid var(--blu);
    color: var(--blu);

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

.list-btn {
    flex-direction: row;
    display: inline-flex;
    gap: 2rem;
    margin-top: 1rem;
}

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

.video-header {
    border-radius: 20px;
    height: 80vh;
    width: 100%;

    object-fit: cover;

}

.pre-title {
    font-size: var(--fs-lg);
    color: var(--white);
}

.title-h1 {
    text-shadow: #0000007a 0px 0px 10px;
    line-height: 4rem;
    font-family: 800;
    margin-bottom: 0;
    font-size: var(--fs-xxxl);
    color: var(--white);
}

.slogan {

    font-size: var(--fs-lg);
    color: var(--white);
}

.title-mini {
    font-size: var(--fs-xxl);
}


.box-text {
    color: var(--white);

    filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.103));
    border-radius: 20px;
    padding-left: 6vh;
    padding-right: 6vh;
    padding-top: 6vh;
    padding-bottom: 6vh;
}

.bg-azzurro {
    background-color: var(--azzurro);

}

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

.ul-nav {
    display: inline-flex;
    flex-direction: row;
    gap: 2rem;
    font-size: var(--fs-base);
    margin-bottom: 0;
    ;
    list-style: none;
}

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

.title-footer {
    font-size: var(--fs-xl);
    color: var(--black);
    margin-bottom: 1rem;
}

.form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: unset;
    border: none;
    box-shadow: 0 0 0 .25rem rgba(85, 41, 140, 0.25);
}

.link-footer {
    font-size: var(--fs-md);
    text-decoration: none;
    color: var(--black);
}

.link-footer:hover {
    font-size: var(--fs-md);
    text-decoration: none;
    color: var(--pervinca-dark);
}

.bg-pervinca-dark {
    background-color: #676c9b;
}

.owl-prev,
.owl-next {
    filter: drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.16));
    top: 25%;
    background-color: transparent !important;
    width: 50px;
}

.owl-next {
    top: 25%;
    right: -30px;
    position: absolute;

}

.owl-prev {
    left: -30px;
    position: absolute;

}

.text-card {
    text-align: left;
    font-size: var(--fs-sm);
}

.navbar-nav {
    gap: 3rem;
    font-size: var(--fs-base);
}

.bg-footer {
    background-color: var(--pervinca-light);
    background-image: url(../img/pervinca.svg);
    background-size: 20vw;
    background-position: 0 0;
    background-repeat: no-repeat;
}

footer {
    border-radius: 20px;
    margin: 1rem;
    background-color: var(--pervinca-light);
    color: var(--black);
    padding: 2rem;

}

.form-floating>label {
    position: absolute;
    top: 0;
    left: 1rem;
    width: 100%;
    height: 100%;
    padding: 1rem .75rem;
    overflow: hidden;
    text-align: start;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out, transform .1s ease-in-out;
}

@media only screen and (max-width: 1630px) {
    .text-header {

        top: 25%;

    }

    .spacing-line {
        margin-top: 3rem;
    }

    .owl-prev {
        left: -50px;
    }

    .owl-next {
        right: -50px;
    }

}

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

    #servizi,
    #chi-sono,
    #contatti,
    #obiettivo {
        scroll-margin-top: 4rem;
    }

    .owl-prev,
    .owl-next {
        filter: drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.16));
        top: 25%;
        background-color: transparent !important;
        width: 50px;
    }

    .owl-next {
        top: 25%;
        right: -25px;
        position: absolute;

    }

    .owl-prev {
        top: 25%;
        left: -25px;
        position: absolute;

    }

    .title-h2 {

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

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

    .btn-lilla,
    #sendBtn,
    .btn-pervinca {


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

    .title-h1 {

        line-height: 3rem;
        font-size: var(--fs-xxl);
    }

    .text-header {
        z-index: 9;
        position: absolute;
        top: 30%;
        left: 9%;
    }

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

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

    .ul-nav {
        padding-left: 0;
    }

    .navbar-nav {
        gap: 2rem;
    }
}

@media only screen and (max-width: 1280px) {
    .icon-slider {
        width: 60% !important;


    }
}

@media only screen and (max-width: 1024px) {
    .video-header {

        height: 55vh;

    }

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


@media only screen and (max-width: 690px) {
    .bg-footer {
        padding: 1em;
    }

    .owl-prev,
    .owl-next {
        filter: drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.16));
        top: 25%;
        background-color: transparent !important;
        width: 50px;
    }

    .owl-next {
        top: 25%;
        right: 0;
        position: absolute;

    }

    .navbar-nav {
        margin-top: 1rem;
        gap: 0.5rem;
        padding-left: 1rem;
        font-size: var(--fs-base);
    }

    .ul-nav {
        margin-top: 1rem;
        padding-left: 1rem !important;

    }

    .owl-prev {
        top: 25%;
        left: 0px;
        position: absolute;

    }

    .title-h2 {
        line-height: 2.5rem;
    }

    .list-btn {
        flex-direction: column;

    }

    .row-h-100 {
        height: auto;
    }

    .parent {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, 0fr);
        grid-column-gap: 0px;
        grid-row-gap: 30px;
    }

    .box-text {
        color: var(--white);
        filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.103));
        border-radius: 20px;
        padding-left: 3vh;
        padding-right: 3vh;
        padding-top: 3vh;
        padding-bottom: 3vh;
    }
}