/*
Theme Name: Accolti Con Gusto Theme
Author: Azienda agrigola Campo Dei Fiori
Description: Custom Theme for Accolti Con Gusto website
Tags: blog, food, outdoor activity
Version: 1.0
Requires at least: 5.0
Tested up to: 5.4
Requires PHP: 7.0
Text Domain: acg
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.
*/

body {
  margin: 0;
  padding: 0;
  background: url(img/pattern.png), #F8F8F8;      
  overflow-x: hidden;
}

header {
  background: url(img/pattern.png), #F8F8F8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin: 1rem;
  text-align: center;
  text-transform: uppercase;
}

footer {  
  background-color: white;
  z-index: 1;
}

footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

div.banner {
  grid-column: span 2;
  padding: 0.5rem 5rem;
}

div.banner img {
  max-width: 100%;
}

p.banner-caption {
  text-align: center;
  font-family: 'Quattrocento Sans';
}

div#main-content {
  max-width: 1200px;
  text-align: center;
  margin:auto;
}

div#main-content h1 {
  font-family: 'Quattrocento Sans', sans-serif;  
  text-transform: uppercase;
  color: #434242;
}

div.burger {
  position: absolute;
  top: 2rem;
  left: 1.5rem;
  min-width: 21px;
  height: 21px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  z-index: 2;
}

div.burger span {
  opacity: 0;
  display: flex;
  border: 1px solid #0000008f;
  width: 100%;
  height: 1px;
  border-radius: 1rem;
}

div#modal-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

div#modal-header h1 {
  font-size: 1.5rem;
}

button#close-modal svg {
  cursor: pointer;
  width: 1.6rem;
}

button#close-modal svg:hover {
  stroke: #6C8474 !important;
  opacity: 0.75;
}

div#wrapper {
  display: flex;
  flex-direction: column;
  gap: 3rem;  
  position: relative;
  z-index: 1;
  min-height: 100vh;  
}

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

ul.navbar a, li, ul#mobile a, li {    
  list-style-type: none;
  text-decoration: none;
  font-family: 'Quattrocento';  
  font-size: 1.2rem;
  text-transform: uppercase;
  color: black;  
}
/*
ul.navbar li {
  cursor: not-allowed;
}

ul.navbar a {
  pointer-events: none;
} 
*/
aside#resmenu { 
  display:none;
}

aside#resmenu.show {
  transform: translateX(0%);
  transition: .2s ease-in-out;
}

ul#mobile {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin-top: 3rem;
  text-align: left;
}

ul#mobile li {  
  margin: 1rem;
}

ul.navbar a:hover{
  color: #6C8474;
}

ul.navbar{

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  list-style-type: none;
  gap: 3rem;
  margin: 0;
  padding: 2rem 0;
}

div#logo img{
  width: 170px;
  height: auto;
  mix-blend-mode: darken;
}

div.fake-title{
  font-family: 'Quattrocento', serif;
  font-size: 15px;
  font-weight: 400;
  text-align: left;     
}

div.fake-title h2{  
  margin: 0;
}

div.fake-content{
  position: relative;  
  max-width: 960px;
  border-radius: 8px;
  overflow-y: hidden;
  overflow-x: hidden;
  margin: auto;
  padding: 1rem;
  /* background-color: #D9D9D9; */
}

/*slider*/

div#slider{
  width: 100%;
  height: 530px;
  clip-path: url(#clip-leaf);
}

div#slider img#slide-1 {
  width: 100%;
}

div#slider img#slide-2, img#slide-3, img#slide-4 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

div#slider .slide {
  opacity: 0;
  transition: .5s ease-in-out;
}

div#slider .visible{
  opacity: 1;
}

div.sub-heading{
  display: flex;  
  flex-direction: column;
  align-items: center;    
  width: 100%;  
}
/* linea verde 

div.sub-heading:before{
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: #6C8474;
  opacity: 0.2;  
} 


div.app:after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: #6C8474;
  opacity: 0.2;
}

div.sub-heading:after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: #6C8474;
  opacity: 0.2;
} 

*/

div.sub-heading h4 {
  font-family: 'Quattrocento', serif;
  font-size: 16px;
  font-weight: normal;
  color: #8b8b8b;
  text-transform: uppercase; 
  margin-bottom: 1rem;
}

div.icons {
  display: flex;
  justify-content: flex-start;
  padding-bottom: 1.5rem;
  gap: 1rem;
  flex-direction: row;
}

div.icons img {
  width: 36px;
  height: auto; 
  opacity: .75;
  transition: 0.5s ease-in-out;   
}

div.icons img:hover {
  opacity: 100;  
}

div.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-left: 2rem;
  padding-bottom: 2rem;
}

div.app h5 {
  text-transform: uppercase;
  font-family: 'Quattrocento';
  font-size: 16px;
  font-weight: 400;
  color: #8b8b8b;
  margin-bottom: 1rem;
}

div.download {
  display: flex;
  gap: 2rem;
}

footer button {
  cursor: pointer;
  border: none;
  padding: unset;
  background: transparent;
}

footer button img {
  width: 10rem;
  opacity: .75;
  transition: 0.5s ease-in-out; 
}

footer button img:hover {
  opacity: 1;
}

@keyframes showAnim {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0px);
    opacity: 1;
  }
}

@keyframes showAnim2 {
  from {
    transform: translate(-50%, 200%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

div#wip{
  /* display: flex; */
  display: none; 
  align-items: center;
  justify-content: center;
  width: 250px; 
  border-radius: 16px;
  box-shadow: 0px 8px 16px hsl(138deg 51% 16% / 3%);
  background-color: #FFFFFF;  
  color: black;  
  font-size: 20px;    
  position: fixed;
  padding: 1.5rem 0rem;
  top: 2rem;
  right: 2rem;
  animation-name: showAnim;
  animation-duration: .3s;
  transition: .3s ease-in-out;  
  z-index: 20;
}

div#wip p {    
  font-family: 'Quattrocento Sans', sans-serif;
  margin: 0;
}

div#wip img.x {
  border-radius: 100%;  
  opacity: .5;
  width: 24px;
  height: auto;
}

div#wip img.x:hover{  
  opacity: 0.75;
  filter: invert(50%) sepia(13%) saturate(451%) hue-rotate(87deg) brightness(96%) contrast(93%);
}

div#wip img.triangle {
  margin-right: 16px;  
  height: 40px;
  width: auto;
}  

button#close {
  cursor: pointer;
  position: absolute; 
  border-radius: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  outline: none;
  border: 0;
  top: -.5rem;
  left: -.5rem;  
}

div#wip.hide {
  transform: translateY(-20px);
  opacity: 0;    
  pointer-events: none;
  animation: none !important;
}

img.bg1 {
  position: fixed;
  bottom: -12rem;
  left: -8rem;
  width: 38%;
  height: auto;
  opacity: 0.3;
}

img.bg1-modal {
  position: fixed;
  bottom: -2rem;
  left: -2rem;
  width: 38%;
  height: auto;
  opacity: 0.1;
}

img.bg2 {
  position: fixed;
  top: -11rem;
  right: -11rem;
  width: 40%;
  height: auto;
  opacity: 0.3;
}

img.bg3 {
  display: none;
}

#center-leaf {
  position: absolute;
  width: 0;
  height: 0;
}

div#overlay {
  display: none;
}

div.modal, div.modal-content, div.modal-overlay {
  display: none;
}

div.modal.show {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
}

div.modal-overlay {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  background-color: #000000e3;
  z-index: 999;
}

div.modal-content {  
  display: flex;
  flex-direction: column;  
  text-align: left;
  font-size: large;
  padding: 1.2rem;  
  line-height: 1.2;
  width: 80%;
  max-width: 560px;  
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  z-index: 1000;
  border-radius: 8px;
  overflow-y: hidden; 
}

div.modal-content p {  
  margin: 0;
  font-family: 'Quattrocento';
}

div.modal-content article {  
  max-height: 300px;
  overflow: auto;
}

button#close-modal {     
  border-radius: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  outline: none;
  background: transparent;
  border: 0;  
}

/* cards */

div#card-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr [col-start]);
  grid-template-rows: repeat(2, auto);
  align-items: center;
  text-align: left;
  justify-content: center;
  max-width: 1200px;
  margin: auto;  
  padding: 1rem;
}

div.card {
  width: 100%;
  font-family: 'Quattrocento'; 
  z-index: 1;  
  padding: 5px 15px;
  box-sizing: border-box;
  border-bottom: 1px solid #6c847459;
  overflow: hidden;
  gap: 1rem;
}

div.card img{
  width: 70px;
}

div.card-hover {
  display: flex;
  align-items: center;
  transition: .3s ease-in-out;
  transform-origin: left;
  gap: 1rem;
}

div.card-hover:hover {
  transform: scale(1.04);  
} 

div#card1 {
  grid-area: 1 / 1 / 1 / 3;
  border-right: 1px solid #6c847459;
}

div#card2 {
  grid-area: 1 / 3 / 1 / 5;
  border-right: 1px solid #6c847459;
}

div#card3 {
  grid-area: 1 / 5 / 1 / 7;
}

div#card4 {
  grid-area: 2 / 1 / 2 / 4;
  border-right: 1px solid #6c847459;
  border-bottom: none;
}

div#card5 {
  grid-area: 2 / 4 / 2 / 7;
  border-bottom: none;
}

/*mobile*/
@media (max-width: 320px) {
  div#slider {
    height:185px !important;
  }
}

@media (max-width: 375px) {
  div#slider {
    height: 230px;
  }
}

@media (min-width: 376px) and (max-width: 500px) {
  div#slider {
    height: 265px;
  }
}

@media (min-width: 501px) and (max-width: 600px) {
  div#slider {
    height: 320px;
  }
}

@media (min-width: 601px) and (max-width: 720px) {
  div#slider {
    height: 410px;
  }
}


@media (max-width: 414px) {
  div#wrapper{
    overflow-x: hidden;
  }
  
  div#slider {
    position: relative;
  }
  
  div#slider img {
    transform: scale(1.3) rotate(36deg);
  }
  
  div.fake-content{
    transform: rotate(323deg);
  }

  div.download {
    flex-direction: column;
    gap: 1rem;
  }
}

/*cards*/

@media (max-width: 500px) {    
  div#card-container {
    grid-template-columns: 1fr;
  }

  div.card {
    grid-area: unset !important;
    border-right: none !important;
  }

  div#card1 {
    
    border-right: none;
  }
  
  div#card2 {
    
    border-right: none;
  }

  div#card4 {    
    border-right: none;
    border-bottom: 1px solid #6c847459;
  }
}

@media (min-width: 500px) and (max-width: 720px) {
  div#card1 {
    grid-area: 1 / 1 / 1 / 4;
    border-right: 1px solid #6c847459;
  }

  div#card2 {   
    grid-area: 1 / 4 / 1 / 7;
    border-right: none;
  }

  div#card3 {
    grid-area: 2 / 1 / 2 / 4;
    border-right: 1px solid #6c847459;
  }

  div#card4 {    
    grid-area: 2 / 4 / 2 / 7;
    border-right: none;
    border-bottom: 1px solid #6c847459;
  }
  
  div#card5 {
    grid-area: 3 / 1 / 3 / 7;
  }
}

@media (max-width: 720px) {
  ul.navbar{
    display: none;
  } 
 
  div#wip.hide {
    transform: translate(-50%, 100%);
    opacity: 0;
  }

  div#overlay.popup {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    top: 0;
    right: 0;
    background-color: #000000e3;
    z-index: 9;
  }

  div#overlay2 {
    /* display: block; */
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #000000e3;
    z-index: 2;
  }

  div#overlay2.popout{
    display: none;
  }

  div#wip {
    flex-direction: column;
    justify-content: space-evenly;
    padding: 0;
    width: 214px;
    height: 190px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-name: showAnim2;
  }

  div#wip img.triangle {
    height: 70px;
    margin: 0;
  }

  div.fake-title{
    text-align: center;
  }

  div.burger span {
    pointer-events: none;
    opacity: 1;  
  }

  svg#info {
    cursor: pointer; 
    position: absolute;
    width: 1.5rem;
    z-index: 20;
    right: 1.5rem !important;
    top: 2rem;
    fill: #0000008f;
  }

  aside#resmenu{ 
    display:block;
    background-color: #FFFFFF;
    width: 50%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;  
    z-index: 10;
    transform: translateX(-100%);
    transition: .2s ease-in-out;
  }

  img.bg1 {
    display: block;
    position: fixed;
    bottom: -1rem;
    left: -4.5rem;
    transform: rotate(25deg);
    width: 50%;
    height: auto;
    opacity: 0.2;
  }
  
  img.bg2 {
    position: fixed;
    top: -3rem;
    right: -3rem;
    width: 40%;
    height: auto;
    opacity: 0.3;
  }
  
}

@media (min-width: 913px){  
  svg#info {
    cursor: pointer; 
    position: relative;
    width: 1.5rem;
    z-index: 20;
    left: 1rem;
    top: 0;
    fill: #0000008f;
  }
}

@media (min-width: 721px) and (max-width: 912px){
  svg#info {
    cursor: pointer; 
    position: absolute;
    width: 1.5rem;
    z-index: 20;
    left: auto;
    right: 1rem;
    top: 33px;
    fill: #0000008f;
}
}

@media (min-width: 721px) and (max-width: 1500px){
  img.bg1 {
   position: fixed;
   bottom: -7%;
   left: -10%;
   width: 41%;
   height: auto;
   opacity: 0.1;
}

  img.bg2 {
    position: fixed;
    top: -4%;
    right: -8%;
    width: 30%;
    height: auto;
    opacity: 0.1;
}

div#wip {
  animation-name: showAnim;
}

}

@media (min-width: 721px) and (max-width: 920px) {
  div#slider {
    height: 465px;
  }
}

@media (orientation:landscape) and (max-width: 915px){
  div#slider {    
    transform: scale(0.7);
  }
}

@media (max-width: 500px) {
  div#slider {
    height: 230px;
  }
}

@media (max-width: 920px) {
  footer .container {
    grid-template-columns: 1fr; 
  }

  div.app {
    padding-left: unset;
    padding-bottom: unset;
  }

  div.sub-heading {
    padding-left: unset;
  }

  div.banner {
    grid-column: span 1; 
  }

  div.banner img {
    width: 100%; 
  }

  div.app {
    display: flex;
    flex-direction: column;
    justify-content: unset;
    align-items: center;
    padding-left: unset; 
    padding-bottom: unset;
    margin-bottom: 1rem;
  }

  div.app h5 {
    margin-bottom: 1rem;
  }

  div.sub-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: unset;
    padding-left: unset;
    width: 100%;
    gap: unset; 
  }

  div.sub-heading h4 {
    margin-bottom: 1rem;
  }
}