/* header */
#header {
    height: 100vh;
    background-image: url("../img/tourismotion-visit-italy.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    position: relative;
}

#header .title-header {
    position: relative;
}

#header .title-header h2 span {
    display: block;
    text-transform: uppercase;
}

#header .title-header h2 span:nth-child(1) {
    font-size: 4rem;
    font-weight: 800;
    line-height: 3rem;
    height: 3rem;
    margin-top: 0;
    margin-bottom: 0;
}

#header .title-header h2 span:nth-child(2) {
    font-size: 8rem;
    font-weight: 700;
    line-height: 6rem;
    height: 6rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-align: left;
    color: #ffffff;
}

#header .title-header h2 span:nth-child(3) {
    font-size: 3rem;
    line-height: 2rem;
    height: 2rem;
    margin-top: 0;
    margin-bottom: 0;
    text-align: right;
    color: #ffffff;
}

#header .start {
    position: relative;
    z-index: 2;
}

#header .start .start-button {
    border: 5px solid #107490;
    margin-top: 3rem;
    text-transform: none;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
    transition: box-shadow 0.2s ease-in-out;
}

#header .start .start-button:hover {
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.7);
  }

#header .start a:hover {
    background-color: #107490;
    border-color: #107490;
    color: #ffffff;
}

#header .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

#header .title-header, #header .arrows-down {
    position: relative;
    z-index: 2;
}

/* cta */
#cta .row {
    margin-right: 0;
    margin-left: 0;
}

#cta .left {
    background-image: url("../img/visit-italy-cta.jpg");
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
}

#cta .right {
    background-color: #e6e9eb;
}

#cta .right h1 {
    font-weight: 700;
    font-size: 2rem;
    margin-top: 1rem;
    margin-bottom: 3rem;
}

#cta .right h2 {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

#cta .right .goal {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-family: 'Montserrat', sans-serif;
}

#cta .right div:last-of-type {
    text-align: right;
    float: right;
}

#cta .right div p:last-child {
    margin-bottom: 0;
}

#cta .right div:last-of-type p {
    font-size: .875rem;
    color: #898a8b;
    margin-top: .5rem;
}

#cta .right div:last-of-type p a {
    font-weight: 600;
    color: #6d6e6d;
    text-decoration: underline;
}

#cta .right #our-tours {
    margin-top: 3rem;
}

/* tour */
#tour .container > .row{
    height: 644px;
    margin-left: 0;
    margin-right: 0;
}

#tour .left{
    background-image: url("../img/tours-italy-tourismotion.jpg");
    background-position: center center;
    color: #ffffff;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
}

#tour .left::before{
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: 0;
}

#tour .left,
#tour .city{
    text-align: center;
    background-size: cover;
    background-position: center;
    font-size: 2rem;
    position: relative;
}

#tour .right {
    height: 100%;
}

#tour .button{
    position: relative;
    font-size: 1.2rem;
}

#tour .cities{
    height: 100%;
}

#tour .city{
    overflow: hidden;
}

#tour .city .city-text{
    font-family: 'Montserrat', sans-serif;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: .5rem 2.5rem;
    line-height: 1;
    font-weight: 700;
    font-size: 1.8rem;
    color: #ffffff;
    text-transform: uppercase;
    background-color: rgba(16, 116, 144, 0.75);
    white-space: nowrap;
    opacity: 1;
    transition: opacity .5s;
}

#tour .city .city-text i {
    display: none;
    margin-left: 1rem;
}

#tour .city:hover .city-text{
    opacity: 0;
}

#tour .city h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

#tour .city .city-pseudo-link {
    display: none;
    color: #f3bc2f;
}

#tour .city .city-pseudo-link i {
    margin-left: 1rem;
}

#tour .cities p:last-of-type{
    margin-bottom: 0;
}

#tour .city:hover .city-detail{
    top: 0;
}

#tour .city .city-detail {
    position: absolute;
    top: -100%;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 100%;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    z-index: 2;
    transition: top .5s;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding-left: 1rem;
    padding-right: 1rem;
    text-decoration: none;
}

/* about */
#desc .row{
    background-color: #e6e9eb;
    margin-left: 0;
    margin-right: 0;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#desc .pre-title {
    background-color: #ffffff;
    font-size: 2rem;
}

#desc .slogan {
    background-color: #ffffff;
    padding-bottom: 8rem;
}

#desc .slogan .left{
    display: flex;
    align-items: center;
    flex-direction: column;
}

#desc .slogan .slogan-logo{
    font-family: "Montserrat", sans-serif;
    position: relative;
    z-index: 2;
    margin-bottom: 3rem;
}

#desc .slogan .slogan-logo img{
    height: 110px;
    position: absolute;
    top: 20%;
    left: -35%;
    z-index: -1;
    transform: rotate(-10deg);
}

#desc .slogan .slogan-logo p{
    line-height: 1;
    margin-bottom: 0;
}

#desc .slogan .slogan-logo p:nth-of-type(1){
    font-size: 2rem;
    font-weight: 800;
}

#desc .slogan .slogan-logo p:nth-of-type(2){
    font-size: 2rem;
    font-weight: 600;
}

#desc .slogan .slogan-logo p:nth-of-type(3){
    font-size: 3rem;
    font-weight: 800;
    line-height: .8;
}

#desc .slogan .right p {
    font-size: 1.5rem;
    margin-bottom: 0;
}

#desc .beliefs .left {
    font-size: 1.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 2rem;
}

#desc .beliefs .beliefs-text,
#desc .work-top .work-text {
    margin-bottom: 1rem;
    line-height: 1;
}

#desc .beliefs .beliefs-text p,
#desc .work-top .work-text p {
    font-size: 2rem;
    margin-bottom: 0;
}

#desc .beliefs .beliefs-text strong {
    font-weight: 700;
}

/* #desc .beliefs .beliefs-mission {
    text-align: right;
    margin-top: 6rem;
    font-weight: 600;
} */

#desc .beliefs .right{
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 2rem;
    padding-right: 2rem;
}

#desc .right > div{
    width: 100%;
    height: 80%;
    position: relative;
    background-color: #107490;
}

#desc .right img{
    position: absolute;
}

#desc .right img:nth-of-type(1){
    height: 280px;
    top: -5rem;
    z-index: 3;
}

#desc .right img:nth-of-type(2){
    height: 280px;
    bottom: -5rem;
    z-index: 4;
}

#desc .right img:nth-of-type(3){
    left: 0;
    z-index: 2;
}

#desc .work-top {
    padding-top: 8rem;
}

#desc .work-top .work-text {
    text-align: center;
}

#desc .work-bottom {
    padding-left: 2rem;
    padding-right: 2rem;
    margin-top: -4rem;
}

#desc .work-bottom > * {
    text-align: center;
    top: 4rem;
    display: flex;
}

#desc .work-bottom > * .inner {
    padding: 2rem;
    background-color: #ffffff;
    box-shadow: rgb(0 0 0 / 50%) 0px 1px 4px 0px;
}

#desc .work-bottom > * p {
    margin-bottom: 0;
}

#desc .work-bottom .work-col-title {
    color: #107490;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1rem;
}

#desc .join {
    text-align: center;
    background-color: #ffffff;
    padding-top: 3rem;
    margin-top: 4rem;
}

/* feedback */
#feedback{
    margin-top: 8rem;
    background-image: url("../img/tourismotion-testimonials-italy.jpg");
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
}

#feedback .external .left{
    display: flex;
    align-items: center;
    justify-content: center;
}

#feedback #feedback-stories{
    background-color: rgba(16, 116, 144, 0.8);
    padding: 4rem 1rem;
    color: #ffffff;
    text-align: center;
}

#feedback #feedback-stories h2{
    font-weight: 800;
    line-height: 1.5;    
}

#feedback #feedback-stories p{
    font-size: 1.5rem;
}

#feedback .right > .row{
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

#feedback .review{
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    display: flex;
}

#feedback .review > div{
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    /* height: 100%; */
}

#feedback .review h3{
    font-weight: 600;
    font-size: 1.2rem;
}

#feedback .review p{
    margin: 0;
}

#feedback .user-rating{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    height: 100%;
}

#feedback .user{
    position: relative;
    top: -2rem;
}

#feedback .user img{
    height: 80px;
    background-color: #ffffff;
    border-radius: 50%;
    top: -25%;
}

#feedback .user p{
    font-weight: 600;
    color: #107490;
}

#feedback .rating{
    font-size: 1.5rem;
    align-self: flex-end;
    color: #f3bc2f;
}

/* contact */
#contact {
    padding-bottom: 0;
}

#contact-form {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1rem;
}

#contact-form > h2 {
    font-weight: 700;
    color: #107490;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 0;
}

#contact-form > .button {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

#contact-form .form-row {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#contact-form .form-group:last-child {
    margin-bottom: 0;
}

#contact-form .form-control,
#contact-form .custom-select,
#contact-form input::placeholder,
#contact-form select::placeholder,
#contact-form textarea::placeholder {
    font-family: 'Raleway', sans-serif;
    color: #107490;
}

#contact-form .right .form-group {
    display: flex;
    flex-direction: column;
}

#contact-form .right .form-group,
#contact-form .right .form-control {
    height: 100%;
}

/* fix per vecchi dispositivi */
#contact-form .right .form-control {
    min-height: 146px;
}

#contact .not-logged {
    text-align: center;
    margin-top: 3rem;
}

#contact .not-logged > span {
    display: block;
    color: #ffffff;
    margin-bottom: .5rem;
}

@media screen and (max-width: 576px)
{
    /* header */
    #header .title-header h2 span:nth-child(1) {
        font-size: 3rem;
        line-height: 2rem;
        height: 2rem;
    }
    
    #header .title-header h2 span:nth-child(2) {
        font-size: 6rem;
        line-height: 4rem;
        height: 4rem;
    }
    
    #header .title-header h2 span:nth-child(3) {
        font-size: 2rem;
        line-height: 1rem;
        height: 1rem;
    }

    /* cta */
    #cta .row {
        background-color: #e6e9eb;
    }

    #cta .left {
        height: 400px;
        position: relative;
        top: -4rem;
        width: 90%;
        margin: 0 auto;
    }

    #cta .right {
        margin-top: -3rem;
    }

    #cta .right div:last-of-type {
        float: none;
    }

    #cta #cta-register-text {
        display: block;
    }

    /* about */
    #desc .work-bottom {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #desc .join a {
        margin-top: 1rem;
    }

    /* feedback */
    #feedback .external .left {
        margin-top: 0 !important;
    }

    #feedback #feedback-stories {
        position: relative;
        top: -4rem;
    }

    #feedback .left {
        justify-content: space-between;
    }

    #feedback .right > .row {
        margin-top: -3rem;
    }
}

@media screen and (max-width: 768px)
{
    /* about */
    #desc .beliefs .left {
        padding-left: 1rem;
        padding-right: 1rem;
        margin-bottom: 7rem;
    }

    #desc .beliefs .right {
        flex-flow: column;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #desc .right > div{
        width: 80%;
        height: 150px;
        order: 2;
    }

    #desc .right img {
        display: inline-block;
        position: static;
        height: auto !important;
        width: 90%;
    }

    #desc .right img:nth-of-type(1){
        order: 3;
    }

    #desc .right img:nth-of-type(2){
        order: 1;
    }
    #desc .right img:nth-of-type(3){
        display: none;
    }

    #desc .work-top {
        padding-top: 4rem;
    }

    /* feedback */
    #feedback .user-rating {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #feedback .user {
        position: static;
    }

    #feedback .review {
        padding: 1rem;
    }

    /* contact */
    #contact-form .form-group:last-child {
        margin-bottom: 1rem;
    }
}

@media screen and (max-width: 992px)
{
    /* feedback */
    #feedback .external .left {
        margin-top: 3rem;
    }
}

@media screen and (max-width: 1200px)
{
    /* tour */
    #tour .container > .row {
        height: auto;
    }

    #tour .left {
        height: 300px;
        order: 7;
    }
    
    #tour .city {
        height: 300px;
    }

    #tour .city .city-text i {
        display: inline;
    }

    #tour .city .city-pseudo-link {
        display: block;
    }

    /* fix per dispositivi mobile Apple */

    /* header */
    #header {
        background-attachment: scroll;
    }

    /* feedback */
    #feedback{
        background-attachment: scroll;
    }
}