/* =========================================================
 * HERO — sezione d'apertura scura + variante "cinema"
 * (immagine di sfondo su desktop, video loop su mobile).
 * Markup in template-parts/section-hero.php.
 * ========================================================= */

.hero{
  min-height: 100svh;
  padding-top: clamp(120px, 14vh, 160px);
  padding-bottom: clamp(40px, 6vh, 80px);
  display:flex; flex-direction:column; justify-content:space-between;
  position:relative;
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
}
/* sottile texture/atmosfera */
.hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(168,68,45,.18), transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(255,255,255,.04), transparent 50%);
  pointer-events:none;
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity:.4;
  pointer-events:none;
}
.hero > .wrap{ position: relative; z-index: 1;}

.hero-meta{
  display:flex; justify-content:space-between; align-items:center; gap:24px;
  margin-bottom: clamp(20px, 5vh, 40px);
  color: rgba(250,247,242,.7);
}
.hero-meta .l, .hero-meta .r{ display:flex; gap:18px; align-items:center;}
.hero-meta .dot{ display:inline-block; width:6px; height:6px; background: rgba(250,247,242,.6); border-radius:50%;}
@media (max-width:720px){
  .hero-meta{ font-size:10px; gap:14px;}
}

.hero-title{ text-align:center; margin: clamp(20px, 5vh, 60px) 0;}
.hero-title .script-line{
  font-family:"Italianno", cursive;
  font-weight: 400;
  font-size: clamp(110px, 22vw, 320px);
  line-height: 0.92;
  display:block;
  color: var(--bg);
  letter-spacing: 0;
}
.hero-title .ornament{
  display:flex; align-items:center; justify-content:center; gap:18px;
  margin: clamp(16px, 3vh, 32px) 0 clamp(18px, 3vh, 32px);
}
.hero-title .ornament .dash{ width: clamp(40px, 10vw, 120px); height:1px; background: rgba(250,247,242,.5); }
.hero-title .ornament .glyph{
  font-family:"Cormorant Garamond", serif; font-style:italic; font-weight:400;
  font-size: clamp(20px, 2.4vw, 28px); line-height:1;
  color: rgba(250,247,242,.8);
}
.hero-title .sub{
  font-family:"Cormorant Garamond", serif; font-style:italic; font-weight:300;
  font-size: clamp(20px, 2.6vw, 32px);
  line-height:1.2;
  color: rgba(250,247,242,.85);
}

.hero-bottom{
  display:grid; grid-template-columns: 1fr 1fr 1fr; align-items:end; gap: 32px;
  padding-top: clamp(28px, 5vh, 48px);
  border-top: 1px solid rgba(250,247,242,.25);
}
.hero-bottom .col{ display:flex; flex-direction:column; gap:8px;}
.hero-bottom .col.center{ align-items:center; text-align:center;}
.hero-bottom .col.right{ align-items:flex-end; text-align:right;}
.hero-bottom .col .v{
  font-family:"Cormorant Garamond", serif; font-weight:300;
  font-size: clamp(18px, 1.8vw, 22px); line-height:1.4; letter-spacing:-0.01em;
  color: rgba(250,247,242,.92);
}
.hero-bottom .col .v em{ font-style:italic;}
.hero-bottom .col .micro{ color: rgba(250,247,242,.55); }
@media (max-width: 880px){
  .hero-bottom{ grid-template-columns:1fr; gap:18px; padding-top:24px;}
  .hero-bottom .col, .hero-bottom .col.center, .hero-bottom .col.right{ align-items:flex-start; text-align:left;}
}

/* ——— HERO · variante cinema (video loop + overlay sx→dx) ——— */
.hero.hero-cinema{
  min-height: 100svh;
  padding: 0;
  display: block;
  overflow: hidden;
  background-image: url('https://hairstylemerka.it/wp-content/uploads/2026/04/negozio-img-marsel.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.hero.hero-cinema::before,
.hero.hero-cinema::after{ display:none; }

.hero-video{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
/* Il video hero è solo per mobile: su desktop resta l'immagine di sfondo. */
.hero-video-mobile{ display: none; }
.hero-gradient{
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(20,16,14,.92) 0%,
      rgba(20,16,14,.78) 28%,
      rgba(20,16,14,.45) 55%,
      rgba(20,16,14,.12) 82%,
      rgba(20,16,14,0) 100%),
    linear-gradient(180deg,
      rgba(20,16,14,.35) 0%,
      rgba(20,16,14,0) 25%,
      rgba(20,16,14,0) 70%,
      rgba(20,16,14,.35) 100%);
}

.hero.hero-cinema .hero-content{
  position: relative; z-index: 2;
  min-height: 100svh;
  padding-top: clamp(120px, 14vh, 160px);
  padding-bottom: clamp(40px, 7vh, 90px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-bl{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: min(920px, 92vw);
}
.hero-bl .script-line{
  font-family:"Italianno", cursive;
  font-weight: 400;
  font-size: clamp(86px, 14vw, 200px);
  line-height: 0.88;
  display: block;
  color: var(--bg);
  letter-spacing: 0;
}
.hero-bl .script-line + .script-line{ margin-top: -0.22em; }
.hero-bl-sub{
  margin: clamp(18px, 3vh, 32px) 0 0;
  font-family:"Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.45;
  color: rgba(250,247,242,.88);
  max-width: 38ch;
  font-variant-numeric: lining-nums tabular-nums;
}
.hero-bl-sub em{
  font-style: italic;
  color: var(--bg);
}

/* ——— CTA "Prenota" nell'hero — SOLO mobile ———
 * Su desktop resta nascosto: il "Prenota" c'è già nella nav fissa.
 * Stessa identità dei CTA del sito (crema pieno, maiuscolo, squadrato). */
.button-mobile{
  display: none;                       /* acceso solo nella media query mobile */
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: flex-start;              /* allineato a sinistra col resto del blocco */
  margin-top: clamp(20px, 3.5vh, 32px);
  padding: 15px 28px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--bg);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background .25s, color .25s;
}
.button-mobile:hover,
.button-mobile:active{
  background: transparent;
  color: var(--bg);
}

@media (max-width: 720px){
  .hero-gradient{
    background:
      linear-gradient(180deg,
        rgba(20,16,14,.45) 0%,
        rgba(20,16,14,.15) 35%,
        rgba(20,16,14,.55) 70%,
        rgba(20,16,14,.92) 100%);
  }
  .hero-bl .script-line{ font-size: clamp(56px, 15vw, 110px); }
  /* Su mobile mostra il video al posto dell'immagine hero. */
  .hero-video-mobile{ display: block; }
  /* …e il bottone Prenota (che su desktop resta nascosto: c'è già nella nav). */
  .button-mobile{ display: inline-flex; }
}