/* Macelleria La Vernetta — stile del sito */

/* Font ospitati sul sito (SIL Open Font License, vedi assets/fonts/LICENZE.txt) */
/* Figtree – latin-ext */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Figtree – latin */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Young Serif – latin-ext */
@font-face {
  font-family: "Young Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/young-serif-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Young Serif – latin */
@font-face {
  font-family: "Young Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/young-serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bordeaux: #7a1520;
  --bordeaux-deep: #4a0b10;
  --red: #c62432;
  --green: #2e7d4f;
  --cream: #f7f1e8;
  --paper: #fffbf5;
  --kraft: #eadfcd;
  --ink: #221b18;
  --muted: #6b5f58;
  --line: #e4d8c7;
  --shadow: 0 1px 2px rgba(34, 27, 24, .06), 0 12px 32px rgba(34, 27, 24, .1);
  --max: 1160px;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 760px) { .container { padding-inline: 32px; } }

.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.eyebrow {
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red);
}
.muted { color: var(--muted); }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: .7em 1.4em; border-radius: 999px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.btn .icon { width: 1.2em; height: 1.2em; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--bordeaux); color: #fff; }
.btn-primary:hover { background: var(--bordeaux-deep); }
.btn-outline { border-color: var(--bordeaux); color: var(--bordeaux); }
.btn-outline:hover { background: var(--bordeaux); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Stato aperto / chiuso */
.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 16px;
  font-size: .9375rem; font-weight: 600; line-height: 1.35;
  background: var(--paper); border: 1px solid var(--line);
}
.status::before { content: ""; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--muted); }
.status.is-open::before { background: var(--green); box-shadow: 0 0 0 4px rgba(46, 125, 79, .18); }
.status.is-closed::before { background: var(--red); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 241, 232, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 58px; }
.brand-name { display: block; font-family: var(--serif); font-size: 1.3rem; line-height: 1; color: var(--bordeaux); }
.brand-sub { display: block; margin-top: 5px; font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: var(--muted); }
.nav { display: none; }
/* Su cellulare "Chiama" è già nella barra in basso */
.header-call { display: none; min-height: 42px; padding: .5em 1.1em; font-size: .9375rem; }
.header-call .label-long { display: none; }

@media (min-width: 900px) {
  .header-call { display: inline-flex; }
}
@media (min-width: 1024px) {
  .nav { display: flex; gap: 30px; }
  .nav a { text-decoration: none; font-weight: 500; font-size: .9875rem; transition: color .2s; }
  .nav a:hover { color: var(--red); }
  .header-call .label-short { display: none; }
  .header-call .label-long { display: inline; }
}

/* Hero */
.hero { padding-block: 28px 56px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { margin-top: 14px; font-size: clamp(2.45rem, 1.5rem + 3.8vw, 4.6rem); }
.hero h1 em { font-style: normal; color: var(--red); }
.lead { margin-top: 20px; max-width: 34em; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--muted); }
.hero .actions { margin-top: 30px; }
.hero .status { margin-top: 26px; }
.hero-media { position: relative; margin: 0; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 55%;
  border-radius: 24px; box-shadow: var(--shadow);
}
.hero-badge {
  position: absolute; left: 14px; bottom: 14px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 16px;
  background: var(--paper); box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none; transition: transform .2s;
}
.hero-badge:hover { transform: translateY(-2px); }
.hero-badge strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.0625rem; line-height: 1.2; color: var(--bordeaux); }
.hero-badge span span { display: block; font-size: .8125rem; color: var(--muted); }
.stars { color: #e3a008; font-size: 1.1rem; letter-spacing: 1px; line-height: 1; }
.flag {
  width: 30px; height: 21px; flex: none; border-radius: 3px;
  background: linear-gradient(90deg, var(--green) 0 33.33%, #fff 33.33% 66.66%, var(--red) 66.66%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
}

@media (min-width: 900px) {
  .hero { padding-block: 56px 96px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; }
  .hero-media img { aspect-ratio: 5 / 6; }
  .hero-badge { left: -28px; bottom: 36px; padding: 16px 20px; }
}

/* Punti di forza */
.promises { background: var(--paper); border-block: 1px solid var(--line); }
.promises ul { list-style: none; margin: 0; padding: 0; display: grid; }
.promises li { display: flex; align-items: flex-start; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.promises li:first-child { border-top: 0; }
.promise-icon {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none;
  border-radius: 50%; background: var(--cream); color: var(--bordeaux);
}
.promises h3 { font-size: 1.1875rem; }
.promises p { margin-top: 4px; font-size: .9375rem; color: var(--muted); }

@media (min-width: 760px) {
  .promises ul { grid-template-columns: repeat(3, 1fr); }
  .promises li { padding: 30px 28px; border-top: 0; border-left: 1px solid var(--line); }
  .promises li:first-child { border-left: 0; padding-left: 0; }
}

/* Sezioni */
.section { padding-block: 72px; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2, .about-copy h2 { margin-top: 12px; font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); }
.section-head p:not(.eyebrow) { margin-top: 16px; font-size: 1.125rem; color: var(--muted); }
@media (min-width: 900px) {
  .section { padding-block: 112px; }
  .section-head { margin-bottom: 56px; }
}

/* Chi siamo */
.about-grid { display: grid; gap: 40px; align-items: center; }
.about-media { margin: 0; }
.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; }
.about-media figcaption { margin-top: 12px; font-size: .875rem; color: var(--muted); }
.about-copy > p:not(.eyebrow) { margin-top: 18px; font-size: 1.125rem; }
.about-copy > p + p { color: var(--muted); }
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line);
}
.fact strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.75rem); line-height: 1; color: var(--bordeaux); }
.fact span { display: block; margin-top: 8px; font-size: .875rem; line-height: 1.35; color: var(--muted); }
.fact-star { width: .55em; height: .55em; margin-left: .08em; vertical-align: .45em; fill: #e3a008; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}

/* Le nostre carni */
.meats { background: var(--bordeaux-deep); color: #f6ece6; }
.meats .eyebrow { color: #f2a7ad; }
.meats h2 { color: #fff; }
.meats .section-head p:not(.eyebrow) { color: rgba(246, 236, 230, .78); }
.meats-grid { display: grid; gap: 40px; }
.meats-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.meats-media figure { position: relative; margin: 0; }
.meats-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
.meat-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.meat-list li {
  display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 12px; row-gap: 8px;
  padding: 28px 0; border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.meat-num { grid-row: span 2; padding-top: .55em; font-family: var(--serif); color: #f2a7ad; }
.meat-list h3 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); color: #fff; }
.meat-list p { color: rgba(246, 236, 230, .78); max-width: 34em; }
.tag {
  display: inline-block; margin-left: 8px; padding: 4px 10px; border-radius: 999px; vertical-align: .35em;
  font: 700 .6875rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  background: var(--red); color: #fff;
}
@media (min-width: 900px) {
  .meats-grid { grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
  .meats-media { position: sticky; top: 112px; grid-template-columns: 1fr; gap: 16px; }
  .meats-media img { aspect-ratio: 4 / 3; border-radius: 24px; }
}

/* Galleria: scorrimento orizzontale su cellulare, mosaico da tablet in su */
.gallery {
  list-style: none; margin: 0 -20px; padding: 0 20px 8px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
}
.gallery li { scroll-snap-align: start; }
.gallery figure { position: relative; margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.gallery figcaption, .meats-media figcaption {
  position: absolute; left: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 251, 245, .92); color: var(--ink); font-size: .8125rem; font-weight: 600;
}
@media (min-width: 760px) {
  /* 5 foto su 6 colonne: una grande (4×2), due a destra, due larghe sotto */
  .gallery {
    margin: 0; padding: 0; overflow: visible;
    grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 220px; gap: 16px;
  }
  .gallery figure, .gallery img { height: 100%; }
  .gallery img { aspect-ratio: auto; }
  .gallery li { grid-column: span 2; }
  .gallery li.gallery-feature { grid-column: span 4; grid-row: span 2; }
  .gallery li:nth-child(n+4) { grid-column: span 3; }
}

/* Prenotazioni */
.booking { background: var(--kraft); }
.booking-inner { display: grid; gap: 28px; align-items: center; padding-block: 56px; }
.booking h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); color: var(--bordeaux); }
.booking p { margin-top: 14px; max-width: 36em; font-size: 1.125rem; color: #5b4d43; }
@media (min-width: 900px) {
  .booking-inner { grid-template-columns: 1fr auto; gap: 64px; padding-block: 80px; }
}

/* Orari e contatti */
.visit-grid { display: grid; gap: 20px; }
.card { --pad: 26px; padding: var(--pad); overflow: hidden; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); }
.card-photo {
  width: calc(100% + 2 * var(--pad)); max-width: none;
  margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) 24px;
  aspect-ratio: 20 / 9; object-fit: cover;
}
.card h3 { display: flex; align-items: center; gap: 12px; font-size: 1.75rem; }
.card h3 .icon { color: var(--red); }
.card .status { margin-top: 18px; background: var(--cream); }
.hours { width: 100%; margin-top: 16px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { text-align: left; font-weight: 600; }
.hours td { text-align: right; color: var(--muted); }
.hours td span { display: block; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--bordeaux); font-weight: 700; }
.hours tr.is-today th::after {
  content: "oggi"; margin-left: 8px; padding: 2px 8px; border-radius: 999px; vertical-align: .1em;
  font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--bordeaux); color: #fff;
}
.hours-note { margin-top: 16px; font-size: .875rem; color: var(--muted); }
.hours-note a { color: var(--bordeaux); font-weight: 600; }
.address { margin-top: 18px; font-family: var(--serif); font-style: normal; font-size: 1.55rem; line-height: 1.3; }
.access { margin-top: 10px; font-size: .9375rem; color: var(--muted); }
.contact-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.contact-list a {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 14px;
  background: var(--cream); text-decoration: none; font-weight: 600; transition: background-color .2s;
}
.contact-list a:hover { background: var(--kraft); }
.contact-list .icon { color: var(--bordeaux); }
.contact-list small { display: block; font-size: .8125rem; font-weight: 400; color: var(--muted); }
@media (min-width: 560px) {
  .hours th, .hours td { padding-block: 13px; }
  .hours td span { display: inline; }
  .hours td span + span::before { content: "  ·  "; white-space: pre; }
}
@media (min-width: 760px) {
  .card { --pad: 40px; }
}
@media (min-width: 900px) {
  .visit-grid { grid-template-columns: 1.1fr .9fr; gap: 28px; }
}

/* Footer */
.site-footer { background: #2a0a0d; color: rgba(255, 255, 255, .72); font-size: .9375rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.tricolore { height: 5px; background: linear-gradient(90deg, var(--green) 0 33.33%, #fff 33.33% 66.66%, var(--red) 66.66%); }
.footer-grid { display: grid; gap: 32px; padding-block: 56px 40px; }
.footer-logo { width: 96px; padding: 10px; border-radius: 18px; background: var(--cream); margin-bottom: 16px; }
.site-footer h4 { margin: 0 0 12px; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8125rem;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer-bottom--solo { border-top: 0; }

/* Pagine legali (privacy, cookie) */
.legal-page { padding-bottom: 0; }
.back-link { font-size: .9375rem; font-weight: 600; color: var(--bordeaux); text-decoration: none; white-space: nowrap; }
.back-link:hover { text-decoration: underline; }
.legal { max-width: 760px; padding-block: 40px 88px; }
.legal h1 { margin-top: 12px; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem); }
.legal h2 { margin-top: 44px; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); }
.legal p, .legal ul { margin-top: 14px; }
.legal ul { padding-left: 1.25em; }
.legal li + li { margin-top: 8px; }
.legal a:not(.btn) { color: var(--bordeaux); font-weight: 600; overflow-wrap: anywhere; }
.legal-updated { font-size: .9375rem; color: var(--muted); }
.legal-box { margin-top: 18px; padding: 4px 22px 18px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.legal-box--highlight { margin-top: 28px; border-color: var(--kraft); background: var(--kraft); }
.legal-actions { margin-top: 28px; }
@media (min-width: 900px) {
  .legal { padding-block: 64px 112px; }
}

/* Barra azioni rapide (solo cellulare) */
.action-bar {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(34, 27, 24, .08);
}
.action-bar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 7px 4px; border-radius: 12px;
  font-size: .75rem; font-weight: 600; text-decoration: none; color: var(--ink);
}
.action-bar a:first-child { background: var(--bordeaux); color: #fff; }
.action-bar .icon { width: 22px; height: 22px; }
@media (min-width: 900px) {
  .action-bar { display: none; }
  body { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
