/*
 * Bit Cafè — design refresh (2026)
 * Loaded after css/style.css (see functions.php). Overrides the original look
 * without touching the Sass sources: remove the enqueue to roll back.
 */

:root {
	--bc-espresso: #17120e;
	--bc-espresso-2: #221a14;
	--bc-ink: #1f1913;
	--bc-text: #3a3129;
	--bc-muted: #6f655b;
	--bc-cream: #faf6ef;
	--bc-paper: #ffffff;
	--bc-line: #ebe2d4;
	--bc-accent: #dd9933;
	--bc-accent-strong: #c47f1d;
	--bc-accent-text: #9a5b12;
	--bc-accent-soft: #f7e7cd;
	--bc-radius: 18px;
	--bc-radius-sm: 12px;
	--bc-shadow: 0 1px 2px rgba(31, 25, 19, 0.04), 0 14px 34px -14px rgba(31, 25, 19, 0.22);
	--bc-shadow-hover: 0 2px 4px rgba(31, 25, 19, 0.05), 0 24px 48px -18px rgba(31, 25, 19, 0.32);
	--bc-display: var(--bc-sans);
	--bc-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--bc-glow: radial-gradient(60rem 32rem at 88% -10%, rgba(221, 153, 51, 0.38), transparent 60%),
		radial-gradient(42rem 26rem at -5% 110%, rgba(221, 153, 51, 0.16), transparent 60%),
		var(--bc-espresso);
}

/* ------------------------------------------------------------------ base */

body {
	font-family: var(--bc-sans);
	background: var(--bc-cream);
	color: var(--bc-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
	color: var(--bc-ink);
	letter-spacing: -0.015em;
}

a {
	color: var(--bc-accent-text);
	transition: color 0.2s ease;
}

a:hover {
	color: var(--bc-accent-strong);
}

::selection {
	background: var(--bc-accent-soft);
	color: var(--bc-ink);
}

/* ------------------------------------------------------------------ buttons */

.btn,
.wpcf7 input[type="submit"] {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--bc-accent);
	color: var(--bc-espresso);
	border: 0;
	border-radius: 999px;
	padding: 0.9rem 1.75rem;
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
	text-transform: none;
	box-shadow: 0 8px 20px -10px rgba(196, 127, 29, 0.8);
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.wpcf7 input[type="submit"]:hover {
	background: var(--bc-accent-strong);
	color: var(--bc-espresso);
	transform: translateY(-1px);
	box-shadow: 0 12px 24px -10px rgba(196, 127, 29, 0.9);
}

.btn.btn-small {
	padding: 0.65rem 1.3rem;
	font-size: 0.875rem;
}

/* ------------------------------------------------------------------ header */

header {
	background: rgba(23, 18, 14, 0.78);
	-webkit-backdrop-filter: saturate(150%) blur(16px);
	backdrop-filter: saturate(150%) blur(16px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	transition: background 0.3s ease, box-shadow 0.3s ease;
}

header.is-scrolled {
	background: rgba(23, 18, 14, 0.94);
	box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6);
}

.header-container {
	min-height: 76px;
}

.header-container .logo img {
	height: 38px;
	/* The logo's brown "CA" monogram was designed for the old orange header:
	   brighten it to the accent orange on the dark one (white stays white). */
	filter: brightness(2.1) saturate(1.25);
}

.header-container .navigation-container .menu {
	align-items: center;
}

.header-container .navigation-container .menu > li > a {
	text-transform: capitalize;
}

.header-container .navigation-container ul li a {
	color: rgba(255, 255, 255, 0.78);
	text-transform: none;
	letter-spacing: 0;
	font-weight: 500;
	font-size: 0.95rem;
	padding: 1.75rem 0.85rem;
}

.header-container .navigation-container ul li a:hover,
.header-container .navigation-container ul li.current_page_item > a,
.header-container .navigation-container ul li.current-menu-item > a,
.header-container .navigation-container ul li.current-menu-ancestor > a {
	color: #fff;
}

.header-container .navigation-container ul li.current_page_item > a,
.header-container .navigation-container ul li.current-menu-item > a {
	box-shadow: inset 0 -2px 0 var(--bc-accent);
}

.header-container .navigation-container ul li .sub-menu {
	background: var(--bc-paper);
	border: 1px solid var(--bc-line);
	border-radius: var(--bc-radius-sm);
	box-shadow: var(--bc-shadow);
	padding: 0.5rem;
	right: auto;
	left: 0;
	min-width: 17rem;
}

.header-container .navigation-container ul li .sub-menu a {
	color: var(--bc-ink);
	text-align: left;
	padding: 0.7rem 0.9rem;
	border-radius: 8px;
	box-shadow: none !important;
}

.header-container .navigation-container ul li .sub-menu a:hover {
	background: var(--bc-cream);
	color: var(--bc-accent-text);
}

.header-container .navigation-container .lang-switcher {
	border-left-color: rgba(255, 255, 255, 0.15);
}

.header-container .navigation-container .lang-switcher li a {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.5);
	box-shadow: none !important;
}

.header-container .navigation-container .lang-switcher li.current-lang a {
	color: var(--bc-accent);
}

@media (min-width: 991px) {
	/* Last main-menu item ("Contatti" / "Contact") as a call-to-action pill. */
	.header-container .navigation-container .menu > li:last-child > a {
		background: var(--bc-accent);
		color: var(--bc-espresso);
		border-radius: 999px;
		padding: 0.55rem 1.15rem;
		margin-left: 0.6rem;
		font-weight: 600;
		box-shadow: none !important;
		transition: background 0.2s ease;
	}

	.header-container .navigation-container .menu > li:last-child > a:hover {
		background: #fff;
		color: var(--bc-espresso);
	}
}

@media (max-width: 990px) {
	.header-container .navigation-container {
		background: var(--bc-espresso);
		border-top: 1px solid rgba(255, 255, 255, 0.06);
		padding: 0.5rem 0 1.25rem;
		box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.6);
	}

	.header-container .navigation-container ul li a {
		padding: 0.85rem 1rem;
	}

	.header-container .navigation-container ul li .sub-menu {
		background: transparent;
		border: 0;
		box-shadow: none;
		padding: 0;
	}

	.header-container .navigation-container ul li .sub-menu a {
		color: rgba(255, 255, 255, 0.6);
		text-align: center;
	}

	.header-container .navigation-container .lang-switcher {
		border-top-color: rgba(255, 255, 255, 0.1);
		align-items: center;
	}

	/* Beats the original "ul li a:last-child" mobile rule in style.css. */
	.header-container .navigation-container ul.lang-switcher li a:last-child {
		padding: 0.6rem 1rem;
	}
}

/* ------------------------------------------------------------------ section titles */

.section-title {
	font-family: var(--bc-display);
	font-weight: 800 !important;
	letter-spacing: -0.035em;
	color: var(--bc-ink) !important;
	font-size: clamp(2rem, 4vw, 3rem) !important;
	line-height: 1.1;
}

.section-title::after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	border-radius: 3px;
	background: var(--bc-accent);
	margin: 1.25rem auto 0;
}

/* ------------------------------------------------------------------ homepage: hero */

section.homepage-slogan.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: 8rem 0 7rem;
	background: var(--bc-espresso);
	color: #fff;
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.5;
	overflow: hidden;
	overflow: clip; /* not programmatically scrollable (focus / scrollIntoView can't shift the content) */
	isolation: isolate;
}

section.homepage-slogan.hero::after {
	display: none;
}

/* Background: drifting "crema" blobs, a dot grid of bits, blinking pixels, film grain. */
.hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.hero-blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.55;
	translate: calc(var(--mx, 0) * var(--depth, 40px)) calc(var(--my, 0) * var(--depth, 40px));
	transition: translate 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
	will-change: transform;
}

.hero-blob--1 {
	--depth: 60px;
	width: 46vw;
	height: 46vw;
	max-width: 720px;
	max-height: 720px;
	right: -8vw;
	top: -14vw;
	background: radial-gradient(circle at 40% 40%, #f0b357, #c9781a 45%, transparent 66%);
	animation: hero-drift-1 22s ease-in-out infinite alternate;
}

.hero-blob--2 {
	--depth: -45px;
	width: 34vw;
	height: 34vw;
	max-width: 520px;
	max-height: 520px;
	right: 18vw;
	bottom: -16vw;
	background: radial-gradient(circle at 50% 50%, #8a3f12, #5a2a0e 55%, transparent 70%);
	opacity: 0.7;
	animation: hero-drift-2 26s ease-in-out infinite alternate;
}

.hero-blob--3 {
	--depth: 30px;
	width: 26vw;
	height: 26vw;
	max-width: 400px;
	max-height: 400px;
	left: -8vw;
	top: 30%;
	background: radial-gradient(circle at 50% 50%, #dd9933, transparent 68%);
	opacity: 0.22;
	animation: hero-drift-3 30s ease-in-out infinite alternate;
}

@keyframes hero-drift-1 {
	to { transform: translate(-6vw, 5vw) scale(1.12); }
}

@keyframes hero-drift-2 {
	to { transform: translate(8vw, -6vw) scale(0.9); }
}

@keyframes hero-drift-3 {
	to { transform: translate(6vw, -8vw) scale(1.2); }
}

.hero-grid {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.4px);
	background-size: 26px 26px;
	-webkit-mask-image: radial-gradient(ellipse 70% 70% at 72% 40%, #000 10%, transparent 72%);
	mask-image: radial-gradient(ellipse 70% 70% at 72% 40%, #000 10%, transparent 72%);
	translate: calc(var(--mx, 0) * -14px) calc(var(--my, 0) * -14px);
	transition: translate 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-bit {
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: 8px;
	height: 8px;
	background: var(--bc-accent);
	border-radius: 1px;
	opacity: 0;
	animation: hero-blink 5.5s steps(1, end) var(--d) infinite;
}

@keyframes hero-blink {
	0% { opacity: 0; }
	8% { opacity: 1; }
	16% { opacity: 0.35; }
	24% { opacity: 1; }
	40% { opacity: 0; }
}

.hero-grain {
	position: absolute;
	inset: -50%;
	opacity: 0.07;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	mix-blend-mode: overlay;
}

/* Layout */
.hero-inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 3rem;
}

.hero-copy > * {
	opacity: 0;
	transform: translateY(24px);
	animation: hero-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero-copy > :nth-child(1) { animation-delay: 0.1s; }
.hero-copy > :nth-child(2) { animation-delay: 0.25s; }
.hero-copy > :nth-child(3) { animation-delay: 0.5s; }

@keyframes hero-in {
	to { opacity: 1; transform: none; }
}

@keyframes hero-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Eyebrow pill */
.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0 0 1.75rem;
	padding: 0.4rem 0.9rem 0.4rem 0.7rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.75);
}

.hero-eyebrow-dot {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--bc-accent);
}

.hero-eyebrow-dot::after {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 1px solid var(--bc-accent);
	animation: hero-ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes hero-ping {
	0% { transform: scale(0.6); opacity: 0.9; }
	80%, 100% { transform: scale(1.8); opacity: 0; }
}

/* Title: light weight + heavy keyword, as in the original brand slogan */
.hero-title {
	margin: 0;
	max-width: 16em;
	font-family: var(--bc-sans);
	font-size: clamp(2.2rem, 4.5vw, 4.1rem);
	font-weight: 300;
	line-height: 1.05;
	letter-spacing: -1px;
	color: rgba(255, 255, 255, 0.92);
}

/* "section.homepage-slogan" prefix: beats the original "section.homepage-slogan b" rule in style.css. */
section.homepage-slogan .hero-title b,
section.homepage-slogan .hero-title strong {
	position: relative;
	display: inline-block;
	font-weight: 800;
	letter-spacing: -1px;
	color: #fff;
}

/* Hand-drawn underline that draws itself under the keyword */
.hero-title b::after,
.hero-title strong::after {
	content: "";
	position: absolute;
	left: -2%;
	right: -2%;
	bottom: -0.14em;
	height: 0.3em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 16 C 70 4, 140 6, 190 12 S 270 20, 296 8' fill='none' stroke='%23dd9933' stroke-width='6' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
	clip-path: inset(0 100% 0 0);
	animation: hero-draw 0.9s cubic-bezier(0.65, 0, 0.35, 1) 1.1s forwards;
}

@keyframes hero-draw {
	to { clip-path: inset(0 0 0 0); }
}

.hero-r-word {
	white-space: nowrap;
}

/* "sche(r)mi": the (r) collapses and reappears */
.hero-r {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
	max-width: 1.5em;
	color: var(--bc-accent);
	font-weight: 400;
	white-space: nowrap;
	animation: hero-r 6s cubic-bezier(0.65, 0, 0.35, 1) 2.4s infinite;
}

@keyframes hero-r {
	0%, 42% { max-width: 1.5em; opacity: 1; }
	52%, 88% { max-width: 0; opacity: 0; }
	98%, 100% { max-width: 1.5em; opacity: 1; }
}

/* Actions */
.hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.75rem;
	margin-top: 2.75rem;
}

.hero-actions .btn {
	padding: 1rem 1.6rem;
	font-size: 1rem;
}

.hero-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: rgba(255, 255, 255, 0.8);
	font-weight: 500;
	border-bottom: 1px solid rgba(255, 255, 255, 0.25);
	padding-bottom: 2px;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-link:hover {
	color: #fff;
	border-color: var(--bc-accent);
	text-decoration: none;
}

.hero-link span {
	transition: transform 0.2s ease;
}

.hero-link:hover span {
	transform: translateY(2px);
}

/* Rotating badge with the CA monogram and rising steam */
.hero-badge {
	position: relative;
	width: clamp(200px, 20vw, 280px);
	aspect-ratio: 1;
	opacity: 0;
	animation: hero-badge-in 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s forwards;
	translate: calc(var(--mx, 0) * -24px) calc(var(--my, 0) * -24px);
	transition: translate 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes hero-badge-in {
	from { opacity: 0; transform: scale(0.85) rotate(-20deg); }
	to { opacity: 1; transform: none; }
}

.hero-badge-ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	animation: hero-spin 24s linear infinite;
}

.hero-badge-ring text {
	fill: rgba(255, 255, 255, 0.8);
	font-family: var(--bc-sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

@keyframes hero-spin {
	to { transform: rotate(360deg); }
}

.hero-badge-core {
	position: absolute;
	inset: 24%;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 25%, #f0b357, var(--bc-accent) 55%, var(--bc-accent-strong));
	box-shadow: 0 20px 50px -15px rgba(221, 153, 51, 0.65), inset 0 -6px 18px rgba(0, 0, 0, 0.15);
}

.hero-badge-core img {
	width: 52%;
	height: auto;
	/* Turn the brown monogram into espresso ink on the orange disc. */
	filter: brightness(0.25) sepia(1) saturate(2) hue-rotate(-10deg);
}

.hero-steam {
	position: absolute;
	left: 50%;
	bottom: 88%;
	width: 60px;
	height: 70px;
	transform: translateX(-50%);
}

.hero-steam i {
	position: absolute;
	bottom: 0;
	width: 7px;
	height: 40px;
	border-radius: 7px;
	background: linear-gradient(to top, rgba(255, 255, 255, 0.75), transparent);
	filter: blur(2px);
	opacity: 0;
	animation: hero-steam 3.2s ease-out infinite;
}

.hero-steam i:nth-child(1) { left: 12px; animation-delay: 0s; }
.hero-steam i:nth-child(2) { left: 27px; animation-delay: 1s; height: 52px; }
.hero-steam i:nth-child(3) { left: 42px; animation-delay: 2s; }

@keyframes hero-steam {
	0% { transform: translateY(10px) scaleY(0.6); opacity: 0; }
	30% { opacity: 0.9; }
	100% { transform: translateY(-34px) scaleY(1.1) skewX(-12deg); opacity: 0; }
}

/* Scroll cue */
.hero-scroll {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 2rem;
	z-index: 3;
	width: max-content;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	transition: opacity 0.4s ease, color 0.2s ease;
	animation: hero-fade 0.9s ease 1.4s both;
}

.hero-scroll:hover {
	color: #fff;
	text-decoration: none;
}

.hero-scroll-mouse {
	position: relative;
	width: 26px;
	height: 42px;
	border: 2px solid currentColor;
	border-radius: 14px;
}

.hero-scroll-wheel {
	position: absolute;
	left: 50%;
	top: 7px;
	width: 4px;
	height: 8px;
	margin-left: -2px;
	border-radius: 2px;
	background: var(--bc-accent);
	animation: hero-wheel 1.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes hero-wheel {
	0% { transform: translateY(0); opacity: 0; }
	20% { opacity: 1; }
	70% { transform: translateY(12px); opacity: 0; }
	100% { transform: translateY(12px); opacity: 0; }
}

/* Fade the cue out once the page is scrolled (the entrance animation's fill
   would otherwise keep opacity at 1, so it is dropped here). */
header.is-scrolled ~ .hero .hero-scroll {
	animation: none;
	opacity: 0;
	pointer-events: none;
}

/* Smooth jump to the services */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

#servizi {
	scroll-margin-top: 76px;
}

@media (max-width: 990px) {
	/* Tablet & phone: no full-screen hero, height follows the content
	   (header + copy + room for the scroll cue). No badge. */
	section.homepage-slogan.hero {
		min-height: 0;
		padding: 8.5rem 0 7.5rem;
	}

	.hero-inner {
		grid-template-columns: 1fr;
	}

	.hero-badge {
		display: none;
	}

	.hero-blob--1 {
		width: 90vw;
		height: 90vw;
		right: -30vw;
		top: -20vw;
	}

	.hero-blob--2 {
		width: 70vw;
		height: 70vw;
		right: -10vw;
		bottom: -30vw;
	}
}

@media (max-width: 600px) {
	section.homepage-slogan.hero {
		padding: 7.5rem 0 6rem;
	}

	.hero-title {
		font-size: clamp(2rem, 8.6vw, 2.6rem);
	}

	.hero-actions {
		margin-top: 2rem;
	}

	.hero-scroll {
		bottom: 1.25rem;
	}

	.hero-scroll-label {
		display: none;
	}
}

/* Reduced motion: show everything in its final state. */
@media (prefers-reduced-motion: reduce) {
	.hero-copy > *,
	.hero-badge,
	.hero-scroll {
		opacity: 1 !important;
		transform: none !important;
	}

	.hero-title b::after,
	.hero-title strong::after {
		clip-path: none !important;
	}

	.hero-bit {
		opacity: 0.6 !important;
	}
}

/* ------------------------------------------------------------------ homepage: services */

section.homepage-servizi {
	padding: 6rem 0 2rem;
}

section.homepage-servizi .section-title {
	display: block;
	grid-column: 1 / -1;
	margin-bottom: 1.5rem;
}

section.homepage-servizi .container {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

section.homepage-servizi .servizi-item {
	width: auto;
	margin: 0;
	padding: 2rem;
	background: var(--bc-paper);
	border: 1px solid rgba(235, 226, 212, 0.7);
	border-radius: var(--bc-radius);
	box-shadow: var(--bc-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

section.homepage-servizi .servizi-item:hover {
	transform: translateY(-4px);
	box-shadow: var(--bc-shadow-hover);
}

section.homepage-servizi .servizi-item .icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: var(--bc-accent-soft);
	color: var(--bc-accent-text);
	font-size: 1.6rem;
}

section.homepage-servizi .servizi-item-title {
	text-align: left;
	font-size: 1.2rem;
	font-weight: 650;
	color: var(--bc-ink);
	margin: 1.25rem 0 0.5rem;
	letter-spacing: -0.01em;
}

section.homepage-servizi .servizi-item p {
	color: var(--bc-muted);
	font-size: 0.95rem;
	line-height: 1.6;
	margin: 0;
}

@media (max-width: 990px) {
	section.homepage-servizi .container {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}
}

@media (max-width: 600px) {
	section.homepage-servizi .container {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------------ homepage: brands */

section.homepage-brand {
	padding: 3.5rem 0;
}

section.homepage-brand .brand-item {
	opacity: 0.55;
	transition: filter 0.3s ease, opacity 0.3s ease;
}

section.homepage-brand .brand-item:hover {
	opacity: 1;
}

/* ------------------------------------------------------------------ homepage: team */

section.homepage-team {
	background: transparent !important;
	padding: 5rem 0;
}

section.homepage-team .container {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

section.homepage-team .section-title {
	grid-column: 1 / -1;
	margin-bottom: 2.5rem;
}

section.homepage-team .team-item {
	width: auto;
	margin: 0;
	padding: 1.5rem;
	background: var(--bc-paper);
	border: 1px solid var(--bc-line);
	border-radius: var(--bc-radius);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

section.homepage-team .team-item:hover {
	box-shadow: var(--bc-shadow);
	transform: translateY(-2px);
}

section.homepage-team .team-item-avatar {
	width: 64px;
	height: 64px;
	min-width: 64px;
	object-fit: cover;
	margin-right: 1rem;
	transition: filter 0.3s ease;
}

section.homepage-team .team-item:hover .team-item-avatar {
	filter: none;
}

section.homepage-team .team-item-title {
	font-size: 1.1rem;
	font-weight: 650;
	color: var(--bc-ink);
	margin: 0.35rem 0 0.25rem;
	letter-spacing: -0.01em;
}

section.homepage-team .team-item-role-container {
	margin-bottom: 1rem;
	gap: 0.5rem;
}

section.homepage-team .team-item-role {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--bc-accent-text);
	margin-right: 0;
}

section.homepage-team .team-item-social .icon {
	font-size: 1rem;
	color: var(--bc-muted);
}

section.homepage-team .team-item-social .icon:hover {
	color: var(--bc-accent-text);
	text-decoration: none;
}

section.homepage-team .team-item > p {
	font-size: 0.92rem;
	line-height: 1.6;
	color: var(--bc-muted);
	margin: 0;
}

@media (max-width: 990px) {
	section.homepage-team .container {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	section.homepage-team {
		padding: 3.5rem 0;
	}

	section.homepage-team .container {
		grid-template-columns: 1fr;
	}
}

/* ------------------------------------------------------------------ homepage: latest posts */

section.homepage-last-post {
	padding: 2rem 0 5rem;
}

section.homepage-last-post .section-title {
	margin-bottom: 3rem;
}

section.homepage-last-post .post-container .post-item {
	border-radius: var(--bc-radius);
	margin-bottom: 1.5rem;
	isolation: isolate;
}

section.homepage-last-post .post-container .post-item img {
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
	object-fit: cover;
}

section.homepage-last-post .post-container .post-item:hover img {
	transform: translate(-50%, -50%) scale(1.06);
}

section.homepage-last-post .post-container .post-item::after {
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	background: linear-gradient(to top, rgba(23, 18, 14, 0.88) 0%, rgba(23, 18, 14, 0.35) 45%, rgba(23, 18, 14, 0.05) 75%);
}

section.homepage-last-post .post-container .post-item:hover::after {
	background: linear-gradient(to top, rgba(23, 18, 14, 0.92) 0%, rgba(23, 18, 14, 0.5) 55%, rgba(23, 18, 14, 0.15) 85%);
}

section.homepage-last-post .post-container .post-item-title {
	top: auto;
	bottom: 0;
	transform: none;
	padding: 1.5rem;
	text-align: left;
	font-family: var(--bc-display);
	font-weight: 750;
	letter-spacing: -0.03em;
	font-size: 1.35rem;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

section.homepage-last-post .post-container .middle .post-item-title {
	font-size: 1.75rem;
}

section.homepage-last-post .post-container > div {
	width: calc(33.333% - 1rem);
}

@media (max-width: 990px) {
	section.homepage-last-post .post-container > div {
		width: 100%;
	}

	section.homepage-last-post .post-container .middle .post-item {
		height: 20rem;
	}
}

/* ------------------------------------------------------------------ page headers */

.alt-service-page-header,
.service-page-header {
	background: var(--bc-glow);
	padding: 11rem 0 6rem;
}

.service-page-header::after {
	display: none;
}

.alt-service-page-header h1,
.service-page-header h1 {
	font-family: var(--bc-display);
	font-weight: 750;
	letter-spacing: -0.03em;
	font-size: clamp(2.4rem, 5vw, 4rem);
	letter-spacing: -0.025em;
	line-height: 1.05;
	color: #fff;
}

.service-page-header-subtitle {
	color: rgba(255, 255, 255, 0.7);
	font-size: 1.05rem;
	letter-spacing: 0;
	max-width: 40rem;
}

.service-page-header .post-date {
	display: inline-block;
	margin-top: 1rem;
	padding: 0.3rem 0.8rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.85rem;
}

.service-page-header.service-page-header--post {
	padding: 11rem 0 8rem;
}

.service-page-header.service-page-header--post img {
	border-radius: var(--bc-radius);
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

@media (max-width: 990px) {
	.alt-service-page-header,
	.service-page-header,
	.service-page-header.service-page-header--post {
		padding: 7.5rem 0 3.5rem;
	}

	.service-page-header.service-page-header--post img {
		margin-top: 1.5rem;
	}
}

/* ------------------------------------------------------------------ service rows */

.service-row-container {
	margin-top: -3rem;
}

.servizio-row {
	margin: 4rem 0;
}

.servizio-row .servizio-image::after {
	background: var(--bc-cream);
}

.servizio-row-image {
	border-radius: 0 28px 28px 0;
	filter: saturate(0.85);
	box-shadow: var(--bc-shadow);
}

.servizio-row.servizio-row-odd .servizio-row-image {
	border-radius: 28px 0 0 28px;
}

.servizio-row h2 {
	text-shadow: none;
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 800;
	letter-spacing: 0.01em;
	line-height: 1.2;
	color: var(--bc-ink);
	margin-bottom: 1.25rem;
}

.servizio-row h2 span {
	display: inline;
	background: linear-gradient(transparent 62%, var(--bc-accent-soft) 62%);
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

.servizio-row-text {
	font-size: 1.05rem;
	line-height: 1.75;
	color: var(--bc-text);
}

@media (max-width: 990px) {
	.servizio-row {
		margin: 2.5rem 0;
	}

	.servizio-row-image,
	.servizio-row.servizio-row-odd .servizio-row-image {
		border-radius: 0;
	}

	.servizio-row .servizio-image {
		margin-bottom: 2rem;
	}
}

/* ------------------------------------------------------------------ blog list */

.container-blog {
	padding-top: 4rem;
	padding-bottom: 2rem;
}

div.post-item {
	gap: 1.75rem;
	padding: 1.25rem;
	margin-bottom: 1.25rem;
	background: var(--bc-paper);
	border: 1px solid var(--bc-line);
	border-radius: var(--bc-radius);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

div.post-item:hover {
	box-shadow: var(--bc-shadow);
	transform: translateY(-2px);
}

div.post-item .post-item-image {
	padding-right: 0;
	flex: 0 0 auto;
}

div.post-item .post-item-image img {
	width: 13rem;
	height: 13rem;
	object-fit: cover;
	border-radius: var(--bc-radius-sm);
	display: block;
}

div.post-item .post-item-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

div.post-item .post-item-content h3 {
	font-family: var(--bc-display);
	font-weight: 750;
	letter-spacing: -0.03em;
	font-size: 1.5rem;
	line-height: 1.2;
	margin-bottom: 0.75rem;
}

div.post-item .post-item-content h3 a {
	color: var(--bc-ink);
}

div.post-item .post-item-content h3 a:hover {
	color: var(--bc-accent-text);
	text-decoration: none;
}

div.post-item .post-item-content p {
	color: var(--bc-muted);
	font-size: 0.95rem;
	line-height: 1.65;
}

div.post-item .post-item-content a.read-more {
	color: var(--bc-accent-text);
	font-size: 0.85rem;
	letter-spacing: 0.04em;
}

div.post-item .post-item-content a.read-more::after {
	content: " →";
	transition: margin 0.2s ease;
}

div.post-item:hover .post-item-content a.read-more::after {
	margin-left: 0.25rem;
}

@media (max-width: 990px) {
	div.post-item .post-item-image img {
		width: 100%;
		height: 14rem;
	}
}

/* ------------------------------------------------------------------ single post content */

.container-blog .col-md-9 > :is(p, ul, ol, blockquote, h2, h3, h4, figure) {
	max-width: 44rem;
}

.container-blog .col-md-9 > p,
.container-blog .col-md-9 > ul,
.container-blog .col-md-9 > ol {
	font-size: 1.08rem;
	line-height: 1.8;
	color: var(--bc-text);
}

.container-blog .col-md-9 > h2,
.container-blog .col-md-9 > h3 {
	font-family: var(--bc-display);
	font-weight: 750;
	letter-spacing: -0.03em;
	line-height: 1.2;
	margin: 2.5rem 0 1rem;
}

.container-blog .col-md-9 > h2 { font-size: 1.9rem; }
.container-blog .col-md-9 > h3 { font-size: 1.5rem; }

.container-blog .col-md-9 > h4 {
	font-size: 1.15rem;
	font-weight: 650;
	margin: 2rem 0 0.75rem;
}

.container-blog .col-md-9 > p a,
.container-blog .col-md-9 li a {
	text-decoration: underline;
	text-decoration-color: rgba(196, 127, 29, 0.4);
	text-underline-offset: 3px;
}

.container-blog .col-md-9 .wp-block-quote,
.container-blog .col-md-9 > blockquote {
	margin: 2rem 0;
	padding: 1.25rem 1.5rem;
	border-left: 3px solid var(--bc-accent);
	background: var(--bc-paper);
	border-radius: 0 var(--bc-radius-sm) var(--bc-radius-sm) 0;
	font-family: var(--bc-display);
	font-size: 1.2rem;
	line-height: 1.55;
	color: var(--bc-ink);
}

.container-blog .col-md-9 .wp-block-image img,
.container-blog .col-md-9 .wp-block-gallery img,
.container-blog .col-md-9 .wp-block-embed iframe {
	border-radius: var(--bc-radius-sm);
}

/* ------------------------------------------------------------------ sidebar */

.blog-sidebar .widget_search form div {
	background: var(--bc-paper);
	border: 1px solid var(--bc-line);
	border-radius: 999px;
	padding: 0.3rem;
	gap: 0.25rem;
}

.blog-sidebar .widget_search form div input[type="text"] {
	border: 0;
	background: transparent;
	padding: 0.4rem 0.75rem;
	outline: none;
	min-width: 0;
}

.blog-sidebar .widget_search form div input[type="submit"] {
	background: var(--bc-accent);
	color: var(--bc-espresso);
	border-radius: 999px;
	padding: 0.5rem 0.95rem;
	letter-spacing: 0.04em;
}

.blog-sidebar .widget_recent_entries,
.blog-sidebar .widget_categories,
.blog-sidebar .widget_tag_cloud {
	background: var(--bc-paper);
	border: 1px solid var(--bc-line);
	border-radius: var(--bc-radius);
	padding: 1.5rem;
}

.blog-sidebar .widget_recent_entries h2,
.blog-sidebar .widget_categories h2,
.blog-sidebar .widget_tag_cloud h2 {
	font-family: var(--bc-display);
	font-weight: 750;
	letter-spacing: -0.03em;
	font-size: 1.25rem;
	margin-bottom: 1rem;
}

.blog-sidebar .widget_recent_entries li,
.blog-sidebar .widget_categories li {
	padding: 0.65rem 0;
	border-top: 1px solid var(--bc-line);
	line-height: 1.4;
	font-size: 0.92rem;
}

.blog-sidebar .widget_recent_entries li:first-child,
.blog-sidebar .widget_categories li:first-child {
	border-top: 0;
	padding-top: 0;
}

.blog-sidebar .widget_recent_entries a,
.blog-sidebar .widget_categories a {
	color: var(--bc-ink);
	margin-bottom: 0;
}

.blog-sidebar .widget_recent_entries a:hover,
.blog-sidebar .widget_categories a:hover {
	color: var(--bc-accent-text);
	text-decoration: none;
}

.blog-sidebar .widget_tag_cloud a {
	background: var(--bc-accent-soft);
	color: var(--bc-accent-text);
	border-radius: 999px;
	padding: 0.2rem 0.7rem;
}

/* ------------------------------------------------------------------ contact */

.container-contact {
	padding-top: 4rem;
}

.container-contact .contact-information {
	background: var(--bc-paper);
	border: 1px solid var(--bc-line);
	border-radius: var(--bc-radius);
	padding: 1.75rem;
	font-size: 1.05rem;
	line-height: 1.6;
	margin-bottom: 1.5rem;
}

.container-contact .contact-information p:last-child {
	margin-bottom: 0;
}

.container-contact .icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--bc-line);
	background: var(--bc-paper);
	font-size: 1.1rem;
	color: var(--bc-ink);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.container-contact .icon:hover {
	background: var(--bc-accent);
	border-color: var(--bc-accent);
	color: var(--bc-espresso);
}

.form-container {
	background: var(--bc-paper);
	border: 1px solid var(--bc-line);
	border-radius: var(--bc-radius);
	padding: 2rem;
	box-shadow: var(--bc-shadow);
}

.form-container h3 {
	font-family: var(--bc-display);
	font-weight: 750;
	letter-spacing: -0.03em;
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	margin: 0 0 1.5rem;
}

.form-container label {
	margin-bottom: 0.85rem;
}

.form-container input[type="text"],
.form-container input[type="email"],
.form-container textarea {
	border: 1px solid var(--bc-line);
	border-radius: var(--bc-radius-sm);
	background: var(--bc-cream);
	padding: 0.85rem 1rem;
	font-size: 0.98rem;
	color: var(--bc-ink);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-container input[type="text"]:focus,
.form-container input[type="email"]:focus,
.form-container textarea:focus {
	border: 1px solid var(--bc-accent);
	background: var(--bc-paper);
	box-shadow: 0 0 0 4px rgba(221, 153, 51, 0.18);
}

.form-container textarea {
	min-height: 9rem;
}

.form-container .wpcf7-list-item {
	font-size: 0.9rem;
	color: var(--bc-muted);
	margin: 0.25rem 0 1rem;
}

.form-container input[type="checkbox"] {
	accent-color: var(--bc-accent-strong);
}

.wpcf7 form .wpcf7-response-output {
	border-radius: var(--bc-radius-sm);
	margin: 1rem 0 0;
	padding: 0.75rem 1rem;
}

/* ------------------------------------------------------------------ careers */

section.careers {
	padding-top: 4rem;
	font-size: 1.08rem;
	line-height: 1.75;
}

section.posizioni-aperte h2.h2-careers {
	font-family: var(--bc-display);
	font-weight: 750;
	letter-spacing: -0.03em;
	font-size: clamp(2rem, 4vw, 2.75rem);
}

section.posizioni-aperte .aCareer {
	background: var(--bc-paper);
	border: 1px solid var(--bc-line);
	border-radius: var(--bc-radius);
	padding: 2rem;
	margin-bottom: 1.25rem;
	line-height: 1.7;
}

section.posizioni-aperte .aCareer h3 {
	font-family: var(--bc-display);
	font-weight: 750;
	letter-spacing: -0.03em;
	font-size: 1.6rem;
	margin-bottom: 1rem;
}

/* ------------------------------------------------------------------ generic page (page.php) */

.service-page-header--post + .container {
	padding-top: 3rem;
}

/* ------------------------------------------------------------------ footer */

footer {
	background: var(--bc-espresso);
	box-shadow: none;
	margin-top: 9rem;
	padding-bottom: 2rem;
	color: rgba(255, 255, 255, 0.62);
}

footer .coffee {
	background: transparent;
	padding: 0;
	margin: 0 0 4.5rem;
	position: relative;
	top: -5rem;
	margin-bottom: -0.5rem;
}

footer .coffee .container {
	background: radial-gradient(30rem 18rem at 100% 0%, rgba(255, 255, 255, 0.22), transparent 60%),
		linear-gradient(135deg, #e6a648 0%, var(--bc-accent) 45%, var(--bc-accent-strong) 100%);
	border-radius: 28px;
	padding: 3rem 3rem;
	color: var(--bc-espresso);
	box-shadow: 0 30px 60px -30px rgba(196, 127, 29, 0.7);
}

footer .coffee .title {
	font-family: var(--bc-display);
	font-weight: 750;
	letter-spacing: -0.03em;
	font-size: clamp(2rem, 4vw, 3rem);
	letter-spacing: -0.025em;
	line-height: 1.05;
	margin-bottom: 0.5rem;
}

footer .coffee p {
	font-size: 1.1rem;
	margin: 0;
	color: rgba(23, 18, 14, 0.78);
}

footer .coffee .coffee-cta {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: auto;
	background: var(--bc-espresso);
	color: #fff;
	border-radius: 999px;
	padding: 1rem 1.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	transition: transform 0.2s ease, background 0.2s ease;
}

footer .coffee .coffee-cta:hover {
	background: #000;
	color: #fff;
	transform: translateY(-1px);
}

@media (min-width: 768px) {
	footer .coffee .col-md-4 {
		text-align: right;
	}
}

footer .coffee .coffee-cta::after {
	content: "→";
	margin-left: 0.6rem;
}

footer h5 {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
}

footer .contacts {
	line-height: 1.9;
}

footer .mail {
	color: var(--bc-accent);
}

footer ul a {
	color: rgba(255, 255, 255, 0.72);
}

footer ul a:hover,
footer .mail:hover {
	color: #fff;
	text-decoration: none;
}

footer .social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	font-size: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: rgba(255, 255, 255, 0.8);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

footer .social a:hover {
	background: var(--bc-accent);
	border-color: var(--bc-accent);
	color: var(--bc-espresso);
}

footer .footer-logo {
	height: 72px;
	opacity: 0.9;
}

footer .footer-container {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding-top: 1.5rem;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.45);
}

footer .footer-container a {
	color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 990px) {
	footer .coffee .container {
		padding: 2.25rem 1.5rem;
		border-radius: 22px;
		margin: 0 15px;
		width: auto;
	}

	footer .coffee .coffee-cta {
		margin-top: 1.5rem;
	}
}

/* ------------------------------------------------------------------ motion */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}
