/* 
===============================
Custom CSS for Blackbird Plugin
Created: 03.09.2019
Author: MD
===============================
*/

/*** JOURNAL SINGLE PAGE ***/

.padding-box {
	padding: 0 70px;
}

.sottotitolo {
	font-size: 21px;
	line-height: 28px;
	font-weight: 400;
	text-transform: none;
	text-align: center;
	padding: 50px 0;
}

.single_sezione_testo {
	font-size: 16px;
	font-weight: 300;
	line-height: 25px;
	color: #222;
	margin-bottom: 30px;
}

.primo-piano-immagine-journal img {
	width: 100%;
	height: 100vh;
}

.primo-piano-titolo-journal {
	color: #FFF;
	text-shadow: rgba(0, 0, 0, 0.6) 4px 3px 5px !important;
	position: absolute;
	text-align: center;
	width: 100%;
	height: 100vh;
	overflow: hidden;
}

.primo-piano-titolo-journal h1 {
	font-size: 50px;
	line-height: 50px;
	color: #FFF;
	text-transform: uppercase;
	font-weight: 600;
	margin: auto;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	width: 90%;
	height: 200px;
}

.immagine-page {
	margin-bottom: 30px;
	max-height: 600px;
	height: auto;
	overflow: hidden;
	/*
	display: flex;
	align-items: center;
	*/
}

.immagine-page .ct-image {
	max-height: 600px;
	object-fit: contain;
}

.immagine-page img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto !important;
	-ms-interpolation-mode: bicubic;
}

.image-arrow {
	position: absolute;
	-webkit-transform: translate(0%,-50%);
	-ms-transform: translate(0%,-50%);
	transform: translate(0%,-50%);
	width: 100%;
	text-align: center;
	top: 90% !important;
}

.image-arrow img {
	width: 60px;
	height: auto;
	cursor: pointer;
}

/*** Media Queries ***/

/* --- Mobile Phones --- */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 480px)
  and (-webkit-min-device-pixel-ratio: 2) {
	.padding-box {
		padding: 0 10px;
	}
	.primo-piano-immagine-journal img {
		height: auto;
	}
	.primo-piano-titolo-journal {
		
	}
	.primo-piano-titolo-journal h1 {
		font-size: 40px;
		line-height: 40px;
	}
	.sottotitolo {
		padding: 20px 0;
		margin: 30px 0;
	}
	.immagine-page {
		margin-bottom: 15px;
		position: relative;
		height: auto;
		max-height: 240px;
	}

	.immagine-page .ct-image {
		max-height: 240px;
	}

	.immagine-page img {
		position: relative;
		width: 100%;
		height: auto;
		display: inline-block;
		top: 0;
		left: 0;
		transform: none;
	}
	.info-journal-home {
		display: block !important;
		background-color: rgba(255,255,255,0.8) !important;
	}
	.text-journal-home p {
		margin-bottom: 5px;
		margin-top: 0;
		font-size: 12px;
	}
	.titolo-journal-home {
		font-size: 1.3rem !important;
	}
}

/* --- Mobile Phones 320x480 --- */
@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 480px)
  and (-webkit-min-device-pixel-ratio: 1) {
        .padding-box {
                padding: 0 10px;
        }
        .primo-piano-immagine-journal img {
                height: auto;
        }
        .primo-piano-titolo-journal h1 {
                font-size: 30px;
                line-height: 30px;
		margin-left: 5%;
		margin-right: 5%;
		margin-top: auto;
		margin-bottom: auto;
		width: 80%;
        }
        .sottotitolo {
                padding: 20px 0;
                margin: 30px 0;
        }
        .immagine-page {
                margin-bottom: 15px;
                position: relative;
                height: auto;
		max-height: 165px;
        }

		.immagine-page .ct-image {
			max-height: 165px;
		}

        .immagine-page img {
                position: relative;
                width: 100%;
                height: auto;
                display: inline-block;
               	margin: 0;
        }
        .immagine-page {
                margin-bottom: 15px;
                position: relative;
		height: 20vh;
        }
        .immagine-page img {
                position: relative;
                width: 100%;
                height: auto;
                display: inline-block;
                top: 0;
                left: 0;
                transform: none;
        }
        .info-journal-home {
                display: block !important;
                background-color: rgba(255,255,255,0.8) !important;
        }
        .text-journal-home p {
                margin-bottom: 5px;
                margin-top: 0;
                font-size: 12px;
        }
        .titolo-journal-home {
                font-size: 1.3rem !important;
        }
	.journal-slideshow-dots {
		top: 75% !important;
	}
	.image-arrow {
		top: 85% !important;
	}
	#read-more {
		top: 85% !important;
	}
}

@media screen
  and (min-width: 320px)
  and (max-width: 439px) {
	.immagine-page {
		max-height: 130px;
		margin-bottom: 20px;
	}
	.immagine-page .ct-image {
		max-height: 130px;
	}
        .info-journal-home {
                display: flex !important;
		flex-direction: column;
		align-items: center;
		justify-content: center;
                background-color: rgba(255,255,255,0.8) !important;
        }
        .immagine-journal-home {
                max-height: 100% !important;
        }
}

@media screen
  and (min-width: 440px)
  and (max-width: 639px) {
	.immagine-page {
		max-height: 180px;
		margin-bottom: 20px;
	}
	.immagine-page .ct-image {
		max-height: 180px;
	}
	.info-journal-home {
		display: flex !important;
                flex-direction: column;
                align-items: center;
                justify-content: center;
		background-color: rgba(255,255,255,0.8) !important;
	}
        .immagine-journal-home {
                max-height: 100% !important;
        }
}

@media screen
  and (min-width: 640px)
  and (max-width: 799px) {
        .immagine-page {
                max-height: 280px;
                margin-bottom: 20px;
        }
	.immagine-page .ct-image {
		max-height: 280px;
	}
        .info-journal-home {
                display: flex !important;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                background-color: rgba(255,255,255,0.8) !important;
        }
        .immagine-journal-home {
                max-height: 100% !important;
        }
}

@media screen 
  and (min-width: 800px)
  and (max-width: 990px) {
	.immagine-page {
		max-height: 400px;
        	margin-bottom: 20px;
        }
	.immagine-page .ct-image {
		max-height: 400px;
	}
        .info-journal-home {
                display: flex !important;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                background-color: rgba(255,255,255,0.8) !important;
        }
	.immagine-journal-home {
		max-height: 100% !important;
	}
}

@media screen and (min-width: 993px) {
	.immagine-page {
		max-height: 220px;
		margin-bottom: 20px;
	}
	.immagine-page .ct-image {
		max-height: 220px;
	}

	.immagine-journal-home {
			max-height: 165px;
	}
}

@media screen 
  and (min-width: 1200px) {
        .immagine-page {
                max-height: 280px;
                margin-bottom: 20px;
        }
	.immagine-page .ct-image {
		max-height: 280px;
	}

}

@media screen 
  and (min-width: 1366px) {
	.immagine-page {
		max-height: 330px;
                margin-bottom: 20px;
	}

	.immagine-page .ct-image {
		max-height: 330px;
	}
}

@media screen 
  and (min-width: 1440px) {
        .immagine-page {
                max-height: 350px;
                height: auto;
                margin-bottom: 20px;
        }

	.immagine-page .ct-image {
		max-height: 350px;
	}
}

@media screen 
  and (min-width: 1600px) {
	.immagine-page {
		max-height: 395px;
		height: auto;
		margin-bottom: 20px;
	}

	.immagine-page .ct-image {
		max-height: 395px;
	}
}


@media screen
  and (min-width: 1800px) {
	.immagine-page {
		max-height: 450px;
		height: auto;
		margin-bottom: 20px;
	}

	.immagine-page .ct-image {
		max-height: 450px;
	}
}

/* --- 2K Screens --- */

@media screen
  and (min-width: 1921px) {
	.immagine-page {
		max-height: 485px;
		height: auto;
		margin-bottom: 30px;
	}

	.immagine-page .ct-image {
		max-height: 485px;
	}
}

/* --- 4K Screens --- */
@media screen 
  and (min-width: 2400px) {
	.immagine-page {
		height: auto;
		max-height: 620px;
	}

	.immagine-page .ct-image {
		max-height: 620px;
	}
}

@media screen
  and (min-width: 3840px) {
	.immagine-page {
		height: auto;
		max-height: 750px;
	}

	.immagine-page .ct-image {
		max-height: 750px;
	}
}

/*** HOME PAGE JOURNAL SECTION  ***/

.contenttype-listing ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.contenttype-listing ul li {
	margin: 0;
	width: 33%;
	display: inline-block;
	margin: 10px 1px;
}

.contenttype-listing ul li .ct-image {
	width: 100%;
	height: auto;
}

.home-titolo-journal {
	margin-top: 40px !important;
	margin-bottom: 40px !important;
	font-size: 3rem !important;
	font-weight: 600;
	color: rgba(95, 96, 98, 0.75);
}

.home-text-journal {
	margin-bottom: 40px !important;
}

.journal-container {
	transition: all 0.5s ease;
}

.journal-element {
	margin-bottom: 20px;
}

.info-journal-home {
	display: none;
	position: absolute;
	z-index: 10;
	background-color: #FFF;
	padding: 5px 5px;
	width: 80%;
	height: 80%;
	left: 10%;
	top: 10%;
	overflow: hidden;
	transition: all 0.5s ease;
}

.std a:hover, .std a:focus {
	color: #323232;
}

.titolo-journal-home, .ct-field .titolo-journal-home {
	font-size: 1.5rem;
}

.text-journal-home p {
	padding: 0 40px;
	margin-bottom: 10px;
	margin-top: 10px;
}

.info-journal-home h2 {
	font-weight: 700;
	padding: 0 20px;
	font-size: 1.5rem;
}

.info-journal-home i {
	font-size: 2rem;
	font-weight: 100;
}

.immagine-journal-home {
	position: relative;
    	max-height: 200px;
    	display: inline-block;
    	overflow: hidden;
	width: 100%;
}

.immagine-journal-home a img {
	width: 100%;
	height: auto;
}

.std a {
	text-decoration: none;
}

/*** JOURNAL PAGE SECTION ***/

.journal-element2 {
	margin-bottom: 20px;
	min-height: 360px;
}

.journal-element2:hover {
	background-color: #EEE;
}

.text-journal-home2 p {
	margin-bottom: 0;
}

.immagine-journal-home2 {
	margin-top: 15px;
	display: block;
    	max-height: 200px;
    	overflow: hidden;
}

.titolo-journal-home2 {
	text-transform: uppercase;
	font-size: 21px;
}

.immagine-journal-home2 a img, .immagine-journal-home a img {
	width: 100%;
	height: auto;
}

/*** HOME SLIDER ***/

.tp-caption,
.tparrows {
	text-shadow: rgba(0, 0, 0, 0.6) 4px 3px 5px !important;
}

#read-more {
	position: absolute;
	top: 92%;
	left: 50%;
	-webkit-transform: translateX(-50%);
	transform: translateX(-50%);
	z-index: 1000;	
}

#read-more img {
	width: 60px;
	height: auto;
	cursor: pointer;
}

/*** JOURNAL SLIDER ***/


/* Slideshow container */
.slideshow-container {
  position: relative;
  margin: auto;
  border: 0;
}

/* Hide the images by default */
.journal-slide {
  display: none;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.journal-slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
/*
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
*/
background-color: rgba(255,255,255,1);
border-radius: 5px;
cursor: pointer;
display: inline-block;
height: 10px;
width: 10px;
border: 1px solid #FFF;
margin-left: 10px;
margin-right: 10px;
position: relative;
line-height: 14px;
box-shadow: rgba(0, 0, 0, 0.5) 2px 2px 2px !important;
border: 1px solid #eee;
}

.active-dot {
/*
  background-color: #717171;
*/
background-color: transparent;
height: 14px;
width: 14px;
border-radius: 7px;
top: 2px;
}

/* Fading animation */
.fade-slideshow {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
  opacity: 1;
}

@-webkit-keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

.journal-slideshow-dots {
  position: absolute;
  top: 84%;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  z-index: 1000;  
}

/*** BOOTSTRAP CONFILCT ***/

.carousel-inner > .item {
	padding: 0 !important;
	margin: 0 !important;
}
