/* ============================================
   PIZZERIA AVALON — Pagina Prenota (premium)
   ============================================ */

/* Grain SVG (solo CSS, nessun asset) */
.prenota-page {
  --prenota-grain: 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.95' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.prenota-page {
  position: relative;
  background-color: var(--color-crema);
  background-image:
    var(--prenota-grain),
    var(--prenota-grain),
    linear-gradient(var(--color-crema), var(--color-crema));
  background-size: 64px 64px, 128px 128px, auto;
  background-repeat: repeat, repeat, no-repeat;
  background-attachment: fixed, fixed, fixed;
  background-blend-mode: soft-light, overlay, normal;
  overflow-x: clip;
  padding-bottom: calc(4.25rem + env(safe-area-inset-bottom));
}

.prenota-page .page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
  background-color: transparent;
}

.prenota-page .footer {
  z-index: 1;
}

/* Lang switcher su hero scura */
.prenota-page .lang-switcher__toggle {
  background-color: var(--color-bg);
  box-shadow: var(--shadow-md);
}

/* -------- HERO PRENOTA (full-bleed fino al limite desktop) ----------- */
.prenota-hero {
  margin: 0;
  width: 100%;
}

.prenota-hero__content {
  position: relative;
  width: 100%;
  min-height: clamp(320px, 52svh, 480px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6) var(--space-5) var(--space-6);
  border-radius: 0;
}

.prenota-hero__content::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: calc(-1 * env(safe-area-inset-top, 0px));
  width: 100%;
  background-image: url('../assets/images/prenota-header.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 35%;
  filter: saturate(1.06) contrast(1.04);
  z-index: 0;
}

.prenota-hero__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: calc(-1 * env(safe-area-inset-top, 0px));
  z-index: 1;
  background:
    linear-gradient(
      105deg,
      rgba(26, 16, 8, 0.82) 0%,
      rgba(26, 16, 8, 0.45) 38%,
      rgba(26, 16, 8, 0.12) 62%,
      transparent 85%
    ),
    linear-gradient(
      to bottom,
      transparent 55%,
      rgba(26, 16, 8, 0.35) 88%,
      rgba(253, 246, 238, 0.4) 100%
    );
  pointer-events: none;
}

.prenota-hero__title {
  position: relative;
  z-index: 3;
  font-family: var(--font-heading);
  margin: 0 0 var(--space-5);
  line-height: 1;
  transform: translateY(-0.5rem);
}

.prenota-hero__title span {
  display: block;
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  color: var(--color-crema);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.prenota-hero__title em {
  display: block;
  width: max-content;
  max-width: 100%;
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 7.5vw, 3rem);
  font-weight: var(--weight-bold);
  font-style: italic;
  color: var(--color-red);
  line-height: 0.9;
  margin-top: 0;
  transform: translateY(-0.5rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.prenota-hero__title em::after {
  content: '';
  display: block;
  width: 100%;
  height: 4px;
  margin-top: var(--space-1);
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-red), rgba(177, 44, 22, 0.35));
}

/* -------- BOOKING (CTA principale) ----------- */
.prenota-book {
  position: relative;
  z-index: 2;
  margin: calc(-1 * var(--space-10)) var(--space-4) 0;
  padding: var(--space-5);
  background-color: var(--color-bg);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(45, 29, 29, 0.06);
  box-shadow: var(--shadow-lg);
}

.prenota-book__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.prenota-book__instructions {
  font-family: var(--font-heading2);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-lightBrown);
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

.prenota-book__highlight {
  color: var(--color-red);
  font-weight: var(--weight-bold);
}

.prenota-book__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  min-height: 3.25rem;
  white-space: nowrap;
  background-color: var(--color-red);
  color: var(--color-bg);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-xl);
  font-family: var(--font-heading2);
  font-size: clamp(1.05rem, 4vw, 1.25rem);
  font-weight: var(--weight-bold);
  letter-spacing: 0.02em;
  box-shadow: 0 10px 28px rgba(177, 44, 22, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background-color var(--transition-normal);
}

.prenota-book__cta::after {
  content: '→';
  margin-left: var(--space-1);
  font-weight: var(--weight-bold);
}

.prenota-book__cta svg {
  width: 1.75rem;
  height: 1.75rem;
}

.prenota-book__cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  background-color: #9a2412;
}

.prenota-book__cta:active {
  transform: translateY(0);
}

@media (min-width: 480px) {
  .prenota-book__body {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4) var(--space-5);
  }

  .prenota-book__instructions {
    flex: 1 1 12rem;
    min-width: 10rem;
  }

  .prenota-book__cta {
    flex: 0 1 auto;
    width: auto;
    min-width: 11rem;
  }
}

/* -------- QUALCHE DOMANDA ----------- */
.domande {
  position: relative;
  margin: var(--space-10) var(--space-4);
  padding: var(--space-8) var(--space-6);
  background-color: var(--color-crema);
  border: 1px solid rgba(90, 65, 60, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.domande::before,
.domande::after {
  content: '';
  position: absolute;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 104, 51, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.domande::before {
  top: -1.5rem;
  left: -1rem;
}

.domande::after {
  bottom: -1.5rem;
  right: -1rem;
}

.domande__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-family: var(--font-heading2);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  margin: 0 0 var(--space-6);
}

.domande__title::before,
.domande__title::after {
  content: '';
  flex: 0 0 1.5rem;
  height: 1px;
  background-color: rgba(177, 44, 22, 0.25);
}

.domande__azioni {
  display: flex;
  gap: var(--space-3);
  position: relative;
  z-index: 1;
}

.domande__btn {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 3rem;
  padding: var(--space-4) var(--space-3);
  border-radius: var(--radius-xl);
  font-family: var(--font-heading2);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  color: var(--color-bg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    filter var(--transition-normal);
}

.domande__btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.08);
}

.domande__btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.domande__btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.domande__btn--tel {
  background-color: var(--color-red);
}

.domande__btn--wa {
  background-color: var(--color-green);
}

/* -------- LOCATION ----------- */
.prenota-page .location {
  margin: 0 var(--space-4) var(--space-12);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--color-bg3);
  box-shadow: var(--shadow-lg);
}

.location__img-wrapper {
  position: relative;
  height: clamp(300px, 42vh, 400px);
}

.location__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.location__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(45, 29, 29, 0.15) 0%,
    transparent 45%,
    var(--color-bg3) 92%
  );
  z-index: var(--z-base);
}

.location__content {
  position: relative;
  margin-top: -15px;
  padding: 0 var(--space-6) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  z-index: var(--z-raised);
}

.location__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.location__icon {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--color-brown);
}

.location__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-brown);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.location__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: var(--weight-bold);
  color: var(--color-brown);
  line-height: 1.2;
}

.location__subtitle {
  font-size: var(--text-sm);
  color: color-mix(in srgb, var(--color-lightBrown) 60%, transparent);
  line-height: 1.6;
}

.location__btn {
  margin-top: var(--space-2);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: var(--color-red);
  color: var(--color-bg);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  align-self: flex-start;
  transition: background-color var(--transition-normal);
}

.location__btn:hover {
  background-color: var(--color-brown);
}

.location__btn svg {
  width: 1rem;
  height: 1rem;
}

/* -------- Responsive desktop ----------- */
@media (min-width: 1024px) {
  /* Hero edge-to-edge in alto: niente fascia crema sopra l'immagine */
  body.prenota-page {
    padding-top: 0;
    padding-bottom: 0;
  }

  .prenota-hero {
    max-width: var(--hero-max-width);
    width: calc(100% - 2 * var(--space-4));
    margin-inline: auto;
  }

  .prenota-hero__content {
    padding-top: calc(10px + var(--nav-height-desktop) + var(--space-6) + env(safe-area-inset-top, 0px));
    min-height: clamp(360px, 38vh, 460px);
    max-height: 480px;
    border-radius: var(--radius-xl);
  }

  .prenota-hero__content::before,
  .prenota-hero__overlay {
    top: 0;
    border-radius: inherit;
  }
}

@media (min-width: 768px) {
  .prenota-hero__content {
    min-height: max(420px, 50vh);
    padding-bottom: var(--space-10);
    padding-left: var(--space-10);
    padding-right: var(--space-10);
  }


  .prenota-book,
  .domande {
    max-width: 40rem;
    margin-inline: auto;
  }

  .prenota-book {
    margin-top: calc(-1 * var(--space-12));
  }

  .prenota-page .location {
    max-width: 40rem;
    margin-inline: auto;
  }
}

@media (max-width: 479px) {
  .domande__azioni {
    flex-direction: column;
  }
}

/* Footer condiviso: css/site-theme.css */
