/* ===================================================
   TNT PUB — Homepage styles
   Hero · Statement · Split · Quote · Gallery · Ordina · Reveal
   =================================================== */

/* ── Hero ── */
#hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media video,
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.5)  50%,
    rgba(17,17,17,1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 1.5rem;
}

.hero-logo {
  width: 72px;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.3s;
}

#hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5rem, 18vw, 11rem);
  line-height: 0.88;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 0.6rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.5s;
}

#hero h1 span { color: var(--red); }

.hero-sub {
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  color: rgba(245,245,245,0.65);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.9s;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem; left: 0; right: 0;
  margin: 0 auto;
  width: fit-content;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(245,245,245,0.4);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.2s;
}

.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(245,245,245,0.5), transparent);
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(1); }
  50%       { opacity: 1;    transform: scaleY(1.15); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Statement ── */
.statement-section {
  padding: 9rem 2rem;
  text-align: center;
  background: var(--dark);
  contain: layout style paint;
}

.statement-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.08;
  color: var(--white);
  max-width: 900px;
  margin: 0 auto;
  letter-spacing: 0.03em;
}

.statement-text em { color: var(--red); font-style: normal; }

.statement-sub {
  font-size: 1rem;
  color: var(--gray);
  margin-top: 1.75rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ── Split sections ── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 72vh;
  contain: layout style paint;
}

.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }

.split-media {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.split-media img,
.split-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.split-section:hover .split-media img,
.split-section:hover .split-media video { transform: scale(1.04); }

.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 4rem;
  background: var(--dark);
}

.split-content .section-tag { margin-bottom: 1rem; }

.split-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.08;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.split-content p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.split-content p:last-of-type { margin-bottom: 2rem; }

.split-content .btn-outline { width: fit-content; }

.split-stats {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 1.5rem 3.5rem;
  margin-top: 0.5rem;
}

.stat-big-r {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  color: var(--red);
  letter-spacing: 0.04em;
  line-height: 1;
}

.stat-label-r {
  font-size: 0.7rem;
  color: var(--gray);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.gf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.gf-chip {
  background: rgba(212,31,44,0.08);
  border: 1px solid rgba(212,31,44,0.22);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  color: rgba(245,245,245,0.82);
}

/* ── Quote ── */
.quote-section {
  position: relative;
  min-height: 62vh;
  contain: layout style paint;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-image: url('../img/thumb_16946915578_2.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

.quote-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.74);
}

.quote-content {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
  max-width: 820px;
}

.quote-mark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 9rem;
  line-height: 0.4;
  color: var(--red);
  opacity: 0.45;
  margin-bottom: 1.5rem;
}

.quote-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5.5vw, 4rem);
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 1.75rem;
}

.quote-attr {
  font-size: 0.78rem;
  color: rgba(245,245,245,0.45);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ── Gallery filmstrip ── */
#gallery {
  background: var(--dark);
  padding: 7rem 0;
  overflow: hidden;
}

.gallery-header {
  padding: 0 2rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-strip {
  overflow: hidden;
  padding: 0 0 1rem;
  cursor: grab;
  user-select: none;
}

.gallery-strip.grabbing { cursor: grabbing; }

.gallery-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  align-items: center;
  will-change: transform;
}

.gallery-frame {
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 2px;
  position: relative;
}

.gallery-frame:nth-child(odd)  { width: 360px; height: 460px; }
.gallery-frame:nth-child(even) { width: 290px; height: 370px; }

.gallery-frame img,
.gallery-frame video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  pointer-events: none;
}

.gallery-frame:hover img,
.gallery-frame:hover video { transform: scale(1.05); }

/* ── Eventi ── */
#eventi {
  background: var(--dark-2);
  padding: 7rem 2rem;
  border-top: 1px solid var(--border);
}

.eventi-inner {
  max-width: 1100px;
  margin: 0 auto;
}

#eventi .section-title { margin-bottom: 3rem; }

.eventi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.evento-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.evento-card:hover { border-color: rgba(232,160,32,0.4); }

.evento-badge {
  background: rgba(232,160,32,0.12);
  border-bottom: 1px solid rgba(232,160,32,0.2);
  color: #e8a020;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.6rem 1.25rem;
}

.evento-body { padding: 1.5rem 1.25rem; }

.evento-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.evento-desc {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.evento-desc strong { color: var(--light); }

.evento-highlight {
  background: var(--dark-4);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.9rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.evento-piatto {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.evento-piatto-nome {
  font-size: 0.8rem;
  color: var(--light);
}

.evento-piatto-prezzi {
  white-space: nowrap;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  color: #e8a020;
  letter-spacing: 0.04em;
}

.evento-piatto-prezzi s {
  color: var(--gray);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0;
  margin-right: 0.3rem;
}

.evento-cta { padding: 0.7rem 1.5rem; font-size: 0.8rem; }

/* Badge "Oggi!" sul mercoledì — aggiunto via JS */
.evento-card.is-today .evento-badge::after {
  content: ' · OGGI!';
  color: #e8a020;
  font-weight: 700;
}

/* ── Ordina CTA ── */
#ordina {
  background: var(--dark);
  padding: 9rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.ordina-inner { max-width: 720px; margin: 0 auto; }

#ordina .section-tag { margin-bottom: 1rem; }

#ordina h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 9vw, 7rem);
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

#ordina h2 em { color: var(--red); font-style: normal; }

#ordina .ordina-inner > p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 3rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.ordina-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.ordina-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem 1.25rem;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.ordina-card:hover {
  border-color: var(--red);
  background: rgba(212,31,44,0.06);
}

.ordina-card-icon { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
.ordina-card h4 { font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 0.4rem; }
.ordina-card p { font-size: 0.78rem; color: var(--gray); line-height: 1.5; }

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

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.reveal-right.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.25s; }
.delay-3 { transition-delay: 0.4s;  }
.delay-4 { transition-delay: 0.55s; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .split-section,
  .split-section.reverse { grid-template-columns: 1fr; direction: ltr; }
  .split-section.reverse .split-media { order: -1; }
  .split-media { min-height: 60vw; }
  .split-content { padding: 3rem 1.5rem; }
  .ordina-cards { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
  .gallery-frame:nth-child(odd)  { width: 270px; height: 350px; }
  .gallery-frame:nth-child(even) { width: 220px; height: 280px; }
  .statement-section { padding: 5rem 1.5rem; }
  #ordina { padding: 6rem 1.5rem; }
}
