/* ==========================================================
   Al Peperoncino — foglio di stile
   ========================================================== */

/* Caratteri ospitati sul sito (nessun collegamento a Google Fonts).
   Inter e Playfair Display — SIL Open Font License 1.1, vedi assets/fonts/*-LICENSE.txt */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Pinyon Script"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/pinyon-script-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 800; font-display: swap; src: url("../fonts/playfair-display-latin-800-italic.woff2") format("woff2"); }
:root {
  --red: #b3261e;
  --red-dark: #8a1c16;
  --ink: #1f1a17;
  --ink-soft: #5a514b;
  --cream: #faf6ef;
  --paper: #ffffff;
  --line: #e7dfd3;
  --gold: #c9973b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 26, 23, .10);
  --max: 1160px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red); margin-bottom: .8rem;
}
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; transition: .2s ease;
  cursor: pointer;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border-color: currentColor; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--red); color: var(--red); }
.btn-outline:hover { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; }
.brand-name {
  display: block; font-family: "Pinyon Script", "Brush Script MT", cursive; font-weight: 400;
  font-size: 2rem; line-height: 1; color: var(--red); letter-spacing: .01em;
}
@media (max-width: 420px) { .brand-sub { font-size: .58rem !important; letter-spacing: .06em !important; } }
.brand-sub { display: block; white-space: nowrap; font-family: var(--sans); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--red); }
.nav .btn { padding: .6em 1.15em; font-size: .92rem; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(88vh, 760px);
  display: flex; align-items: flex-end; color: #fff;
  background: #2a211c url("../images/al-peperoncino-posti-esterno-1280x860.jpg") center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,14,10,.25) 0%, rgba(20,14,10,.55) 45%, rgba(20,14,10,.88) 100%);
}
.hero .container { position: relative; padding-top: 120px; padding-bottom: clamp(48px, 8vw, 96px); }
.hero .eyebrow { color: #ffd6cf; }
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); max-width: 16ch; margin-bottom: .35em; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 54ch; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }

.badge-years {
  display: inline-flex; align-items: baseline; gap: 8px; margin-bottom: 1.2rem;
  font-family: var(--serif); font-size: 1.05rem; color: #fff;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 6px 16px;
}
.badge-years strong { font-size: 1.5rem; color: #ffb4a8; }

/* ---------- Punti di forza ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 44px; }
.feature {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--gold); margin-bottom: 16px;
}
.feature .icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.25rem; margin-bottom: .35em; }
.feature p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

/* ---------- Piatti ---------- */
.dishes-bg { background: var(--ink); color: #fff; }
.dishes-bg .lead { color: rgba(255,255,255,.75); }
.dishes-bg .eyebrow { color: #ff9d8f; }
.gallery {
  display: grid; gap: 16px; margin-top: 44px;
  grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px;
}
.gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  font-family: var(--serif); font-size: 1.1rem;
}
.gallery .wide { grid-column: span 2; }
.gallery .tall { grid-row: span 2; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .gallery .wide, .gallery .tall { grid-column: auto; grid-row: auto; }
}

/* ---------- Ambienti ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split-media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.split-media img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.split-media img:last-child { margin-top: 48px; }
.checklist { list-style: none; padding: 0; margin: 1.4rem 0 2rem; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: .7rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Call to action ---------- */
.cta {
  background: var(--red); color: #fff; border-radius: 22px;
  padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
  background-image: radial-gradient(circle at 90% 10%, rgba(255,255,255,.14), transparent 45%);
}
.cta h2 { margin-bottom: .25em; }
.cta p { margin: 0; color: rgba(255,255,255,.88); }
.cta .phone { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; text-decoration: none; white-space: nowrap; }
.cta .btn-light { background: #fff; color: var(--red); }
.cta .btn-light:hover { background: var(--cream); }
.cta-notes {
  list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(255,255,255,.28);
  font-size: .98rem; color: rgba(255,255,255,.92);
}
.cta-notes li { position: relative; padding-left: 22px; margin-bottom: .45em; }
.cta-notes li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: .8; }
.cta-notes strong { color: #fff; }
.cta .cta-thanks { margin-top: .6em; font-style: italic; font-size: .95rem; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Dove siamo ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; margin-top: 40px; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.contact-card dl { margin: 0; }
.contact-card dt { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-top: 18px; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 4px 0 0; font-size: 1.08rem; }
.contact-card dd a { text-decoration: none; font-weight: 600; }
.social { list-style: none; margin: 0; padding: 0; }
.social li { margin: 2px 0; }
.hours { border-collapse: collapse; }
.hours th { text-align: left; font-weight: 500; color: var(--ink-soft); padding: 2px 18px 2px 0; }
.hours td { font-weight: 600; font-variant-numeric: tabular-nums; padding: 2px 0; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 360px; background: #eee; }
.map-consent {
  min-height: 360px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 32px; gap: 4px;
  background: linear-gradient(135deg, #f3ece1 0%, #ece3d5 100%);
}
.map-consent svg { width: 40px; height: 40px; color: var(--red); margin-bottom: 8px; }
.map-consent p { margin: 0 0 .4em; max-width: 42ch; }
.map-consent .small { font-size: .88rem; color: var(--ink-soft); margin-bottom: 1.1em; }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #17120f; color: rgba(255,255,255,.72); padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h3 { font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; color: #fff; font-family: "Pinyon Script", "Brush Script MT", cursive; font-weight: 400; font-size: 2.1rem; line-height: 1.1; }
.footer-brand img { width: 40px; height: 40px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Pulsante chiamata mobile ---------- */
.call-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--red); color: #fff;
  display: none; place-items: center; box-shadow: 0 8px 24px rgba(179,38,30,.45);
}
.call-fab svg { width: 26px; height: 26px; }
@media (max-width: 760px) { .call-fab { display: grid; } }

/* ==========================================================
   Pagina Menù
   ========================================================== */
.page-hero { background: var(--ink); color: #fff; padding: clamp(56px, 9vw, 96px) 0 clamp(40px, 6vw, 64px); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .22;
  background: url("../images/pizza-al-peperoncino-960x560.jpg") center / cover no-repeat;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); margin-bottom: .2em; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 56ch; margin: 0; }
.page-hero .eyebrow { color: #ff9d8f; }

.menu-tools {
  position: sticky; top: 72px; z-index: 40;
  background: rgba(250, 246, 239, .96); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.menu-tools .container { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.menu-search { position: relative; flex: 0 0 240px; }
.menu-search input {
  width: 100%; padding: 10px 14px 10px 38px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); font: inherit; font-size: .95rem; color: var(--ink);
}
.menu-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--ink-soft); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips a {
  flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 500; white-space: nowrap;
}
.chips a:hover, .chips a.active { background: var(--red); border-color: var(--red); color: #fff; }
@media (max-width: 700px) {
  .menu-tools .container { flex-direction: column; align-items: stretch; gap: 10px; }
  .menu-search { flex: none; }
}

.menu-grid { columns: 2 440px; column-gap: 28px; }
.menu-section {
  break-inside: avoid; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 28px 20px; margin: 0 0 28px; display: inline-block; width: 100%;
  scroll-margin-top: 150px;
}
.menu-section h2 { font-size: 1.6rem; display: flex; align-items: center; gap: 12px; margin-bottom: .8rem; }
.menu-section h2::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--red), transparent); opacity: .35; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; }
.menu-list li + li { border-top: 1px dashed var(--line); }
.menu-list .name { flex: 1; }
.menu-list .name small { display: block; color: var(--ink-soft); font-size: .84rem; }
.menu-list .price { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--red-dark); }
.menu-list .tag { font-size: .7rem; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: #fbe9e6; color: var(--red); margin-left: 6px; vertical-align: 2px; }
.menu-list li.highlight .name {
  font-family: var(--serif); font-style: italic; font-weight: 800; font-size: 1.2rem; color: var(--red-dark);
}
.menu-list li.highlight .price { font-weight: 700; font-size: 1.08rem; }
.menu-note { background: #fff6e5; border: 1px solid #f0dcb4; color: #6b5220; border-radius: 10px; padding: 12px 16px; font-size: .92rem; margin-top: 12px; }
.menu-legend { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; color: var(--ink-soft); font-size: .95rem; }
.menu-legend p:last-child { margin: 0; }
.allergens { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 28px; margin-top: 20px; color: var(--ink-soft); font-size: .93rem; }
.allergens summary { cursor: pointer; padding: 20px 0; font-weight: 600; color: var(--ink); font-size: 1rem; }
.allergens[open] { padding-bottom: 20px; }
.allergens ol { margin: 0 0 1em; padding-left: 1.4em; columns: 2 280px; column-gap: 32px; }
.allergens li { margin-bottom: .3em; break-inside: avoid; }
.allergens .law { font-size: .82rem; font-style: italic; }
.menu-empty { display: none; text-align: center; color: var(--ink-soft); padding: 40px 0; }
.is-hidden { display: none !important; }
mark { background: #ffe39b; color: inherit; border-radius: 3px; padding: 0 2px; }

/* ==========================================================
   Pagine legali (cookie policy)
   ========================================================== */
.page-hero-plain::after { display: none; }
.legal .container { max-width: 860px; }
.legal h2 { font-size: 1.55rem; margin-top: 2.2em; }
.legal h2:first-of-type { margin-top: 1em; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: .4em; }
.legal .updated { color: var(--ink-soft); font-size: .92rem; }
.legal .todo { background: #ffe39b; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.legal-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 640px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.legal-table thead th { background: #f3ece1; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.legal-table tbody tr:last-child > * { border-bottom: 0; }
.legal-table tbody th small { font-weight: 400; color: var(--ink-soft); }
.footer-bottom a { text-decoration: underline; }

@media print {
  .site-header, .menu-tools, .site-footer, .call-fab, .page-hero::after { display: none !important; }
  .page-hero { background: none; color: #000; padding: 0 0 20px; }
  .menu-section { border: 0; padding: 0; }
  body { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
