/* Apulian Catering · stile del tema
   Impianto: immagini a tutta larghezza alternate a fasce di testo strette,
   un solo momento forte per pagina (hero e servizi interattivi). */

:root {
	--ink: #241E18;
	--sage: #638F8A;
	--sage-deep: #2E4744;
	--sage-soft: #A8BAA3;
	--stone: #EEEDEC;
	--paper: #FAFAF8;
	--muted: #6B6660;
	--line: rgba(36, 30, 24, .14);
	--line-light: rgba(255, 255, 255, .22);
	--f-display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
	--f-body: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-script: "Marck Script", "Snell Roundhand", cursive;
	--step-0: clamp(1rem, .96rem + .2vw, 1.0625rem);
	--step-1: clamp(1.2rem, 1.08rem + .6vw, 1.5rem);
	--step-2: clamp(1.55rem, 1.28rem + 1.3vw, 2.35rem);
	--step-3: clamp(2.1rem, 1.55rem + 2.7vw, 3.9rem);
	--step-4: clamp(2.6rem, 1.75rem + 4.4vw, 6rem);
	--wrap: 1240px;
	--gut-l: max(20px, env(safe-area-inset-left, 0px));
	--gut-r: max(20px, env(safe-area-inset-right, 0px));
	--pad-y: clamp(72px, 9vw, 140px);
	--ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: var(--step-0); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 2px; }
:is(.ac-content, .is-root-container) :where(p, h1, h2, h3, h4, figure, ul, ol, blockquote) { margin: 0; }
:is(.ac-content, .is-root-container) em { font-style: italic; color: var(--sage); }
:is(.ac-content, .is-root-container) :where(h1, h2, h3), .ac-h1, .ac-h2 { font-family: var(--f-display); font-weight: 400; line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; }
:is(.ac-content, .is-root-container) h1, .ac-h1 { font-size: var(--step-4); line-height: .98; }
:is(.ac-content, .is-root-container) h2, .ac-h2 { font-size: var(--step-3); }
:is(.ac-content, .is-root-container) h3 { font-size: var(--step-2); }
:is(.ac-content, .is-root-container) p { text-wrap: pretty; }
:is(.ac-content, .is-root-container) a:not(.wp-block-button__link):not(.ac-card__link) { color: var(--sage); text-underline-offset: 3px; }

/* Contenitore e sezioni */
.ac-wrap,
:is(.ac-content, .is-root-container) > .wp-block-group:not(.ac-hero):not(.ac-marquee):not(.ac-full) {
	padding-left: var(--gut-l);
	padding-right: var(--gut-r);
}
.ac-wrap { max-width: var(--wrap); margin-inline: auto; }
.ac-section { padding-block: var(--pad-y); }
.ac-section > * { max-width: var(--wrap); margin-inline: auto !important; }
.ac-section > * + * { margin-top: clamp(32px, 4.5vw, 60px) !important; }
.ac-section > .ac-eyebrow + * { margin-top: 14px !important; }
.ac-section > .ac-head + * { margin-top: 0 !important; }
[hidden] { display: none !important; }
.ac-section--stone { background: var(--stone); }
.ac-section--dark { background: var(--sage-deep); color: #fff; }
.ac-section--dark em, .ac-on-dark em { color: var(--sage-soft) !important; }
.ac-section--tight { padding-block: clamp(48px, 6vw, 90px); }
.ac-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 4px; text-decoration: none; }
.ac-skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.ac-eyebrow, .ac-kicker { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sage); }
.ac-section--dark .ac-eyebrow, .ac-on-dark .ac-eyebrow { color: var(--sage-soft); }
.ac-kicker { color: var(--muted); letter-spacing: .14em; font-size: .7rem; }
.ac-lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink); }
.ac-muted, :is(.ac-content, .is-root-container) .ac-muted { color: var(--muted); }
.ac-section--dark .ac-muted { color: rgba(255, 255, 255, .78); }
.ac-signature { font-family: var(--f-script); font-size: 2.2rem; line-height: 1; }
.ac-signature-role { font-size: .8rem; color: var(--muted); letter-spacing: .04em; }

/* Pulsanti (blocco Pulsanti nativo + pulsanti del tema) */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.ac-btn, :is(.ac-content, .is-root-container) .wp-block-button__link {
	display: inline-flex; align-items: center; gap: .6em; padding: .95em 1.6em; border-radius: 999px;
	font: 600 .9rem/1.2 var(--f-body); letter-spacing: .02em; text-decoration: none; border: 1px solid transparent; cursor: pointer;
	background: var(--sage); color: #fff; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.ac-btn:hover, :is(.ac-content, .is-root-container) .wp-block-button__link:hover { transform: translateY(-2px); background: var(--sage-deep); }
.ac-btn svg { width: 1.1em; height: 1.1em; }
.ac-btn--ghost, :is(.ac-content, .is-root-container) .is-style-outline .wp-block-button__link { background: transparent; color: inherit; border-color: currentColor; }
.ac-btn--ghost:hover, :is(.ac-content, .is-root-container) .is-style-outline .wp-block-button__link:hover { background: rgba(127, 127, 127, .1); }
.ac-btn--light, .ac-on-dark .wp-block-button:not(.is-style-outline) .wp-block-button__link, .ac-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: #fff; color: var(--ink); }
.ac-btn--light:hover, .ac-on-dark .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover, .ac-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: var(--stone); }
.ac-more { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: .88rem; color: var(--sage); }
.ac-more svg { width: 1em; height: 1em; transition: transform .3s var(--ease); }

/* Header */
.ac-hdr { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px); color: var(--ink); background: rgba(250, 250, 248, .94); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: background .4s, box-shadow .4s, color .4s; }
.ac-has-hero .ac-hdr:not(.is-solid) { background: transparent; box-shadow: none; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.ac-hdr__in { display: flex; align-items: center; gap: 28px; height: 76px; transition: height .4s; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.ac-has-hero .ac-hdr:not(.is-solid) .ac-hdr__in { height: 88px; }
.ac-hdr__logo { position: relative; display: block; width: 148px; height: 51px; flex: none; margin-right: auto; }
.ac-hdr__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .4s; }
.ac-logo--light { opacity: 0; }
.ac-has-hero .ac-hdr:not(.is-solid) .ac-logo--light { opacity: 1; }
.ac-has-hero .ac-hdr:not(.is-solid) .ac-logo--dark { opacity: 0; }
.ac-nav__list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: .875rem; font-weight: 500; }
.ac-nav__list > li { position: relative; }
.ac-nav__list a { display: block; padding-block: 8px; text-decoration: none; position: relative; }
.ac-nav__list > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.ac-nav__list > li > a:hover::after, .ac-nav__list > .current-menu-item > a::after, .ac-nav__list > .current-menu-ancestor > a::after, .ac-nav__list > .current-page-ancestor > a::after { transform: scaleX(1); transform-origin: left; }
.ac-nav__list .sub-menu { position: absolute; left: -18px; top: 100%; min-width: 270px; list-style: none; margin: 0; padding: 12px 0; background: var(--paper); color: var(--ink); box-shadow: 0 18px 40px rgba(36, 30, 24, .14); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
.ac-nav__list li:hover > .sub-menu, .ac-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ac-nav__list .sub-menu a { padding: 8px 18px; font-size: .86rem; }
.ac-nav__list .sub-menu a:hover, .ac-nav__list .sub-menu .current-menu-item > a { color: var(--sage); }
.ac-lang { display: flex; gap: 2px; font-size: .74rem; letter-spacing: .1em; }
.ac-lang a { text-decoration: none; padding: 6px 6px; opacity: .6; }
.ac-lang a[aria-current] { opacity: 1; font-weight: 700; }
.ac-lang a + a::before { content: "/"; margin-right: 8px; opacity: .5; font-weight: 400; }
.ac-hdr__cta { padding: .75em 1.3em; }
.ac-has-hero .ac-hdr:not(.is-solid) .ac-hdr__cta { background: #fff; color: var(--ink); }
.ac-burger { display: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.ac-burger span { display: block; height: 1.5px; background: currentColor; margin: 6px 0; }
.ac-mnav { position: fixed; inset: 0; z-index: 70; background: var(--sage-deep); color: #fff; overflow-y: auto; padding: calc(84px + env(safe-area-inset-top, 0px)) var(--gut-r) calc(40px + env(safe-area-inset-bottom, 0px)) var(--gut-l); display: flex; flex-direction: column; gap: 30px; }
.ac-mnav[hidden] { display: none; }
.ac-mnav.is-open { animation: ac-drop .5s var(--ease); }
@keyframes ac-drop { from { transform: translateY(-24px); opacity: 0; } }
.ac-mnav__list, .ac-mnav__list .sub-menu { list-style: none; margin: 0; padding: 0; }
.ac-mnav__list > li > a { font-family: var(--f-display); font-size: 2.2rem; line-height: 1.25; text-decoration: none; }
.ac-mnav__list .sub-menu { padding: 6px 0 12px 2px; columns: 1; }
.ac-mnav__list .sub-menu a { display: block; padding: 5px 0; font-size: .95rem; opacity: .8; text-decoration: none; }
.ac-mnav__close { position: absolute; top: calc(18px + env(safe-area-inset-top, 0px)); right: var(--gut-r); width: 44px; height: 44px; background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; }
.ac-mnav__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: auto; }

/* Hero (Gruppo .ac-hero > Galleria .ac-hero__slides + Gruppo .ac-hero__body) */
.ac-hero { position: relative; min-height: clamp(600px, 94vh, 940px); display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--sage-deep); }
.ac-hero--page { min-height: clamp(480px, 74vh, 760px); }
.ac-hero .ac-hero__slides { position: absolute !important; inset: 0; display: block !important; margin: 0 !important; }
.ac-hero .ac-hero__slides > figure { position: absolute !important; inset: 0; width: 100% !important; height: 100%; margin: 0 !important; opacity: 0; transition: opacity 1.6s ease; }
.ac-hero .ac-hero__slides > figure:first-child, .ac-hero .ac-hero__slides > figure.is-on { opacity: 1; }
.ac-hero .ac-hero__slides.is-ready > figure:not(.is-on) { opacity: 0; }
.ac-hero .ac-hero__slides img { width: 100% !important; height: 100% !important; object-fit: cover; transform: scale(1.04); }
.ac-hero .ac-hero__slides figure.is-on img { animation: ac-kb 9s linear forwards; }
.ac-hero .ac-hero__slides figcaption { display: none; }
@keyframes ac-kb { from { transform: scale(1.04); } to { transform: scale(1.14); } }
.ac-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(20, 26, 25, .5) 0%, rgba(20, 26, 25, 0) 24%, rgba(20, 26, 25, .1) 48%, rgba(20, 26, 25, .78) 100%), linear-gradient(90deg, rgba(20, 26, 25, .55) 0%, rgba(20, 26, 25, .2) 55%, rgba(20, 26, 25, 0) 80%); }
.ac-hero__body { text-shadow: 0 1px 24px rgba(10, 14, 13, .35); }
.ac-hero__body .wp-block-button__link { text-shadow: none; }
.ac-hero__body { position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin-inline: auto; padding: 150px var(--gut-r) 56px var(--gut-l); display: grid; gap: 26px; }
.ac-hero__kicker { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
:is(.ac-content, .is-root-container) .ac-hero h1 { max-width: 15ch; }
:is(.ac-content, .is-root-container) .ac-hero h1 em { color: #D5E2D0; }
.ac-hero__intro { max-width: 52ch; font-size: var(--step-1); line-height: 1.5; opacity: .92; }
.ac-hero__meta { display: flex; align-items: center; gap: 16px; font-size: .8rem; letter-spacing: .04em; }
.ac-dots { display: flex; gap: 6px; }
.ac-dots button { width: 28px; height: 3px; border: 0; padding: 0; background: rgba(255, 255, 255, .35); cursor: pointer; position: relative; overflow: hidden; border-radius: 2px; }
.ac-dots button.is-on::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: ac-bar 6.5s linear forwards; }
@keyframes ac-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ac-hero__body > * { animation: ac-up 1s var(--ease) both; }
.ac-hero__body > :nth-child(2) { animation-delay: .1s; }
.ac-hero__body > :nth-child(3) { animation-delay: .2s; }
.ac-hero__body > :nth-child(4) { animation-delay: .3s; }
@keyframes ac-up { from { opacity: 0; transform: translateY(22px); } }

/* Briciole sotto l'hero delle pagine interne */
.ac-crumbs { font-size: .78rem; letter-spacing: .06em; opacity: .85; }
.ac-crumbs a { text-decoration: none; }

/* Nastro scorrevole */
.ac-marquee { background: var(--sage); color: #fff; overflow: hidden; white-space: nowrap; padding-block: 18px; }
.ac-marquee__track { display: flex; width: max-content; animation: ac-mq 40s linear infinite; }
.ac-marquee p { flex: none; white-space: nowrap; font-family: var(--f-display); font-style: italic; font-size: var(--step-1); padding-inline: 22px; display: inline-flex; align-items: center; gap: 44px; }
.ac-marquee p::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sage-soft); }
@keyframes ac-mq { to { transform: translateX(-50%); } }

/* Righe a due colonne (Colonne .ac-split) */
:is(.ac-content, .is-root-container) .ac-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
:is(.ac-content, .is-root-container) .ac-split--rev > :first-child { order: 2; }
:is(.ac-content, .is-root-container) .ac-split > .wp-block-column { display: grid; gap: 20px; align-content: start; flex-basis: auto !important; min-width: 0; }
:is(.ac-content, .is-root-container) .ac-split .ac-muted { max-width: 58ch; }
.ac-split figure img { width: 100%; }
.ac-photo-tall img { aspect-ratio: 4 / 5; object-fit: cover; }
.ac-photo-wide img { aspect-ratio: 3 / 2; object-fit: cover; }
.ac-tags { display: flex !important; flex-wrap: wrap; gap: 8px; padding: 0 !important; list-style: none; }
.ac-tags li { border: 1px solid var(--line); border-radius: 999px; padding: .35em .95em; font-size: .78rem; }
.ac-sign { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* Collage di due foto con citazione */
.ac-collage { position: relative; aspect-ratio: 4 / 5; }
.ac-collage > figure:first-child { position: absolute !important; inset: 0 18% 12% 0; margin: 0 !important; }
.ac-collage > figure:nth-child(2) { position: absolute !important; width: 52%; aspect-ratio: 3 / 4; right: 0; bottom: 0; margin: 0 !important; border: 8px solid var(--paper); }
.ac-collage figure img { width: 100% !important; height: 100% !important; object-fit: cover; }
:is(.ac-content, .is-root-container) .ac-collage__quote { position: absolute; left: -6%; bottom: 2%; max-width: 15rem; background: var(--sage-deep); color: #fff; padding: 22px 24px; font-family: var(--f-display); font-style: italic; font-size: 1.15rem; line-height: 1.3; }

/* Intestazione di sezione */
.ac-head { display: flex !important; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; margin-bottom: clamp(36px, 5vw, 64px) !important; }
.ac-head > .wp-block-group { display: grid; gap: 14px; max-width: min(100%, 680px); }
.ac-head > .wp-block-group h2 { max-width: 18ch; }
.ac-head > p { max-width: 42ch; color: var(--muted); }
.ac-section--dark .ac-head > p { color: rgba(255, 255, 255, .78); }

/* Servizi interattivi (blocco apulian/services) */
.ac-svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.ac-svc__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ac-svc__item { border-bottom: 1px solid var(--line); }
.ac-svc__btn { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; padding: 20px 0; text-decoration: none; }
.ac-svc__thumb { display: none; }
.ac-svc__text { display: grid; gap: 4px; min-width: 0; }
.ac-svc__title { font-family: var(--f-display); font-size: var(--step-2); line-height: 1.05; transition: color .3s, transform .4s var(--ease); }
.ac-svc__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, border-color .3s, transform .4s var(--ease), color .3s; }
.ac-svc__arrow svg { width: 16px; height: 16px; }
.ac-svc__item.is-on .ac-svc__title, .ac-svc__btn:hover .ac-svc__title { color: var(--sage); transform: translateX(10px); }
.ac-svc__item.is-on .ac-svc__arrow, .ac-svc__btn:hover .ac-svc__arrow { background: var(--sage); border-color: var(--sage); color: #fff; transform: rotate(-45deg); }
.ac-stage { position: sticky; top: 100px; }
.ac-stage__img { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--sage-soft); }
.ac-stage__slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity .7s ease, transform 1.2s var(--ease); }
.ac-stage__slide.is-on { opacity: 1; transform: none; }
.ac-stage__slide img { width: 100%; height: 100%; object-fit: cover; }
.ac-stage__txt { display: none; padding-top: 22px; color: var(--muted); max-width: 52ch; }
.ac-stage__txt.is-on { display: block; }

/* Schede (servizi, servizi collegati) */
.ac-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
.ac-card__link { display: grid; gap: 10px; text-decoration: none; color: inherit; }
.ac-card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); margin-bottom: 8px; }
.ac-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ac-card__link:hover .ac-card__img img { transform: scale(1.05); }
.ac-card__title { font-family: var(--f-display); font-weight: 400; font-size: var(--step-1); line-height: 1.15; margin: 0; transition: color .3s; }
.ac-card__link:hover .ac-card__title { color: var(--sage); }
.ac-card__link:hover .ac-more svg { transform: translateX(4px); }
.ac-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Passaggi numerati (Colonne .ac-steps) */
:is(.ac-content, .is-root-container) .ac-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
:is(.ac-content, .is-root-container) .ac-steps > .wp-block-column { display: grid; gap: 14px; align-content: start; flex-basis: auto !important; min-width: 0; }
.ac-steps figure { aspect-ratio: 4 / 3; overflow: hidden; }
.ac-steps figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ac-steps .wp-block-column:hover figure img { transform: scale(1.06); }
:is(.ac-content, .is-root-container) .ac-step__n { font-family: var(--f-display); color: var(--sage); display: flex; align-items: center; gap: 12px; }
.ac-step__n::after { content: ""; flex: 1; height: 1px; background: var(--line); }
:is(.ac-content, .is-root-container) .ac-steps h3 { font-family: var(--f-body); font-weight: 600; font-size: var(--step-1); letter-spacing: 0; }
.ac-steps p:not(.ac-step__n) { color: var(--muted); font-size: .95rem; }

/* Rotaia orizzontale (piatti, location) */
.ac-rail { display: flex !important; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px !important; scrollbar-width: thin; scrollbar-color: var(--sage) transparent; cursor: grab; scroll-padding-inline: max(var(--gut-l), calc((100vw - var(--wrap)) / 2 + 20px)) var(--gut-r); max-width: none !important; margin-inline: calc(var(--gut-l) * -1) calc(var(--gut-r) * -1) !important; padding-inline: max(var(--gut-l), calc((100vw - var(--wrap)) / 2 + 20px)) var(--gut-r) !important; }
.ac-rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.ac-rail > .wp-block-group { flex: 0 0 clamp(250px, 30vw, 400px); scroll-snap-align: start; display: grid; gap: 12px; align-content: start; user-select: none; }
.ac-rail figure { aspect-ratio: 4 / 5; overflow: hidden; }
.ac-rail figure img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 1.2s var(--ease); }
.ac-rail > .wp-block-group:hover figure img { transform: scale(1.05); }
:is(.ac-content, .is-root-container) .ac-rail h3 { font-size: var(--step-1); line-height: 1.2; }
.ac-rail p { font-size: .88rem; opacity: .75; }
.ac-rail-nav { display: flex; gap: 10px; margin-top: 10px; }
.ac-rail-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: none; color: inherit; cursor: pointer; display: grid; place-items: center; transition: background .3s; }
.ac-section--dark .ac-rail-nav button { border-color: var(--line-light); }
.ac-rail-nav button:hover { background: rgba(127, 127, 127, .14); }
.ac-rail-nav svg { width: 16px; height: 16px; }

/* Fascia con foto e testo (Colonne .ac-band) */
:is(.ac-content, .is-root-container) .ac-band { display: grid; grid-template-columns: 1.2fr 1fr; min-height: 520px; background: var(--stone); }
:is(.ac-content, .is-root-container) .ac-band > .wp-block-column { flex-basis: auto !important; min-width: 0; }
.ac-band > .wp-block-column:first-child { position: relative; min-height: 320px; overflow: hidden; }
.ac-band > .wp-block-column:first-child figure { position: absolute !important; inset: 0; margin: 0 !important; }
.ac-band > .wp-block-column:first-child img { width: 100% !important; height: 100% !important; object-fit: cover; }
.ac-band > .wp-block-column:last-child { padding: clamp(40px, 6vw, 90px) clamp(24px, 6vw, 90px); display: grid; gap: 20px; align-content: center; }
.ac-band .ac-muted { max-width: 46ch; }
.ac-facts { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; list-style: none; padding: 0 !important; font-size: .9rem; }
.ac-facts li { border-top: 1px solid var(--line); padding-top: 10px; }
.ac-facts strong { display: block; font-weight: 600; }

/* Galleria foto delle pagine servizio (Galleria .ac-gallery) */
:is(.ac-content, .is-root-container) .ac-gallery { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 24vw, 360px); grid-auto-flow: dense; gap: clamp(8px, 1.2vw, 16px) !important; }
:is(.ac-content, .is-root-container) .ac-gallery > figure { position: relative; margin: 0 !important; width: auto !important; height: 100%; overflow: hidden; }
:is(.ac-content, .is-root-container) .ac-gallery > figure:nth-child(5n + 1) { grid-column: span 2; grid-row: span 2; }
:is(.ac-content, .is-root-container) .ac-gallery > figure img { width: 100% !important; height: 100% !important; object-fit: cover; transition: transform 1.2s var(--ease); }
:is(.ac-content, .is-root-container) .ac-gallery > figure:hover img { transform: scale(1.04); }
:is(.ac-content, .is-root-container) .ac-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 10px; font-size: .78rem; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); text-align: left; }

/* Elenco con segni di spunta */
.ac-list { list-style: none; padding: 0 !important; display: grid !important; gap: 10px; }
.ac-list li { position: relative; padding-left: 28px; }
.ac-list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(-45deg); }

/* Recensioni */
.ac-reviews__track { display: grid !important; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--sage) transparent; }
.ac-review { scroll-snap-align: start; background: #fff; border: 1px solid var(--line); padding: 30px 28px; display: grid !important; gap: 18px; align-content: space-between; min-width: 0; }
:is(.ac-content, .is-root-container) .ac-review__text { font-family: var(--f-display); font-size: 1.2rem; line-height: 1.4; }
.ac-review__who { font-size: .85rem; font-weight: 600; }
.ac-review__who span, .ac-review__who small { display: block; font-weight: 400; color: var(--muted); font-size: .75rem; }
.ac-score { display: flex !important; align-items: center; gap: 14px; }
.ac-score__stars { color: #B8923A; letter-spacing: 2px; font-size: 1.1rem; }
.ac-score p:last-child { color: var(--muted); font-size: .82rem; }

/* Contatti (Gruppo .ac-contact): pagina chiara, recapiti e mappa a sinistra, modulo a destra */
.ac-contact__intro { display: grid; gap: 18px; }
.ac-contact__intro h1 { margin: 0; }
.ac-contact__intro p { margin: 0; max-width: 60ch; color: var(--muted); }
:is(.ac-content, .is-root-container) .ac-contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.ac-contact__list { list-style: none; padding: 0 !important; margin: 0 !important; display: grid; gap: 0; border-top: 1px solid var(--line); }
.ac-contact__list li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ac-contact__list strong { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
:is(.ac-content, .is-root-container) .ac-contact .ac-contact__list a { color: var(--ink); text-decoration: none; }
:is(.ac-content, .is-root-container) .ac-contact .ac-contact__list a:hover { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 3px; }
.ac-contact .ac-form { border: 1px solid var(--line); }

/* Mappa della sede (blocco apulian/map), a tutta larghezza sotto i contatti */
:is(.ac-content, .is-root-container) > .ac-map, .ac-map { margin: 0 !important; max-width: none !important; width: 100%; background: var(--stone); }
.ac-map iframe { display: block; width: 100%; height: clamp(340px, 42vw, 540px); border: 0; }

/* Sezione preventivo (Gruppo #preventivo .ac-quote) */
.ac-quote { position: relative; color: #fff; overflow: hidden; }
.ac-quote > .ac-quote__bg { position: absolute !important; inset: 0; margin: 0 !important; max-width: none !important; }
.ac-quote > .ac-quote__bg img { width: 100% !important; height: 100% !important; object-fit: cover; }
.ac-quote::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(28, 40, 38, .93) 0%, rgba(28, 40, 38, .8) 50%, rgba(28, 40, 38, .58) 100%); }
.ac-quote > .wp-block-columns { position: relative; z-index: 2; }
:is(.ac-content, .is-root-container) .ac-quote .ac-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
.ac-quote .ac-muted { color: rgba(255, 255, 255, .85); }
.ac-contacts { list-style: none; padding: 0 !important; display: grid !important; gap: 12px; }
.ac-contacts a { color: inherit !important; text-decoration: none; }
.ac-contacts a:hover { text-decoration: underline; }

/* Modulo */
.ac-form { background: var(--paper); color: var(--ink); padding: clamp(24px, 4vw, 44px); display: grid; gap: 20px; scroll-margin-top: 100px; }
.ac-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; min-width: 0; }
.ac-form__q { font-family: var(--f-display); font-size: var(--step-2); line-height: 1.1; padding: 0; margin: 0 0 4px; }
.ac-form__progress { display: none; gap: 6px; }
.ac-form__progress i { flex: 1; height: 3px; background: var(--line); border-radius: 2px; transition: background .4s; }
.ac-form__progress i.is-on { background: var(--sage); }
.ac-form__count { display: none; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.ac-js .ac-form__progress { display: flex; }
.ac-js .ac-form__count { display: block; }
.ac-js .ac-form__step:not(.is-on) { display: none; }
.ac-js .ac-form__step.is-on { animation: ac-up .5s var(--ease); }
.ac-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ac-chip { position: relative; }
.ac-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ac-chip label { display: inline-block; padding: .65em 1.1em; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .9rem; transition: all .25s; }
.ac-chip label:hover { border-color: var(--sage); }
.ac-chip input:checked + label { background: var(--sage); border-color: var(--sage); color: #fff; }
.ac-chip input:focus-visible + label { outline: 2px solid var(--sage); outline-offset: 2px; }
.ac-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ac-field { display: grid; gap: 6px; min-width: 0; }
.ac-field--full { grid-column: 1 / -1; }
.ac-field label { font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.ac-field input, .ac-field textarea { font: inherit; font-size: .95rem; padding: .8em .9em; border: 1px solid var(--line); background: #fff; border-radius: 2px; color: var(--ink); width: 100%; }
.ac-field input:focus, .ac-field textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(99, 143, 138, .2); }
.ac-range { display: flex; align-items: center; gap: 16px; }
.ac-range input { flex: 1; accent-color: var(--sage); padding: 0; border: 0; }
.ac-range output { font-family: var(--f-display); font-size: 1.6rem; color: var(--sage); min-width: 3ch; text-align: right; }
.ac-check { display: flex; gap: 10px; font-size: .82rem; color: var(--muted); align-items: flex-start; }
.ac-check input { accent-color: var(--sage); margin-top: 3px; }
.ac-check a { color: var(--sage); }
.ac-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ac-form__err { color: #A3402E; font-size: .84rem; min-height: 1.2em; margin: 0; }
.ac-form__nav { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.ac-form__nav [data-next], .ac-form__nav [data-submit] { margin-left: auto; }
.ac-form__done .ac-form__q { color: var(--sage); }
.ac-form__done p { margin: 8px 0 0; color: var(--muted); }

/* Servizi collegati in fondo alle pagine servizio */
.ac-related { padding-block: var(--pad-y); background: var(--stone); }
.ac-related__head { display: grid; gap: 14px; margin-block: clamp(48px, 6vw, 80px) clamp(30px, 4vw, 48px); }
.ac-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; border-block: 1px solid var(--line); padding-block: 22px; }
.ac-pager a { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.ac-pager svg { width: 20px; height: 20px; flex: none; transition: transform .3s var(--ease); }
.ac-pager span { display: grid; font-family: var(--f-display); font-size: var(--step-1); line-height: 1.15; }
.ac-pager small { font-family: var(--f-body); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ac-pager__next { justify-self: end; text-align: right; }
.ac-pager__prev:hover svg { transform: translateX(-4px); }
.ac-pager__next:hover svg { transform: translateX(4px); }
.ac-pager__all { font-size: .82rem; font-weight: 600; letter-spacing: .06em; border: 1px solid var(--line); border-radius: 999px; padding: .6em 1.2em; }
.ac-pager__all:hover { border-color: var(--sage); color: var(--sage); }

/* Fascia invito all'azione */
.ac-cta { text-align: center; }
.ac-cta > * { margin-inline: auto !important; }
.ac-cta h2 { max-width: 18ch; }
.ac-cta .ac-muted { max-width: 52ch; }
.ac-cta .wp-block-buttons { justify-content: center; }
.ac-stack { display: grid !important; gap: 22px; }

/* Pagine semplici (privacy, 404) */
.ac-plain { padding-top: 140px; padding-bottom: var(--pad-y); }
.ac-plain > * { max-width: 760px; margin-inline: auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.ac-plain .wp-block-post-title { font-family: var(--f-display); font-weight: 400; font-size: var(--step-3); line-height: 1.05; margin: 0 0 30px; }
.ac-prose > * + * { margin-top: 1em !important; }
.ac-prose h2 { font-size: var(--step-2) !important; margin-top: 1.6em !important; }
.ac-legal { max-width: 860px; margin-inline: auto; }
.ac-legal h3 { font-family: var(--f-body); font-size: var(--step-1); font-weight: 600; letter-spacing: 0; margin-top: 1.8em !important; }
.ac-legal h3 + p { margin-top: .5em !important; }
.ac-legal ul { padding-left: 1.2em; }
.ac-legal li + li { margin-top: .35em; }
.ac-legal a { overflow-wrap: anywhere; }
.ac-legal-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-left: 0; margin-right: 0; }
.ac-legal-table table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .9rem; line-height: 1.5; }
.ac-legal-table :is(th, td) { border: 0 !important; border-bottom: 1px solid var(--line) !important; padding: 12px 14px 12px 0 !important; text-align: left; vertical-align: top; }
.ac-legal-table thead th { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--ink) !important; }
.ac-legal-table table.has-fixed-layout { table-layout: auto; }
.ac-legal-table td:first-child { font-weight: 600; min-width: 9em; overflow-wrap: anywhere; }
.ac-nf .ac-wrap { display: grid; gap: 20px; justify-items: start; max-width: 760px; }

/* Footer */
.ac-ftr { background: var(--ink); color: rgba(255, 255, 255, .75); padding-block: 72px calc(34px + env(safe-area-inset-bottom, 0px)); font-size: .9rem; }
.ac-ftr__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.ac-ftr__brand { display: grid; gap: 16px; align-content: start; }
.ac-ftr__brand img { width: 170px; }
.ac-ftr__brand p { margin: 0; max-width: 32ch; }
.ac-ftr__h { color: #fff; font: 600 .74rem/1.2 var(--f-body); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px; }
.ac-ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ac-ftr a { text-decoration: none; }
.ac-ftr a:hover { color: #fff; }
.ac-ftr__bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 50px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .78rem; }
.ac-ftr__bottom p { margin: 0; }
.ac-ftr__legal { display: flex !important; gap: 18px; }
.ac-wa { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); transition: transform .3s var(--ease); }
.ac-wa:hover { transform: scale(1.08); }
.ac-wa svg { width: 28px; height: 28px; }

/* Comparsa allo scorrimento: il contenuto è visibile anche senza JavaScript */
.ac-js .ac-rv { transform: translateY(28px); opacity: .001; transition: transform 1s var(--ease), opacity 1s ease; }
.ac-js .ac-rv.is-in { transform: none; opacity: 1; }

/* Responsive */
@media (max-width: 1100px) {
	.ac-nav__list { gap: 20px; }
	.ac-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
	.ac-nav, .ac-hdr .ac-lang { display: none; }
	.ac-burger { display: block; }
	.ac-hdr__in { gap: 14px; }
	:is(.ac-content, .is-root-container) .ac-split, :is(.ac-content, .is-root-container) .ac-band, :is(.ac-content, .is-root-container) .ac-quote .ac-split, :is(.ac-content, .is-root-container) .ac-contact__grid { grid-template-columns: 1fr; }
	:is(.ac-content, .is-root-container) .ac-split--rev > :first-child { order: 0; }
	.ac-collage { max-width: 520px; }
	.ac-svc { grid-template-columns: 1fr; }
	.ac-stage { display: none; }
	.ac-svc__btn { grid-template-columns: auto 1fr auto; }
	.ac-svc__thumb { display: block; width: 84px; aspect-ratio: 1; overflow: hidden; }
	.ac-svc__thumb img { width: 100%; height: 100%; object-fit: cover; }
	.ac-svc__btn { padding: 14px 0; }
	.ac-svc__item.is-on .ac-svc__title { transform: none; color: inherit; }
	.ac-svc__item.is-on .ac-svc__arrow { background: none; border-color: var(--line); color: inherit; transform: none; }
	:is(.ac-content, .is-root-container) .ac-steps { grid-template-columns: 1fr; }
	.ac-ftr__grid { grid-template-columns: 1fr 1fr; }
	:is(.ac-content, .is-root-container) .ac-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 46vw, 340px); }
	:is(.ac-content, .is-root-container) .ac-gallery > figure:nth-child(5n + 1) { grid-column: span 2; grid-row: span 1; }
	.ac-pager { grid-template-columns: 1fr 1fr; }
	.ac-pager__all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}
@media (max-width: 600px) {
	.ac-hdr__cta { display: none; }
	.ac-hero__body { padding-bottom: 40px; }
	.ac-cards { grid-template-columns: 1fr; }
	.ac-fields { grid-template-columns: 1fr; }
	:is(.ac-content, .is-root-container) .ac-collage__quote { left: 0; max-width: 12rem; font-size: 1rem; }
	.ac-ftr__grid { grid-template-columns: 1fr; }
	.ac-facts { grid-template-columns: 1fr; }
	.ac-pager span { font-size: 1rem; }
	.ac-svc__thumb { width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.ac-js .ac-rv { transform: none; opacity: 1; }
	.ac-marquee__track { animation: none; }
	html { scroll-behavior: auto; }
}

/* Barra di amministrazione (solo per chi è collegato) */
.admin-bar .ac-hdr { top: 32px; }
@media (max-width: 782px) { .admin-bar .ac-hdr { top: 46px; } }
@media (max-width: 600px) { .admin-bar .ac-hdr { top: 0; } }
body:not(.ac-has-hero) .ac-main:not(.ac-plain) { padding-top: 76px; }

/* Servizi collegati su telefono: fila orizzontale invece di sei schede in colonna */
@media (max-width: 600px) {
	.ac-cards--related { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gut-l) * -1) calc(var(--gut-r) * -1); padding-inline: var(--gut-l) var(--gut-r); scroll-padding-inline: var(--gut-l); padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: var(--sage) transparent; }
	.ac-cards--related > .ac-card { flex: 0 0 74%; scroll-snap-align: start; }
}

/* Recensioni Google (blocco apulian/reviews) */
.ac-review { margin: 0; }
.ac-review blockquote { margin: 0; }
.ac-stars { color: #B8923A; letter-spacing: 2px; }
.ac-stars span { color: var(--line); }
.ac-review__who .ac-stars { display: inline; font-size: .8rem; letter-spacing: 1px; }
.ac-score__n { font-family: var(--f-display); font-size: 3.2rem; line-height: 1; margin: 0; }
.ac-score p { margin: 0; }
.ac-score a { color: inherit; text-underline-offset: 3px; }
.ac-reviews__cta { margin-top: clamp(28px, 4vw, 44px) !important; }
