@font-face {
  font-family: 'marionregular';
  src: url('../fonts/Marion.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

body {
  line-height: 30px;
  margin: 0;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

a {
  color: #000;
  text-decoration: none;
}

.top-bar {
  height: 50px;
  background-color: #FFF;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10000;
  box-shadow: 0 0 4px rgba(49, 55, 64, 0.8);
  display: flex;
}

.top-bar h2 {
  text-align: center;
  color: #BB894B;
  font-family: Helvetica;
  margin: auto;
  font-weight: lighter;
  font-size: 20px;
  float: right;
  line-height: 40px;
  margin-left: 10px;
}

.wrapper {
  overflow: auto;
  top: 50px;
  position: relative;
}

.container {
  width: 80%;
  height: 22cm;
  margin-left: 20%;
  overflow: auto;
  font-family: 'Alex Brush';
}

.box {
  width: 8.68cm;
  height: 19.8cm;
  border: 3pt solid #BB894B;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: relative;
  transition: all 0.3s ease;
}

.torre-zambra-container {
  height: 1130px;
}

.matrimonio-check {
  display: none;
}

form .matrimonio-label {
  background-color: #CCC;
  left: 50%;
  position: relative;
  transform: translatex(-50%);
  top: 10px;
  width: 90%;
  height: 50px;
  background-image: url(../img/sposi.svg);
  background-repeat: no-repeat;
  background-position: 10px;
}

.matrimonio-label p {
  line-height: 40px;
}

.matrimonio-check:checked+label {
  background-color: rgba(0, 0, 0, 0.3);
  padding-left: 25px;
  padding-right: 25px;
}

.matrimonio .box {
  background: url('../img/sposi.svg');
  background-size: 13.8cm;
  background-position: 3px 231px;
  background-repeat: no-repeat;
}

.top-content {
  margin: 0 auto;
  padding: 5px;
}

.top-content img {
  height: 40px;
}

.cut-top {
  display: none;
  float: left;
  height: 0.5cm;
  width: 0.3mm;
  background-color: #BB894B;
  top: 0;
}

.hide {
  display: none;
}

.box img {
  display: block;
  margin: 10px auto;
}

.box h1 {
  font-size: 23pt;
  font-weight: lighter;
  color: #BB894B;
  text-align: center;
  margin-bottom: 0.2cm;
  position: relative;
}

.box h2 {
  font-size: 25pt;
  font-weight: lighter;
  color: #BB894B;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
}

.box h3 {
  font-size: 15pt;
  font-weight: lighter;
  color: #444;
  text-align: center;
  margin-top: 0;
  margin-bottom: 10pt;
  position: relative;
}

.box h4 {
  font-size: 15pt;
  font-weight: lighter;
  font-family: 'marionregular';
  color: #BB894B;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
}

p {
  width: 100%;
  max-height: 10cm;
  text-align: center;
  color: #444;
  white-space: pre-wrap;
  padding: 0 0.5cm;
  box-sizing: border-box;
  font-size: 16pt;
}

.text {
  position: relative;
  margin-top: 0;
  margin-bottom: 5pt;
}

.vini p,
.vini .vini-sp {
  display: none;
  margin: 0;
  font-size: 15pt;
  line-height: 18pt;
}

.vini .cantina,
.vini .cantina-sp {
  border-bottom: 0.3pt solid #444;
  width: fit-content;
  margin: 2mm auto 2mm auto;
  padding: 0;
  line-height: 12pt;
}

.sp-title {
  border-bottom: 0.3pt solid #444;
  width: 25%;
  margin: 2mm auto 2mm auto !important;
  padding: 0;
  line-height: 12pt !important;
  display: block !important;
  text-align: center;
}

.spumanti p,
.vini .spumanti-sp {
  margin: 0;
}

.footer {
  font-size: 8pt;
  font-weight: lighter;
  font-family: 'marionregular';
  color: #444;
  line-height: 10pt;
  padding: 0;
  white-space: nowrap;
  position: absolute;
  bottom: 0;
}

.sidebar {
  background-color: #313640;
  width: 20%;
  float: left;
  margin-right: 1cm;
  position: fixed;
  left: 0;
  top: 0;
  height: calc(100% - 100px);
  overflow: auto;
  overflow-x: hidden;
  z-index: 9999;
  margin-top: 102px;
}

.sidebar-menu {
  width: 20%;
  background-color: #21252c;
  position: fixed;
  top: 50px;
  left: 0;
  z-index: 10000;
}

.sidebar-menu ul li {
  float: left;
  width: 20%;
  text-align: center;
  line-height: 50px;
}

.sidebar-menu ul li a {
  color: #FFF;
  font-family: Helvetica;
  font-size: 13px;
  display: block;
}

.sidebar label {
  font-family: Helvetica;
  color: #FFF;
  display: block;
  font-size: 13px;
}

.sidebar input[type="range"] {
  display: block;
}

.sidebar input[type="text"] {
  width: 98%;
  height: 20px;
  margin-bottom: 20px;
  border-radius: 5px;
  border: none;
}

.sidebar input[type="checkbox"] {
  margin-top: 10px;
}

.vini-input label,
.matrimonio-label {
  float: left;
  text-align: center;
  width: 100%;
  border-radius: 3px;
  padding: 5px 20px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  margin-bottom: 10px;
}

.vini-input label:hover,
.matrimonio-label:hover {
  background-color: #484f58;
  cursor: pointer;
}

label img {
  width: 30px;
  float: left;
}

label p {
  font-size: 13px;
  float: right;
  width: 60%;
  line-height: 95px;
  text-align: right;
  padding: 0;
  margin: 0;
  color: #FFF;
}

.check:checked+label {
  background-color: rgba(0, 0, 0, 0.3);
  padding-left: 25px;
  padding-right: 25px;
}

.check {
  display: none;
}

.vini-input p {
  color: #FFF;
  font-weight: lighter;
  font-family: Helvetica;
}

.cantina-input {
  padding: 20px 10px !important;
  box-sizing: border-box;
}

.cantina-input img {
  width: 80px;
  display: block;
}

.vini-input #label-mionetto img {
  width: 30px;
  float: left;
}

.vini-input #label-mionetto {
  padding: 5px 20px !important;
}

.vini-input #label-mionetto p {
  line-height: 95px;
}

.cantina-input p {
  width: 50%;
  line-height: 47px;
}

.sidebar textarea {
  height: 300px;
  width: 98%;
  margin-bottom: 20px;
  border-radius: 3px;
  background-color: #FFF;
  resize: none;
  outline: none;
}

.sidebar fieldset {
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid #CCC;
}

.sidebar .char-icons {
  color: #FFF;
  line-height: 2em;
  max-width: 132px;
  line-height: 40px;
  margin-bottom: -10px;
}

.sidebar input[type=text],
textarea {
  -webkit-transition: all 0.30s ease-in-out;
  -moz-transition: all 0.30s ease-in-out;
  -ms-transition: all 0.30s ease-in-out;
  -o-transition: all 0.30s ease-in-out;
  outline: none;
  padding: 3px 0px 3px 3px;
  margin: 5px 1px 20px 0px;
  border: 1px solid #DDDDDD;
}

.sidebar input[type=text]:focus {
  box-shadow: 0 0 6px rgba(187, 137, 75, 1);
  padding: 3px 0px 3px 3px;
  margin: 5px 1px 20px 0px;
  border: 1px solid rgba(187, 137, 75, 1);
}

.sidebar textarea:focus {
  box-shadow: 0 0 6px rgba(187, 137, 75, 1);
  padding: 3px 0px 3px 3px;
  margin: 5px 1px 20px 0px;
  border: 1px solid rgba(187, 137, 75, 1);
}

::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 3.5px;
}

::-webkit-scrollbar-thumb {
  background-color: #dfdfdf;
  border-radius: 5px;
}

.edit {
  width: 40px;
  height: 40px;
  background-color: #bb884b;
  border-radius: 50%;
  color: #FFF;
  position: absolute;
  right: 50px;
  top: 0;
}

.edit i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.active {
  border-bottom: 2px solid #bb884b;
}

.active-ondesktop {
  border-bottom: 2px solid #bb884b;
}

.fs-buttons {
  display: none;
}

.menu-close-btn {
  display: none;
}

.print-save {
  position: fixed;
  left: 21%;
  bottom: 20px;
  background-color: #bb884b;
  border: none;
  color: #FFF;
  width: 50px;
  height: 50px;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

.print-save:hover {
  transform: scale(1.2) rotate(360deg);
}

.vini .cantina-sp,
.vini .vini-sp,
.vini .spumanti-sp {
  display: block;
}

@media screen and (max-width:480px) {
  .sidebar {
    width: 100%;
    height: 177px;
    box-shadow: 0 0 5px 0px black;
    top: unset;
    bottom: -100%;
    margin-top: 0;
    transition: all 0.4s ease;
  }

  .open-menu .sidebar {
    bottom: 49px;
  }

  .sidebar label,
  .sidebar input,
  .sidebar-menu ul li a,
  .sidebar textarea {
    font-size: 16px;
  }

  .sidebar input[type="text"] {
    height: 25px;
  }

  .sidebar input[type="range"] {
    display: none;
  }

  .sidebar textarea {
    height: 20px;
    margin-bottom: 17px;
  }

  .sidebar textarea:focus {
    height: 115px;
  }

  .sidebar-menu {
    width: 100%;
    bottom: 0;
    top: unset;
  }

  .active-ondesktop {
    border-bottom: none;
  }

  .active {
    border: none;
    background-color: #bb884b;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5) inset;
  }

  .wrapper {
    top: 0;
  }

  .container {
    margin: 50px auto;
    overflow: unset;
  }

  .fs-buttons {
    display: block;
    width: 120px;
  }

  .fa-minus-square,
  .fa-plus-square {
    font-size: 40px;
    color: #FFF;
    padding: 0;
  }

  .char-icons {
    display: none;
  }

  .menu-close-btn {
    display: block;
    width: 34px;
    height: 34px;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(360deg);
    border-radius: 7px;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 9999;
  }

  .open-menu .menu-close-btn {
    bottom: 242px;
    transform: translateX(-50%) rotate(0deg);
  }

  .menu-close-btn img {
    width: 100%;
    display: block;
  }

  .print-save {
    display: none;
  }
}

.logo {
  cursor: pointer;
}

.logo-toggle-label {
  background-color: #21252c;
  width: 30px;
  height: 30px;
  display: flex !important;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
}

input[name="logo-toggle"]+.logo-toggle-label i {
  transition: all .2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  transform: scale(0);
}

input[name="logo-toggle"]:checked+.logo-toggle-label i {
  transform: scale(1);
}