/* ================================================================
   CLAUDIA BELLEZZA & BENESSERE - css/style.css
   Palette: perla #F7F3EF · testo #1A1A1A · salmone #F2B5A0
            oro rosato #C9956A · beige caldo #EDE8E3
   Font: Cormorant Garamond (titoli) + Jost (corpo)
================================================================ */

/* ----------------------------------------------------------------
   1. TOKEN DI DESIGN
---------------------------------------------------------------- */
:root {
  --bg:           #F7F3EF;
  --bg-alt:       #EDE8E3;
  --ink:          #1A1A1A;
  --ink-soft:     #4F463E;
  --accent:       #F2B5A0;
  --accent-deep:  #D98A6E;  /* salmone scuro: testo leggibile e hover */
  --gold:         #C9956A;
  --white:        #FFFFFF;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body:    "Jost", "Helvetica Neue", sans-serif;

  --radius:       16px;
  --radius-pill:  999px;

  --shadow-soft:  0 18px 50px -18px rgba(79, 60, 48, 0.35);
  --shadow-card:  0 10px 30px -14px rgba(79, 60, 48, 0.25);

  --ease-out:     cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out:  cubic-bezier(0.77, 0, 0.175, 1);

  --container:    1240px;
  --section-pad:  clamp(4.5rem, 9vw, 8rem);
}

/* ----------------------------------------------------------------
   2. RESET E BASE
---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 300;
  margin-bottom: 0.6em;
}

p { max-width: 65ch; }

.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

section { padding-block: var(--section-pad); scroll-margin-top: 78px; }

/* Focus visibile per chi naviga da tastiera */
:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----------------------------------------------------------------
   3. BOTTONI
---------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 0.85rem 2.2rem;
  cursor: pointer;
  transition: transform 160ms var(--ease-out),
              background-color 200ms ease,
              color 200ms ease,
              border-color 200ms ease,
              box-shadow 200ms ease;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background-color: var(--accent);
  color: #5A2E1D; /* contrasto AA su salmone */
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--white);
  box-shadow: var(--shadow-card);
}

.btn-outline {
  background-color: rgba(26, 26, 26, 0.18);
  color: var(--white);
  border: 1px solid var(--white);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--ink);
}

.btn-big {
  font-size: 1.1rem;
  padding: 1.05rem 3rem;
}

/* ----------------------------------------------------------------
   4. INTRO VIDEO
---------------------------------------------------------------- */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

#intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#skip-intro {
  position: absolute;
  right: 1.5rem;
  bottom: 1.75rem;
  z-index: 101;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}

#skip-intro:hover { background-color: rgba(255, 255, 255, 0.32); }
#skip-intro:active { transform: scale(0.97); }

/* Il contenuto parte nascosto: lo mostra il JS (o il CSS di fallback).
   La dissolvenza è una transition CSS, così funziona anche se GSAP
   è bloccato (scheda in background, risparmio energetico).
   Lenta di proposito: accompagna il crossfade da 3 secondi. */
#main-content { opacity: 0; transition: opacity 1600ms ease; }

/* Se il JS non parte, il sito resta comunque visibile */
@media (scripting: none) {
  #main-content { opacity: 1; }
  #intro-overlay { display: none; }
}

/* ----------------------------------------------------------------
   5. NAVBAR
---------------------------------------------------------------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  color: var(--white);
  background-color: rgba(247, 243, 239, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background-color 350ms var(--ease-in-out),
              color 350ms var(--ease-in-out),
              backdrop-filter 350ms var(--ease-in-out),
              box-shadow 350ms var(--ease-in-out);
}

#navbar.is-scrolled {
  color: var(--ink);
  background-color: rgba(247, 243, 239, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px -18px rgba(79, 60, 48, 0.35);
}

.nav-inner {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
  height: 142px; /* all'arrivo la barra è ariosa, col logo in evidenza */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: height 400ms var(--ease-in-out);
}

#navbar.is-scrolled .nav-inner { height: 78px; }

.nav-logo img {
  /* Grande quando si atterra sulla pagina (riconoscibilità),
     si compatta con eleganza appena si scorre */
  height: 124px;
  width: auto;
  transition: filter 350ms var(--ease-in-out), height 400ms var(--ease-in-out);
  /* logo nero: lo invertiamo finché la navbar è trasparente sull'hero scuro */
  filter: invert(1) brightness(1.8);
}

#navbar.is-scrolled .nav-logo img {
  filter: none;
  height: 62px;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-decoration: none;
  position: relative;
  padding-block: 0.4rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 250ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover::after { transform: scaleX(1); }
}

.btn-nav {
  background-color: var(--accent);
  color: #5A2E1D;
  border: 1px solid var(--accent);
  padding: 0.6rem 1.6rem;
  font-size: 0.95rem;
}

.btn-nav:hover {
  background-color: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--white);
}

/* Hamburger (solo mobile) */
#menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: transform 250ms var(--ease-out);
}

#menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
#menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* Menu mobile a schermo intero */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  background-color: rgba(247, 243, 239, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms var(--ease-out), visibility 0s linear 300ms;
}

#mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 300ms var(--ease-out);
}

#mobile-menu ul {
  list-style: none;
  text-align: center;
  display: grid;
  gap: 1.6rem;
}

#mobile-menu a:not(.btn) {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--ink);
  text-decoration: none;
}

/* ----------------------------------------------------------------
   6. HERO
---------------------------------------------------------------- */
#hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(26, 26, 26, 0.30), rgba(26, 26, 26, 0.30)),
                    url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
}

.hero-content {
  color: var(--white);
  padding: 6rem 1.5rem 4rem;
  display: grid;
  justify-items: center;
  gap: 1.3rem;
}

#hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

#hero-title {
  font-size: clamp(3rem, 7.5vw, 6rem);
  font-weight: 300;
  text-shadow: 0 2px 30px rgba(26, 26, 26, 0.4);
}

/* Ogni riga del titolo vive in una "finestra": il testo sale
   da sotto il bordo, effetto sipario elegante */
.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em; /* spazio per i discendenti del corsivo */
}

.hero-line-inner { display: block; }

#hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}

.hero-rule {
  display: block;
  width: 72px;
  height: 1px;
  background-color: var(--gold);
  opacity: 0.9;
}

#hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 20px rgba(26, 26, 26, 0.45);
}

#scroll-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  margin-left: -24px; /* centratura senza transform: il transform lo anima GSAP */
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0.85;
}

/* ----------------------------------------------------------------
   7. STORIA DI CLAUDIA
---------------------------------------------------------------- */
#claudia-story {
  position: relative;
  isolation: isolate;
}

.story-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(247, 243, 239, 0.85), rgba(247, 243, 239, 0.85)),
                    url("../images/texture-chisiamo.jpg");
  background-size: cover;
  background-position: center;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.story-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.story-content h2 { margin-bottom: 1.2em; }

/* Timeline verticale */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline-track {
  position: absolute;
  left: 0;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background-color: rgba(201, 149, 106, 0.25);
  overflow: hidden;
}

#timeline-line {
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--gold);
  transform: scaleY(0);
  transform-origin: top center;
}

.milestones {
  list-style: none;
  display: grid;
  gap: 2.2rem;
}

.story-milestone { position: relative; }

.story-milestone::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  margin-left: -4px;
  border-radius: 50%;
  background-color: var(--gold);
}

.milestone-year {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.milestone-text {
  color: var(--ink-soft);
  font-size: 1rem;
}

.story-quote {
  margin-top: 2.8rem;
  border-left: 2px solid var(--accent);
  padding-left: 1.4rem;
}

.story-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
}

/* ----------------------------------------------------------------
   8. NUMERI
---------------------------------------------------------------- */
#stats-section {
  background-color: var(--bg-alt);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat { display: grid; gap: 0.2rem; justify-items: center; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* ----------------------------------------------------------------
   9. SERVIZI (tab + card)
---------------------------------------------------------------- */
#servizi { text-align: center; }

.tabs {
  display: inline-flex;
  gap: 0.8rem;
  margin-bottom: 3rem;
}

.tab {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 0.7rem 2rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-deep);
  background-color: transparent;
  color: var(--accent-deep);
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}

.tab:active { transform: scale(0.97); }

.tab.is-active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #5A2E1D;
}

@media (hover: hover) and (pointer: fine) {
  .tab:not(.is-active):hover { background-color: rgba(242, 181, 160, 0.15); }
}

.services-grid {
  display: grid;
  gap: 1.5rem;
  text-align: left;
}

.services-grid-hair { grid-template-columns: repeat(3, 1fr); }
.services-grid-beauty { grid-template-columns: repeat(3, 1fr); }

.service-card {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-card);
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
  }
}

.service-card h3 {
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.service-card p {
  font-size: 0.97rem;
  color: var(--ink-soft);
}

/* Card con fotografia */
.service-card-photo {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.service-card-photo .service-card-body {
  padding: 1.6rem 1.8rem 2rem;
}

/* ----------------------------------------------------------------
   10. CLAUDIA AL LAVORO
---------------------------------------------------------------- */
#lavoro {
  background-color: var(--bg-alt);
  text-align: center;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.work-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.work-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 450ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .work-item:hover img { transform: scale(1.045); }
}

/* ----------------------------------------------------------------
   11. PRODOTTI
---------------------------------------------------------------- */
#prodotti { text-align: center; }

.section-sub {
  margin: -0.4rem auto 2.6rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.product-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 450ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .product-item:hover img { transform: scale(1.045); }
}

/* ----------------------------------------------------------------
   12. GALLERIA
---------------------------------------------------------------- */
#galleria {
  background-color: var(--bg-alt);
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.gallery-item {
  display: block;
  border: none;
  padding: 0;
  background: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  /* stato iniziale del reveal a tendina (lo anima GSAP) */
}

.gallery-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 450ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover .gallery-img { transform: scale(1.045); }
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background-color: rgba(26, 26, 26, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1.5rem;
}

#lightbox[hidden] { display: none; }

#lightbox-img {
  max-width: min(100%, 1000px);
  max-height: 100%;
  border-radius: var(--radius);
  object-fit: contain;
}

#lightbox button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}

#lightbox button:hover { background-color: rgba(255, 255, 255, 0.28); }
#lightbox button:active { transform: scale(0.95); }

#lightbox-close { top: 1.25rem; right: 1.25rem; }
#lightbox-prev  { left: 1.25rem; top: 50%; margin-top: -24px; }
#lightbox-next  { right: 1.25rem; top: 50%; margin-top: -24px; }

/* ----------------------------------------------------------------
   12.B RECENSIONI (nastro a scorrimento continuo)
---------------------------------------------------------------- */
#recensioni {
  background-color: var(--bg);
  text-align: center;
  overflow: hidden;
}

.marquee {
  margin-top: 2.8rem;
  overflow: hidden;
  /* le card sfumano ai bordi del nastro */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 55s linear infinite;
}

/* Al passaggio del mouse il nastro si ferma: si legge con calma */
@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee-track { animation-play-state: paused; }
}

.marquee-group {
  display: flex;
  gap: 1.5rem;
  padding-right: 1.5rem;
}

@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}

.review-card {
  width: 340px;
  flex-shrink: 0;
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 1.7rem 1.7rem 1.5rem;
  box-shadow: var(--shadow-card);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.review-stars {
  display: flex;
  gap: 3px;
  color: var(--gold);
}

.review-stars svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.review-card blockquote p {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.review-card figcaption {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 480px) {
  .review-card { width: 280px; }
}

/* Movimento ridotto: niente scorrimento automatico,
   il nastro si sfoglia con il dito o il trackpad */
@media (prefers-reduced-motion: reduce) {
  .marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .marquee-track { animation: none; }
}

/* ----------------------------------------------------------------
   13. PRENOTA
---------------------------------------------------------------- */
#booking-section {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding-block: clamp(6rem, 14vw, 11rem);
}

.booking-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../images/prenota-bg.jpg");
  background-size: cover;
  background-position: center;
}

.booking-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgba(26, 26, 26, 0.6);
}

.booking-content {
  color: var(--white);
  display: grid;
  justify-items: center;
  gap: 1.2rem;
  padding-inline: 1.5rem;
}

#booking-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 300;
  margin-bottom: 0;
}

.booking-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  letter-spacing: 0.03em;
}

.booking-content .btn { margin-top: 0.8rem; }

.booking-note {
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.booking-note a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 181, 160, 0.5);
}

.booking-note a:hover { border-color: var(--accent); }

.booking-trust {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
}

/* ----------------------------------------------------------------
   13.B FILO CONDUTTORE (linea dorata, solo desktop)
---------------------------------------------------------------- */
#percorso { position: relative; }

#percorso-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;            /* sopra le foto: la linea le attraversa */
  pointer-events: none;
}

#percorso-path {
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.85;
}

#percorso-dot { fill: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  #percorso-svg { display: none; }
}

/* ----------------------------------------------------------------
   13.C BOTTONE PRENOTA FISSO (solo mobile)
---------------------------------------------------------------- */
#cta-mobile {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  z-index: 48;
  display: none;
  box-shadow: 0 12px 32px -10px rgba(79, 60, 48, 0.55);
  transform: translate(-50%, 130%);
  transition: transform 350ms var(--ease-out);
}

#cta-mobile.is-visible { transform: translate(-50%, 0); }

#cta-mobile:active { transform: translate(-50%, 0) scale(0.97); }

@media (max-width: 767px) {
  #cta-mobile { display: inline-block; }
}

/* ----------------------------------------------------------------
   14. FOOTER
---------------------------------------------------------------- */
#footer {
  background-color: var(--ink);
  color: #D9D2CB;
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-logo {
  height: 84px;
  width: auto;
  filter: invert(1) brightness(1.8);
  margin-bottom: 1.1rem;
}

.footer-brand p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
}

#footer h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer-info p { margin-bottom: 0.7rem; font-size: 0.97rem; }

.footer-info a {
  color: #D9D2CB;
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 210, 203, 0.35);
  transition: color 200ms ease, border-color 200ms ease;
}

.footer-info a:hover { color: var(--white); border-color: var(--white); }

.footer-social ul {
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #D9D2CB;
  font-size: 0.97rem;
  padding-block: 0.3rem;
  transition: color 200ms ease;
}

.footer-social a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(217, 210, 203, 0.18);
  padding-block: 1.4rem;
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  color: #A89E94;
}

.footer-bottom a {
  color: #A89E94;
  transition: color 200ms ease;
}

.footer-bottom a:hover { color: var(--white); }

.footer-credit a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-credit-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   15. BADGE "SVILUPPATO DA FORMA STUDIO"
   Pillola fissa in basso a sinistra, sempre visibile durante lo
   scroll. Appare con un fade (gestito in JS) 2-3s dopo il caricamento,
   non subito. Toni scuri/vetro (non salmone/oro del sito): coerenti
   nella forma (stessa pillola, stessa ombra) ma riconoscibili come
   elemento esterno, non un CTA del salone.
---------------------------------------------------------------- */
#fs-badge {
  position: fixed;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 47;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  background-color: rgba(26, 26, 26, 0.72);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  color: #E9E4DD;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out), box-shadow 250ms var(--ease-out), background-color 250ms ease;
}

#fs-badge.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* Nasconde il badge quando il footer (che ha gia' il suo credito per
   esteso) e' in vista, per non sovrapporsi al testo del copyright. */
#fs-badge.is-visible.is-hidden-footer { opacity: 0; transform: translateY(10px); pointer-events: none; }

.fs-badge-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--white);
  padding: 3px;
  object-fit: contain;
  flex-shrink: 0;
}

@media (hover: hover) and (pointer: fine) {
  #fs-badge:hover {
    background-color: rgba(26, 26, 26, 0.88);
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.55);
  }
}

/* ----------------------------------------------------------------
   16. RESPONSIVE
---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .services-grid-hair { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  #menu-toggle { display: flex; }
  .nav-inner { height: 104px; }
  #navbar.is-scrolled .nav-inner { height: 72px; }
  .nav-logo img { height: 92px; }
  #navbar.is-scrolled .nav-logo img { height: 52px; }

  .story-grid { grid-template-columns: 1fr; }
  .story-photo { max-width: 440px; margin-inline: auto; }

  .stats-grid { grid-template-columns: 1fr; gap: 2.6rem; }

  .services-grid-hair,
  .services-grid-beauty,
  .work-grid,
  .products-grid { grid-template-columns: 1fr; }

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

  .footer-grid { grid-template-columns: 1fr; gap: 2.4rem; text-align: center; }
  .footer-logo { margin-inline: auto; }
  .footer-brand p { margin-inline: auto; }
  .footer-social a { justify-content: center; }
  .footer-social ul { justify-items: center; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Sotto i 768px il bottone "Prenota ora" fisso occupa la fascia bassa
     centrale: il badge sale sopra la sua riga per non toccarlo mai. */
  #fs-badge { bottom: 5.4rem; left: 0.9rem; padding: 0.45rem 0.9rem 0.45rem 0.45rem; font-size: 0.72rem; }
  .fs-badge-logo { width: 20px; height: 20px; }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }

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

  .btn-big { padding: 1rem 2.4rem; }

  #skip-intro { right: 1rem; bottom: 1.25rem; }

  #lightbox { padding: 4.5rem 0.75rem; }
  #lightbox-prev { left: 0.5rem; }
  #lightbox-next { right: 0.5rem; }
}

/* ----------------------------------------------------------------
   17. RIDUZIONE DEL MOVIMENTO
   Il JS salta le animazioni GSAP; qui copriamo il resto.
---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  #main-content { opacity: 1; }
}
