/*
Theme Name: Gecava guide ITA
Author: CarafaStudio
Description: Gecava Guide in italiano v2
Version: 1.0
*/

/* Suites Montemare by CarafaStudio */

/* Fonts */

@font-face {
  font-family: futura-pt, sans-serif;
  font-weight: 400;
  font-style: normal;
}

@font-face{
  font-family: futura-pt, sans-serif;
  font-weight: 600;
  font-style: normal;
}

/* Colors */
:root{
  --blue: #1779F5;
  --gold: #C7A762;
  --background: #E3E4E8;
  --menu: #fff;
  --highlight: #fff;
  --textColor: #000;
  --swiper-navigation-size: 34px !important;
}

@media (prefers-color-scheme: dark) {
  :root{
    --background: #434655;
    --menu: #5A576C;
    --highlight: #868FBB;
    --textColor: #fff;
  }
}

html{
  font-family: futura-pt;
  font-weight: 400;
  letter-spacing: 1px;
  scroll-behavior: smooth;
  margin: 0;
  background: var(--background);
  overflow-x: hidden;
}

body{
  color: var(--textColor);
  font-size: 14px;
  margin: 0;
  transition: 1s;
  overflow-x: hidden;
}

@media only screen and (min-width: 1080px){
  body{
    padding: 0 120px 0 calc(20% + 120px);
  }
  .wrapper_for_ios{
    overflow-x: unset !important;
  }
}

.wrapper_for_ios{
  width: 100%;
  overflow-x: hidden;
}

h1{
  font-weight: 600;
  font-size: 36px;
}

span.h1{
  min-width: 1rem;
  display: inline-block;
  font-family: GrandSlang;
  font-size: 36px;
}

h2{
  font-weight: 400;
  font-size: 28px;
}

h3{
  font-weight: 600;
  font-size: 20px;
}

@media only screen and (min-width: 1080px){
  h1{
    font-size: 48px;
  }
  h2{
    font-size: 36px;
  }
  h3{
    font-size: 24px;
  }
}

p{
  font-weight: 400;
  font-size: 14px;
}

a{
  color: inherit;
  text-decoration: none;
}

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

ul.inline > li{
  display: inline;
  margin: 0 1rem;
}

/* link metis */

.link--metis{
  position: relative;
}
.link--metis::before{
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  background: var(--textColor);
  top: 100%;
  left: 0;
  pointer-events: none;
  box-sizing: border-box;
}
.link--metis.blacked::before{
  background: #000;
}
.link--metis::before {
  transform-origin: 100% 50%;
  transform: scale3d(0, 1, 1);
  transition: transform 0.3s;
}
.link--metis:hover::before {
  transform-origin: 0% 50%;
  transform: scale3d(1, 1, 1);
}
.link--metis.metis_active::before{
  transform-origin: 0% 50%;
  transform: scale3d(1, 1, 1);
}

/* header */

#wpadminbar{
  display: none;
}

.header_mobile {
  margin: 25px 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo_container{
  flex: 1;
  display: flex;
  justify-content: center;
}

.logo {
  width: 150px;
  height: 57px;
}

.language_selector button{
  background-color: transparent;
  color: inherit;
  border: none;
  text-decoration: none;
  display: inline-block;
}

.language_selector {
  flex: 1; 
  display: flex;
  justify-content: center;
}

.language_selector>.selected{
  color: var(--blue);
}

#firstSelector{
  opacity: 0;
}

.header{
  width: 100%;
  display: flex;
  justify-content: flex-start;
  justify-items: flex-start;
  background: var(--menu);
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 999;
}

.menu_elements{
  width: 100%;
  display: flex;
  justify-content: flex-start;
  justify-items: flex-start;
}

.header>.logo{
  display: none;
}

.menu_element{
  position: relative;
  width: 25%;
  display: flex;
  flex-direction: column;
  justify-items: center;
  color: #5A576C;
  margin: 10px 0 5px;
}

.menu_element.selected::after{
  content: '';
  position: absolute;
  top: -10px;
  left: calc(50% - 35px);
  width: 70px;
  height: 5px;
  background: var(--gold);
  border-radius: 0 0 10px 10px;
}

.icon{
  width: 40px;
  height: 40px;
  background-color: #5A576C;
  margin: 0 auto;
}

@media (prefers-color-scheme: dark) {
  .menu_element{
    color: #fff;
  }
  .icon{
    background-color: #fff;
  }
  .header{
    border-top: 1px var(--highlight) solid;
  }
}

p.menu{
  font-size: 12px;
  margin: 5px 0;
  text-align: center;
}

.header>.language_selector{
  display:none;
}

.language_selector span.selected{
  color: var(--blue) !important;
}

@media only screen and (min-width: 1080px){
  .header_mobile{
    display: none;
  }
  .header{
    width: 20%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    justify-items: center;
    background: var(--menu);
    position: fixed;
    bottom: 0;
    left: 0;
  }
  .header>.logo{
    display: block;
    width: 150px;
    height: 57px;
    margin: 25px auto;
  }
  .menu_elements{
    margin-left: auto;
    flex-direction: column;
    width: 90%;
  }
  .menu_element{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-items: center;
    color: #5A576C;
    margin: 10px 0 5px;
    position: relative;
  }
  .menu_element.selected::after{
    content: '';
    position: absolute;
    top: calc(50% - 24px);
    left: calc(100% - 5px);
    width: 5px;
    height: 48px;
    background: var(--gold);
    border-radius: 10px 0 0 10px;
  }
  .icon{
    width: 48px;
    height: 48px;
    margin: 0 25px 0 0;
  }
  @media (prefers-color-scheme: dark) {
    .menu_element{
      color: #fff;
    }
    .icon{
      background-color: #fff;
    }
    .header{
      border-top: 1px var(--highlight) solid;
    }
  }
  p.menu{
    font-weight: 300;
    font-size: 20px;
    margin: auto 0;
    text-align: left;
    width: 75%;
  }
  .header>.language_selector{
    flex: 0;
    display: block;
    margin: 25px auto;
  }
  .language_selector span{
    margin: 0 2.5px;
  }
}

/* welcome */

.welcome_mobile{
  width: calc(100% - 100px);
  text-align: center;
  margin: 50px auto;
}

.welcome_mobile>*{
  margin: 0;
}

.welcome_mobile>h1{
  margin-bottom: 1rem;
}

.welcome{
  display:none;
}

@media (prefers-color-scheme: light){
  .welcome_text{
    color: #fff;
  }
}

@media only screen and (min-width: 1080px){
  .welcome_mobile{
    display: none;
  }
  .welcome{
    display: block;
    width: 100%;
    height: 300px;
    margin: 25px 0 100px;
    border: 1px var(--highlight) solid;
    border-radius: 20px;
    position: relative;
  }
  .welcome::after{
    content: '';
    width: 100%;
    height: 50%;
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(0deg, rgba(35, 37, 45, 0.85) 0%, rgba(6, 27, 54, 0.00) 100%);
  }
  .welcome img{
    width: 100%;
    height: 100%;
    border-radius: 19px;
    object-fit: cover;
  }
  .welcome_text{
    position: absolute;
    width: calc(100% - 50px);
    height: calc( 50% - 25px);
    bottom: 25px;
    left: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    z-index: 9;
  }
  .welcome_text>*{
    margin: 0;
  }
  .welcome_text>h2{
    font-weight: 600;
  }
}

/* swiper */

.carousel{
  width: calc(100% - 30px);
  margin: 0 auto 100px;
}

.swiper-button-next, .swiper-button-prev{
  color: #fff !important;
}

.swiper-button-next{
  right: 0 !important;
}

.swiper-button-prev{
  left: 0 !important;
}

@media (prefers-color-scheme: dark){
  .swiper-button-next, .swiper-button-prev{
    color: #5A576C !important;
  }
  .card{
    border: 1px solid var(--highlight);
    background-color: var(--menu) !important;
  }
  .location_pin{
    background-color: #fff !important;
  }
  .card.recommended::after{
    color: inherit !important;
  }
}

.card{
  width: calc(100% - 75px) !important;
  /* margin: 0 calc(75px / 2); */
  border-radius: 20px;
  text-align: center;
  position: relative;
  background-color: #fff;
}

.card img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 19px 19px 0 0;
}

.card_text{
  margin: 20px 0 50px;
}

.card_text>*{
  margin: 0;
}

.location_pin{
  background-color: #000;
  width: 16px;
  height: 16px;
  margin: 0 5px 0 0;
}

.card_location{
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 5px 0;
}

.card a{
  display: block;
  font-size: 20px;
  text-decoration: underline;
  color: var(--gold);
  margin: 0 0 20px;
}

.card.recommended::after{
  content: "Consigliato da noi";
  position: absolute;
  padding: 10px 20px;
  background-color: var(--gold);
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
  top: -20px;
  right: -20px;
  z-index: 9;
  color: #fff;
}

.swiper{
  overflow: visible !important;
}

.swiper-pagination-bullet{
  display: none !important;
}

@media only screen and (min-width: 1080px){
  .card{
    width: 300px !important;
    /* margin: 0 25px; */
  }
  .swiper-pagination{
    bottom: -50px !important;
  }
  .swiper-pagination-bullet-active{
    background-color: #000;
  }
  .swiper-pagination-bullet{
    display: inline-block !important;
    background-color: transparent !important;
    border: 1px solid #000;
  }
  @media (prefers-color-scheme: dark){
    .swiper-pagination-bullet-active{
      background-color: #fff;
    }
    .swiper-pagination-bullet{
      border: 1px solid #fff;
    } 
  }
  .swiper-button-next, .swiper-button-prev{
    display: none !important;
  }
}

/* language widget */

.arrow_right{
  width: 44px;
  height: 44px;
  background: #000;
}

.globe_icon{
  margin: 25px 0;
  width: 100px;
  height: 100px;
  background: #000;
}

@media (prefers-color-scheme: dark){
  .globe_icon{
    background: #fff;
  }
  .arrow_right{
    background: #fff;
  }
  .popup_language_selector{
    background: var(--background) !important;
    border: 1px solid var(--highlight);
  }
}

.popup_language_selector_wrap{
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  background: rgba(0,0,0,.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup_language_selector{
  width: calc(100vw - 50px);
  max-width: 360px;
  background: #fff;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.language_options{
  margin: 25px 0 40px;
  width: calc(100% - 50px);
}

.language_option{
  width: 100%;
  margin: 25px 0;
  display: flex;
  justify-content: space-between;
}

.language_option button{
  background: none;
  border: none;
  font-family: inherit;  
  color: inherit;
}

.language_option button h3{
  margin: 0;
}
