/*
Theme Name: Tema One-Page
Theme URI: 
Author: Diletta
Author URI: 
Description: Our default theme for 2020 is designed to take full advantage of the flexibility of the block editor. Organizations and businesses have the ability to create dynamic landing pages with endless layouts using the group and column blocks. The centered content column and fine-tuned typography also makes it perfect for traditional blogs. Complete editor styles give you a good idea of what your content will look like, even before you publish. You can give your site a personal touch by changing the background colors and the accent color in the Customizer. The colors of all elements on your site are automatically calculated based on the colors you pick, ensuring a high, accessible color contrast for your visitors.
Tags: blog, one-column, custom-background, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks, accessibility-ready
Version: 1.3
Requires at least: 5.0
Tested up to: 5.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: onetheme
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/*STYLE GUIDELINES*/

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {background-color: #282828; font-family: 'Montserrat', sans-serif;}

h1, h2, h3, h4, h5, h6, p, li {color: #f2f2f2}

h1{font-size: 1.6rem; font-family: 'Lato', sans-serif; font-size: 3.3rem; line-height: 3.5rem; font-weight: 800; padding-bottom: 2.5rem;}
h2 {font-size: 1.8rem; text-transform: uppercase;}
h3{font-size: 1.3rem; line-height:1.7rem;}
p{font-size: 1.1rem; line-height:2.3rem; font-weight: 400;}
h4{font-size: 1.5rem; line-height: 1.3rem; font-weight: 700; color: #f2f2f2; margin-top: 1.5rem;}

.med-text {font-size: 1.7rem}
.normale-text {font-size: 1.5rem}
.small-text {font-size: 1.1rem}

a {text-decoration-line: none; font-weight: 700; color:#f2f2f2;}
a:hover{color: #DBAD39; transition: .5s ease;}

li {list-style: none; font-size: 1.1rem; line-height: 2.3rem;}

button {border: none; margin: 2rem 0; cursor: pointer; font-family: 'Montserrat', sans-serif;}

.btn-primary {
  text-transform: uppercase;
  font-weight: 700;
  padding: 1rem 1.8rem; 
  border-radius: .6rem;
  font-size: 1rem;
  background: #b08415; 
  display: inline-block; 
  color: #f2f2f2;
  text-align: center;
}

.btn-primary:hover {
  color: #f2f2f2;
  transition:.5s ease;
  background: #DBAD39;
}

.btn-secondary {
  text-transform: uppercase;
  font-weight: 700;
  padding: 1rem 1.8rem; 
  border-radius: .6rem;
  font-size: 1rem;
  display: inline-block; 
  background: #181818;
  color: #f2f2f2;
  text-align: center;
}

.btn-secondary:hover {background: #282828; color: #DBAD39;}

.divider {
  background-color: #282828;
  width: 100%;
  height: 20px;
}

span {color: rgb(176, 132, 21)}

.img {height: auto;}
.img-res {width: 100%; height: auto;}

/*HELPERS*/

.mt-1 {margin-top: 1rem;}
.mt-2 {margin-top: 2rem;}
.bd-6 {border-radius: .6rem}
.bx-sh {box-shadow: 0 0 2rem rgb(0, 0, 0);}
.bg-black {background-color: #282828}
.bg-white {background-color: #f2f2f2;}
.bold {font-weight: 700}
.text-black {color: #181818}

/*LAYOUT*/

.container, article {padding: 3rem 3rem;}

.container {max-width: 1200px; margin: 0 auto;}

.single .hero {display: none;}

.page .container {max-width: 1200px;}

.single .container, .hero {min-height: 100vh; padding: 10rem 7% 2rem;}

/*CRM TOOLS*/

.klaviyo-form span,
.klaviyo-form p {color: #181818; line-height: 1.2rem;}
.klaviyo-form button {font-weight: 800 !important;}

.wa-link{
  display: inline-block; 
  position: fixed; 
  bottom: 30px; 
  right: 50px;
  color: #f2f2f2;
  text-shadow: 0 0 2rem rgb(255, 255, 255);
  z-index: 9999;
}

.wa-link i {font-size: 3.5rem;}

.wa-link::before {
  content: "Come posso aiutarti?"; 
  display: block; 
  position: absolute; 
  left: -230px; 
  top: 50%; 
  transform: translateY(-50%); 
  padding: .6rem 1.3rem; 
  background: #b08415;
  color: #f2f2f2;
  border-radius: .6rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}

.wa-link:hover::before {opacity: 1; transform: translateY(-50%) translateX(-10px);}

/*HEADER*/

header {
  z-index: 999;
  position: fixed;
  top: 30;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f2f2f2;
  box-shadow: 0 .3rem 1.5rem rgb(0 0 0 / 20%);
  padding: .5rem 2rem;
}

header .logo {min-width: 200px; width: 200px; padding: 1 0 1rem;}

header .logo img {width: 100%;}

header .menu-item a {
  margin: 1.8rem;
  font-weight: 700;
  color: #181818;
  line-height: 4.7rem;
  font-size: 1rem;
  text-transform: uppercase;
}

header .menu-item a:hover {color: #b08415; transition: all .5s ease-in-out;}

header .menu-item a.active {color: #b08415; transition: .5s ease-in;}

header .navigation{
  position: relative;
  line-height: 4.6rem;
}

header .navigation .menu {
  position: relative;
  display: flex;
  justify-content: center;
  list-style: none;
  user-select: none;
}

.menu-btn {display: none;}

.close-btn {display: none;}

/*=============== DROPDOWN ===============*/

header .menu-item .sub-menu{
  position: absolute;
  background: #f2f2f2;
  top: 74px;
  line-height: 3.1rem;
  list-style: none;
  border-radius: 0 0 8px 8px;
  pointer-events: none;
  transform: translateY(20px);
  opacity: 0;
  transition: 0.3s;
  transition-property: transform, opacity;
}

header .menu-item:hover .sub-menu{
  pointer-events: all;
  transform: translateY(0);
  opacity: 1;
}

header .menu-item .sub-menu .sub-item{
  position: relative;
  padding: .4rem 0;
  cursor: pointer;
  box-shadow: inset 0px -30px 5px -30px rgba(255, 255, 255, 0.2);
}

header .menu-item .sub-menu .sub-item a{padding: .9rem 1.8rem; text-transform: uppercase;}


header .menu-item .sub-menu .sub-item:last-child:hover{border-radius: 0 0 8px 8px;}


/*HERO*/

.hero {display: flex; justify-content: center; align-items: center;}

/*FOOTER*/

.footer-nav {
  background: #181818;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1.5rem 3rem 0;
}

.footer-navigation .menu{
  display: flex;
  justify-content: center;
  padding: 1.8rem 0;
  gap: 0 1rem;
  list-style: none;
  user-select: none;
}

.footer-navigation .menu-item a {font-size: .9rem; font-weight: 700;}

.footer-nav .sub-menu {display: none;}

.footer-logo {min-width: 200px; width: 200px; padding: 1 0 1rem;}

.footer-logo img {width: 100%;}

.footer-content {
  background: #181818;
  display: flex;
  justify-content: space-between;
  align-items:center;
  padding: 1.5rem 3.1rem;
}

.footer-text p {font-size: .9rem;}

.footer-content h4 {margin-bottom: .5rem; margin-top: 0;}

.footer-contact a, .footer-links a {line-height: 2rem; font-size: .9rem;}

.footer-iconTop {
  padding: .1rem .4rem;
  width: 60%;
  background: #f2f2f2;
  border-radius: .6rem;
  margin: .3rem 0 0;
  display: flex;
  justify-content: space-between;
}

.footer-iconTop a {
  font-size: 1.6rem; 
  color: #181818;
  transition: .5s ease;
}

.footer-iconTop a:hover {color: #b08415}

.footer-site {height: 130px; display: flex; justify-content: right; align-items: flex-end;}

.footer-site a i {font-size: 1.5rem;}

footer {margin: 1.1rem 0;}

footer p {text-align: center; font-size: .8rem;}

@media (max-width: 1281px){

  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  header .menu-item a {margin: .8rem;}
}

@media (max-width: 1028px) {

  .divider {height: 10px;}
  header {display: flex; align-items: center; flex-wrap: wrap;}
  .footer-navigation .menu {padding-bottom: 0;}
  .footer-content {padding: 0 3.1rem;}
}
	
@media screen and (min-height: 1000px) {.btn-primary {padding: 1rem 1rem; font-size: 1.3rem;}}

@media (max-width: 927px) {
  header {justify-content: center;}
  header .menu-item a {line-height: 3rem;}
}
	
@media (max-width: 769px) {
  h1 {font-size: 1.8rem ;}
  h2 {font-size: 1.5rem;}
  h3 {font-size: 1.2rem;}
  p {font-size: 1.1rem; line-height: 2rem;}
  li {line-height: 2rem;}
  .wa-link::before {display: none;}

  header .navigation .menu{
    position: fixed;
    display: block;
    background: #f2f2f2;
    min-width: 300px;
    height: 100vh;
    top: 0;
    right: -100%;
    padding: 5.6rem 3.1rem;
    visibility: hidden;
    overflow-y: auto;
    transition: 0.5s;
    transition-property: right, visibility;
  }

  header .navigation .menu.active{right: 0; visibility: visible;}

  header .menu-item {position: relative; font-size: 1rem;}

  header .menu-item a {line-height: 3rem;}

  header .menu-item .sub-menu{
    opacity: 1;
    position: relative;
    top: 0;
    transform: translateX(10px);
    border-radius: .6rem;
    overflow: hidden;
    display: none;
  }

  header .menu-item:hover .sub-menu{transform: translateX(10px);}

  header .menu-item .sub-menu .sub-item{
    box-shadow: none;
    font-size: 1rem;
    line-height: 1.8rem;
    padding: 0.3rem 0.3rem;
  }

  header .menu-item .sub-menu .sub-item a {padding: 0.2rem;}

  .navigation .menu .close-btn{
    color: #282828; 
    font-size: 2rem;
    z-index: 1000;
    position: absolute;
    background-position: center;
    top: 0;
    left: 250px;
    margin: 3.1rem 0;
    cursor: pointer;}

  .menu-btn{
    color:#282828;
    margin-left: auto;
    font-size: 2rem;
    background-position: center;
    cursor: pointer;
    display: block;}
}

  .footer-navigation .menu{
    display: flex;
    justify-content:flex-start;
    list-style: none;
    user-select: none;
    flex-wrap: wrap;
  }
  .footer-contact {margin: 2rem 0;}
  footer {padding: 0 1.8rem}
  footer p {line-height: 1.5rem;}


@media (max-width: 540px) {
  .wa-link{display: none;}
  header {padding: 1rem;}
  .navigation .menu .close-btn {font-size: 1.8rem;}
  .menu-btn{font-size: 1.8rem;}
  footer {padding: 0 1.5rem}
}

@media (max-width: 432px) {
  p {font-size: 1rem;}
  header .logo {min-width: 100px; width: 150px;}
  header .menu-item {font-size: 1rem; line-height: 1.2rem;}
  .footer-logo {min-width: 100px; width: 150px;}
  .footer-content h4 {font-size: 1.3rem;}
  footer {padding: 0 1rem}
}

@media (max-width: 380px) {html {font-size: 95%;} footer {padding: .4rem;}}

@media (max-width: 331px) {
	html {font-size: 90%;}
	.btn-primary {font-size: 1rem;}
	header .logo {width: 130px;}
	.footer-logo {width: 130px;}
}
