/*
Theme Name: Appaio
Theme URI: https://appaio.it/
Author: Giuseppe Di Vaio
Author URI: https://giuseppedivaio.com/
Description: Tema su misura per appaio.it — prenotazione di spot sui LEDWall. Include il motore di prenotazione (città, LEDWall, fasce orarie, upload spot) integrato con WooCommerce, API REST per l'app e compatibilità con le pagine Elementor esistenti.
Version: 1.3.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
WC requires at least: 8.0
License: GPL-2.0-or-later
Text Domain: appaio
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--bg: #0a0a0b;
	--bg-2: #111114;
	--surface: #16161a;
	--surface-2: #1d1d22;
	--surface-3: #26262d;
	--line: rgba(255, 255, 255, .08);
	--line-2: rgba(255, 255, 255, .16);
	--text: #f5f5f7;
	--muted: #9b9ba6;
	--dim: #6b6b75;
	--white: #fff;
	--live: #3dff8b;
	--live-ink: #04140a;
	--danger: #ff5c5c;
	--warn: #ffc94d;

	--f-display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	--r-sm: 10px;
	--r: 16px;
	--r-lg: 24px;
	--r-xl: 32px;
	--shell: 1240px;
	--pad: clamp(18px, 4vw, 40px);
	--header-h: 72px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 16px/1.6 var(--f-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--white); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--live); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--live); color: var(--live-ink); }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 1000; top: 10px; left: 10px; background: var(--white); color: #000; padding: 10px 16px; border-radius: 99px; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

.ap-shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }

/* Type */
.ap-display {
	font-family: var(--f-display);
	font-weight: 800;
	font-size: clamp(44px, 7.4vw, 104px);
	line-height: .95;
	letter-spacing: -.045em;
	margin: 0 0 24px;
	text-wrap: balance;
}
.ap-display--sm { font-size: clamp(38px, 5.6vw, 76px); }
.ap-h1 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 800; letter-spacing: -.035em; }
.ap-h2 { font-size: clamp(30px, 4vw, 54px); font-weight: 800; letter-spacing: -.035em; max-width: 18ch; text-wrap: balance; margin-bottom: 40px; }
.ap-lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 46ch; }
.ap-muted { color: var(--muted); }
.ap-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font: 600 13px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase;
	color: var(--muted); margin: 0 0 20px;
}
.ap-eyebrow span { color: var(--text); }
.ap-eyebrow--live i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(61, 255, 139, .6); animation: ap-pulse 1.8s infinite; }
@keyframes ap-pulse { 70% { box-shadow: 0 0 0 10px rgba(61, 255, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 255, 139, 0); } }

/* Buttons */
.ap-btn, .button, button.button, .wp-element-button, .wc-block-components-button:not(.is-link) {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 22px;
	font: 600 15px/1 var(--f-body); letter-spacing: -.005em;
	border-radius: 999px; border: 1px solid var(--line-2);
	background: transparent; color: var(--text);
	text-decoration: none; cursor: pointer;
	transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, opacity .2s;
}
.ap-btn:hover, .button:hover { border-color: var(--white); color: var(--white); }
.ap-btn--primary, .button.alt, .single_add_to_cart_button, #place_order, .checkout-button, .wc-block-components-checkout-place-order-button, .wc-block-cart__submit-button {
	background: var(--white) !important; color: #000 !important; border-color: var(--white) !important;
}
.ap-btn--primary:hover, .button.alt:hover, #place_order:hover { transform: translateY(-2px); color: #000 !important; }
.ap-btn--primary:active { transform: translateY(0); }
.ap-btn--lg { min-height: 58px; padding: 0 30px; font-size: 16px; }
.ap-btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.ap-btn--block { width: 100%; }
.ap-btn[disabled] { opacity: .35; cursor: not-allowed; transform: none !important; }
.ap-btn.is-loading { opacity: .7; pointer-events: none; }
.ap-btn .ico { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.ap-btn:hover .ico-arrow { transform: translateX(3px); }
.ap-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.ap-link .ico { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.ap-link:hover .ico-arrow { transform: translateX(4px); }
.ap-link:hover .ico-down { transform: translateY(3px); }

.ap-badge {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 10px; border-radius: 999px;
	background: rgba(255, 255, 255, .1); backdrop-filter: blur(8px);
	font: 700 11px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase;
}
.ap-badge--live { background: var(--live); color: var(--live-ink); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 100;
	height: var(--header-h);
	background: rgba(10, 10, 11, .72);
	backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, background .2s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(10, 10, 11, .9); }
.site-header__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.site-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px/1 var(--f-display); letter-spacing: -.04em; }
.site-logo__img { width: 44px; height: 44px; object-fit: contain; }
.site-logo--footer .site-logo__img { width: 56px; height: 56px; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a { display: block; padding: 10px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .2s, background .2s; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--white); background: rgba(255, 255, 255, .06); }
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.ap-cart-pill { padding: 8px 12px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 600; text-decoration: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: none; align-items: center; justify-content: center; cursor: pointer; }

@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
		background: var(--bg); border-bottom: 1px solid var(--line);
		padding: 12px var(--pad) 24px;
		transform: translateY(-8px); opacity: 0; visibility: hidden;
		transition: .25s var(--ease);
	}
	.admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
	.site-nav ul { flex-direction: column; }
	.site-nav a { font-size: 20px; padding: 14px 4px; color: var(--text); border-bottom: 1px solid var(--line); border-radius: 0; }
	.site-header__actions { margin-left: auto; }
}

/* ==========================================================================
   Home
   ========================================================================== */
.ap-hero { position: relative; overflow: hidden; padding: clamp(48px, 9vw, 120px) 0 clamp(64px, 10vw, 140px); }
.ap-hero::before {
	content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
	background: radial-gradient(closest-side, rgba(255, 255, 255, .09), transparent 70%);
	pointer-events: none;
}
.ap-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.ap-hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.ap-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin: 32px 0 20px; }
.ap-hero__ctas--center { justify-content: center; }
.ap-hero__meta { font-size: 14px; color: var(--dim); letter-spacing: .02em; }

.ap-hero__visual { position: relative; min-height: 460px; display: flex; align-items: center; justify-content: center; }
.ap-screen { width: min(100%, 420px); transform: perspective(1200px) rotateY(-14deg) rotateX(4deg); transform-origin: 70% 50%; }
.ap-screen__bezel { padding: 14px; border-radius: 22px; background: linear-gradient(145deg, #2a2a30, #121215); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .1); }
.ap-screen__panel {
	position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden;
	background:
		radial-gradient(circle at 30% 20%, rgba(61, 255, 139, .35), transparent 50%),
		radial-gradient(circle at 80% 90%, rgba(120, 90, 255, .45), transparent 55%),
		#050506;
	display: flex; align-items: center; justify-content: center;
}
.ap-screen__panel::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.2px); background-size: 5px 5px; mix-blend-mode: overlay; }
.ap-screen__panel .ap-badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.ap-screen__rotator { position: relative; width: 100%; height: 1.2em; font: 900 clamp(34px, 4vw, 52px)/1 var(--f-display); letter-spacing: -.04em; text-align: center; }
.ap-screen__rotator span { position: absolute; inset: 0; opacity: 0; transform: translateY(20px) scale(.96); transition: .5s var(--ease); }
.ap-screen__rotator span.is-on { opacity: 1; transform: none; }
.ap-screen__scan { position: absolute; inset: 0; background: linear-gradient(transparent 0, rgba(255, 255, 255, .08) 50%, transparent 100%); height: 30%; animation: ap-scan 4s linear infinite; }
@keyframes ap-scan { from { transform: translateY(-100%); } to { transform: translateY(400%); } }
.ap-screen__pole { width: 18px; height: 70px; margin: 0 auto; background: linear-gradient(90deg, #1b1b1f, #2c2c33, #1b1b1f); }
.ap-toast {
	position: absolute; display: flex; align-items: center; gap: 12px;
	padding: 14px 16px; border-radius: 16px; font-size: 13px; line-height: 1.35;
	background: rgba(22, 22, 26, .86); border: 1px solid var(--line-2); backdrop-filter: blur(12px);
	box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6);
	animation: ap-float 6s ease-in-out infinite;
}
.ap-toast .ico { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--live); color: var(--live-ink); }
.ap-toast--a { left: 0; top: 18%; }
.ap-toast--b { right: 0; bottom: 18%; animation-delay: -3s; }
.ap-toast--b .ico { background: var(--white); color: #000; }
@keyframes ap-float { 50% { transform: translateY(-10px); } }

@media (max-width: 960px) {
	.ap-hero__grid { grid-template-columns: 1fr; }
	.ap-hero__visual { min-height: 380px; order: -1; }
	.ap-screen { width: 260px; }
	.ap-toast--a { left: 2%; } .ap-toast--b { right: 2%; }
}

.ap-section { padding: clamp(72px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.ap-section--alt { background: var(--bg-2); }

.ap-steps { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.ap-step { position: relative; padding: 28px 24px 30px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.ap-step__n { position: absolute; top: 22px; right: 24px; font: 800 14px/1 var(--f-display); color: var(--dim); }
.ap-step .ico { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--surface-3); margin-bottom: 40px; }
.ap-step h3 { font-size: 21px; font-weight: 700; }
.ap-step p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 960px) { .ap-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ap-steps { grid-template-columns: 1fr; } .ap-step .ico { margin-bottom: 24px; } }

.ap-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 24px; }
.ap-stats > div { background: var(--bg-2); padding: 28px 24px; }
.ap-stats strong { display: block; font: 800 clamp(36px, 4.5vw, 60px)/1 var(--f-display); letter-spacing: -.04em; margin-bottom: 8px; }
.ap-stats span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .ap-stats { grid-template-columns: 1fr 1fr; } }

.ap-network { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.ap-network__map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.ap-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ap-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 15px; transition: .2s; }
.ap-chips a:hover { border-color: var(--white); }
.ap-chips small { color: var(--muted); font-weight: 500; }
.ap-chips__all { background: var(--white) !important; color: #000 !important; }
.ap-chips__all .ico { width: 16px; height: 16px; }
@media (max-width: 960px) { .ap-network { grid-template-columns: 1fr; } }

.ap-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ap-card { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.ap-card__ico { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(61, 255, 139, .12); color: var(--live); margin-bottom: 24px; }
.ap-card__ico .ico { width: 22px; height: 22px; }
.ap-card h3 { font-size: 19px; font-weight: 700; }
.ap-card p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 960px) { .ap-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ap-cards { grid-template-columns: 1fr; } }

.ap-price { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.ap-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ap-checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.ap-checks .ico { color: var(--live); margin-top: 3px; }
.ap-price__tag { padding: 40px; border-radius: var(--r-xl); background: var(--white); color: #000; text-align: center; display: grid; gap: 6px; }
.ap-price__tag strong { font: 900 clamp(64px, 8vw, 112px)/1 var(--f-display); letter-spacing: -.06em; }
.ap-price__tag span { color: #555; }
.ap-price__tag .ap-btn { margin-top: 20px; background: #000 !important; color: var(--white) !important; border-color: #000 !important; }
@media (max-width: 860px) { .ap-price { grid-template-columns: 1fr; } }

.ap-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ap-split__card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-height: 340px; padding: 40px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .3s var(--ease), border-color .3s; }
.ap-split__card:hover { transform: translateY(-4px); border-color: var(--line-2); color: inherit; }
.ap-split__card h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.03em; margin: 12px 0 0; }
.ap-split__card p { color: var(--muted); margin: 0 0 auto; max-width: 42ch; }
.ap-split__card--light { background: var(--white); color: #000; }
.ap-split__card--light:hover { color: #000; }
.ap-split__card--light p { color: #555; }
.ap-split__card--light .ap-badge { background: #000; color: #fff; }
.ap-split__card--light .ap-link { color: #000; }
@media (max-width: 760px) { .ap-split { grid-template-columns: 1fr; } .ap-split__card { min-height: 0; padding: 28px; } }

.ap-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.ap-faq__item { border-bottom: 1px solid var(--line); }
.ap-faq__item summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 24px 0; font: 700 clamp(17px, 1.6vw, 20px)/1.3 var(--f-display); letter-spacing: -.01em; cursor: pointer; }
.ap-faq__item summary::-webkit-details-marker { display: none; }
.ap-faq__item summary .ico { transition: transform .25s var(--ease); color: var(--muted); }
.ap-faq__item[open] summary .ico { transform: rotate(45deg); color: var(--white); }
.ap-faq__item p { color: var(--muted); margin: 0 0 24px; max-width: 62ch; }
@media (max-width: 860px) { .ap-faq { grid-template-columns: 1fr; gap: 8px; } }

.ap-final { text-align: center; }
.ap-final .ap-display { max-width: 14ch; margin-inline: auto; }
.ap-stores { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ap-stores--sm { justify-content: flex-start; margin-top: 20px; }
.ap-store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 168px; height: 56px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--line-2); text-decoration: none; text-align: left; font: 700 17px/1.1 var(--f-display); }
.ap-store small { font: 500 11px/1.2 var(--f-body); color: var(--muted); }
.ap-store--soon { opacity: .55; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.reveal { opacity: 1; transform: none; }
}

/* Leaflet */
.leaflet-container { background: #0e0e10 !important; font-family: var(--f-body) !important; }
.ap-map-embed { width: 100%; }
.ap-pin span {
	display: flex; width: 16px; height: 16px; align-items: center; justify-content: center;
	border-radius: 50%; background: var(--white); color: #000; border: 2px solid #0a0a0b;
	font: 800 11px/1 var(--f-body); cursor: pointer;
	box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); animation: ap-pulse-w 2s infinite;
}
.ap-pin span:hover { background: var(--live); }
@keyframes ap-pulse-w { 70% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface-2) !important; color: var(--text) !important; border-radius: 14px !important; }
.leaflet-popup-content { margin: 14px 18px !important; font-size: 14px; }
.ap-pop-btn { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--live) !important; }
.leaflet-control-zoom a { background: var(--surface-2) !important; color: var(--text) !important; border-color: var(--line) !important; }
.leaflet-control-attribution { background: rgba(0, 0, 0, .5) !important; color: var(--dim) !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }

/* Pagine città */
.ap-hero--city { padding-bottom: clamp(48px, 7vw, 96px); }
.ap-hero--city .ap-display { max-width: 16ch; }
.ap-crumbs { font-size: 13px; color: var(--dim); margin-bottom: 28px; }
.ap-crumbs a { color: var(--muted); text-decoration: none; }
.ap-crumbs a:hover { color: var(--white); }
.ap-stats--city { margin: 48px 0 0; }
.ap-stats--city > div { background: var(--bg); }
.ap-walls--city { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ap-walls--city .ap-wall { background: var(--surface); border-color: var(--line); }
.ap-walls--city .ap-wall__img { display: block; overflow: hidden; }
.ap-walls--city .ap-wall__img img { transition: transform .5s var(--ease); }
.ap-walls--city .ap-wall:hover .ap-wall__img img { transform: scale(1.04); }
.ap-city__split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ap-city__split .ap-lead { margin-bottom: 28px; }
.ap-city__map { height: 460px; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); }
.ap-cards--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .ap-city__split { grid-template-columns: 1fr; } .ap-cards--3 { grid-template-columns: 1fr 1fr; } .ap-city__map { height: 340px; } }
@media (max-width: 560px) { .ap-cards--3 { grid-template-columns: 1fr; } }

/* ==========================================================================
   Booking
   ========================================================================== */
.ap-booking-main { padding: clamp(32px, 5vw, 64px) 0 96px; }
.ap-booking-head { margin-bottom: 28px; }
.ap-booking-head .ap-h1 { margin: 0; }

.ap-progress { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 24px; padding: 0; }
.ap-progress li { display: flex; align-items: center; gap: 10px; padding: 12px 0 0; border-top: 3px solid var(--surface-3); color: var(--dim); font-size: 14px; font-weight: 600; transition: .3s; }
.ap-progress li span { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; background: var(--surface-3); font-size: 12px; }
.ap-progress li.is-current { border-color: var(--white); color: var(--white); }
.ap-progress li.is-current span { background: var(--white); color: #000; }
.ap-progress li.is-done { border-color: var(--live); color: var(--text); }
.ap-progress li.is-done span { background: var(--live); color: var(--live-ink); }
@media (max-width: 560px) { .ap-progress li { font-size: 0; } .ap-progress li span { font-size: 12px; } }

.ap-booking__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.ap-booking__steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.ap-bstep, .ap-dates, .ap-dates__strip { min-width: 0; }

.ap-bstep { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, opacity .3s; }
.ap-bstep.is-open { border-color: var(--line-2); }
.ap-bstep.is-locked { opacity: .45; }
.ap-bstep__head { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 22px 24px; }
.ap-bstep__head h2 { font-size: 20px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 12px; }
.ap-bstep__head h2 span { font-size: 13px; color: var(--dim); font-weight: 800; }
.ap-bstep__edit { display: none; background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.ap-bstep__value { grid-column: 1 / -1; margin: 0; padding-left: 34px; color: var(--live); font-weight: 600; font-size: 15px; display: none; }
.ap-bstep.is-done .ap-bstep__edit, .ap-bstep.is-done .ap-bstep__value { display: block; }
.ap-bstep.is-done .ap-bstep__value:empty { display: none; }
.ap-bstep__body { display: none; padding: 0 24px 24px; }
.ap-bstep.is-open .ap-bstep__body { display: block; animation: ap-in .35s var(--ease); }
.ap-bstep.is-open .ap-bstep__edit, .ap-bstep.is-open .ap-bstep__value { display: none; }
@keyframes ap-in { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 560px) { .ap-bstep__head { padding: 18px; } .ap-bstep__body { padding: 0 18px 18px; } }

.ap-search { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 18px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-2); margin-bottom: 16px; transition: border-color .2s; }
.ap-search:focus-within { border-color: var(--white); }
.ap-search .ico { color: var(--muted); }
.ap-search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; font-size: 17px; }
.ap-search--sm { height: 44px; margin: 0; max-width: 260px; }
.ap-search--sm input { font-size: 15px; }

.ap-citygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; max-height: 420px; overflow: auto; padding-right: 4px; scrollbar-width: thin; }
.ap-city { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid transparent; text-align: left; cursor: pointer; transition: .15s; }
.ap-city span { font-weight: 600; font-size: 15px; }
.ap-city small { color: var(--muted); font-size: 12px; }
.ap-city:hover { background: var(--surface-3); }
.ap-city.is-selected { border-color: var(--white); background: var(--surface-3); }
.ap-empty { color: var(--muted); padding: 16px 0; }
.ap-error { color: var(--danger); font-weight: 500; }

.ap-mapbox { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.ap-mapbox summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; color: var(--muted); list-style: none; padding: 6px 0; }
.ap-mapbox summary::-webkit-details-marker { display: none; }
.ap-mapbox__map { height: 380px; border-radius: 14px; overflow: hidden; margin-top: 12px; }

.ap-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.ap-toolbar p { margin: 0; }
.ap-walls { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ap-wall { display: flex; flex-direction: column; border-radius: 18px; background: var(--surface-2); border: 1px solid transparent; overflow: hidden; transition: .2s; }
.ap-wall:hover { border-color: var(--line-2); }
.ap-wall.is-selected { border-color: var(--live); }
.ap-wall__img { position: relative; aspect-ratio: 16 / 10; background: var(--surface-3); }
.ap-wall__img img { width: 100%; height: 100%; object-fit: cover; }
.ap-wall__img .ap-badge { position: absolute; left: 12px; top: 12px; background: rgba(0, 0, 0, .6); }
.ap-wall__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.ap-wall__body h3 { font-size: 16px; font-weight: 700; line-height: 1.25; margin-bottom: 6px; }
.ap-wall__body > p { color: var(--muted); font-size: 13px; line-height: 1.45; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ap-wall__specs { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ap-wall__specs li { font-size: 13px; }
.ap-wall__specs b { display: block; font-size: 11px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.ap-wall__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ap-wall__foot strong { font: 800 22px/1 var(--f-display); letter-spacing: -.02em; }
.ap-wall__foot small { font: 500 12px var(--f-body); color: var(--muted); }
.ap-wall--skel { min-height: 320px; }
.ap-wall--skel div { aspect-ratio: 16 / 10; }
.ap-wall--skel div, .ap-wall--skel p { background: linear-gradient(90deg, var(--surface-3) 25%, #303038 50%, var(--surface-3) 75%); background-size: 200% 100%; animation: ap-shimmer 1.2s infinite; }
.ap-wall--skel p { height: 14px; margin: 16px 18px 0; border-radius: 6px; }
.ap-wall--skel p + p { width: 60%; }
@keyframes ap-shimmer { to { background-position: -200% 0; } }

.ap-dates { display: flex; gap: 8px; align-items: stretch; margin-bottom: 12px; }
.ap-dates__strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; flex: 1; scrollbar-width: thin; }
.ap-date { flex: none; scroll-snap-align: start; width: 68px; padding: 10px 0; border-radius: 14px; background: var(--surface-2); border: 1px solid transparent; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; transition: .15s; }
.ap-date small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ap-date strong { font: 800 22px/1.1 var(--f-display); }
.ap-date:hover { background: var(--surface-3); }
.ap-date.is-selected { background: var(--white); color: #000; }
.ap-date.is-selected small { color: #555; }
.ap-dates__other { position: relative; flex: none; width: 92px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--line-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; color: var(--muted); cursor: pointer; margin-bottom: 6px; }
.ap-dates__other.is-selected { border-style: solid; border-color: var(--white); color: var(--white); }
.ap-dates__other input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.ap-dates__other input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.ap-hours-info { font-size: 14px; margin: 8px 0; }
.ap-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.ap-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ap-legend i { width: 12px; height: 12px; border-radius: 4px; }
.ap-legend .is-free { background: var(--surface-3); border: 1px solid var(--line-2); }
.ap-legend .is-sold { background: repeating-linear-gradient(45deg, #3a1a1a, #3a1a1a 3px, #241212 3px, #241212 6px); }
.ap-legend .is-off { background: transparent; border: 1px dashed var(--line-2); }

.ap-hours { display: grid; gap: 8px; }
.ap-hint { font-size: 14px; margin: 0 0 12px; }
.ap-slotbar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 16px; margin-top: 12px; padding: 10px 10px 10px 20px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.ap-slotbar[hidden] { display: none; }
.ap-slotbar span { font-weight: 700; margin-right: auto; }
.ap-slotbar .ap-link { color: var(--muted); font-size: 14px; }
.ap-summary__total small { display: block; font-size: 12px; color: var(--muted); }
.ap-summary__list em { color: var(--muted); font-style: normal; }
@media (max-width: 980px) { .ap-slotbar { bottom: 96px; } }
.ap-loading { padding: 24px 0; color: var(--muted); }
.ap-hour { border-radius: 14px; background: var(--surface-2); border: 1px solid transparent; }
.ap-hour[open] { border-color: var(--line-2); }
.ap-hour summary { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 16px; padding: 14px 16px; cursor: pointer; list-style: none; }
.ap-hour summary::-webkit-details-marker { display: none; }
.ap-hour__label { font-weight: 700; font-variant-numeric: tabular-nums; }
.ap-hour__label em { font-style: normal; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 6px; margin-left: 6px; }
.ap-hour__meter { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.ap-hour__meter i { display: block; height: 100%; background: var(--live); border-radius: 6px; }
.ap-hour__free { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ap-hour.is-full { opacity: .5; }
.ap-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; padding: 0 12px 14px; }
.ap-slot { height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; transition: .12s; }
.ap-slot small { font-size: 11px; color: var(--muted); font-weight: 500; }
.ap-slot.is-free:hover { border-color: var(--white); }
.ap-slot.is-selected { background: var(--live); color: var(--live-ink); border-color: var(--live); }
.ap-slot.is-selected small { color: var(--live-ink); }
.ap-slot.is-sold { background: repeating-linear-gradient(45deg, #3a1a1a, #3a1a1a 3px, #241212 3px, #241212 6px); color: #a36a6a; border-color: transparent; text-decoration: line-through; cursor: not-allowed; }
.ap-slot.is-off { opacity: .3; border-style: dashed; cursor: not-allowed; }
@media (max-width: 560px) { .ap-hour summary { grid-template-columns: 1fr auto; } .ap-hour__meter { display: none; } .ap-slots { grid-template-columns: repeat(4, 1fr); } }

.ap-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 200px; padding: 32px; border-radius: 18px; border: 2px dashed var(--line-2); background: var(--bg); text-align: center; cursor: pointer; transition: .2s; }
.ap-drop:hover, .ap-drop.is-over { border-color: var(--live); background: rgba(61, 255, 139, .04); }
.ap-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ap-drop .ico { width: 40px; height: 40px; color: var(--live); }
.ap-drop strong { font-size: 17px; }
.ap-drop span { color: var(--muted); font-size: 14px; }
.ap-drop__res:empty { display: none; }
.ap-preview { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; }
.ap-preview[hidden] { display: none; }
.ap-preview__media { border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16 / 10; }
.ap-preview__media video, .ap-preview__media img { width: 100%; height: 100%; object-fit: contain; }
.ap-preview__info { display: grid; gap: 8px; align-content: start; }
.ap-preview__info strong { word-break: break-all; }
.ap-preview__info > span { color: var(--muted); font-size: 14px; }
.ap-preview__status { margin: 0; font-size: 14px; color: var(--warn); }
.ap-preview__status:empty { display: none; }
.ap-bar { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.ap-bar i { display: block; height: 100%; width: 0; background: var(--white); transition: width .2s; }
.ap-bar.is-done i { background: var(--live); }
@media (max-width: 560px) { .ap-preview { grid-template-columns: 1fr; } }

.ap-summary { position: sticky; top: calc(var(--header-h) + 20px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-2); overflow: hidden; }
.admin-bar .ap-summary { top: calc(var(--header-h) + 52px); }
.ap-summary__media:empty { display: none; }
.ap-summary__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ap-summary__body { padding: 22px; }
.ap-summary__body .ap-eyebrow { margin-bottom: 14px; }
.ap-summary__list { margin: 0 0 18px; display: grid; gap: 12px; }
.ap-summary__list div { display: grid; grid-template-columns: 76px 1fr; gap: 8px; font-size: 14px; }
.ap-summary__list dt { color: var(--muted); }
.ap-summary__list dd { margin: 0; font-weight: 600; word-break: break-word; }
.ap-summary__total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); margin-bottom: 14px; }
.ap-summary__total strong { font: 800 30px/1 var(--f-display); letter-spacing: -.03em; }
.ap-summary__note { display: flex; gap: 8px; font-size: 12px; color: var(--muted); margin: 14px 0 0; }
.ap-summary__note .ico { width: 16px; height: 16px; flex: none; margin-top: 1px; }

@media (max-width: 980px) {
	.ap-booking__grid { grid-template-columns: 1fr; }
	.ap-summary { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; top: auto !important; border-radius: 20px 20px 0 0; border-width: 1px 0 0; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -20px 40px rgba(0, 0, 0, .5); }
	.ap-summary__media, .ap-summary__list, .ap-summary__note, .ap-summary .ap-eyebrow { display: none; }
	.ap-summary__body { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; padding: 14px var(--pad); }
	.ap-summary__total { display: grid; gap: 2px; border: 0; padding: 0; margin: 0; font-size: 12px; color: var(--muted); }
	.ap-summary__total strong { font-size: 24px; color: var(--text); }
	.ap-booking:not(.has-wall) .ap-summary { transform: translateY(110%); }
	.ap-summary { transition: transform .3s var(--ease); }
	.ap-booking-main { padding-bottom: 140px; }
	.ap-wa { bottom: 100px !important; }
}

/* ==========================================================================
   Pagine, WooCommerce
   ========================================================================== */
.ap-page { padding-block: clamp(40px, 6vw, 80px); }
.ap-prose { max-width: 760px; }
.ap-prose h2 { font-size: 28px; margin-top: 1.6em; }
.ap-prose h3 { font-size: 21px; margin-top: 1.4em; }
.ap-prose a { color: var(--white); }
.ap-prose p, .ap-prose li { color: #d0d0d6; }
.ap-404 { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.ap-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.ap-post-card { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; padding-bottom: 20px; }
.ap-post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.ap-post-card h2 { font-size: 20px; padding: 20px 20px 0; }
.ap-post-card p { color: var(--muted); padding: 0 20px; }

.ap-woo { padding-block: clamp(32px, 5vw, 64px); }
.ap-woo .ap-h1 { margin-bottom: 32px; }
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
	list-style: none; margin: 0 0 24px !important; padding: 16px 20px !important; border-radius: 14px !important;
	background: var(--surface-2) !important; color: var(--text) !important; border: 1px solid var(--line-2) !important;
	display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
}
.woocommerce-error, .wc-block-components-notice-banner.is-error { border-color: rgba(255, 92, 92, .5) !important; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce-message a, .woocommerce-error a, .woocommerce-info a { color: var(--live); font-weight: 600; }

.woocommerce table.shop_table, .ap-woo table { width: 100%; border-collapse: collapse; border: 1px solid var(--line) !important; border-radius: var(--r) !important; overflow: hidden; background: var(--surface); }
.ap-woo table th, .ap-woo table td { padding: 16px !important; border-top: 1px solid var(--line) !important; text-align: left; vertical-align: top; }
.ap-woo table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-top: 0 !important; }
.ap-woo .product-thumbnail img { width: 96px; border-radius: 10px; }
.ap-woo .product-remove a { color: var(--muted) !important; font-size: 22px; text-decoration: none; }
.ap-woo dl.variation, .wc-item-meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 14px; margin: 8px 0 0; padding: 0; list-style: none; }
.ap-woo dl.variation dt, .wc-item-meta strong { color: var(--muted); font-weight: 500; }
.ap-woo dl.variation dd, .ap-woo dl.variation dd p { margin: 0; }
.wc-item-meta li { display: contents; }
.wc-item-meta p { display: inline; margin: 0; }
.ap-qty-fixed { color: var(--muted); font-size: 14px; }

.ap-woo input[type="text"], .ap-woo input[type="email"], .ap-woo input[type="tel"], .ap-woo input[type="password"], .ap-woo input[type="number"], .ap-woo select, .ap-woo textarea,
.select2-container--default .select2-selection--single {
	width: 100%; min-height: 50px; padding: 12px 16px !important; border-radius: 12px !important;
	background: var(--bg) !important; border: 1px solid var(--line-2) !important; color: var(--text) !important; outline: 0;
}
.ap-woo input:focus, .ap-woo select:focus, .ap-woo textarea:focus { border-color: var(--white) !important; }
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--text) !important; line-height: 24px !important; padding: 0 !important; }
.select2-container--default .select2-selection--single .select2-selection__arrow { top: 12px !important; right: 10px !important; }
.select2-dropdown { background: var(--surface-2) !important; border-color: var(--line-2) !important; color: var(--text); }
.select2-results__option--highlighted { background: var(--surface-3) !important; }
.ap-woo label { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.ap-woo .form-row { margin: 0 0 16px; padding: 0; }
.ap-woo .woocommerce-billing-fields h3, .ap-woo #order_review_heading, .ap-woo .cart_totals h2 { font-size: 22px; margin: 0 0 20px; }
.ap-woo .col2-set, .ap-woo #customer_details { display: grid; gap: 24px; }

@media (min-width: 980px) {
	.ap-woo form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 32px; align-items: start; }
	.ap-woo form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
	.ap-woo #customer_details { grid-column: 1; }
	.ap-woo #order_review_heading, .ap-woo #order_review { grid-column: 2; }
	.ap-woo #order_review_heading { grid-row: 1; margin-top: 0; }
	.ap-woo #order_review { grid-row: 1; margin-top: 52px; position: sticky; top: calc(var(--header-h) + 20px); }
	.ap-woo .col2-set .col-1, .ap-woo .col2-set .col-2 { width: 100%; float: none; }
}
.ap-woo #order_review, .ap-woo .cart_totals { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 24px; }
.ap-woo #order_review table { border: 0 !important; background: none; }
.ap-woo #payment { background: none !important; border-radius: 0; }
.ap-woo #payment ul.payment_methods { list-style: none; padding: 0 !important; margin: 16px 0; border: 0 !important; display: grid; gap: 8px; }
.ap-woo #payment ul.payment_methods li { padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.ap-woo #payment div.payment_box { background: var(--bg) !important; color: var(--muted) !important; border-radius: 10px; margin-top: 10px !important; }
.ap-woo #payment div.payment_box::before { display: none !important; }
.ap-woo #place_order { width: 100%; min-height: 58px; font-size: 16px; margin-top: 12px; }
.ap-woo .woocommerce-privacy-policy-text, .ap-woo .woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: var(--muted); }
.ap-woo .cart-collaterals { margin-top: 32px; display: flex; justify-content: flex-end; }
.ap-woo .cart_totals { width: min(100%, 440px); }
.ap-woo .wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 56px; }
.ap-woo .coupon { display: flex; gap: 8px; flex-wrap: wrap; }
.ap-woo .coupon input { max-width: 220px; }

/* Blocchi carrello/checkout (WooCommerce Blocks) */
.wc-block-cart, .wc-block-checkout { color: var(--text); }
.wc-block-components-sidebar-layout .wc-block-components-sidebar,
.wp-block-woocommerce-checkout-order-summary-block,
.wc-block-components-totals-wrapper { border-color: var(--line) !important; }
.wp-block-woocommerce-checkout-order-summary-block, .wc-block-cart__sidebar .wp-block-woocommerce-cart-totals-block { background: var(--surface); border-radius: var(--r-lg); padding: 8px 20px; border: 1px solid var(--line-2) !important; }
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input, .wc-blocks-components-select .wc-blocks-components-select__select, .wc-block-components-textarea {
	background: var(--bg) !important; color: var(--text) !important; border-color: var(--line-2) !important; border-radius: 12px !important;
}
.wc-block-components-text-input label, .wc-blocks-components-select .wc-blocks-components-select__label, .wc-block-components-combobox .wc-block-components-combobox-control label { color: var(--muted) !important; }
.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option { border-color: var(--line-2) !important; }
.wc-block-components-product-metadata, .wc-block-components-product-details { color: var(--muted); font-size: 13px; }
.wc-block-components-quantity-selector { display: none !important; }
.wc-block-components-checkout-place-order-button { min-height: 58px !important; }

/* Scheda prodotto */
.ap-woo .product { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; }
.ap-woo .product .woocommerce-product-gallery { width: 100% !important; float: none !important; border-radius: var(--r-lg); overflow: hidden; }
.ap-woo .product .summary { width: 100% !important; float: none !important; }
.ap-woo .product .product_title { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.03em; }
.ap-woo .product .price { font: 800 28px/1 var(--f-display); color: var(--text) !important; margin: 12px 0 20px; }
.ap-woo .product .woocommerce-tabs, .ap-woo .product .related, .ap-woo .product .up-sells { grid-column: 1 / -1; }
.ap-woo .product_meta { font-size: 13px; color: var(--muted); margin-top: 24px; }
.ap-woo .product_meta a { color: var(--text); }
.ap-woo .woocommerce-tabs ul.tabs { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 20px; border: 0; }
.ap-woo .woocommerce-tabs ul.tabs li { border: 0 !important; background: none !important; margin: 0 !important; padding: 0 !important; }
.ap-woo .woocommerce-tabs ul.tabs li::before, .ap-woo .woocommerce-tabs ul.tabs li::after, .ap-woo .woocommerce-tabs ul.tabs::before { display: none !important; }
.ap-woo .woocommerce-tabs ul.tabs li a { display: block; padding: 10px 18px !important; border-radius: 999px; background: var(--surface-2); text-decoration: none; font-weight: 600; color: var(--muted) !important; }
.ap-woo .woocommerce-tabs ul.tabs li.active a { background: var(--white); color: #000 !important; }
.ap-woo .woocommerce-Tabs-panel { color: var(--muted); }
@media (max-width: 860px) { .ap-woo .product { grid-template-columns: 1fr; gap: 24px; } }
.ap-specs { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ap-specs li { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.ap-specs .ico { grid-row: span 2; width: 22px; height: 22px; color: var(--live); margin-top: 2px; }
.ap-specs span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ap-specs strong { font-size: 15px; }

/* Griglie prodotti (archivi + widget Elementor nelle pagine città) */
ul.products { list-style: none; padding: 0; margin: 0; display: grid !important; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
ul.products::before, ul.products::after { display: none !important; }
ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; background: var(--surface); border-radius: 18px; overflow: hidden; padding-bottom: 18px !important; border: 1px solid var(--line); display: flex; flex-direction: column; }
ul.products li.product img { aspect-ratio: 16 / 10; object-fit: cover; margin: 0 0 14px !important; }
ul.products li.product .woocommerce-loop-product__title { font-size: 15px !important; font-weight: 700; padding: 0 18px !important; color: var(--text); }
ul.products li.product .price { padding: 0 18px; color: var(--text) !important; font-weight: 700; display: block; margin-bottom: 14px; }
ul.products li.product .button { margin: auto 18px 0 !important; }
.woocommerce-pagination ul { list-style: none; display: flex; gap: 6px; padding: 0; margin: 32px 0 0; border: 0 !important; }
.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce-pagination a, .woocommerce-pagination span { display: inline-flex !important; min-width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 999px; background: var(--surface-2); text-decoration: none; }
.woocommerce-pagination .current { background: var(--white) !important; color: #000 !important; }
.woocommerce-breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.woocommerce-breadcrumb a { color: var(--muted); }
.woocommerce-result-count { color: var(--muted); font-size: 14px; }
.woocommerce-ordering select { width: auto !important; }

.ap-elementor { min-height: 40vh; }

/* Pagine legali */
.ap-legal__grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.ap-legal__nav { position: sticky; top: calc(var(--header-h) + 24px); }
.ap-legal__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ap-legal__nav a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 500; }
.ap-legal__nav a:hover { color: var(--white); background: var(--surface); }
.ap-legal__nav a[aria-current] { background: var(--surface-2); color: var(--white); }
.ap-legal .ap-prose { max-width: 820px; }
.ap-legal .ap-prose h2 { font-size: 22px; margin-top: 2em; scroll-margin-top: calc(var(--header-h) + 20px); }
.ap-legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0 24px; display: block; overflow-x: auto; }
.ap-legal th, .ap-legal td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: #d0d0d6; }
.ap-legal th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.ap-missing { background: rgba(255, 201, 77, .15); color: var(--warn); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
@media (max-width: 860px) { .ap-legal__grid { grid-template-columns: 1fr; gap: 24px; } .ap-legal__nav { position: static; } .ap-legal__nav ul { display: flex; flex-wrap: wrap; } }

/* Consenso al checkout */
.ap-consent { margin: 16px 0 !important; padding: 14px 16px !important; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); }
.ap-consent label { display: flex !important; gap: 10px; align-items: flex-start; color: var(--text) !important; font-size: 14px !important; line-height: 1.5; }
.ap-consent input { margin-top: 3px; accent-color: var(--live); width: 18px; height: 18px; flex: none; }
.ap-consent a { color: var(--live); }

/* Grazie */
.ap-thanks { margin: 0 0 40px; padding: 32px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line-2); }
.ap-thanks .ap-h2 { margin-bottom: 24px; }
.ap-thanks__steps { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: t; }
.ap-thanks__steps li { counter-increment: t; padding: 20px; border-radius: 16px; background: var(--surface-2); display: grid; gap: 6px; }
.ap-thanks__steps li::before { content: "0" counter(t); font: 800 13px var(--f-display); color: var(--live); }
.ap-thanks__steps span { color: var(--muted); font-size: 14px; }
.ap-thanks__steps a { color: var(--live); }
.ap-thanks table { color: var(--text); }
.ap-thanks th, .ap-thanks td { border-bottom: 1px solid var(--line) !important; }
@media (max-width: 760px) { .ap-thanks__steps { grid-template-columns: 1fr; } .ap-thanks { padding: 22px; } }

/* Contatti */
.ap-contact__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.ap-contact__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 10px; max-width: 460px; }
.ap-contact__list a, .ap-contact__list div { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; transition: border-color .2s; }
.ap-contact__list a:hover { border-color: var(--white); }
.ap-contact__list .ico { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: rgba(61, 255, 139, .12); color: var(--live); }
.ap-contact__list small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.ap-contact__form { padding: 32px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line-2); }
.ap-contact__form h2 { font-size: 26px; }
.wpcf7 label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea, .wpcf7 select {
	width: 100%; margin-top: 6px; padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); color: var(--text); outline: 0;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { border-color: var(--white); }
.wpcf7 textarea { min-height: 140px; }
.wpcf7 input[type="submit"] { width: 100%; min-height: 54px; border-radius: 999px; border: 0; background: var(--white); color: #000; font-weight: 700; font-size: 16px; cursor: pointer; }
.wpcf7-response-output { border-radius: 12px !important; margin: 16px 0 0 !important; }
@media (max-width: 960px) { .ap-contact__grid { grid-template-columns: 1fr; } .ap-contact__form { padding: 22px; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); padding: 80px 0 32px; background: var(--bg); }
.site-footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.site-footer__tag { color: var(--muted); max-width: 32ch; margin-top: 16px; }
.site-footer h3 { font: 600 13px/1 var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin: 0 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__col a { color: var(--muted); text-decoration: none; }
.site-footer__col a:hover { color: var(--white); }
.site-footer__col li { color: var(--muted); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.site-footer__bottom p { margin: 0; }
.site-footer__legal { display: flex !important; gap: 20px !important; }
.site-footer__legal a { color: var(--dim); text-decoration: none; }
@media (max-width: 860px) { .site-footer__top { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

.ap-wa { position: fixed; z-index: 80; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: transform .2s var(--ease); }
.ap-wa:hover { transform: scale(1.06); color: #fff; }
.ap-wa .ico { width: 26px; height: 26px; }
