/*
	Theme Name: Danza in Scena
	Theme URI: https://www.danzainscena.it
	Description: 
	Version: 1.0.0
	Author: dhynet (@dhynet)
	Author URI: https://www.dhynet.com
	Tags: 

	License: 
	License URI: 
*/

/*------------------------------------*\
    MAIN
\*------------------------------------*/


:root {

	--background: #ffffff;

	--text-color:	#201d1c;
	--title-color:	#201d1c;

	--text-font:	"Open Sans", sans-serif;
	--title-font:	"DM Serif Display", serif;

	--main-color:	#A62639;
	--second-color:	/*#DF2935*/ #DB324D;
	--alt-color:	#3C3C3C;
	--alt-color-light:#A29C9B;
	--alt-color-dark:#511C29;
	--alt-color-sepia: #F2E2D2;

}



/* global box-sizing */
*, *:after, *:before { -moz-box-sizing:border-box; box-sizing:border-box; -webkit-font-smoothing:antialiased; font-smoothing:antialiased; text-rendering:optimizeLegibility;}


/* clear */
.clear:before, .clear:after {content:' '; display:table;}
.clear:after {clear:both;}
.clear {*zoom:1;}
img {max-width:100%; vertical-align: middle;}


html, body {width:100%; margin:0; padding:0;}
html {scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: 100px;}
body { 
	font-family: var(--text-font);
	background: var(--background);  
	color: var(--main-text);
	font-size:1rem;
	line-height: 1.5;
}

a {color:#444; text-decoration:none; transition: 0.3s ease;}
a:hover {color:#444; transition: 0.3s ease;}
a:focus {outline:0;}
a:hover, a:active {outline:0;}
input:focus {outline:0; border:1px solid #04A4CC;}


/*------------------------------------*\
    STRUCTURE
\*------------------------------------*/

main {width:100%; margin:0; padding:0;}

/* wrapper */
.wrapper 		{width: min(100%, 1024px); margin:0 auto;}
.wrapper-big 	{width: min(100%, 1480px); margin:0 auto;}
.wrapper-medium {width: min(100%, 1280px); margin:0 auto;}
.wrapper-small 	{width: min(100%,  960px); margin:0 auto;}
.wrapper-xsmall {width: min(100%,  720px); margin:0 auto;}



/* header */
.header {background:var(--background); position:fixed; width:100%; top:0; left:0; margin:0; padding:0 1.75rem; z-index:999;}
.inner-header {display:flex; align-items:center; gap:2rem;}

.logo {}
.logo-img {width:9rem; height:auto; background:white; padding:0.5rem; transition: 0.6s ease;}

.sticky .logo {width:9rem;}
.sticky .logo-img {width:0; transition: 0.6s ease;}


/* nav */

.nav {flex:1; position:relative; margin:0; padding:1rem; font-family: var(--title-font); font-weight:500;}
.nav ul {position:relative; margin:0 auto; padding:0; list-style:none; display:flex; justify-content: center; gap:0.5rem;}
.nav ul li {margin:0; padding:0.25rem 0;}
.nav ul li a {color: var(--main-text); text-decoration: none; padding: 10px 14px; position: relative; z-index:2; transition: opacity 0.3s ease;}
.nav ul li a:hover {opacity:0.6;}
.nav ul li a.active {color: var(--second-color);}

.nav-indicator {position: absolute; bottom:0; left: 0; height: 3px; width: 0;
  
	background: var(--second-color);
  
	transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	z-index: 1;
}


/* Hamburgher Menù */
*{-webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-tap-highlight-color: transparent; /* For some Androids */}

.mobilenav-hidden {overflow:hidden;}

.top-animate {background: var(--text-color) !important; top: 13px !important; -webkit-transform: rotate(45deg); transform: rotate(45deg);}
.mid-animate {opacity: 0;}
.bottom-animate {background: var(--text-color) !important; top: 13px !important; -webkit-transform: rotate(-225deg); transform: rotate(-225deg);}

.top-menu {top: 5px; width: 30px; height: 3px; border-radius: 0px; background-color:  var(--text-color);}
.mid-menu {top: 13px; width: 30px; height: 3px; border-radius: 0px; background-color:  var(--text-color);}
.bottom-menu {top: 21px; width: 30px; height: 3px; border-radius: 0px; background-color:  var(--text-color);}


.icon {display:none; width:30px; height:30px; padding:0; margin:0;}
.menui {background: var(--text-color); position: absolute; z-index: 99999; transition: 0.6s ease; transition-timing-function: cubic-bezier(.75, 0, .29, 1.01);}
.hamburger {position:relative;}

.mobilenav {display:none; position:fixed; top: 0; left:0; z-index: 98; width:100vw; overflow-x: hidden; overflow-y: auto;}
.mobilenav .mobilenav-inner {background:var(--main-color); position:relative; width:100%; padding:140px 1.5rem 1.5rem 1.5rem; margin:0;}
.mobilenav ul {margin:0; padding:0; list-style:none;font-family: var(--title-font); font-weight:500; font-size:1.75rem; line-height:1.2;}
.mobilenav li {padding:0; margin:0 0 0.75rem 0;}
.mobilenav li a {color:white;}
.mobilenav li a:hover {opacity: 0.4;}
.mobilenav li a.selected {color:#ed253c;}
.mobilenav .current_page_item a {color:#87764D;}

.get-in-touch {display:flex; align-items:center; gap:1rem;}
.get-in-touch svg {width:2.5rem; padding:0.5rem;}



/* footer */
.footer {background:var(--alt-color); color:white; padding:4rem 1.75rem 1rem 1.75rem;}
.footer a {color:white;}
.footer .col {width:25%;}
.footer-title {font-family: var(--title-font); color:white; text-transform: uppercase; font-size:1.25rem; line-height:1.1; margin:0 0 1.5rem 0;}
.footer .contact_item {display:flex; align-items:center; gap:0.5rem; margin-bottom:0.5rem;}
.footer .contact_item svg {width:2.5rem; height:auto; border:1px solid rgba(255,255,255,0.3); border-radius:50%; padding:0.5rem;}
.inner-footer {display:flex; gap:3rem; margin-bottom:3rem;}
.colophon {font-size:0.75rem; text-align:center; border-top:1px solid white; padding:2rem 0;}
.accrediti {display:flex; justify-content: center; gap:1rem; margin-bottom:1rem;}
.accrediti img {height:3rem; background:white; padding:0.5rem; border-radius:0.25rem;}


.wp-block-latest-posts a {pointer-events: none; cursor: default; display:block; font-family:var(--title-font); font-size:2rem; line-height:1.2; margin-bottom:1rem;}


/*[id] {scroll-margin-top: 190px;} */

#backToTop {position: fixed; right: 24px; bottom: 1.75rem; width: 48px; height: 48px; border: none; border-radius: 4px; background: var(--second-color); color: white;
	font-size: 1rem;
	font-weight:bold;
	cursor: pointer;
	z-index:9999;
  
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  }
  
#backToTop.show {opacity: 1; visibility: visible; transform: translateY(0);}












/*------------------------------------*\
    PAGES
\*------------------------------------*/







/*------------------------------------*\
    LIBRARY
\*------------------------------------*/

.test {border:1px solid red;}
.hidden {display:none !important;}
.flex {display:flex;}
.grid {display:grid;}


.row_margin {margin-bottom:10rem !important;}
.row_padding {padding-inline:1.75rem;}
.cell_padding {padding:6rem;}

.main_title {position:relative; font-size:4rem; line-height:1.1; border-bottom:2px solid #f5f5f5; padding-bottom:1.75rem; margin-bottom:3rem;}
.main_title:before {content:''; position:absolute; top:0; right:0; width:2rem; height:0.5rem; background:var(--second-color);}
.negative_row {background:var(--second-color); color:white; padding-block:8rem;}
.negative_row h3 {color:white;}
.parallax {will-change: transform; transform: translate3d(0,0,0);}
.danzamare_button {position: relative;} 
.danzamare_button::after {content: ""; display: block; position:absolute; top:-10px; left:calc(50% - 22px);
width: 44px;
height: 11px;
background-color: #8ED1FC;
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='11' viewBox='0 0 88 11'%3E%3Cpath d='M87.387 9.066c-7.279 0-7.279-6.787-14.557-6.787-7.28 0-7.28 6.787-14.561 6.787-7.283 0-7.283-6.787-14.565-6.787l-14.562 6.787c-7.286 0-7.286-6.787-14.57-6.787-7.287 0-7.287 6.787-14.571 6.787' fill='none' stroke='black' stroke-width='5'/%3E%3C/svg%3E") center / contain no-repeat;
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='11' viewBox='0 0 88 11'%3E%3Cpath d='M87.387 9.066c-7.279 0-7.279-6.787-14.557-6.787-7.28 0-7.28 6.787-14.561 6.787-7.283 0-7.283-6.787-14.565-6.787l-14.562 6.787c-7.286 0-7.286-6.787-14.57-6.787-7.287 0-7.287 6.787-14.571 6.787' fill='none' stroke='black' stroke-width='5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.popupContainer .popImage {max-height:100vh; width:auto !important; left: 50% !important; transform: translate(-50%, 0);}






/* Typography
--------------------------------------------- */
 

p {margin-bottom:18px;}

p b, p strong {font-weight:700;}

h1, h2, h3, h4, h5 {
	font-family: var(--title-font);
	color:var(--title-color); 
	font-weight:normal; 
	margin:0 0 1.5rem 0; 
	padding:0;
}

h1 {font-size:4.5rem; line-height:1.1;}
h2 {font-size:2.25rem; line-height:1.2;}
h3 {font-size:2rem; line-height:1.2;}
h4 {font-size:1.5rem; line-height:1.2;}
h5 {font-size:1.25rem; line-height:1.1;}

small, .text-small {font-size: 12px; line-height:14px;}



/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}








/*------------------------------------*\
    ANIMATIONS
\*------------------------------------*/


/* Fade-in */

@keyframes fadeIn {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}
  
.fade-in {animation: fadeIn 1s ease-in-out 1s forwards;}


/* Fade-up */

@keyframes fadeUp {
	0% {
		opacity: 0;
		transform: translateY(20px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

.fade-up {animation: fadeUp 1s ease-out 1s forwards;} 
  
  
/* Ritardi progressivi */
.fade-up:nth-child(1) {animation-delay: 0s;}
.fade-up:nth-child(2) {animation-delay: 0.2s;}
.fade-up:nth-child(3) {animation-delay: 0.4s;}
.fade-up:nth-child(4) {animation-delay: 0.6s;}
.fade-up:nth-child(5) {animation-delay: 0.8s;}
.fade-up:nth-child(6) {animation-delay: 1s;}  





/*------------------------------------*\
    MISC
\*------------------------------------

::selection {background:yellow; color:black; text-shadow:none;}
::-webkit-selection {background:yellow; color:black; text-shadow:none;}
::-moz-selection {background:yellow; color:black; text-shadow:none;}

*/

/*------------------------------------*\
    WORDPRESS CORE
\*------------------------------------*/

/* Galleries
--------------------------------------------- */
.gallery {margin-bottom: 1.5em; display: grid; grid-gap: 1.5em;}
.gallery-item {display: inline-block; text-align: center; width: 100%;}
.gallery-columns-2 {grid-template-columns: repeat(2, 1fr);}
.gallery-columns-3 {grid-template-columns: repeat(3, 1fr);}
.gallery-columns-4 {grid-template-columns: repeat(4, 1fr);}
.gallery-columns-5 {grid-template-columns: repeat(5, 1fr);}
.gallery-columns-6 {grid-template-columns: repeat(6, 1fr);}
.gallery-columns-7 {grid-template-columns: repeat(7, 1fr);}
.gallery-columns-8 {grid-template-columns: repeat(8, 1fr);}
.gallery-columns-9 {grid-template-columns: repeat(9, 1fr);}
.gallery-caption {display: block;}

/* Alignments
--------------------------------------------- */
.alignnone {margin:1.5em;}
.alignleft {float: left; margin-right: 1.5em; margin-bottom: 1.5em;}
.alignright {float: right; margin-left: 1.5em; margin-bottom: 1.5em;}
.aligncenter {clear: both; display: block; margin-left: auto; margin-right: auto; margin-bottom: 1.5em;}

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 {background:#FFF; border:1px solid #F0F0F0; max-width:96%; 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 .wp-caption-text, .gallery-caption {font-size:11px; line-height:17px; margin:0; padding:0 4px 5px;}

/*------------------------------------*\
    PRINT
\*------------------------------------*/

@media print {
	* {background:transparent !important; color:#000 !important; box-shadow:none !important; text-shadow:none !important;}
	a, a:visited {text-decoration:underline;}
	a[href]:after {content:" (" attr(href) ")";}
	abbr[title]:after {content:" (" attr(title) ")";}
	.ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after {content:"";}
	pre,blockquote {border:1px solid #999; page-break-inside:avoid;}
	thead {display:table-header-group;}
	tr,img {page-break-inside:avoid;}
	img {max-width:100% !important;}
	@page {margin:0.5cm;}
	p, h2, h3 {orphans:3; widows:3;}
	h2, h3 {page-break-after:avoid;}
}






/*------------------------------------*\
    RESPONSIVE
\*------------------------------------*/

@media only screen
    and (max-width: 767px)
    and (orientation: portrait) {
		
		body {overflow-x: hidden;}
		html {scroll-padding-top: 130px;}
		h1 {font-size:4rem;}

		.row_margin {margin-bottom: 6rem !important;}
		.cell_padding {padding: 2rem;}

		.header {padding-inline:1rem; border-bottom:1px solid rgba(0,0,0,0.1);}
		.inner-header {gap:0rem;}
		.inner-header > div {width:33.33%;}
		.nav {display:none;}
		.mobile-nav {display:flex; justify-content: flex-end; padding-right:1rem;}
		.sticky .logo {width:33.33%;}
		.logo-img, .sticky .logo-img {width:6rem;}
		.icon {display:block;}
		.get-in-touch {display:flex; justify-content: center; gap:0;}
		.inner-footer {flex-direction: column;}
		.footer .col {width:100%;}

		.main_title {font-size: 2.5rem;}
		.danzamare_button::after {display:none;}
	}	


@media only screen
	and (min-width: 768px)
	and (max-width: 1479px)
	and (orientation: portrait) {
		body {overflow-x: hidden;}
		html {scroll-padding-top: 130px;}

		.row_margin {margin-bottom: 6rem !important;}
		.cell_padding {padding: 2rem;}

		.header {padding-inline:1rem; border-bottom:1px solid rgba(0,0,0,0.1);}
		.inner-header {gap:0rem;}
		.inner-header > div {width:33.33%;}
		.nav {display:none;}
		.mobile-nav {display:flex; justify-content: flex-end; padding-right:1rem;}
		.mobilenav li {margin: 0 0 1.75rem 0;}
		.sticky .logo {width:33.33%;}
		.logo-img, .sticky .logo-img {width:6rem;}
		.icon {display:block;}
		.get-in-touch {display:flex; justify-content: center; gap:0;}

		.nav-mobile {text-align:center;}

	}

@media only screen
	and (max-width: 1479px)
	and (orientation: landscape) {
		body {overflow-x: hidden;}	
		html {scroll-padding-top: 130px;}

		.header {padding-inline:1rem; border-bottom:1px solid rgba(0,0,0,0.1);}
		.inner-header {gap:0rem;}
		.inner-header > div {width:33.33%;}
		.nav {display:none;}
		.mobile-nav {display:flex; justify-content: flex-end; padding-right:1rem;}
		.mobilenav li {margin: 0 0 1.75rem 0;}
		.logo-img {width:6rem;}
		.icon {display:block;}
		.get-in-touch {display:flex; justify-content: center; gap:0;}

		.nav-mobile {text-align:center;}
	}