/* CSS condiviso tra fine-serie.php e contatti.php — variabili di base +
   reset (identiche su ogni pagina di /new), hero fotografica, scroll
   reveal, e la fascia finale benefici/newsletter/instagram (identica su
   entrambe le pagine, come su calze.php/chi-siamo.php/prodotto.php/
   index.php). Caricato da entrambe via <link>, insieme al rispettivo
   file *-specifico (fine-serie.css / contatti.css). */

:root {
  --ink: #2c2a28;
  --paper: #ede6dc;
  --warm-white: #e8e0d6;
  --stone: #a79c8c;
  --stone-light: #c9bfaf;
  --bronze: #6e6258;
  --muted: #8a7e72;
  --whisper: rgba(44, 42, 40, 0.06);
  --line: rgba(44, 42, 40, 0.08);

  --font-display: "Cormorant", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;

  --ease-luxe: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
}

/* ════════════════════════════════════════
   PAGE HEADER — stessa hero fotografica di calze.php (foto vera, non
   sticky, scorre via normalmente) con lo stesso pulsante di ritorno.
   ════════════════════════════════════════ */
.listing-hero {
  position: relative;
  height: clamp(320px, 46vh, 520px);
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--warm-white);
}

@keyframes listingHeroKenBurns {
  from {
    transform: scale(1.14);
  }
  to {
    transform: scale(1);
  }
}

.listing-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: listingHeroKenBurns 11s var(--ease-out) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .listing-hero-media {
    animation: none;
  }
}

.listing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(44, 42, 40, 0.82) 0%,
    rgba(44, 42, 40, 0.32) 55%,
    rgba(44, 42, 40, 0.18) 100%
  );
}

.listing-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  padding: 0 24px clamp(32px, 5vh, 56px);
  animation: listingHeroRise 1s var(--ease-out) both;
  animation-delay: 0.15s;
}

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

@media (prefers-reduced-motion: reduce) {
  .listing-hero-content {
    animation: none;
  }
}

.hero-back-btn {
  position: absolute;
  top: clamp(20px, 3vh, 32px);
  left: clamp(20px, 4vw, 48px);
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(237, 230, 220, 0.14);
  border: 1px solid rgba(237, 230, 220, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    background 0.25s var(--ease-out),
    transform 0.25s var(--ease-out);
}

.hero-back-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--paper);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease-out);
}

.hero-back-btn:hover {
  background: rgba(237, 230, 220, 0.3);
  transform: scale(1.06);
}

.hero-back-btn:hover svg {
  transform: translateX(-3px);
}

.listing-eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(237, 230, 220, 0.75);
  margin-bottom: 10px;
}

.listing-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  color: var(--paper);
}

/* ════════════════════════════════════════
   COMING SOON — annuncio centrato per una sezione ancora senza modelli
   reali (friulane.php/espadrillas.php quando una sottocategoria è
   vuota), con link alle categorie già popolate e la stessa newsletter
   reale delle altre pagine.
   ════════════════════════════════════════ */
.coming-soon {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(64px, 10vh, 100px) clamp(24px, 4vw, 56px);
  text-align: center;
}

.coming-soon-eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 14px;
}

.coming-soon-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.coming-soon-desc {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto clamp(28px, 4vh, 40px);
}

.coming-soon-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.coming-soon-links a {
  border-bottom: 1px solid var(--stone-light);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.coming-soon-links a:hover {
  color: var(--bronze);
  border-color: var(--bronze);
}

.coming-soon-links span {
  color: rgba(44, 42, 40, 0.3);
}

/* ════════════════════════════════════════
   SCROLL REVEAL
   ════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1s var(--ease-out),
    transform 1s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}


/* ════════════════════════════════════════
   BENEFICI + NEWSLETTER + INSTAGRAM — stessi blocchi reali di
   calze.php/prodotto.php/index.php.
   ════════════════════════════════════════ */
.trust-strip {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(36px, 5vh, 56px) 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-pill svg {
  width: 20px;
  height: 20px;
  stroke: var(--stone);
  stroke-width: 1.3;
  fill: none;
  flex-shrink: 0;
}

.trust-pill span {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 400;
}

.newsletter {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: clamp(64px, 10vh, 100px) 24px;
}

.nl-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.nl-sub {
  font-size: 0.86rem;
  color: rgba(237, 230, 220, 0.72);
  margin-bottom: 32px;
  font-weight: 400;
}

.nl-form {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
}

.nl-form input {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(237, 230, 220, 0.2);
  border-right: none;
  color: var(--paper);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 400;
  outline: none;
  transition: border-color 0.3s;
}

.nl-form input::placeholder {
  color: rgba(237, 230, 220, 0.25);
}
.nl-form input:focus {
  border-color: rgba(237, 230, 220, 0.5);
}

.nl-form button {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper);
  padding: 14px 32px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  font-weight: 500;
  transition:
    background 0.3s,
    color 0.3s;
}

.nl-form button:hover {
  background: var(--bronze);
  border-color: var(--bronze);
  color: var(--paper);
}

@media (max-width: 480px) {
  .nl-form {
    flex-direction: column;
  }
  .nl-form input {
    border-right: 1px solid rgba(237, 230, 220, 0.2);
    border-bottom: none;
  }
}

.pdp-feedback {
  min-height: 20px;
  margin-top: 12px;
  font-size: 0.82rem;
}

.pdp-feedback.is-success {
  color: var(--bronze);
}

.pdp-feedback.is-error {
  color: #a94442;
}

.newsletter .pdp-feedback.is-success {
  color: rgba(237, 230, 220, 0.85);
}

.newsletter .pdp-feedback.is-error {
  color: #e0a3a3;
}

.ig-section {
  padding: clamp(48px, 7vh, 72px) clamp(24px, 4vw, 56px) 0;
  text-align: center;
  border-top: 1px solid var(--line);
}

.ig-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  font-weight: 500;
  color: var(--stone);
  margin-bottom: 6px;
}

.ig-handle {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  display: inline-block;
  margin-bottom: clamp(24px, 4vh, 40px);
  transition: opacity 0.3s;
}

.ig-handle:hover {
  opacity: 0.5;
}

.ig-widget {
  margin-top: clamp(24px, 4vh, 40px);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
