/*
 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;
}
  
.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-bottom:0 !important;
}
.home #main{
	margin-bottom:0 !important;
}*/

.home .inside-article{
	padding-top:0 !important;
}
.home #main{
	margin-top:0 !important;
}

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

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

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

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

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

.footer-logo {
    text-align: center;
}

.footer-menu ul {
    margin: 0;
    list-style: none;
}
.footer-menu a {
    color: #3a3a3a;
}
.footer-menu a:hover {
    opacity: 0.6;
}

.footer-logo figure img {
	vertical-align:middle;
}
.footer-logo figure {
  display: inline-block;
  overflow: hidden;
  border-radius: 50%;
}

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

/*--------------------------------------------------------------
# header
--------------------------------------------------------------*/

#masthead {
  background: transparent;
  position: absolute;
  width: 100%;
  z-index: 50;
}

.site-logo {
  overflow: hidden;
  border-radius: 50%;
}

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

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

.news-figure {
  aspect-ratio: 1/1.4;
}
.news-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@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: #fff;
    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;
}

/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/

.color-light{
    color: var(--colore-1);
}

.page-cover{
    text-align: center;
}

/*--------------------------------------------------------------
# Cover home
--------------------------------------------------------------*/

.cover-home {
  position: relative;
  height: 100vh;
  min-height:650px;
  max-height:800px;
}
.img-cover{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.img-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}
.img-cover:after{
	content:'';
	top: 0;
	left: 0;
	width:100%;
	height:100%;
	position:absolute;
	background:rgba(0,0,0,0.5)
}
.txt-cover {
  padding-top: 110px;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align:center;
  align-items: center;
}
.txt-cover h1 {
  font-size: 180px;
  line-height: 160px;
  margin-bottom: 0;
}
.first-line {
  font-family: Bebas Neue, display;
  color: var(--colore-1);
  font-size: 60px;
  line-height: 60px;
}
.sec-line {
  color: var(--colore-1);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 20px;
}
@media (max-width: 630px){
	.txt-cover h1 {
	  font-size: 140px;
	  line-height: 120px;
	}
}
@media (max-width: 500px){
    .txt-cover h1 {
	  font-size: 80px;
	  line-height: 70px;
	}
	.first-line {
	  font-size: 30px;
	  line-height: 30px;
	}
	.sec-line {
	  font-size: 16px;
	}
	.cover-home {
	  height: 450px;
	  min-height: auto;
	}
}

/*--------------------------------------------------------------
# Home
--------------------------------------------------------------*/

.home-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /*grid-column-gap: 40px;*/
    position: relative;
}
.h-about-txt {
    background: var(--colore-1);
    padding: 60px 60px 100px 60px;
    position: relative;
}
.h-about-txt:after{
    content:'';
    position: absolute;
    width: 100%;
    height: 40px;
    left:0;
    top:-40px;
    background: var(--colore-1);
} 
.h-about-img {
    display: flex;
    align-items: flex-end;
    position: relative;
    z-index: 2;
}
.h-about-img img{
    vertical-align: middle;
}
.h-about-txt::before {
    content: '';
    width: 45%;
    height: calc(100% + 40px);
    position: absolute;
    background: var(--colore-1);
    top: -40px;
    left: -45%;
}
@media (max-width: 940px){
    .home-about {
        grid-template-columns: 100%;
        text-align: center;
        background: var(--colore-1);
    }
    .h-about-txt {
        max-width: 600px;
        margin:0 auto;
        padding: 60px 0 40px 0;
        order:-1;
    }
    .h-about-txt::before {
        content: none;
    }
    .h-about-txt::after {
        content: none;
    }
    .h-about-img {
        max-width: 600px;
        margin:0 auto;
        background-color: var(--colore-1);
    }
    .home-about::before, .home-about::after{
        content: '';
        background: var(--colore-1);
        height: 100%;
        width: 40px;
        position: absolute;
        top:0;
    }
    .home-about::before{
        left:-40px;
    }
    .home-about::after{
        right:-40px;
    }
}

.home-tecnici {
    background: var(--colore-2);
    color: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
}
.home-tecnici a{
    color:#fff;
}
.home-tecnici a:hover{
    color:#ddd;
}
.home-tecnici::before {
    content: '';
    background: var(--colore-2);
    width: 40px;
    height: 100%;
    position: absolute;
    top: 0;
    left: -40px;
}
.h-tecnici-col1 {
    padding: 100px 80px 100px 40px;
}
.h-tecnici-col2 {
    position: relative;
}
.inner-ht2 {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 40px;
    left: 40px;
}
.inner-ht2 img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.inner-ht2-txt {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding: 80px;
    display: flex;
  flex-direction: column;
  justify-content: center;
}
.inner-ht2-txt a{
    display: block;
    font-weight: bold;
    padding: 16px 0;
    border-bottom: 1px solid #fff;
    position: relative;
    padding-right: 40px;
    font-size: 18px;
}
.inner-ht2-txt a svg{
    width: 30px;
    position: absolute;
    right: 0;
}
@media (max-width: 940px){
    .home-tecnici {
        grid-template-columns: 100%;
    }
    .inner-ht2 {
        position: relative;
        top:0;
        left:0;
    }
    .h-tecnici-col1 {
        padding: 60px 0 40px 0;
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
    }
    .inner-ht2 img {
        height: 400px;
    }
    .home-tecnici::after {
        content: '';
        background: var(--colore-2);
        width: 100px;
        height: 80%;
        position: absolute;
        top: 0;
        right: -100px;
    }
    .home-tecnici::before {
        height: 80%;
    }
}
@media (max-width: 460px){
    .inner-ht2-txt {
        padding: 40px;
    }
    .inner-ht2 img {
        height: 260px;
    }
}

.home-news {
    margin-top: 100px;
    margin-bottom: 80px;
}
.home-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 40px;
}
.hn-item{
    position: relative;
}
.hn-item figure {
    aspect-ratio: 1/1;
    position: relative;
}
.hn-item figure img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: middle;
}
.hn-item figure::after{
    content: '';
    position: absolute;
    width: 100%;
    height: 50%;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, #000 130.23%);;
}
.hn-item-txt {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    padding: 14px;
    background: rgba(0, 0, 0, 0.72);
}
.hn-item-txt h4 {
    margin-bottom: 0;
    font-weight: 700;
}
.hn-item-txt span {
    text-transform: uppercase;
    font-size: 14px;
}

@media (max-width: 1050px){
    .home-news-grid {
        grid-template-columns: 100%;
    }
    .home-news {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}


.partner {
    border-top: 1px solid var(--colore-2);
    padding-top: 40px;
}
.partner-title {
    margin-bottom: 20px;
    text-align: left;
}
.partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);;
    grid-gap: 20px;
    justify-items: center;
}
.partner-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-width: 0;
}
.partner-item img {
    max-width: 95px;
    width: 100%;
    height: auto;
}
.partner-item-falardesign img {
    max-width: 142px;
}

@media (max-width: 800px){
    .partner-title {
        text-align: center;
        margin-bottom: 24px;
    }
    .partner-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-gap: 24px;
    }
    .partner-title h2{
        font-size: 30px;
    }
    .partner-item img {
        max-width: 100px;
    }
    .partner-item-falardesign img {
        max-width: 130px;
    }
}
@media (max-width: 350px){
    .partner-grid {
        grid-template-columns: 1fr;
    }
}


/*--------------------------------------------------------------
# Contatti
--------------------------------------------------------------*/

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

.container-contact1 {
    display: grid;
    grid-template-columns: 1fr 2fr;
}
.container-contact1 .contact-form {
    background: #eee;
    padding: 40px;
}
.container-contact1 .contact-form input {
    width: 100%;
    margin-bottom: 10px;
}
@media (max-width: 750px){
		.container-contact1 {
    	grid-template-columns: 100%;
		}
}

/*--------------------------------------------------------------
# Tecnici
--------------------------------------------------------------*/
.tecnici-item {
    background: #fff;
    padding: 20px;
  }
.tecnici-item h2{
    font-size: 17px;
  font-family: 'urbanist', sans-serif;
  font-weight: 700;
  margin-bottom: 5px;
  text-align: center;
}
.tecnici-item p{
  margin-bottom: 16px;
  text-align: center;
}
.tecnici-item b{
    color: var(--colore-2)
}
.tecnici-item span {
    display: flex;
    border-bottom: 1px solid var(--colore-2);
    padding: 5px 0;
    justify-content: space-between;
    max-width: 250px;
    margin: 0 auto;
}
.email-t b {
  font-size: 17px;
}
.email-t {
  font-size: 13.5px;
}
.tecnici-item figure {
    max-width: 150px;
    margin: 0 auto 10px;
}

/*--------------------------------------------------------------
# Tecnici
--------------------------------------------------------------*/

.affiliazione-intro {
    max-width: 600px;
    margin: 0 auto;
}
.file-row {
    display: flex;
}
.file-row b{
    line-height: 41px;
} 
.file-row {
    display: flex;
    border-top: 1px solid var(--colore-2);
    padding: 10px 0;
}
@media (max-width: 600px){
    .file-row {
        display: block;
        text-align: center;
    }
}
