html, body {
  min-width: 320px;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  font: 62.5% "Ubuntu", sans-serif;
}

div {
  box-sizing: border-box;
}

img { display: block; max-width: 100%; }


@font-face {
    font-family: 'Desyrel';
    src: url('../fonts/desyrel/desyrel-webfont.eot');
    src: url('../fonts/desyrel/desyrel-webfont.eot?#iefix')                                           format('embedded-opentype'),
         url('../fonts/desyrel/desyrel-webfont.woff')                                                 format('woff'),
         url('../fonts/desyrel/desyrel-webfont.ttf')                                                  format('truetype'),
         url('../fonts/desyrel/desyrel-webfont.svg#desyrelregular')                                   format('svg');
    font-weight: normal;
    font-style: normal;
}

/* Begin our UBUNTU font family set */

/* regular */
@font-face {
  font-family: 'Ubuntu';
  src: url('../fonts/ubuntu/regular/Ubuntu-Regular.eot');
  src: url('../fonts/ubuntu/regular/Ubuntu-Regular.eot?#iefix')                                                         format('embedded-opentype'),
       url('../fonts/ubuntu/regular/Ubuntu-Regular.woff')                                                               format('woff'),
       url('../fonts/ubuntu/regular/Ubuntu-Regular.ttf')                                                                format('truetype'),
       url('../fonts/ubuntu/regular/Ubuntu-Regular.svg#3d945423f8e9496c429a5d8c65b4604f')                               format('svg');

  font-style:   normal;
  font-weight:  400;
}

/* bold */
@font-face {
  font-family: 'Ubuntu';
  src: url('../fonts/ubuntu/medium/Ubuntu-Medium.eot');
  src: url('../fonts/ubuntu/medium/Ubuntu-Medium.eot?#iefix')                                                           format('embedded-opentype'),
       url('../fonts/ubuntu/medium/Ubuntu-Medium.woff')                                                                 format('woff'),
       url('../fonts/ubuntu/medium/Ubuntu-Medium.ttf')                                                                  format('truetype'),
       url('../fonts/ubuntu/medium/Ubuntu-Medium.svg#aa0d3505d0807abebe2b4c194a7b32b3')                                 format('svg');

  font-style:   normal;
  font-weight:  700;
}

/* light */
@font-face {
  font-family: 'Ubuntu';
  src: url('../fonts/ubuntu/light/Ubuntu-Light.eot');
  src: url('../fonts/ubuntu/light/Ubuntu-Light.eot?#iefix')                                                             format('embedded-opentype'),
       url('../fonts/ubuntu/light/Ubuntu-Light.woff')                                                                   format('woff'),
       url('../fonts/ubuntu/light/Ubuntu-Light.ttf')                                                                    format('truetype'),
       url('../fonts/ubuntu/light/Ubuntu-Light.svg#630c52efe056b136dcd45d95900a8763')                                   format('svg');

  font-style:   normal;
  font-weight:  200;
}


/* End our UBUNTU font family set */

.hidden {
  display: none;
}

.nowrap {
  display: inline-block;
  white-space: nowrap;
}

html.preIE10 #page__wrapper{
  display: none !important;
}

html.preIE10 #unsupported {
  display: block !important;
}

#unsupported {
  padding: 1em 2em 44em;
  color: #333;
  height: 100%;
  max-width: 76.8em;
  margin: 0 auto;
}

#unsupported h4{
  font-size: 4.5em;
  font-weight: normal;
  text-align: center;
  margin: 2em auto 0;
  color: #999;
}

#unsupported p{
  font-size: 1.8em;
  text-align: center;
  line-height: 1.4em;
  margin-bottom: 4em;
  color: #666;
}

#page__wrapper {
  height: 100%;
}

#page__header {
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  width: 100%;
  display: block;
  height: 4.8em;
  padding: 0;
  font-size: 100%;
  text-align: left;
  text-transform: none;
  outline: 0;
  background: #FFF url('../img/easycity.png') center/contain no-repeat;
}
#page__header:after {
  content: "";
  width: 100%;
  position: absolute;
  left: 0;
  bottom: -1em;
  height: 0;
  padding-bottom: 1em;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.0) 100%);
}


#page__header__ubilogo {
  height: 3em;
  background: #FFF url('../img/UBIbanca.png') left center no-repeat;
  background-size: contain;
  margin: .7em;
}


#page__content {
  height: 100%;
  width: 100%;
  position: relative;
  overflow-x: hidden;
  background: #333 url('../img/bgs/7.jpg') center top no-repeat;
  background-size: cover;
  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-end;
  align-items: center;
  flex: 0 1 auto;
  text-align: center;
  padding: 8em 0 0 0;
}
#page__content:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(0deg, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0) 100%);
  z-index: 1;
}

#page__content > * {
  position: relative;
  z-index: 2;
  width: 100%;
}

#page__background {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  background: #666 url('../img/bgs/1.jpg') center top no-repeat;
  background-size: cover;
}


#page__content__title,
#page__content__text,
#page__content__CTA,
#page__content__footer {
  color: #FFF;
  text-shadow: 3px 3px 8px rgba(0,0,0,.5);
  line-height: 1.3em;
}

#page__content__title {
  display: none !important;
  font-family: 'Desyrel';
  letter-spacing: 0.01em;
  padding: 0 1em;
  line-height: 1em;
  font-size: 3em;
  text-shadow: 2px 2px 5px rgba(0,0,0,.65), 0 0 10px rgba(0,0,0,.3), 0 0 20px rgba(0,0,0,.1);
}

#page__content__title:after {
  display: block;
  content: "";
  background-image: url('../img/arrow.png');
  background-position: 60% center;
  background-repeat: no-repeat;
  background-size: contain;
  height: 1.8em;
  width: 100%;
}

#page__content__text {
  font-size: 1.4em;
  padding: 1em 1em;
  background: #424c63;
  position: relative;
  z-index: 888;
  text-align: justify;
}

#page__content__text h3 {
  font-size: 2em;
  line-height: 1.2em;
  font-weight: 800;
  margin: 0 0 0.5em;
  text-align: center;
}

#page__content__text h4 {
  font-size: 1.2em;
  line-height: 1.3em;
  font-weight: 600;
  margin: 1.5em 0 0.5em;
}

#page__content__text h5 {
  text-align: center;
  font-size: 1.2em;
  line-height: 1.3em;
  font-weight: 400;
  padding: 1em 0 0 0;
  border-top: 1px solid rgba(255,255,255,0.5);
  margin: 1em 0 0.5em;
}

#page__content__text p {
  font-size: 1em;
  line-height: 1.3em;
  margin: 0 0 0.5em;
}


#page__content__text h4 {
  font-size: 1.2em;
  line-height: 1.3em;
  font-weight: 600;
  margin: 1.5em 0 0.5em;
}


#page__content__CTA {
  font-size: .625em;
  color: #FFF;
  text-transform: none;
  padding: 0;
  margin: 0 auto;
  text-align: center;
  text-align: center;
}

html.ios #page__content__CTA .install.badge,
html.android #page__content__CTA .install.badge { display: none; }

html.ios #page__content__CTA .install.badge.ios,
html.android #page__content__CTA .install.badge.android { display: inline-block; }

#page__content__CTA .install.badge {
  background-color: transparent;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
  height: 6em;
  width: 14em;
  margin: 0 1em;
  transition: 0.2s transform ease-in-out;
}
#page__content__CTA .install.badge:hover,
#page__content__CTA .install.badge:active {
  transform: scale(1.05);
}
#page__content__CTA .install.badge.ios {
  background-image: url('../img/download-ios.png');
}
#page__content__CTA .install.badge.android {
  background-image: url('../img/download-android.png');
}
#page__content__CTA .install.badge.wp {
  background-image: url('../img/download-wp.png');
}


#page__content__footer {
  background: rgba(0,0,0,1);
  color: #FFF;
  width: 100%;
  order: 2;
  text-align: center;
}

#page__content__footer p {
  display: inline-block;
  text-align: center;
  font-size: 1.2em;
  letter-spacing: 0.01em;
  line-height: 1.0em;
  margin: 0 1em 0;
  padding: 0.7em 0 0.3em;
  color: rgba(255,255,255,0.5);
}

#page__content__footer .toggle_modal_terms {
  display: inline-block;
  text-decoration: underline;
  cursor: pointer;
}
#page__content__footer .toggle_modal_terms:hover {
  color: #EEE;
}

#page__content__footer .ubibanca {
  background-color: transparent;
  background-image: url('../img/UBIbanca_white.png');
  background-position: left center;
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
  text-decoration: none;
  height: 100%;
  width: 7em;
  margin: 0.5em;
  color: rgba(0,0,0,0);
  opacity: 0.5;
}

#page__content__footer .ubibanca:hover {
  opacity: 1;
}

#fakesmartphone {

  min-width: 32em;
  min-height: 48em;

  height: 100%;

  max-width: 42em;
  max-height: 66em;

  background-color: transparent;
  background-image: url(../img/iPhone.png);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100%;
  border: 0;

  padding: 10em 3.4em 0;
  margin: 0 auto;
  z-index: 99;

}



#fakescreen {
  height: 100%;
  border-radius: 3px;
  outline: 0;
  border: 3px solid #444;
  box-shadow: 0 0 2px rgba(0,0,0,.5);
}

#modal {
  position: fixed;
  background: #424c63;
  color: #FFF;
  font-size: 1.4em;
  line-height: 1.4em;
  overflow: hidden;
  z-index: 9999999;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  transition: transform 1s ease-in-out;
  transform: translate3d(0,0,0);
}
#modal.hidden {
  display: block;
  width: 0;
  height: 0;
  transform: translate3d(0,100%,0);
}

#modal .modal_content {
  transition: opacity .5s ease-in .5s;
  overflow: auto;
  padding: 2em;
  opacity: 1;
  line-height: 100%;
}
#modal.hidden .modal_content.hidden {
  display: block;
  opacity: 0;
}

#modal .close_modal {
  position: absolute;
  top: 1em;
  right: 1em;
  padding: .5em;
  color: #FFF;
  background: #F48400;
  border-radius: 0.25em;
  line-height: 1em;
  transition: transform 0.3s ease-in-out;
  transition-delay: 1s;
  transform: scale(1);
  cursor: pointer;
}
#modal .close_modal:hover {
  transition-delay: 0s;
  transform: scale(1.1);
}
#modal.hidden .close_modal {
  transform: scale(0);
}

#modal .close_modal i {
  display: inline-block;
  vertical-align: middle;
}

/* SMARTPHONE */
@media (max-width: 426px) {

  html, body, #fakesmartphone, #fakescreen, #fakeapp, #fakeapp__wrapper {
    overflow: visible;
    height: auto;
  }

  #page__wrapper {
    padding-top: 0;
  }

  #page__header {
    /*position: relative;*/
    z-index: 999;
  }

  #page__content {
    overflow-x: hidden !important;
    overflow-y: visible !important;
    padding-top: 5em;
    background: #FFF;
  }

  #fakesmartphone {
    margin: 0 0 0 0;
    padding: 0;
    border: 0;
    height: auto;
    max-height: none;
    outline: 0;
    background-image: none;
  }

  #fakescreen {
    overflow: hidden;
    border: 0;
  }

  #page__background {
    display: none;
  }

  #page__content__title {
    padding: 1em 0.5em;
    background: #f3781f;
    width: auto;
    border-radius: 2em 2em 1.5em 1.5em;
    margin: 0.5em 0.25em;
    box-shadow: 0 0 0 rgba(0,0,0,.5);
    text-shadow: none;
  }

  #page__content__title:after {
    background: none;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0.7em 0.5em;
    border-color: #f3781f transparent transparent;
    position: absolute;
    bottom: -1.25em;
    left: 25%;
    transform: rotate(-10deg);
  }

  #page__content__footer {
    padding-top: 0.8em;
    padding-bottom: 1em;
  }


}

@media (min-width: 427px) and (max-width: 760px) and (min-height: 820px) {
  #page__content__text {
    font-size: 1.2em;
    padding-right: 0.5em;
  }

  #fakesmartphone {
    min-height: 45em;
    background-image: url(../img/iPhone.png);
  }

}

/* LANDSCAPE TABLET */

@media (min-width: 841px) {

  #page__content {
    padding-top: 7em;
    padding-left: 50%;
    padding-right: 5%;
    justify-content: space-around;
    text-align: left;
  }
  #page__content:after {
    background: radial-gradient(at bottom left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 60%);
  }

  #page__content__title {
    font-size: 4em;
    padding: 0 0 0 0;
  }
  #page__content__title:after {
    background-position: left center;
    transform: rotate(10deg) translate(-.5em,1em);
  }

  #page__content__text {
    padding: 0 0 3em 0;
  }

  #page__content__text,
  #page__content__CTA {
    background: rgba(0,0,0,0);
  }

  #page__content__text h3 {
  }

  #page__content__CTA {
    padding: 0 0 0;
  }

  #fakesmartphone {
    position: absolute;
    left: 25%;
    transform: scale(1) translate(-50%);
    bottom: 0;
  }

  #page__content__footer {
    padding: 0;
    position: absolute;
    z-index: 10;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.5);
    text-align: right;
  }
  #page__content__footer p {
    width: 50%;
    padding: 1em 0;
  }

  #page__content__footer h3 {
    font-size: 1.7em;
  }
}

/* TABLET PORTRAIT */

@media (min-width: 600px) and (max-width: 1279px) and (min-height: 600px) {
  #fakesmartphone {
    max-width: 427px;
    max-height: 570px;
    margin-top: 0;
  }
  #fakesmartphone #fakeapp {
    font-size: 120%;
  }
}

@media (min-width: 600px) and (max-width: 1279px) and (min-height: 600px) and (orientation:landscape) {
  #page__content__text h3 {
    font-size: 2.8em;
  }
}
/* TABLET PORTRAIT */

@media (min-width: 600px) and (max-width: 1279px) and (min-height: 700px){
  #fakesmartphone {
    max-width: 430px;
    border-radius: 5em 5em 0 0;
  }
  #fakesmartphone #fakeapp {
    font-size: 110%;
  }

  #page__content__title {
    font-size: 4em;
  }

}

/* SMALL TABLET LANDSCAPE */

@media (min-width: 600px) and (max-width: 1279px) and (min-height: 700px) and (orientation:landscape) {
  #fakesmartphone {
    max-width: 440px;
    max-height: 680px;
    border-radius: 5em 5em 0 0;
  }
  #fakesmartphone #fakeapp {
    font-size: 110%;
  }

  #page__content__title {
    font-size: 4.2em;
  }

  #page__content__text h3 {
    font-size: 2.8em;
  }

  #page__content__footer p {
    width: 50%;
    padding: 1em 3em 1em 0;
  }
}

@media (min-width: 1279px) and (min-height: 660px) {

  #page__header {
    height: 6em;
  }

  #fakesmartphone {
    max-width: 480px;
    max-height: 760px;
    border-radius: 7.5em 7.5em 0 0;
    padding-top: 12em;
  }

  #fakesmartphone #fakeapp {
    font-size: 130%;
  }

  #page__content__title {
    font-size: 5em;
  }

  #page__content__text {
    font-size: 175%;
  }

  #page__content__text h3 {
    font-size: 2.8em;
  }

}

@media (min-width: 1441px) and (orientation:landscape) {

  #page__header {
    height: 8em;
  }

  #page__content__title {
    font-size: 6em;
  }

  #page__content__text {
    font-size: 200%;
  }

  #page__content {
    width: 1440px;
    margin: 0 auto;
    padding-left: 33%;
  }

  #page__content__footer {
    border-radius: 2em 2em 0 0;
    padding-left: 33%;
  }
}
