/* ============================================
   NAPOLETANA — Pizzeria Lo Sfizio
   Template C: Warm · Rustic · Village
   Playfair Display + Lora, terracotta/olive tones
   Brick texture patterns, traditional Italian feel
   ============================================ */

/* ---- Custom Properties ---- */
:root {
  --bg-primary: #FAF6F0;
  --bg-secondary: #F2EBE0;
  --bg-panel: #FFFFFF;
  --bg-dark: #2C2018;
  --accent-terracotta: #C4704A;
  --accent-terracotta-light: #D4845E;
  --accent-terracotta-pale: rgba(196, 112, 74, 0.08);
  --accent-olive: #6B7F4E;
  --accent-olive-light: #7E9460;
  --accent-olive-pale: rgba(107, 127, 78, 0.08);
  --text-primary: #2C2018;
  --text-secondary: #5C4E42;
  --text-muted: #8C7E72;
  --border: #DDD5CA;
  --border-light: #EBE5DB;

  --shadow-sm: 0 1px 4px rgba(44, 32, 24, 0.06);
  --shadow-md: 0 4px 16px rgba(44, 32, 24, 0.1);
  --shadow-lg: 0 8px 32px rgba(44, 32, 24, 0.12);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 250ms var(--ease-out-expo);
  --transition-normal: 400ms var(--ease-out-expo);

  --accent-primary: var(--accent-terracotta);
}

/* ---- Base ---- */
body {
  font-family: 'Lora', 'Georgia', serif;
  font-weight: 400;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
}

::selection {
  background: var(--accent-terracotta);
  color: #FFFFFF;
}

/* ---- Brick Texture Utility ---- */
.brick-texture {
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 48px,
      rgba(196, 112, 74, 0.04) 48px,
      rgba(196, 112, 74, 0.04) 50px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 24px,
      rgba(196, 112, 74, 0.03) 24px,
      rgba(196, 112, 74, 0.03) 26px
    );
}

/* ---- Skip Link ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent-terracotta);
  color: #FFFFFF;
  border-radius: 0 0 4px 4px;
  z-index: 10000;
  font-size: 0.88rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* ---- Focus Visible ---- */
*:focus-visible {
  outline: 2px solid var(--accent-terracotta);
  outline-offset: 3px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  background: rgba(250, 246, 240, 0.95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-terracotta);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__logo-icon {
  color: var(--accent-terracotta);
  font-size: 1.2rem;
}

.nav__links a {
  color: var(--text-secondary);
  font-family: 'Lora', serif;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.nav__links a::after {
  background: var(--accent-terracotta);
}

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

.nav .btn--primary {
  background: var(--accent-terracotta);
  color: #FFFFFF;
  font-weight: 600;
}

.nav .btn--primary:hover {
  background: var(--accent-terracotta-light);
}

.nav .btn--primary::after {
  display: none;
}

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

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  padding: 8rem 0 5rem;
  overflow: hidden;
}

/* Brick texture overlay */
.hero__brick {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 58px,
      rgba(196, 112, 74, 0.06) 58px,
      rgba(196, 112, 74, 0.06) 60px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 28px,
      rgba(196, 112, 74, 0.04) 28px,
      rgba(196, 112, 74, 0.04) 30px
    );
  opacity: 0.7;
}

.hero__warmglow {
  position: absolute;
  top: 30%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(196, 112, 74, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  background: rgba(196, 112, 74, 0.15);
  color: var(--accent-terracotta-light);
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 100px;
  border: 1px solid rgba(196, 112, 74, 0.25);
  margin-bottom: 2rem;
}

.hero__title {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  color: #FAF6F0;
}

.hero__subtitle {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(250, 246, 240, 0.7);
  margin-bottom: 2.5rem;
  max-width: 560px;
  font-weight: 400;
}

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

/* Hero button overrides for dark background */
.hero .btn--primary {
  background: var(--accent-terracotta);
  color: #FFFFFF;
}

.hero .btn--primary:hover {
  background: var(--accent-terracotta-light);
}

.hero .btn--outline {
  border-color: rgba(250, 246, 240, 0.3);
  color: #FAF6F0;
}

.hero .btn--outline:hover {
  border-color: var(--accent-terracotta);
  color: var(--accent-terracotta-light);
  background: rgba(196, 112, 74, 0.1);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  transition: all var(--transition-normal);
}

.btn--primary {
  background: var(--accent-terracotta);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(196, 112, 74, 0.25);
}

.btn--primary:hover {
  background: var(--accent-terracotta-light);
  box-shadow: 0 4px 20px rgba(196, 112, 74, 0.35);
  transform: translateY(-2px);
}

.btn--outline {
  border-color: var(--border);
  color: var(--text-primary);
}

.btn--outline:hover {
  border-color: var(--accent-terracotta);
  color: var(--accent-terracotta);
  background: var(--accent-terracotta-pale);
}

/* ============================================
   SECTION HEADER OVERRIDES
   ============================================ */
.section-header__label {
  color: var(--accent-olive);
  font-family: 'Lora', serif;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.section-header__title {
  color: var(--text-primary);
  font-family: 'Playfair Display', serif;
}

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

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

/* Decorative top border */
.menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-olive), var(--accent-terracotta));
}

.menu__grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.menu__item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-fast);
}

.menu__item:first-child {
  border-top: 1px solid var(--border);
}

.menu__item:hover {
  background: var(--accent-terracotta-pale);
  padding-left: 1rem;
  padding-right: 1rem;
  margin-left: -1rem;
  margin-right: -1rem;
  border-radius: 4px;
}

.menu__item-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.menu__item-header h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  white-space: nowrap;
}

.menu__dots {
  flex: 1;
  border-bottom: 2px dotted var(--border);
  min-width: 20px;
  margin-bottom: 0.3em;
}

.menu__price {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-terracotta);
  white-space: nowrap;
}

.menu__item p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-style: italic;
}

.menu__item--special {
  background: var(--accent-terracotta-pale);
  padding: 1.5rem 1rem;
  margin-left: -1rem;
  margin-right: -1rem;
  border-radius: 6px;
  border: 1px solid rgba(196, 112, 74, 0.2);
  border-bottom: 1px solid rgba(196, 112, 74, 0.2);
}

.menu__badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: var(--accent-terracotta);
  color: #FFFFFF;
  font-family: 'Lora', serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 100px;
}

/* ============================================
   TRANCI & ASPORTO
   ============================================ */
.tranci {
  background: var(--bg-primary);
}

.tranci__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.tranci__desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.tranci__price-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tranci__price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.tranci__price-row:last-child {
  border-bottom: none;
}

.tranci__price {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--accent-terracotta);
}

.tranci__cta-panel {
  background: var(--bg-dark);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Brick texture on CTA panel */
.tranci__cta-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 48px,
      rgba(196, 112, 74, 0.06) 48px,
      rgba(196, 112, 74, 0.06) 50px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 24px,
      rgba(196, 112, 74, 0.04) 24px,
      rgba(196, 112, 74, 0.04) 26px
    );
  pointer-events: none;
}

.tranci__cta-icon {
  color: var(--accent-terracotta);
  margin-bottom: 1.25rem;
  position: relative;
}

.tranci__cta-panel h3 {
  font-size: 1.2rem;
  color: #FAF6F0;
  margin-bottom: 0.75rem;
  position: relative;
}

.tranci__cta-panel p {
  font-size: 0.92rem;
  color: rgba(250, 246, 240, 0.6);
  margin-bottom: 1.5rem;
  position: relative;
}

.tranci__cta-panel .btn {
  position: relative;
}

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

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

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

.ingredienti__card {
  padding: 2rem 1.5rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  text-align: center;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.ingredienti__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-olive);
}

.ingredienti__icon {
  display: block;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.ingredienti__card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.ingredienti__card p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-muted);
}

@media (max-width: 1023px) {
  .ingredienti__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ============================================
   ORARI
   ============================================ */
.orari {
  background: var(--bg-primary);
}

.orari__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.orari__table {
  margin-top: 2rem;
}

.orari__row {
  display: flex;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--accent-olive);
  border-radius: 8px;
  background: var(--accent-olive-pale);
}

.orari__row--open .orari__day {
  font-weight: 700;
  color: var(--accent-olive);
}

.orari__day {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.orari__time {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-terracotta);
  font-variant-numeric: tabular-nums;
}

.orari__note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--accent-terracotta-pale);
  border-radius: 6px;
  border: 1px solid rgba(196, 112, 74, 0.15);
  color: var(--accent-terracotta);
}

.orari__note svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.orari__note p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Map placeholder */
.orari__map-placeholder {
  background: var(--bg-dark);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

/* Brick texture overlay on map */
.orari__map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 48px,
      rgba(196, 112, 74, 0.05) 48px,
      rgba(196, 112, 74, 0.05) 50px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 24px,
      rgba(196, 112, 74, 0.03) 24px,
      rgba(196, 112, 74, 0.03) 26px
    );
  pointer-events: none;
}

.orari__map-placeholder svg {
  fill: var(--accent-terracotta);
  position: relative;
}

.orari__map-placeholder strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #FAF6F0;
  position: relative;
}

.orari__map-placeholder span {
  font-size: 0.88rem;
  color: rgba(250, 246, 240, 0.6);
  position: relative;
}

.orari__map-placeholder .btn {
  margin-top: 0.75rem;
  border-color: rgba(250, 246, 240, 0.25);
  color: #FAF6F0;
  position: relative;
}

.orari__map-placeholder .btn:hover {
  border-color: var(--accent-terracotta);
  color: var(--accent-terracotta-light);
  background: rgba(196, 112, 74, 0.1);
}

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

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

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

.recensioni__card {
  padding: 2rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
}

/* Olive green left border accent */
.recensioni__card::before {
  content: '';
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 0;
  width: 3px;
  background: var(--accent-olive);
  border-radius: 0 2px 2px 0;
}

.recensioni__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.recensioni__stars {
  color: var(--accent-terracotta);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.recensioni__card p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.recensioni__card cite {
  font-size: 0.85rem;
  color: var(--accent-olive);
  font-weight: 600;
  font-style: normal;
}

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

@media (min-width: 768px) and (max-width: 1023px) {
  .recensioni__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   CONTATTI
   ============================================ */
.contatti {
  background: var(--bg-primary);
  position: relative;
}

.info-grid__icon {
  fill: var(--accent-terracotta);
}

.info-grid__title {
  color: var(--text-primary);
  font-family: 'Playfair Display', serif;
}

.info-grid__text {
  color: var(--text-secondary);
}

.info-grid__text a {
  color: var(--accent-terracotta);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.info-grid__text a:hover {
  color: var(--accent-terracotta-light);
}

.contatti__cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-dark);
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
}

/* Brick texture in footer */
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 58px,
      rgba(196, 112, 74, 0.04) 58px,
      rgba(196, 112, 74, 0.04) 60px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 28px,
      rgba(196, 112, 74, 0.03) 28px,
      rgba(196, 112, 74, 0.03) 30px
    );
  pointer-events: none;
}

.footer__inner {
  position: relative;
}

.footer__text {
  color: rgba(250, 246, 240, 0.5);
  font-size: 0.85rem;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  background: var(--accent-terracotta);
  color: #FFFFFF;
  box-shadow: 0 2px 12px rgba(196, 112, 74, 0.3);
}

.back-to-top:hover {
  background: var(--accent-terracotta-light);
  box-shadow: 0 4px 20px rgba(196, 112, 74, 0.45);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
  .hero {
    min-height: auto;
    padding: 7rem 0 4rem;
  }

  .hero__title {
    font-size: 2.4rem;
  }

  .hero__actions {
    flex-direction: column;
  }

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

  .section {
    padding: 4rem 0;
  }

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

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

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .menu__item,
  .ingredienti__card,
  .recensioni__card {
    transition: none;
  }
}


/* ============================================
   COMPLIANCE BASELINE v1.2
   Footer multi-colonna + Cookie banner Garante 2021
   Aggiunto automaticamente da tools/inject-compliance.sh
   ============================================ */
.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 {
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.footer__col a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer__legal {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  font-style: italic;
  opacity: 0.6;
}

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

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 20, 20, 0.96);
  color: #f5f5f5;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 2px solid currentColor;
  padding: 1.25rem 1rem;
  z-index: 10000;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.3);
}

.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;
  margin: 0;
}

.cookie-banner__text a {
  color: inherit;
  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;
  }
}
