/* CSS by Codex, Pavia (IT) - http://www.codexcoop.it - October 2016 */
*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}
html {
  font-family: serif;
  line-height: 1.15;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: 'Roboto Slab', serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.42857143;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #fff;
  background-color: #251b15;
  background-color: rgba(37, 27, 21, 0.75);
  background-image: url("../img/tavolo-bacco-w1440.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
@media (min-width: 1200px) {
  body {
    background-image: url("../img/column.png"), url("../img/tavolo-bacco-w2560.jpg");
    background-repeat: repeat-y, no-repeat;
    background-position: 0 0, center center;
    background-attachment: fixed, fixed;
    -webkit-background-size: auto, cover;
    -moz-background-size: auto, cover;
    -o-background-size: auto, cover;
    background-size: auto, cover;
  }
}
a {
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  background-color: transparent;
}
a:active,
a:hover {
  color: #999;
  outline-width: 0;
}
.news-item a {
  color: #000;
}
.news-item a:hover {
  color: #333;
}
img {
  border-style: none;
}
.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}
p {
  margin: 0 0 1.5em 0;
}
#social {
  font-size: 14px;
  margin: 3em 0;
}
address {
  margin: 0 0 2em 0;
  font-size: 14px;
  font-style: normal;
}
address div {
  margin-bottom: 1em;
}
address .icon {
  font-size: 18px;
  vertical-align: -2px;
}
.x-small {
  font-size: 12px;
  margin: 0 0 1em 0;
}
.hide {
  display: none !important;
}
@media (max-width: 1199px) {
  .hidden-sm {
    display: none !important;
  }
}
@media (min-width: 1200px) {
  .hidden-lg {
    display: none !important;
  }
}
#logo {
  display: block;
  width: 180px;
  height: 204px;
  margin: 0 auto;
}
#scroll-down {
  display: block;
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100px;
  margin: 0 auto 0 -50px;
  font-size: 32px;
  line-height: 32px;
}
.section {
  text-align: center;
}
.section-inner {
  position: relative;
  width: 287px;
  margin: 0 auto;
  padding: 50px 20px;
  background: #1c130c;
  background: rgba(28, 19, 12, 0.75);
}
#news .section-inner {
  padding: 20px;
  color: #000;
  background: #c3c1be;
  background: rgba(195, 193, 190, 0.8);
}
.news-heading {
  margin: 16px 0;
  position: relative;
  text-align: center;
  font-size: 16px;
  line-height: 40px;
}
.news-heading:after {
  content: "";
  position: relative;
  bottom: -1px;
  display: block;
  margin: 0 auto;
  width: 20px;
  height: 1px;
  background: none repeat scroll 0 0 #000;
}
.news-title {
  margin: 21px 0;
  font-size: 21px;
  line-height: 1.1;
  font-weight: 400;
}
#news {
  margin-bottom: 40px;
}
.news-item:after {
  content: "";
  position: relative;
  bottom: -1px;
  display: block;
  margin: 0 auto;
  width: 20px;
  height: 1px;
  background: none repeat scroll 0 0 #000;
}
#menu {
  margin: 0;
  line-height: 48px;
}
#menu:before, #menu:after {
  content: "";
  position: relative;
  bottom: -1px;
  display: block;
  margin: 0 auto;
  width: 20px;
  height: 1px;
  background: none repeat scroll 0 0 #fff;
}
#menu i {
  margin-left: 6px;
  font-size: 18px;
}
#social-icons {
  display: block;
  margin: 7px 0 0;
}
#social-icons .icon {
  font-size: 21px;
  line-height: 34px;
}
#social-icons i.icon-tripadvisor {
  margin-right: 8px;
}
#vat {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
#vat-visible-lg {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  margin-left: 60px;
  width: 180px;
}
#vat a, #vat-visible-lg a {
  cursor: pointer;
}
#company-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 10px;
  background: #38332f;
}
#company-info-visible-lg {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 280px;
  margin: 0;
  padding: 10px 10px 10px 60px;
  background: #38332f;
}
button.close {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  font-size: 21px;
  line-height: 21px;
  padding: 4px 6px;
  font-family: Arial, sans-serif;
  font-weight: 300;
  color: #666;
  cursor: pointer;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
}

/* Small devices (tablets, 768px and up)
------------------------------------------------------------------ */
@media (min-width: 768px) {
  #logo {
    width: 247px;
    height: 279px;
  }
  #scroll-down {
    font-size: 30px;
    line-height: 30px;
  }
  /* ~ w 549px x h 533px */
  .section-inner {
    width: 549px;
    padding: 80px 100px;
  }
}

/* Large devices (large desktops, 1200px and up)
------------------------------------------------------------------ */
@media (min-width: 1200px) {
  body {
    font-size: 14px;
  }
  #social {
    font-size: 12px;
  }
  address {
    font-size: 12px;
  }
  address div {
    margin-bottom: 0;
  }
  #menu {
    font-size: 12px;
  }
  .x-small {
    font-size: 10px;
  }
  #fullpage {
    width: 280px;
  }
  #logo {
    margin: 0;
    width: 161px;
    height: 182px;
  }
  #scroll-down {
    display: none;
  }
  .section {
    text-align: left;
  }
  .section-inner {
    width: 280px;
    margin: 0;
    padding: 40px 20px 40px 60px;
    background: inherit;
  }
  #about .section-inner {
    padding: 0 20px 0 60px;
  }
  #social-icons {
    display: inline;
  }
  #vat {
    display: none !important;
  }
  #vat-visible-lg {
    display: block !important;
  }
  body {
    position: relative;
  }
  #drawer-border {
    z-index: 999;
    position: fixed;
    top: 100px;
    bottom: 100px;
    left: 280px;
    width: 4px;
    background: #fff;
  }
  #drawer {
    position: fixed;
    top: 100px;
    bottom: 100px;
    left: 280px;
    right: 960px;
    opacity: 0;
    margin: 0 auto;
    padding: 0 50px;
    color: #000;
    background: #c3c1be;
    background: rgba(195, 193, 190, 0.8);
  }
  #drawer-opener {
    z-index: 999;
    position: fixed;
    top: 100px;
    bottom: 100px;
    left: 280px;
    width: 50px;
  }
  #drawer-opener i {
    position: absolute;
    display: block;
    width: 50px;
    height: 50px;
    top: 50%;
    margin-top: -25px;
    text-align: center;
    font-size: 32px;
    line-height: 50px;
  }
  #drawer-closer {
    z-index: 999;
    position: fixed;
    top: 100px;
    bottom: 100px;
    right: 25px;
    width: 50px;
  }
  #drawer-closer > a {
    display: none;
  }
  #drawer-closer i {
    position: absolute;
    display: block;
    width: 50px;
    height: 50px;
    top: 50%;
    margin-top: -25px;
    text-align: center;
    font-size: 32px;
    line-height: 50px;
  }
  .news-heading {
    margin: 64px 0;
  }
/* NB: in caso di contenuti "lunghi", impostare overflow-y su .news-item e/o drawer a tutta finestra */
/*
  .news-item {
    max-height: 420px;
    overflow-y: scroll;
  }
*/
}
@media (max-height: 800px) {
  #vat-visible-lg {
    position: static;
  }
}

/* #scroll-down animation */
/* Riferimento: http://codepen.io/designermukesh/pen/azWJOB/ */
#scroll-down {
  animation: bounce 2s infinite;
  -webkit-animation: bounce 2s infinite;
  -moz-animation: bounce 2s infinite;
  -o-animation: bounce 2s infinite;
}
@-webkit-keyframes bounce {
  0%, 50%, 100% {-webkit-transform: translateY(0);}
  50% {-webkit-transform: translateY(-15px);}
}
@-moz-keyframes bounce {
  0%, 50%, 100% {-moz-transform: translateY(0);}
  50% {-moz-transform: translateY(-15px);}
}
@-o-keyframes bounce {
  0%, 50%, 100% {-o-transform: translateY(0);}
  50% {-o-transform: translateY(-15px);}
}
@keyframes bounce {
  0%, 50%, 100% {transform: translateY(0);}
  50% {transform: translateY(-15px);}
}

#drawer-opener i, #drawer-closer i {
  animation: bounce_x 2s infinite;
  -webkit-animation: bounce_x 2s infinite;
  -moz-animation: bounce_x 2s infinite;
  -o-animation: bounce_x 2s infinite;
}
@-webkit-keyframes bounce_x {
  0%, 50%, 100% {-webkit-transform: translateX(0);}
  50% {-webkit-transform: translateX(10px);}
}
@-moz-keyframes bounce_x {
  0%, 50%, 100% {-moz-transform: translateX(0);}
  50% {-moz-transform: translateX(10px);}
}
@-o-keyframes bounce_x {
  0%, 50%, 100% {-o-transform: translateX(0);}
  50% {-o-transform: translateX(10px);}
}
@keyframes bounce_x {
  0%, 50%, 100% {transform: translateX(0);}
  50% {transform: translateX(10px);}
}

