* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

@font-face {
    font-family: "Fira Sans";
    src: url('../fonts/FiraSans-Regular.ttf');
}

@font-face {
    font-family: "Fira Sans Bold";
    src: url('../fonts/FiraSans-Bold.ttf');
}

@font-face {
    font-family: "Fira Sans Semi-Bold";
    src: url('../fonts/FiraSans-SemiBold.ttf');
}

@font-face {
    font-family: "Roboto";
    src: url('../fonts/Roboto-Regular.ttf');
}

section {
    border: 10px solid;
    border-image-slice: 1;
    border-width: 0.5em;
    border-image-source: linear-gradient(to right, #7DC04B, #005679);
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
}

label,
input,
textarea,
button {
    font-family: 'Fira Sans';
}

/******************************
********* Section 1 ***********
*******************************/
#sectionOne {
    width: 100%;
    max-width: 100%;
    background-color: #F7F6FB;
    display: flex;
    justify-content: end;
}

#sectionOne #contenu {
    display: flex;
    width: calc(1440px + 16em);
    align-items: center;
    max-width: 100%;
}

#contenu>div {
    width: 100%;
}

#presentation {
    margin: 5%;
}

#presentation img {
    margin-bottom: 3.25em;
    width: 40em;
}

#presentation h1 {
    color: #284D6D;
    font-family: "Fira Sans Bold";
    font-size: 2.25rem;
    font-style: normal;
    font-weight: 700;
    line-height: 3rem;
    margin-bottom: 2rem;
}

#presentation p {
    color: #284D6D;
    font-family: "Fira Sans";
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin-bottom: 3rem;
}

.cta {
    display: flex;
    align-items: center;
    width: 33em;
    justify-content: space-between;
}

.cta button {
    border-radius: 1rem;
    background: #FE5F5F;
    padding: 1.3rem 2rem;
    font-family: "Fira Sans";
    font-weight: 600;
    color: #fff;
    border: none;
    font-size: 1.05rem;
}

.cta button:hover {
    background: rgba(254, 95, 95, 0.70);
    cursor: pointer;
}

.cta a {
    color: #007292;
    text-decoration: none;
    font-family: "Fira Sans";
    font-weight: 600;
    font-size: 1.05rem;

}

.cta a:hover {
    color: #FE5F5F;
}

#sectionOne img {
    vertical-align: bottom;
    max-width: 475px;
}

#imgBack img {
    display: none;
}

#imgBack {
    background: url('https://www.casadiriposopiu.it/lp_residence/img/image.png') no-repeat top;
    background-size: cover;
    height: 700px;
}

/******************************
********* Section 2 ***********
*******************************/

#sectionTwo>div {
    margin: 4em auto;
    max-width: 1440px;
}

.titleGreen {
    color: #8ACA3A;
    text-align: center;
    font-family: "Fira Sans";
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.875rem;
    letter-spacing: 0.225rem;
    text-transform: uppercase;
}

.titleBlue {
    margin-top: 0.5em;
    color: #284D6D;
    text-align: center;
    font-family: "Fira Sans Bold";
    font-size: 2.25rem;
    font-style: normal;
    line-height: 3rem;
}

#cards {
    display: flex;
    margin-top: 3em;
}

#cards>div {
    width: 50%;
}

#blocCards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0 1em;
}

.card {
    border: 1px solid rgba(161, 161, 178, 0.50);
    border-radius: 1rem;
    padding: 1rem;
}

#cards #visibilite {
    padding: 0;
}

.card #visibText {
    padding: 1rem;
}

.card .cta {
    padding: 0 0 2em 1em;
}

#blocCards .card {
    width: 49%;
    display: flex;
    flex-direction: column;
}

#blocCards .card:nth-child(1),
#blocCards .card:nth-child(2) {
    margin-bottom: 1em;
}

.iconCard {
    width: 2.56663rem;
    height: 2.56663rem;
}

.card h4 {
    text-transform: uppercase;
    font-family: 'Fira Sans Bold';
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.875rem;
    letter-spacing: 0.225rem;
    margin: 1em 0;
}

.card p {
    color: #565E6A;
    font-family: "Fira Sans";
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5rem;
}

#reunion {
    width: 100%;
    margin: 3em 0;
}


/******************************
********* Section 3 ***********
*******************************/

/******** Formulaire Remerciement ***********/

#message-remerciement {
    display: none;
    margin: auto;
    width: 25%;
    text-align: center;
    background-color: #fff;
    padding: 1em;
    line-height: 2em;
    border-radius: 1rem;
}

#message-remerciement p {
    font-family: "Fira Sans";
}

/******** Formulaire ***********/

#formCard {
    padding: 7em 4em;
    background-size: cover;
    background: url('https://www.casadiriposopiu.it/lp_residence/img/spaceRoom.jpg') no-repeat center;
    background-size: cover;
}

#form-contact {
    display: flex;
    flex-direction: column;
    margin: auto;
    max-width: 630px;
    min-width: 515px;
    width: 45%;
    border: 1px solid rgba(161, 161, 178, 0.50);
    border-radius: 1rem;
    padding: 2rem;
    background: #ffff;
}

#form-contact label {
    margin-bottom: 0.75em;
    color: #284D6D;
    font-family: 'Roboto';
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4375rem;
}

#form-contact-div {
    justify-content: space-between;
    flex-direction: unset !important;
}

.form-contact-input {
    width: 49% !important;
}

.form-contact-input {
    position: relative;
}

.input-icon {
    position: absolute;
    width: 1.1em;
    top: 4.1em;
    right: 1.8em;
}

#mail-icon {
    width: 1.3em;
    top: 4.3em;
}

#phone-icon {
    width: 0.8em;
}

.design-border {
    padding: 1rem 1.5rem;
    background: none;
    border-radius: 16px;
    border: 1px solid #EFF0F6;
    box-shadow: 0px 2px 6px 0px rgba(19, 18, 66, 0.07);
}

.design-border:focus {
    line-height: 1;
    outline: none;
    /* height calc line-height + (vertical-padding * 2) + (vertical-border * 2) */
    width: 100%;
    border: 0.1em solid transparent;
    background-image: linear-gradient(#fff, #fff),
        linear-gradient(120deg, #7DC04B 0%, #005679 50%, #005679 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-size: 200% 100%;
    transition: background-position 0.8s ease-out;
}

#button-contact {
    width: 25%;
    color: #fff;
    background-color: #005679;
    border: 2px solid #005679;
    border-radius: 16px;
    padding: 1.2em 0.8em;
}

#button-contact:hover {
    color: #7DC04B;
    background-color: #fff;
    border: 2px solid #7DC04B;
    transition: 0.3s ease-in-out;
}

#form-contact h3,
#form-contact h2,
#message-remerciement h2{
    color: #284D6D;
    text-align: center;
    font-family: "Fira Sans Bold";
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 2.1rem;
}

#form-contact .cta {
    justify-content: space-between;
    width: 100%;
    padding: 1rem;
}

#form-contact .cta p {
    color: #A1A1B2;
    font-family: 'Fira Sans';
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5rem;
}

#form-contact h2 {
    font-size: 2.25rem;
    font-family: "Fira Sans Bold";
    line-height: 3rem;
}

#form-contact hr {
    margin: 1em auto;
    border: 1px solid #EFF0F6;
    width: 95%;
}

#nameSociety,
#nameSociety input {
    width: 100% !important;
}

#iconSociety {
    top: 1.85em;
}

.inputs {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    padding: 1em 0;
    align-items: center;
    justify-content: space-between;
}

#inputMessage {
    flex-direction: column;
    align-items: start;
    padding: 1em;
}

#inputMessage textarea {
    width: 100%;
    resize: none;
    min-height: 6.5em;
}

.inputs div {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    padding: 1em;

}

#protection {
    text-decoration: none;
    color: #565E6A;
}

/******** Nos Atouts ***********/
#atouts {
    padding: 4em 0;
}

/******** Carousel ***********/
.carousel {
    width: 100%;
    margin-top: 5em;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    width: 43%;
    box-sizing: border-box;
    text-align: center;
    margin: 0 1em;
}

.carousel-item h3 {
    color: #284D6D;
    font-family: 'Fira Sans Bold';
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 2.1rem;
    margin: 1em auto;
}

.carousel-item p {
    color: #565E6A;
    font-family: 'Fira Sans';
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5rem;
}

.carousel-item img {
    width: 37em;
    height: 20em;
    object-fit: cover;
}

.indicators {
    text-align: center;
    margin: 2em 0;
}

.indicator {
    display: inline-block;
    width: 15px;
    height: 15px;
    background-color: #bbb;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.indicator.active {
    background-color: #FE5F5F;
}

/******** Footer ***********/
#footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #007292;
    padding: 1.5em 4em;
}

#footer p {
    color: #DDD;
    font-family: 'Fira Sans';
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5rem;
}

#logofooter {
    width: 15%;
    background-color: white;
    padding: 0.5em;
}

/******************************
********* MOBILE ***********
*******************************/

@media (max-width: 1200px) {

    #cards {
        flex-direction: column;
        align-items: center;
    }

    #blocCards {
        flex-direction: column;
        align-items: center;
        margin-top: 1em;
    }

    #blocCards .card {
        width: 100%;
    }

    #cards > div {
        width: 80%;
    }

    #blocCards .card {
        margin-bottom: 1em;
    }

    .carousel-item img {
        width: 20em;
    }

    #sectionOne {
        height: 615px;
    }

    #presentation img {
        width: 25em;
    }

    #imgBack {
        height: 607px;
        background: url('https://www.casadiriposopiu.it/lp_residence/img/Image.jpg') right;
    }

    #imgBack img{
        display: none;
    }
}

@media (max-width: 500px) {
    #sectionOne {
        height: 100%;
        display: flex;
        flex-direction: column-reverse;
        flex-wrap: wrap;
    }

    #imgBack img{
        display: block;
    }

    #imgBack {
        height: unset;
        background: unset;
    }

    .cta {
        display: flex;
        gap: 1em;
        align-items: center;
    }

    .cta button {
        width: 65%;
    }

    #message-remerciement {
        width: 60%;
    }

    #presentation img {
        width: 24em;
    }

    .inputs {
        flex-direction: column;
    }

    .inputs div {
        width: 100% !important;
    }

    #form-contact {
        min-width: unset;
        width: 100%;
        padding: 1rem;
    }

    #formCard {
        padding: 2em 1em;
    }

    #form-contact .cta {
        flex-direction: column-reverse;
    }

    #form-contact .cta button{
        width: 100%;
    }

    .carousel-item img {
        width: 12em;
    }

    #footer {
        padding: 1.5em 0em;
        flex-direction: column;
        gap: 1rem;
    }
}

