/* header */
/* L'Aforisma — Francesco Russo */

.afo-header {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 99995;
	width: 100%;
	box-sizing: border-box;
	background: rgba(10, 10, 10, 0.85);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--_gold-dim);
	transition: background 0.35s ease, box-shadow 0.35s ease;
}

.afo-header.is-scrolled {
	background: rgba(10, 10, 10, 0.96);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.afo-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 80px;
	padding: 0 clamp(1.25rem, 4vw, 3rem);
	max-width: 1440px;
	margin: 0 auto;
	box-sizing: border-box;
}

.afo-header__logo {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	text-decoration: none;
}

.afo-header__logo-img {
	height: 44px;
	width: auto;
	object-fit: contain;
}

.afo-header__nav {
	display: none;
}

.afo-header__menu {
	display: flex;
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.afo-header__link {
	position: relative;
	padding: 0.25em 0;
	font-family: 'Montserrat', sans-serif;
	font-weight: 400;
	font-size: 0.8rem;
	color: var(--_white);
	text-decoration: none;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	transition: color 0.3s ease;
}

.afo-header__link::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 1px;
	background: var(--_gold);
	transition: width 0.3s ease;
}

.afo-header__link:hover, .afo-header__link[aria-current="page"] {
	color: var(--_gold-light);
}

.afo-header__link:hover::after, .afo-header__link[aria-current="page"]::after {
	width: 100%;
}

.afo-header__cta {
	display: none;
	flex-shrink: 0;
	padding: 0.65em 1.8em;
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
	font-size: 0.75rem;
	color: var(--_black);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	background: var(--_gold);
	border: 1px solid var(--_gold);
	border-radius: 2px;
	transition: background 0.3s ease, color 0.3s ease;
}

.afo-header__cta:hover {
	color: var(--_gold-light);
	background: transparent;
}

.afo-header__burger {
	z-index: 10001;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 36px;
	height: 36px;
	padding: 6px;
	background: none;
	border: none;
	cursor: pointer;
}

.afo-header__burger-line {
	display: block;
	width: 100%;
	height: 1.5px;
	background: var(--_white);
	border-radius: 1px;
	transition: transform 0.35s ease, opacity 0.35s ease;
	transform-origin: center;
}

.afo-header__burger[aria-expanded="true"] .afo-header__burger-line:nth-child(1) {
	transform: translateY(6.5px) rotate(45deg);
}

.afo-header__burger[aria-expanded="true"] .afo-header__burger-line:nth-child(2) {
	opacity: 0;
}

.afo-header__burger[aria-expanded="true"] .afo-header__burger-line:nth-child(3) {
	transform: translateY(-6.5px) rotate(-45deg);
}

@media (min-width: 768px) {
	.afo-header__nav {
		display: block;
	}

	.afo-header__cta {
		display: inline-block;
	}

	.afo-header__burger {
		display: none;
	}
}

.afo-header__logo-testo {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.5rem;
	font-style: italic;
	color: var(--_white);
	letter-spacing: .02em;
}

/* mobile-nav */
/* L'Aforisma — Francesco Russo */

.afo-header__mobile {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 99990;
	display: none;
	width: 100%;
	height: 100%;
	overflow-y: auto;
	background-color: var(--_black);
}

.afo-header__mobile.is-open {
	display: block;
}

@media (min-width: 768px) {
	.afo-header__mobile,
	.afo-header__mobile.is-open {
		display: none;
	}
}

.afo-header__mobile-inner {
	padding: 120px 24px 60px;
	box-sizing: border-box;
	text-align: center;
}

.afo-header__mobile-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.afo-header__mobile-item {
	display: block;
	margin-bottom: 24px;
}

.afo-header__mobile-link {
	display: inline-block;
	padding: 4px 0;
	font-family: 'Cormorant Garamond', serif;
	font-weight: 300;
	font-size: 2rem;
	color: var(--_white);
	text-decoration: none;
	letter-spacing: 0.04em;
}

.afo-header__mobile-link:hover {
	color: var(--_gold-light);
}

.afo-header__mobile-cta {
	display: inline-block;
	margin-top: 32px;
	padding: 14px 40px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
	font-size: 0.8rem;
	color: var(--_black);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	background-color: var(--_gold);
	border: 1px solid var(--_gold);
	border-radius: 2px;
}

.afo-header__mobile-cta:hover {
	color: var(--_gold-light);
	background-color: transparent;
}

/* cookie-banner */
/* L'Aforisma — Francesco Russo */

#afo-cookie-banner {
	
	--_grey: rgba(245, 240, 232, 0.55);
	
	--_transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: fixed;
	bottom: clamp(1rem, 3vw, 2rem);
	left: 50%;
	z-index: 99999;
	width: min(680px, calc(100vw - 2rem));
	font-family: 'Montserrat', -apple-system, sans-serif;
	font-size: clamp(0.78rem, 1.1vw, 0.85rem);
	color: var(--_white);
	background: rgba(14, 14, 14, 0.97);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid var(--_gold-dim);
	border-radius: 6px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7), 0 1px 0 var(--_gold-dim);
	transform: translateX(-50%);
	animation: afoCbSlideUp 0.4s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

@keyframes afoCbSlideUp {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
}

@keyframes afoCbSlideUpMobile {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

#afo-cookie-banner[hidden] {
	display: none;
}

#afo-cookie-banner .afo-cb__inner {
	padding: clamp(1.2rem, 2.5vw, 1.8rem);
}

#afo-cookie-banner .afo-cb__title {
	margin: 0 0 0.5em;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: clamp(1.1rem, 1.8vw, 1.3rem);
	font-weight: 400;
	color: var(--_white);
}

#afo-cookie-banner .afo-cb__desc {
	margin: 0 0 1.2em;
	color: var(--_grey);
	line-height: 1.7;
	font-weight: 300;
}

#afo-cookie-banner .afo-cb__link {
	color: var(--_gold);
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color var(--_transition);
}

#afo-cookie-banner .afo-cb__link:hover {
	color: var(--_gold-light);
}

#afo-cookie-banner .afo-cb__prefs {
	margin-bottom: 1.2em;
	padding-top: 1em;
	border-top: 1px solid var(--_gold-dim);
}

#afo-cookie-banner .afo-cb__prefs[hidden] {
	display: none;
}

#afo-cookie-banner .afo-cb__pref-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.7em 0;
	border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

#afo-cookie-banner .afo-cb__pref-row:last-child {
	border-bottom: none;
}

#afo-cookie-banner .afo-cb__pref-info {
	display: flex;
	flex-direction: column;
	gap: 0.2em;
	flex: 1;
}

#afo-cookie-banner .afo-cb__pref-name {
	font-weight: 500;
	font-size: 0.82rem;
	color: var(--_white);
}

#afo-cookie-banner .afo-cb__pref-desc {
	font-weight: 300;
	font-size: 0.72rem;
	color: var(--_grey);
	line-height: 1.5;
}

#afo-cookie-banner .afo-cb__checkbox {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	white-space: nowrap;
	clip: rect(0, 0, 0, 0);
}

#afo-cookie-banner .afo-cb__toggle {
	display: flex;
	align-items: center;
	gap: 0.5em;
	flex-shrink: 0;
	cursor: pointer;
}

#afo-cookie-banner .afo-cb__toggle-track {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 22px;
	background: rgba(245, 240, 232, 0.15);
	border: 1px solid rgba(245, 240, 232, 0.2);
	border-radius: 999px;
	transition: background var(--_transition), border-color var(--_transition);
}

#afo-cookie-banner .afo-cb__toggle-thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 14px;
	height: 14px;
	background: var(--_grey);
	border-radius: 50%;
	transition: transform var(--_transition), background var(--_transition);
}

#afo-cookie-banner .afo-cb__checkbox:checked + .afo-cb__toggle-track {
	background: var(--_gold);
	border-color: var(--_gold);
}

#afo-cookie-banner .afo-cb__checkbox:checked + .afo-cb__toggle-track .afo-cb__toggle-thumb {
	background: var(--_black);
	transform: translateX(18px);
}

#afo-cookie-banner .afo-cb__toggle--locked {
	cursor: default;
}

#afo-cookie-banner .afo-cb__toggle-label {
	font-size: 0.7rem;
	color: var(--_gold);
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

#afo-cookie-banner .afo-cb__actions {
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
}

#afo-cookie-banner .afo-cb__save-wrap {
	margin-top: 0.8em;
}

#afo-cookie-banner .afo-cb__save-wrap[hidden] {
	display: none;
}

#afo-cookie-banner .afo-cb__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55em 1.2em;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
	border: none;
	border-radius: 2px;
	transition: background var(--_transition), color var(--_transition), border-color var(--_transition);
	cursor: pointer;
}

#afo-cookie-banner .afo-cb__btn:focus-visible {
	outline: 2px solid var(--_gold);
	outline-offset: 3px;
}

#afo-cookie-banner .afo-cb__btn--primary {
	color: var(--_black);
	background: var(--_gold);
}

#afo-cookie-banner .afo-cb__btn--primary:hover {
	background: var(--_gold-light);
}

#afo-cookie-banner .afo-cb__btn--secondary {
	color: var(--_grey);
	background: transparent;
	border: 1px solid rgba(245, 240, 232, 0.2);
}

#afo-cookie-banner .afo-cb__btn--secondary:hover {
	color: var(--_white);
	border-color: rgba(245, 240, 232, 0.4);
}

#afo-cookie-banner .afo-cb__btn--outline {
	color: var(--_gold);
	background: transparent;
	border: 1px solid var(--_gold-dim);
}

#afo-cookie-banner .afo-cb__btn--outline:hover {
	border-color: var(--_gold);
	background: rgba(201, 168, 76, 0.07);
}

#afo-cookie-banner .afo-cb__btn--full {
	width: 100%;
}

#afo-cookie-reopen {
	position: fixed;
	bottom: 1.2rem;
	left: 1.2rem;
	z-index: 99998;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	color: rgba(245, 240, 232, 0.5);
	background: rgba(14, 14, 14, 0.92);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(201, 168, 76, 0.25);
	border-radius: 50%;
	transition: color 0.3s, border-color 0.3s, transform 0.3s;
	cursor: pointer;
}

#afo-cookie-reopen:hover {
	color: var(--_gold);
	border-color: rgba(201, 168, 76, 0.6);
	transform: rotate(30deg);
}

#afo-cookie-reopen:focus-visible {
	outline: 2px solid var(--_gold);
	outline-offset: 3px;
}

#afo-cookie-reopen.is-hidden {
	opacity: 0;
	pointer-events: none;
}

@media (max-width: 480px) {
	#afo-cookie-banner {
		bottom: 0 !important;
		left: 0 !important;
		right: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		border-radius: 8px 8px 0 0;
		border-left: none;
		border-right: none;
		border-bottom: none;
		transform: none !important;
		animation: afoCbSlideUpMobile 0.4s cubic-bezier(0.34, 1.2, 0.64, 1) both;
	}

	#afo-cookie-banner .afo-cb__actions {
		flex-direction: column;
	}

	#afo-cookie-banner .afo-cb__btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	#afo-cookie-banner {
		animation: none;
	}

	#afo-cookie-banner * {
		transition: none !important;
	}
}

/* hero */
/* L'Aforisma — Francesco Russo */

.afo-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	overflow: hidden;
	background: var(--_black);
}

.afo-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.afo-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
	will-change: transform;
}

.afo-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(180deg, rgba(10, 10, 10, 0.72) 0%, rgba(10, 10, 10, 0.55) 35%, rgba(10, 10, 10, 0.65) 65%, rgba(10, 10, 10, 0.92) 100%);
}

.afo-hero__content {
	position: relative;
	z-index: 3;
	padding: clamp(6rem, 12vw, 10rem) clamp(1.5rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem);
	max-width: 900px;
	text-align: center;
}

.afo-hero__kicker {
	display: inline-block;
	margin-bottom: clamp(1rem, 2vw, 1.5rem);
	padding: 0.5em 1.2em;
	font-family: 'Montserrat', sans-serif;
	font-weight: 400;
	font-size: clamp(0.6rem, 0.9vw, 0.75rem);
	color: var(--_gold);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
	border: 1px solid var(--_gold-dim);
	background: rgba(10, 10, 10, 0.60);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.afo-hero__title {
	margin: 0 0 clamp(0.8rem, 1.5vw, 1.2rem);
	font-family: 'Cormorant Garamond', serif;
	font-weight: 300;
	font-style: italic;
	font-size: clamp(3rem, 9vw, 6.5rem);
	color: var(--_white);
	line-height: 1.05;
	letter-spacing: 0.02em;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 0, 0, 0.3);
}

.afo-hero__title-line {
	display: block;
	margin-top: 0.2em;
	font-family: 'Montserrat', sans-serif;
	font-weight: 300;
	font-style: normal;
	font-size: clamp(0.95rem, 2.2vw, 1.35rem);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

.afo-hero__subtitle {
	margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
	font-family: 'Montserrat', sans-serif;
	font-weight: 300;
	font-size: clamp(0.85rem, 1.3vw, 1.05rem);
	color: var(--_white);
	line-height: 1.8;
	letter-spacing: 0.03em;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.afo-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(0.8rem, 1.5vw, 1.2rem);
}

.afo-hero__cta {
	padding: 0.85em 2.2em;
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
	font-size: clamp(0.7rem, 0.9vw, 0.8rem);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	border-radius: 2px;
	transition: background var(--_transition), color var(--_transition), box-shadow var(--_transition), border-color var(--_transition);
}

.afo-hero__cta--primary {
	color: var(--_black);
	background: var(--_gold);
	border: 1px solid var(--_gold);
}

.afo-hero__cta--primary:hover {
	background: var(--_gold-light);
	box-shadow: 0 0 28px rgba(201, 168, 76, 0.25), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.afo-hero__cta--secondary {
	color: var(--_white);
	background: transparent;
	border: 1px solid var(--_gold-dim);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.afo-hero__cta--secondary:hover {
	color: var(--_gold-light);
	border-color: var(--_gold);
	box-shadow: 0 0 20px rgba(201, 168, 76, 0.12);
}

.afo-hero__scroll {
	position: absolute;
	bottom: clamp(1.5rem, 3vw, 2.5rem);
	left: 50%;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	transform: translateX(-50%);
}

.afo-hero__scroll-line {
	display: block;
	width: 1px;
	height: 40px;
	background: linear-gradient(180deg, var(--_gold) 0%, transparent 100%);
	animation: afo-scroll-pulse 2s ease-in-out infinite;
}

@keyframes afo-scroll-pulse {
	0%, 100% {
		opacity: 0.3;
		transform: scaleY(0.6);
	}
	50% {
		opacity: 1;
		transform: scaleY(1);
	}
}

@media (max-width: 480px) {
	.afo-hero__actions {
		flex-direction: column;
		align-items: center;
	}

	.afo-hero__cta {
		width: 100%;
		max-width: 280px;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.afo-hero__img {
		will-change: auto;
	}
}

