/*
Theme Name: Atelier ES
Description: Tema su misura per Atelier ES – Fine Catering & Private Events. Richiede il plugin "Atelier ES – Core".
Version: 1.2.0
Author: Atelier ES
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: atelier-es
*/

/* ---------- Font (ospitati in locale, conformi GDPR) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/cormorant-garamond-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/cormorant-garamond-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url(assets/fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300; font-display: swap; src: url(assets/fonts/jost-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/jost-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/jost-latin-500-normal.woff2) format("woff2"); }

/* ---------- Palette: verde salvia, rosa cipria, oro ---------- */
:root {
	--ink: #2b2c27;
	--ink-soft: #5d5e57;
	--cream: #fbf8f3;
	--paper: #ffffff;
	--sage: #8fa382;
	--sage-d: #4f6146;
	--sage-dd: #34402e;
	--sage-l: #eaefe4;
	--blush: #e6c3b6;
	--blush-d: #b9867a;
	--blush-l: #f8ece7;
	--gold: #ad8a47;
	--gold-l: #d9c38f;
	--line: rgba(43, 44, 39, .12);
	--serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--sans: "Jost", "Helvetica Neue", Arial, sans-serif;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(43,44,39,.04), 0 10px 30px -12px rgba(43,44,39,.18);
	--wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 300 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-d); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.aes-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .aes-wrap { padding: 0 32px; } }
.aes-narrow { max-width: 820px; }
.aes-center { text-align: center; margin-top: 2rem; }
.aes-skip { position: absolute; left: -9999px; }
.aes-skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); padding: 8px 14px; }
.aes-ico { width: 1.25em; height: 1.25em; flex: none; }
.aes-mono { width: 100%; height: 100%; color: var(--gold); }

/* ---------- Barra superiore: sezione e lingua ---------- */
.aes-topbar { background: var(--sage-dd); color: #eef0e9; font-size: 13px; letter-spacing: .06em; }
.aes-topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 12px; }
.aes-topbar a { color: inherit; text-decoration: none; }
.aes-switch { display: inline-flex; background: rgba(255,255,255,.08); border-radius: 99px; padding: 3px; }
.aes-switch a { padding: 4px 14px; border-radius: 99px; text-transform: uppercase; transition: background .2s; }
.aes-switch a:hover { background: rgba(255,255,255,.12); color: #fff; }
.aes-switch a.is-active { background: var(--gold-l); color: var(--sage-dd); font-weight: 500; }
.aes-topbar-right { display: flex; align-items: center; gap: 18px; }
.aes-account-link { display: inline-flex; align-items: center; gap: 6px; }
.aes-account-link:hover { color: var(--gold-l); }
.aes-lang { display: inline-flex; gap: 2px; }
.aes-lang a { padding: 3px 8px; border-radius: 6px; opacity: .7; font-weight: 500; }
.aes-lang a.is-active { opacity: 1; box-shadow: inset 0 -2px 0 var(--gold-l); border-radius: 0; }
@media (max-width: 520px) { .aes-account-link span { display: none; } .aes-switch a { padding: 4px 10px; } }

/* ---------- Header ---------- */
.aes-header { position: sticky; top: 0; z-index: 40; background: rgba(251,248,243,.94); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .aes-header { top: 32px; }
.aes-header-in { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.aes-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.aes-logo img { max-height: 56px; width: auto; }
.aes-logo-mono { width: 48px; height: 48px; background: var(--ink); border-radius: 50%; padding: 4px; }
.aes-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.aes-logo-text strong { font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: .02em; }
.aes-logo-text small { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.aes-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.aes-nav a { display: block; padding: 8px 12px; text-decoration: none; color: var(--ink); font-size: 15px; letter-spacing: .03em; position: relative; }
.aes-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.aes-nav a:hover::after, .aes-nav a.is-current::after { transform: scaleX(1); }
.aes-nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; flex-direction: column; gap: 5px; align-items: center; }
.aes-nav-toggle span { width: 24px; height: 1.5px; background: var(--ink); transition: .25s; }
.aes-nav-toggle em { font-style: normal; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; margin-top: 2px; }
@media (max-width: 960px) {
	.aes-nav-toggle { display: flex; }
	.aes-nav { position: fixed; inset: 116px 0 auto 0; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s; }
	.aes-nav-open .aes-nav { transform: none; opacity: 1; visibility: visible; }
	.aes-nav ul { flex-direction: column; padding: 8px 16px 20px; }
	.aes-nav a { padding: 14px 4px; font-family: var(--serif); font-size: 24px; border-bottom: 1px solid var(--line); }
	.aes-nav a::after { display: none; }
	.aes-nav-open .aes-nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
	.aes-nav-open .aes-nav-toggle span:nth-child(2) { opacity: 0; }
	.aes-nav-open .aes-nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
	.aes-header-in { min-height: 64px; }
	.aes-logo-mono { width: 40px; height: 40px; }
	.aes-logo-text strong { font-size: 22px; }
}
@media (max-width: 782px) { .admin-bar .aes-header { top: 46px; } }

/* ---------- Titoli pagina ---------- */
.aes-pagehead { padding: 64px 0 48px; text-align: center; background: var(--sage-l); position: relative; overflow: hidden; }
.aes-pagehead::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%; background: radial-gradient(closest-side, rgba(230,195,182,.45), transparent); pointer-events: none; }
.aes-pagehead .aes-wrap { position: relative; }
.aes-pagehead h1 { font-style: italic; font-size: clamp(40px, 6vw, 68px); font-weight: 400; margin: 0; }
.aes-pagehead-noleggio, .aes-pagehead-catalogo, .aes-pagehead-gallery { background: var(--blush-l); }
.aes-pagehead-noleggio::before, .aes-pagehead-catalogo::before { background: radial-gradient(closest-side, rgba(143,163,130,.3), transparent); }
.aes-rule { display: block; width: 64px; height: 1px; background: var(--gold); margin: 20px auto 0; position: relative; }
.aes-rule::after { content: ""; position: absolute; left: 50%; top: -3px; width: 7px; height: 7px; background: var(--gold); transform: translateX(-50%) rotate(45deg); }
.aes-eyebrow { font-family: var(--sans); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin: 0 0 12px; }

/* ---------- Sezioni ---------- */
.aes-section { padding: 72px 0; }
.aes-tint { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.aes-h2 { font-size: clamp(32px, 4vw, 46px); text-align: center; font-style: italic; font-weight: 400; }
.aes-h3 { font-size: 28px; font-style: italic; font-weight: 400; }
.aes-sub { text-align: center; color: var(--ink-soft); margin: -4px auto 32px; max-width: 560px; }
.aes-lead { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.4; font-weight: 400; color: var(--ink); }
.aes-small { font-size: 14px; color: var(--ink-soft); }
.aes-empty { text-align: center; color: var(--ink-soft); font-family: var(--serif); font-size: 24px; font-style: italic; padding: 40px 0; }
.aes-two { display: grid; gap: 48px; align-items: center; }
@media (min-width: 880px) { .aes-two { grid-template-columns: 1fr 1fr; gap: 72px; } }
.aes-rounded { border-radius: var(--radius); width: 100%; aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow); }
.aes-prose h2 { font-size: 30px; margin-top: 1.5em; }
.aes-prose p { color: var(--ink-soft); }

/* Segnaposto con monogramma quando non ci sono foto */
.aes-placeholder { display: grid; place-items: center; background: linear-gradient(150deg, var(--sage) 0%, var(--sage-d) 100%); }
.aes-placeholder .aes-mono { width: 38%; height: auto; max-width: 180px; color: var(--gold-l); opacity: .9; }
.aes-ph-noleggio, .aes-ph-item { background: linear-gradient(150deg, var(--blush-l) 0%, var(--blush) 100%); }
.aes-ph-noleggio .aes-mono, .aes-ph-item .aes-mono { color: var(--gold); }
.aes-ph-about { background: linear-gradient(150deg, var(--ink) 0%, #44463d 100%); }

/* ---------- Bottoni ---------- */
.aes-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--sage-d); color: #fff; border: 0; border-radius: 99px; padding: 14px 26px; font: 500 14px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.aes-btn:hover { background: var(--sage-dd); color: #fff; transform: translateY(-1px); }
.aes-btn .aes-ico { width: 16px; height: 16px; transition: transform .2s; }
.aes-btn:hover .aes-ico { transform: translateX(3px); }
.aes-btn-ghost { background: transparent; color: var(--sage-d); box-shadow: inset 0 0 0 1px currentColor; }
.aes-btn-ghost:hover { background: var(--sage-d); color: #fff; }
.aes-btn-light { background: rgba(255,255,255,.92); color: var(--ink); }
.aes-btn-small { padding: 10px 18px; font-size: 12px; }
.aes-btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.aes-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }

/* ---------- Home: due sezioni ---------- */
.aes-split { position: relative; display: grid; min-height: calc(100vh - 116px); min-height: calc(100svh - 116px); }
@media (min-width: 880px) { .aes-split { grid-template-columns: 1fr 1fr; } }
.aes-panel { position: relative; display: flex; align-items: flex-end; min-height: 48vh; overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; }
.aes-panel-bg { position: absolute; inset: 0; z-index: -2; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.aes-panel-bg > * { width: 100%; height: 100%; object-fit: cover; }
.aes-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,22,18,0) 30%, rgba(20,22,18,.62) 100%); }
.aes-panel:hover .aes-panel-bg { transform: scale(1.04); }
.aes-panel-bg .aes-placeholder .aes-mono { opacity: .25; width: 60%; max-width: 360px; }
.aes-panel-noleggio .aes-panel-bg .aes-placeholder { background: linear-gradient(160deg, #d9a99a 0%, #b9867a 100%); }
.aes-panel-noleggio .aes-panel-bg .aes-placeholder .aes-mono { color: #fff; }
.aes-panel-body { padding: 40px 24px; max-width: 520px; }
@media (min-width: 720px) { .aes-panel-body { padding: 64px 56px; } }
.aes-panel-body .aes-eyebrow { color: var(--gold-l); }
.aes-panel h2 { color: #fff; font-size: clamp(48px, 7vw, 84px); font-style: italic; font-weight: 400; margin-bottom: .2em; }
.aes-panel p { font-size: 18px; opacity: .92; max-width: 420px; }
.aes-panel:hover { color: #fff; }
.aes-split-center { position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; display: none; }
@media (min-width: 880px) { .aes-split-center { display: block; top: 42%; } }
.aes-split-mono { width: 140px; height: 140px; background: var(--ink); border-radius: 50%; padding: 10px; box-shadow: 0 0 0 6px rgba(251,248,243,.9), var(--shadow); }
.aes-split-center .aes-eyebrow { margin-top: 20px; background: rgba(251,248,243,.92); color: var(--ink); padding: 6px 14px; border-radius: 99px; }

/* ---------- Card, servizi, step ---------- */
.aes-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 40px; }
.aes-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; position: relative; }
.aes-section:not(.aes-tint) .aes-card { background: var(--paper); }
a.aes-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.aes-card .aes-ico { width: 34px; height: 34px; color: var(--gold); margin-bottom: 18px; }
.aes-card h3 { font-size: 26px; margin-bottom: .3em; }
.aes-card p { color: var(--ink-soft); margin: 0; font-size: 16px; }
.aes-steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: s; }
.aes-step-n { position: absolute; top: 18px; right: 24px; font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--blush); font-style: italic; }
.aes-chips { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.aes-chips li { background: var(--blush-l); border: 1px solid var(--blush); color: var(--ink); padding: 5px 14px; border-radius: 99px; font-size: 14px; }

/* ---------- Moduli ---------- */
.aes-form { margin-top: 8px; }
.aes-grid2 { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .aes-grid2 { grid-template-columns: 1fr 1fr; } .aes-full { grid-column: 1 / -1; } }
.aes-field { margin-bottom: 18px; }
.aes-field label, .aes-label { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 400; }
.aes-field input, .aes-field select, .aes-field textarea { display: block; width: 100%; margin-top: 6px; padding: 13px 15px; font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, box-shadow .2s; text-transform: none; letter-spacing: 0; }
.aes-field input:focus, .aes-field select:focus, .aes-field textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px rgba(143,163,130,.2); }
.aes-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.req { color: var(--blush-d); }
.aes-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); margin: 6px 0 24px; cursor: pointer; }
.aes-check input, .aes-radio input { accent-color: var(--sage-d); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.aes-field label.aes-radio, .aes-radio { display: inline-flex; align-items: center; gap: 8px; margin: 10px 24px 0 0; font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--ink); cursor: pointer; }
.aes-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.aes-notice { padding: 16px 20px; border-radius: 10px; margin: 0 0 24px; font-size: 16px; border-left: 3px solid; }
.aes-notice-ok { background: var(--sage-l); border-color: var(--sage-d); color: var(--sage-dd); }
.aes-notice-err { background: var(--blush-l); border-color: var(--blush-d); color: #7a3f32; }

/* ---------- Area riservata ---------- */
.aes-auth { display: grid; gap: 28px; align-items: start; }
@media (min-width: 880px) { .aes-auth { grid-template-columns: 1fr 1.25fr; } }
.aes-auth-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 28px; scroll-margin-top: 140px; }
.aes-auth-alt { background: var(--sage-l); border-color: transparent; }
.aes-account { margin: 0 auto; text-align: center; }
.aes-status { display: inline-block; padding: 6px 16px; border-radius: 99px; font-size: 14px; }
.aes-status.is-active { background: var(--sage-l); color: var(--sage-dd); }
.aes-status.is-pending { background: var(--blush-l); color: #7a3f32; }
.aes-account .aes-btn-row { justify-content: center; }
.aes-account .aes-h3 { margin-top: 48px; }
.aes-reqs { list-style: none; padding: 0; text-align: left; }
.aes-reqs li { border-bottom: 1px solid var(--line); }
.aes-reqs summary { padding: 14px 4px; cursor: pointer; }
.aes-reqs summary span { color: var(--gold); margin-right: 8px; font-weight: 500; }
.aes-reqs pre { white-space: pre-wrap; font: 300 15px/1.6 var(--sans); background: var(--paper); padding: 16px; border-radius: 10px; }
.aes-locked { text-align: center; }
.aes-locked > .aes-ico { width: 48px; height: 48px; color: var(--gold); margin: 0 auto 16px; }
.aes-locked .aes-btn-row { justify-content: center; }

/* ---------- Catalogo ---------- */
.aes-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.aes-filters button { background: transparent; border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; font: 400 14px var(--sans); color: var(--ink); cursor: pointer; transition: .2s; }
.aes-filters button:hover { border-color: var(--sage); }
.aes-filters button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
/* Catalogo: impaginazione con filtri laterali */
.aes-cat-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .aes-cat-layout { grid-template-columns: 260px 1fr; } }
.aes-sidebar { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 8px; scrollbar-width: thin; }
.admin-bar .aes-sidebar { top: 132px; }
.aes-side-head, .aes-side-apply { display: none; }
.aes-side-foot { padding-top: 18px; }
.aes-fgroup { padding: 18px 0; border-bottom: 1px solid var(--line); }
.aes-fgroup:first-of-type { padding-top: 0; }
.aes-fgroup h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin: 0 0 12px; }
.aes-tree, .aes-tree ul { list-style: none; margin: 0; padding: 0; }
.aes-tree ul { display: none; padding: 2px 0 6px 12px; border-left: 1px solid var(--line); margin-left: 10px; }
.aes-tree-top.is-open > ul { display: block; }
.aes-cat { display: flex; width: 100%; justify-content: space-between; gap: 8px; text-align: left; background: none; border: 0; padding: 7px 10px; border-radius: 8px; font: 400 15px/1.3 var(--sans); color: var(--ink); cursor: pointer; }
.aes-tree ul .aes-cat { font-size: 14px; color: var(--ink-soft); padding: 5px 10px; }
.aes-cat:hover { background: var(--sage-l); }
.aes-cat.is-active { background: var(--ink); color: #fff; }
.aes-cat .n, .aes-opt .n { font-style: normal; font-size: 12px; color: var(--ink-soft); opacity: .8; }
.aes-cat.is-active .n { color: #fff; }
.aes-opts { display: grid; gap: 2px; }
.aes-opts.is-long { max-height: 260px; overflow-y: auto; scrollbar-width: thin; }
.aes-opt { display: flex; align-items: center; gap: 10px; padding: 5px 4px; font-size: 15px; cursor: pointer; border-radius: 6px; }
.aes-opt:hover { background: var(--sage-l); }
.aes-opt input { accent-color: var(--sage-d); width: 16px; height: 16px; margin: 0; flex: none; }
.aes-opt span { flex: 1; }
.aes-opt.is-zero { opacity: .4; }
.aes-sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); flex: none; background-image: linear-gradient(135deg, rgba(255,255,255,.35), transparent 60%); }
.aes-cat-main { min-width: 0; }
.aes-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.aes-crumbs button { background: none; border: 0; padding: 0; font: inherit; color: var(--sage-d); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.aes-crumbs strong { font-weight: 500; color: var(--ink); }
.aes-crumb-rest { display: contents; }
.aes-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; position: sticky; top: 76px; z-index: 10; background: var(--cream); padding: 12px 0; border-bottom: 1px solid var(--line); }
.admin-bar .aes-toolbar { top: 108px; }
.aes-search { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 0 16px; flex: 1 1 260px; color: var(--ink-soft); }
.aes-search input { border: 0; background: transparent; padding: 11px 0; font: 400 15px var(--sans); width: 100%; outline: none; }
.aes-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.aes-sort select { border: 1px solid var(--line); background: var(--paper); border-radius: 99px; padding: 10px 14px; font: 400 14px var(--sans); color: var(--ink); }
.aes-side-open { display: none; }
.aes-resbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 0 22px; font-size: 14px; color: var(--ink-soft); }
.aes-rescount strong { color: var(--ink); font-weight: 500; }
.aes-active { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.aes-chip { background: var(--blush-l); border: 1px solid var(--blush); border-radius: 99px; padding: 4px 12px; font: 400 13px var(--sans); color: var(--ink); cursor: pointer; }
.aes-chip:hover { background: var(--blush); }
.aes-onlysel { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; margin-left: auto; }
.aes-onlysel input { accent-color: var(--sage-d); }
.aes-item-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.aes-item-tags span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-soft); background: var(--cream); border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; }
.aes-item-tags .aes-sw { width: 10px; height: 10px; }
.aes-qty small { text-transform: none; letter-spacing: 0; }
.aes-side-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(20,22,18,.45); }
@media (max-width: 999px) {
	.aes-side-open { display: inline-flex; }
	.aes-sidebar { position: fixed; z-index: 70; top: 0; bottom: 0; left: 0; width: min(88vw, 360px); max-height: none; background: var(--cream); padding: 0 20px 90px; transform: translateX(-102%); transition: transform .3s; box-shadow: var(--shadow); }
	.admin-bar .aes-sidebar { top: 0; }
	.aes-side-is-open .aes-sidebar { transform: none; }
	.aes-side-is-open { overflow: hidden; }
	.aes-side-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--cream); padding: 18px 0; margin-bottom: 8px; border-bottom: 1px solid var(--line); z-index: 1; }
	.aes-side-head strong { font-family: var(--serif); font-size: 26px; font-weight: 500; }
	.aes-side-close { background: none; border: 0; font-size: 32px; line-height: 1; cursor: pointer; color: var(--ink); }
	.aes-side-foot { display: flex; gap: 10px; position: fixed; bottom: 0; left: 0; width: min(88vw, 360px); padding: 14px 20px; background: var(--cream); border-top: 1px solid var(--line); }
	.aes-side-apply { display: inline-flex; }
	.aes-side-foot .aes-btn { flex: 1; justify-content: center; margin: 0; }
	.aes-toolbar { top: 64px; }
	.admin-bar .aes-toolbar { top: 64px; }
	.aes-search { flex: 1 1 100%; }
	.aes-sort span { display: none; }
	.aes-onlysel { margin-left: 0; }
}
.aes-items { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.aes-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, border-color .25s; }
.aes-item.is-selected { border-color: var(--sage); box-shadow: 0 0 0 2px var(--sage-l), var(--shadow); }
.aes-item-img { aspect-ratio: 1; background: var(--sage-l); }
.aes-item-img > * { width: 100%; height: 100%; object-fit: cover; }
.aes-item-img .aes-mono { width: 30%; }
.aes-item-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.aes-code { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.aes-item h3 { font-size: 23px; margin: 4px 0 6px; }
.aes-item p { font-size: 14px; color: var(--ink-soft); margin-bottom: 10px; }
.aes-item-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: auto 0 14px; padding-top: 6px; font-size: 14px; }
.aes-price { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.aes-price small { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); font-weight: 300; }
.aes-avail { color: var(--sage-d); font-size: 13px; }
.aes-qty { display: grid; grid-template-columns: 1fr 40px 64px 40px; align-items: center; gap: 0; border-top: 1px solid var(--line); padding-top: 14px; }
.aes-qty span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.aes-qty button { height: 40px; border: 1px solid var(--line); background: var(--cream); font-size: 20px; cursor: pointer; color: var(--ink); }
.aes-qty button:first-of-type { border-radius: 99px 0 0 99px; }
.aes-qty button:last-of-type { border-radius: 0 99px 99px 0; }
.aes-qty button:hover { background: var(--sage-l); }
.aes-qty input { height: 40px; border: 1px solid var(--line); border-left: 0; border-right: 0; text-align: center; font: 500 16px var(--sans); width: 100%; -moz-appearance: textfield; background: var(--paper); }
.aes-qty input::-webkit-inner-spin-button, .aes-qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.aes-rent-details { margin-top: 64px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); padding: 40px 28px; scroll-margin-top: 140px; }
@media (min-width: 720px) { .aes-rent-details { padding: 48px 56px; } }
.aes-cartbar { position: fixed; z-index: 50; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 18px; background: var(--ink); color: #fff; padding: 10px 10px 10px 24px; border-radius: 99px; box-shadow: 0 12px 40px -8px rgba(0,0,0,.4); white-space: nowrap; font-size: 15px; }
.aes-cartbar strong { color: var(--gold-l); font-size: 18px; }
.aes-cartbar .aes-btn { background: var(--gold); }
.aes-cartbar .aes-btn:hover { background: var(--gold-l); color: var(--ink); }

/* ---------- Dove siamo ---------- */
.aes-where { display: grid; gap: 24px; }
@media (min-width: 880px) { .aes-where { grid-template-columns: 380px 1fr; } }
.aes-where-info { display: grid; gap: 20px; align-content: start; }
.aes-where-info .aes-card { padding: 28px; }
.aes-map { border-radius: var(--radius); overflow: hidden; min-height: 420px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.aes-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: saturate(.7) sepia(.08); }

/* ---------- Gallery ---------- */
.aes-gal-tabs { justify-content: center; margin-bottom: 32px; }
.aes-gallery { columns: 3 280px; column-gap: 16px; }
.aes-gal-item { display: block; margin-bottom: 16px; border-radius: 10px; overflow: hidden; break-inside: avoid; }
.aes-gal-item img { width: 100%; transition: transform .6s, filter .3s; }
.aes-gal-item:hover img { transform: scale(1.03); filter: brightness(1.05); }
.aes-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20,22,18,.94); display: grid; place-items: center; padding: 24px 64px; }
.aes-lightbox img { max-height: 88vh; max-width: 100%; border-radius: 6px; }
.aes-lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; cursor: pointer; padding: 12px; line-height: 1; opacity: .8; }
.aes-lightbox button:hover { opacity: 1; color: var(--gold-l); }
.aes-lb-close { top: 8px; right: 12px; }
.aes-lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.aes-lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- Contatti ---------- */
.aes-contact-cards { margin-top: 0; }
.aes-contact-cards p { word-break: break-word; }
.aes-social { display: flex; justify-content: center; align-items: center; gap: 16px; }
.aes-social .aes-eyebrow { margin: 0; }
.aes-social a .aes-ico, .aes-footer-social .aes-ico { width: 26px; height: 26px; }

/* ---------- Footer ---------- */
.aes-footer { background: var(--sage-dd); color: #d9ddd2; padding: 64px 0 0; font-size: 15px; }
.aes-footer a { color: #eef0e9; text-decoration: none; }
.aes-footer a:hover { color: var(--gold-l); }
.aes-footer-grid { display: grid; gap: 40px; padding-bottom: 48px; }
@media (min-width: 720px) { .aes-footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.aes-footer h4 { color: var(--gold-l); font-family: var(--sans); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; margin-bottom: 18px; }
.aes-footer ul { list-style: none; margin: 0; padding: 0; }
.aes-footer li { margin-bottom: 10px; }
.aes-footer-mono { width: 72px; height: 72px; background: #1f251c; border-radius: 50%; padding: 6px; margin-bottom: 14px; }
.aes-footer-name { font-family: var(--serif); font-size: 32px; color: #fff; margin: 0; line-height: 1; }
.aes-footer-tag { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-l); margin-top: 6px; }
.aes-footer-social { display: flex; gap: 14px; margin-top: 16px; }
.aes-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; padding-bottom: 24px; font-size: 13px; color: #aab09f; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
.aes-more { text-align: center; margin: 32px 0 8px; }
