/* ============================================================
   PIZZA SPOT - CSS Pubblico
   Palette: Bianco crema / Rosso bruciato / Nero caldo
   Font: Playfair Display (heading) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ─── CSS VARIABLES ─────────────────────────────────────── */
:root {
  --red:       #C0392B;
  --red-dark:  #96281B;
  --red-light: #E74C3C;
  --cream:     #FDF8F2;
  --warm-white:#FFFBF5;
  --black:     #1A1008;
  --gray-dark: #3D3028;
  --gray-mid:  #7A6858;
  --gray-light:#D4C9BC;
  --gold:      #C9A84C;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius:    6px;
  --shadow-sm: 0 2px 8px rgba(26,16,8,.08);
  --shadow-md: 0 6px 24px rgba(26,16,8,.14);
  --shadow-lg: 0 16px 48px rgba(26,16,8,.18);
  --transition: .25s ease;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--black);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
ul { list-style: none; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--black);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin-bottom: 1rem; }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center;
  color: var(--gray-mid);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 0.6rem auto 0;
  border-radius: 2px;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover {
  background: var(--red-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  border-color: var(--cream);
  color: var(--cream);
  background: transparent;
}
.btn-outline:hover {
  background: var(--cream);
  color: var(--red);
}
.btn-dark {
  background: var(--black);
  color: #fff;
}
.btn-dark:hover {
  background: var(--gray-dark);
  color: #fff;
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: #25D366;
  color: #fff;
}
.btn-whatsapp:hover {
  background: #1DA851;
  color: #fff;
  transform: translateY(-2px);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* ─── ALERTS ─────────────────────────────────────────────── */
.alert {
  padding: .9rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.alert-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.alert-error   { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }

/* ─── HEADER / NAV ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--cream) !important;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: .03em;
}
.site-logo img {
  height: 44px;
  width: auto;
}
.site-logo span { color: var(--red-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-links a {
  color: var(--gray-light);
  font-size: .92rem;
  font-weight: 500;
  padding: .45rem .9rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,.08);
}
.nav-links .btn { margin-left: .5rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  color: var(--cream);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  border-radius: 2px;
  transition: all var(--transition);
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--black);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/hero-bg.jpg') center/cover no-repeat;
  opacity: .38;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,16,8,.85) 0%, rgba(192,57,43,.25) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.hero-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  color: #fff;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--red-light);
}
.hero-desc {
  color: rgba(255,255,255,.78);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  font-weight: 300;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}
.hero-badge-open {
  position: absolute;
  bottom: 2.5rem;
  right: 2rem;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: .6rem 1.2rem;
  border-radius: 30px;
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hero-badge-open .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* ─── HOURS STRIP ────────────────────────────────────────── */
.hours-strip {
  background: var(--red);
  color: #fff;
  padding: 1rem 0;
}
.hours-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  align-items: center;
}
.hours-strip .hours-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 500;
}
.hours-strip .icon { font-size: 1.1rem; }

/* ─── FEATURED PRODUCTS ──────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}
.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray-light);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-body { padding: 1.25rem; }
.product-card-body h4 { margin-bottom: .35rem; }
.product-card-desc {
  color: var(--gray-mid);
  font-size: .88rem;
  margin-bottom: .75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--red);
}

/* ─── MENU PAGE ──────────────────────────────────────────── */
.menu-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.menu-nav a {
  padding: .5rem 1.25rem;
  border-radius: 30px;
  border: 2px solid var(--gray-light);
  color: var(--gray-dark);
  font-weight: 500;
  font-size: .9rem;
  transition: all var(--transition);
}
.menu-nav a:hover,
.menu-nav a.active {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.menu-category { margin-bottom: 4rem; }
.menu-category-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--gray-light);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.menu-category-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.4em;
  background: var(--red);
  border-radius: 2px;
}
.menu-items { display: grid; gap: 1rem; }
.menu-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.menu-item:hover { box-shadow: var(--shadow-md); }
.menu-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--gray-light);
}
.menu-item-info h4 { margin-bottom: .25rem; font-size: 1rem; }
.menu-item-desc {
  color: var(--gray-mid);
  font-size: .85rem;
  line-height: 1.4;
}
.menu-item-price {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--red);
  font-size: 1.15rem;
  white-space: nowrap;
}

/* ─── BOOKING FORM ───────────────────────────────────────── */
.booking-section {
  background: linear-gradient(135deg, var(--black) 60%, var(--gray-dark) 100%);
  color: #fff;
}
.booking-section .section-title { color: #fff; }
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.booking-info h3 { color: var(--cream); margin-bottom: 1.25rem; }
.booking-info p { color: rgba(255,255,255,.7); }
.booking-info .info-list { margin-top: 1.5rem; }
.booking-info .info-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: rgba(255,255,255,.8);
  padding: .5rem 0;
  font-size: .95rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.booking-form-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: .4rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--black);
  background: #fff;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group textarea { resize: vertical; min-height: 90px; }

/* ─── MAP ────────────────────────────────────────────────── */
.map-section .map-embed {
  width: 100%;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map-section .map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h3 { margin-bottom: 1.25rem; }
.contact-info .nap-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-bottom: 1.25rem;
}
.nap-icon {
  width: 44px;
  height: 44px;
  background: var(--red);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.nap-text strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-mid); }
.nap-text a { color: var(--black); font-weight: 500; }
.nap-text a:hover { color: var(--red); }

/* ─── DELIVERY PAGE ──────────────────────────────────────── */
.delivery-hero {
  background: linear-gradient(135deg, var(--black) 0%, #2c0e0a 100%);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}
.delivery-hero h1 { color: #fff; margin-bottom: 1rem; }
.delivery-hero p { color: rgba(255,255,255,.75); font-size: 1.1rem; max-width: 560px; margin: 0 auto 2rem; }
.delivery-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.platform-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  min-width: 220px;
  transition: all var(--transition);
}
.platform-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.platform-logo { height: 50px; margin: 0 auto .75rem; object-fit: contain; }
.platform-card h4 { color: var(--black); margin-bottom: .5rem; }
.platform-card p { color: var(--gray-mid); font-size: .88rem; margin-bottom: 1.25rem; }

/* ─── GALLERY ────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-light);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,.65);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .site-logo {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #fff !important;
}
.footer-brand p {
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.footer-col h5 {
  color: #fff;
  font-family: var(--font-head);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: .04em;
}
.footer-col ul li { margin-bottom: .5rem; }
.footer-col a { color: rgba(255,255,255,.6); font-size: .9rem; }
.footer-col a:hover { color: var(--red-light); }
.footer-social { display: flex; gap: .75rem; margin-top: 1rem; }
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7) !important;
  font-size: 1rem;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--red);
  color: #fff !important;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .83rem;
}
.footer-nap { font-size: .85rem; }
.footer-nap strong { color: #fff; }

/* ─── BREADCRUMBS ────────────────────────────────────────── */
.breadcrumbs {
  padding: .85rem 0;
  background: var(--warm-white);
  border-bottom: 1px solid var(--gray-light);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  align-items: center;
  font-size: .85rem;
}
.breadcrumbs li + li::before { content: '›'; margin-right: .3rem; color: var(--gray-mid); }
.breadcrumbs a { color: var(--gray-mid); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs [aria-current] { color: var(--black); font-weight: 600; }

/* ─── LOCAL SEO SECTION ──────────────────────────────────── */
.local-seo-section {
  background: var(--warm-white);
  border-top: 3px solid var(--red);
}
.local-seo-section h2 { text-align: left; }
.local-seo-section h2::after { margin-left: 0; }

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--gray-light);
  padding: 1rem 0;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  gap: 1rem;
  user-select: none;
}
.faq-question:hover { color: var(--red); }
.faq-arrow { transition: transform var(--transition); font-style: normal; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: .75rem 0 .25rem;
  color: var(--gray-mid);
  font-size: .95rem;
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ─── UTILITY ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-red { color: var(--red); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.py-2 { padding: 1rem 0; }
.d-flex { display: flex; }
.gap-2 { gap: 1rem; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .65rem;
  border-radius: 20px;
  letter-spacing: .04em;
}
.badge-red { background: var(--red); color: #fff; }
.badge-green { background: #27ae60; color: #fff; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .booking-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .menu-item { grid-template-columns: 60px 1fr auto; }
}

@media (max-width: 680px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--black); padding: 1rem; gap: .25rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .menu-item { grid-template-columns: 1fr; }
  .menu-item-img { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { min-height: 70vh; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .hero-badge-open { bottom: 1rem; right: 1rem; font-size: .78rem; }
}

@media (max-width: 420px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { text-align: center; justify-content: center; }
}
