/* ─────────────────────────────
   NOSTRIA-STORIA.CSS — Lo Castro "Our Story" page
   wp-content/themes/twentytwentyfive-child/styles/nostra-storia.css

   Ports the Next.js frontend's NostraStoriaPage.tsx (styled-components)
   into plain CSS on the [lc_nostra_storia] shortcode's markup, using the
   same --lc-* design tokens as the rest of the WooCommerce side.
   ───────────────────────────── */

.lc-storia {
  font-family: var(--lc-font-serif);
  color: var(--lc-text);
}

/* ── Hero ── */
.lc-storia-hero {
  padding: 34px 20px;
  text-align: center;
  border-bottom: 1px solid var(--lc-border-subtle);
}

.lc-storia-hero-title {
  margin: 12px 0 0;
}

.lc-storia-hero-desc {
  margin: 14px auto 0;
}

/* ── Content wrap ── */
.lc-storia-content {
  margin: 0 auto;
  padding: 34px 20px 70px;
}

/* ── Fold grid: outer frame carries border-top + border-left only,
   matching the Grid pattern used elsewhere (account.css) ── */
.lc-storia-grid {
  border-top: 1px solid var(--lc-border-strong);
  border-left: 1px solid var(--lc-border-strong);
}

.lc-storia-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 980px) { /* Shared fit: two-column compositions stack */
  .lc-storia-row {
    grid-template-columns: 1fr;
  }

  .lc-storia-row .lc-storia-panel {
    order: 1;
  }

  .lc-storia-row .lc-storia-media {
    order: 2;
  }
}

.lc-storia-panel {
  border-right: 1px solid var(--lc-border-strong);
  border-bottom: 1px solid var(--lc-border-strong);
  padding: 48px 34px 54px;
  box-sizing: border-box;
}

@media (max-width: 560px) {
  .lc-storia-panel {
    padding: 28px 18px 32px;
  }
}

.lc-storia-kicker {
  margin: 0;
  font-family: var(--lc-font-display);
  font-size: 10px;
  letter-spacing: var(--lc-track-wide);
  text-transform: uppercase;
  opacity: 0.7;
}

.lc-storia-h2 {
  margin: 12px 0 0;
  font-family: var(--lc-font-display);
  font-size: 16px;
  letter-spacing: var(--lc-track-default);
  text-transform: uppercase;
  font-weight: 600;
}

.lc-storia-p {
  margin: 14px 0 0;
 font-size: 16px;
  line-height: 1.7;
  opacity: 0.75;
}

.lc-storia-p em {
  font-style: normal;
  opacity: 1;
}

/* ── Media panel with caption overlay ── */
.lc-storia-media {
  border-right: 1px solid var(--lc-border-strong);
  border-bottom: 1px solid var(--lc-border-strong);
  background: var(--lc-surface);
  position: relative;
  min-height: 520px;
  overflow: hidden;
  box-sizing: border-box;
}

/* Shown in place of a photo that hasn't been uploaded yet — see
   locastro_storia_placeholder() in inc/nostra-storia-shortcode.php.
   Fills the same space a real photo would, so nothing shifts once
   images are added. */
.lc-storia-media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: repeating-linear-gradient(
    45deg,
    var(--lc-border-default),
    var(--lc-border-default) 1px,
    transparent 1px,
    transparent 14px
  ), var(--lc-surface);
}

.lc-storia-media-placeholder span {
  font-family: var(--lc-font-serif);
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #8a7f6d; /* placeholder-only; not --lc-text-muted (#6b6055) */
}

@media (max-width: 980px) { /* Shared fit: two-column compositions stack */
  .lc-storia-media {
    min-height: 380px;
  }
}

.lc-storia-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lc-storia-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 32px 22px 18px;
  background: linear-gradient(
    to top,
    rgba(20, 12, 6, 0.5) 0%,
    rgba(20, 12, 6, 0.22) 55%,
    transparent 100%
  );
  color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 560px) {
  .lc-storia-caption {
    padding: 22px 16px 14px;
  }

  .lc-storia-caption-v {
    display: none;
  }
}

.lc-storia-ghostlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: none;
  padding: 0 0 2px;
  font-family: var(--lc-font-display);
  font-size: 11px;
  letter-spacing: var(--lc-track-default);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: opacity 0.15s ease;
}

.lc-storia-ghostlink::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  transform: scaleX(0.55);
  transform-origin: left;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.lc-storia-ghostlink:hover {
  opacity: 1;
}

.lc-storia-ghostlink:hover::after {
  transform: scaleX(1);
  opacity: 0.85;
}

.lc-storia-ghostlink svg {
  width: 16px;
  height: 16px;
}
