/* Marta Hero Slider — stili scoped (nessuna dipendenza dal tema) */
.mhs-hero{
  --paper:#FAFAF8;
  --ink:#3C3A34;
  --forest:#3A3E35;
  --serif:"Cormorant Garamond",Georgia,serif;
  --body:"Raleway",system-ui,sans-serif;
  --mx:clamp(1.25rem,5vw,5.5rem);
  --sx:clamp(1.25rem,5vw,5.5rem);
  --ease:cubic-bezier(.22,.61,.36,1);
}

/* struttura */
.mhs-hero.hero{position:relative;min-height:100svh;display:flex;align-items:center;justify-content:center;text-align:center;color:var(--paper);overflow:hidden;margin:0;padding:0;box-sizing:border-box}
.mhs-hero *,.mhs-hero *::before,.mhs-hero *::after{box-sizing:border-box}

/* slideshow */
.mhs-hero .hs{position:absolute;inset:0;z-index:1}
.mhs-hero .hs::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(180deg,rgba(12,16,10,.5),rgba(12,16,10,.4) 42%,rgba(8,12,7,.68))}
.mhs-hero .hs-slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;margin:0;max-width:none}
.mhs-hero .hs.ready .hs-slide{transition:opacity 1.1s cubic-bezier(.4,0,.2,1)}
.mhs-hero .hs-slide.on{opacity:1}
@media (prefers-reduced-motion:no-preference){
  .mhs-hero .hs-slide.on{animation:mhsKb 3s linear forwards}
  @keyframes mhsKb{from{transform:scale(1.02)}to{transform:scale(1)}}
}

/* contenuto: un layer di testo per slide, sovrapposti e in dissolvenza */
.mhs-hero .hero-inner{position:relative;z-index:3;display:grid;place-items:center;max-width:60rem;text-align:center;padding:5rem var(--mx) 3rem;animation:mhsFadeIn .6s ease both}
.mhs-hero .mhs-text{grid-area:1/1;display:flex;flex-direction:column;align-items:center;opacity:0;transform:translateY(10px);transition:opacity .8s var(--ease),transform .8s var(--ease);pointer-events:none}
.mhs-hero .mhs-text.on{opacity:1;transform:none;pointer-events:auto}
@keyframes mhsFadeIn{from{opacity:0}to{opacity:1}}
.mhs-hero .eyebrow{display:inline-flex;align-items:center;gap:.7rem;font-family:var(--body);font-size:1rem;font-weight:600;letter-spacing:.28em;text-transform:uppercase;color:#fff}
.mhs-hero .eyebrow::before{content:"";width:1.7rem;height:2px;background:#E6CDA0;opacity:.9;border-radius:2px}
.mhs-hero h1{font-family:var(--serif);font-style:italic;font-weight:500;font-size:clamp(3.4rem,9.5vw,7.2rem);line-height:1.04;letter-spacing:.01em;margin:1.2rem 0 0;color:var(--paper);text-shadow:0 2px 34px rgba(0,0,0,.55),0 1px 3px rgba(0,0,0,.4)}
.mhs-hero .hero-sub{margin:1.4rem 0 0;font-family:var(--body);font-style:normal;font-size:clamp(1.35rem,2.4vw,1.85rem);font-weight:400;color:#fff;max-width:46ch;text-shadow:0 2px 4px rgba(0,0,0,.55),0 4px 26px rgba(0,0,0,.6);line-height:1.6}
.mhs-hero .hero-cta{margin-top:2.6rem}

/* bottone pill */
.mhs-hero .pill{display:inline-flex;align-items:center;gap:.5em;font-family:var(--body);font-weight:600;font-size:.84rem;letter-spacing:.2em;text-transform:uppercase;padding:1.15em 2.5em;border-radius:999px;border:2px solid rgba(242,238,228,.6);background:rgba(255,255,255,.06);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);color:var(--paper);cursor:pointer;text-decoration:none;transition:all .25s}
.mhs-hero .pill:hover{background:var(--paper);border-color:var(--paper);color:var(--forest)}

/* barre di avanzamento */
.mhs-hero .hs-bars{position:absolute;z-index:3;left:var(--sx);right:var(--sx);bottom:2.1rem;display:flex;gap:clamp(1.2rem,3vw,2.6rem);animation:mhsFadeIn 1s var(--ease) 1s both}
.mhs-hero .hs-bar{flex:1;height:14px;border:0;background:none;cursor:pointer;display:flex;align-items:center;padding:0;margin:0;box-shadow:none;outline-offset:4px;-webkit-appearance:none;appearance:none;border-radius:0}
.mhs-hero .hs-bar:hover,.mhs-hero .hs-bar:focus,.mhs-hero .hs-bar:active,.mhs-hero .hs-bar:focus-visible{background:none!important;background-color:transparent!important;border:0!important;box-shadow:none!important;outline:none!important;color:inherit!important}
.mhs-hero .hs-bar:focus-visible i{box-shadow:0 0 0 3px rgba(230,205,160,.45)}
.mhs-hero .hs-bar i{display:block;width:100%;height:2px;background:rgba(250,250,248,.32);position:relative;overflow:hidden;font-style:normal}
.mhs-hero .hs-bar i b{display:block;height:100%;width:0;background:var(--paper)}

/* accessibilità: riduci movimento */
@media (prefers-reduced-motion:reduce){
  .mhs-hero .hero-inner,.mhs-hero .hs-bars{animation:none!important;opacity:1!important;transform:none!important}
  .mhs-hero .mhs-text{transition:opacity .8s ease!important;transform:none!important}
  .mhs-hero .hs.ready .hs-slide{transition:opacity 1.1s cubic-bezier(.4,0,.2,1)!important}
  .mhs-hero .hs-slide.on{opacity:1!important}
  .mhs-hero .hs-slide:not(.on){opacity:0!important}
}

/* anti-fucsia: reset totale stati button (tema/Elementor) + tap highlight mobile */
.mhs-hero .hs-bars button,.mhs-hero button.hs-bar{-webkit-tap-highlight-color:transparent}
section.mhs-hero .hs-bars .hs-bar,section.mhs-hero .hs-bars .hs-bar:hover,section.mhs-hero .hs-bars .hs-bar:focus,section.mhs-hero .hs-bars .hs-bar:focus-within,section.mhs-hero .hs-bars .hs-bar:active,section.mhs-hero .hs-bars .hs-bar:focus-visible{background:transparent!important;background-color:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;outline:0!important;color:inherit!important;border-radius:0!important}
