/* ============================================
   FUOCO & FARINA — Pizzeria Trattoria Rosati
   Template A: Dark / Warm / Wood-fired
   Handcrafted. No templates. No frameworks.
   ============================================ */

:root {
  --bg-primary: #110E0A;
  --bg-secondary: #1A1510;
  --bg-tertiary: #15110D;
  --bg-panel: #1F1914;
  --accent-ember: #D4723C;
  --accent-wheat: #C8A96E;
  --accent-flame: #E85D2C;
  --accent-glow: rgba(212, 114, 60, 0.15);
  --text-primary: #F5EDE2;
  --text-secondary: #B8A99A;
  --text-muted: #7A6E64;
  --border: #2E241C;
  --glass-bg: rgba(26, 21, 16, 0.65);
  --glass-border: rgba(200, 169, 110, 0.08);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(212, 114, 60, 0.15);
  --shadow-glow-hover: 0 0 40px rgba(212, 114, 60, 0.25), 0 0 0 1px rgba(212, 114, 60, 0.12);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 250ms var(--ease-out-expo);
  --transition-normal: 450ms var(--ease-out-expo);
  --transition-slow: 700ms var(--ease-out-expo);

  /* Override shared */
  --accent-primary: var(--accent-ember);
}

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ---- Typography System ---- */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}

.section-header__label {
  color: var(--accent-wheat);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.3em;
}

.section-header__title {
  color: var(--text-primary);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.section-header__subtitle {
  color: var(--text-secondary);
}

/* ---- Navigation ---- */
.nav {
  background: transparent;
  padding: 1.25rem 0;
}

.nav.scrolled {
  background: rgba(17, 14, 10, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.nav__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-wheat);
  letter-spacing: 0.08em;
}

.nav__links a {
  color: rgba(240, 230, 216, 0.7);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  font-weight: 400;
  transition: color var(--transition-fast);
}

.nav__links a:hover {
  color: var(--accent-wheat);
}

.nav__links a::after {
  background: var(--accent-wheat);
  height: 1px;
}

.nav__hamburger span {
  background: var(--text-primary);
}

.nav .btn--primary {
  padding: 0.6rem 1.6rem;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .nav__links {
    background: var(--bg-primary);
    border-left: 1px solid var(--border);
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-primary);
}

/* Layered radial glows — oven warmth from below */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 95%, rgba(212, 114, 60, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 35% 85%, rgba(232, 93, 44, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 65% 90%, rgba(200, 169, 110, 0.06) 0%, transparent 40%),
    radial-gradient(ellipse 100% 60% at 50% 100%, rgba(212, 114, 60, 0.08) 0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Wood-grain texture — finer, more deliberate */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      87deg,
      transparent,
      transparent 50px,
      rgba(200, 169, 110, 0.018) 50px,
      rgba(200, 169, 110, 0.018) 51px
    ),
    repeating-linear-gradient(
      177deg,
      transparent,
      transparent 120px,
      rgba(200, 169, 110, 0.012) 120px,
      rgba(200, 169, 110, 0.012) 121px
    );
  pointer-events: none;
  z-index: 0;
}

/* Diagonal structural accent — like the drywall card */
.hero .hero__diagonal {
  position: absolute;
  top: -20%;
  right: -8%;
  width: 40%;
  height: 160%;
  background: rgba(200, 169, 110, 0.02);
  transform: rotate(-12deg);
  transform-origin: center center;
  z-index: 0;
  pointer-events: none;
}

.hero .hero__diagonal::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(200, 169, 110, 0.15) 30%,
    rgba(212, 114, 60, 0.2) 50%,
    rgba(200, 169, 110, 0.15) 70%,
    transparent 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}

.hero__label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-wheat);
  letter-spacing: 0.4em;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 0.9;
  margin-bottom: 1.5rem;
  text-shadow:
    0 0 80px rgba(212, 114, 60, 0.2),
    0 2px 20px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.hero__year {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.3em;
  margin-bottom: 3rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Buttons (elevated) ---- */
.btn {
  transition: all var(--transition-normal);
  letter-spacing: 0.04em;
}

.btn--primary {
  background: var(--accent-ember);
  box-shadow: 0 4px 20px rgba(212, 114, 60, 0.25);
}

.btn--primary:hover {
  background: var(--accent-flame);
  box-shadow: 0 6px 30px rgba(232, 93, 44, 0.35);
  transform: translateY(-3px);
}

.btn--outline {
  border-color: rgba(200, 169, 110, 0.4);
  color: var(--accent-wheat);
  border-width: 1px;
}

.btn--outline:hover {
  background: rgba(200, 169, 110, 0.1);
  border-color: var(--accent-wheat);
  color: var(--accent-wheat);
  transform: translateY(-3px);
}

/* ---- Ember Particles ---- */
.hero__embers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.ember {
  position: absolute;
  bottom: 5%;
  border-radius: 50%;
  background: var(--accent-ember);
  animation: ember-float linear infinite;
  opacity: 0;
}

.ember:nth-child(1)  { left: 10%; width: 3px; height: 3px; animation-duration: 7s; animation-delay: 0s;   box-shadow: 0 0 6px 2px rgba(212, 114, 60, 0.5); }
.ember:nth-child(2)  { left: 22%; width: 2px; height: 2px; animation-duration: 9s; animation-delay: 1.2s; box-shadow: 0 0 4px 1px rgba(212, 114, 60, 0.4); }
.ember:nth-child(3)  { left: 38%; width: 4px; height: 4px; animation-duration: 6s; animation-delay: 0.5s; box-shadow: 0 0 8px 3px rgba(212, 114, 60, 0.6); }
.ember:nth-child(4)  { left: 52%; width: 2px; height: 2px; animation-duration: 10s; animation-delay: 2s;  box-shadow: 0 0 4px 1px rgba(232, 93, 44, 0.4); }
.ember:nth-child(5)  { left: 65%; width: 3px; height: 3px; animation-duration: 7.5s; animation-delay: 3s; box-shadow: 0 0 6px 2px rgba(212, 114, 60, 0.5); }
.ember:nth-child(6)  { left: 78%; width: 2px; height: 2px; animation-duration: 8.5s; animation-delay: 1s; box-shadow: 0 0 4px 1px rgba(200, 169, 110, 0.4); }
.ember:nth-child(7)  { left: 88%; width: 3px; height: 3px; animation-duration: 11s; animation-delay: 4s;  box-shadow: 0 0 5px 2px rgba(212, 114, 60, 0.3); }
.ember:nth-child(8)  { left: 45%; width: 2px; height: 2px; animation-duration: 8s; animation-delay: 2.5s; box-shadow: 0 0 4px 1px rgba(232, 93, 44, 0.3); }
.ember:nth-child(9)  { left: 5%;  width: 2px; height: 2px; animation-duration: 12s; animation-delay: 5s;  box-shadow: 0 0 3px 1px rgba(200, 169, 110, 0.3); }
.ember:nth-child(10) { left: 95%; width: 3px; height: 3px; animation-duration: 9s; animation-delay: 0.8s; box-shadow: 0 0 5px 2px rgba(212, 114, 60, 0.4); }

@keyframes ember-float {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  8% { opacity: 0.9; }
  30% {
    transform: translateY(-25vh) translateX(8px);
    opacity: 0.7;
  }
  60% {
    transform: translateY(-50vh) translateX(-5px);
    opacity: 0.4;
  }
  100% {
    transform: translateY(-85vh) translateX(15px) scale(0.2);
    opacity: 0;
  }
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll-hint span {
  display: block;
  width: 18px;
  height: 28px;
  border: 1px solid rgba(200, 169, 110, 0.3);
  border-radius: 9px;
  position: relative;
}

.hero__scroll-hint span::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 5px;
  background: var(--accent-wheat);
  border-radius: 1px;
  opacity: 0.6;
  animation: scroll-hint 2s var(--ease-out-expo) infinite;
}

@keyframes scroll-hint {
  0%, 100% { top: 5px; opacity: 0.6; }
  50% { top: 14px; opacity: 0.1; }
}

/* ============================================
   STORIA (Our Story)
   ============================================ */
.storia {
  background: var(--bg-primary);
  position: relative;
}

/* Diagonal panel — asymmetric background element */
.storia::before {
  content: '';
  position: absolute;
  top: -5%;
  left: -5%;
  width: 45%;
  height: 110%;
  background: var(--bg-secondary);
  clip-path: polygon(0 0, 100% 5%, 85% 100%, 0 95%);
  z-index: 0;
}

.storia .container {
  position: relative;
  z-index: 1;
}

.storia__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.storia__text {
  padding-left: 1rem;
  border-left: 1px solid rgba(200, 169, 110, 0.15);
}

.storia__text .section-header__label {
  margin-bottom: 1rem;
  display: block;
}

.storia__text .section-header__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 2rem;
  line-height: 1.3;
}

.storia__text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.9;
  font-size: 0.95rem;
  font-weight: 300;
}

.storia__signature {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.storia__signature::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent-wheat);
  opacity: 0.5;
}

.storia__signature-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent-wheat);
  letter-spacing: 0.03em;
}

.storia__image-frame {
  position: relative;
}

.storia__image-placeholder {
  aspect-ratio: 3/4;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: var(--shadow-lg);
}

.storia__image-placeholder svg {
  fill: var(--accent-ember);
  opacity: 0.3;
}

/* Corner brackets — refined */
.storia__image-frame::before,
.storia__image-frame::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: rgba(200, 169, 110, 0.25);
  z-index: 2;
}

.storia__image-frame::before {
  top: -8px;
  left: -8px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.storia__image-frame::after {
  bottom: -8px;
  right: -8px;
  border-bottom: 1px solid;
  border-right: 1px solid;
}

@media (max-width: 767px) {
  .storia::before { display: none; }

  .storia__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .storia__text {
    padding-left: 0;
    border-left: none;
  }

  .storia__image-frame {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* ============================================
   MENU
   ============================================ */
.menu {
  position: relative;
  background: var(--bg-secondary);
  overflow: hidden;
}

/* Diagonal texture panel */
.menu::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50%;
  height: 120%;
  background: rgba(200, 169, 110, 0.015);
  transform: rotate(-8deg);
  transform-origin: top right;
  pointer-events: none;
}

.menu::after {
  content: '';
  position: absolute;
  top: -10%;
  right: 35%;
  width: 1px;
  height: 120%;
  background: linear-gradient(180deg, transparent 0%, rgba(200, 169, 110, 0.08) 30%, rgba(200, 169, 110, 0.08) 70%, transparent 100%);
  transform: rotate(-8deg);
  transform-origin: top right;
  pointer-events: none;
}

.menu .container {
  position: relative;
  z-index: 1;
}

.menu__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.menu__card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  padding: 2rem 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.menu__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow-hover);
  border-color: rgba(212, 114, 60, 0.15);
}

/* Left accent bar */
.menu__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-ember) 0%, rgba(212, 114, 60, 0.2) 100%);
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.menu__card:hover::before {
  opacity: 1;
}

/* Diagonal corner accent */
.menu__card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, transparent 50%, rgba(212, 114, 60, 0.04) 50%);
  pointer-events: none;
}

.menu__card-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 1.25rem;
}

.menu__card-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--accent-ember);
  opacity: 0.7;
}

.menu__card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.menu__card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  font-weight: 300;
}

.menu__items {
  list-style: none;
}

.menu__items li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(200, 169, 110, 0.06);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.menu__items li:last-child {
  border-bottom: none;
}

.menu__items li:hover {
  color: var(--accent-wheat);
}

.menu__price {
  font-weight: 600;
  color: var(--accent-wheat);
  white-space: nowrap;
  margin-left: 1rem;
  font-size: 0.92rem;
  opacity: 0.8;
}

.menu__note {
  margin-top: 2.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.03em;
}

@media (max-width: 767px) {
  .menu__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   DOG FRIENDLY BANNER
   ============================================ */
.dog-friendly {
  background: rgba(200, 169, 110, 0.03);
  padding: 1rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.dog-friendly svg {
  fill: var(--accent-wheat);
  opacity: 0.6;
  flex-shrink: 0;
}

.dog-friendly span {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--accent-wheat);
  opacity: 0.7;
  letter-spacing: 0.03em;
}

/* ============================================
   INFO SECTION
   ============================================ */
.info-section {
  background: var(--bg-primary);
  position: relative;
}

.info-grid__icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212, 114, 60, 0.06);
  border: 1px solid rgba(212, 114, 60, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: all var(--transition-normal);
}

.info-grid__item:hover .info-grid__icon-wrap {
  background: rgba(212, 114, 60, 0.12);
  box-shadow: 0 0 20px rgba(212, 114, 60, 0.1);
}

.info-grid__icon-wrap svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-ember);
  opacity: 0.7;
}

.info-grid__title {
  color: var(--text-primary);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.info-grid__text {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 300;
}

.info-grid__text a {
  color: var(--accent-wheat);
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.info-grid__text a:hover {
  opacity: 1;
}

.phone-link {
  color: var(--accent-wheat);
  font-size: 1rem;
}

/* ============================================
   REVIEWS
   ============================================ */
.recensioni {
  background: var(--bg-secondary);
  position: relative;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review__card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  padding: 2rem 1.75rem;
  position: relative;
  transition: all var(--transition-normal);
}

.review__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(200, 169, 110, 0.12);
}

/* Quotation mark accent */
.review__card::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--accent-ember);
  opacity: 0.15;
  line-height: 1;
}

.review__stars {
  font-size: 0.9rem;
  color: var(--accent-wheat);
  margin-bottom: 1rem;
  letter-spacing: 0.15em;
  opacity: 0.7;
}

.review__text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  opacity: 0.9;
}

.review__author {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .reviews__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 6rem 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(212, 114, 60, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.cta__text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer__text {
  color: var(--text-muted);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.footer__social a {
  background: rgba(200, 169, 110, 0.06);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-normal);
}

.footer__social a:hover {
  background: var(--accent-ember);
  border-color: var(--accent-ember);
  box-shadow: 0 0 15px rgba(212, 114, 60, 0.3);
}

.footer__social svg {
  fill: var(--text-muted);
}

.footer__social a:hover svg {
  fill: var(--text-primary);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  background: rgba(212, 114, 60, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 114, 60, 0.3);
  box-shadow: 0 4px 15px rgba(212, 114, 60, 0.2);
}

.back-to-top:hover {
  background: var(--accent-flame);
  box-shadow: 0 4px 25px rgba(232, 93, 44, 0.4);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 768px) and (max-width: 1023px) {
  .storia__grid {
    gap: 3rem;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 3.2rem;
  }

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

  .hero__actions .btn {
    width: 100%;
    max-width: 260px;
  }

  .section {
    padding: 4rem 0;
  }

  .menu__card {
    padding: 1.5rem;
  }
}

/* ============================================
   THE 1% — Film Grain + Ambient Life
   ============================================ */

/* Cinematic film grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Ambient hero glow — breathing oven warmth */
.hero__content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212, 114, 60, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: ambient-breathe 6s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes ambient-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

/* Menu items — subtle left-glow on hover */
.menu__items li {
  position: relative;
  padding-left: 0;
  transition: padding-left var(--transition-fast), color var(--transition-fast);
}

.menu__items li::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-ember);
  opacity: 0;
  transition: opacity var(--transition-fast);
  box-shadow: 0 0 6px rgba(212, 114, 60, 0.5);
}

.menu__items li:hover {
  padding-left: 8px;
}

.menu__items li:hover::before {
  opacity: 1;
}

/* Review cards — warm glow line at bottom on hover */
.review__card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-ember), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.review__card:hover::after {
  opacity: 0.5;
}

/* Storia image frame — subtle ambient glow */
.storia__image-placeholder {
  position: relative;
}

.storia__image-placeholder::after {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(212, 114, 60, 0.05) 0%, transparent 70%);
  pointer-events: none;
  animation: ambient-breathe 8s ease-in-out infinite;
  z-index: -1;
}

/* Buttons — active press feedback */
.btn:active {
  transform: translateY(0) scale(0.98);
  transition: all 80ms ease;
}

/* Links — smooth underline grow */
.info-grid__text a,
.contatti__map-link {
  position: relative;
}

.info-grid__text a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--transition-normal);
}

.info-grid__text a:hover::after {
  width: 100%;
}

/* Smooth section transitions — gradient fades between sections */
.storia::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(180deg, transparent, var(--bg-secondary));
  pointer-events: none;
  z-index: 0;
}

/* CTA button — warm shimmer on hover */
.cta-section .btn--primary {
  position: relative;
  overflow: hidden;
}

.cta-section .btn--primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: rotate(25deg);
  transition: left 0.6s var(--ease-out-expo);
  pointer-events: none;
}

.cta-section .btn--primary:hover::after {
  left: 120%;
}

/* ============================================
   REVIEW PLATFORM CARDS (linkati a fonti reali)
   ============================================ */
.review__platform {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-wheat);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.review__link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--accent-ember);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color var(--transition-fast);
}

.review__link:hover {
  color: var(--accent-flame);
}

/* ============================================
   FOOTER (multi-colonna + legale)
   ============================================ */
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer__col p {
  margin-bottom: 0.4rem;
}

.footer__col a {
  color: var(--accent-wheat);
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.footer__col a:hover {
  opacity: 1;
}

.footer__legal {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-muted);
  opacity: 0.7;
}

@media (max-width: 767px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ============================================
   COOKIE BANNER (Garante 10/06/2021 n. 231)
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(17, 14, 10, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--accent-wheat);
  padding: 1.25rem 1rem;
  z-index: 10000;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.cookie-banner__text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.cookie-banner__text a {
  color: var(--accent-wheat);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .cookie-banner__inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions .btn {
    flex: 1;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .ember { animation: none; }
  .hero__scroll-hint span::before { animation: none; }
  .hero__content::before { animation: none; }
  .storia__image-placeholder::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  body::after { display: none; }
}
