/* ================================================================
   LA TRATTORIA – Selezione / Empfehlungen des Hauses
   ================================================================
   Startseiten-Sektion: Empfehlungen des Hauses
   Nutzt --lt-* Variablen aus custom.css.
   Alle Klassen mit lt-selezione- Prefix.
   ================================================================ */

/* ─── SECTION CONTAINER ─── */
/* width:100% nötig weil Divi's flex-section align-items:center
   den Container sonst auf content-width schrumpft */
.lt-selezione {
  width: 100%;
  background: var(--lt-bg-warm);
  border-top: 1px solid var(--lt-line);
  border-bottom: 1px solid var(--lt-line);
  padding: 7rem 3rem 8rem;
  position: relative;
  overflow: hidden;
}

/* ─── LIQUID GOLD SVG BACKGROUND ─── */
.lt-selezione-liquid {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  will-change: transform;
  contain: strict;
}

.lt-selezione-liquid svg {
  position: absolute;
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
  opacity: 0.6;
}

/* ─── FILM GRAIN OVERLAY ─── */
.lt-selezione-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(201,169,110,0.04) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(201,169,110,0.03) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(201,169,110,0.02) 1px, transparent 1px);
  background-size: 7px 7px, 11px 11px, 5px 5px;
}

/* ─── DECORATIVE CORNER ORNAMENTS ─── */
.lt-selezione-ornament {
  position: absolute;
  width: 80px;
  height: 80px;
  pointer-events: none;
  z-index: 2;
}

.lt-selezione-ornament::before,
.lt-selezione-ornament::after {
  content: '';
  position: absolute;
  background: var(--lt-gold);
  opacity: 0.25;
}

.lt-selezione-ornament.top-left {
  top: 2.5rem;
  left: 3rem;
}

.lt-selezione-ornament.top-left::before {
  top: 0; left: 0;
  width: 60px; height: 1.5px;
}

.lt-selezione-ornament.top-left::after {
  top: 0; left: 0;
  width: 1.5px; height: 60px;
  background: var(--lt-gold);
  opacity: 0.2;
}

.lt-selezione-ornament.bottom-right {
  bottom: 2.5rem;
  right: 3rem;
}

.lt-selezione-ornament.bottom-right::before {
  bottom: 0; right: 0;
  width: 60px; height: 1.5px;
  background: var(--lt-gold);
  opacity: 0.2;
}

.lt-selezione-ornament.bottom-right::after {
  bottom: 0; right: 0;
  width: 1.5px; height: 60px;
  background: var(--lt-gold);
  opacity: 0.2;
}

/* ─── CENTER DIAMOND ─── */
.lt-selezione-diamond {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--lt-gold);
  transform: rotate(45deg);
  margin: 1.5rem auto 0;
  position: relative;
  z-index: 2;
}

.lt-selezione-diamond::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--lt-gold);
  opacity: 0.3;
}

/* ─── GHOST TEXT ─── */
.lt-selezione-ghost {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--lt-font-display);
  font-size: clamp(5rem, 14vw, 13rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(201,169,110,0.04);
  -webkit-text-stroke: 1.5px rgba(201,169,110,0.08);
  white-space: nowrap;
  pointer-events: none;
  animation: lt-ghostDrift 25s ease-in-out infinite;
  z-index: 0;
  user-select: none;
}

@keyframes lt-ghostDrift {
  0%, 100% { transform: translate(-50%, -50%) translateX(0); }
  50% { transform: translate(-50%, -50%) translateX(50px); }
}

/* ─── INNER CONTAINER ─── */
.lt-selezione-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.lt-selezione-header {
  text-align: center;
  margin-bottom: 5rem;
}

/* ─── FEATURED DISH (BIG HERO CARD) ─── */
.lt-selezione-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 2rem;
  border: 1px solid var(--lt-line);
  transition: border-color 0.6s;
  background: var(--lt-bg-card);
}

.lt-selezione-featured:hover {
  border-color: var(--lt-gold-dim);
}

.lt-selezione-featured-img {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  background: linear-gradient(135deg, #1f1a14 0%, #2a2218 40%, #1f1a14 100%);
}

/* Decorative placeholder when image doesn't load */
.lt-selezione-featured-img::before {
  content: '01';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--lt-font-display);
  font-size: 8rem;
  font-weight: 300;
  color: rgba(201,169,110,0.06);
  z-index: 0;
  pointer-events: none;
}

.lt-selezione-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.1) brightness(0.85) contrast(1.1);
  transition: transform 1.5s var(--lt-ease-expo);
  position: relative;
  z-index: 1;
}

.lt-selezione-featured:hover .lt-selezione-featured-img img {
  transform: scale(1.05);
}

.lt-selezione-featured-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, var(--lt-bg-card) 100%);
  pointer-events: none;
  z-index: 2;
}

.lt-selezione-featured-body {
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

/* ─── NUMBERING ─── */
.lt-selezione-num {
  font-family: var(--lt-font-display);
  font-size: 5rem;
  font-weight: 300;
  color: rgba(201,169,110,0.1);
  line-height: 1;
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  transition: color 0.6s;
}

/* ─── CATEGORY BADGE ─── */
.lt-selezione-cat-badge {
  display: inline-block;
  font-family: var(--lt-font-body);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--lt-gold);
  border: 1px solid var(--lt-gold-dim);
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
  align-self: flex-start;
  position: relative;
  z-index: 1;
}

/* ─── DISH NAME ─── */
.lt-selezione-dish-name {
  font-family: var(--lt-font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  color: var(--lt-cream);
  line-height: 1.2;
  margin-bottom: 0.3rem;
  position: relative;
  z-index: 1;
}

.lt-selezione-dish-name em {
  font-style: italic;
  color: var(--lt-gold);
}

/* Stern wird per CSS gerendert – HTML-Inhalt versteckt,
   damit kein Font-Fallback-Problem mit ★ entsteht */
.lt-selezione-star {
  color: var(--lt-gold);
  font-size: 0;
  margin-left: 0.3rem;
  vertical-align: super;
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  background: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* ─── DISH SUBTITLE ─── */
.lt-selezione-dish-sub {
  font-family: var(--lt-font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--lt-gold-dim);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

/* ─── DISH DESCRIPTION ─── */
.lt-selezione-dish-desc {
  color: var(--lt-cream-muted);
  font-family: var(--lt-font-body);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

/* ─── DISH PRICE ─── */
.lt-selezione-dish-price {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  position: relative;
  z-index: 1;
}

.lt-selezione-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(201,169,110,0.25);
  height: 0;
  position: relative;
  top: -0.25rem;
}

.lt-selezione-price-val {
  font-family: var(--lt-font-display);
  font-size: 1.5rem;
  color: var(--lt-gold);
  font-weight: 400;
}

.lt-selezione-price-label {
  font-family: var(--lt-font-body);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lt-text-muted);
}

/* ─── THREE SMALLER CARDS WITH HOVER IMAGE REVEAL ─── */
.lt-selezione-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.lt-selezione-card {
  padding: 2.5rem 2rem;
  border: 1px solid var(--lt-line);
  position: relative;
  overflow: hidden;
  transition: all 0.6s var(--lt-ease-expo);
  background: var(--lt-bg-card);
}

.lt-selezione-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.2) contrast(1.2) sepia(0.3);
  opacity: 0;
  transition: opacity 0.8s var(--lt-ease-expo), transform 4s var(--lt-ease-expo);
  transform: scale(1.15);
  z-index: 0;
}

.lt-selezione-card:hover .lt-selezione-card-bg {
  opacity: 1;
  transform: scale(1.0);
}

.lt-selezione-card-content {
  position: relative;
  z-index: 1;
}

/* Gold bottom line */
.lt-selezione-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lt-gold), var(--lt-gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--lt-ease-expo);
  z-index: 2;
}

.lt-selezione-card:hover {
  border-color: var(--lt-gold-dim);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.lt-selezione-card:hover::after {
  transform: scaleX(1);
}

.lt-selezione-card:hover .lt-selezione-num {
  color: rgba(201,169,110,0.25);
}

.lt-selezione-card .lt-selezione-num {
  font-size: 3.5rem;
  top: 1.2rem;
  right: 1.5rem;
}

.lt-selezione-card .lt-selezione-dish-name {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.lt-selezione-card .lt-selezione-dish-sub {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.lt-selezione-card .lt-selezione-dish-desc {
  font-size: 0.85rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.lt-selezione-card .lt-selezione-price-val {
  font-size: 1.2rem;
}

/* ─── CTA BUTTON ─── */
.lt-selezione-cta-wrap {
  text-align: center;
  margin-top: 4.5rem;
}

.lt-selezione-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 3rem;
  border: 1px solid var(--lt-gold);
  color: var(--lt-gold);
  text-decoration: none;
  font-family: var(--lt-font-body);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: all 0.6s var(--lt-ease-expo);
  position: relative;
  overflow: hidden;
}

.lt-selezione-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--lt-gold);
  transform: translateY(100%);
  transition: transform 0.5s var(--lt-ease-expo);
}

.lt-selezione-cta:hover::before {
  transform: translateY(0);
}

.lt-selezione-cta span {
  position: relative;
  z-index: 1;
  transition: color 0.5s;
}

.lt-selezione-cta:hover span {
  color: var(--lt-bg);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 980px) {
  .lt-selezione {
    padding: 5rem 1.5rem 6rem;
  }

  .lt-selezione-featured {
    grid-template-columns: 1fr;
  }

  .lt-selezione-featured-img {
    min-height: 280px;
  }

  .lt-selezione-featured-body {
    padding: 3rem 2rem;
  }

  .lt-selezione-trio {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .lt-selezione-ornament {
    display: none;
  }

  /* Liquid Gold SVG auf Mobil komplett ausblenden – feTurbulence Animation
     ist zu GPU-intensiv und verursacht Ruckeln auf Smartphones.
     Stattdessen reicht der warme Hintergrund + Grain-Overlay. */
  .lt-selezione-liquid {
    display: none;
  }
}

@media (max-width: 520px) {
  .lt-selezione-featured-body {
    padding: 2rem 1.5rem;
  }

  .lt-selezione-num {
    font-size: 3rem;
  }

  .lt-selezione-cta {
    padding: 1rem 2rem;
  }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  .lt-selezione-liquid {
    display: none;
  }

  .lt-selezione-ghost {
    animation: none;
  }
}

/* ─── OFFSCREEN PAUSE ─── */
/* IntersectionObserver fügt diese Klasse hinzu wenn Section nicht sichtbar */
.lt-selezione-liquid.lt-paused svg {
  animation-play-state: paused;
}

.lt-selezione-liquid.lt-paused svg * {
  animation-play-state: paused;
}
