/* ============================================================
   Da Mario – Pizzeria · style.css
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:       #c0392b;
  --red-dark:  #922b21;
  --red-light: #e74c3c;
  --gold:      #e8a53a;
  --gold-dark: #d4891a;
  --cream:     #fdf6ec;
  --cream-dark:#f5e6cc;
  --charcoal:  #1a1a1a;
  --gray-dark: #333;
  --gray:      #666;
  --gray-light:#f0ebe3;
  --white:     #ffffff;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --radius:    16px;
  --shadow:    0 4px 32px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.18);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192,57,43,.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn.full { width: 100%; justify-content: center; }

/* --- Section labels --------------------------------------- */
.section-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.section-label.center { text-align: center; }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 20px;
}
.section-title.center { text-align: center; }
.section-title em { font-style: italic; color: var(--red); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(26,26,26,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,.25);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon { font-size: 1.6rem; }
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }

.btn-prenotazione {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: .85rem !important;
  transition: var(--transition) !important;
}
.btn-prenotazione:hover {
  background: var(--red-dark) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 60% 40%, #7b241c 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, #1a0a0a 0%, transparent 50%),
    linear-gradient(135deg, #1a0a0a 0%, #3d1010 40%, #7b241c 100%);
}

/* Animated texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(232,165,58,.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(232,165,58,.06) 0%, transparent 35%);
  animation: heroGlow 6s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from { opacity: .6; }
  to   { opacity: 1; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  padding: 0 24px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid rgba(232,165,58,.4);
  border-radius: 50px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,.75);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.5);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   BADGE BAR
   ============================================================ */
.badge-bar {
  background: var(--charcoal);
  padding: 28px 24px;
}

.badge-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 36px;
}

.badge-item .badge-icon { font-size: 1.8rem; }

.badge-item div {
  display: flex;
  flex-direction: column;
}
.badge-item strong {
  color: var(--white);
  font-size: .9rem;
  font-weight: 600;
}
.badge-item span {
  color: rgba(255,255,255,.5);
  font-size: .78rem;
}

.badge-sep {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.1);
}

/* ============================================================
   STORIA
   ============================================================ */
.storia {
  padding: 100px 0;
  background: var(--cream);
}

.storia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.storia-img-wrap {
  position: relative;
}

.storia-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #7b241c, #c0392b);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

/* Decorative pizza art */
.pizza-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 10%;
}

.pizza-circle {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e8a53a, #d4891a);
  box-shadow: 0 0 0 12px rgba(255,255,255,.08), inset 0 0 60px rgba(0,0,0,.2);
}

.pizza-topping {
  position: absolute;
  border-radius: 50%;
}
.t1 {
  width: 30%; height: 30%;
  background: radial-gradient(circle, #e74c3c, #922b21);
  top: 20%; left: 20%;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.2);
}
.t2 {
  width: 22%; height: 22%;
  background: radial-gradient(circle, #f9f9f9, #e0e0e0);
  top: 50%; right: 18%;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.1);
}
.t3 {
  width: 25%; height: 25%;
  background: radial-gradient(circle, #27ae60, #1e8449);
  bottom: 18%; left: 35%;
}

.pizza-slice-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.12) 49.5%, transparent 50%);
  border-radius: 50%;
}
.pizza-slice-line.sl2 {
  transform: rotate(90deg);
}

.pizza-center {
  position: absolute;
  width: 12%; height: 12%;
  background: #d4891a;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  box-shadow: 0 0 0 3px rgba(255,255,255,.2);
}

.storia-badge-anno {
  position: absolute;
  bottom: -16px; right: -16px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.storia-text p {
  color: var(--gray);
  margin-bottom: 20px;
}

.storia-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--cream-dark);
  flex-wrap: wrap;
}

.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--red);
}
.stat span {
  font-size: .82rem;
  color: var(--gray);
}

/* ============================================================
   MENU
   ============================================================ */
.menu-section {
  padding: 100px 0;
  background: var(--white);
}

.menu-intro {
  text-align: center;
  color: var(--gray);
  max-width: 520px;
  margin: 0 auto 56px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Pizza Card */
.pizza-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.pizza-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.pizza-card.featured {
  box-shadow: 0 0 0 3px var(--red), var(--shadow-lg);
}

.pizza-card-img {
  position: relative;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.margherita-bg {
  background: linear-gradient(145deg, #1a0a0a 0%, #c0392b 60%, #e74c3c 100%);
}
.diavola-bg {
  background: linear-gradient(145deg, #0d0000 0%, #7b241c 50%, #c0392b 100%);
}
.stagioni-bg {
  background: linear-gradient(145deg, #1a0a0a 0%, #8e2416 50%, #c0392b 100%);
}

.pizza-visual {
  width: 70%;
  max-width: 160px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.5));
  transition: transform .4s ease;
}

.pizza-card:hover .pizza-visual { transform: scale(1.06) rotate(3deg); }

.pizza-card-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gold);
  color: var(--charcoal);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
}
.pizza-card-badge.hot {
  background: var(--red);
  color: var(--white);
}

.pizza-card-body {
  padding: 24px;
}

.pizza-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.pizza-card-header h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--charcoal);
}

.pizza-price {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--red);
}

.pizza-desc {
  font-size: .88rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 16px;
}

.pizza-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tag {
  font-size: .7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  background: var(--gray-light);
  color: var(--gray-dark);
  letter-spacing: .02em;
}
.tag.spicy {
  background: #fdecea;
  color: var(--red-dark);
}

.pizza-ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ing {
  font-size: .78rem;
  color: var(--gray);
  background: var(--cream);
  padding: 4px 10px;
  border-radius: 50px;
}

.menu-note {
  text-align: center;
  font-size: .8rem;
  color: var(--gray);
  margin-top: 36px;
  font-style: italic;
}

/* ============================================================
   CONTATTI
   ============================================================ */
.contatti {
  padding: 100px 0;
  background: var(--cream);
}

.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.info-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.info-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-block div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.info-block strong {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray);
}
.info-block span, .info-block a {
  font-size: .95rem;
  color: var(--charcoal);
  line-height: 1.5;
}
.info-block a:hover { color: var(--red); }

/* Form */
.contatti-form-wrap {
  background: var(--white);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.contatti-form-wrap h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 28px;
  color: var(--charcoal);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gray);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: .9rem;
  color: var(--charcoal);
  background: var(--cream);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 12px 16px;
  outline: none;
  transition: var(--transition);
  width: 100%;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(192,57,43,.1);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 0;
  gap: 12px;
}
.form-success.visible { display: flex; }
.success-icon { font-size: 3rem; }
.form-success h4 { font-family: var(--font-serif); font-size: 1.4rem; }
.form-success p  { color: var(--gray); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,.6);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-brand .logo-text { color: var(--white); font-size: 1.3rem; }
.footer-brand p { font-size: .85rem; max-width: 220px; }
.footer-brand .logo-icon { font-size: 1.4rem; }

.footer-brand > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }

.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: var(--transition);
}
.social-btn:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 24px;
  text-align: center;
  font-size: .78rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .storia-grid { grid-template-columns: 1fr; gap: 48px; }
  .contatti-grid { grid-template-columns: 1fr; gap: 48px; }
  .storia-img-wrap { max-width: 360px; margin: 0 auto; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 72px 0 0 0;
    background: rgba(26,26,26,.98);
    backdrop-filter: blur(12px);
    padding: 40px 24px;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
    z-index: 99;
  }
  .nav-links.open a { font-size: 1.2rem; color: var(--white); }
  .hamburger { display: flex; }

  .menu-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .badge-bar-inner { gap: 0; flex-direction: column; }
  .badge-sep { width: 60px; height: 1px; margin: 4px 0; }

  .hero-cta { flex-direction: column; align-items: center; }

  .storia-stats { gap: 20px; }
}

/* ============================================================
   ANIMATIONS (scroll reveal)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
