:root {
  --bg-page: #faf6f0;
  --bg-light: #ffffff;
  --bg-soft: #f3ede4;
  --text-main: #2b2b2b;
  --text-muted: #676767;
  --accent: #f2d56b;
  --accent-dark: #e0c155;
  --radius: 16px;
  --shadow-soft: 0 14px 35px rgba(0,0,0,0.12);
  --font-body: "Inter", sans-serif;
  --font-heading: "Montserrat", sans-serif;
}

/* RESET */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
}

/* GENERALI */
.section {
  padding: 96px 16px;
}

.section-light {
  background: var(--bg-light);
}

.section-soft {
  background: var(--bg-soft);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.center {
  text-align: center;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(250, 246, 240, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  z-index: 1000;
  padding: 12px 18px;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* BRAND */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  color: #2b2b2b;
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* NAV DESKTOP */
.nav-desktop ul {
  list-style: none;
  display: flex;
  gap: 22px;
}

.nav-desktop a {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-desktop a:hover {
  color: var(--text-main);
}

.nav-desktop a:hover::after {
  width: 100%;
}

/* BURGER + MENU MOBILE */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: #333;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(250, 246, 240, 0.97);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 900;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-inner {
  width: 100%;
  max-width: 380px;
  padding: 32px 24px;
}

.mobile-inner ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}

.mobile-inner a {
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-main);
}

/* HERO */
.hero {
  padding-top: 96px; /* spazio per header */
}

.hero-light {
  background: url("assets/pizza-hero.webp") center/cover no-repeat;
  min-height: 92vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2),
    rgba(0,0,0,0.5)
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  text-align: center;
  padding: 0 18px;
  animation: heroEnter 1s cubic-bezier(.18,.75,.35,1);
}

@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 17px;
  margin-bottom: 26px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 26px;
}

.hero-info {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  font-size: 13px;
}

.hero-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: rgba(255,255,255,0.8);
}

.hero-value {
  font-weight: 500;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease,
              box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #2b2b2b;
  box-shadow: 0 10px 25px rgba(0,0,0,0.16);
}

.btn.primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.18);
}

.btn.ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn.ghost:hover {
  background: rgba(255,255,255,0.15);
}

/* SEZIONI / TESTI */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 32px);
  margin-bottom: 8px;
}

.section-header {
  margin-bottom: 28px;
}

.text {
  font-size: 15px;
  color: var(--text-muted);
  margin-right: auto;
}

/* STORY LAYOUT */
.story-layout {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(0,1.2fr);
  gap: 40px;
  align-items: center;
}

.story-text .text + .text {
  margin-top: 14px;
}

.story-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* HIGHLIGHT GRID */
.highlight-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.highlight-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.16);
}

.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #2b2b2b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.highlight-card h3 {
  font-family: var(--font-heading);
  margin-bottom: 6px;
  font-size: 18px;
}

.highlight-card p,
.highlight-card ul {
  font-size: 14px;
  color: var(--text-muted);
}

.bullet-list {
  list-style: none;
  margin-bottom: 8px;
}

.bullet-list li::before {
  content: "• ";
  color: var(--accent);
}

/* CARDS MENU */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.16);
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 6px;
}

.card p {
  font-size: 14px;
  color: var(--text-muted);
}

.menu-cta {
  margin-top: 24px;
}

.menu-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}
/* GALLERY NUOVA — LAYOUT MODERNO MASONRY */
.gallery-grid {
  column-count: 3;
  column-gap: 14px;
  margin-top: 40px;
}

.gallery-grid img {
  width: 100%;
  margin-bottom: 14px;
  border-radius: 16px;
  display: block;
  break-inside: avoid;
  transition: transform 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
}

/* Hover fancy */
.gallery-grid img:hover {
  transform: scale(1.04);
  filter: brightness(1.1) saturate(1.2);
  box-shadow: 0 18px 32px rgba(0,0,0,0.25);
}

/* Mobile fix */
@media (max-width: 768px) {
  .gallery-grid {
    column-count: 2;
  }
}

@media (max-width: 500px) {
  .gallery-grid {
    column-count: 1;
  }
}

/* ======================================
   CONTATTI – NUOVO DESIGN
   ====================================== */

.contact-section {
  text-align: center;
}

.contact-card {
  background: #fff;
  padding: 32px 28px;
  margin-top: 32px;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(0,0,0,0.06);
}

.contact-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-item h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  margin-bottom: 8px;
}

.contact-item p,
.contact-item a {
  color: var(--text-muted);
  font-size: 15px;
}

.contact-item a {
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--accent-dark);
}

.divider {
  width: 100%;
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 24px 0;
}

.contact-hours-grid {
  display: flex;
  justify-content: space-around;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-hours-grid h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  margin-bottom: 6px;
}

.contact-hours-grid p {
  color: var(--text-muted);
  font-size: 15px;
}

.contact-cta {
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}

.contact-cta:hover {
  transform: translateY(-2px);
}

/* MOBILE */
@media (max-width: 700px) {
  .contact-card {
    padding: 26px 20px;
  }
  .contact-row {
    gap: 20px;
  }
  .contact-hours-grid {
    flex-direction: column;
    gap: 20px;
  }
}

/* FOOTER */
.footer {
  padding: 20px 16px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
}

.footer-link:hover {
  text-decoration: underline;
}

/* AOS TWEAK – FADE + LIFT */
[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition-property: opacity, transform;
}

.aos-animate {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Immagini dentro AOS */
[data-aos] img.aos-init {
  opacity: 0;
}

[data-aos].aos-animate img.aos-init {
  opacity: 1;
  transform: scale(1);
}

/* RESPONSIVE */
@media (min-width: 901px) {
  /* su desktop il menu mobile sparisce del tutto */
  #mobile-menu {
    display: none !important;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .burger {
    display: flex;
  }

  .section {
    padding: 80px 16px;
  }

  .story-layout,
  .contact-layout {
    grid-template-columns: minmax(0,1fr);
  }

  .highlight-grid,
  .cards {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .hero-content {
    padding-top: 16px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .section {
    padding: 70px 14px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .highlight-grid,
  .cards {
    grid-template-columns: minmax(0,1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
.section {
  min-height: 100dvh;  /* nuovo standard, preciso anche su mobile */
  display: flex;
  align-items: center;   /* centra verticalmente */
}

.section > .container {
  width: 100%;
}.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Titolo Eventi con glow festoso */
#eventi .section-title {
  position: relative;
  text-align: center;
  animation: glowPulse 2.8s infinite ease-in-out;
}

@keyframes glowPulse {
  0% { text-shadow: 0 0 0px #f2d56b; }
  50% { text-shadow: 0 0 18px #f2d56b66; }
  100% { text-shadow: 0 0 0px #f2d56b; }
}

/* Sparkles */
#eventi {
  position: relative;
  overflow: hidden;
}

#eventi::before,
#eventi::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
  background-image:
    radial-gradient(circle, rgba(242,213,107,0.25) 1px, transparent 1px),
    radial-gradient(circle, rgba(242,213,107,0.12) 1px, transparent 1px);
  background-size: 70px 70px, 110px 110px;
  animation: sparkleMove 35s linear infinite;
  pointer-events: none;
  opacity: 0.35;
}

@keyframes sparkleMove {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-200px,-300px,0); }
}
#eventi .highlight-card {
  position: relative;
  overflow: hidden;
}

#eventi .highlight-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.18);
}

#eventi .highlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(242,213,107,0.07));
  opacity: 0;
  transition: opacity .3s ease;
}

#eventi .highlight-card:hover::after {
  opacity: 1;
}
/* ============================
   EVENTI – SFONDO ANIMATO
   ============================ */

.eventi-section {
  position: relative;
  overflow: hidden;
}

#eventiCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none; /* Non blocca clic */
  opacity: 0.45;
}

.eventi-section .container {
  position: relative;
  z-index: 5;
}

/* Migliora resa delle card sugli eventi */
.eventi-section .highlight-card {
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.85);
}

/* Pulsante prenotazione */
.eventi-section .btn.primary {
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
