/* ═══════════════════════════════════════════════════
   EMILIO — SUBPAGE SHARED STYLES
   Galeria · Catering · Bistro · Casa di Emilio
   ═══════════════════════════════════════════════════ */

/* ── Sub-hero ── */
.sub-hero {
  position: relative;
  height: 52vh;
  min-height: 360px;
  max-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden
}

.sub-hero__bg {
  position: absolute;
  inset: 0
}

.sub-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroScale 22s var(--ease) infinite alternate
}

.sub-hero__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(11, 11, 11, .5) 0%,
      rgba(11, 11, 11, .35) 40%,
      rgba(11, 11, 11, .7) 75%,
      rgba(11, 11, 11, .95) 100%)
}

.sub-hero__body {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: fadeUp 1s var(--ease-out)
}

.sub-hero__kicker {
  font-family: var(--ff-display);
  font-size: 16px;
  font-style: italic;
  letter-spacing: .2em;
  color: #d4a9a5;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5)
}

.sub-hero__title {
  font-family: var(--ff-display);
  font-size: clamp(44px, 9vw, 90px);
  font-weight: 300;
  color: #fff;
  line-height: .9;
  letter-spacing: -.02em;
  margin-bottom: 12px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .4)
}

.sub-hero__sub {
  font-family: var(--ff-display);
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 300;
  color: rgba(255, 255, 255, .85);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .4)
}

/* ── Sub Main ── */
.sub-main {
  background: var(--black);
  padding: 80px 0 40px
}

/* ═══════════ CONTENT BLOCKS ═══════════ */
.content-block {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .04)
}

.content-block:last-of-type {
  border-bottom: none
}

/* Split layout */
.content-block--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center
}

.content-block--reverse .content-block__img {
  order: 2
}

.content-block--reverse .content-block__text {
  order: 1
}

.content-block__img {
  border-radius: 8px;
  overflow: hidden
}

.content-block__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform 6s linear
}

.content-block__img:hover img {
  transform: scale(1.04)
}

.content-block__kicker {
  display: block;
  font-family: var(--ff-display);
  font-size: 14px;
  font-style: italic;
  color: #a0736e;
  letter-spacing: .15em;
  margin-bottom: 10px
}

.content-block__title {
  font-family: var(--ff-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px
}

.content-block__text p {
  font-size: 16px;
  color: rgba(255, 255, 255, .65);
  line-height: 1.8;
  margin-bottom: 16px
}

.content-block__center {
  text-align: center;
  margin-bottom: 44px
}

/* Content list */
.content-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px
}

.content-list li {
  position: relative;
  padding: 10px 0 10px 24px;
  font-size: 16px;
  color: rgba(255, 255, 255, .7);
  line-height: 1.6;
  border-bottom: 1px solid rgba(255, 255, 255, .05)
}

.content-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--burgundy)
}

.content-list--numbered {
  counter-reset: steps
}

.content-list--numbered li {
  padding-left: 36px
}

.content-list--numbered li::before {
  content: counter(steps);
  counter-increment: steps;
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 400;
  color: #c4837c;
  left: 0;
  top: 7px
}

/* ═══════════ CATERING GALLERY ═══════════ */
.catering-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px
}

.catering-gallery__item {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/3
}

.catering-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease)
}

.catering-gallery__item:hover img {
  transform: scale(1.05)
}

/* ═══════════ VIDEO SHOWCASE ═══════════ */
.content-block__video {
  display: flex;
  justify-content: center;
  align-items: center
}

.video-showcase__frame {
  position: relative;
  display: block;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9/16;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 60px rgba(61, 10, 5, .3), 0 0 0 1px rgba(255, 255, 255, .06);
  text-decoration: none
}

.video-showcase__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), filter .4s var(--ease)
}

.video-showcase__frame:hover img {
  transform: scale(1.05);
  filter: brightness(.85)
}

.video-showcase__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .25);
  transition: background .3s var(--ease)
}

.video-showcase__play svg {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .4));
  transition: transform .3s var(--ease)
}

.video-showcase__frame:hover .video-showcase__play {
  background: rgba(61, 10, 5, .35)
}

.video-showcase__frame:hover .video-showcase__play svg {
  transform: scale(1.15)
}

/* ═══════════ PHOTO BREAK ═══════════ */
.content-photo {
  position: relative;
  height: 300px;
  margin: 20px 0;
  overflow: hidden;
  border-radius: 8px
}

.content-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s linear
}

.content-photo:hover img {
  transform: scale(1.06)
}

.content-photo__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(11, 11, 11, .65) 0%,
      rgba(11, 11, 11, .35) 50%,
      rgba(11, 11, 11, .65) 100%)
}

.content-photo__quote {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--ff-display);
  font-size: clamp(18px, 2.5vw, 28px);
  font-style: italic;
  font-weight: 300;
  color: rgba(255, 255, 255, .6);
  letter-spacing: .03em;
  white-space: nowrap;
  z-index: 2
}

/* ═══════════ FEATURE GRID ═══════════ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

.feature-card {
  padding: 44px 32px 40px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .03) 0%, rgba(255, 255, 255, .01) 100%);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 10px;
  text-align: center;
  transition: background .4s var(--ease), transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease)
}

.feature-card:hover {
  background: linear-gradient(160deg, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, .02) 100%);
  border-color: rgba(160, 115, 110, .3);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(61, 10, 5, .15)
}

.feature-card__icon {
  color: #a0736e;
  margin-bottom: 20px;
  line-height: 1
}

.feature-card__icon svg {
  width: 40px;
  height: 40px
}

.feature-card__title {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 14px
}

.feature-card__desc {
  font-size: 15px;
  color: rgba(255, 255, 255, .6);
  line-height: 1.8
}

/* ═══════════ HOURS GRID ═══════════ */
.hours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px
}

.hours-card {
  padding: 40px 28px;
  background: rgba(255, 255, 255, .02);
  border-radius: 6px;
  text-align: center;
  transition: background .3s var(--ease)
}

.hours-card:hover {
  background: rgba(255, 255, 255, .04)
}

.hours-card__day {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 12px
}

.hours-card__time {
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 300;
  color: #c4837c;
  margin-bottom: 8px
}

.hours-card__note {
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  font-style: italic
}

/* ═══════════ CONTENT CTA ═══════════ */
.content-cta {
  text-align: center;
  padding: 80px 0 40px;
  max-width: 520px;
  margin: 0 auto
}

.content-cta__tag {
  font-family: var(--ff-display);
  font-size: 15px;
  font-style: italic;
  letter-spacing: .15em;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 12px
}

.content-cta__title {
  font-family: var(--ff-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 300;
  color: #fff;
  margin-bottom: 16px
}

.content-cta__desc {
  font-size: 16px;
  color: rgba(255, 255, 255, .65);
  line-height: 1.7;
  margin-bottom: 32px
}

.content-cta__btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap
}

/* ═══════════ GALLERY MASONRY ═══════════ */
.gallery-masonry {
  columns: 4;
  column-gap: 4px
}

.gallery-masonry__item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  break-inside: avoid;
  margin-bottom: 4px;
  display: block
}

.gallery-masonry__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .6s var(--ease), filter .4s var(--ease)
}

.gallery-masonry__item:hover img {
  transform: scale(1.05);
  filter: brightness(1.1)
}

.gallery-masonry__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 11, .1);
  transition: background .4s var(--ease)
}

.gallery-masonry__item:hover .gallery-masonry__overlay {
  background: rgba(61, 10, 5, .15)
}

/* ═══════════ LIGHTBOX ═══════════ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease)
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: all
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5)
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 36px;
  color: rgba(255, 255, 255, .6);
  background: none;
  border: none;
  cursor: pointer;
  transition: color .2s
}

.lightbox__close:hover {
  color: #fff
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .7);
  font-size: 48px;
  line-height: 1;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s, color .2s;
  z-index: 10001
}

.lightbox__arrow:hover {
  background: rgba(255, 255, 255, .15);
  color: #fff
}

.lightbox__arrow--prev {
  left: 24px
}

.lightbox__arrow--next {
  right: 24px
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 900px) {
  .content-block--split {
    grid-template-columns: 1fr;
    gap: 32px
  }

  .content-block--reverse .content-block__img {
    order: 0
  }

  .content-block--reverse .content-block__text {
    order: 0
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr
  }

  .catering-gallery {
    grid-template-columns: repeat(2, 1fr)
  }

  .hours-grid {
    grid-template-columns: 1fr
  }

  .gallery-masonry {
    columns: 3
  }
}

@media (max-width: 600px) {
  .sub-hero {
    height: 40vh;
    min-height: 280px
  }

  .feature-grid {
    grid-template-columns: 1fr
  }

  .catering-gallery {
    grid-template-columns: 1fr 1fr
  }

  .gallery-masonry {
    columns: 2
  }


  .content-photo {
    height: 220px
  }

  .content-photo__quote {
    white-space: normal;
    text-align: center;
    width: 80%;
    font-size: 18px
  }

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