/* ------------------- */
/*  Root variables     */
/* ------------------- */

:root {
	/* colors */
	/* --black: #0c0e18; */
	--black: #1b1b1b;
	--white: #fff;
	--giallo: #f9e800;

	/* font-families */
	--ff-serif: "Krona One", sans-serif;
	--ff-sans: "Space Grotesk", sans-serif;

	/* font-sizes */
	.fs-34 { font-size: 34px; }
	.fs-28 { font-size: 28px; }
	.fs-18 { font-size: 18px; }
}

/* ------------------- */
/*  2. Reset and base  */
/* ------------------- */

/* Box sizing */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	height: 100%; /* Garantisce che il 100% abbia un riferimento valido */
}

a:visited,
a:hover,
a:active,
a:link {
	text-decoration: none;
	color: inherit;
}

/* Reset margini */
body, h1, h2, h3, h4, h5, h6, p, figure, picture {
	margin: 0;
}

img, picture, video, canvas, svg {
	display: block;
	max-width: 100%;
}

svg {
	display: block;
	max-width: 100%;
}

img, video {
	height: auto;
}

/* Rende coerenti font e tipografia dei controlli */
input,
button,
textarea,
select {
	font: inherit;
}

/* ------------------- */
/*  3. Typography      */
/* ------------------- */

:is(h1, h2, h3, h4, h5, h6) {
	font-family: var(--ff-serif);
	font-weight: 400;
}

body {
	font-family: var(--ff-sans);
	font-size: 18px;
	color: var(--white);
	background-color: var(--black);
	line-height: 1.5;
}

/* ------------------- */
/*  4. Utility classes */
/* ------------------- */

/* Accessibilità */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap; /* added line */
	border: 0;
}

/* Colori */
.bg-white {
	background-color: var(--white);
}
/* ------------------- */
/*  5. Navbar          */
/* ------------------- */

.bb-logo {
	height: 70px;
}

.navbar {
	background-color: var(--black);
}

nav.navbar > div.container-fluid {
	padding-left: 30px;
	padding-right: 30px;
}

/* Modifica lo stile del button toggler */
.navbar-toggler.stile-toggler {
	border: 2px solid var(--giallo);
	border-radius: 50px;
	background-color: transparent;
	padding: 8px;
	transition: transform 0.3s ease;
}

.navbar-toggler.stile-toggler:hover {
	transform: scale(1.1); /* Ingrandisce il pulsante del 20% */
}

/* Modifica la box-shadow di bootstrap sul menu focused*/
.navbar-toggler.stile-toggler:focus {
	box-shadow: 1px 1px 10px 2px var(--giallo);
}

/* -------------Stile per il menu offcanvas aperto ----------------------*/

/*questo css è temporaneo da correggere in seguito*/
.navbar .offcanvas {
	width: 30%;
	padding-left: 50px;
	padding-bottom: 50px;
	color: var(--white);
	background-color: var(--black);
}

.offcanvas-footer a[href^="mailto:"]:hover,
.offcanvas-footer a[href^="mailto:"]:focus-visible,
.open-privacy-policy:hover,
.open-privacy-policy:focus-visible,
.open-cookie-policy:hover,
.open-cookie-policy:focus-visible {
	color: var(--giallo);
}

.navbar .bb-nav-link:hover,
.navbar .bb-nav-link:focus-visible {
	color: var(--giallo);
}

/* Voci di menù */
.bb-nav-link {
	font-family: var(--ff-serif);
	font-size: 28px;
	line-height: 1.5;
}
/* Personalizza il pulsante di chiusura del menu */
.offcanvas-header .btn-close {
	background: none; /* Rimuove l'immagine di sfondo */
	border: 2px solid var(--giallo);
	border-radius: 50px;
	width: 25px;
	height: 25px;
	padding: 6px;
	position: relative;
}

/* Sostituisci l'immagine SVG della "X" */
.offcanvas-header .btn-close::before {
	content: ""; /* Rimuove il contenuto SVG predefinito */
	display: block;
	width: 20px;
	height: 2px;
	background-color: var(--giallo);
	position: absolute;
	top: 50%;
	left: 25%;
}

.offcanvas-header {
	padding-right: 2rem;
	padding-top: 2rem;
}

/* ----------------------------- */
/*  6. Elenco portfolio          */
/* ----------------------------- */

.portfolio-list {
	display: flex;
	flex-wrap: wrap;
	padding: 0;
}

.portfolio-list > .portfolio-list-item {
	flex: 0 0 25%; /* 4 immagini per riga su desktop */
	max-width: 25%;
	aspect-ratio: 1 / 1;
}

.portfolio-list-image {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
	transition: transform 0.3s ease, filter 0.3s ease;
}

/* ----- EFFETTO HOVER sulle le immagini --------- */
/* Contenitore dell'immagine */
.portfolio-list-item {
	position: relative;
	overflow: hidden;
	cursor: none; /* Nasconde il cursore predefinito */
}

.portfolio-list-link {
	display: block;
	width: 100%;
	height: 100%;
	cursor: none; /* Nasconde la manina sui link del portfolio */
}

/* Ingrandimento immagine al passaggio del mouse */
.portfolio-list-item:hover .portfolio-list-image {
	transform: scale(1.1);
}

/* ---------------------------- */
/*  Custom cursor per la home   */
/* ---------------------------- */
.portfolio-list-cursor {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	width: 64px;
	height: 64px;
	object-fit: contain;
	border: 0;
	outline: 0;
	box-shadow: none;
	pointer-events: none;
	opacity: 0; /* Nasconde il cursore all'inizio */
	transition: opacity 0.15s ease;
}

.portfolio-list-cursor.is-visible {
	opacity: 1;
}

.portfolio-list-cursor.is-pressed {
	opacity: 0.40;
}

/* Titolo e descizione sopra l'immagine */
.portfolio-list-content {
	position: absolute;
	top: 50%;
	left: 20px;
	transform: translateY(-50%); /* Corregge il centramento verticale */
	color: var(--white);
	padding: 10px;
	text-align: left;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 2;
}
.portfolio-list-title {
	text-transform: uppercase;
}
/* Effetto al passaggio del mouse */
.portfolio-list-item:hover .portfolio-list-content {
	opacity: 1;
}

/* Sfondo nero che appare in hover*/
.portfolio-list-item::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0); /* Inizialmente trasparente */
	transition: background 0.3s ease-in-out;
	pointer-events: none; /* Evita che interferisca con il cursore */
	z-index: 0;
}

/* Sfondo nero che appare in hover */
.portfolio-list-item:hover::after {
	background: rgba(0, 0, 0, 0.7);
}

/* ------------------- */
/*   About             */
/* ------------------- */
.about-foto img {
	height: 100%; /* Altezza pari alla finestra del browser */
	object-fit: cover; /* Riempe la colonna senza deformarsi */
	display: block;
}

.about-testi {
	padding: 100px 70px;
	color: var(--black);
	text-align: center;
}

.about-nome {
	margin-bottom: 50px;
	font-family: var(--ff-serif);
	font-size: 60px;
	line-height: 6rem;
}

.contatti-marquee {
	overflow: hidden;
	padding: 100px 0;
	font-family: var(--ff-serif);
	font-size: 100px;
	-webkit-text-stroke: 1px var(--giallo);
    -webkit-text-fill-color: transparent;	
	line-height: 1;
	/* text-transform: uppercase; */
}

.contatti-marquee-track {
	display: flex;
	width: max-content;
	animation: contatti-marquee 28s linear infinite;
}

.contatti-marquee-group {
	display: flex;
	justify-content: space-around;
	gap: 2rem;
	min-width: 100vw;
	padding: 0 1rem;
	white-space: nowrap;
}

@keyframes contatti-marquee {
	to {
		transform: translateX(-50%);
	}
}

/* --------------------------------------------------- */
/*  Dettaglio portfolio                                    */
/* --------------------------------------------------- */
.portfolio-detail {
	color: var(--white);
}

.portfolio-navigation-link {
	position: fixed;
	top: 50%;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	color: var(--white);
	font-family: var(--ff-sans);
	font-size: 12px;
	letter-spacing: .12em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	transform: translateY(-50%);
	transition: transform .5s cubic-bezier(.26, .69, .36, 1), color .3s ease;
}

.portfolio-navigation-link::after {
	content: "";
	display: block;
	width: 1px;
	height: 40px;
	background-color: currentColor;
}

.portfolio-navigation-link span {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}

.portfolio-navigation-previous {
	left: 32px;
}

.portfolio-navigation-next {
	right: 32px;
}

.portfolio-navigation-link:hover,
.portfolio-navigation-link:focus-visible {
	color: var(--giallo);
	transform: translateY(calc(-50% - 14px));
}

.portfolio-navigation-link:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 8px;
}

.portfolio-detail-content {
	padding-top: 20px;
	padding-bottom: 20px;
}
.portfolio-detail-image {
	width: 100%;
	height: auto;
}

.portfolio-detail-title {
	font-size: 56px;
	line-height: 1.15em;
	
	overflow-wrap: anywhere;
	text-transform: uppercase;
		
	-webkit-text-stroke: 1px var(--white); /* Contorno bianco */
	-webkit-text-fill-color: transparent; /* Rende il testo trasparente */
}
.portfolio-detail-category {
	font-size: 20px;
	line-height: 1.4em;
	margin-top: 20px;
	/* color: var(--black); */
}

.portfolio-detail-description {
	margin-top: 10px;
	font-size: 24px;
	line-height: 1.3em;
	font-weight: 300;
}
.portfolio-detail-image-secondary {
	margin-top: 60px;
}

/* ------------------- */
/*  Footer             */
/* ------------------- */
main {
	border-bottom: 1px solid rgba(255, 255, 0, 0.4);
}
.copyright {
	font-family: var(--ff-sans);
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.nome-outline{
	margin-top: 70px;
	margin-bottom: -70px;
	font-family: var(--ff-sans);
	font-size: 180px;
	-webkit-text-stroke: 1px #fff; /* Contorno bianco */
	-webkit-text-fill-color: transparent; /* Rende il testo trasparente */
}
.btn.btn-contatti {
	--move-x: 0px;
	--move-y: 0px;

	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 140px;
	height: 140px;
	padding: 0;

	font-family: var(--ff-sans);
	font-size: 14px;
	text-transform: uppercase;

	background-color: transparent;
	border: none;
	border-radius: 50%;
	isolation: isolate;
}
.btn.btn-contatti::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;

	background-color: var(--giallo);
	border-radius: 50%;
	transform: translate3d(var(--move-x), var(--move-y), 0);
	transition: transform 0.25s ease-out;
	will-change: transform;
}
.btn.btn-contatti span {
	position: relative;
	z-index: 1;
	pointer-events: none;
}
a.btn.btn-contatti {
	color: var(--black);
}

.scroll-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	padding: 0;
	border: none;
	/* border: 2px solid var(--giallo); */
	border-radius: 50%;
	background-color: #000;
	color: var(--giallo);
	font-size: 26px;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.scroll-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.scroll-to-top:hover,
.scroll-to-top:focus-visible {
	background-color: var(--giallo);
	color:#000;
}

.scroll-to-top:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* ------------------------------------------------------ */
/*  Footer-contatti presente nella sola pagina about.php  */
/* ------------------------------------------------------ */
.footer-contatti {
	padding: 70px 0 40px;
}

.footer-contatti .footer-title {
	font-family: var(--ff-serif);
	font-size: 60px;
	margin-bottom: 30px;
}
.footer-description {
	color: var(--giallo);
	font-size: 30px;
	margin-bottom: 30px;
}
.contact-form {
	position: relative;
}

.contact-form-field {
	margin-bottom: 30px;
}

.contact-form-field input,
.contact-form-field textarea {
	display: block;
	width: 100%;
	padding: 4px 0 10px;
	font-family: var(--ff-sans);
	font-weight: 300;
	font-size: 16px;
	letter-spacing: 0.5px;
	color: var(--white);
	background-color: transparent;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 0;
}

.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder {
	font-family: var(--ff-serif);
	color: rgba(255, 255, 255, 0.75);
	opacity: 1;
}

.contact-form-field textarea {
	min-height: 52px;
	resize: vertical;
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
	outline: 0;
	border-bottom-color: var(--giallo);
}

.contact-form-consents {
	margin-top: 8px;
}

.contact-form-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 10px;
}

.contact-form-checkbox input {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-top: 5px;
	accent-color: var(--giallo);
}

.contact-form-checkbox label {
	font-size: 16px;
	line-height: 1.4;
}

.contact-form-checkbox a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.contact-form-checkbox a:hover,
.contact-form-checkbox a:focus-visible {
	color: var(--giallo);
}

.contact-form-submit {
	margin-top: 34px;
	text-align: center;
}

.contact-form-button {
	position: relative;
	padding: 4px 0 10px;
	color: var(--white);
	background: transparent;
	border: 0;
	font-size: 24px;
	cursor: pointer;
}

.contact-form-button::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2px;
	background-color: var(--giallo);
}

.contact-form-button:hover,
.contact-form-button:focus-visible {
	color: var(--giallo);
}

.contact-form-button:focus-visible {
	outline: 1px solid var(--giallo);
	outline-offset: 6px;
}

.divContactBoxLoader,
.contact-form-feedback {
	display: none;
	margin-top: 18px;
	font-size: 15px;
}

.lblContactBoxFeedbackOK {
	color: var(--giallo);
}

.lblContactBoxFeedbackError {
	color: #ff8c8c;
}

.contact-form-honeypot {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}





/* ========================================================================== 
   Media queries
   ========================================================================== */

/* Riduce le animazioni per chi le ha disattivate */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ========================================================================== 
   Breakpoint responsive — Bootstrap 5

   Approccio desktop-first:
   Desktop = da 1200px (stili di base, senza media query)
   lg  = fino a 1199.98px
   md  = fino a 991.98px
   sm  = fino a 767.98px
   xs  = fino a 575.98px
   ========================================================================== */

/* lg — Desktop con larghezza inferiore a 1200px */
@media (max-width: 1199.98px) {
  /* Regole lg */
}

/* Breakpoint personalizzato per il dettaglio portfolio */
@media (max-width: 1024px) {
	.portfolio-navigation {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 24px;
		width: 100%;
		padding: 0 32px 50px;
	}

	.portfolio-navigation-link {
		position: static;
		flex-direction: row;
		transform: none;
	}

	.portfolio-navigation-previous {
		flex-direction: row-reverse;
	}

	.portfolio-navigation-link::after {
		width: 40px;
		height: 1px;
	}

	.portfolio-navigation-link span {
		writing-mode: horizontal-tb;
		transform: none;
	}

	.portfolio-navigation-link:hover,
	.portfolio-navigation-link:focus-visible {
		transform: translateY(-3px);
	}

	.portfolio-detail {
		padding-top: 30px;
		padding-bottom: 30px;
	}

	.portfolio-detail-title {
		margin-top: 30px;
	}
}

/* md — Tablet con larghezza inferiore a 992px */
@media (max-width: 991.98px) {
	.portfolio-list > .portfolio-list-item {
		flex-basis: 50%;
		max-width: 50%;
	}
	.contact-form {
		margin-top: 50px;
	}
	.navbar .offcanvas {
	width: 40%;
	}
	
	.portfolio-detail-title {
		font-size: 46px;
	}
	.portfolio-detail-image-secondary {
	margin-top: 40px;
	}
}

/* sm — Tablet e smartphone con larghezza inferiore a 768px */
@media (min-width: 576px) and (max-width: 767.98px) {
	.container {
		max-width: 100%;
		padding-inline: 24px;
	}
}

@media (max-width: 767.98px) {
	.navbar .offcanvas {
	width: 50%;
	}
	.about-nome {
	margin-bottom: 20px;
	font-size: 50px;
	line-height: 4rem;
	}
	.about-testi {
	padding: 40px 70px 60px;
	}
	.footer-contatti .footer-title {
	font-size: 50px;
	margin-bottom: 40px;
	}
	.contact-form {
	margin-top: 40px;
	}
	.portfolio-detail-image-secondary {
	margin-top: 20px;
	}
	.contatti-marquee {
	padding: 50px 0;
	font-size: 70px;
	}
}

/* xs — Smartphone con larghezza inferiore a 576px */
@media (max-width: 575.98px) {
	.portfolio-navigation {
		gap: 12px;
		padding: 0 16px 40px;
	}

	.portfolio-navigation-link {
		gap: 8px;
		font-size: 9px;
		letter-spacing: .08em;
	}

	.portfolio-navigation-link::after {
		width: 20px;
	}

	.navbar-brand {
		flex-direction: column;
		text-align: center;
	}

	.navbar-brand img {
		max-height: 60px; 
	}

	.navbar .offcanvas {
		width: 80%;
	}
	.offcanvas-footer {
        font-size: 14px;
    }

	.bb-nav-link {
		font-size: 16px;
	}
	
	.portfolio-list > .portfolio-list-item {
		flex-basis: 100%;
		max-width: 100%;
	}

	.scroll-to-top {
		right: 16px;
		bottom: 36px;
		width: 50px;
		height: 50px;
		font-size: 22px;
	}
	.nome-outline{
	margin-top: 40px;
	margin-bottom: -40px;
	font-size: 90px;
	}

	.btn.btn-contatti {
	width: 100px;
	height: 100px;
	}
	.copyright {
	font-size: 8px;
	} 
	.about-nome {
	margin-bottom: 20px;
	font-size: 46px;
	}
	.about-testi {
	padding: 40px 20px 40px;
	}
	.contact-form-field {
		margin-bottom: 32px;
	}
	.contact-form-field input,
	.contact-form-field textarea {
		font-size: 16px;
	}
	.contact-form-checkbox label {
		font-size: 14px;
	}
	.footer-contatti .footer-title {
	font-size: 40px;
	margin-bottom: 30px;
	}
	.contact-form {
		margin-top: 30px;
	}
	
	.portfolio-detail-title {
		font-size: 36px;
	}
}
