/* ==========================================================================
   Osteria del Pirata 945 — stile del tema child (mobile first)
   ========================================================================== */

:root {
	--p9-black: #0b0b0b;
	--p9-ink: #111110;
	--p9-surface: #171614;
	--p9-line: rgba(201, 164, 92, .22);
	--p9-gold: #c9a45c;
	--p9-gold-2: #e2c48a;
	--p9-text: #e9e4da;
	--p9-muted: #bab3a7;
	--p9-ivory: #f3eee5;
	--p9-ivory-ink: #1d1b18;
	--p9-serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
	--p9-sans: "Jost", "Helvetica Neue", Arial, sans-serif;
	--p9-gutter: clamp(20px, 5vw, 64px);
	--p9-max: 1280px;
	--p9-header-h: 72px;
	--p9-ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: var(--p9-header-h); }
body.p9 {
	background: var(--p9-black);
	color: var(--p9-text);
	font-family: var(--p9-sans);
	font-weight: 400;
	font-size: 17px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.p9 #wrapper, body.p9 #main, body.p9 .fusion-wrapper, body.p9 #boxed-wrapper { background: transparent; }
body.p9 #main { padding: 0 !important; }
body.p9 #main > .fusion-row { max-width: none !important; padding: 0 !important; }
body.p9 .fusion-fullwidth { padding-left: 0; padding-right: 0; }
body.p9 h1, body.p9 h2, body.p9 h3, body.p9 h4, body.p9 h5 {
	font-family: var(--p9-serif);
	font-weight: 500;
	color: inherit;
	letter-spacing: -.01em;
	margin: 0 0 .5em;
}
body.p9 p { margin: 0 0 1.1em; }
body.p9 a { color: var(--p9-gold); text-decoration: none; transition: color .3s; }
body.p9 a:hover { color: var(--p9-gold-2); }
body.p9 :where(img) { max-width: 100%; height: auto; }
body.p9 ::selection { background: var(--p9-gold); color: var(--p9-black); }
.p9-muted { color: var(--p9-muted); }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.p9-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--p9-gold); color: #000 !important; padding: 8px 16px; }
.p9-skip:focus { left: 8px; }
:focus-visible { outline: 1px solid var(--p9-gold); outline-offset: 3px; }

.p9-wrap { width: 100%; max-width: var(--p9-max); margin: 0 auto; padding: 0 var(--p9-gutter); box-sizing: border-box; }
.p9-wrap--narrow { max-width: 820px; }
.p9-sec { position: relative; padding: clamp(80px, 12vw, 160px) 0; overflow: hidden; }
.p9-sec--tight { padding: clamp(56px, 8vw, 100px) 0; }
.p9-sec--ink { background: var(--p9-ink); }
.p9-sec--surface { background: var(--p9-surface); }
.p9-sec--ivory { background: var(--p9-ivory); color: var(--p9-ivory-ink); }
.p9-sec--ivory .p9-muted { color: #6f6a61; }
.p9-sec--ivory .p9-eyebrow { color: #9c7a39; }

/* ---------- tipografia ---------- */
.p9-eyebrow {
	display: inline-flex; align-items: center; gap: 14px;
	font-family: var(--p9-sans) !important; font-weight: 500 !important;
	font-size: 12px !important; line-height: 1.4 !important; letter-spacing: .28em !important;
	text-transform: uppercase; color: var(--p9-gold); margin: 0 0 22px !important;
}
.p9-eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.p9-eyebrow--center { justify-content: center; }
.p9-eyebrow--center::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.p9-title { font-size: clamp(2.4rem, 6.4vw, 4.6rem) !important; line-height: 1.02 !important; font-weight: 500 !important; }
.p9-title em { font-style: italic; color: var(--p9-gold); font-weight: 400; }
.p9-sec--ivory .p9-title em { color: #9c7a39; }
.p9-lead { font-family: var(--p9-serif); font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.45; font-weight: 400; }
.p9-center { text-align: center; }
.p9-center .p9-eyebrow { justify-content: center; }

/* ---------- bottoni e link ---------- */
.p9-btn, body.p9 a.p9-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	min-height: 52px; padding: 0 30px; border: 1px solid var(--p9-gold);
	font-family: var(--p9-sans); font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
	color: var(--p9-black); background: var(--p9-gold);
	position: relative; overflow: hidden; isolation: isolate;
	transition: color .4s var(--p9-ease), border-color .4s;
}
.p9-btn::after {
	content: ""; position: absolute; inset: 0; z-index: -1; background: var(--p9-gold-2);
	transform: scaleX(0); transform-origin: right; transition: transform .5s var(--p9-ease);
}
.p9-btn:hover::after { transform: scaleX(1); transform-origin: left; }
body.p9 a.p9-btn:hover { color: var(--p9-black); }
body.p9 a.p9-btn--ghost { background: transparent; color: var(--p9-text); border-color: rgba(233, 228, 218, .45); }
.p9-btn--ghost::after { background: var(--p9-text); }
body.p9 a.p9-btn--ghost:hover { color: var(--p9-black); border-color: var(--p9-text); }
.p9-sec--ivory a.p9-btn--ghost { color: var(--p9-ivory-ink); border-color: rgba(29, 27, 24, .4); }
.p9-sec--ivory a.p9-btn--ghost:hover { color: var(--p9-ivory); }
.p9-sec--ivory .p9-btn--ghost::after { background: var(--p9-ivory-ink); }
body.p9 a.p9-btn--sm { min-height: 42px; padding: 0 20px; font-size: 11px; }
.p9-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.p9-center .p9-btns { justify-content: center; }
.p9-btn .p9-ico { width: 18px; height: 18px; }

.p9-link, body.p9 a.p9-link {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
	color: var(--p9-gold); padding-bottom: 6px; position: relative;
}
.p9-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: left; transition: transform .5s var(--p9-ease); }
.p9-link:hover::after { transform: scaleX(.35); }
.p9-link .p9-ico { width: 16px; height: 16px; transition: transform .4s var(--p9-ease); }
.p9-link:hover .p9-ico { transform: translateX(4px); }
.p9-sec--ivory a.p9-link { color: #9c7a39; }

/* ---------- header ---------- */
body.p9 .fusion-header-wrapper, body.p9 .fusion-tb-header { display: none; }
.p9-header {
	position: fixed; z-index: 100; inset: 0 0 auto; height: var(--p9-header-h);
	transition: background .5s, backdrop-filter .5s, transform .5s var(--p9-ease), border-color .5s;
	border-bottom: 1px solid transparent;
}
body.admin-bar .p9-header { top: 46px; }
@media (min-width: 783px) { body.admin-bar .p9-header { top: 32px; } }
body:not(.p9-has-hero) .p9-header, .p9-header.is-solid {
	background: rgba(11, 11, 11, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	border-bottom-color: rgba(201, 164, 92, .14);
}
.p9-header.is-hidden { transform: translateY(-100%); }
body.p9-menu-open .p9-header { background: transparent; border-color: transparent; backdrop-filter: none; transform: none; }
.p9-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; padding: 0 var(--p9-gutter); max-width: 1600px; margin: 0 auto; }
.p9-header__logo { display: block; flex: none; line-height: 0; }
.p9-header__logo img { height: 44px; width: auto; transition: height .4s; }
.p9-nav { display: none; margin-left: auto; }
.p9-header__cta { display: none !important; }
.p9-nav__list { display: flex; gap: clamp(14px, 1.9vw, 32px); list-style: none; margin: 0; padding: 0; }
.p9-nav__list a {
	color: var(--p9-text) !important; font-size: 12px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
	position: relative; padding: 8px 0; white-space: nowrap;
}
.p9-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--p9-gold); transform: scaleX(0); transition: transform .45s var(--p9-ease); }
.p9-nav__list a:hover::after, .p9-nav__list a.is-active::after { transform: scaleX(1); }
.p9-nav__list a.is-active { color: var(--p9-gold) !important; }

.p9-burger { margin-left: auto; width: 46px; height: 46px; background: none; border: 0; padding: 0; cursor: pointer; position: relative; z-index: 120; color: var(--p9-text); }
.p9-burger__l { position: absolute; left: 11px; right: 11px; height: 1px; background: currentColor; transition: transform .45s var(--p9-ease), top .3s; }
.p9-burger__l:nth-of-type(2) { top: 19px; }
.p9-burger__l:nth-of-type(3) { top: 27px; left: 19px; }
body.p9-menu-open .p9-burger__l:nth-of-type(2) { top: 23px; transform: rotate(45deg); }
body.p9-menu-open .p9-burger__l:nth-of-type(3) { top: 23px; left: 11px; transform: rotate(-45deg); }

@media (min-width: 1100px) {
	:root { --p9-header-h: 88px; }
	.p9-nav { display: block; }
	.p9-header__cta { display: inline-flex !important; }
	.p9-burger, .p9-overlay { display: none !important; }
	.p9-header__logo img { height: 54px; }
	.p9-header.is-solid .p9-header__logo img { height: 46px; }
}

/* ---------- overlay menu mobile ---------- */
.p9-overlay {
	position: fixed; inset: 0; z-index: 110; background: var(--p9-black);
	display: flex; flex-direction: column; justify-content: center; padding: 100px var(--p9-gutter) 40px;
	clip-path: circle(0 at calc(100% - 44px) 36px); visibility: hidden;
	transition: clip-path .8s var(--p9-ease), visibility 0s .8s;
}
body.p9-menu-open .p9-overlay { clip-path: circle(150% at calc(100% - 44px) 36px); visibility: visible; transition: clip-path .8s var(--p9-ease); }
.p9-overlay__list { list-style: none; margin: 0; padding: 0; }
.p9-overlay__list li { overflow: hidden; }
.p9-overlay__list a {
	display: block; font-family: var(--p9-serif); font-size: clamp(2rem, 9vw, 3rem); line-height: 1.3; color: var(--p9-text) !important;
	transform: translateY(110%); transition: transform .7s var(--p9-ease), color .3s;
}
body.p9-menu-open .p9-overlay__list a { transform: none; transition-delay: calc(.2s + var(--i) * .06s); }
.p9-overlay__list a:hover, .p9-overlay__list a.is-active { color: var(--p9-gold) !important; font-style: italic; }
.p9-overlay__foot { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--p9-line); opacity: 0; transition: opacity .5s .5s; }
body.p9-menu-open .p9-overlay__foot { opacity: 1; }
.p9-overlay__foot a { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: .08em; color: var(--p9-gold) !important; }
body.p9-menu-open { overflow: hidden; }

/* ---------- pulsante Prenota flottante ---------- */
.p9-fab {
	position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90;
	display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 24px 0 20px; border-radius: 999px;
	background: var(--p9-gold); color: var(--p9-black) !important; box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
	font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
	transform: translateY(140%); opacity: 0; transition: transform .6s var(--p9-ease), opacity .4s, background .3s;
}
.p9-fab.is-visible { transform: none; opacity: 1; }
.p9-fab:hover { background: var(--p9-gold-2); }
.p9-fab .p9-ico { width: 18px; height: 18px; }
@media (min-width: 768px) { .p9-fab { right: 28px; bottom: 28px; } }

/* ---------- immagini ---------- */
.p9-pic { display: block; width: 100%; height: 100%; }
.p9-pic img { display: block; width: 100%; height: 100%; }
.p9-cover img { object-fit: cover; }
.p9-frame { position: relative; margin: 0; overflow: hidden; background: #1a1916; }
.p9-par { position: absolute; inset: -12% 0; will-change: transform; }
.p9-frame:not(:has(.p9-par)) .p9-pic { position: absolute; inset: 0; }

/* ---------- HERO ---------- */
.p9-hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; display: grid; place-items: center; text-align: center; background: #000; }
.p9-hero__media { position: absolute; inset: -6% 0; will-change: transform; }
.p9-hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.p9-hero__slide.is-active { opacity: 1; }
.p9-hero__slide .p9-pic { position: absolute; inset: 0; }
.p9-hero__slide img { transform: scale(1.12); transition: transform 9s linear; }
.p9-hero__slide.is-active img { transform: scale(1); }
.p9-hero__shade { position: absolute; inset: 0; background:
	radial-gradient(ellipse at center, rgba(0,0,0,.25) 0%, rgba(0,0,0,.6) 75%),
	linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.15) 60%, rgba(11,11,11,1) 100%); }
.p9-hero__content { position: relative; z-index: 2; padding: 0 var(--p9-gutter); max-width: 900px; }
.p9-hero__content h1 { margin: 0; line-height: 0; }
.p9-hero__logo { width: min(64vw, 340px); height: auto; filter: drop-shadow(0 6px 30px rgba(0,0,0,.5)); }
.p9-hero__tag { font-family: var(--p9-serif); font-style: italic; font-size: clamp(1.4rem, 3.4vw, 2.2rem); line-height: 1.3; color: var(--p9-text); margin: 30px 0 0 !important; }
.p9-hero__loc { font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--p9-gold); margin: 18px 0 0 !important; }
.p9-hero .p9-btns { justify-content: center; }
.p9-hero__content > * { opacity: 0; transform: translateY(24px); animation: p9-in 1.2s var(--p9-ease) forwards; }
.p9-hero__content > *:nth-child(2) { animation-delay: .25s; }
.p9-hero__content > *:nth-child(3) { animation-delay: .4s; }
.p9-hero__content > *:nth-child(4) { animation-delay: .55s; }
@keyframes p9-in { to { opacity: 1; transform: none; } }
.p9-hero__scroll { position: absolute; z-index: 2; bottom: 28px; left: 50%; width: 1px; height: 64px; background: rgba(233,228,218,.25); overflow: hidden; }
.p9-hero__scroll span { position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--p9-gold); animation: p9-scroll 2.2s var(--p9-ease) infinite; }
@keyframes p9-scroll { to { top: 100%; } }

/* ---------- split (testo + immagini) ---------- */
.p9-split { display: grid; gap: clamp(48px, 7vw, 110px); align-items: center; }
@media (min-width: 900px) { .p9-split { grid-template-columns: 1fr 1fr; } .p9-split--rev > :first-child { order: 2; } }
.p9-stack { position: relative; padding: 0 0 18% 0; }
.p9-stack .p9-frame:first-child { aspect-ratio: 4 / 5; width: 78%; }
.p9-stack .p9-frame:nth-child(2) { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 5; box-shadow: -18px -18px 0 var(--p9-ivory); }
.p9-sec--ink .p9-stack .p9-frame:nth-child(2) { box-shadow: -18px -18px 0 var(--p9-ink); }

.p9-pillars { display: grid; gap: 40px; margin-top: clamp(64px, 9vw, 120px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid rgba(29,27,24,.15); }
@media (min-width: 768px) { .p9-pillars { grid-template-columns: repeat(3, 1fr); } }
.p9-pillar .p9-ico { width: 34px; height: 34px; color: #9c7a39; margin-bottom: 18px; stroke-width: 1.1; }
.p9-pillar h3 { font-size: 1.8rem !important; margin-bottom: .35em !important; }
.p9-pillar p { font-size: 16.5px; line-height: 1.7; color: #3d3933; }

/* ---------- banda parallax con citazione ---------- */
.p9-band { position: relative; min-height: 78vh; min-height: 78svh; display: grid; place-items: center; text-align: center; overflow: hidden; }
.p9-band > .p9-frame { position: absolute; inset: 0; }
.p9-band::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.p9-band__quote { position: relative; z-index: 2; padding: 0 var(--p9-gutter); max-width: 1000px; }
.p9-band__quote blockquote { margin: 0; border: 0; padding: 0; font-family: var(--p9-serif); font-style: italic; font-size: clamp(2.2rem, 6.5vw, 5rem); line-height: 1.08; color: var(--p9-text); }
.p9-band__quote cite { display: block; margin-top: 26px; font-style: normal; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--p9-gold); }

/* ---------- marquee ---------- */
.p9-marquee { overflow: hidden; border-block: 1px solid var(--p9-line); padding: 22px 0; background: var(--p9-black); }
.p9-marquee__track { display: flex; width: max-content; animation: p9-marquee 50s linear infinite; }
.p9-marquee span { font-family: var(--p9-serif); font-style: italic; font-size: clamp(1.6rem, 3.5vw, 2.6rem); color: var(--p9-text); white-space: nowrap; padding: 0 28px; }
.p9-marquee i { color: var(--p9-gold); font-style: normal; font-size: 14px; align-self: center; }
@keyframes p9-marquee { to { transform: translateX(-50%); } }

/* ---------- menu / specialità ---------- */
.p9-menu-head { display: grid; gap: 30px; margin-bottom: clamp(48px, 6vw, 80px); }
@media (min-width: 900px) { .p9-menu-head { grid-template-columns: 1.1fr .9fr; align-items: end; } }
.p9-menu-links { display: grid; gap: 12px; }
.p9-menu-link {
	display: flex !important; align-items: center; gap: 18px; padding: 22px 24px; border: 1px solid var(--p9-line);
	color: var(--p9-text) !important; transition: border-color .4s, background .4s;
}
.p9-menu-link:hover { border-color: var(--p9-gold); background: rgba(201,164,92,.06); }
.p9-menu-link .p9-ico { width: 28px; height: 28px; color: var(--p9-gold); flex: none; stroke-width: 1.2; }
.p9-menu-link strong { display: block; font-family: var(--p9-serif); font-weight: 500; font-size: 1.5rem; line-height: 1.2; }
.p9-menu-link small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--p9-muted); }
.p9-menu-link .p9-ico--arrow { margin-left: auto; width: 20px; transition: transform .4s var(--p9-ease); }
.p9-menu-link:hover .p9-ico--arrow { transform: translateX(6px); }
.p9-note { font-size: 15px; color: var(--p9-muted); margin-top: 6px; }
.p9-note strong { color: var(--p9-gold); font-weight: 500; }

.p9-dishes {
	display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 16px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	margin: 0 calc(var(--p9-gutter) * -1); padding: 0 var(--p9-gutter) 8px; scroll-padding: 0 var(--p9-gutter);
}
.p9-dishes::-webkit-scrollbar { display: none; }
.p9-dish { scroll-snap-align: start; }
.p9-dish__img { aspect-ratio: 4 / 5; overflow: hidden; background: #1a1916; position: relative; }
.p9-dish__img .p9-pic { position: absolute; inset: 0; }
.p9-dish__img img { transition: transform 1.2s var(--p9-ease); }
.p9-dish:hover .p9-dish__img img { transform: scale(1.06); }
.p9-dish__title { font-size: 1.55rem !important; margin: 18px 0 4px !important; }
.p9-dish__text { font-size: 15.5px; color: var(--p9-muted); margin: 0; }
@media (min-width: 700px) { .p9-dishes { grid-auto-columns: 42%; } }
@media (min-width: 1100px) {
	.p9-dishes { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: 48px 32px; }
}
.p9-swipe-hint { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--p9-muted); }
@media (min-width: 1100px) { .p9-swipe-hint { display: none; } }

/* ---------- riconoscimenti ---------- */
.p9-awards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--p9-line); border: 1px solid var(--p9-line); }
@media (min-width: 768px) { .p9-awards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .p9-awards { grid-template-columns: repeat(5, 1fr); } }
.p9-awards li { background: var(--p9-ink); }
.p9-awards a { display: flex; flex-direction: column; align-items: center; gap: 18px; height: 100%; padding: 34px 18px 28px; text-align: center; color: var(--p9-text) !important; transition: background .4s; }
.p9-awards a:hover { background: #1b1a17; }
.p9-awards__badge { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: #fff; display: grid; place-items: center; transition: transform .6s var(--p9-ease); }
.p9-awards a:hover .p9-awards__badge { transform: scale(1.06) rotate(-3deg); }
.p9-awards__badge img { width: 100%; height: 100%; object-fit: cover; }
.p9-awards__title { font-family: var(--p9-serif); font-size: 1.15rem; line-height: 1.3; }

.p9-quotes { margin-top: clamp(64px, 8vw, 110px); display: grid; gap: 40px; }
@media (min-width: 900px) { .p9-quotes { grid-template-columns: repeat(3, 1fr); } }
.p9-quote { margin: 0; padding: 0; border: 0; }
.p9-quote p { font-family: var(--p9-serif); font-style: italic; font-size: 1.35rem; line-height: 1.5; margin: 0 0 14px; }
.p9-quote p::before { content: "“"; display: block; font-size: 3.4rem; line-height: .6; color: var(--p9-gold); margin-bottom: 14px; font-style: normal; }
.p9-quote footer { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--p9-muted); }

/* ---------- galleria ---------- */
.p9-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; grid-auto-flow: dense; }
.p9-gallery__item { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: #1a1916; }
.p9-gallery__item--wide { grid-column: span 2; aspect-ratio: 16 / 10; }
.p9-gallery__item .p9-pic { position: absolute; inset: 0; }
.p9-gallery__item img { transition: transform 1.2s var(--p9-ease), filter .6s; }
.p9-gallery__item:hover img { transform: scale(1.05); }
.p9-gallery__item::after { content: "+"; position: absolute; right: 14px; bottom: 10px; font-family: var(--p9-serif); font-size: 2rem; color: #fff; opacity: 0; transition: opacity .4s; }
.p9-gallery__item:hover::after { opacity: 1; }
@media (min-width: 900px) {
	.p9-gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; }
	.p9-gallery__item--wide { aspect-ratio: auto; grid-row: span 1; }
}
.p9-gallery--teaser .p9-gallery__item:nth-child(n+8) { display: none; }
@media (min-width: 900px) {
	.p9-gallery--teaser { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 22vw); }
	.p9-gallery--teaser .p9-gallery__item { aspect-ratio: auto; grid-column: auto; grid-row: auto; }
	.p9-gallery--teaser .p9-gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
	.p9-gallery--teaser .p9-gallery__item:nth-child(n+6) { display: none; }
}

/* lightbox */
.p9-lb { position: fixed; inset: 0; z-index: 200; background: rgba(5,5,5,.96); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.p9-lb.is-open { opacity: 1; visibility: visible; transition: opacity .4s; }
.p9-lb img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; object-fit: contain; transition: opacity .3s; }
.p9-lb button { position: absolute; background: none; border: 0; color: var(--p9-text); cursor: pointer; width: 54px; height: 54px; display: grid; place-items: center; }
.p9-lb button:hover { color: var(--p9-gold); }
.p9-lb button .p9-ico { width: 26px; height: 26px; }
.p9-lb__close { top: 12px; right: 12px; }
.p9-lb__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.p9-lb__next { right: 8px; top: 50%; transform: translateY(-50%); }
.p9-lb__count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-size: 12px; letter-spacing: .3em; color: var(--p9-muted); }

/* ---------- eventi (card articoli) ---------- */
.p9-posts { display: grid; gap: 40px; }
@media (min-width: 900px) { .p9-posts { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.p9-post__link { display: block; color: var(--p9-text) !important; }
.p9-post__img { aspect-ratio: 4 / 3; overflow: hidden; background: #1a1916; position: relative; }
.p9-post__img .p9-pic { position: absolute; inset: 0; }
.p9-post__img img { transition: transform 1.2s var(--p9-ease); }
.p9-post__link:hover .p9-post__img img { transform: scale(1.05); }
.p9-post__body { padding-top: 22px; }
.p9-post__body .p9-eyebrow { margin-bottom: 12px !important; }
.p9-post__title { font-size: 1.75rem !important; line-height: 1.15 !important; margin-bottom: 12px !important; transition: color .3s; }
.p9-post__link:hover .p9-post__title { color: var(--p9-gold); }
.p9-post__ex { font-size: 16px; color: var(--p9-muted); }
.p9-sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); }
.p9-sec-head .p9-title { margin: 0 !important; }

/* ---------- regala una cena ---------- */
.p9-gift { position: relative; display: grid; overflow: hidden; }
@media (min-width: 900px) { .p9-gift { grid-template-columns: 1.1fr 1fr; min-height: 86vh; } }
.p9-gift__media { position: relative; min-height: 64vh; }
.p9-gift__media .p9-frame { position: absolute; inset: 0; }
.p9-gift__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(56px, 8vw, 120px) var(--p9-gutter); background: var(--p9-surface); }
.p9-gift__card {
	margin-top: clamp(32px, 4vw, 48px); padding: 28px; border: 1px solid var(--p9-gold); position: relative;
	background: linear-gradient(135deg, rgba(201,164,92,.10), rgba(201,164,92,0) 60%);
}
.p9-gift__card::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(201,164,92,.3); pointer-events: none; }
.p9-gift__card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.p9-gift__card li { display: flex; gap: 14px; align-items: baseline; font-size: 16.5px; }
.p9-gift__card li::before { content: "✦"; color: var(--p9-gold); font-size: 11px; }

/* ---------- contatti ---------- */
.p9-contact { display: grid; gap: clamp(48px, 6vw, 96px); }
@media (min-width: 1000px) { .p9-contact { grid-template-columns: 1.1fr .9fr; } }
.p9-actions { display: grid; gap: 12px; margin-top: 34px; }
.p9-action {
	display: flex !important; align-items: center; gap: 18px; padding: 18px 22px; border: 1px solid var(--p9-line);
	color: var(--p9-text) !important; transition: border-color .4s, background .4s;
}
.p9-action:hover { border-color: var(--p9-gold); background: rgba(201,164,92,.06); }
.p9-action .p9-ico { width: 26px; height: 26px; color: var(--p9-gold); flex: none; stroke-width: 1.2; }
.p9-action span { font-family: var(--p9-serif); font-size: 1.5rem; line-height: 1.2; word-break: break-word; }
.p9-action small { display: block; font-family: var(--p9-sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--p9-muted); }
.p9-action--primary { background: var(--p9-gold); border-color: var(--p9-gold); color: var(--p9-black) !important; }
.p9-action--primary .p9-ico, .p9-action--primary small { color: rgba(11,11,11,.75); }
.p9-action--primary:hover { background: var(--p9-gold-2); border-color: var(--p9-gold-2); }
.p9-address { display: flex; gap: 16px; font-style: normal; font-family: var(--p9-serif); font-size: 1.45rem; line-height: 1.4; margin: 0 0 18px; }
.p9-address .p9-ico { color: var(--p9-gold); width: 26px; height: 26px; flex: none; margin-top: 6px; stroke-width: 1.2; }
.p9-hours { margin: 0; }
.p9-hours__row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--p9-line); font-size: 16.5px; }
.p9-hours dt { font-weight: 400; }
.p9-hours dd { margin: 0; text-align: right; color: var(--p9-muted); }
.p9-hours__row.is-today dt, .p9-hours__row.is-today dd { color: var(--p9-gold); }
.p9-hours__row.is-today dt::after { content: " · oggi"; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.p9-contact__box { padding: clamp(28px, 4vw, 48px); background: var(--p9-ink); border: 1px solid var(--p9-line); }
.p9-contact__box + .p9-contact__box { margin-top: 18px; }

/* ---------- footer ---------- */
.p9-footer { background: #070707; border-top: 1px solid var(--p9-line); padding: clamp(64px, 8vw, 100px) 0 0; font-size: 16px; color: var(--p9-muted); }
.p9-footer__grid { display: grid; gap: 44px; }
@media (min-width: 768px) { .p9-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.p9-footer__logo { width: 170px; height: auto; }
.p9-footer__claim { margin-top: 20px; font-family: var(--p9-serif); font-style: italic; font-size: 1.2rem; line-height: 1.5; color: var(--p9-text); }
.p9-footer .p9-eyebrow { font-size: 11px !important; margin-bottom: 16px !important; }
.p9-footer .p9-eyebrow::before { display: none; }
.p9-footer a:not(.p9-link) { color: var(--p9-text); }
.p9-footer a:not(.p9-link):hover { color: var(--p9-gold); }
.p9-social { display: flex; gap: 10px; margin-top: 16px; }
.p9-social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--p9-line); border-radius: 50%; transition: border-color .3s, color .3s; }
.p9-social a:hover { border-color: var(--p9-gold); }
.p9-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 64px; padding-top: 24px; padding-bottom: 100px; border-top: 1px solid rgba(255,255,255,.06); font-size: 13px; letter-spacing: .06em; }

/* ---------- pagine interne (galleria, eventi) e singolo articolo ---------- */
.p9-page-hero { position: relative; min-height: 62vh; min-height: 62svh; display: flex; align-items: flex-end; overflow: hidden; padding: calc(var(--p9-header-h) + 40px) 0 clamp(48px, 6vw, 80px); }
.p9-page-hero > .p9-frame { position: absolute; inset: 0; }
.p9-page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.2) 40%, rgba(11,11,11,.95)); }
.p9-page-hero .p9-wrap { position: relative; z-index: 2; }
.p9-page-hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem) !important; line-height: 1.02 !important; margin: 0 !important; max-width: 16ch; }
.p9-back { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--p9-muted) !important; margin-bottom: 28px; }
.p9-back:hover { color: var(--p9-gold) !important; }
.p9-back .p9-ico { width: 16px; height: 16px; }

.p9-article { padding: clamp(56px, 8vw, 110px) 0 clamp(80px, 10vw, 140px); }
.p9-article__content { font-size: 18px; line-height: 1.85; }
.p9-article__content > p:first-child { font-family: var(--p9-serif); font-size: 1.5rem; line-height: 1.5; color: var(--p9-text); }
.p9-article__content h2, .p9-article__content h3 { margin-top: 1.6em; }
.p9-article__content strong { color: var(--p9-gold-2); font-weight: 500; }
.p9-article__content img { margin: 1.5em 0; }
.p9-article__figure { margin: 0 0 48px; }
.p9-article__figure img { width: 100%; height: auto; display: block; }
.p9-article__figure--badge { max-width: 280px; }
.p9-article__cta { margin-top: 64px; padding: clamp(28px, 4vw, 44px); border: 1px solid var(--p9-line); background: var(--p9-ink); }
.p9-article__cta h2 { font-size: 2rem !important; }

/* ---------- WooCommerce (caparre) ---------- */
body.p9.woocommerce #main, body.p9.woocommerce-page #main { padding: calc(var(--p9-header-h) + 60px) 0 120px !important; }
body.p9.woocommerce-page #main > .fusion-row { max-width: 1100px !important; padding: 0 var(--p9-gutter) !important; margin: 0 auto; }
body.p9 .woocommerce, body.p9.woocommerce-page { color: var(--p9-text); }
body.p9 .woocommerce .price, body.p9 .woocommerce .amount { color: var(--p9-gold) !important; }
.p9-persons-note { font-size: 15px; color: var(--p9-muted); margin: 8px 0 18px; }

/* ---------- reveal on scroll ---------- */
.p9-js [data-reveal] { transition: opacity 1.1s var(--p9-ease), transform 1.1s var(--p9-ease), clip-path 1.4s var(--p9-ease); transition-delay: calc(var(--i, 0) * 90ms); }
.p9-js [data-reveal="up"] { opacity: 0; transform: translateY(40px); }
.p9-js [data-reveal="fade"] { opacity: 0; }
.p9-js [data-reveal="clip"] { clip-path: inset(18% 0 0 0); }
.p9-js [data-reveal="clip"] .p9-pic img { transform: scale(1.15); transition: transform 1.8s var(--p9-ease); }
.p9-js [data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.p9-js [data-reveal="clip"].is-in .p9-pic img { transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.p9-js [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
	.p9-marquee__track { animation: none; }
}

/* ---------- override Avada ---------- */
body.p9 .fusion-top-top-link, body.p9 #toTop { display: none !important; }
body.p9 .fusion-text > :last-child { margin-bottom: 0; }
body.p9 .p9-band__quote blockquote { background: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; color: var(--p9-text) !important; font-family: var(--p9-serif) !important; font-style: italic; font-size: clamp(2.2rem, 6.5vw, 5rem) !important; line-height: 1.08 !important; quotes: none; }
body.p9 .p9-band__quote blockquote::before, body.p9 .p9-band__quote blockquote::after { display: none; }
body.p9 blockquote.p9-quote { background: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; color: var(--p9-text) !important; font-style: normal; }

/* ---------- WooCommerce: prodotto e checkout ---------- */
body.p9 .woocommerce div.product .product_title, body.p9.woocommerce-checkout h1, body.p9 .woocommerce h3 { font-family: var(--p9-serif) !important; font-weight: 500 !important; color: var(--p9-text) !important; }
body.p9 .woocommerce div.product .product_title { font-size: clamp(2.2rem, 4.5vw, 3.4rem) !important; line-height: 1.05 !important; }
body.p9 .woocommerce div.product p.price { font-family: var(--p9-serif); font-size: 2rem !important; }
body.p9 .p9-per { font-family: var(--p9-sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--p9-muted); }
body.p9 .woocommerce-product-details__short-description { font-size: 16px; color: var(--p9-text); }
body.p9 form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
body.p9 .p9-persons-label { flex-basis: 100%; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--p9-gold); }
body.p9 .p9-persons-note { flex-basis: 100%; order: 3; margin: 0; }
body.p9 form.cart .quantity { margin: 0 !important; }
body.p9 form.cart .quantity input.qty, body.p9 .woocommerce form .input-text {
	background: transparent !important; color: var(--p9-text) !important; border: 1px solid var(--p9-line) !important; border-radius: 0 !important;
	height: 52px !important; font-size: 17px !important; font-family: var(--p9-sans) !important;
}
body.p9 form.cart .quantity input.qty { width: 96px !important; text-align: center; }
/* selettore persone: pulsanti -/+ di Avada allineati al campo, testo nero leggibile */
body.p9 form.cart .quantity.buttons_added {
	display: inline-flex !important; align-items: stretch; height: 52px !important; width: auto !important;
	border: 1px solid var(--p9-gold) !important; border-radius: 4px !important; overflow: hidden; background: transparent !important;
}
body.p9 form.cart .quantity.buttons_added .minus, body.p9 form.cart .quantity.buttons_added .plus {
	flex: 0 0 46px; width: 46px !important; height: auto !important; margin: 0 !important; padding: 0 !important;
	border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
	background: var(--p9-gold) !important; color: var(--p9-black) !important;
	font-family: var(--p9-sans) !important; font-size: 22px !important; font-weight: 500 !important; line-height: 1 !important;
	cursor: pointer; transition: background-color .2s ease;
}
body.p9 form.cart .quantity.buttons_added .minus:hover, body.p9 form.cart .quantity.buttons_added .plus:hover,
body.p9 form.cart .quantity.buttons_added .minus:focus-visible, body.p9 form.cart .quantity.buttons_added .plus:focus-visible {
	background: var(--p9-gold-2) !important; color: var(--p9-black) !important; outline: none;
}
body.p9 form.cart .quantity.buttons_added input.qty {
	flex: 0 0 64px; width: 64px !important; height: auto !important; margin: 0 !important; padding: 0 !important;
	border: 0 !important; border-radius: 0 !important; -moz-appearance: textfield; appearance: textfield;
}
body.p9 form.cart .quantity input.qty::-webkit-outer-spin-button, body.p9 form.cart .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.p9 form.cart .single_add_to_cart_button { height: 52px !important; min-height: 52px; margin: 0 !important; }
body.p9 .woocommerce button.button, body.p9 .woocommerce .button.alt, body.p9 .woocommerce #place_order {
	min-height: 52px; padding: 0 30px !important; background: var(--p9-gold) !important; border: 1px solid var(--p9-gold) !important; border-radius: 0 !important;
	color: var(--p9-black) !important; font-family: var(--p9-sans) !important; font-size: 12px !important; font-weight: 500 !important; letter-spacing: .24em; text-transform: uppercase;
}
body.p9 .woocommerce button.button:hover, body.p9 .woocommerce #place_order:hover { background: var(--p9-gold-2) !important; border-color: var(--p9-gold-2) !important; }
body.p9 .woocommerce div.product .woocommerce-tabs .tabs { display: none; }
body.p9 .woocommerce div.product .woocommerce-tabs .panel { background: transparent !important; border: 0 !important; padding: 0 !important; margin: 0 !important; }
body.p9 .woocommerce div.product .woocommerce-tabs .panel h2:first-child { display: none; }
body.p9 .woocommerce div.product .woocommerce-tabs { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--p9-line); }
body.p9 .woocommerce form .form-row label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--p9-muted); }
body.p9 .woocommerce table.shop_table { border-color: var(--p9-line) !important; background: transparent; }
body.p9 .woocommerce table.shop_table th, body.p9 .woocommerce table.shop_table td { border-color: var(--p9-line) !important; color: var(--p9-text); }
body.p9 .woocommerce-checkout #payment { background: var(--p9-ink) !important; border-radius: 0; }
body.p9 .woocommerce-checkout #payment div.payment_box { background: var(--p9-surface) !important; color: var(--p9-text); }
body.p9.woocommerce-checkout .avada-myaccount-user, body.p9.woocommerce-checkout .woocommerce-content-box.avada-checkout-no-shipping > h3:empty { display: none !important; }
body.p9.woocommerce-checkout #customer_details .col-2:not(:has(input, textarea, select)) { display: none !important; }
body.p9.woocommerce-checkout #customer_details .col-1 { width: 100% !important; float: none !important; }
body.p9.woocommerce-checkout .p9-fab, body.p9.single-product .p9-fab { display: none; }
body.p9-menu-open .p9-header { z-index: 115; }

/* ---------- Avada Builder attivo: container/righe/colonne neutri ---------- */
body.p9 .p9-c, body.p9 .p9-c .fusion-builder-row, body.p9 .p9-c .fusion-layout-column, body.p9 .p9-c .fusion-column-wrapper, body.p9 .p9-c .fusion-text { margin: 0 !important; padding: 0 !important; max-width: none !important; width: 100% !important; min-height: 0; }
body.p9 .p9-c .fusion-layout-column { flex: 0 0 100%; }
body.p9 .p9-c .fusion-column-wrapper { display: block; }
body.p9 .fusion-text p:empty { display: none; }

/* Avada Core attivo: la tipografia globale di Avada non deve sovrascrivere la nostra */
body.p9 { font-family: var(--p9-sans); }
body.p9 :is(h1, h2, h3, h4, h5, h6, .product_title, .product-title, .fusion-title-heading, .fusion-page-title-bar h1) { font-family: var(--p9-serif) !important; font-weight: 500; letter-spacing: 0; }
body.p9.woocommerce div.product .product_title { color: var(--p9-text); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }

/* 404 */
.p9-404 .p9-lead { font-size: 1.15rem; color: var(--p9-muted); margin: 0 0 2rem; }
.p9-404__links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--p9-line); }
.p9-404__links li { border-bottom: 1px solid var(--p9-line); }
.p9-404__links a { display: block; padding: 1.1rem 0; font-family: var(--p9-serif); font-size: 1.6rem; color: var(--p9-text); text-decoration: none; transition: color .3s, padding .3s var(--p9-ease); }
.p9-404__links a:hover { color: var(--p9-gold); padding-left: .5rem; }

/* ---------- footer: dati societari e link legali ---------- */
.p9-footer__bottom { align-items: flex-start; }
.p9-footer__legal { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 0; text-transform: uppercase; color: var(--p9-muted); line-height: 1.7; }
.p9-footer__legal span { display: block; width: 100%; }
.p9-footer__legal a { color: inherit; }
.p9-footer__policy { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.p9-footer__policy a, .p9-linkbtn { color: var(--p9-muted); text-decoration: none; font: inherit; letter-spacing: inherit; }
.p9-linkbtn { background: none; border: 0; padding: 0; cursor: pointer; }
.p9-footer__policy a:hover, .p9-linkbtn:hover { color: var(--p9-gold); }
@media (min-width: 1024px) {
	.p9-footer__legal span { width: auto; }
	.p9-footer__legal span + span::before { content: "|"; margin: 0 .7em; opacity: .5; }
}

/* ---------- cookie banner ---------- */
.p9-cc { position: fixed; z-index: 200; left: 12px; right: 12px; bottom: 12px; max-height: calc(100vh - 24px); max-height: calc(100svh - 24px); overflow: auto;
	background: var(--p9-ink); color: var(--p9-text); border: 1px solid var(--p9-line); box-shadow: 0 24px 60px rgba(0,0,0,.55);
	padding: 26px 22px 22px; font-size: 15px; line-height: 1.6;
	opacity: 0; transform: translateY(16px); transition: opacity .35s var(--p9-ease), transform .35s var(--p9-ease); }
.p9-cc.is-in { opacity: 1; transform: none; }
.p9-cc[hidden] { display: none; }
.p9-cc .p9-eyebrow { margin: 0 0 8px; }
.p9-cc__text { margin: 0 0 18px; color: var(--p9-muted); }
.p9-cc__text a { color: var(--p9-gold); }
.p9-cc__x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; color: var(--p9-muted); cursor: pointer; padding: 0; }
.p9-cc__x:hover { color: var(--p9-text); }
.p9-cc__x .p9-ico { width: 18px; height: 18px; }
.p9-cc__prefs { border-top: 1px solid var(--p9-line); margin: 0 0 18px; }
.p9-cc__prefs[hidden] { display: none; }
.p9-cc__opt { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--p9-line); cursor: pointer; }
.p9-cc__opt input { flex: 0 0 auto; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--p9-gold); }
.p9-cc__opt strong { display: block; font-weight: 500; color: var(--p9-text); }
.p9-cc__opt small { display: block; color: var(--p9-muted); font-size: 14px; }
.p9-cc__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p9-cc__actions [hidden] { display: none; }
.p9-cc__actions .p9-btn { min-height: 46px; padding: 0 10px; font-size: 11px; letter-spacing: .14em; white-space: nowrap; cursor: pointer; border-radius: 0; }
.p9-cc__actions [data-p9-cc-accept] { grid-column: 1 / -1; }
.p9-cc .p9-btn--ghost { background: transparent; color: var(--p9-text); border-color: rgba(233, 228, 218, .45); }
.p9-cc .p9-btn--ghost::after { background: var(--p9-text); }
.p9-cc .p9-btn--ghost:hover { color: var(--p9-black); border-color: var(--p9-text); }
body.p9-cc-open .p9-fab { opacity: 0 !important; pointer-events: none; }
@media (min-width: 768px) {
	.p9-cc { left: 28px; right: auto; bottom: 28px; width: 500px; padding: 30px 30px 26px; }
	.p9-cc__actions { grid-template-columns: repeat(3, 1fr); }
	.p9-cc__actions [data-p9-cc-accept] { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { .p9-cc { transition: none; } }

/* ---------- pagine legali ---------- */
.p9-legal { padding: clamp(48px, 7vw, 96px) 0; }
.p9-legal h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2.4em 0 .6em; color: var(--p9-text); }
.p9-legal h2:first-child { margin-top: 0; }
.p9-legal h3 { font-size: 1.3rem; margin: 1.8em 0 .4em; color: var(--p9-gold); }
.p9-legal p, .p9-legal li { color: var(--p9-muted); line-height: 1.75; }
.p9-legal strong { color: var(--p9-text); font-weight: 500; }
.p9-legal a { color: var(--p9-gold); }
.p9-legal ul { padding-left: 1.2em; }
.p9-legal .p9-table { width: 100%; overflow-x: auto; margin: 1.2em 0 1.6em; }
.p9-legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.p9-legal th, .p9-legal td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--p9-line); color: var(--p9-muted); }
.p9-legal th { color: var(--p9-text); font-weight: 500; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.p9-legal__updated { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }

/* Leggibilità del testo corrente: su schermi grandi un punto in più */
@media (min-width: 1024px) { body.p9 { font-size: 18px; } }
body.p9 :is(p, li, dd, td) { font-weight: 400; }
body.p9 .p9-footer__policy a, body.p9 .p9-footer .p9-linkbtn { color: var(--p9-muted); }
body.p9 .p9-footer__policy a:hover, body.p9 .p9-footer .p9-linkbtn:hover { color: var(--p9-gold); }
body.p9 .p9-footer__legal a { text-transform: none; color: inherit; }
@media (max-width: 767px) {
	.p9-legal table { min-width: 0; }
	.p9-legal thead { display: none; }
	.p9-legal tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--p9-line); }
	.p9-legal td { display: block; border: 0; padding: 3px 0; }
	.p9-legal td:first-child { color: var(--p9-text); font-weight: 500; padding-bottom: 6px; }
	.p9-legal td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--p9-gold); margin-top: 6px; }
}
/* Galleria prodotto: Avada fissa 500px di larghezza, su mobile deve stare nello schermo */
body.p9 .avada-single-product-gallery-wrapper, body.p9 .woocommerce-product-gallery { max-width: 100% !important; }
@media (max-width: 800px) { body.p9 .avada-single-product-gallery-wrapper { width: 100% !important; float: none; margin-right: 0 !important; } }
@media (max-width: 800px) { body.p9.single-product .product .summary { margin-left: 0 !important; width: auto !important; float: none !important; margin-top: 28px; } }

/* ---------- Galleria (elemento Avada) ---------- */
/* Container con sezione: padding e larghezza come le altre sezioni */
body.p9 .p9-c.p9-gsec .fusion-column-wrapper { max-width: var(--p9-max) !important; margin: 0 auto !important; padding: clamp(80px, 12vw, 160px) var(--p9-gutter) !important; box-sizing: border-box; }
body.p9 .p9-c.p9-gsec--tight .fusion-column-wrapper { padding-top: clamp(48px, 7vw, 100px) !important; padding-bottom: clamp(64px, 9vw, 120px) !important; }
body.p9 .p9-gsec .p9-sec-head { margin-bottom: clamp(28px, 4vw, 48px); }
.p9-agallery .fusion-gallery-image { overflow: hidden; background: var(--p9-surface); }
.p9-agallery .fusion-gallery-image img { display: block; width: 100%; transition: transform 1.2s var(--p9-ease), opacity .4s; }
.p9-agallery .fusion-gallery-image a:hover img { transform: scale(1.04); }
.p9-agallery .fusion-gallery-image a { display: block; cursor: zoom-in; }
/* Masonry senza tagli: colonne CSS (ordine dall'alto in basso per colonna) */
body.p9 .p9-agallery--masonry { display: block !important; height: auto !important; margin: 0 !important; column-count: 2; column-gap: 10px; }
body.p9 .p9-agallery--masonry .fusion-grid-column { position: static !important; transform: none !important; float: none !important; width: 100% !important; padding: 0 0 10px !important; break-inside: avoid; display: block; }
body.p9 .p9-agallery--masonry > .clearfix { display: none; }
@media (min-width: 768px) { body.p9 .p9-agallery--masonry { column-count: 3; column-gap: 14px; } body.p9 .p9-agallery--masonry .fusion-grid-column { padding-bottom: 14px !important; } }
body.p9 .p9-agallery--masonry.is-js { column-count: auto; display: flex !important; align-items: flex-start; gap: 10px; }
body.p9 .p9-agallery--masonry.is-js > .p9-mcol { flex: 1 1 0; min-width: 0; }
@media (min-width: 768px) { body.p9 .p9-agallery--masonry.is-js { gap: 14px; } }
@media (max-width: 767px) { body.p9 .p9-agallery--teaser > .fusion-grid-column { width: 50% !important; } }
/* Riconoscimenti: su mobile (2 colonne) solo i primi 4, per chiudere la griglia */
@media (max-width: 767px) { .p9-awards > li:nth-child(n+5) { display: none; } }
/* Orari: pranzo e cena su due righe (mobile), sulla stessa riga separati da "·" (desktop) */
.p9-hours dd > span { display: block; white-space: nowrap; }
.p9-hours__row { align-items: baseline; }
@media (max-width: 1023px) { .p9-hours__row.is-today dt::after { content: "oggi"; display: block; margin-top: 2px; } }
@media (min-width: 1024px) {
	.p9-hours dd > span { display: inline; }
	.p9-hours dd > span + span::before { content: " · "; }
}
