/*
 Theme Name:   Qbrick Starter
 Theme URI:    http://qbrickstudio.com
 Description:  GeneratePress child theme
 Author:       Qbrick Studio
 Author URI:   http://qbrickstudio.com/#
 Template:     generatepress
 Version:      0.1
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# GP-FIX
# COOKIE BANNER
# HEADER
# MENU
# PAGINATION
# SIDEBAR
# BLOG
# ELEMENTS
# ANIMATION
# CUSTOM
--------------------------------------------------------------*/

* {
	-webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
*:before,
*:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
  background: #eee;
}

body {
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
}
 

.widget .search-field {
    width: 100% !important;
}

.copyright-bar {
    width: 100%;
}

.footer-widgets-container {
    padding-left: 20px;
    padding-right: 20px;
}

/*.entry-content > [class*="wp-block-"]:not(:last-child) {
    margin-bottom: 0 !important;
}*/

.compact-width .inside-article {
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 850px){
    .container-small{
        max-width: 600px;
		margin-left: auto;
		margin-right: auto;
    }
}

.grid-container.grid-padding{
    padding-left: 20px;
    padding-right: 20px;
}
@media (max-width: 768px){
    .grid-container.grid-padding{
        padding-left: 30px;
        padding-right: 30px;
    }
}

/*Align Full fix */
.wrapper-full{
    overflow:hidden;
}
.fullwidth {
    margin-left: calc(-100vw/2 + 100%/2) !important;
    margin-right: calc(-100vw/2 + 100%/2) !important;
    max-width: 100vw !important;
    width: auto !important;
}

/*Margin top fix */
#main .primo{
	margin-top:-60px;
}
/*@media (max-width: 769px){
	#main .primo{
	margin-top:-60px;
	}
}*/

/*No margin bottom page */
.home .inside-article{
	padding-top:0 !important;
	padding-bottom:0 !important;
}
.home #main{
	margin-top:0 !important;
	margin-bottom:0 !important;
}

.page-id-166 .inside-article{
	padding-bottom:0 !important;
}
.page-id-166 #main{
	margin-bottom:0 !important;
}

/*Checkbox fix*/
input[type="checkbox"] {
    width: 13px !important;
    -webkit-appearance: checkbox !important;
}

.swiper-slide{
	-webkit-transform: translate3d(0, 0, 0);
}

.page-hero.page-title {
  text-align: center;
}

.consenso-box {
    display: flex;
}

.consenso {
    padding-left: 20px;
    margin-bottom: 20px;
}

#booking {
  width: 100%;
  background: var(--colore-2b);
  position: fixed;
  left: 0;
  bottom: 0;
  padding: 20px;
	z-index:100;
}

.page-video {
  max-width: 350px;
}

/*--------------------------------------------------------------
# FOOTER
--------------------------------------------------------------*/

.f-link {
  font-style: normal;
  font-weight: bold;
  font-size: 14px;
  padding-right: 10px;
}

.site-info{
	padding-bottom: 60px;
}

.footer-logo img {
  max-width: 150px;
}

/* Copyright */

.copy-box {
    text-align:left;
}
.website-by {
    text-align:right;
	font-size: 12px;
	font-style: italic;
	line-height: 24.5px;
}
.website-by a svg {
    height: 11px;
}
@media (max-width: 900px){
	.copy-box, .website-by {
    	text-align:center;
	}
}
.copyright-bar a:hover{
	color:#fff;
	opacity:0.6;
}

.footer-box{
	background: var(--colore-1);
  color: #fff;
  padding: 80px 0;
}

/*--------------------------------------------------------------
# MENU
--------------------------------------------------------------*/

.home .site-header{
	background: transparent;
}

.home #masthead {
  position: absolute;
  width: 100%;
  max-width: 1800px;
	margin-left: 0;
	margin-right:0;
	z-index:3;
}

.menu-btn {
  background: var(--colore-2);
  padding: 0 5px;
  border-radius: 5px;
}

#generate-slideout-menu .menu-btn {
  background: transparent;
  padding: 0;
  border-radius: 5px;
}

.main-navigation .menu-bar-items {
    order: 2;
}

/* Social menu */

.social-menu ul {
    list-style: none;
    margin: 0;
}
.social-menu ul::after {
    display: block;
    content: "";
    clear: both;
}
.social-menu ul li {
    float: left;
    padding: 0 5px;
}
.copyright-bar .social-menu ul {
    display: table;
    margin: 0 auto;
}

/* Social menu 

.social-menu ul {
    list-style: none;
    margin: 0;
}
.social-menu ul::after {
    display: block;
    content: "";
    clear: both;
}
.social-menu ul li {
    float: left;
    padding-right: 5px;
}*/

/*--------------------------------------------------------------
# BLOG
--------------------------------------------------------------*/

.single-post .posted-on::before {
    content: 'Pubblicato il ';
	font-style: italic;
}
.single-post #main {
    margin-right: 60px;
}
.single-post .inside-right-sidebar {
    padding-top: 70px;
}
.widget_recent_entries li {
    padding: 10px 0 !important;
    border-bottom: 1px solid #ddd;
}

@media (max-width: 768px){
    .single-post #main {
        margin-right: 0;
    }
    .single-post .inside-right-sidebar {
        padding-top: 40px;
    }
}

/*stycky*/
article.sticky {
    width: 100% !important;
    margin-bottom: 0 !important;
}
.sticky .inside-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.sticky .wp-block-group {
    background: #eeee;
}
.sticky .wp-block-group__inner-container {
    padding: 40px;
    text-align: center;
}
.sticky .wp-block-group {
    background: #eee;
    display: flex;
    align-items: center;
}
@media (max-width: 768px){
    .sticky .inside-article {
        grid-template-columns: 100%;
    }
}


/*--------------------------------------------------------------
# PAGINATION
--------------------------------------------------------------*/

a.page-numbers, .page-numbers.current {
    display: inline-block;
    border: 1px solid #DDD;
    padding: 5px 10px !important;;
    line-height: 1;
    margin-right: 10px;
}

a.page-numbers:hover {
    background:#222;
    color: #FFF;
    border-color: #222;
}

/*SINGLE*/


#nav-below {
    padding: 0 20px;
	border-top: 3px solid var(--orange);
	padding-top: 20px;
}
.nav-previous, .nav-next{
	width:50%;
}
.nav-next {
    text-align: right;
	float:right;
}
.nav-previous {
	float:left;
}
.nav-next .next::before {
    content: none;
}
.nav-next .next::after {
    content: "\f105";
	font-family: GeneratePress;
	text-decoration: inherit;
	position: relative;
	margin-left: .6em;
	width: 13px;
	text-align: center;
	display: inline-block;
	opacity: .7;
}
.entry-meta {
    margin-bottom: 40px !important;
}

/*--------------------------------------------------------------
# COVER
--------------------------------------------------------------*/

.cover {
  height: 98vh;
  min-height:350px;
	position: relative;
	z-index: 1;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 300px;
  top: 0;
  left: 0;
 background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(115, 115, 115, 0.00) 100%);
}

@media (max-width: 850px){
	.cover {
	  height: 500px;
	}
}
@media (max-width: 550px){
	.cover {
	  height: 400px;
	}
}


/*--------------------------------------------------------------
# home
--------------------------------------------------------------*/
.about-grid{
	display: grid;
    grid-template-columns: 1fr 1fr;
	margin-top:-30px;
	margin-left: -20px;
    margin-right: -20px;
	position: relative;
	z-index: 2;
}
.about-txt {
  padding: 100px 60px 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-img {
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
}
.primo-paragrafo{
	font-weight: 700;
  color: var(--colore-2);
  font-size: 20px;
}

@media (max-width: 850px){
	.about-grid{
		grid-template-columns: 100%;
		margin-top:0;
		margin-left: 0px;
  		margin-right: 0px;
	}
	.about-txt {
		order:-1;
	  padding: 40px 0 40px;
	  max-width: 600px;
      margin: 0 auto;
	}
	.about-img {
	  max-height: 400px;
	  max-width: 800px;
      margin: 0 auto;
	}
}

.caratteristiche {
  background: var(--colore-1);
  width: 100%;
  color: #fff;
  padding: 120px 20px 80px;
  margin-top: -40px;
}
.inner-caratteristiche{
	max-width:1400px;
	margin-left:auto;
	margin-right: auto;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-gap: 80px;
}
.carat-item {
  text-align: center;
}
.carat-item h4 {
  font-size: 17px;
  margin-top: 10px;
  margin-bottom: 10px;
}

@media (max-width: 1030px){
	.inner-caratteristiche{
	grid-template-columns: 1fr 1fr;
	grid-gap: 60px;
	}
}
@media (max-width: 650px){
	.inner-caratteristiche{
	grid-template-columns: 100%;
	grid-gap: 40px;
	}
}

.home-slide {
  aspect-ratio: 6/4;
}
.home-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-slider-nav div {
  width: 40px;
	cursor: pointer;
}
.slider-gal {
  position: relative;
}
.home-slider-nav {
  max-width: 1800px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  position: absolute;
  width: 100%;
  top: 50%;
  left:0;
  right: 0;
  margin: -20px auto 0;
  z-index: 3;
}

.blocco-home-1, .blocco-home-2{
  padding-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 40px;
}
.blocco-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blocco-txt {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 850px){
	.blocco-home-1, .blocco-home-2{
	  grid-template-columns: 100%;
	}
    .blocco-img {
	  order: -1;
	}
}

.cta {
  margin-top: 80px;
  background: var(--colore-2);
  padding: 50px 20px;
}
.cta-container {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: space;
}
@media (max-width: 850px){
	.cta-container {
	  display: block;
	  text-align:center;
	}
	.cta-container .q-button{
		margin-left:0 !important;
	}
}

/*--------------------------------------------------------------
# camere
--------------------------------------------------------------*/
.portfolio-item {
  position: relative;
  overflow:hidden;
}
.portfolio-item-title{
  position: absolute;
  left: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  width: 100%;
  padding: 10px;
}
.portfolio-item-title h4 {
  margin-bottom: 0;
  font-size: 20px;
}
.portfolio-item figure {
  aspect-ratio: 4/3;
}
.portfolio-item figure img {
	width:100%;
	height:100%;
	object-fit:cover;
	transition: all 0.3s;
}
.portfolio-item a:hover img{
	transform: scale(1.2);
}

/*--------------------------------------------------------------
# Single
--------------------------------------------------------------*/

.container-cpt1{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    grid-column-gap: 30px;
    grid-row-gap: 0;
}

.cpt1-box{
padding-top: 50px;
}
.cpt1-image{
margin-bottom: 10px;
grid-area: 1 / 1 / 2 / 2;
}
.cpt1-txt{
grid-area: 1 / 2 / 3 / 3;;
}
.cpt1-gallery{
grid-area: 2 / 1 / 4 / 2;
position: relative;
}
.cpt1-sharing{
grid-area: 3 / 2 / 4 / 3;
}

.cpt1-info{
    margin-top:60px;
}
.container-3.cpt1-gallery-box {
    grid-column-gap: 10px;
    grid-row-gap: 10px;
}
.cpt1-image img{
    width: 100%;
}
.cpt1-image img,
.cpt1-gallery-box img{
    display: table;
}
.cpt1-video-box {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
}
.cpt1-video-box::before {
    content: '';
    background: rgba(0,0,0,0.5);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index:2
}
.cpt1-video-box::after {
    content: url(../../../themes/qbrick_base/img/play.svg);
    position: absolute;
    top: 50%;
    left: 50%;
    margin: auto;
    transform: translate(-50%, -50%);
    width: 10%;
    opacity: 0.8;
    z-index:2;
    color:rgba(255, 255, 255, 0.8)
}

@media (max-width: 800px){
    .container-cpt1{
        grid-template-columns: 100%;
    }
    .cpt1-image{
        grid-area: auto;
        order: 1
    }
    .cpt1-txt{
        padding-top: 40px;
        grid-area: auto;
        order: 2
    }
    .cpt1-gallery{
        grid-area: auto;
        order: 3
    }
    .cpt1-sharing{
        grid-area: auto;
        order: 4
    }
}