/* ==========================================================================
   Pizzangolo — stile del sito
   Font locali, nessuna dipendenza esterna.
   ========================================================================== */

/* ---- Font (variable fonts, subset latino) ---- */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/lora-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/montserrat-latin.woff2') format('woff2');
}

/* ---- Variabili ---- */
:root {
  --red: #c8342c;
  --red-dark: #a3271f;
  --yellow: #f0a832;
  --yellow-light: #f7c56e;
  --bg: #faf6f0;
  --surface: #ffffff;
  --ink: #292321;
  --muted: #6f655f;
  --line: #e8e0d6;
  --dark: #211b17;
  --dark-2: #2c241f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(41, 35, 33, .08);
  --header-h: 72px;
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---- Reset e base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 70px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.15; margin: 0 0 .5em; }

.container { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  text-align: center;
  margin-bottom: .35em;
}
.section-title::after {
  content: '';
  display: block;
  width: 56px; height: 4px;
  margin: .5em auto 0;
  border-radius: 2px;
  background: var(--yellow);
}
.section-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto 2.5rem;
}

/* ---- Bottoni ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .85em 1.7em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(200, 52, 44, .35); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { border-color: rgba(255, 255, 255, .75); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, .12); }
.btn-yellow { background: var(--yellow); color: var(--dark); box-shadow: 0 6px 18px rgba(240, 168, 50, .35); }
.btn-yellow:hover { background: var(--yellow-light); }

/* ---- Header ---- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(33, 27, 23, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { background: rgba(33, 27, 23, .95); box-shadow: 0 2px 14px rgba(0, 0, 0, .25); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 44px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav a {
  color: rgba(255, 255, 255, .92);
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .03em;
  padding: .35em 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--yellow); border-bottom-color: var(--yellow); }
.main-nav .btn { padding: .6em 1.3em; font-size: .88rem; }
.main-nav .btn:hover { border-bottom-color: transparent; color: var(--dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 3px;
  border-radius: 2px;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .75rem 1.25rem 1.5rem;
    background: rgba(33, 27, 23, .97);
    transform: translateY(-130%);
    transition: transform .25s ease;
  }
  .nav-open .main-nav { transform: translateY(0); }
  .main-nav a { padding: .9em 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 1rem; }
  .main-nav .btn { margin-top: 1rem; justify-content: center; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  color: #fff;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(23, 18, 15, .62) 0%, rgba(23, 18, 15, .45) 55%, rgba(23, 18, 15, .72) 100%);
}
.hero-eyebrow {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.8rem, 9vw, 5.2rem);
  margin: 0 0 .25em;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .4);
}
.hero p { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 48ch; margin: 0 0 2rem; color: rgba(255, 255, 255, .92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .8);
  font-size: 1.6rem;
  text-decoration: none;
  animation: bounce 2.2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* Hero compatto (pagina menù) */
.hero-small { min-height: 46svh; text-align: center; justify-content: center; }
.hero-small .container { display: flex; flex-direction: column; align-items: center; }
.hero-small h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); }

/* ---- Card ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--yellow);
}
.card-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(200, 52, 44, .09);
  color: var(--red);
}
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0; }

/* ---- Galleria ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---- Info / contatti ---- */
.info-section { background: var(--dark); color: rgba(255, 255, 255, .88); }
.info-section .section-title { color: #fff; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.info-block { text-align: center; }
.info-block h3 {
  font-family: var(--font-sans);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1rem;
}
.info-block p { margin: 0 0 .5rem; }
.info-block a { color: #fff; }
.phone-big {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
}
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .45em 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-size: .95rem;
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list .days { font-weight: 600; text-align: left; }
.hours-list .times { text-align: right; color: rgba(255, 255, 255, .75); }
.hours-list .closed { color: var(--yellow); }

/* ---- Footer ---- */
.site-footer {
  background: #17120f;
  color: rgba(255, 255, 255, .6);
  padding: 2rem 0;
  font-size: .85rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-footer img { height: 34px; }
.site-footer a { color: rgba(255, 255, 255, .8); }
.site-footer p { margin: 0; }

/* ==========================================================================
   Pagina menù
   ========================================================================== */

.menu-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(250, 246, 240, .95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.menu-nav-inner {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .7rem 0;
  scrollbar-width: none;
}
.menu-nav-inner::-webkit-scrollbar { display: none; }
.menu-nav a {
  flex: 0 0 auto;
  padding: .45em 1.1em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.menu-nav a:hover { border-color: var(--red); color: var(--red); }
.menu-nav a.active { background: var(--red); border-color: var(--red); color: #fff; }

.menu-category { padding: clamp(2.5rem, 5vw, 4rem) 0 1rem; }
.menu-category-title {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.menu-category-title::after {
  content: '';
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--yellow), transparent);
}
.menu-category-note { color: var(--muted); font-size: .9rem; margin: -.25rem 0 1rem; }

.menu-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(430px, 100%), 1fr));
  gap: .75rem 2.5rem;
  margin-top: 1.25rem;
}
.menu-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .9rem 1.1rem;
}
.menu-item-head {
  display: flex;
  align-items: baseline;
  gap: .6rem;
}
.menu-item-name {
  font-family: var(--font-sans);
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: .02em;
  margin: 0;
}
.menu-item-head .leader {
  flex: 1;
  border-bottom: 2px dotted var(--line);
  transform: translateY(-4px);
}
.menu-item-price {
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
}
.menu-item-desc { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.menu-item-maxi {
  display: inline-block;
  margin-top: .45rem;
  padding: .15em .8em;
  border-radius: 999px;
  background: rgba(240, 168, 50, .16);
  color: #9a6a12;
  font-size: .78rem;
  font-weight: 700;
}
.menu-footnote {
  color: var(--muted);
  font-size: .88rem;
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 1.25rem;
}
.menu-loading { text-align: center; color: var(--muted); padding: 4rem 0; }

/* CTA fisso su mobile: chiama ora */
.call-fab {
  display: none;
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 45;
}
@media (max-width: 760px) {
  .call-fab { display: inline-flex; }
  body { padding-bottom: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll { animation: none; }
  .btn:hover { transform: none; }
}
