/* ===========================================================
   Giayra Beauty — stile ispirato alla locandina dell'evento
   =========================================================== */

:root{
  /* palette */
  --cream:        #FFFBF8;
  --rose-pale:    #F7E2E7;
  --rose-pale-2:  #F0CBD6;
  --rose:         #D99DAF;
  --rose-deep:    #B06A82;
  --rose-dark:    #6E3B4E;
  --leaf-1:       #7C9473;
  --leaf-2:       #A9BE9C;
  --ink:          #3A2E33;
  --ink-soft:     #6B5C61;

  /* type */
  --font-script: 'Playball', cursive;
  --font-display: 'Cinzel', serif;
  --font-serif:  'Cormorant Garamond', serif;
  --font-sans:   'Jost', sans-serif;

  --container: 1080px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; text-decoration: none; }
img,svg{ max-width: 100%; display: block; }

:focus-visible{
  outline: 2px solid var(--rose-dark);
  outline-offset: 3px;
}

/* ---------- shared layout ---------- */
.section{ padding: 6.5rem 1.5rem; position: relative; }
.section-inner{ max-width: var(--container); margin: 0 auto; }
.section-inner--split{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}
.section-inner--split-rev{ grid-template-columns: 1.1fr 0.9fr; }
.section-inner--split-rev > *:first-child{ order: 2; }
.section-inner--split-rev > *:last-child{ order: 1; }

.eyebrow-script{
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--rose-deep);
  margin: 0 0 .25rem;
}
.section-title{
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  color: var(--rose-dark);
  margin: 0 0 1rem;
  text-align: center;
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
}
.section-title--left{
  text-align: left;
  margin-left: 0;
}
.section-lead{
  text-align: center;
  max-width: 46ch;
  margin: 0 auto 3.5rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.section--treatments .section-inner > .eyebrow-script,
.section--treatments .section-inner > .section-title{
  text-align: center;
}

/* ---------- buttons ---------- */
.btn{
  display: inline-block;
  padding: .85rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: .95rem;
  letter-spacing: .02em;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn--solid{
  background: var(--rose-deep);
  color: var(--cream);
  border: 1px solid var(--rose-deep);
}
.btn--solid:hover{ background: var(--rose-dark); border-color: var(--rose-dark); transform: translateY(-2px); }
.btn--outline{
  background: transparent;
  color: var(--rose-dark);
  border: 1px solid var(--rose-deep);
}
.btn--outline:hover{ background: var(--rose-deep); color: var(--cream); transform: translateY(-2px); }

/* ---------- header ---------- */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  background: rgba(255,251,248,0);
  transition: background .35s ease, box-shadow .35s ease;
}
.site-header.is-scrolled{
  background: rgba(255,251,248,.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 24px rgba(110,59,78,.08);
}
.header-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-mark{
  font-family: var(--font-script);
  font-size: 1.65rem;
  color: var(--rose-dark);
}
.brand-mark span{ font-size: 1rem; margin-left: .25rem; color: var(--rose-deep); }

.site-nav{ display: flex; gap: 2rem; }
.site-nav a{
  font-size: .92rem;
  color: var(--ink);
  position: relative;
  padding-bottom: 3px;
}
.site-nav a::after{
  content: '';
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--rose-deep);
  transition: right .3s ease;
}
.site-nav a:hover::after{ right: 0; }

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.nav-toggle span{
  width: 24px; height: 1.5px; background: var(--rose-dark); display: block;
}

/* ---------- hero ---------- */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(240,203,214,.55), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(217,157,175,.4), transparent 55%),
    var(--cream);
}
.hero-content{
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
  max-width: 640px;
}
.hero-emblem{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.6rem;
}
.hero-crown{
  width: clamp(210px, 40vw, 360px);
  height: auto;
  margin-bottom: .3rem;
  filter: drop-shadow(0 3px 6px rgba(184,134,11,.25));
}
.hero-logo{
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1em;
}
.hero-logo__main{
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.5rem, 8vw, 4.4rem);
  letter-spacing: .05em;
  line-height: 1;
  background: linear-gradient(155deg, #FBEFC0 10%, #D9B24C 40%, #B8860B 65%, #F3DE94 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #B8860B; /* fallback per browser senza background-clip:text */
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 2px rgba(110,59,78,.15));
}
.hero-logo__sub{
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(1.05rem, 3vw, 1.6rem);
  letter-spacing: .5em;
  padding-left: .5em; /* bilancia la tracking finale */
  color: var(--rose-deep);
  margin-top: .35em;
}
.hero-logo__type{
  display: flex;
  align-items: center;
  gap: .9em;
  margin: 1em 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: #B8860B;
}
.hero-logo__divider{
  display: flex;
  align-items: center;
  gap: .6em;
  margin: .7em 0 0;
}
.type-line{
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #B8860B 50%, transparent);
  display: inline-block;
}
.type-line--sm{ width: 18px; }
.hero-heart{ width: 13px; height: 13px; }
.hero-tagline{
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  color: var(--ink);
  margin: 2rem 0 2.6rem;
}
.hero-actions{
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll{
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1px solid var(--rose-deep);
  border-radius: 999px;
  z-index: 2;
}
.hero-scroll span{
  position: absolute;
  top: 6px; left: 50%;
  width: 3px; height: 8px;
  margin-left: -1.5px;
  background: var(--rose-deep);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot{
  0%{ transform: translateY(0); opacity: 1; }
  70%{ transform: translateY(12px); opacity: 0; }
  100%{ transform: translateY(0); opacity: 0; }
}

/* botanical corner decorations
   .corner-decor = livello posizionato e animato dal parallasse (JS)
   .petals (svg)  = specchiamento statico, indipendente dal movimento */
.corner-decor{
  position: absolute;
  width: clamp(130px, 21vw, 230px);
  z-index: 1;
  opacity: .95;
  pointer-events: none;
  will-change: transform;
}
.corner-decor .petals{ width: 100%; height: auto; display: block; }

.corner-decor--tl{ top: -12px; left: -12px; }
.corner-decor--tr{ top: -12px; right: -12px; }
.corner-decor--tr .petals{ transform: scaleX(-1); }
.corner-decor--bl{ bottom: -12px; left: -12px; }
.corner-decor--bl .petals{ transform: scaleY(-1); }
.corner-decor--br{ bottom: -12px; right: -12px; }
.corner-decor--br .petals{ transform: scale(-1,-1); }

/* ---------- trattamenti ---------- */
.section--treatments{ background: var(--cream); }
.petal-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem 1.8rem;
}
.petal-card{
  background: var(--rose-pale);
  padding: 2.4rem 1.8rem 2rem;
  text-align: center;
  border-radius: 130px 130px 18px 18px;
  transition: transform .3s ease, background .3s ease;
}
.petal-card:hover{ transform: translateY(-6px); background: var(--rose-pale-2); }
.petal-card__icon{
  width: 60px; height: 60px;
  margin: 0 auto 1.1rem;
  color: var(--rose-dark);
}
.petal-card h3{
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--rose-dark);
  margin: 0 0 .5rem;
}
.petal-card p{
  font-size: .92rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- chi siamo / dove siamo (split sections) ---------- */
.section--about{ background: var(--rose-pale); }
.section--location{ background: var(--cream); }

.about-text p, .location-text p{ color: var(--ink-soft); }
.about-text p + p{ margin-top: 1rem; }

.location-address{
  font-style: normal;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0 0 1.6rem;
  line-height: 1.6;
}
.location-note{ color: var(--rose-deep); font-style: italic; }

.location-hours{
  margin: 0 0 2rem;
  display: grid;
  gap: .5rem;
}
.location-hours > div{
  display: flex;
  justify-content: space-between;
  max-width: 320px;
  border-bottom: 1px solid var(--rose-pale-2);
  padding-bottom: .4rem;
  font-size: .95rem;
}
.location-hours dt{ color: var(--ink-soft); font-weight: 400; }
.location-hours dd{ margin: 0; color: var(--rose-dark); font-weight: 500; }

.location-map iframe{
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 12px;
  filter: saturate(.85);
}

/* ---------- footer ---------- */
.site-footer{
  position: relative;
  background: var(--rose-dark);
  color: var(--rose-pale);
  padding: 4.5rem 1.5rem 2.5rem;
  text-align: center;
  overflow: hidden;
}
.corner-decor--footer{
  top: -18px; right: -18px;
  width: clamp(120px, 18vw, 200px);
  opacity: .8;
}
.footer-inner{ position: relative; z-index: 1; max-width: var(--container); margin: 0 auto; }
.footer-brand{
  font-family: var(--font-script);
  font-size: 2rem;
  margin: 0;
}
.footer-brand span{ font-size: .55em; }
.footer-tagline{
  font-family: var(--font-serif);
  font-style: italic;
  opacity: .85;
  margin: .4rem 0 1.8rem;
}
.footer-links{
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: .9rem;
  margin-bottom: 2rem;
}
.footer-links a{ opacity: .9; }
.footer-links a:hover{ opacity: 1; text-decoration: underline; }
.footer-copy{
  font-size: .78rem;
  opacity: .65;
  margin: 0;
}

/* ---------- whatsapp floating button ---------- */
.whatsapp-float{
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 58px; height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.4);
  z-index: 50;
  animation: floatPulse 2.6s ease-in-out infinite;
}
.whatsapp-float svg{ width: 30px; height: 30px; }
.whatsapp-float:hover{ transform: scale(1.06); }
@keyframes floatPulse{
  0%, 100%{ box-shadow: 0 10px 26px rgba(37,211,102,.4); }
  50%{ box-shadow: 0 10px 30px rgba(37,211,102,.65), 0 0 0 8px rgba(37,211,102,.12); }
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 860px){
  .section-inner--split, .section-inner--split-rev{
    grid-template-columns: 1fr;
  }
  .section-inner--split-rev > *:first-child,
  .section-inner--split-rev > *:last-child{ order: 0; }
  .about-visual{ max-width: 280px; margin: 0 auto 2rem; }
  .section-title--left{ text-align: center; margin: 0 auto 1rem; }
  .location-address, .location-hours{ text-align: center; }
  .location-hours > div{ margin: 0 auto; }
  .location-hours{ justify-items: center; }
}

@media (max-width: 720px){
  .petal-grid{ grid-template-columns: repeat(2, 1fr); }
  .site-nav{
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    padding: .5rem 1.5rem 1.2rem;
    box-shadow: 0 12px 24px rgba(110,59,78,.1);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .site-nav.is-open{
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav a{ padding: .7rem 0; border-bottom: 1px solid var(--rose-pale); }
  .nav-toggle{ display: flex; }
}

@media (max-width: 480px){
  .petal-grid{ grid-template-columns: 1fr; }
  .section{ padding: 4.5rem 1.2rem; }
  .whatsapp-float{ right: 1rem; bottom: 1rem; width: 52px; height: 52px; }
  .whatsapp-float svg{ width: 26px; height: 26px; }
}
