/*
Theme Name: Visit Gerano
Theme URI: https://etichettati.it/
Version: 1.0
Description: Child Theme of Divi
Author: Marco Di Giuseppe
Template: Divi
*/
@import url("../Divi/style.css");



/* TEMPLATE GENERALE */

* {
  transition: opacity 0.3s ease-in-out;
}



.shadow{
  -webkit-box-shadow: 0px 10px 20px 0px rgba(0,0,0,0.2);
  -moz-box-shadow: 0px 10px 20px 0px rgba(0,0,0,0.2);
  box-shadow: 0px 10px 20px 0px rgba(0,0,0,0.2);
}

.radius{
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
}

.container{
  width: 90%;
}

.container.cpt.archive {
    width: 100%;
    margin: 0px !important;
    max-width: 100%;
    padding: 0px !important;
    overflow: auto;
}

.container.cpt.list {
    padding: 0px !important;
}

.cpt-area {
    overflow: auto;
}

ul.info {
    border: 1px solid #ddd;
    padding: 10px 15px;
}

ul.info li {
    border-bottom: 1px solid #eeeeee;
    padding: 10px;
}

ul.info li i {
    padding-right: 10px;
}

ul.social {
    border: 1px solid #dddddd;
    padding: 10px 15px 5px;
    overflow: auto
}

ul.social li {
    float: left;
    overflow: auto;
    padding: 10px;
}

ul.social a li{
    display: block;
}

ul.social a li i {
    font-size: 30px;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #f2f2f7;
  border: 1px solid #d1d1d6;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 16px;
  color: #1c1c1e;
  width: 100%;
  max-width: 320px;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23999999' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

select-ios:focus {
  outline: none;
  border: 1px solid #007aff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

.mapbox-archive {
float: left;
width: 40%;
padding: 20px;
border-right: 1px solid #eeeeee;
border-bottom: 1px solid #eeeeee;
background: #f5f5f5;
}
@media (max-width: 979px) {
.mapbox-archive {
    float: none;
    width: 90%;
    margin: 0 auto 20px;
    padding: 10px 10px 10px 10px;
    border-right: none;
    border-bottom: 1px solid #eeeeee;
    background: #ffffff;
    }
}


#main-content .container.cpt:before{
	content: none;
}

body:not(.et-tb) #main-content .container, body:not(.et-tb-has-header) #main-content .container {
	padding-top: 20px;
}

a{
  color: #78A441;
}

a:hover{
  color: #387A3F;
}

.header-cpt-archive {
    position: relative;
width: 100%;
height: 45vh;
margin-bottom: 20px;
color: white;
align-items: center;
justify-content: center;
z-index: 1;
overflow: hidden;
padding: 11vh 10%;
}
@media (max-width: 768px) {
  .header-cpt-archive {
  width: 90%;
  height: 75vh;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  margin:40px auto 10px;
  -webkit-box-shadow: 0px 10px 20px 0px rgba(0,0,0,0.2);
  -moz-box-shadow: 0px 10px 20px 0px rgba(0,0,0,0.2);
  box-shadow: 0px 10px 20px 0px rgba(0,0,0,0.2);
  }
}
.header-cpt-archive::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Cambia il valore per più o meno opacità */
  z-index: 2;
}
.header-cpt-archive > * {
  position: relative;
  z-index: 3;
}


.header-cpt-single{
  position: relative;
  width: 100%;
  min-height: 50vh;
  margin-bottom: 20px;
 background-position: center center;
 background-repeat: no-repeat;
 background-size: cover; 
  color: white;
 display: flex;
 align-items: center;
 justify-content: center;
 z-index: 1;
 overflow: hidden;
}
@media (max-width: 768px) {
  .header-cpt-single {
  width: 90%;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  margin:40px auto 10px;
  -webkit-box-shadow: 0px 10px 20px 0px rgba(0,0,0,0.2);
  -moz-box-shadow: 0px 10px 20px 0px rgba(0,0,0,0.2);
  box-shadow: 0px 10px 20px 0px rgba(0,0,0,0.2);
  padding: 10%;
  }
}

.header-cpt-single::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Cambia il valore per più o meno opacità */
  z-index: 2;
}
.header-cpt-single > * {
  position: relative;
  z-index: 3;
}

.header-cpt-archive h1, .header-cpt-single h1 {
font-weight: 900;
color: #fff;
text-transform: uppercase;
margin-bottom: 30px;
}

span.subtitle-archive-cpt {
    text-transform: initial;
    font-weight: 100;
    font-size: 25px;
}

.cosa_vedere_bk{
  background-image: url("https://www.visitgerano.com/wp-content/uploads/2025/08/Screenshot-2025-08-04-alle-17.23.54.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}



.cosa_fare_bk{
  background-image: url("https://www.visitgerano.com/wp-content/uploads/2025/07/trekking.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.attivita_commerciali_bk.has-custom-bg {
  background-image: url(''); /* verrà sovrascritto da inline */
}

.attivita_commerciali_bk{
  background-image: url("https://www.visitgerano.com/wp-content/uploads/2025/07/dove-dormire.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.dove_mangiare_bk{
  background-image: url("https://www.visitgerano.com/wp-content/uploads/2025/07/dove-mangiare.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.eventi_bk{
  background-image: url("https://www.visitgerano.com/wp-content/uploads/2025/07/eventi.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

article {
    overflow: auto;
}

article p {
    padding: 0px 0 0 0;
}

.left-side {
    width: 64%;
    float: left;
    margin-right: 4%;
}
@media (max-width: 768px) {
  .left-side {
    width: 90%;
    margin: auto;
    float: none;
  }
}

.right-side {
    width: 32%;
    float: left;
    padding-bottom: 50px;
}
@media (max-width: 768px) {
  .right-side {
    width: 90%;
    margin: auto;
    float: none;
  }
}

.cpt-box-article {
    width: 60%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 10px;
    margin: 0px;
}
@media (max-width: 979px) {
  .cpt-box-article {
    width: 90%;
    margin: auto;
  }
}
@media (max-width: 768px) {
  .cpt-box-article {
    grid-template-columns: 1fr;
  }
}

.cpt-box-article article {
padding: 0;
border: none;
box-sizing: border-box;
overflow: hidden;
}


.cpt-box-article article a img:hover{
  opacity: 0.5;
}

article img {
    width: 100%;
}

.cpt-box-article article h2 {
    padding: 10px 20px 15px;
    font-size: 14px;
    border-bottom: 1px solid #ddd;
    color: #78A441;
}

.cpt-box-article article p {
    padding: 10px 20px;
    margin-bottom: 20px;
}



h1{
  color: #BF9789;
  font-weight: 100;
  font-size: 65px;
}

h4.archive-cpt {
color: #367A3E;
font-weight: 400;
margin: 20px 0px 5px;
padding: 0px 0px 15px 15px;
font-size: 15px;
border-bottom: 1px solid #eee;
text-align: left !important;
}
@media (max-width: 979px) {
  h4.archive-cpt {
  margin: 20px auto 5px;
  padding: 20px 15px 15px 15px;
  text-align: left !important;
  }
}

h4.archive-cpt i{
  padding-right:5px;
}

a.pul-biglietto {
    display: block;
    background: #ffcc00;
    background: -webkit-linear-gradient(180deg,rgba(255, 204, 0, 1) 0%, rgba(255, 111, 0, 1) 100%);
    background: -moz-linear-gradient(180deg,rgba(255, 204, 0, 1) 0%, rgba(255, 111, 0, 1) 100%);
    background: linear-gradient(180deg,rgba(255, 204, 0, 1) 0%, rgba(255, 111, 0, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(
      startColorstr="#FFCC00",
      endColorstr="#FF6F00",
      GradientType=0
    );
    color: #ffffff;
    padding: 10px 15px;
    text-align: center;
    margin-top: 25px; 
}

h4.archive-cpt-map {
    margin: auto;
    padding: 10px 20px 0px 20px;
    color: #367A3E;
}
@media (max-width: 979px) {
  h4.archive-cpt-map {
  width: 90%;
  }
}

.filtro-categorie {
    width: 100%;
    padding: 20px;
    margin: auto;
}
@media (max-width: 979px) {
  .filtro-categorie {
  width: 90%;
  }
}

.content-box-cpt {
    padding: 20px 0px;
}

.cgl-gallery img:hover {
    opacity: 0.5;
}

p.archive-description {
    margin: auto;
}

.icon-top-down {
    font-size: 40px;
    margin-top: 50px;
}

.box-pul {
    overflow: auto;
    background: #eeeeee;
}

a.pul-more, a.pul-nav {
    display: inline-block;
    width: 50%;
    float: left;
    text-align: center;
    padding: 10px;
}

a:hover.pul-nav {
  transition: all 0.3s ease-in-out;
    background: #2E87DA;
    color: #ffffff;
}

a:hover.pul-more {
  transition: all 0.3s ease-in-out;
    background: #78A441;
    color: #ffffff;
}

.cgl-gallery {
    margin: 20px 0 20px 0!important;
    background: #f5f5f5;
    padding: 10px;
}

.box-pul-fixed {
  position: fixed;
bottom: 10px;
left: 10px;
right: 10px;
margin: 0 auto;
max-width: calc(100% - 20px); /* per evitare overflow */
  z-index: 9999;
  background: #78A441;
  background: -webkit-linear-gradient(180deg, rgba(120, 164, 65, 1) 0%, rgba(54, 122, 62, 1) 100%);
  background: -moz-linear-gradient(180deg, rgba(120, 164, 65, 1) 0%, rgba(54, 122, 62, 1) 100%);
  background: linear-gradient(180deg, rgba(120, 164, 65, 1) 0%, rgba(54, 122, 62, 1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#78A441", endColorstr="#367A3E", GradientType=0);
  color: #fff;
  padding: 5px 10px;
  text-align: center;
  border: 2px solid #367A3E;
  width: fit-content;
}



.box-pul-fixed a {
    display: inline-block;
    padding: 10px 15px;
    font-size: 20px;
    color: #ffffff;
}

.box-pul-fixed a:hover {
  color: #367A3E;
}

.box-pul-fixed a:active {
  color: #367A3E;
}



/* ACF MAP */
.acf-map {
  width: 100%;
  height: 70vh;
  border: #ccc solid 1px;
  margin: 0px;
}

.acf-map .marker {
  display: none;
}

// Fixes potential theme css conflict.
.acf-map img {
   max-width: inherit !important;
}

.box-biglietto-evento {
    overflow: auto;
    width: 100%;
    padding: 20px;
    text-align: center;
}

a.pul-biglietto-evento {
    display: initial;
    background: #ff9900;
    padding: 10px 15px;
    border-radius: 5px;
    color: #ffffff;
}

a:hover.pul-biglietto-evento {
    display: initial;
    background: #ff5500;
    padding: 10px 15px;
    border-radius: 5px;
    color: #ffffff;
}

.info-box-evento {
    border: 1px solid #dddddd;
overflow: auto;
margin: 50px auto;
border-radius: 10px;
}

.left-info-box-evento {
    float: left;
    overflow: auto;
    width: 50%;
}

.dettagli-box-cpt ul li {
    list-style: none;
    padding: 10px 15px;
}