/*
Theme Name: Skriba Main Theme
Author: Gianluca Tuscano
Author URI: https://skriba.it
Description: Custom theme di Skriba
Version: 3.3
*/

html {
    margin: 0;
    padding: 0;
    font-size: 18px;
    background-color: white;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    background-color: white;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-weight: 700;
}

a {
    color: #422918;
}

a:hover {
    color: #bb9275;
}



a:focus, a:hover {
    text-decoration: none;
}

h1 {
}

h2 {

}

h3 {

}

h5 {
  font-size: 1rem;
  margin-bottom: 10px;
  margin-top: 30px;
}

h6 {
  font-size: 0.8rem;
  text-transform: uppercase;
}

.page:not(.home) h4 {
    color: #424242;
    font-size: 1.4rem;
    font-family: 'Lato', sans-serif;
    margin-bottom: 10px;
    margin-top: 40px;
}

input {
    max-width: 100%;
    border: none;
    font-size: 1rem;
    font-family: 'Lato';
    padding: 8px;
    margin-top: 10px;
    border: 1px solid #424242;
    width: 100%;
    font-weight: 400;
    padding: 8px;
}

span.wpcf7-list-item {
    margin: 0;
}

textarea {
    width: 100%;
    border: none;
    font-size: 1rem;
    font-family: ;
    padding: 8px;
    margin-top: 10px;
    border: 1px solid #424242;
}

label {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    text-transform: lowercase;
    color: #706f6f;
}

div.wpcf7 {
    text-align: center;
}

label.accetta {
    font-family: 'Lato';
    font-weight: 400;
    color: white;
    font-size: 0.9rem;
}

label.accetta a {
    color: #004e71;
}

label.accetta a:hover {

}

input:focus,
textarea:focus {
    outline-offset: 0;
    outline: 0;
}

input[type=submit] {
    background-color: #422918;
    border-color: white;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    float: right;
    text-transform: uppercase;
    padding: 8px 15px;
    border-radius: 0;
    margin-top: 0;
    font-family: 'Lato', sans-serif;
}

.preloader {
    background-color: #f5f5f6;
    width: 100vw;
    height: 100vh;
    position: fixed;
    z-index: 1000000;
    top: 0;
    left: 0;
}

a:focus {
    outline: none;
}

a:hover {
    text-decoration: none;
}

.flex-baseline {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: baseline;
    -ms-flex-align: baseline;
    align-items: baseline;
}

.flex-end {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
}

.flex-center {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.flex-height {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  overflow: hidden;
}

.cover {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.contain {
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.evidenza {
    width: 100%;
    padding-top: 350px;
}

.clearfix {
    clear: both;
}

.no-padding {
    padding-left: 0;
    padding-right: 0;
}

.no-padding-left {
    padding-left: 0 !important;
}

.no-padding-right {
    padding-right: 0 !important;
}

.no-padding-top {
    padding-top: 0 !important;
}

.relative {
    position: relative;
}

/* Menu icon css */

#nav-icon1 {
  width: 35px;
  height: 25px;
  position: relative;
  margin-left: auto;
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
  cursor: pointer;
  top: 6px;
}

#nav-icon1 span {
  display: block;
  position: absolute;
  height: 4px;
  width: 100%;
  background: #424242;
  border-radius: 9px;
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
}

#nav-icon1 span:nth-child(1) {right: 20px;
  top: 0px;
}

#nav-icon1 span:nth-child(2) {
  top: 10px;
}

#nav-icon1 span:nth-child(3) {
  top: 20px;
}

#nav-icon1.open span:nth-child(1) {
  top: 10px;
  -webkit-transform: rotate(135deg);
  transform: rotate(135deg);
}

#nav-icon1.open span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

#nav-icon1.open span:nth-child(3) {
  top: 10px;
  -webkit-transform: rotate(-135deg);
  transform: rotate(-135deg);
}


/*-------------------*/

/* menu */

.language {
  background-color: #422918;
  height: 20px;
}

.main-menu {
  margin-top: 10px;
}

.main-menu a {
    color: #422918;
    font-size: 0.9rem;
    text-transform: lowercase;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    width: 100%;
    text-align: center;
}

.main-menu a:hover {
  text-decoration: underline;
}

.main-menu .current-menu-item a {
    color: #bb9275;
}

.menu li:not(:last-child) {
    margin-right: 0;
}

.menu {
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1;
}

.main-menu > li {
    float: left;
    width: 200px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.menu ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

/* header */

.top {
  background-color: white;
    position: fixed;
    width: 100%;
    height: 130px;
    z-index: 100;
    padding-top: 10px;
    padding-bottom: 20px;
}

.logo-header a {
  background-image: url(/img/svg/logo-cantondelgusto.svg);
  width: 100%;
  height: 100px;
  font-size: 0;
  background-size: contain;
  background-repeat: no-repeat;
}

.logo-top-head {
  width: 150px;
}

/* slider */

.slide {
  height: 500px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.slides {

}


.main {
  margin-top: 130px;
}


/* home */

#rib-effect:before, #rib-effect:after {
    position: absolute;
    bottom: -18px;
    border: solid 20px #bb9275;
    content: "";
}

#rib-effect:before {
    border-right-width: 60px;
    border-left-color: transparent;
    left: -62px;
}

#rib-effect:after {
    border-left-width: 60px;
    border-right-color: transparent;
    right: -62px;
}

#rib-effect {
    font-size: 24px;
    width: 440px;
    position: relative;
    background: #bb9275;
    color: #422918;
    text-align: center;
    box-shadow: 0px 5px 8px rgba(0,0,0,.3);
    -webkit-box-shadow: 0px 5px 8px rgba(0,0,0,.3);
    -moz-box-shadow: 0px 5px 8px rgba(0,0,0,.3);
    padding: 10px 30px;
    margin: 0 auto 75px;
    text-transform: uppercase;
    font-weight: 900;
}

#rib-effect #rib-text:after, #rib-text:before {
    position: absolute;
    border-style: solid;
    border-color: #422918 transparent;
    content: "";
    bottom: -18px;
    z-index: 1;
}

#rib-effect #rib-text:before {
    left: 0;
    border-width: 18px 0 0 18px;
}

#rib-effect #rib-text:after {
    right: 0;
    border-width: 18px 18px 0 0;
}

h2#rib-effect {
  margin-top: 80px;
  margin-bottom: 60px;
}

h1#rib-effect {
  margin-top: 80px;
  margin-bottom: 80px;
}

.frase-home {
  margin-bottom: 50px;
  text-align: center;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.prodotto {
  padding: 6px;
  border: 1px solid #422918;
  margin-bottom: 30px;
  max-width: 410px;
  margin-left: auto;
  margin-right: auto;
}

.prodotto-background {
   height: 210px;
   width: 100%;
   position: relative;
}

.prodotto-background .prodotto-name {
  display: none;
}

.prodotto-background:hover {
  background-color: rgba(255, 255, 255, 0.2);
  mix-blend-mode: multiply;
  background-blend-mode: overlay;
}

.prodotto-background:hover .prodotto-name {
  display: block;
  position: absolute;
  bottom: 0;
  background-color: rgba(187,146,117,.8);
  font-weight: 900;
  font-size: 1.3rem;
  text-transform: uppercase;
  color: white;
  width: 100%;
  height: 100px;
  text-align: center;
  padding: 33px 10px;
  opacity: 1;
}

.gastronomia {
  padding: 6px;
  border: 1px solid #422918;
  margin-bottom: 30px;
  max-width: 260px;
    margin-left: auto;
    margin-right: auto;
}

.gastronomia-background {
  height: 360px;
  width: 100%;
  position: relative;
}

.gastronomia-background .gastronomia-name {
  display: none;
}

.gastronomia-background:hover {
  background-color: rgba(255, 255, 255, 0.2);
  mix-blend-mode: multiply;
  background-blend-mode: overlay;
}

.gastronomia-background:hover .gastronomia-name {
  display: block;
  position: absolute;
  bottom: 0;
  background-color: rgba(187,146,117,.8);
  font-weight: 900;
  font-size: 1.3rem;
  text-transform: uppercase;
  color: white;
  width: 100%;
  height: 100px;
  text-align: center;
  padding: 40px 10px;
  opacity: 1;
}

.home .frase {
  background-image: url(https://cantondelgusto.it/wp-content/uploads/2020/11/02-sfondo-legno.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  height: 400px;
  margin-top: 80px;
  margin-bottom: 50px;
}

.home .frase .container {
  position: relative;
  height: 100%;
}

.home .frase .pane {
  background-image: url(https://cantondelgusto.it/wp-content/uploads/2020/08/Assorted-Bread.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: 350px;
  bottom: -50px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.home .frase p {
  font-weight: 700;
  font-size: 2.4rem;
  text-align: center;
  font-style: italic;
}

.home .gastro {
  margin-bottom: 50px;
}

.home .chisiamo {
  background-image: url(https://cantondelgusto.it/wp-content/uploads/2020/11/pattern.png);
  background-repeat: repeat;
  background-size: auto;
  padding-bottom: 40px;
  font-size: 1rem;
}

.home .chisiamo .cappello {
  width: 100%;
  height: 400px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* prodotti */

.page-cover {
  width: 100%;
  height: 280px;
}

.the-content span {
  margin-bottom: 50px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 400;
  color: #777;
}

.the-content {
  color: #422918;
  font-size: 1rem;
  -webkit-column-count: 2;
  -moz-column-count: 2;
  column-count: 2;
  margin-bottom: 80px;
}

.prodotti.main,
.gastronomi.main {
  margin-bottom: 40px;
}

/* footer */

.footer {
  background-color: #422918;
  padding-top: 20px;
  padding-bottom: 20px;
  color: white;
  font-size: 0.8rem;
}

.footer a {
  color: white;
  font-weight: 600;
}

.footer h6 {
  color: #bb9275;
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 10px;
  font-size: 0.7rem;
  font-weight: 600;
}

.footer-bottom a {
  color: #422918;
}

.logo-footer {
  height: 100%;
  width: 150px;
}

/* media queries incasinate */

@media only screen and (max-width: 991px) {

    .flex-height {
        display: block;
    }

    .menu-mobile .menu-contain > ul > li > a {
        padding: 15px 0;
        width: fit-content;
        margin: 0 auto;
    }

    .menu .sub-menu {
        left: auto;
        transform: none;
        z-index: 1000;
        width: 75%;
        margin: 0 auto;
        background-color: white;
    }

    .menu nav > ul > li {
        height: auto;
    }

    .menu ul {
        display: block;
        float: none;
    }

    .menu {
        transform: translateX(calc(280px));
        z-index: 99;
        height: auto;
        position: fixed;
        top: 0;
        padding-top: 130px;
        right: 0;
        width: 280px;
        height: 100%;
        background-color: white;
        transition: opacity 600ms cubic-bezier(0.23, 1, 0.32, 1);
    }

    .menu.menu-ham {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        transition: transform 0.6s cubic-bezier(0.755, 0.05, 0.855, 0.06);
    }

    .menu-contain .main-menu li,
    .menu-contain .main-menu .sub-menu li {
        display: block;
        width: 100%;
        text-align: center;
    }

    .menu-contain .main-menu .sub-menu {
        display: block;
    }

    .main-menu ul {
        position: relative;
    }
}

@media only screen and (max-width: 768px) {

  .top {
    padding-bottom: 10px;
  }

  .header-container {
    width: 100%;
  }

  .the-content {
    column-count: 1;
  }

  .slide {
    height: 320px;
  }
}
