@font-face{font-family:'Jost';src:url(../fonts/jost-100_900-latin.woff2) format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:'Jost';src:url(../fonts/jost-100_900-latin-ext.woff2) format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+0100-02AF,U+1E00-1EFF}
@font-face{font-family:'Poppins';src:url(../fonts/poppins-600-latin.woff2) format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:'Poppins';src:url(../fonts/poppins-700-latin.woff2) format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:'PT Sans';src:url(../fonts/pt-sans-700-latin.woff2) format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:'Gloria Hallelujah';src:url(../fonts/gloria-hallelujah-400-latin.woff2) format('woff2');font-weight:400;font-display:swap}
/* ============ La Casa dei Pazzi — stile ============
   Stesso mondo del sito originale (legno, marrone, oro, scritte a mano),
   ripulito su tipografia, spaziature e movimento. */
:root {
  --brown: #733804;
  --brown-deep: #5a2b03;
  --gold: #bd7711;
  --gold-soft: #e9a23b;
  --script: #a35708;
  --text: #3a332e;
  --muted: #6b5f56;
  --cream: #fbf6f2;
  --cream-2: #f4ebe2;
  --band: #7f4311;
  --night: #1d140e;
  --line: #e6d9cc;
  --white: #fff;

  --font-body: 'Jost', system-ui, sans-serif;
  --font-head: 'Poppins', 'Jost', system-ui, sans-serif;
  --font-hero: 'PT Sans', 'Poppins', system-ui, sans-serif;
  --font-script: 'Gloria Hallelujah', 'Comic Sans MS', cursive;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 9vw, 120px);
  --radius: 2px;
  --shadow: 0 1px 2px rgb(60 30 5 / 0.06), 0 8px 24px -8px rgb(60 30 5 / 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; scrollbar-color: var(--gold) var(--cream-2); }
body {
  margin: 0;
  font: 400 1.0625rem/1.7 var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
@supports (overflow: clip) { body { overflow-x: clip; } }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--white); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--radius); }
input, textarea { caret-color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--white); padding: 10px 16px; transition: top 200ms var(--ease-out); }
.skip:focus { top: 16px; }
.center { text-align: center; }
.cover { width: 100%; height: 100%; object-fit: cover; background: #3a2a22; }
.ico { width: 22px; height: 22px; flex: none; }
.ico--sm { width: 20px; height: 26px; }

/* ---------- Tipografia ---------- */
.kicker {
  font: 400 clamp(1.15rem, 1.6vw, 1.35rem)/1.3 var(--font-script);
  color: var(--script);
  margin-bottom: 0.6rem;
}
.h2 {
  font: 700 clamp(1.75rem, 3.2vw, 2.4rem)/1.18 var(--font-head);
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  text-wrap: balance;
  margin-bottom: 1.4rem;
}
.h2--xl { font-family: var(--font-hero); font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -0.01em; }
.h3 { font: 700 1.2rem/1.25 var(--font-head); color: var(--brown); text-transform: uppercase; margin-bottom: 0.7rem; }
.prose { max-width: 62ch; }
.prose p + p { margin-top: 1em; }
.prose--center { margin-inline: auto; text-align: center; }
.prose, .feature__body p { color: var(--muted); text-wrap: pretty; }

/* ---------- Pulsanti ----------
   Bordo pieno, riempimento che sale dal basso al passaggio del mouse, leggera pressione al clic. */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 28px;
  border: 2px solid var(--brown); border-radius: var(--radius);
  background: transparent; color: var(--brown);
  font: 500 0.9375rem/1.2 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; overflow: hidden;
  transition: color 220ms var(--ease-out), border-color 220ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--brown);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 280ms var(--ease-out);
}
.btn__label { display: inline-flex; align-items: center; gap: 12px; }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { color: var(--white); }
.btn:focus-visible::before { clip-path: inset(0 0 0 0); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { color: var(--white); }
  .btn:hover::before { clip-path: inset(0 0 0 0); }
}
.btn--light { border-color: rgb(255 255 255 / 0.9); color: var(--white); }
.btn--light::before { background: var(--gold); }
@media (hover: hover) and (pointer: fine) { .btn--light:hover { border-color: var(--gold); } }
.btn--light:focus-visible { border-color: var(--gold); }
.btn--ghost { border-color: rgb(255 255 255 / 0.45); }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.25em; color: var(--brown); font-weight: 500; }
.link-btn:hover { color: var(--gold); }

/* ---------- Testata ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; gap: 24px;
  height: 92px; padding: 0 var(--gutter);
  color: var(--white);
  transition: background-color 300ms var(--ease-out), height 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.site-header::before { /* velo per leggere il menù sulle foto chiare */
  content: ''; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgb(20 12 6 / 0.55), rgb(20 12 6 / 0));
  transition: opacity 300ms var(--ease-out);
}
.site-header.is-solid { background: rgb(29 20 14 / 0.94); height: 72px; box-shadow: 0 6px 24px -12px rgb(0 0 0 / 0.5); }
@supports (backdrop-filter: blur(1px)) { .site-header.is-solid { background: rgb(29 20 14 / 0.9); backdrop-filter: blur(14px) saturate(1.3); } }
.site-header.is-solid::before { opacity: 0; }
.logo { flex: none; display: block; width: clamp(170px, 17vw, 232px); transition: width 300ms var(--ease-out); }
.is-solid .logo { width: clamp(150px, 14vw, 190px); }
.logo img { width: 100%; height: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  position: relative; display: block; padding: 10px 14px;
  font: 600 0.875rem/1.2 var(--font-head); letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; color: rgb(255 255 255 / 0.92);
  transition: color 200ms ease;
}
.main-nav a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--gold-soft); transform: scaleX(0); transform-origin: left;
  transition: transform 260ms var(--ease-out);
}
.main-nav a[aria-current='page'] { color: var(--gold-soft); }
.main-nav a[aria-current='page']::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .main-nav a:hover { color: var(--gold-soft); } .main-nav a:hover::after { transform: scaleX(1); } }
.main-nav__extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-call { min-height: 44px; padding: 0 18px; font-size: 0.8125rem; }
.socials { display: flex; gap: 6px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.socials a:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .socials a:hover { background: rgb(255 255 255 / 0.14); } }
.socials .ico { width: 20px; height: 20px; }
.burger { display: none; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span:not(.sr-only) { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 300ms var(--ease-out); }
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 27px; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.scrim { position: fixed; inset: 0; z-index: 25; background: rgb(15 9 5 / 0.55); opacity: 0; transition: opacity 350ms ease; }
.scrim.is-on { opacity: 1; }

@media (max-width: 1180px) {
  .header-socials { display: none; }
}
@media (max-width: 1023px) {
  .site-header { height: 72px; }
  .header-call { display: none; }
  .burger { display: block; z-index: 2; }
  .header-actions { margin-left: auto; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(380px, 88vw);
    padding: 96px 32px 32px; overflow-y: auto;
    background: var(--night);
    transform: translateX(100%);
    transition: transform 450ms var(--ease-drawer), visibility 0s 450ms;
    visibility: hidden;
  }
  .main-nav.is-open { transform: none; visibility: visible; transition: transform 450ms var(--ease-drawer); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { font-size: 1.25rem; padding: 16px 0; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
  .main-nav a::after { left: 0; right: auto; width: 32px; bottom: 10px; }
  .main-nav__extra { display: grid; gap: 14px; margin-top: 32px; justify-items: start; }
  .main-nav__extra .btn { width: 100%; }
  .main-nav__phone { color: rgb(255 255 255 / 0.7); font-variant-numeric: tabular-nums; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(460px, 64vh, 620px); display: grid; align-items: end; color: var(--white); overflow: hidden; background: var(--night); }
.hero--tall { min-height: clamp(560px, 88vh, 820px); min-height: clamp(560px, 88svh, 820px); }
.hero__media { position: absolute; inset: 0; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(20 12 6 / 0.35) 0%, rgb(20 12 6 / 0.2) 40%, rgb(20 12 6 / 0.72) 100%), linear-gradient(90deg, rgb(20 12 6 / 0.45), rgb(20 12 6 / 0) 70%); }
.hero__inner { position: relative; width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 140px var(--gutter) clamp(56px, 9vh, 96px); }
.hero__title {
  font: 700 clamp(2.5rem, 6vw, 4.75rem)/1.02 var(--font-hero);
  text-transform: uppercase; letter-spacing: -0.015em;
  max-width: 20ch; text-wrap: balance;
  text-shadow: 0 2px 30px rgb(0 0 0 / 0.35);
}
.hero__title:focus { outline: none; }
.hero__sub { margin-top: 1rem; max-width: 52ch; font-size: clamp(1rem, 1.4vw, 1.125rem); color: rgb(255 255 255 / 0.9); letter-spacing: 0.02em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

/* Entrata della hero: l'unico momento coreografato del sito */
.is-entering .hero__media img { animation: hero-img 1600ms var(--ease-out) both; }
.is-entering .hero__inner > * { animation: hero-text 900ms var(--ease-out) both; }
.is-entering .hero__inner > :nth-child(2) { animation-delay: 90ms; }
.is-entering .hero__inner > :nth-child(3) { animation-delay: 180ms; }
@keyframes hero-img { from { transform: scale(1.07); } }
@keyframes hero-text { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }

/* ---------- Sezioni ---------- */
.split { display: grid; grid-template-columns: repeat(12, 1fr); max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: var(--section) var(--gutter); align-items: center; }
.split__panel { grid-column: 1 / 8; grid-row: 1; background: var(--cream); padding: clamp(32px, 5vw, 64px); padding-right: clamp(32px, 12vw, 160px); }
.split__panel > .btn { margin-top: 2rem; }
.split__figure { grid-column: 7 / 13; grid-row: 1; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.split--about .split__figure { grid-column: 7 / 11; margin-top: -40px; aspect-ratio: 600 / 750; }
.split--page { background: none; }
.split--page .split__panel { background: var(--white); box-shadow: var(--shadow); }
.split--page { position: relative; }
.split--page { box-shadow: 0 0 0 100vmax var(--cream); clip-path: inset(0 -100vmax); background: var(--cream); }
.split__figure--plain { aspect-ratio: 4 / 3.4; }
@media (max-width: 1023px) {
  .split { grid-template-columns: 1fr; gap: 0; }
  .split__panel, .split__figure, .split--about .split__figure { grid-column: 1; grid-row: auto; }
  .split__panel { padding-right: clamp(32px, 5vw, 64px); }
  .split__figure, .split--about .split__figure { margin: -24px 24px 0; aspect-ratio: 4 / 3; }
}

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 36px); max-width: calc(1400px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) var(--section); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.feature__media { aspect-ratio: 4 / 5.6; overflow: hidden; display: block; }
.feature__media img { transition: transform 900ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .feature:hover .feature__media img { transform: scale(1.04); } }
.feature__body { padding-top: 8px; }
.feature__body p { font-size: 0.975rem; margin-bottom: 1.4rem; }
.feature__body .btn { min-height: 48px; padding: 0 18px; font-size: 0.8125rem; }
@media (max-width: 1100px) {
  .features { grid-template-columns: 1fr; max-width: 760px; row-gap: 56px; }
  .feature { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 28px; align-items: center; }
  .feature__media { aspect-ratio: 4 / 5; }
}
@media (max-width: 520px) {
  .feature { grid-template-columns: 1fr; }
  .feature__media { aspect-ratio: 4 / 3; }
}

.events { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 88px); padding-bottom: var(--section); }
.events__media { aspect-ratio: 4 / 3.5; }
.events__body { padding-right: var(--gutter); max-width: 640px; }
.events__body .btn { margin-top: 2rem; }
@media (max-width: 900px) {
  .events { grid-template-columns: 1fr; }
  .events__body { padding: 0 var(--gutter); }
}

.feature-round { overflow: hidden; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: center; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) var(--section); }
.feature-round__media { position: relative; width: min(100%, 420px); margin-inline: auto; aspect-ratio: 1; }
.feature-round__media .blob { position: absolute; left: -12%; top: -6%; width: 72%; height: auto; }
.feature-round__circle { position: relative; border-radius: 50%; overflow: hidden; width: 92%; aspect-ratio: 1; margin: 4% 0 0 8%; box-shadow: 0 20px 40px -20px rgb(60 30 5 / 0.45); }
.feature-round__body .btn { margin-top: 2rem; }
.split--page + .feature-round { padding-top: 0; }
.split--page { margin-bottom: var(--section); }
@media (max-width: 900px) { .feature-round { grid-template-columns: 1fr; } .feature-round__media { width: min(80%, 360px); } }

/* ---------- Galleria ---------- */
.gallery { padding: 0 var(--gutter) var(--section); max-width: 1500px; margin: 0 auto; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr 2.4fr 1fr 1fr; grid-auto-rows: clamp(120px, 14vw, 200px); grid-auto-flow: dense; gap: 6px; }
.tile { position: relative; display: block; overflow: hidden; background: #3a2a22; }
.tile--big { grid-column: 3; grid-row: 1 / span 2; }
.tile img { transition: transform 700ms var(--ease-out), filter 400ms ease; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover img { transform: scale(1.05); }
  .mosaic:hover .tile:not(:hover) img { filter: brightness(0.8) saturate(0.9); }
}
.tile:active img { transform: scale(0.99); }
.mosaic--row { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 20vw, 300px); }
.mosaic--8 { grid-template-columns: 1fr 1fr 2.4fr 1fr 1fr; }
.mosaic--8 .tile:last-child { grid-column: span 2; }
.mosaic--grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); grid-auto-rows: 180px; }
.more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 500ms var(--ease-in-out); }
.more.is-open { grid-template-rows: 1fr; }
.more__inner { overflow: hidden; min-height: 0; }
.more .mosaic { margin-top: 6px; grid-template-columns: repeat(3, 1fr); }
.gallery > .link-btn { margin-top: 18px; }
@media (max-width: 760px) {
  .mosaic--8 .tile:last-child { grid-column: auto; }
  .mosaic, .mosaic--8 { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; }
  .tile--big { grid-column: 1 / -1; grid-row: span 2; }
  .mosaic--row { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; }
  .mosaic--grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }
}

/* ---------- Fascia chiamata ---------- */
.cta-band { background: var(--band); padding: clamp(48px, 7vw, 88px) var(--gutter); position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: url(../images/lacasadeipazzi-ristorante-caserta003-pattern.jpg) center / 520px; opacity: 0.07; mix-blend-mode: screen; }
.cta-band__box { position: relative; max-width: 1000px; margin: 0 auto; border: 1px solid rgb(255 255 255 / 0.45); padding: clamp(36px, 5vw, 56px) 24px; text-align: center; color: var(--white); }
.cta-band .kicker { color: #f6c27e; }
.cta-band__title { font: 700 clamp(1.6rem, 3.4vw, 2.5rem)/1.15 var(--font-head); text-transform: uppercase; text-wrap: balance; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 2rem; }
.cta-band__phone { margin-top: 1.2rem; color: rgb(255 255 255 / 0.8); font-variant-numeric: tabular-nums; }
.cta-band__phone a { text-decoration: none; }

/* ---------- Recensioni ---------- */
.reviews { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: var(--section) var(--gutter); }
.reviews__title { text-transform: none; font-weight: 600; color: var(--brown); }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.review { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); padding: 32px 28px 28px; box-shadow: var(--shadow); }
.review__title { font: 600 1.5rem/1.2 var(--font-head); color: var(--brown); margin-bottom: 0.8rem; text-align: center; }
.review blockquote { text-align: center; color: var(--muted); font-style: italic; text-wrap: pretty; flex: 1; }
.review blockquote::before { content: '“'; } .review blockquote::after { content: '”'; }
.review figcaption { display: grid; gap: 2px; margin-top: 24px; font-size: 0.9375rem; }
.review__name { font-weight: 500; color: var(--text); }
.review__source { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.875rem; }
.review__source svg { width: 15px; height: 15px; }
.review__stars { display: flex; gap: 1px; margin-top: 4px; }
@media (max-width: 900px) { .reviews__grid { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------- Menù (come l'originale) ---------- */
.season-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding: 28px var(--gutter); background: var(--cream); }
.season-links .btn { background: var(--white); }
.menu-sheet { position: relative; padding: 0 0 var(--section); background: linear-gradient(rgb(255 255 255 / 0.5), rgb(255 255 255 / 0.5)), url(../images/depositphotos-pattern.jpg) center top / 900px repeat, #f7f3ea; }
.menu-sheet__inner { position: relative; max-width: 1200px; margin: 0 auto; background: var(--white); padding: clamp(32px, 4vw, 56px) clamp(16px, 3.4vw, 40px) clamp(40px, 5vw, 64px); }
.cat__icon-wrap { display: flex; justify-content: center; padding: 28px 0 18px; }
.cat__icon { width: 54px; height: 54px; fill: var(--brown); }
.cat { background: #fffcf0; padding: clamp(28px, 3vw, 40px) 0 clamp(36px, 4vw, 56px); padding-inline: 0; scroll-margin-top: 90px; }
.cat + .cat { padding-top: 8px; }
.cat__title {
  font: 400 clamp(1.7rem, 3.2vw, 2.6rem)/1.25 var(--font-script);
  color: var(--brown); text-wrap: balance;
  padding: 0 clamp(16px, 2vw, 24px) 10px; margin: 0 0 clamp(28px, 3vw, 44px);
  border-bottom: 1px solid #8a5a2b;
}
.cat__title .cat__what { text-transform: none; }
.dishes { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; padding: 0 clamp(16px, 2vw, 24px); }
.dishes__col { display: grid; align-content: start; row-gap: 24px; }
.dish__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.dish__name { font: 600 1.0625rem/1.45 var(--font-body); color: #2d2621; }
.dish__price { font: 600 1.0625rem/1.45 var(--font-body); color: #2d2621; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dish__desc { font-size: 0.975rem; font-weight: 300; line-height: 1.9; color: #5d534b; margin-top: 4px; max-width: 52ch; }
@media (max-width: 760px) { .dishes { grid-template-columns: 1fr; } .dishes__col + .dishes__col { margin-top: 24px; } }

.note { margin: 28px auto; max-width: 420px; background: #f9f4ef; padding: 14px 24px 18px; text-align: center; }
.note__title { font: 400 1.15rem/1.6 var(--font-script); color: #2d2621; text-transform: uppercase; }
.note p { font-size: 0.975rem; font-weight: 300; line-height: 2; color: #4a413a; }
.note .note__gap { height: 1em; }

.season { background: #f9f4ef; padding: clamp(16px, 2.4vw, 32px) clamp(16px, 3.4vw, 40px); margin-bottom: 8px; scroll-margin-top: 90px; }
.season__box { position: relative; background: #814c1d; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: clamp(28px, 3vw, 44px) clamp(20px, 3vw, 40px); overflow: hidden; }
.season__box::before { content: ''; position: absolute; inset: 0; background: url(../images/lacasadeipazzi-ristorante-caserta003-pattern.jpg) center / 460px; opacity: 0.08; mix-blend-mode: screen; pointer-events: none; }
.season__card { position: relative; color: var(--white); justify-self: center; scroll-margin-top: 120px; }
.season__title { font: 400 clamp(1.8rem, 3.4vw, 2.6rem)/1.5 var(--font-script); text-transform: uppercase; text-align: center; margin-bottom: 18px; text-wrap: balance; }
.season__intro, .season__card li, .season__price { font-weight: 600; font-size: 1.0625rem; line-height: 2; }
.season__card ul { list-style: disc; padding-left: 36px; }
.season__price { padding-left: 12px; }
@media (max-width: 760px) { .season__box { grid-template-columns: 1fr; gap: 36px; } .season__card { justify-self: stretch; } }

/* Dolci: foto accanto a ogni dolce, come sul sito */
.sweets { display: grid; padding: 0 clamp(16px, 2vw, 24px); }
.sweet { display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: start; padding: 22px 0; border-bottom: 1px solid #efe4cf; }
.sweet:first-child { padding-top: 0; }
.sweet:last-child { border-bottom: 0; }
.sweet__img { display: block; width: 120px; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: #fff; }
.sweet__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .sweet__img:hover img { transform: scale(1.06); } }
.sweet__img:active img { transform: scale(0.98); }
.sweet .dish__desc { max-width: 70ch; }
@media (max-width: 520px) {
  .sweet { grid-template-columns: 88px 1fr; gap: 6px 16px; }
  .sweet__img { width: 88px; grid-row: span 2; }
  .sweet .dish__price { grid-column: 2; }
}
.gallery--menu { padding-top: var(--section); }

/* ---------- Contatti ---------- */
.contact-intro { max-width: 900px; margin: 0 auto; padding: var(--section) var(--gutter) clamp(40px, 5vw, 64px); text-align: center; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) var(--section); align-items: start; }
.contact__panel { position: relative; background: var(--band); color: var(--white); padding: clamp(32px, 4vw, 52px); overflow: hidden; }
.contact__panel::before { content: ''; position: absolute; inset: 0; background: url(../images/lacasadeipazzi-ristorante-caserta003-pattern.jpg) center / 480px; opacity: 0.08; mix-blend-mode: screen; pointer-events: none; }
.contact__panel > * { position: relative; }
.info { display: grid; gap: 22px; }
.info__row { display: grid; grid-template-columns: 40px 1fr; gap: 18px; align-items: start; }
.info__row .ico { width: 36px; height: 44px; margin-top: -8px; color: rgb(255 255 255 / 0.85); }
.info dd a { text-decoration: none; }
.info dd a:hover { text-decoration: underline; }
.hours { border-collapse: collapse; width: 100%; max-width: 320px; font-variant-numeric: tabular-nums; }
.hours th { text-align: left; font-weight: 400; padding: 3px 16px 3px 0; }
.hours td { text-align: right; padding: 3px 0; }
.hours .is-closed { color: rgb(255 255 255 / 0.65); }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 600; color: #ffd08f; }
.open-now { margin-top: 8px; font-size: 0.9375rem; display: inline-flex; align-items: center; gap: 8px; }
.open-now::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-now.is-open { color: #b9f0a4; }
.open-now.is-closed { color: #ffd08f; }
.contact__actions { display: grid; gap: 12px; margin-top: 32px; max-width: 320px; }
.socials--round { margin-top: 28px; }
.socials--round a { background: var(--white); color: var(--band); }
.form { display: grid; gap: 18px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field { display: grid; gap: 6px; font-size: 0.9375rem; color: var(--muted); }
.field--wide { grid-column: 1 / -1; }
.field abbr { text-decoration: none; color: var(--brown); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  border: 1px solid #cdb9a6; border-radius: var(--radius); background: var(--white);
  padding: 12px 14px; transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 3px rgb(115 56 4 / 0.14); }
.field input[aria-invalid='true'], .field textarea[aria-invalid='true'] { border-color: #b3261e; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--brown); flex: none; }
.form .btn { justify-self: start; }
.form__error { color: #b3261e; font-size: 0.9375rem; }
.form__done { border-left: 2px solid var(--gold); background: var(--cream); padding: 16px 20px; font-size: 0.9375rem; }
.form__done p + p { margin-top: 6px; color: var(--muted); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__grid { grid-template-columns: 1fr; } }

.map-band { position: relative; min-height: 380px; display: grid; place-items: center; text-align: center; color: var(--white); overflow: hidden; }
.map-band__media { position: absolute; inset: 0; }
.map-band__media::after { content: ''; position: absolute; inset: 0; background: rgb(20 12 6 / 0.62); }
.map-band__body { position: relative; padding: 64px var(--gutter); display: grid; justify-items: center; gap: 10px; }
.map-band .h2 { color: var(--white); margin-bottom: 0; }
.map-band p { margin-bottom: 18px; color: rgb(255 255 255 / 0.9); }

/* ---------- Footer ---------- */
.site-footer__main { background: #a3630c; color: var(--white); text-align: center; padding: 40px var(--gutter) 28px; display: grid; justify-items: center; gap: 14px; }
.site-footer__main p { font-size: 0.9688rem; line-height: 1.8; text-wrap: balance; }
.site-footer__main a { text-decoration: none; }
.site-footer__main a:hover { text-decoration: underline; }
.site-footer__logo { width: 180px; height: auto; }
.site-footer__bar { background: #141414; color: rgb(255 255 255 / 0.72); font-size: 0.8125rem; padding: 14px var(--gutter); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; }
.site-footer__bar a, .site-footer__bar .link-btn { color: rgb(255 255 255 / 0.9); font-weight: 400; }

/* ---------- Finestre ---------- */
dialog { border: 0; padding: 0; }
dialog::backdrop { background: rgb(15 9 5 / 0.72); }
.sheet { max-width: 420px; width: calc(100% - 40px); padding: 32px; background: var(--white); color: var(--text); box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.5); }
.sheet p { margin-bottom: 24px; line-height: 1.8; }
.sheet[open], .lightbox[open] { animation: pop-in 240ms var(--ease-out); }
.sheet[open]::backdrop, .lightbox[open]::backdrop { animation: fade 240ms ease; }
@keyframes pop-in { from { opacity: 0; transform: scale(0.96); } }
@keyframes fade { from { opacity: 0; } }
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: transparent; display: none; place-items: center; overflow: hidden; }
.lightbox[open] { display: grid; }
.lightbox::backdrop, .lightbox[open]::backdrop { background: rgb(10 6 3 / 0.94); }
.lightbox img { max-width: min(92vw, 1400px); max-height: 84vh; max-height: 84dvh; object-fit: contain; box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.6); }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgb(255 255 255 / 0.12); color: var(--white); cursor: pointer; font-size: 30px; line-height: 1; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.lightbox__btn:hover { background: rgb(255 255 255 / 0.24); }
.lightbox__btn:active { transform: scale(0.94); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; translate: 0 -50%; }
.lightbox__prev svg { rotate: 180deg; }
.lightbox__next { right: 20px; top: 50%; translate: 0 -50%; }
.lightbox__count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: rgb(255 255 255 / 0.75); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; translate: none; } .lightbox__count { bottom: 28px; } }

/* ---------- Comparsa delle foto (solo se lo script è attivo) ---------- */
.js [data-reveal] { clip-path: inset(0 0 0 0); }
.js [data-reveal].is-pending { clip-path: inset(0 0 14% 0); opacity: 0.001; transform: translateY(18px); }
.js [data-reveal].is-shown { transition: clip-path 1000ms var(--ease-out), opacity 600ms ease, transform 1000ms var(--ease-out); }

/* Cambio pagina */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; animation-timing-function: var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .js [data-reveal].is-pending { clip-path: none; opacity: 1; transform: none; }
}
