:root {
    --primary: #9a0e04;
    --secondary: #0000;
    --black: #000000;
    --white: white;
}

body {
    font-family: "Urbanist", sans-serif;
    background: #9A0E04;
    background: linear-gradient(180deg, rgba(154, 14, 4, 0) 0%, rgba(154, 27, 4, 0.10) 100%);
}
.logo-header {
  width: 22vh;
  height: auto;
  position: absolute;
  bottom: 10px;
  right: 20px;
}
.form-floating {
    margin-bottom: 1.5rem;
}
.nav-link-dropdown:hover {
    color: var(--primary);
    text-decoration: none;

}
 .dropdown-item.active,
    .dropdown-item:active {
        color: var(--white);
        text-decoration: none;
        background-color: var(--primary);
    }
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 15%;
}

.form-floating label {
    margin-left: 1rem;
    font-size: 1.2rem;
}

.form-floating:focus-within label {
    color: var(--primary);
}

.next {
    position: absolute;
    z-index: 10;
    top: 50%;
    right: 0;
}

.prev {
    left: 0;
    position: absolute;
    z-index: 10;
    top: 50%;

}

.btn {
    font-size: 1.3rem;
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid transparent;
}

.link-footer {
    position: relative;
    display: inline-block;
}

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

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

.orizontal-list {
    padding-left: 0;
    display: inline-flex;
    gap: 2rem;
}

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

.link-privacy {
    color: var(--black);
    text-decoration: none;
}

.link-privacy:hover {
    color: var(--primary);
    text-decoration: none;
}

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

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

.form-control:focus {

    color: #212529;
    background-color: #fff;
    border-color: transparent;
    outline: 0;
    box-shadow: 0 0 0 .12rem rgba(204, 19, 19, 0.345);
}

.brd-left {
    border-left: 7px solid var(--primary);
}

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

.shadow-img {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.navbar {
    box-shadow: #00000020 0px 0px 10px;
    top: 35px;
    border-radius: 20px;
    padding: 1em;
    margin: auto;
    max-width: 88%;
}

.navbar-nav {
    gap: 2em;
}

.list-unstyled {
    padding-left: 2em;
    list-style: none;


    flex-direction: row;
}

.list-unstyled li {
    font-size: 1.3rem;

}

.link-footer {
    font-size: 1.3rem;
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.navbar-nav {
    align-items: center;
}

.indicator {
    font-weight: 500;
}

.nav-link {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s ease, font-weight 1s ease-in-out;
    position: relative;
    display: inline-block;
}

#isol-40,
#isol-20,
#isol-50 {
    scroll-margin-top: 7rem;
}

.nav-link-dropdown {


    font-size: 1.3rem;
    font-weight: 400;
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s ease, font-weight 1s ease-in-out;
    position: relative;
    display: inline-block;
}

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

.nav-link:hover {
    color: var(--primary);
    text-decoration: none;
}

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

.relative {
    position: relative;
}

.overlay {
    margin-top: 6rem;
    background-color: rgba(0, 0, 0, 0.5);

}

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

.title-h1 {
    font-size: 5rem;
    font-weight: 600;
    color: var(--white);

    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.header-text {
    border-left: 7px solid var(--primary);
    padding-left: 2em;
    border-top: 7px solid var(--primary);
    padding-top: 2em;
    border-bottom: 7px solid var(--primary);
    padding-bottom: 2em;

    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    text-shadow: var(--black) 2px 2px 4px;
    color: var(--white);
}

.bg-rosso {

    background-image: url(../img/bg.svg);
    background-size: cover;
    background-position: 0% 0%;
}

.relative {
    position: relative;
}

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

.contatti-nav {
    gap: 2rem;
    display: inline-flex;
    margin-bottom: 0;
    list-style: none;

}

.title-h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0rem;
}

.title-h2 {
    font-weight: 500;
}

.txt {
    font-size: 1.3rem;
}

.icon-pdf {
    transition: color 0.4s ease;
    color: var(--primary);
    font-size: 4rem;
}

.icon-pdf:hover {
    color: var(--black);

}

.rounded-border {
    border-radius: 20px;
}

.box-shadow {
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    background-color: var();
}

.btn-nav {
    color: var(--primary);


}

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

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

.sfondo-grigio:hover{
    background-color: #8c8c8c !important;   /* New background color on hover */
}

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

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

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

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

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

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

.verde {
    background-color: #198754;
}

#map {
    height: 45vh;
}

.header {
    margin-top: 4em;
    border-radius: 25px;
    width: 100%;
    object-fit: cover;
    height: 80vh;
}

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

.payof {
    font-size: 2rem;
}

.container-wha {
    filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.09));
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9999;
}

.wha-icon {
    width: 6rem;
    height: 6rem;
   
}

footer {
    box-shadow: #00000020 0px 0px 10px;
    background-color: #f8f9fa;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

@media only screen and (max-width: 1920px) {
    .card-stack {
        height: auto;
    }
}

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


        top: 55%;
        left: 25%;
        transform: translate(-35%, -50%);
        text-shadow: var(--black) 2px 2px 4px;
        color: var(--white);
    }

    .title-h1 {
        font-size: 5rem;
        font-weight: 600;
        color: var(--white);
        margin-top: 2rem;
        margin-bottom: 1.5rem;
    }

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

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

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

    .list-unstyled li {
        font-size: 1.1rem;
    }
}

@media only screen and (max-width: 769px) {
    .dropdown-menu {
        background-color: unset;
        border: 0;
    }

    .navbar-nav {
        align-items: unset;
        gap: 0em;
    }

    .navbar-nav li {
        margin-top: 1rem;
    }

    .header-text {
        top: 40%;
        padding: 1em;

    }

    .contatti-nav {
        padding-top: 1em;
        padding-left: 0;
    }

   

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

    .header-text {
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        text-align: center;
    }

    .title-h1 {
        font-size: 2.5rem;
    }

    .payof {
        font-size: 1.1rem;
    }

    .title-h2 {
        font-size: 2.2rem;
    }

    .form-floating label {
        font-size: 1rem;
    }

    .btn {
        font-size: 1rem;
    }

    .nav-link {
        font-size: 1.2rem;
    }

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

    .txt {
        font-size: 1.1rem;
    }

    .orizontal-list {
        padding-left: 0;
        flex-direction: column;
        gap: 1rem;
    }

    .list-unstyled {
        padding-left: 1em;

    }

}