:root {
    --softer-blue: #1A364C;
    --darker-blue: #0B2234;
    --softer-purple: rgba(218, 97, 78, 0.0);
    --darker-purple: #b87474;
    --text-light-blue: #C3E2F8;
    --regular-padding: 1rem 2rem;
}

html {
    scroll-behavior: smooth;
}

.hero-wrapper{
    display: flex;
    flex-direction: column;
    background-image: 
                      linear-gradient(180deg, rgba(17, 17, 17, 0.3) 00%, rgba(17, 17, 17, 0.3) 20%, rgba(17, 17, 17, 0.65) 45%, rgba(17, 17, 17, 0.75) 100%), 
                      /* linear-gradient(rgba(255,255,255,0.3), rgba(255,255,255,0.3)), */
                      url(../assets/hero_ragazza_ufficio.webp);
    background-repeat: no-repeat;
    background-position: 60% 10%;
    background-size: cover;
    min-height: 70vh;
    z-index: 1;
}

.hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 0 2rem;
    max-width: 80vw;
}

.hero h1,
.hero h2 {
    font-size: 2rem;
    /* text-shadow: 2px 2px 2px rgba(8, 8, 8, 0.8) */
}

.hero h2 {
    font-size: 1.5rem;
}

.hero > h2,
.hero > h1 {
    color: #ffffff;
    position: relative;
    padding: 0.25rem 1.5rem;
}

.feature-cards-wrapper {
    padding: var(--regular-padding);
    max-width: 1600px;
    margin: .5rem auto 2rem;
}

.feature-cards-wrapper h1 {
    margin: 4rem 0 3rem;
    text-align: center;
    font-size: 3rem;
}


.feature-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 25px;
}

.feature-card {
    background: linear-gradient(135deg, #0B2234 50%, #3b4e5c);
    width: 300px;
    border-radius: 6px;
    padding: 0 0 2rem 0;
    box-shadow:12px 12px 12px rgba(134, 134, 134, 0.5);
    height: fit-content;
    transition: box-shadow .2s ease-in-out;
}

.feature-card:hover {
    box-shadow: 24px 24px 24px rgba(134, 134, 134, 0.5);

}

.chiavi-in-mano {
    margin-top: 1.25rem;
}

.chiavi-in-mano li {
    list-style-type: none;
    line-height: 2;
}

.chiavi-in-mano li::before {
    content: attr(data-icon);
    /* Make slightly larger than the li font-size
    but smaller than the li gap */
    font-size: 1em;
    margin-right: .375rem;
  }

.first-card {
    margin-top: 3rem;
}

.second-card {
    margin-top: 6rem;
}

.third-card {
    margin-top: 6rem;
}

.feature-card div img {
    width: 100%;
    border-radius: 6px 6px 0 0;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: .175rem;
    text-transform: uppercase;
    color: #C3E2F8;
}

.feature-card div h3,
.feature-card div p {
    padding: 2rem 2rem 0;
}

.feature-text {
    color: #ffffff;
    line-height: 1.675;
}

.card-num {
    filter: opacity(0.125);
    font-size: 9rem;
    position: relative;
    top: -10rem;
    left: -4rem;
    z-index: -1;
    color: #0B2234;
    /* text-shadow: 4px 4px 4px #0B2234; */
}
.paragraph {
    padding: var(--regular-padding);
    max-width: 800px;
    display: flex;
    flex-direction: column;
    margin: 2rem auto;
}

.img-paragraph {
    margin-top: 2rem;
    position: relative;
    max-width: 100%;
    max-height: 300px;
    align-self: center;
}

.bg-swiper {
    display: block;
    background-color: #E7F1F8;
    padding-bottom: 2rem;
    overflow-x: hidden;
}

.bg-swiper h1 {
    position: relative;
    display: block;
    margin: 3rem auto 0;
    width: fit-content;
}
.swiper {
    max-width: 800px;
    padding: 2rem;
    padding-bottom: 3rem;
    margin-bottom: 3rem;
}


.swiper-slide,
.house-card {
    border: none;
    border-radius: 6px;
    height: 276px;
    min-width: 160px;
}

.swiper-slide a {
    margin: 1.5rem;
}

.house-card {
    background-position: 16% 30%;
    background-repeat:no-repeat;
    background-size: cover;
    margin: 0 auto;
}

.house-card-img1{
    background-image: url(../assets/immagini_suite_1/1_soggiorno.webp);
}

.house-card-img2{
    background-image: url(../assets/immagini_suite_2/6_vista_completa.webp);
}

.house-card-img3{
    background-image: url(../assets/immagini_suite_3/1_closeup_entrata_luminosa.webp);
}

.house-card p {
    position: relative;
    top: 2rem;
    display: inline-block;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 0px 6px 6px 0;
    border-top: 2px solid #0B2234;
    border-right: 2px solid #0B2234;
    border-bottom: 2px solid #0B2234;
    padding: .25rem 1rem;
    color: #0B2234;
    font-weight: 700;
}


.swiper-wrapper {
    padding-bottom: 10rem;
}

.swiper-slide {
    max-width: fit-content;
}

.swiper-slide a {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.swiper-slide a:hover,
.swiper-slide a:focus {
    background-color: rgba(219, 231, 240, 0.5);
    border-radius: 6px;
    box-shadow: 0px 4px 4px 4px rgba(79, 80, 83, 0.1);
}

.swiper-a {
    float: right;
    margin-right: 2rem;
    margin-bottom: 2rem;
    color: var(--darker-blue);
    font-weight: 700;
    font-size: 1.25rem;
    transition: font-size 0.2s ease-in-out;
}

.swiper-a:hover,
.swiper-:focus {
    font-size: 1.3rem;
}

.swiper-pagination {
    margin-bottom: 0rem;
}

.description-card {
    margin-top: .875rem;
    margin: 0 auto;
    width: 400px;
    max-width: 100%;
    line-height: 1.25;
    padding: 1rem;
}

.description-card * {
    padding: .25rem 0;
}


.description-card p {
    font-size: .875rem;
}

#goToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    cursor: pointer;
    height: 40px;
    width: 40px;
    background-color: var(--softer-blue);
    color: #fff;
    border: none;
    border-radius: 50%;
    padding: 10px;
    font-size: 16px;
  }

#goToTopBtn:hover {
    background-color: #3b4e5c;
}

@media screen and (min-width:481px) and (max-width:768px) {
    .partner-btn {
        width: fit-content;
    }

    .hero > h1 {
        font-size: 2.375rem;
    }

    .hero > h2{
        font-size: 1.75rem;
    }

    .hidden-header ul li {
        font-size: 2rem;
    }

    .card-num {
        font-size: 12rem;
        top: -8rem;
        left: -8.5rem;
    }

}

@media screen and (min-width:682px){
    .first-card {
        margin-top: 0rem;
    }
}

@media screen and (min-width:769px){

    .hero-wrapper {
        max-width: 1200px;
        margin: 0rem auto 2rem;
        padding: 2rem 0;
        border-radius: 24px;
        background-image: 
        linear-gradient(180deg, rgba(17, 17, 17, 0.1) 00%, rgba(17, 17, 17, 0.2) 30%, rgba(17, 17, 17, 0.65) 65%, rgba(17, 17, 17, 0.75) 100%), 
        /* linear-gradient(rgba(255,255,255,0.3), rgba(255,255,255,0.3)), */
        url(../assets/hero_ragazza_ufficio.webp);

    }

    .hero-bg-laptop{
        background-color: var(--text-light-blue);
        padding: 2rem 0;
    }

    .bottom-arrow {
        border-bottom: 5px solid var(--text-light-blue);
  }

  .bottom-arrow:after {
        content:'';
        position: absolute;
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 0;
        height: 0;
        border-top: 300px solid var(--text-light-blue);
        border-left: 49vw solid transparent;
        border-right: 49vw solid transparent;
        z-index: -1;
    }

    .hero {
        padding: 0 0 2rem 10%;
    }

    .hero > h1 {
        font-size: 3rem;
    }

    .hero > h2{
        font-size: 2rem;
    }
    
    .swiper {
        max-width: 1200px;
    }

    .description-card {
        padding-bottom: 1.75rem;
        max-width: 100%;
    }

    .description-card h3 {
        font-size: 1.5rem;
    }

    .description-card p {
        font-size: 1rem;
    }

    .minor-description {
        color: #555b5f;
        font-size: 1rem;
    }

    .swiper-a {
        margin-right: 15%;
    }

    .swiper-wrapper {
        padding-bottom: 13rem;
    }


}

@media screen and (min-width:1032px){
    .third-card {
        margin-top: 12rem;
    }

    .card-num {
        font-size: 10rem;
        top: -11.5rem;
        left: -4rem;
    }

    .feature-cards {
        margin-bottom: 3rem;
    }
}

@media screen and (min-width:1280px){
    .card-num {
        font-size: 12rem;
        top: -8rem;
        left: -8.5rem;
    }
}
@media screen and (min-width:2200px){
    .swiper-a {
        margin-right: 30%;
    }
}