/*!
Theme Name: Refine
Theme URI: http://underscores.me/
Author: Simone Nolgo
Author URI: https://www.onedaygroup.it/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: refine
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Refine is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.


/*Start CSS Simo =================*/

/*colors

refine primary #F9423A
refine secondary #33658A
dark gray #222222
light beije #F4F4F3
dark blue #344154
*/

/* ML NORMALIZZO ICONE x Mobile: definisco in modo proporzionale l'ingombro per sfondo (.icon) e dell'elemento grafico interno (.iconpadd:before) */
.iconfull,
.iconpadd {
  position: relative;
  display: inline-block;
  height:1em;
  width:1em; 
  line-height:1em;
  text-align:center;
  /* font-size:50px; /* NOTA font-size determina l'ingombro dell'icona, compreso lo sfondo (non serve modificare height, width, line-eight, ecc) */
  /* puoi defiirlo direttamente nella customizzaizone del layout */
}
/* icona occupa tutto il background */
.iconfull:before { 
  display:block;
  position:absolute;
  font-size:1em; top:0; left:0; 
}
/* icona con spazio rispetto al abackground */
.iconpadd:before { 
  display:block;
  position:absolute;
  font-size:0.55em; top:0.4090909090909091em; left:0.4090909090909091em; 
  /* se FS = font-size di :before, TL (valore top/left di :before) = (1-FS)/(2*FS) */
}

:root {
  --primary-color: #F9423A;
  --secondary-color: #33658A;
  --black-gray: #222222;
  --dark-gray: #333;
  --dark-blue: #344154;
  --light-beije: #F4F4F3;
}


html {
	font-family: Poppins, sans-serif;
	font-weight: 300;
	color: var(--dark-gray);
}


html[lang="it-IT"] .item-en,
.lang-it .item-en {
	display: none
}

html[lang="en-US"] .item-it,
.lang-en .item-it {
	display: none
}

#page {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 100vh
}

#page .main {
	width: 100%;
	flex-grow: 1;
	position: relative;
}



.container {
  margin:0px auto;
  padding-left: 15px;
  padding-right: 15px;
  position: relative;
  z-index: 2;
}

.popup-cookie {
	position: fixed;
	background-color: rgba(15,15,15,.9);
	padding: 10px;
	color: #ccc;
	 z-index: 80;
    width: 100%;
    left: 0;
    bottom: 0;
    right: 0;
    font-size: 11px;
    justify-content: center;
    align-items: center;
	transform: translateY(200%);
	transition: transform .3s ease-in;
}

.popup-cookie.visible {
	transform: translateY(0%);
	
}

.popup-cookie .cta-cookie {
	margin-top: 5px
}

.popup-cookie .link {
	color: #fff;
	padding-left: 10px;
	cursor: pointer;
	font-weight: bold;
}


.text-primary {
	color: #F9423A
}
.text-secondary {
	color: #33658A
}


/*HOME ==*/


.ombra-top {
	opacity: .5;
	/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#000000+0,000000+100&0.65+0,0+100;Neutral+Density */
	background: -moz-linear-gradient(top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%); /* FF3.6-15 */
	background: -webkit-linear-gradient(top, rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6000000', endColorstr='#00000000',GradientType=0 ); /* IE6-9 */
	height: 40%;
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 0;
}
.ombra-bottom {
	opacity: .5;
	/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#000000+0,000000+100&0+0,0.65+100 */
	background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%); /* FF3.6-15 */
	background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#a6000000',GradientType=0 ); /* IE6-9 */
	height: 40%;
	display: block;
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 0;
}

.tasto-scroll {
	cursor: pointer;
}

/*HOME*/

.content p {
	margin-top: 0;
}

.cover-home {
	width: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-repeat: no-repeat;
	background-size: cover;
	position: relative;
	background-position: center;
}

.cover-home h1 .title-underline {
	display: inline-block;
	padding-bottom: 3px;
	border-bottom: 2px solid #F9423A;
}


.cover-home .tasto-scroll .iconfull {
	position: relative;
	top: 2px;
}


/*COMPOSER*/

#composer {
	width: 100%;
	overflow: hidden;
}

.image-mobile-bottom .image {
 	order: 2;
 	margin-top: 30px;
}
.image-mobile-bottom .text {
 	order: 1
}
.image-mobile-top .image {
 	order: 1;
 	margin-bottom: 30px;
}
.image-mobile-top .text {
 	order: 2
}

.space.small { height: 15px; }
.space.medium { height: 25px; }
.space.default { height: 30px; }
.space.large { height: 40px; }
.space.extra-large { height: 50px; }


.bullet-list-block .block {
	font-size: .85em;
	margin-bottom: 30px;
}
.bullet-list-block .block:last-child {
	margin-bottom: 0;
}
.bullet-list-block .block ul  {
	list-style: none;
	padding-left: 0;
	font-size: 1.05em;
	font-weight: 400;
}
.bullet-list-block .block ul li  {
	position: relative;
	padding-left: 27px;
	margin-bottom: 7px;
}

.bullet-list-block .block ul li:before  {
	content: '';
	width: 6px;
	height: 6px;
	background-color: var(--primary-color);
	display: block;
	left: 0;
	top: 7px;
	position: absolute;
	border-radius: 50%;
}

.icon-block .content-img {
	width: 90px;
	height: 90px;
	margin-left: auto;
	margin-right: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: auto;
	margin-right: auto;
}


.icon-block .content-img img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
}



.info-data-block ul  {
	list-style: none;
	padding-left: 0;
	font-size: 1.05em;
	font-weight: 400;
	min-width: 120px
}
.info-data-block ul li  {
	position: relative;
	padding-left: 20px;
	margin-bottom: 7px;
}

.info-data-block ul li:before  {
	content: '';
	width: 6px;
	height: 6px;
	background-color: var(--primary-color);
	display: block;
	left: 0;
	top: 7px;
	position: absolute;
	border-radius: 50%;
}

.info-data-block .arrow {
	margin-top: 10px;
	margin-bottom: 10px;
	border-top: 1px solid #F9423A;
	border-radius: 2px;
}

.info-data-block .arrow-into {
	width: 1px;
	height: 20px;
	margin-left: auto;
	margin-right: auto;
	background-color: #F9423A;
}
.info-data-block .arrow-top {
	width: 0;
	height: 0;
	margin-left: auto;
	margin-right: auto;
	border-style: solid;
	border-width: 8px 4px 0 4px;
	border-color: #F9423A transparent transparent transparent;
}


.text-image-icon-list {
	padding: 0;
	list-style: none;
}

.text-image-icon-list li {
	margin-bottom: 15px;
}

.text-image-icon-list li:last-child {
	margin-bottom: 0;
}

.text-image-icon-list li .img {
	width: 75px;
	position: relative;
	top: -6px;
}

.text-image-icon-list li .img img {
	width: 100%;
	height: auto;
}


.number-container:after {
	content: '';
	display: block;
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 70%;
	border-right: 1px solid rgba(249, 66, 58, 0.3)
}

.number-container:last-child:after {
	display: none
}

.number-container:nth-child(2n + 2):after {
	display: none
}



/*FOOTER */

.site-footer {
	background-color: #222 
}

.logo-footer img {
	height: 35px;
}


.link-footer a {
	color: #fff;
	opacity: 0.7;
	display: block;
	text-align: center;
}

.link-footer a:hover {
	opacity: 1;
}

.site-footer .menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	padding: 0;
}

.site-footer .menu li {
	margin-right: 10px;
	padding-right: 10px;
	border-right: 1px solid rgba(255,255,255,.1)
}
.site-footer .menu li:last-child {
	border-right: 0;
	margin-right: 0;
	padding-right: 0;
}

.logo-iab {
	height: 20px;
	width: auto;
}

/*form */


.form form label > span {
	margin-top: 0px;
	display: block;
}

.form form p:last-of-type {
	width: 100%;
	margin-top: 20px;
}

.form form input {
	border: 0;
	border-radius: 0;
	border-bottom: 1px solid #ddd;
	background-color: transparent;
	padding-left: 0;
	padding-right: 0;
	padding-top: 0;
	outline: none;
	font-family: Poppins, sans-serif;
	font-weight: lighter;
	font-size: 1.4em;
}
.form form input:focus {
	border: 0;
	border-radius: 0;
	outline: 0;
	background-color: transparent;
	border-bottom: 1px solid #F9423A;
}

.form form input[type="submit"] {
	padding: 1em 2.4em;
	font-size: 1.2em;
	margin-top: 20px;
	width: auto;
	height: auto;
	border: 0;
	margin: 0 auto;
	border-radius: 5px;
	background-color: #333;
	color: #fff;
	font-weight: 500;
	display: block;
	font-size: 13px;
	cursor: pointer;
	outline: none;
	text-decoration: none;
	background-color: #F9423A;
	color: #fff
}


.form form .wpcf7-response-output {
	padding: 15px;
	border-radius: 8px;
	font-size: 12px;
	display: block;
	width: 100%;
}


/*BLOG ========*/
.post-card {
  background-color: #fff;
}

.post-card .cover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius:  6px 6px 0 0;
}
.post-card .cover:after {
  display: block;
  content: '';
  padding-top: 60%;
}

.post-card h3 a  {
  color: #041846;
}

.post-card h3 a:hover  {
  text-decoration: underline;
}

.custom-pagination {
  text-align: center;
  margin: 30px auto; 
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-pagination a {
  color: #888;
  cursor: pointer;
  padding: .7em;
  display: block;
  margin: 0 5px;
  border-bottom: 1px solid transparent;
}

.custom-pagination a.iconfull {
  color: #888;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  display: block;
  border: 0;
  margin: 0 5px;
}

.custom-pagination a.current {
  color: #041846;
  border-bottom: 1px solid #F9423A;
}


/*PAGE =========*/


.content-page {
	line-height: 1.6;
	font-size: 1.1rem
}

.content-page-width {
	max-width: 870px;
	margin-left: auto;
	margin-right: auto;
}

.cover-page {
	display: flex;
	flex-direction: column;
	min-height: 60vh;
	color: #fff;
	background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
	text-shadow: 0 0 5px rgba(0,0,0,.1);
}

.cover-grid {
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	padding-top: 56%;
	border-radius: 6px
}

.content-page figure,
.content-page img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px auto; 
}


.content-page table {
  border-collapse: collapse;
}

.content-page table td {
  border: 1px solid #ddd;
  padding: 7px;
}


.no-cover {
	margin-top: 50px;
}




@media screen and (min-width: 768px) {

}






@media screen and (min-width: 1024px) {

	.no-cover {
		margin-top: 66px;
	}

	/*COMPOSER*/

	.space.small { height: 20px; }
	.space.medium { height: 40px; }
	.space.default { height: 70px; }
	.space.large { height: 80px; }
	.space.extra-large { height: 100px; }

	.image-desktop-right .image {
	 	order: 2;
	 	margin-left: 50px;
	 	margin-top: 0;
	 	margin-bottom: 0;
	}
	.image-desktop-right .text {
	 	order: 1
	}
	.image-desktop-left .image {
	 	order: 1;
	 	margin-right: 50px;
	 	margin-top: 0;
	 	margin-bottom: 0;
	}
	.image-desktop-left .text {
	 	order: 2
	}


	.bullet-list-block .block {
		margin-bottom: 0;
	}

	.number-container:nth-child(2n + 2):after {
		display: block
	}
	.number-container:nth-child(4n + 4):after {
		display: none
	}

	.info-data-block .arrow {
		margin: 0;
		position: absolute;
		top: 2px;
		bottom: 2px;
		left: -27px;
		border-top: 0;
		border-left: 1px solid #F9423A;
	}

	.info-data-block .arrow-into {
		width: 10px;
		height: 1px;
		margin-left: auto;
		margin-right: auto;
		position: absolute;
		top: 50%;
		background-color: #F9423A;
	}
	.info-data-block .arrow-top {
		position: absolute;
		transform: translateY(-3px);
		top: 50%;
		left: 6px;
		width: 0;
		height: 0;
		margin-left: auto;
		margin-right: auto;
		border-style: solid;
		border-width: 4px 0 4px 8px;
		border-color: transparent transparent transparent #F9423A;
	}


	/*form */

	.form form {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		margin: 0 -7px;
	}

	.form form p {
		width: 50%;
		padding: 0 10px;
		margin-bottom: 10px;
		margin-top: 0;
	}




}



@media screen and (min-width: 1280px) {

	#page .container {
		max-width: 1080px
	}

}




