@import url('https://use.typekit.net/dar3pgc.css');

:root {
	--background-color: #000;
	/* Cambia dinamicamente */
	--text-color: #fff;
	--primary-color: #ffff00;
	--hover-color: #FFff00;
}

add_action('customize_register', 'mytheme_customize_register');

/* Applica i colori aggiornabili */
body {
	background-color: var(--background-color);
	color: var(--text-color);
}

a,
button {
	color: var(--primary-color);
}

.navbar,
.footer {
	background-color: var(--background-color);
}

.navbar .logo a,
.nav-item,
.footer-link {
	color: var(--primary-color);
	text-decoration: underline;
}

.nav-item:hover,
.footer-link:hover,
.navbar .logo a:hover {
	color: var(--hover-color);
	text-decoration: underline;
}

/* Generali */
html,
body {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	font-family: "neue-haas-grotesk-display", sans-serif;
	background-color: var(--background-color);
	color: var(--text-color);
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	width: 100%;
	box-sizing: border-box;
}

.container {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

/* Navbar e Footer */
.navbar,
.footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	width: 100%;
	background-color: var(--background-color);
	box-sizing: border-box;
	overflow: hidden;
}

/* Navbar e Footer Links */
.nav-links,
.footer-right {
	display: flex;
	gap: 30px;
	white-space: nowrap;
}

.navbar .logo a,
.nav-item,
.footer-link {
	font-size: 20px;
	font-weight: bold;
	color: var(--primary-color);
	text-decoration: none;
	transition: color 0.3s, transform 0.2s;
}

.nav-item:hover,
.footer-link:hover,
.navbar .logo a:hover {
	color: var(--hover-color);
	text-decoration: underline;
}

/* Footer */
.footer {
	border-top: 1px solid var(--primary-color);
	padding: 20px;
	margin-top: auto;
}

/* Contenuto Principale */
/* Stile generale */
/* Layout principale */
.page-content {
	max-width: 1920px;
	padding-right: 10px;
	padding-left: 10px;
	margin-right: 10px;
	margin-left: 10px;
	margin-top: 0px;
	padding-top: 0px;
}

/* Allineamento del testo */
.bio {
	font-size: 16px;
	line-height: 1.6;
	max-width: 1920px;
	margin: 10px auto 10px;
	text-align: left;
}

.bio .indent {
	display: block;
	text-indent: 30px;
}

/* Contenitore EDUCATION & JOB */
.info-container {
	display: flex;
	gap: 40px;
	justify-content: space-between;
	max-width: 100%;
}

@media screen and (max-width: 768px) {
	.info-container {
		flex-direction: column;
		/* Imposta la direzione su colonna */
		gap: 20px;
		/* Riduci lo spazio tra le sezioni */
	}
}


/* Link Saglietti Studio */
.info-entry a {
	color: var(--primary-color);
	text-decoration: none;
}

.info-entry a:hover {
	color: var(--primary-color);
	text-decoration: underline;
}

/* Responsive migliorato */

@media screen and (max-width: 768px) {
	.page-content {
		padding: 10px;
	}

	.bio,
	.info-container-progetti {
		max-width: 100%;
		flex-direction: column;

	}

	.info-container-progetti {
		gap: 20px !important;
	}
}

@media screen and (max-width: 480px) {
	.bio {
		font-size: 14px;
		line-height: 1.5;
	}

	.info-entry {
		font-size: 14px;
	}

	.info-container-progetti {
		gap: 10px !important;
	}
}


.progetti-container {
	padding: 17.215px;
	max-width: 1920px;
	margin: auto;
}

.progetti-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	justify-content: center;
}

.progetto {
	position: relative;
	width: 100%;
	height: auto;
}

.progetto img {
	width: 100%;
	height: auto;
	display: block;
}

.progetto .gif-animata {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}

.progetto:hover .gif-animata {
	opacity: 1;
}

.progetto:hover .static-img {
	opacity: 0;
}



/* Responsività */
@media (max-width: 1024px) {
	.progetti-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.progetti-grid {
		grid-template-columns: repeat(1, 1fr);
	}
}


/* Layout generale della pagina progetto */
/* Struttura della pagina */
.page-content {
	max-width: 1920px;
	padding-right: 10px;
	padding-left: 10px;
	margin-right: 10px;
	margin-left: 10px;
	margin-top: 0px;
	padding-top: 0px;
}

/* Testo descrizione progetto */
.bio {
	font-size: 16px;
	line-height: 1.6;
	max-width: 1920px;
	margin: 10px auto 10px;
	text-align: left;
}

/* Rimuoviamo l'indentazione solo per la pagina progetto */
.single-progetti .bio .indent {
	display: inline;
	text-indent: 0;
}

/* Titolo del progetto */
.titolo-progetto {
	color: var(--primary-color);
	font-size: 40px;
	font-weight: bold;
	margin-bottom: 5px;
}

/* Categoria del progetto */
.categoria-progetto {
	font-size: 16px;
	color: gray;
	margin-bottom: 30px;
}

/* Contenitore delle informazioni (CLIENT, MY ROLE, CONTRIBUTORS) */
.info-container-progetti {
	display: flex;
	gap: 20px;
	justify-content: space-between;
	max-width: 100%;
}

/* Sezioni delle informazioni */
.info-section {
	flex: 1;
	min-width: 300px;
}



.info-section h2 {
	color: var(--primary-color);
	font-weight: bold;
	font-size: 18px;
	margin-bottom: 0px;
}

.info-entry {
	font-size: 16px;
	margin: 0;
}

.project-gallery {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	/* spazio tra le immagini */
	width: 100%;
	max-width: 1600px;
	/* limite massimo */
	margin: 0 auto;
}

.project-gallery img {
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
}

/* layout mobile: immagini una sotto l’altra */
@media screen and (max-width: 1024px) {
	.project-gallery {
		grid-template-columns: 1fr;
		/* una colonna */
	}
}


a:hover,
button:hover {
	text-decoration: underline;
}


/* Cursore personalizzato */
.custom-cursor {
	position: fixed;
	width: 20px;
	/* Dimensione del cursore */
	height: 20px;
	background-color: #ffff00;
	/* Colore giallo */
	border-radius: 50%;
	pointer-events: none;
	/* Evita di interferire con i click */
	transform: translate(-50%, -50%);
	transition: transform 0.1s ease-out;
	z-index: 9999;
	/* Sopra tutti gli altri elementi */
	mix-blend-mode: difference;
	/* Effetto blending */
}

.custom-cursor {
	position: fixed;
	width: 10px;
	height: 10px;
	background-color: yellow;
	border-radius: 50%;
	pointer-events: none;
	/* Importante: evita che blocchi i clic */
	transform: translate(-50%, -50%);
	/* Centra il cursore rispetto al mouse */
	transition: transform 0.05s linear;
	/* Smorza il movimento */
}



/*
PER INSERIRE LA CATEGORIA APPENA SOTTO AL TITOLO DEL PROGETTO
(magari ha senso cambiare almeno il font del titolo ...)
.p categoria-progetto {
	
}*/
