/* ==========================================================================
   FOLDOKI — stile principale
   ========================================================================== */

:root {
	--fk-bg: #fcece4;            /* colore campionato dai lati dell'immagine */
	--fk-bg-edge: #f6e3d9;       /* sfumatura leggermente più scura agli angoli */
	--fk-border: #ead3c7;        /* bordo tasti: appena più scuro dello sfondo */
	--fk-ink: #2b2a29;           /* grigio scuro per il logo */
	--fk-orange: #f85f01;        /* punto arancio */
	--fk-modal: #262626;         /* grigio scuro del pop-up */
	--fk-modal-2: #303030;
	--fk-radius: 22px;
	--fk-font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.fk-body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--fk-font);
	color: var(--fk-ink);
	background-color: var(--fk-bg);
}

/* riproduce le leggere sfumature ai bordi dell'immagine (strato fisso, ok anche su iOS) */
body.fk-body::before {
	content: "";
	position: fixed; inset: 0;
	z-index: -1;
	pointer-events: none;
	background: radial-gradient(ellipse 120% 90% at 50% 30%, var(--fk-bg) 55%, var(--fk-bg-edge) 100%);
}

body.fk-modal-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ---------- Hero: immagine al centro in alto ---------- */

.fk-hero {
	display: flex;
	justify-content: center;
	padding: clamp(28px, 4vw, 56px) 20px 0;
}

/* palco a livelli: base (scultura) + scritta, con parallasse 3D */
.fk-stage {
	--mx: 0;
	--my: 0;
	position: relative;
	width: min(980px, 100%);
	aspect-ratio: 1774 / 887;
	perspective: 1400px;
}

.fk-layer {
	position: absolute;
	inset: 0;
	transform-style: preserve-3d;
	will-change: transform;
}

.fk-layer img {
	position: absolute;
	display: block;
	max-width: none;
	-webkit-user-drag: none;
	user-select: none;
}

.fk-layer--base {
	transform:
		translate3d(calc(var(--mx) * -6px), calc(var(--my) * -8px), 0)
		rotateY(calc(var(--mx) * 6deg))
		rotateX(calc(var(--my) * -5deg));
}

.fk-layer--text {
	perspective: 700px;
	transform:
		translate3d(calc(var(--mx) * 9px), calc(var(--my) * 10px), 0)
		rotateY(calc(var(--mx) * -4deg));
}

.fk-base-anim { position: absolute; inset: 0; }

.fk-base {
	inset: 0;
	width: 100%;
	height: 100%;
	/* sfuma i bordi dell'immagine nello sfondo, niente stacchi */
	-webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%);
	        mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%);
}

.fk-layer .fk-dot {
	position: absolute;
	display: block;
	transform: translate3d(calc(var(--mx) * 6px), calc(var(--my) * 6px), 0);
}

.fk-layer .fk-dot img { inset: 0; width: 100%; height: 100%; }

/* immagine singola (se ne carichi una tua dal Personalizza) */
.fk-hero > img {
	width: min(980px, 100%);
	-webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%);
	        mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%);
}

/* ---------- Animazione d'ingresso ---------- */

.fk-js .fk-stage:not(.is-ready) .fk-anim { opacity: 0; }

.fk-stage.is-ready .fk-base-anim {
	animation: fk-sculpt-in 1.7s cubic-bezier(.16, 1, .3, 1) both;
}

.fk-stage.is-ready .fk-base {
	animation: fk-float 7s ease-in-out 1.7s infinite;
}

.fk-l {
	transform-origin: 50% 100%;
	backface-visibility: hidden;
}

.fk-stage.is-ready .fk-l {
	animation: fk-fold-in .95s cubic-bezier(.2, 1.35, .4, 1) both;
	animation-delay: calc(.55s + var(--i) * .085s);
}

.fk-stage.is-ready .fk-dot-anim {
	animation: fk-dot-in .95s cubic-bezier(.3, .7, .4, 1) 1.3s both;
	transform-origin: 50% 100%;
}

.fk-stage.is-ready .fk-tagline {
	animation: fk-tag-in 1.2s cubic-bezier(.65, 0, .35, 1) 1.5s both;
}

@keyframes fk-sculpt-in {
	0%   { opacity: 0; transform: translateY(40px) scale(.86) rotate(-7deg); filter: blur(16px); }
	55%  { opacity: 1; filter: blur(0); }
	100% { opacity: 1; transform: none; filter: none; }
}

@keyframes fk-float {
	0%, 100% { transform: translateY(0) rotate(0); }
	50%      { transform: translateY(-8px) rotate(.6deg); }
}

@keyframes fk-fold-in {
	0%   { opacity: 0; transform: rotateX(-100deg) translateY(8%); }
	45%  { opacity: 1; }
	100% { opacity: 1; transform: none; }
}

@keyframes fk-dot-in {
	0%   { opacity: 0; transform: translateY(-320%) scale(.5); }
	50%  { opacity: 1; transform: translateY(0) scale(1.18, .8); }
	68%  { transform: translateY(-38%) scale(.94, 1.06); }
	84%  { transform: translateY(0) scale(1.05, .95); }
	100% { opacity: 1; transform: none; }
}

@keyframes fk-tag-in {
	0%   { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(-14px); }
	100% { opacity: 1; clip-path: inset(0 0 0 0); transform: none; }
}

/* ---------- Griglia progetti: 2 tasti per riga ---------- */

.fk-projects {
	width: min(1100px, 100% - 40px);
	margin: clamp(16px, 3vw, 40px) auto clamp(60px, 8vw, 110px);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(16px, 2.4vw, 30px);
}

@media (max-width: 680px) {
	.fk-projects { grid-template-columns: 1fr; }
}

/* ---------- Tasto glossy ---------- */

.fk-btn {
	position: relative;
	display: block;
	aspect-ratio: 16 / 6;
	border-radius: var(--fk-radius);
	border: 1px solid var(--fk-border);
	background: linear-gradient(180deg, #fff6f1 0%, var(--fk-bg) 100%);
	overflow: hidden;
	cursor: pointer;
	text-decoration: none;
	color: var(--fk-ink);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, .9) inset,
		0 -1px 0 rgba(160, 90, 50, .06) inset,
		0 10px 28px -14px rgba(150, 70, 30, .35),
		0 2px 6px -2px rgba(150, 70, 30, .12);
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
	isolation: isolate;
	-webkit-tap-highlight-color: transparent;
}

.fk-btn__cover {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .6s cubic-bezier(.2, .8, .2, 1);
	z-index: -1;
}

/* luce glossy nella metà superiore */
.fk-btn::before {
	content: "";
	position: absolute;
	left: 3px; right: 3px; top: 3px;
	height: 48%;
	border-radius: calc(var(--fk-radius) - 3px) calc(var(--fk-radius) - 3px) 50% 50% / calc(var(--fk-radius) - 3px) calc(var(--fk-radius) - 3px) 18% 18%;
	background: linear-gradient(180deg, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .18) 70%, rgba(255, 255, 255, 0) 100%);
	pointer-events: none;
	z-index: 2;
}

/* riflesso che scorre all'hover */
.fk-btn::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
	transform: translateX(-120%);
	transition: transform .9s ease;
	pointer-events: none;
	z-index: 3;
}

.fk-btn:hover,
.fk-btn:focus-visible {
	transform: translateY(-3px);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, .9) inset,
		0 18px 38px -16px rgba(150, 70, 30, .45),
		0 4px 10px -4px rgba(150, 70, 30, .15);
}

.fk-btn:hover::after,
.fk-btn:focus-visible::after { transform: translateX(120%); }

.fk-btn:hover .fk-btn__cover { transform: scale(1.04); }

.fk-btn:active { transform: translateY(-1px) scale(.995); }

.fk-btn:focus-visible { outline: 2px solid var(--fk-orange); outline-offset: 3px; }

/* titolo + categoria */
.fk-btn__label {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; justify-content: center;
	padding: 0 clamp(20px, 3vw, 36px);
	z-index: 1;
}

.fk-btn__title {
	font-weight: 900;
	letter-spacing: -0.01em;
	max-width: 62%;
	font-size: clamp(17px, 1.8vw, 24px);
	line-height: 1.15;
	margin: 0;
}

.fk-btn__meta {
	margin-top: 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	opacity: .55;
}

.fk-btn:not(.fk-btn--has-cover) .fk-btn__title { max-width: none; }

/* sopra la copertina: velatura color crema da sinistra per far leggere il testo */
.fk-btn--has-cover .fk-btn__label {
	background: linear-gradient(90deg,
		rgba(252, 236, 228, .97) 0%,
		rgba(252, 236, 228, .90) 30%,
		rgba(252, 236, 228, .45) 55%,
		rgba(252, 236, 228, 0) 78%);
}
.fk-btn--has-cover .fk-btn__meta { opacity: .7; }

@media (max-width: 420px) {
	.fk-btn__title { max-width: 75%; }
}

/* ---------- Pop-up ---------- */

.fk-modal {
	position: fixed; inset: 0;
	z-index: 1000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(16px, 4vh, 48px) clamp(12px, 3vw, 40px);
	overflow-y: auto;
	overscroll-behavior: contain;
	/* effetto vetro sulla pagina dietro */
	background: rgba(252, 236, 228, .28);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	        backdrop-filter: blur(16px) saturate(140%);
	/* fuori dalla finestra il cursore diventa una X */
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='18' fill='%23262626' fill-opacity='.9'/%3E%3Cpath d='M13 13l14 14M27 13L13 27' stroke='%23fff' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") 20 20, pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s ease, visibility 0s linear .35s;
}

.fk-modal.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity .35s ease;
}

.fk-modal__window {
	position: relative;
	width: min(1100px, 100%);
	margin: auto 0;
	background: var(--fk-modal);
	color: #fff;
	font-family: var(--fk-font);
	border-radius: 26px;
	overflow: hidden;
	cursor: auto;
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset;
	transform: translateY(24px) scale(.98);
	transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

.fk-modal.is-open .fk-modal__window { transform: none; }

.fk-modal__close {
	position: absolute;
	top: clamp(12px, 2vw, 22px);
	right: clamp(12px, 2vw, 22px);
	z-index: 5;
	width: 58px; height: 58px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .9);
	background: var(--fk-orange);
	color: #fff;
	display: grid; place-items: center;
	cursor: pointer;
	box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .55);
	transition: transform .25s ease, background-color .25s ease;
}

.fk-modal__close svg { width: 24px; height: 24px; }
.fk-modal__close:hover { transform: rotate(90deg) scale(1.06); background: #ff7a26; }
.fk-modal__close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* copertina iniziale a tutta larghezza */
.fk-modal__cover,
.fk-single__cover {
	width: 100%;
	aspect-ratio: 21 / 9;
	object-fit: cover;
	background: #1d1d1d;
}

.fk-modal__body,
.fk-single__body {
	padding: clamp(26px, 4.5vw, 64px);
}

/* ---------- Contenuto (Gutenberg) dentro pop-up / articolo ---------- */

.fk-content {
	font-family: var(--fk-font);
	font-size: 17px;
	line-height: 1.7;
	color: #fff;
}

.fk-content > *:first-child { margin-top: 0; }
.fk-content > *:last-child { margin-bottom: 0; }

.fk-content h1,
.fk-content h2,
.fk-content h3,
.fk-content h4 {
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: #fff;
	margin: 1.6em 0 .6em;
}

.fk-content .fk-entry-title {
	font-size: clamp(30px, 4.2vw, 54px);
	font-weight: 900;
	margin: 0 0 .5em;
	padding-right: 70px;
}

.fk-content .fk-entry-title::after {
	content: "";
	display: inline-block;
	width: .22em; height: .22em;
	margin-left: .08em;
	border-radius: 50%;
	background: var(--fk-orange);
}

.fk-content h2 { font-size: clamp(24px, 2.6vw, 34px); }
.fk-content h3 { font-size: clamp(20px, 2vw, 26px); }
.fk-content p { margin: 0 0 1.2em; color: rgba(255, 255, 255, .86); }
.fk-content a { color: #ff8a3d; text-underline-offset: 3px; }
.fk-content strong { color: #fff; }
.fk-content img { border-radius: 14px; }
.fk-content figure { margin: 0 0 1.4em; }
.fk-content figcaption { font-size: 13px; color: rgba(255, 255, 255, .55); margin-top: .6em; }
.fk-content blockquote {
	margin: 1.6em 0; padding: .2em 0 .2em 1.2em;
	border-left: 3px solid var(--fk-orange);
	font-size: 1.15em; font-weight: 500;
}
.fk-content hr { border: 0; height: 1px; background: rgba(255, 255, 255, .14); margin: 2.4em 0; }
.fk-content .wp-block-button__link {
	background: var(--fk-orange); color: #fff; border-radius: 999px;
	font-weight: 700; padding: .8em 1.6em; text-decoration: none;
}
.fk-content .alignfull,
.fk-content .alignwide {
	margin-left: calc(-1 * clamp(26px, 4.5vw, 64px));
	margin-right: calc(-1 * clamp(26px, 4.5vw, 64px));
	max-width: none;
	width: auto;
}
.fk-content .alignfull img { border-radius: 0; width: 100%; }

/* ---------- Blocco Foldoki: Riga + Colonne ---------- */

.fk-riga {
	display: grid;
	grid-template-columns: var(--fk-tpl, repeat(var(--fk-cols, 2), minmax(0, 1fr)));
	gap: var(--fk-gap, 32px);
	margin: 0 0 var(--fk-gap, 32px);
}

.fk-riga.fk-valign-top    { align-items: start; }
.fk-riga.fk-valign-center { align-items: center; }
.fk-riga.fk-valign-bottom { align-items: end; }
.fk-riga.fk-valign-stretch { align-items: stretch; }

.fk-colonna {
	grid-column: span var(--fk-span, 1);
	min-width: 0;
}

.fk-colonna > *:first-child { margin-top: 0; }
.fk-colonna > *:last-child { margin-bottom: 0; }

.fk-colonna.fk-box {
	background: var(--fk-modal-2);
	border: 1px solid rgba(255, 255, 255, .07);
	border-radius: 18px;
	padding: clamp(18px, 2.4vw, 30px);
}

@media (max-width: 780px) {
	.fk-riga.fk-stack { grid-template-columns: 1fr; }
	.fk-riga.fk-stack > .fk-colonna { grid-column: auto; }
}

/* ---------- Blocco "Tasto Foldoki" ---------- */

.fk-tasto-wrap { display: flex; margin: 0 0 1.4em; }
.fk-tasto-wrap.fk-align-center { justify-content: center; }
.fk-tasto-wrap.fk-align-right { justify-content: flex-end; }

.fk-tasto.fk-tasto {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .7em;
	font-family: "Montserrat", system-ui, sans-serif;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: .01em;
	text-decoration: none;
	border-radius: 18px;
	overflow: hidden;
	isolation: isolate;
	cursor: pointer;
	transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, background-color .3s ease;
	-webkit-tap-highlight-color: transparent;
}

.fk-tasto--s { font-size: 14px; padding: .8em 1.4em; border-radius: 14px; }
.fk-tasto--m { font-size: 16px; padding: 1em 1.8em; }
.fk-tasto--l { font-size: 19px; padding: 1.1em 2.2em; border-radius: 22px; }
.fk-tasto--full { display: flex; width: 100%; }

/* luce glossy nella metà superiore */
.fk-tasto.fk-tasto::before {
	content: "";
	position: absolute;
	left: 2px; right: 2px; top: 2px;
	height: 50%;
	border-radius: 15px 15px 50% 50% / 15px 15px 20% 20%;
	background: linear-gradient(180deg, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, .14) 75%, rgba(255, 255, 255, 0) 100%);
	pointer-events: none;
	z-index: -1;
}

/* riflesso che scorre all'hover */
.fk-tasto.fk-tasto::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .4) 50%, transparent 65%);
	transform: translateX(-120%);
	transition: transform .8s ease;
	pointer-events: none;
}

.fk-tasto.fk-tasto:hover,
.fk-tasto.fk-tasto:focus-visible { transform: translateY(-2px); }
.fk-tasto.fk-tasto:hover::after,
.fk-tasto.fk-tasto:focus-visible::after { transform: translateX(120%); }
.fk-tasto.fk-tasto:active { transform: translateY(0) scale(.99); }
.fk-tasto.fk-tasto:focus-visible { outline: 2px solid #f85f01; outline-offset: 3px; }

.fk-tasto__arrow { width: 1.15em; height: 1.15em; flex: none; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.fk-tasto:hover .fk-tasto__arrow { transform: translateX(4px); }

/* Crema glossy: come i tasti dei progetti */
.fk-tasto.fk-tasto--crema {
	color: #2b2a29;
	background: linear-gradient(180deg, #fff6f1 0%, #fcece4 100%);
	border: 1px solid #ead3c7;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 10px 24px -12px rgba(150, 70, 30, .4), 0 2px 6px -2px rgba(150, 70, 30, .14);
}
.fk-tasto.fk-tasto--crema:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 16px 32px -14px rgba(150, 70, 30, .5), 0 4px 10px -4px rgba(150, 70, 30, .18); }

/* Arancio */
.fk-tasto.fk-tasto--arancio {
	color: #fff;
	background: linear-gradient(180deg, #ff8a3d 0%, #f85f01 100%);
	border: 1px solid #d95200;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 12px 26px -12px rgba(248, 95, 1, .7);
}
.fk-tasto.fk-tasto--arancio::before { background: linear-gradient(180deg, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, .08) 75%, rgba(255, 255, 255, 0) 100%); }

/* Grigio scuro */
.fk-tasto.fk-tasto--scuro {
	color: #fff;
	background: linear-gradient(180deg, #3b3b3b 0%, #262626 100%);
	border: 1px solid #1a1a1a;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 12px 26px -14px rgba(0, 0, 0, .7);
}
.fk-tasto.fk-tasto--scuro::before { background: linear-gradient(180deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, .03) 75%, rgba(255, 255, 255, 0) 100%); }

/* Contorno: prende il colore del testo intorno (bianco nei pop-up, scuro sulle pagine crema) */
.fk-tasto.fk-tasto--contorno {
	color: inherit;
	background: transparent;
	border: 1.5px solid currentColor;
}
.fk-tasto.fk-tasto--contorno::before { background: linear-gradient(180deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 100%); }
.fk-tasto.fk-tasto--contorno:hover { background: rgba(255, 255, 255, .06); }

/* dentro i pop-up il testo dei link è arancio: il tasto mantiene i suoi colori */
.fk-content .fk-tasto--crema { color: #2b2a29; }
.fk-content .fk-tasto--arancio,
.fk-content .fk-tasto--scuro { color: #fff; }
.fk-content .fk-tasto--contorno { color: #fff; }

/* ---------- Introduzione sotto l'animazione ---------- */

.fk-intro {
	width: min(760px, 100% - 40px);
	margin: clamp(4px, 1.5vw, 20px) auto clamp(30px, 4vw, 52px);
	text-align: center;
	font-family: var(--fk-font);
	font-size: clamp(16px, 1.35vw, 19px);
	font-weight: 500;
	line-height: 1.7;
	color: #4f4743;
}
.fk-intro > *:first-child { margin-top: 0; }
.fk-intro > *:last-child { margin-bottom: 0; }
.fk-intro p { margin: 0 0 .9em; }
.fk-intro strong, .fk-intro b { color: var(--fk-ink); font-weight: 800; }
.fk-intro a { color: #b84300; text-underline-offset: 3px; }
.fk-intro h2, .fk-intro h3 { font-weight: 900; color: var(--fk-ink); line-height: 1.2; margin: 0 0 .5em; }
.fk-js .fk-intro { animation: fk-intro-in 1s cubic-bezier(.2, .8, .2, 1) 1.9s both; }

@keyframes fk-intro-in {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: none; }
}

/* ---------- Contatti: icona + finestrella stile chatbot ---------- */

.fk-contact {
	position: fixed;
	right: clamp(14px, 2.4vw, 28px);
	bottom: clamp(14px, 2.4vw, 28px);
	z-index: 1100;
	font-family: var(--fk-font);
}

.fk-contact__toggle {
	position: relative;
	width: 62px; height: 62px;
	border-radius: 50%;
	border: 1px solid #d95200;
	background: linear-gradient(180deg, #ff8a3d 0%, #f85f01 100%);
	color: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
	overflow: hidden;
	isolation: isolate;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 14px 30px -12px rgba(248, 95, 1, .75), 0 3px 8px -2px rgba(0, 0, 0, .18);
	transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
	animation: fk-contact-hello 2.4s ease 3.2s 2;
	-webkit-tap-highlight-color: transparent;
}

/* luce glossy */
.fk-contact__toggle::before {
	content: "";
	position: absolute;
	left: 5px; right: 5px; top: 3px;
	height: 48%;
	border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
	background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .05));
	z-index: -1;
	pointer-events: none;
}

.fk-contact__toggle:hover { transform: translateY(-2px) scale(1.04); }
.fk-contact__toggle:active { transform: scale(.97); }
.fk-contact__toggle:focus-visible { outline: 3px solid #2b2a29; outline-offset: 3px; }

.fk-contact__icon {
	grid-area: 1 / 1;
	width: 28px; height: 28px;
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .25s ease;
}
.fk-contact__icon--close { opacity: 0; transform: rotate(-90deg) scale(.6); width: 24px; height: 24px; }
.fk-contact.is-open .fk-contact__icon--open { opacity: 0; transform: rotate(90deg) scale(.6); }
.fk-contact.is-open .fk-contact__icon--close { opacity: 1; transform: none; }
.fk-contact.is-open .fk-contact__toggle { animation: none; }

@keyframes fk-contact-hello {
	0%, 100% { box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 14px 30px -12px rgba(248, 95, 1, .75), 0 0 0 0 rgba(248, 95, 1, .45); }
	50%      { box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 14px 30px -12px rgba(248, 95, 1, .75), 0 0 0 14px rgba(248, 95, 1, 0); }
}

/* finestrella */
.fk-contact__panel {
	position: absolute;
	right: 0;
	bottom: 78px;
	width: min(380px, calc(100vw - 28px));
	max-height: min(640px, calc(100vh - 120px));
	max-height: min(640px, calc(100dvh - 120px));
	display: flex;
	flex-direction: column;
	background: var(--fk-modal);
	color: #fff;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .07) inset;
	transform-origin: calc(100% - 31px) calc(100% + 40px);
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px) scale(.9);
	transition: opacity .25s ease, transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .35s;
}

.fk-contact.is-open .fk-contact__panel {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity .25s ease, transform .45s cubic-bezier(.2, 1.15, .35, 1), visibility 0s;
}

.fk-contact__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 16px 16px 22px;
	background: #2e2e2e;
	border-bottom: 1px solid rgba(255, 255, 255, .07);
	flex: none;
}

.fk-contact__title {
	margin: 0;
	font-size: 19px;
	font-weight: 900;
	letter-spacing: -0.01em;
	color: #fff;
}

.fk-contact__dot {
	display: inline-block;
	width: .3em; height: .3em;
	margin-left: .08em;
	border-radius: 50%;
	background: var(--fk-orange);
}

.fk-contact__close {
	width: 36px; height: 36px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, .09);
	color: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: background-color .2s ease, transform .25s ease;
}
.fk-contact__close svg { width: 18px; height: 18px; }
.fk-contact__close:hover { background: var(--fk-orange); transform: rotate(90deg); }
.fk-contact__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.fk-contact__body {
	padding: 20px 22px 22px;
	overflow-y: auto;
	overscroll-behavior: contain;
	font-size: 15px;
	line-height: 1.6;
}
.fk-contact__body.fk-content p { margin: 0 0 .9em; }
.fk-contact__body.fk-content h2,
.fk-contact__body.fk-content h3,
.fk-contact__body.fk-content h4 { font-size: 17px; margin: 1.2em 0 .5em; }
.fk-contact__text { margin-bottom: 18px; }
.fk-contact__after { margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.fk-contact__after p { color: rgba(255, 255, 255, .6) !important; }
.fk-contact__hint { font-size: 14px; color: rgba(255, 255, 255, .7); }

/* ---------- Form dentro la finestrella (Quform e form generici) ---------- */

.fk-contact__form label,
.fk-contact__form .quform-label,
.fk-contact__form .quform-label > label {
	display: block;
	font-size: 13px !important;
	font-weight: 700 !important;
	color: rgba(255, 255, 255, .82) !important;
	margin: 0 0 6px;
}

.fk-contact__form input[type="text"],
.fk-contact__form input[type="email"],
.fk-contact__form input[type="tel"],
.fk-contact__form input[type="url"],
.fk-contact__form input[type="number"],
.fk-contact__form select,
.fk-contact__form textarea {
	width: 100% !important;
	box-sizing: border-box;
	background: #1c1c1c !important;
	border: 1px solid #3a3a3a !important;
	border-radius: 12px !important;
	color: #fff !important;
	font-family: var(--fk-font) !important;
	font-size: 15px !important;
	padding: 12px 14px !important;
	box-shadow: none !important;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.fk-contact__form textarea { min-height: 110px; resize: vertical; }

.fk-contact__form input::placeholder,
.fk-contact__form textarea::placeholder { color: rgba(255, 255, 255, .4); }

.fk-contact__form input:focus,
.fk-contact__form select:focus,
.fk-contact__form textarea:focus {
	outline: none;
	border-color: var(--fk-orange) !important;
	box-shadow: 0 0 0 3px rgba(248, 95, 1, .25) !important;
}

.fk-contact__form .quform-element,
.fk-contact__form .fk-field { margin-bottom: 14px; }

.fk-contact__form .quform-captcha-image img,
.fk-contact__form .fk-captcha-img { border-radius: 10px; display: block; margin-bottom: 8px; }

.fk-contact__form button[type="submit"],
.fk-contact__form input[type="submit"],
.fk-contact__form .quform-button-submit button,
.fk-contact__form .quform-submit button {
	position: relative;
	width: 100%;
	border: 1px solid #d95200 !important;
	border-radius: 14px !important;
	background: linear-gradient(180deg, #ff8a3d 0%, #f85f01 100%) !important;
	color: #fff !important;
	font-family: var(--fk-font) !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	padding: 14px 18px !important;
	cursor: pointer;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 12px 24px -12px rgba(248, 95, 1, .8) !important;
	transition: transform .25s ease, filter .25s ease;
	text-shadow: none !important;
}

.fk-contact__form button[type="submit"]:hover,
.fk-contact__form input[type="submit"]:hover,
.fk-contact__form .quform-button-submit button:hover,
.fk-contact__form .quform-submit button:hover { transform: translateY(-1px); filter: brightness(1.05); }

.fk-contact__form .quform-error-inner,
.fk-contact__form .quform-error { color: #ff9a66 !important; font-size: 13px !important; background: none !important; border: 0 !important; padding: 4px 0 0 !important; }
.fk-contact__form .quform-success-message { background: rgba(248, 95, 1, .14) !important; color: #fff !important; border: 1px solid rgba(248, 95, 1, .4) !important; border-radius: 12px !important; }

/* telefono: la finestrella diventa larga quasi quanto lo schermo */
@media (max-width: 560px) {
	.fk-contact__panel {
		position: fixed;
		left: 10px; right: 10px;
		bottom: 88px;
		width: auto;
		max-height: calc(100vh - 110px);
		max-height: calc(100dvh - 110px);
		transform-origin: calc(100% - 41px) calc(100% + 40px);
	}
	.fk-contact__toggle { width: 58px; height: 58px; }
}

@media print { .fk-contact { display: none; } }

/* ---------- Avviso privacy e cookie ---------- */

.fk-notice {
	position: fixed;
	left: clamp(12px, 2.4vw, 28px);
	bottom: clamp(12px, 2.4vw, 28px);
	z-index: 1150;
	width: min(430px, calc(100vw - 24px));
	padding: 20px 22px 18px;
	border-radius: 22px;
	border: 1px solid var(--fk-border);
	background: linear-gradient(180deg, #fff8f4 0%, var(--fk-bg) 100%);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 24px 50px -20px rgba(120, 55, 20, .45), 0 4px 12px -4px rgba(120, 55, 20, .15);
	font-family: var(--fk-font);
	font-size: 14px;
	line-height: 1.6;
	color: #4f4743;
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .4s ease, transform .5s cubic-bezier(.2, .9, .25, 1.1);
}
.fk-notice[hidden] { display: none; }
.fk-notice.is-visible { opacity: 1; transform: none; }

.fk-notice__text p { margin: 0 0 .6em; }
.fk-notice__text strong { color: var(--fk-ink); }
.fk-notice__text a, .fk-notice__links a { color: #b84300; font-weight: 700; text-underline-offset: 3px; }

.fk-notice__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 10px;
}
.fk-notice__links { margin: 0; display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.fk-notice__ok { flex: none; margin-left: auto; border-radius: 12px !important; }

@media (max-width: 560px) {
	.fk-notice { left: 10px; right: 10px; bottom: 10px; width: auto; }
	/* l'icona contatti sale sopra l'avviso finché è aperto */
	.fk-notice-on .fk-contact { bottom: calc(var(--fk-notice-h, 140px) + 22px); transition: bottom .3s ease; }
}

/* ---------- Riga in fondo al sito ---------- */

.fk-footer {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 18px;
	padding: 0 20px clamp(28px, 4vw, 44px);
	font-family: var(--fk-font);
	font-size: 13px;
	color: #8a7d76;
}
.fk-footer a { color: inherit; text-underline-offset: 3px; }
.fk-footer a:hover { color: #b84300; }

/* ---------- Pagina singola (fallback senza pop-up / link diretto) ---------- */

.fk-single {
	width: min(1100px, 100% - 24px);
	margin: clamp(24px, 4vw, 56px) auto 60px;
	background: var(--fk-modal);
	color: #fff;
	border-radius: 26px;
	overflow: hidden;
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .45);
}

.fk-back {
	display: inline-flex; align-items: center; gap: 8px;
	margin: 0 0 28px;
	color: rgba(255, 255, 255, .7);
	text-decoration: none;
	font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.fk-back:hover { color: #fff; }

.fk-empty {
	grid-column: 1 / -1;
	text-align: center;
	opacity: .6;
	font-weight: 600;
}

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