@font-face {
  font-family: "Apfel";
  src: url("font/ApfelGrotezk-Regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "ApfelBolder";
  src: url("font/ApfelGrotezk-Fett.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "ApfelBold";
  src: url("font/ApfelGrotezk-.woff2") format("woff2");
  font-display: swap;
}


:not(:defined)>* {
  display: none;
}

::selection{
    background: #364457;
    color:white;
}


html {

}

body {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  overflow-y:scroll;
  overflow-x: hidden;
  font-family: "Apfel", Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #4c607a;
  /* padding: 5%; */
  background: WHITE;
}


header, footer {
  box-sizing: border-box;
  position: absolute;
  width: 100%;
  max-width: 100vw;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

footer {
  display: block;
}

main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: lightsteelblue;
  background-image: url("topo.svg"), linear-gradient(lightsteelblue 66%, #8696aa 100%);
  background-size: cover;

}

aside {
  width: 100%;
  height:auto;
  overflow-y: scroll;
  padding:1em 1em 15em 1em;
  box-sizing: border-box;
  font-size: 1.3em;
  max-width: 520px;
  margin:0 auto;
}

model-viewer {
  width: 100%;
  height: 100%;
  min-height: 50vh;
  z-index: 0;
  display: flex;
  mix-blend-mode: luminosity;
}


h1 {
  color: #364457;
  font-size: 1.5em;
  line-height: 1em;
  margin-bottom: 0.2em;
  font-family: "ApfelBolder", Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

h2{
  font-size:0.8em;
  display: inline-flex;
  font-family: "ApfelBold", Arial, Helvetica, sans-serif;
}

.tagline{
  display: flex;
  flex-direction: row;
  gap:0em 1em;
  flex-wrap: wrap;
  margin-bottom:2.5em
}

b {
  font-family: "ApfelBold", Arial, Helvetica, sans-serif;
}

a {
  color: inherit
}

a:hover {
  opacity: 0.8;
  transform: scale(1.02);
  transition: 0.2s ease-out;
}

hr{
  margin:1.5em 0;
  border:0;
}

address{
  margin:0em auto 1em auto;
  padding-bottom:5em;
  font-size: 0.75em;
  line-height: 1.5em;
  color:#61758f;
  display: flex;
  flex-direction: column;
  gap:1em;
}

.form{
  display: flex;
  gap:1em;
  margin:0.5em auto 2em;
  padding:0 5px ;
  flex-wrap: wrap;
  align-items: center;
}

.form small{
  font-size: 0.6em;
}


.form a {
  text-decoration: none;
  background: transparent;
  border:2px solid;
  padding: 0.75em 1.5em;
  border-radius: 1em;
  opacity: 0.6;
  cursor: pointer;
  font-size: 0.75em;
  color: inherit;
}

.form a:hover{
  opacity:1;
}


.progress-bar {
  display: block;
  width: 33%;
  height: 10%;
  max-height: 2%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  border-radius: 25px;
  box-shadow: 0px 3px 10px 3px rgba(0, 0, 0, 0.5), 0px 0px 5px 1px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background-color: rgba(0, 0, 0, 0.5);
}

.progress-bar.hide {
  visibility: hidden;
  transition: visibility 0.3s;
}

.update-bar {
  background-color: rgba(255, 255, 255, 0.9);
  width: 0%;
  height: 100%;
  border-radius: 25px;
  float: left;
  transition: width 0.3s;
}

#default-poster::after{
  content:'UN ATTIMO';
  font-size: 5em;
  color:red;
  position: absolute;
  top:50%;
  right:calc(50%-20px);
}

@keyframes circle {
  from {
    transform: translateX(-50%) rotate(0deg) translateX(50px) rotate(0deg);
  }

  to {
    transform: translateX(-50%) rotate(360deg) translateX(50px) rotate(-360deg);
  }
}

@keyframes elongate {
  from {
    transform: translateX(100px);
  }

  to {
    transform: translateX(-100px);
  }
}


.mobile {
  display: block;
}

.desktop {
  display: none;
}


@media (min-width: 1200px) {

  body{
    font-size: 18px;
    /* padding: 2.5% 0 0 2.5%; */
    overflow-y:hidden;
  }
  
  main {
    margin-top: 0px;
    flex-direction: row;
    align-items: flex-end;
  }

  model-viewer {
    width: 50%;
    padding:0%;
    min-height: 100vh;
    margin-bottom:0em;
  }

  aside{
    width: 50%;
    padding:15% 5% 15% 0;
    box-sizing: border-box;
    font-size:1.5em;
    height:100vh;
    max-width: 100%;
  }

  address{
    flex-direction: row;
    gap:3em;
  }

  header {
    z-index: 1000;
    justify-content: flex-end;
    padding:2em 2.5em;
  }

  .mobile {
    display: none;
  }

  .desktop {
    display: block;
  }

  h1{
    font-size: 2.8em;
  }
  h2{
    font-size:1.1em;
  }

}

@media (min-width: 1500px) {
  h1{
    font-size: 3.4em;
  }
}