/*!
Theme Name: newdanceacademy
Theme URI: http://underscores.me/
Author: AFG
Author URI: http://underscores.me/
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: nda
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.

newdanceacademy 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.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
 *{
	text-align: center;
	margin:0;
	padding:0;
	box-sizing: border-box;
 }
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

body{
	background: #000;
	color: #fff;
}
.hero{
	width: 100vw;
	position: relative;

}
.hero-img {
	margin-top:20vh;
	width: 100%;
	object-fit: cover;
	height: 110vh;
}

.hero::after{
	display: block;
	content: '';
	width: 100%;
	height: 30vh;
	background: linear-gradient(0deg,rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
	position: absolute;
	bottom:0;
	left:0;
	z-index: 1;
}

.about-img {
	width: 80%;
	object-fit: cover;
	height: auto;
	aspect-ratio: 2/3;
	float: right;
}

.about{
	padding: 8rem 0 0 0;
}

.about p{ 
	text-align: justify;
}
.card-grid{
	display: grid;
	grid-template-columns: repeat(3, minmax(250px, 1fr) );
	gap: 3rem;
	justify-content: center;
	margin-top: 15rem;
	align-items: center;
	
}
.corso-card{
	background-color: aquamarine;
	width: 100%;
	aspect-ratio: 1;
	position: relative;
}



.corsi-img{
	top:0;
	left:0;
	width: 100%;
	height: auto;
	margin: auto;
	object-fit: cover;
	position: absolute;
	z-index: -1;
}

.corso-card::before{
	display: block;
	content:'';
	width: 100%;
	height: 100%;
	position: absolute;
	top:0;
	left:0;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.59) 0%, rgba(0, 0, 0, 0.59) 0%, rgba(0, 0, 0, 0.59) 0%, transparent 100%);
}
.corso-img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	
}
.corso-text{
	position: absolute;
	bottom:1rem;
	left:1rem;
	right:1rem;
	text-align: left;
	/* transition: all 0.3s ease-in; */
	/* opacity: 1;
	transform: scaleX(1); */
	/* transform-origin: left; */
}

.corso-text h4 {
	text-align: left;
}

/* .corso-card:hover > .corso-text {
	bottom:1rem;
	left:1rem;
	opacity: 1;
	transform: scaleX(1);
} */
.staff-grid{
	display: grid;
	grid-template-columns: repeat(3, minmax(250px, 1fr) );
	gap: 3rem;
	justify-content: center;
	margin-top: 15rem;
	align-items: center;
}
.staff-card{
	/* background-color: rgb(119, 203, 229); */
	width: 100%;
	aspect-ratio: 1;
	border-radius: 50%;
	overflow: hidden;
	display: flex;
	padding:1rem;
	flex-direction: column;
	justify-content: center;
	position: relative;
	cursor: pointer;
}

.staff-card:hover{
	/* background-color: aquamarine; */
}
.staff-text{
	text-align: left;
	opacity: 0;
	 transform: scaleY(0);
	 position: absolute;
	 margin-left:0.4rem;
	 max-width: 260px;
	 transform-origin: bottom;
	transition: all 0.3s ease-in;
	z-index: 2;
}

.staff-text span{
 font-style: italic;
}
.staff-text h4{
 font-size: calc(2rem + 1vw);
 font-weight: bold;
 text-align: left;
}

.staff-card:hover > .staff-text{
	opacity: 1;
	transform: scaleY(1);
}

.staff-card::after{
	display: block;
	position: absolute;
	content: '';
	width: 100%;
	height: 100%;
	top:0;
	opacity: 0;
	left:0;
	background-color: rgba(1, 1, 1, 0.503);
	transition: all 0.3s ease-in-out;
	z-index: 1;
}

.staff-card:hover::after {
	opacity: 1;
}
.staff-img{
	width: calc(100% + 2rem);
	height: calc(100% + 2rem);
	transform: translate(-1rem);
	object-fit: cover;
}

.eventi-grid{
	display: grid;
	grid-template-columns: repeat(3, minmax(250px, 1fr) );
	gap: 3rem;
	justify-content: center;
	margin-top: 15rem;
	align-items: center;
}
.eventi-card{
	background-color: rgb(234, 54, 54);
	width: 100%;
	height: 25vh;
	padding:1.6rem;
	border-radius: 20px;
}
.eventi-card p{
	text-align: left;
}
.eventi-card h3{
	text-align: left;
}
.allievi-card{
	/* background-color: rgb(119, 203, 229); */
	width: 20vw;
	aspect-ratio: 2/3;
	margin:2rem 0; 
}

.allievi-img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	}

.btn-primar{
	padding: 1rem 2rem;
	background: yellowgreen;
	border-radius: 4rem;	
	width: 200px;
	cursor: pointer;
}
.btn-primar:hover {
	background-color: rgb(95, 136, 14);
}
.footer{
	text-align: right;
	padding: 2rem;
	display: flex;
	flex-direction: row;
}
.footer-title{
	margin-bottom: 2rem;
}
.footer-text{
	text-align: right;
	margin-bottom: 0;
}
.f-img{
	width: 250px;
	height: auto;
	object-fit: contain;
}

.hero::before{
	height: 0!important;
}

section::before{
	display: block;
	content: '';
	top:0;
	left:0;
	width: 100vw;
	/* height: 40vh; */
	position: absolute;
	background: linear-gradient(180deg, #000, transparent);
}

section:nth-child(1)::before{
	height: 10vh;
}

.maps-img {
	width: 100%;
	object-fit: cover;
	height: 400px;
	margin-top: 4rem;
	margin-bottom: 4rem;
}
.insta-img{
	display: flex;
	justify-content: space-between;
	height: 30px;
	width: auto;
	/* aspect-ratio: 1;
	object-fit: cover; */
	/* border: white solid 2px;
	border-radius: 50%;
	margin: 1rem; */
}
.facebook-img{
	display: flex;
	justify-content: space-between;
	height: 30px;
	width: auto;
	/* aspect-ratio: 1;
	object-fit: cover; */
	/* border: white solid 2px;
	border-radius: 50%;
	margin: 1rem; */
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #000;
  box-shadow: 0 0 40px 0 rgba(255,255,255,0.3);
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  border-radius: 12px;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 24px;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.allievi-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.allievi-track {
  display: flex;
  flex-wrap: nowrap;
  will-change: transform;
}

.allievi-card {
  flex-shrink: 0;
  /* width: 200px; */
}

.allievi-img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

/* L'animazione sarà settata via JavaScript con la durata dinamica */
@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.link-utili li{
	text-align: end!important;
}
.link-utili li a {
    text-decoration: none;
    color: #fff; /* o il colore che preferisci */
    transition: color 0.3s ease;
	text-align: end;
}
.link-utili li a:hover {
    color: #ccc;
	text-align: end;
}



.border-red{
	border:2px solid red;
}


/* LOGO */
header .logo  {
  /* max-height: 60px; */
  max-width: 100px;
}

/* HAMBURGER */
.menu-ham {
  cursor: pointer;
  width: 30px;
  height: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-ham span {
  height: 4px;
  background: #ffffff;
  border-radius: 2px;
  transition: 0.3s ease;
}

/* OVERLAY */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000; /* verde scuro */
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  z-index: 1000;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.overlay nav ul {
  list-style: none;
  text-align: center;
  padding: 0;
}

.overlay nav ul li {
  margin: 20px 0;
}

.overlay nav ul li a {
  color: white;
  font-size: 2rem;
  text-decoration: none;
  transition: color 0.3s;
}

.overlay nav ul li a:hover {
  color: #cfcfcf;
}

/* Optional: animate hamburger on toggle */
.menu-ham.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 9px);
}
.menu-ham.active span:nth-child(2) {
  opacity: 0;
}
.menu-ham.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}


header {
	position: fixed;
	/* top:1rem; */
	left:0;
	z-index: 1100;
	width: 100vw;
	height: 100px;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	padding: 2rem;
	background-color: #000;
}

.text-start{
	text-align: start;
}

.content-text p {
	text-align: start;
}


/* 

SLIDESHOW


.hero {
  width: 100vw;
  position: relative;
  overflow: hidden;
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 110vh;
}

.slide {
  display: none;
  position: absolute;
  width: 100%;
  height: 110vh;
}

.hero-img {
  width: 100%;
  height: 110vh;
  object-fit: cover;
  margin-top: 20vh;
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
} 
*/

.hero {
  width: 100vw;
  height: 110vh;
  overflow: hidden;
  position: relative;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



@media (max-width: 767px) {

	.col-7{
		width: 100%;
	}
	.footer{
		flex-direction: column;
	}
	.modal-content{
		  max-width: 80vw;
	}

	.staff-text{
	text-align: left;
	opacity: 0;
	 transform: scaleY(0);
	 position: absolute;
	 margin-left:0.4rem;
	 max-width:200px;
	 transform-origin: bottom;
	transition: all 0.3s ease-in;
	z-index: 2;
}

  /* header {
    flex-direction: column;
    height: auto;
    padding: 1rem;
  } */

  .hero-video {
    height: 100vh;
    object-fit: cover;
  }

  .about-img {
    width: 100%;
    float: none;
    margin-top: 2rem;
  }
.insta-img{
	display: flex;
	justify-content: flex-end;
	height: 30px;
	width: auto;
	/* aspect-ratio: 1;
	object-fit: cover; */
	/* border: white solid 2px;
	border-radius: 50%;
	margin: 1rem; */
}
.facebook-img{
	display: flex;
	justify-content: flex-end;
	height: 30px;
	margin-top:8px;
	width: auto;
	/* aspect-ratio: 1;
	object-fit: cover; */
	/* border: white solid 2px;
	border-radius: 50%;
	margin: 1rem; */
}

  .card-grid,
  .staff-grid,
  .eventi-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 5rem;
  }

  .corso-card,
  .staff-card {
    aspect-ratio: auto;
    border-radius: 0;
  }

  .staff-card {
	height:400px;
    border-radius: 12px;
  }

  .staff-text,
  .corso-text {
    text-align: center;
  }

  .allievi-card {
    width: 60vw;
  }

  .modal-content {
    width: 95%;
  }

  .btn-primar {
    width: auto;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }

}


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

  .card-grid,
  .staff-grid,
  .eventi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 8rem;
  }

  .about-img {
    width: 100%;
    float: none;
    margin-top: 2rem;
  }

  .allievi-card {
    width: 30vw;
  }

  .modal-content {
    width: 85%;
  }

}


@media (min-width: 1280px) {

  .container {
    max-width: 1280px;
  }

  .card-grid,
  .staff-grid,
  .eventi-grid {
    gap: 4rem;
  }

  .allievi-card {
    width: 18vw;
  }

}


.logo img{
	height: 100px;
	width: auto;
}


.modal {
  display: none; 
  position: fixed; 
  z-index: 9999; 
  padding-top: 60px; 
  left: 0; top: 0;
  width: 100%; height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background: #000;
  margin: auto;
  padding: 20px;
  border-radius: 10px;
  max-width: 700px;
  position: relative;
  color: #fff;
}

.modal-content img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.close {
  position: absolute;
  top: 15px; right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}



/* Modal */
.staff-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}
.staff-modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}
.staff-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.8rem;
  color: #333;
  cursor: pointer;
}
.staff-modal-close:hover {
  color: #000;
}
#modalTitle {
  margin-top: 0;
  font-size: 1.5rem;
  color: #222;
}
#modalBody {
  margin-top: 12px;
  color: #444;
  font-size: 1rem;
  line-height: 1.5;
}



.carousel {
      position: relative;
      width: 100%;
      height: 100vh;
    }

    .carousel img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      object-fit: cover;
      opacity: 0;
      transition: opacity 1.5s ease-in-out;
    }

    .carousel img.active {
      opacity: 1;
    }