/*!
Theme Name: Franco Deriu
Theme URI: https://them.es/starter
Author: Eikon snc
Author URI: https://www.eikon.net
Description: 
Version: 2.4.4
Requires at least: 5.0
Tested up to: 5.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: franco-deriu
*/

/* Don't overwrite this file. Compile "/assets/main.(less|scss)" to "/assets/css/main.css" */


/* From http://codex.wordpress.org/CSS */

.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%;
}

/* STILI STATICI */

body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.2;
  width: 100%;
}

div.row {
	margin: 0 !important;
	width: 100% !important;
}

/* FONT */

h1 {
	font-size: 48px;
	font-family: 'Poppins', sans-serif;
}

h2 {
	font-size: 40px;
	font-family: 'Poppins', sans-serif;
}

h3 {
	font-size: 32px;
	font-family: 'Poppins', sans-serif;
	line-height: 1.25em;
}

h4 {
	font-size: 24px;
	font-family: 'Poppins', sans-serif;
	line-height: 1.5em;
}

h5 {
	font-size: 16px;
	font-family: 'Poppins', sans-serif;
}

p {
	font-size: 12px;
	font-family: 'Poppins', sans-serif;
}

/* HEADER */

/* NAV - BOOTSTRAP */

.navbar {
	padding: 16px !important;
}

.navbar.navbar-expand-lg {
	display: flex;
	justify-content: space-between;
}

.navbar-brand img {
	width: 100px;
	height: auto !important;
}

.navbar-brand {
    position: relative;
    left: 50% !important;
    margin-left: -50px !important;  /* 50% of your logo width */
/*     display: block; */
padding-bottom: 1.5em!important;
}

.navbar-light .navbar-toggler {
    border: none;
    background-color: none;
}

a.nav-item {
	font-size: 13px;
	font-family: 'Poppins', sans-serif;
	text-transform: uppercase;
	color: #000;
}

/* HOME GRID */

div.home-grid {
	display: flex;
	flex-wrap: wrap;
	padding: 0;
/* 	background: #000; */
}

div.home-grid .col-6, div.home-grid .col-md-4, div.home-grid .col-lg-3, div.home-grid .col-xl-2 {
	padding: 0;
}

div.entry-img {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  opacity: 1;
  transition: opacity 0.3s ease;
}

/*
div.entry-img.project-1 { background-image: url('https://francoderiu2.eikon.net/wp-content/uploads/img/deriu-web-img1.jpg'); }
div.entry-img.project-2 { background-image: url('https://francoderiu2.eikon.net/wp-content/uploads/img/deriu-web-img2.jpg'); }
div.entry-img.project-3 { background-image: url('https://francoderiu2.eikon.net/wp-content/uploads/img/deriu-web-img3.jpg'); }
div.entry-img.project-4 { background-image: url('https://francoderiu2.eikon.net/wp-content/uploads/img/deriu-web-img4.jpg'); }

div.entry-img.project-5 { background-image: url('https://francoderiu2.eikon.net/wp-content/uploads/img/deriu-web-img5.jpg'); }
div.entry-img.project-6 { background-image: url('https://francoderiu2.eikon.net/wp-content/uploads/img/deriu-web-img6.jpg'); }
div.entry-img.project-7 { background-image: url('https://francoderiu2.eikon.net/wp-content/uploads/img/deriu-web-img7.jpg'); }
div.entry-img.project-8 { background-image: url('https://francoderiu2.eikon.net/wp-content/uploads/img/deriu-web-img8.jpg'); }

div.entry-img.project-9 { background-image: url('https://francoderiu2.eikon.net/wp-content/uploads/img/deriu-web-img9.jpg'); }
div.entry-img.project-10 { background-image: url('https://francoderiu2.eikon.net/wp-content/uploads/img/deriu-web-img10.jpg'); }
div.entry-img.project-11 { background-image: url('https://francoderiu2.eikon.net/wp-content/uploads/img/deriu-web-img11.jpg'); }
div.entry-img.project-12 { background-image: url('https://francoderiu2.eikon.net/wp-content/uploads/img/deriu-web-img12.jpg'); }

div.entry-img.project-13 { background-image: url('https://francoderiu2.eikon.net/wp-content/uploads/img/deriu-web-img13.jpg'); }
div.entry-img.project-14 { background-image: url('https://francoderiu2.eikon.net/wp-content/uploads/img/deriu-web-img14.jpg'); }
div.entry-img.project-15 { background-image: url('https://francoderiu2.eikon.net/wp-content/uploads/img/deriu-web-img15.jpg'); }
div.entry-img.project-16 { background-image: url('https://francoderiu2.eikon.net/wp-content/uploads/img/deriu-web-img16.jpg'); }
*/

div.entry-title {
	position: absolute !important;
	top: 0;
	left: 0;
	padding: 24px;
	opacity: 0;
	width: 100%;
	height: 100%;
	transition: opacity 0.3s ease;
}

div.entry-title:hover {
	background: rgba(0, 0, 0, 0.7);
	opacity: 1;
}

div.entry-title h2 {
	font-size: 24px;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	text-transform: uppercase;
	color: #fff;
}


/* SINGLE POST */

div.project-content {
	margin-top: 80px;
	text-align: center;
	margin-bottom: 80px;
}

h1.project-title {
/* 	font-size: 16px !important; */
	font-size: 24px !important;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	text-transform: uppercase;
}

.project-description p {
	font-size: 16px;
	font-family: 'Poppins', sans-serif;
	font-weight: 400;
}

div.project-images {
	text-align: center;
}

div.project-images img{
	margin-bottom: 32px;
	width: 100%;
}

/* LIGHTBOX */

.lightbox {
  /* Default to hidden */
  display: none;

  /* Overlay entire screen */
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  
  /* A bit of padding around image */
  padding: 1em;

  /* Translucent background */
  background: rgba(0, 0, 0, 0.8);
}

/* Unhide the lightbox when it's the target */
.lightbox:target {
  display: block;
}

.lightbox span {
  /* Full width and height */
  display: block;
  width: 100%;
  height: 100%;

  /* Size and position background image */
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

div.lb-outerContainer {
	border-radius: 0;
}

div.lightbox img.lb-image {
	border: none;
}

div.lb-nav:before, div.lb-nav:after  {
	content: "";
	width: 50px;
	height: 50px;
	background-position: center;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    position: absolute;
    display: inline-block;
}

div.lb-nav:before {
	background: url('img/deriu-lightbox-angle-bottom-left.png');
	bottom:0;
	left: 0px;
}

div.lb-nav:after {
	background: url('img/deriu-lightbox-angle-top-right.png');
	top:0;
	right: 0px;
}

/* CALL TO ACTION */

section.call-to-action {
	background-color: #ffa000;
	padding: 80px 0;
	text-align: center;
	margin-top: 80px;
}

h2.call-to-action-title {
	font-weight: 700;
	line-height: 1.5em;
	color: #000;
}

.btn.btn-primary.call-to-action-button {
    border-radius: 0;
    padding: 0.8em 1.2em;
    margin-top: 20px;
    border: none;
    font-size: 16px;
    letter-spacing: 0.05em;
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
    background: #000;
    color: #ffffff;
    margin-bottom: 24px;
}

.btn.btn-primary.call-to-action-button:hover {
	color: #000;
	background-color: #fff;
	transition: 0.3s ease;
}

/* PAGINE CHI SONO E CONTATTI */

div.container.about, div.container.contatti {
	padding: 120px 0 240px 0;
}

div.container.about img {
	margin-bottom: 24px;
}

h1.about-title, h1.contatti-title {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 20px;
}

p.about-content, p.contatti-content {
	font-size: 16px;
}

p.contatti-content {
	margin-bottom: 80px;
}

div.container.contatti a {
	color: #000;
}

/* CONTACT FORM */

div.wpcf7 label {
	width: 100%;
}

div.wpcf7 input {
	margin-top: 8px;
	border:none;
	border-radius: 0;
	padding: 1em;
	border-bottom: 2px solid #000;
	width: 100%;
}

textarea.wpcf7-form-control.wpcf7-textarea {
	margin-top: 8px;
	border:none;
	border-radius: 0;
	border-bottom: 2px solid #000;
	width: 100%;
}

input.wpcf7-form-control.has-spinner.wpcf7-submit {
	padding: 1em 2em;
	font-size: 16px !important;
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	letter-spacing: 0.05em;
	border: none;
	width: unset;
	background: #000;
	color: #fff;
}

/* FOOTER */

footer div.container-fluid {
/* 	position: fixed; */
	bottom: 0 !important;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-content: center;
	align-items: center;
	padding: 24px;
}

footer div.container-fluid p {
	margin: 0;
}

footer div.social-icon {
	font-size: 20px;
}

footer div.social-icon a {
	margin-left: 8px;
	color: #000 !important;
}


footer div.social-icon a:hover {
	text-decoration: none;
}

.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. */
}

/* SINGLE POST HOVER */

div.project-image-1 img{
	width: 100%;
}

div.project-image-title-1 p {
	font-size: 16px !important;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	color: #fff;
}

div.project-image-title-1 {
	position: absolute;
    top: 0;
    padding: 24px;
    font-size: 24px;
    background-color: rgba(0,0,0, 0.5);
    width: calc(100% - 30px);
    height: calc(100% - 32px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

div.project-image-title-1:hover {
    opacity: 1;
}

@media screen and (max-width: 992px) {
	
	div.container.about, div.container.contatti {
		padding: 40px 0 40px 0;
	}
	
	footer div.container-fluid {
		padding: 15px;
	}
}

a.nav-link {
	text-align: center !important;
}

/* contenitore video su case history */
    .embed-container { 
        position: relative; 
        padding-bottom: 56.25%;
        overflow: hidden;
        max-width: 100%;
        height: auto;
    } 

    .embed-container iframe,
    .embed-container object,
    .embed-container embed { 
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
/* PAGINAZIONE */ 
.pagination button.paginazione {
    border-radius: 0;
    padding: 0.8em 1.2em;
    margin-top: 20px;
    border: none;
    font-size: 16px;
    letter-spacing: 0.05em;
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
    color: #ffffff!important;
	text-decoration: none!important;
    background: #000;
    margin-bottom: 24px;
}

.pagination button.paginazione:hover {
	background-color: #fff;
    color: #000!important;
	transition: 0.3s ease;
	text-decoration: none!important;
}
a.page-numbers {
    color: #ffffff!important;
    text-decoration: none!important;
}
a.page-numbers:hover {
    color: #000!important;
    text-decoration: none!important;
}
.page-numbers.current {
    color: #ffa000!important;
    text-decoration: none!important;
}
/* BACK TO TOP */

html {
  scroll-behavior: smooth;
}

.btn.btn-light.btn-lg.back-to-top {
/* 	border-radius: 50%; */
	padding-top: 10px;
	padding-bottom: 10px;
	z-index: 999;
}

.back-to-top {
    position: fixed;
    align-self: center;
    bottom: 25px;
    right: 25px;
    display: none;
/*     border-radius: 0px; */
}