/*!
Theme Name: Turismo Comuni 2.0
Theme URI: https://them.es/starter
Author: Task srl
Author URI: https://www.task.sinp.net
Description: Tema per sito turistico
Version: 2
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.2
License: GPL version 2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0
Tags: custom-background, custom-colors, featured-images, flexible-header, microformats, post-formats, rtl-language-support, theme-options, translation-ready, accessibility-ready
Text Domain: turismo-comuni
*/

/* Don't overwrite this file. Compile "/assets/main.scss" to "/build/main.css" */

/* From http://codex.wordpress.org/CSS */
body {
    height:100%;
}
.container{
	padding:0 !important;
}
.container-fluid {
	padding-left: 0 !important;
}

.alignnone {
	margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
	display: block;
	margin: 5px auto 5px auto;
}

.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

a img.alignnone {
	margin: 5px 20px 20px 0;
}

a img.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

a img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	max-width: 96%; /* Image does not overflow the content area */
	padding: 5px 3px 10px;
	text-align: center;
}
.wp-caption.alignnone {
	margin: 5px 20px 20px 0;
}
.wp-caption.alignleft {
	margin: 5px 20px 20px 0;
}
.wp-caption.alignright {
	margin: 5px 0 20px 20px;
}
.wp-caption img {
	border: 0 none;
	height: auto;
	margin: 0;
	max-width: 98.5%;
	padding: 0;
	width: auto;
}
.wp-caption p.wp-caption-text {
	font-size: 11px;
	line-height: 17px;
	margin: 0;
	padding: 0 4px 5px;
}

.gallery-item {
	display: inline-block;
	text-align: left;
	vertical-align: top;
	width: 50%;
}

.gallery-item a,
.gallery-item a:hover,
.gallery-item a:focus {
	-webkit-box-shadow: none;
	box-shadow: none;
	background: none;
	display: inline-block;
	max-width: 100%;
}

.gallery-item a img {
	display: block;
	-webkit-transition: -webkit-filter 0.2s ease-in;
	transition: -webkit-filter 0.2s ease-in;
	transition: filter 0.2s ease-in;
	transition: filter 0.2s ease-in, -webkit-filter 0.2s ease-in;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.gallery-item a:hover img,
.gallery-item a:focus img {
	-webkit-filter: opacity(60%);
	filter: opacity(60%);
}

.gallery-caption {
	display: block;
	text-align: left;
	padding: 0 10px 0 0;
	margin-bottom: 0;
}

.gallery-columns-1 .gallery-item {
	max-width: 100%;
}

.gallery-columns-2 .gallery-item {
	max-width: 50%;
}

.gallery-columns-3 .gallery-item {
	max-width: 33%;
}

.gallery-columns-4 .gallery-item {
	max-width: 25%;
}

.gallery-columns-5 .gallery-item {
	max-width: 20%;
}

.gallery-columns-6 .gallery-item {
	max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
	max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
	max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	max-width: 11.11%;
}

.gallery-columns-6 .gallery-caption,
.gallery-columns-7 .gallery-caption,
.gallery-columns-8 .gallery-caption,
.gallery-columns-9 .gallery-caption {
	display: none;
}

.bypostauthor {
	font-weight: bold;
}

/* Text meant only for screen readers. */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}

/* [1] The container */
.img-hover-zoom {
	overflow: hidden; /* [1.2] Hide the overflowing of child elements */
}

/* [2] Transition property for smooth transformation of images */
.img-hover-zoom img {
	transition: transform .5s ease;
}

/* [3] Finally, transforming the image when container gets hovered */
.img-hover-zoom:hover img {
	transform: scale(1.05);
}

#scroll-to-top {
    position: fixed; /* Fixed position for the button */
    bottom: 20px; /* Distance from the bottom of the screen */
    right: 20px; /* Distance from the right of the screen */
    z-index: 9999; /* Ensure the button is above other content */
    display: none; /* Initially hide the button */
}

#scroll-to-top a {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    color: white; /* White text color */
    text-decoration: none;
    text-align: center;
    line-height: 50px; /* Vertically center the text */
    border-radius: 50%; /* Make the button round */
	font-size: x-large;
}

#scroll-to-top a:hover {
    background-color: rgba(0, 0, 0, 0.9); /* Darker background on hover */
}

path.copri {
//    fill: #000;
//    fill-opacity: 1;
}

.filtra {
    font-weight: 600;
    align-content: center;
    min-height: 80px;
    align-items: center;
    text-align: left;
    font-family: 'Poppins';
    font-weight: 400;
    font-size: 18px;

}
hr.hr, hr.vr {
    border-top: none !important;
}
hr:not([size]).hr {
	--mdb-divider-blurry-color: hsl(0, 0%, 1%);
	--mdb-divider-color: #000;
    --mdb-divider-height: 2px;
    --mdb-divider-bg: var(--mdb-divider-color);
    --mdb-divider-opacity: 1;
    --mdb-divider-blurry-bg: transparent;
    --mdb-divider-blurry-bg-image: linear-gradient(90deg, transparent, var(--mdb-divider-blurry-color), transparent);
    --mdb-divider-blurry-height: 2px;
    --mdb-divider-blurry-opacity: 0.25;
    height: var(--mdb-divider-height);
    background-color: var(--mdb-divider-bg);
    opacity: var(--mdb-divider-opacity);
}
hr:not([size]).hr.hr-blurry {
    background-color: var(--mdb-divider-blurry-bg);
    background-image: var(--mdb-divider-blurry-bg-image);
    height: var(--mdb-divider-blurry-height);
    opacity: var(--mdb-divider-blurry-opacity);
}

.descrizionebreve {
    font-weight: 500 !important;
}
.separatore {
    border-bottom: 12px solid #b7bbc0;
    width: 150px  !important;
}

//General
body {
   margin: 0;
   background-color: #1d1d1e;
   font-family: "Roboto", sans-serif;
}

* {
   outline: none;
}

//Colors
$white-20: rgba(255, 255, 255, 0.2);
$white-60: rgba(255, 255, 255, 0.6);
$white: rgba(255, 255, 255, 1);
$main-color: #b38c52;

//Timeline
.timeline-carousel {
   padding: 86px 6.9444% 90px 6.9444%;
   position: relative;
   overflow: hidden;
   &:after,
   &:before {
      content: "";
      position: absolute;
      display: block;
      top: 0;
      height: 100%;
      width: 6.9444%;
      background-color: #1d1d1e;
      z-index: 3;
      width: 6.9444%;
   }
   &:after {
      left: 0;
   }
   &:before {
      right: 0;
      opacity: 0;
   }
   .slick-list {
      overflow: visible;
   }
   .slick-dots {
      bottom: -73px;
   }
   h1 {
      color: $white;
      font-size: 46px;
      line-height: 50pd;
      margin-bottom: 40px;
      font-weight: 900;
   }
   &__image {
      padding-right: 30px;
   }
   &__item {
      cursor: pointer;
      .media-wrapper {
         opacity: 0.4;
         padding-bottom: 71.4%;
         -webkit-transition: all 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53);
         -o-transition: all 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53);
         transition: all 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53);
      }
      &:last-child {
         .timeline-carousel__item-inner {
            &:after {
               width: calc(100% - 30px);
            }
         }
      }
   }
   &__item-inner {
      position: relative;
      padding-top: 45px;
      &:after {
         position: absolute;
         width: 100%;
         top: 45px;
         left: 0;
         content: "";
         border-bottom: 1px solid $white-20;
      }
      .year {
         font-size: 36px;
         line-height: 36px;
         color: $white;
         display: table;
         letter-spacing: -1px;
         padding-right: 10px;
         background-color: #1d1d1e;
         z-index: 1;
         position: relative;
         margin: -15px 0 20px;
         font-weight: 900;
         &:after {
            content: "";
            position: absolute;
            display: block;
            left: -10px;
            top: 0;
            height: 100%;
            width: 10px;
            background-color: #1d1d1e;
            z-index: 3;
         }
      }
      .month {
         font-size: 12px;
         text-transform: uppercase;
         color: $main-color;
         display: block;
         margin-bottom: 10px;
         font-weight: 900;
      }
      p {
         font-size: 12px;
         line-height: 18px;
         color: $white;
         width: 60%;
         font-weight: 400;
         margin-bottom: 15px;
      }

      .read-more {
         font-size: 12px;
         color: $main-color;
         display: table;
         margin-bottom: 10px;
         font-weight: 900;
         text-decoration: none;
         position: relative;
         &:after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -1px;
            width: 0;
            border-bottom: 2px solid $main-color;
            -webkit-transition: all 0.2s cubic-bezier(0.55, 0.085, 0.68, 0.53);
            -o-transition: all 0.2s cubic-bezier(0.55, 0.085, 0.68, 0.53);
            transition: all 0.2s cubic-bezier(0.55, 0.085, 0.68, 0.53);
         }
         &:hover {
            &:after {
               width: 100%;
            }
         }
      }
      .pointer {
         height: 29px;
         position: relative;
         z-index: 1;
         margin: -4px 0 16px;
         &:after,
         &:before {
            position: absolute;
            content: "";
         }
         &:after {
            width: 9px;
            height: 9px;
            border-radius: 100%;
            top: 0;
            left: 0;
            background-color: $main-color;
         }
         &:before {
            width: 1px;
            height: 100%;
            top: 0;
            left: 4px;
            background-color: $main-color;
         }
      }
   }

   .slick-active {
      .media-wrapper {
         opacity: 1 !important;
      }
   }
}

.slick-dots {
   bottom: 60px;
   list-style: none;
   position: absolute;
   width: 100%;
   left: 0;
   text-align: center;
   z-index: 2;
   li {
      cursor: pointer;
      display: inline-block;
      margin: 0 6px;
      position: relative;
      width: 10px;
      height: 10px;
      &:last-child {
         margin-right: 0;
      }
      &.slick-active {
         button {
            background: $main-color;
            border-color: $main-color;
         }
      }
      button {
         display: block;
         font-size: 0;
         width: 10px;
         height: 10px;
         padding: 0;
         background-color: $white-60;
         border-color: $white-60;
         cursor: pointer;
         -webkit-transition: all 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53);
         -o-transition: all 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53);

         transition: all 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53);
         &:hover {
            background: $main-color;
            border-color: $main-color;
         }
      }
   }
}
.link{
  position:absolute;
  left:0;
  bottom:0;
  padding:20px;
  z-index:9999;
  a{
      display:flex;
      align-items:center;
      text-decoration:none;
      color:#fff;
  }
  .fa{
    font-size:28px;
    margin-right:8px;
    color:#fff;
  }
}
element.style {
    text-align: left;
    font-family: 'Poppins';
    font-weight: 400;
    font-size: 18px;
}
.nav-lang {
	font-family: 'Poppins';
    font-weight: 600;
    font-size: 18px!important;
    color: #000;
}
.nav-lang-sub {
    font-family: 'Poppins';
    font-weight: 400;
    font-size: 18px!important;
    color: gray;
}
a:link.nav-lang-sub {
    color: gray;
}
a:hover.nav-lang-sub {
    color: #000;
}
.fesr {
    text-align: left;
    font-family: 'Poppins';
    font-size: 12px;
}
/* Impedisce che il CSS del sito interferisca con i tasselli della mappa */
.leaflet-container img {
    max-width: none !important;
    padding: 0 !important;
}
#map_all img { 
    max-width: none !important; 
    padding: 0 !important; 
    background: none !important;
}