* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--header-h: 92px;
	--page-w: 95vw;
	--page-max: 1900px;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: Arial, Helvetica, sans-serif;
	background: #f4f1ec;
	color: #1d1d1d;
	overflow-x: hidden;
}

img {
	width: var(--w, auto);
	height: var(--h, auto);
}

/* HEADER */
header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-h);
	z-index: 100;
	background: rgba(244, 241, 236, 0.94);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(0,0,0,0.08);
}

.navbar {
	width: var(--page-w);
	max-width: var(--page-max);
	height: 100%;
	margin: auto;
	padding: 12px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo-area {
	display: flex;
	align-items: center;
	gap: 24px;
}

.logo-area img {
	object-fit: contain;
}

.logo-text {
	font-size: 28px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}

nav a {
	margin-left: 36px;
	text-decoration: none;
	color: #1d1d1d;
	font-size: 22px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
}

nav a:hover {
	color: #8a6a43;
}

/* HERO */
.hero {
	width: var(--page-w);
	max-width: var(--page-max);
	height: 76vh;
	min-height: 560px;
	margin: var(--header-h) auto 0;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	padding: 0 70px 90px;
	color: white;
}

.hero img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: 0;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(0,0,0,0.72) 0%,
		rgba(0,0,0,0.45) 42%,
		rgba(0,0,0,0.18) 100%
	);
	z-index: 1;
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 950px;
}

.hero h1 {
	font-size: clamp(54px, 6vw, 118px);
	line-height: 0.94;
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-bottom: 28px;
}

.hero p {
	font-size: 22px;
	max-width: 760px;
	line-height: 1.5;
	color: rgba(255,255,255,0.95);
}

.hero-button {
	display: inline-block;
	margin-top: 34px;
	padding: 17px 34px;
	background: white;
	color: #1d1d1d;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 700;
	border-radius: 999px;
	transition: transform 0.25s ease, background 0.25s ease;
}

.hero-button:hover {
	transform: translateY(-3px);
	background: #e8ded0;
}

/* SEZIONI */
section:not(.hero) {
	width: var(--page-w);
	max-width: var(--page-max);
	margin: auto;
	padding: 110px 0;
}

.section-title {
	margin-bottom: 50px;
}

.section-title h2 {
	font-size: clamp(42px, 5vw, 76px);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.section-title p {
	margin-top: 14px;
	color: #666;
	font-size: 19px;
}

/* GALLERY DESKTOP */
.gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.work {
	cursor: pointer;
	overflow: hidden;
	position: relative;
	background: #ddd;
}

.work img {
	width: 100%;
	height: 430px;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease;
}

.work:hover img {
	transform: scale(1.045);
}

/* TESTO SOPRA IMMAGINE */
.work-info {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 4;
	padding: 18px 24px 16px;
	min-width: 58%;
	max-width: 82%;
	background: rgba(244, 241, 236, 0.22);
	backdrop-filter: blur(1px);
}

.work-info h3 {
	font-size: 19px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #111;
}

.work-info p {
	margin-top: 6px;
	color: #222;
	font-size: 14px;
}

.mobile-gallery-arrow {
	display: none;
}

/* SERVIZI */
.services {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 48px;
	margin-top: 40px;
}

.service {
	padding: 10px 0 32px;
	border-bottom: 1px solid rgba(0,0,0,0.1);
}

.service h3 {
	font-size: 20px;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 10px;
}

.service p {
	color: #666;
	line-height: 1.5;
	font-size: 16px;
}

/* CONTATTI */
.contact {
	border-top: 1px solid rgba(0,0,0,0.12);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 70px;
}

.contact h2 {
	font-size: clamp(42px, 5vw, 76px);
	text-transform: uppercase;
}

.contact p {
	font-size: 19px;
	line-height: 1.6;
	color: #555;
	margin-top: 20px;
}

.contact-details {
	margin-top: 24px;
}

.contact-details p {
	margin-top: 8px;
	font-size: 18px;
}

.contact-details a {
	color: #1d1d1d;
	text-decoration: none;
	font-weight: 700;
}

.contact-details a:hover {
	color: #8a6a43;
}

.contact-icons {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 18px;
}

.contact-icons a {
	width: 64px;
	height: 64px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: white;
	box-shadow: 0 8px 22px rgba(0,0,0,0.08);
	transition: transform 0.25s ease;
}

.contact-icons a:hover {
	transform: translateY(-4px);
}

.contact-icons img {
	object-fit: contain;
}

/* FOOTER */
footer {
	padding: 55px 40px;
	text-align: center;
	color: #777;
	font-size: 14px;
}

.footer-logo {
	margin-bottom: 18px;
}

.footer-logo img {
	object-fit: contain;
	display: block;
	margin: 0 auto 12px;
}

.footer-logo strong {
	display: block;
	color: #1d1d1d;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.footer-links {
	margin-top: 12px;
}

.footer-links a {
	color: #777;
	text-decoration: none;
	font-size: 14px;
}

.footer-links a:hover {
	color: #1d1d1d;
}

/* LIGHTBOX */
.lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.94);
	z-index: 999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 40px;
}

.lightbox.active {
	display: flex;
}

.lightbox-content {
	max-width: 1400px;
	width: 100%;
}

.lightbox img {
	width: 100%;
	max-height: 76vh;
	object-fit: contain;
	display: block;
}

.lightbox-text {
	color: white;
	margin-top: 18px;
	display: flex;
	justify-content: space-between;
	gap: 30px;
}

.lightbox-text h3 {
	font-size: 26px;
	text-transform: uppercase;
}

.lightbox-text p {
	color: rgba(255,255,255,0.75);
	max-width: 650px;
	line-height: 1.5;
}

.close {
	position: fixed;
	top: 25px;
	right: 35px;
	color: white;
	font-size: 42px;
	cursor: pointer;
	z-index: 1000;
}

.arrow {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	color: white;
	font-size: 58px;
	cursor: pointer;
	z-index: 1000;
	user-select: none;
	padding: 20px;
}

.arrow.left {
	left: 25px;
}

.arrow.right {
	right: 25px;
}

.counter {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255,255,255,0.8);
	font-size: 15px;
	letter-spacing: 1px;
}

/* PRIVACY */
.privacy-page {
	padding-top: 180px;
	max-width: 1000px;
}

.privacy-content p {
	font-size: 18px;
	line-height: 1.7;
	color: #555;
	margin-top: 18px;
}

.privacy-content h3 {
	font-size: 22px;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-top: 40px;
	margin-bottom: 10px;
}

.privacy-content ul {
	margin-top: 18px;
	margin-left: 24px;
	line-height: 1.8;
	color: #555;
	font-size: 18px;
}

.privacy-content a {
	color: #1d1d1d;
	font-weight: 700;
	text-decoration: none;
}

.privacy-content a:hover {
	color: #8a6a43;
}

/* SCHERMI GRANDI */
@media (min-width: 1600px) {
	.work img {
		height: 520px;
	}

	.hero {
		height: 78vh;
		min-height: 640px;
	}
}

/* TABLET / PICCOLI LAPTOP */
@media (max-width: 1024px) {
	:root {
		--header-h: 88px;
		--page-w: 94vw;
	}

	.gallery,
	.services {
		grid-template-columns: repeat(2, 1fr);
	}

	.work img {
		height: 390px;
	}

	.contact {
		grid-template-columns: 1fr;
	}

	.logo-text {
		font-size: 22px;
	}

	nav a {
		font-size: 18px;
		margin-left: 24px;
	}

	.hero {
		padding: 0 42px 70px;
		min-height: 520px;
	}

	.hero h1 {
		font-size: clamp(48px, 8vw, 88px);
	}
}

/* TABLET VERTICALE */
@media (max-width: 768px) {
	:root {
		--header-h: 86px;
		--page-w: 94vw;
	}

	.navbar {
		padding: 12px 0;
	}

	.logo-area {
		gap: 14px;
	}

	.logo-text {
		font-size: 18px;
	}

	nav a {
		margin-left: 14px;
		font-size: 14px;
	}

	.hero {
		height: 68vh;
		min-height: 500px;
		padding: 0 28px 56px;
	}

	.hero-button {
		padding: 14px 22px;
		font-size: 14px;
	}

	.gallery,
	.services {
		grid-template-columns: 1fr;
	}

	.work img {
		height: 420px;
	}
}

/* SMARTPHONE */
@media (max-width: 480px) {
	:root {
		--header-h: 118px;
		--page-w: 94vw;
	}

	.navbar {
		flex-direction: column;
		gap: 10px;
		justify-content: center;
	}

	.logo-area img {
		width: var(--mw, var(--w, 40px));
		height: var(--mh, var(--h, 40px));
	}

	nav a {
		margin: 0 8px;
		font-size: 13px;
	}

	.logo-text {
		font-size: 16px;
	}

	.hero {
		height: 64vh;
		min-height: 460px;
		padding: 0 22px 46px;
	}

	.hero h1 {
		font-size: 38px;
	}

	.hero p {
		font-size: 16px;
	}

	section:not(.hero) {
		padding: 60px 0;
	}

	.gallery {
		display: grid;
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.work {
		position: relative;
		overflow: hidden;
	}

	.work img {
		width: 100%;
		height: var(--mobile-h, 320px);
		object-fit: cover;
	}

	.work-info {
		left: 0;
		bottom: 0;
		min-width: 62%;
		max-width: 86%;
		padding: 14px 18px 12px;
		background: rgba(244, 241, 236, 0.22);
	}

	.work-info h3 {
		font-size: 18px;
	}

	.work-info p {
		font-size: 14px;
		margin-top: 4px;
	}

	.mobile-gallery-arrow {
		display: flex;
		position: absolute;
		top: 45%;
		transform: translateY(-50%);
		width: 42px;
		height: 42px;
		border-radius: 50%;
		border: none;
		background: rgba(255,255,255,0.88);
		color: #1d1d1d;
		font-size: 28px;
		font-weight: 700;
		align-items: center;
		justify-content: center;
		z-index: 5;
		cursor: pointer;
		box-shadow: 0 6px 18px rgba(0,0,0,0.18);
	}

	.mobile-gallery-arrow.left {
		left: 10px;
	}

	.mobile-gallery-arrow.right {
		right: 10px;
	}

	.lightbox {
		padding: 20px;
	}

	.lightbox-text {
		flex-direction: column;
	}

	.arrow {
		font-size: 42px;
		padding: 10px;
	}

	.arrow.left {
		left: 5px;
	}

	.arrow.right {
		right: 5px;
	}
}

/* SMARTPHONE PICCOLI */
@media (max-width: 320px) {
	.logo-text {
		font-size: 13px;
	}

	nav a {
		font-size: 11px;
		margin: 0 5px;
	}

	.hero h1 {
		font-size: 32px;
	}

	.hero p {
		font-size: 14px;
	}

	.work img {
		height: 270px;
	}

	.work-info {
		padding: 12px 14px 10px;
	}

	.work-info h3 {
		font-size: 16px;
	}

	.work-info p {
		font-size: 13px;
	}

	.mobile-gallery-arrow {
		width: 36px;
		height: 36px;
		font-size: 24px;
	}
}
@media (max-width: 1600px){
}

/* COOKIE BANNER */
.cookie-banner {
	position: fixed;
	left: 24px;
	right: 24px;
	bottom: 24px;
	z-index: 100000;
	background: rgba(25, 25, 25, 0.96);
	color: #ffffff;
	border-radius: 18px;
	box-shadow: 0 16px 45px rgba(0,0,0,0.35);
	padding: 18px 22px;
}

.cookie-content {
	max-width: var(--page-max);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;	
	gap: 22px;
}

.cookie-content p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255,255,255,0.9);
}

.cookie-content a {
	color: #ffffff;
	text-decoration: underline;
	font-weight: 700;
}

.cookie-content button {
	border: 0;
	border-radius: 999px;
	background: #ffffff;
	color: #1d1d1d;
	padding: 11px 28px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	white-space: nowrap;
}

.cookie-content button:hover {
	background: #e8ded0;
}

@media (max-width: 768px) {
	.cookie-banner {
		left: 14px;
		right: 14px;
		bottom: 14px;
		padding: 16px;
	}

	.cookie-content {
		flex-direction: column;
		align-items: flex-start;
	}

	.cookie-content button {
		width: 100%;
	}
}
