/* Centro Carni Dibenedetto — la macelleria del Mercato Wagner
   Gesto-firma: «la carne delle occasioni» + il motivo cut-line (linea di taglio perforata).
   Lora (display) + Onest (testo). Palette macelleria: rosso-sanguigna/crema/legno. */

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --red: #8E2B24; --red-d: #6E201B; --red-l: #A8362C;
  --cream: #F4EDDF; --cream2: #FAF5EA; --wood: #6B4E34; --gold: #B8873A;
  --ink: #26201A; --muted: #6E6250; --line: #E3D8C2;
  --disp: 'Lora', Georgia, serif; --sans: 'Onest', system-ui, sans-serif;
  --wrap: 1180px;
}
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.62; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--red-d); color: #fff; padding: 8px 14px; z-index: 200; border-radius: 4px; }

h1, h2, h3 { font-family: var(--disp); font-weight: 600; line-height: 1.12; }
.h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); color: var(--red-d); margin-bottom: .5em; font-weight: 500; }
.h2 em { font-style: italic; color: var(--wood); font-weight: 500; }
.kicker { text-transform: uppercase; letter-spacing: .17em; font-size: .74rem; color: var(--red); margin-bottom: 1em; font-weight: 700; }
.lead { font-size: 1.16rem; color: #493f30; max-width: 62ch; }

/* mark (mannaia) */
.brand__mark { display: inline-block; width: 22px; height: 22px; background: var(--red); flex: 0 0 auto; -webkit-mask: url("../img/mark.svg") center/contain no-repeat; mask: url("../img/mark.svg") center/contain no-repeat; }

/* buttons */
.btn { display: inline-block; font-weight: 600; font-size: .88rem; letter-spacing: .02em; text-decoration: none; padding: 14px 26px; border-radius: 4px; transition: transform .2s, background .2s, color .2s; cursor: pointer; }
.btn--red { background: var(--red-d); color: var(--cream2); border: 1px solid var(--red-d); }
.btn--red:hover { background: var(--red); transform: translateY(-2px); }
.btn--call { background: var(--red); color: #fff; border: none; padding: 10px 18px; }
.btn--call:hover { background: var(--red-d); }
.btn--ghost { background: transparent; color: var(--red-d); border: 1px solid var(--red); }
.btn--ghost:hover { background: var(--red); color: var(--cream2); }

/* header */
.site-head { position: sticky; top: 0; z-index: 90; background: rgba(244,237,223,.95); border-bottom: 1px solid var(--line); }
.head-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand__name { font-family: var(--disp); font-weight: 600; font-size: 1.24rem; color: var(--red-d); }
.nav { display: flex; gap: 24px; }
.nav a { text-decoration: none; font-size: .93rem; color: var(--ink); position: relative; padding: 4px 0; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--red); transition: width .25s; }
.nav a:hover::after { width: 100%; }
.head-cta { display: flex; align-items: center; gap: 12px; }
.lang { background: none; border: 1px solid var(--line); color: var(--muted); font-size: .74rem; letter-spacing: .06em; padding: 6px 10px; border-radius: 4px; cursor: pointer; font-weight: 600; }
.lang:hover { border-color: var(--red); color: var(--red); }
.burger { display: none; background: none; border: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--red-d); transition: .3s; }

/* hero */
.hero { position: relative; min-height: 86vh; display: flex; align-items: flex-end; color: var(--cream); overflow: hidden; }
.hero__photo { position: absolute; inset: 0; z-index: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(38,20,16,.3) 0%, rgba(38,20,16,.44) 45%, rgba(30,16,12,.9) 100%); }
.hero__inner { position: relative; z-index: 2; padding: 0 24px 64px; }
.hero__kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; color: #e6c9a3; margin-bottom: .7em; font-weight: 700; }
.hero__title { font-family: var(--disp); font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: .3em; text-shadow: 0 2px 30px rgba(0,0,0,.4); font-weight: 500; }
.hero__title em { font-style: italic; color: #E0A24A; font-weight: 500; }
.hero__sub { font-size: 1.22rem; max-width: 44ch; color: #f1e6d3; margin-bottom: 1.5em; }
.hero__sub strong { color: #fff; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.hero .btn--red:hover { background: var(--red-l); border-color: var(--red-l); }
.hero .btn--ghost { color: var(--cream); border-color: rgba(244,237,223,.6); }
.hero .btn--ghost:hover { background: var(--cream); color: var(--red-d); }

/* sezioni */
section { padding: clamp(58px, 8.5vw, 112px) 0; }

/* LA CARNE DELLE OCCASIONI (gesto-firma) */
.occ { background: var(--cream2); }
.occ__grid { display: grid; grid-template-columns: 1fr .78fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.cutline { display: block; width: 220px; height: 12px; margin: .2em 0 1.2em; }
.occ__quote { font-family: var(--disp); font-style: italic; color: var(--red); font-size: 1.16rem; border-left: 3px solid var(--wood); padding-left: 16px; margin-top: 1.4em; }
.occ__foto { border-radius: 8px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(110,32,27,.5); border: 6px solid #fff; cursor: zoom-in; }
.occ__foto img { width: 100%; height: 100%; object-fit: cover; }

/* COSA TROVI */
.trovi__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 2.2em 0; }
.tcard { background: var(--cream2); border: 1px solid var(--line); border-radius: 8px; padding: 24px 22px; border-top: 3px solid var(--red); }
.tcard h3 { font-size: 1.22rem; color: var(--red-d); margin-bottom: .3em; font-weight: 500; }
.tcard p { color: var(--muted); font-size: .96rem; }
.trovi__foto { position: relative; border-radius: 8px; overflow: hidden; margin-top: 1em; cursor: zoom-in; max-width: 620px; box-shadow: 0 26px 54px -32px rgba(110,32,27,.5); }
.trovi__foto img { width: 100%; max-height: 60vh; object-fit: cover; }
.trovi__foto figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 22px 14px; background: linear-gradient(transparent, rgba(30,16,12,.82)); color: var(--cream); font-style: italic; font-size: .96rem; }

/* IL MERCATO */
.merc { background: var(--red-d); color: var(--cream); }
.merc .kicker { color: #E0A24A; }
.merc .h2 { color: #fff; }
.merc .h2 em { color: #E6C9A3; }
.merc__grid { display: grid; grid-template-columns: .68fr 1fr; gap: clamp(32px, 5vw, 66px); align-items: center; }
.merc__text p { color: #eaddc8; margin-bottom: 1em; max-width: 52ch; }
.merc__text strong { color: #fff; }
.merc__foto { border-radius: 8px; overflow: hidden; border: 5px solid rgba(184,135,58,.35); cursor: zoom-in; }
.merc__foto img { width: 100%; height: 100%; object-fit: cover; }
.merc__cta { margin-top: 1.4em; }
.merc .btn--red { background: var(--gold); border-color: var(--gold); color: var(--red-d); }
.merc .btn--red:hover { background: #cc9a48; }

/* GALLERY */
.gal__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 2em; }
.gal__grid figure { border-radius: 8px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4/3; }
.gal__grid figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gal__grid figure:hover img { transform: scale(1.05); }
.gal__tall { grid-row: span 2; aspect-ratio: 3/4 !important; }

/* RECENSIONI */
.rec { background: var(--cream2); }
.rec__grid { columns: 2; column-gap: 22px; margin-top: 1.4em; }
.rec__q { break-inside: avoid; margin-bottom: 22px; background: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 24px; border-left: 4px solid var(--red); }
.rec__q p { color: #41382a; font-style: italic; }
.rec__q cite { display: block; margin-top: .7em; font-style: normal; font-size: .78rem; letter-spacing: .06em; color: var(--red); text-transform: uppercase; font-weight: 700; }

/* DOVE */
.dove__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.dove__addr { color: var(--muted); margin-bottom: 1em; }
.dove__stato { font-family: var(--disp); font-style: italic; font-size: 1rem; margin-bottom: 1.1em; }
.dove__stato::before { content: '●'; margin-right: 8px; font-style: normal; }
.dove__stato.is-open { color: #4e7a3f; }
.dove__stato.is-closed { color: var(--red); }
.orari { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
.orari th, .orari td { text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--line); font-weight: 400; }
.orari th { font-family: var(--disp); font-size: .92rem; color: var(--red-d); }
.orari td { color: var(--muted); text-align: right; }
.orari tr.is-today th, .orari tr.is-today td { color: var(--red); font-weight: 700; }
.dove__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.dove__map { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); min-height: 340px; }
.dove__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* FAQ */
.faq { background: var(--cream2); }
.faq__list { margin-top: 1.4em; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { font-family: var(--disp); font-size: 1.08rem; color: var(--red-d); cursor: pointer; padding: 16px 30px 16px 0; list-style: none; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; position: absolute; right: 4px; top: 13px; color: var(--red); font-size: 1.5rem; transition: transform .3s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--muted); padding: 0 0 16px; max-width: 64ch; }

/* footer */
.site-foot { background: var(--red-d); color: #e7cdae; padding: 46px 0; }
.foot-inner { display: grid; gap: 12px; text-align: center; }
.foot-brand { display: flex; align-items: center; justify-content: center; gap: 11px; font-family: var(--disp); font-size: 1.24rem; color: #fff; }
.foot-brand .brand__mark { background: var(--gold); }
.foot-dove a { color: #E0A24A; }
.foot-demo { font-size: .8rem; color: #c39b78; max-width: 64ch; margin: 6px auto 0; }

/* action bar mobile */
.bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 95; background: var(--red-d); border-top: 2px solid var(--gold); }
.bar a { flex: 1; text-align: center; padding: 13px 4px; color: var(--cream); text-decoration: none; font-weight: 600; font-size: .82rem; }
.bar a + a { border-left: 1px solid rgba(184,135,58,.3); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(25,14,10,.94); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 6px; }
.lightbox__close { position: absolute; top: 18px; right: 24px; background: none; border: none; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }

/* intro */
.intro { position: fixed; inset: 0; z-index: 500; background: var(--red-d); display: grid; place-items: center; transition: opacity .6s, visibility .6s; }
.intro.hide { opacity: 0; visibility: hidden; }
.intro__inner { text-align: center; color: var(--cream); }
.intro__mark { display: block; margin: 0 auto 14px; }
.intro__name { display: block; font-family: var(--disp); font-size: 2rem; color: #fff; }
.intro__sub { display: block; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: #E0A24A; margin-top: 8px; font-weight: 600; }

/* reveal (GSAP fromTo con immediateRender:false → il CSS nasconde) */
.js .reveal, .js .reveal-hero { opacity: 0; }
.js.reduced-motion .reveal, .js.reduced-motion .reveal-hero, html:not(.js) .reveal, html:not(.js) .reveal-hero { opacity: 1; }

/* responsive */
@media (max-width: 900px) {
  .nav { position: fixed; inset: 66px 0 auto 0; background: var(--cream); flex-direction: column; gap: 0; padding: 8px 0; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s; box-shadow: 0 20px 40px -20px rgba(0,0,0,.25); }
  .nav.nav-open { transform: translateY(0); }
  .nav a { padding: 14px 24px; }
  .nav a::after { display: none; }
  .burger { display: flex; }
  .occ__grid, .merc__grid, .dove__grid { grid-template-columns: 1fr; }
  .merc__foto { max-width: 360px; }
  .trovi__grid { grid-template-columns: 1fr 1fr; }
  .gal__grid { grid-template-columns: repeat(2, 1fr); }
  .gal__tall { grid-row: auto; aspect-ratio: 4/3 !important; }
  .rec__grid { columns: 1; }
  .bar { display: flex; }
  body { padding-bottom: 48px; }
}
@media (max-width: 560px) { .trovi__grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
