/* ===================================================================
   Capolavoro Dada Parrucchiera — Stylesheet
   Palette: premium grey + premium red, white type
   Type: Cormorant Garamond (display) + Jost (text)
=================================================================== */

:root {
  /* Premium grey */
  --grey-900: #161618;
  --grey-850: #1c1c1e;
  --grey-800: #232326;
  --grey-700: #2e2e32;
  --grey-600: #3a3a3f;
  --grey-300: #c7c7cc;
  --grey-200: #e4e4e7;
  --grey-100: #f4f4f5;

  /* Premium red (deep bordeaux) */
  --red: #9b2233;
  --red-deep: #7d1828;
  --red-soft: #b8404f;

  --white: #ffffff;
  --ink: #1c1c1e;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-text: "Jost", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  font-weight: 300;
  color: var(--grey-200);
  background: var(--grey-850);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, iframe { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  color: var(--white);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Shared section bits ---------- */
.section { padding-block: clamp(4rem, 9vw, 8rem); }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red-soft);
  margin-bottom: 1rem;
  font-weight: 500;
}

.section-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 1.25rem;
}

.section-lead {
  max-width: 56ch;
  color: var(--grey-300);
  font-size: 1.05rem;
}

.section-head {
  text-align: center;
  max-width: 64ch;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}
.section-head .section-lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2.1rem;
  font-family: var(--font-text);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.06); transform: translateY(-2px); }

/* ===================================================================
   HEADER
=================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(22,22,24,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}
.brand { display: flex; flex-direction: column; line-height: 1.08; gap: 0.1rem; }
.brand-name {
  font-family: var(--font-text);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--grey-300);
}
.brand-sub {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
}

.nav { display: flex; gap: 2rem; }
.nav a {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-200);
  position: relative;
  padding-block: 0.25rem;
  transition: color var(--transition);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--red-soft);
  transition: width var(--transition);
}
.nav a:hover { color: var(--white); }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 1.25rem; }

.lang-switch { display: flex; align-items: center; gap: 0.35rem; }
.lang-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-text);
  font-size: 0.8rem; letter-spacing: 0.1em;
  color: var(--grey-300);
  padding: 0.2rem;
  transition: color var(--transition);
}
.lang-btn.is-active { color: var(--white); font-weight: 600; }
.lang-btn:hover { color: var(--red-soft); }
.lang-divider { color: var(--grey-600); }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 26px; height: 2px; background: var(--white);
  transition: var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================================
   HERO
=================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(22,22,24,0.55), rgba(123,24,40,0.45)),
    radial-gradient(circle at 70% 30%, var(--grey-700), var(--grey-900));
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, var(--grey-850) 0%, transparent 45%),
    rgba(22, 22, 24, 0.45);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 760px; padding-block: 8rem; }
.hero-eyebrow {
  font-size: 0.82rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--red-soft); margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero-text {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--grey-200);
  max-width: 52ch;
  margin-bottom: 2.5rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 2rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid rgba(255,255,255,0.4); border-radius: 14px;
  display: flex; justify-content: center;
}
.scroll-cue span {
  width: 3px; height: 8px; background: var(--white); border-radius: 2px; margin-top: 7px;
  animation: scrollCue 1.8s infinite;
}
@keyframes scrollCue { 0%{opacity:0;transform:translateY(-4px)} 50%{opacity:1} 100%{opacity:0;transform:translateY(10px)} }

/* ===================================================================
   ABOUT
=================================================================== */
.about { background: var(--grey-900); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.about-media {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background-image: url("../assets/img/salone.png");
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}
.about-body p { margin-bottom: 1.1rem; color: var(--grey-300); }
.about-points { list-style: none; padding: 0; margin-top: 1.8rem; }
.about-points li {
  position: relative; padding-left: 1.8rem; margin-bottom: 0.85rem; color: var(--grey-200);
}
.about-points li::before {
  content: ""; position: absolute; left: 0; top: 0.65em;
  width: 18px; height: 1px; background: var(--red-soft);
}

/* ===================================================================
   SERVICES
=================================================================== */
.services { background: var(--grey-850); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  border: 1px solid var(--grey-700);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  background: linear-gradient(180deg, var(--grey-800), var(--grey-850));
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--red); transform: scaleY(0); transform-origin: top; transition: var(--transition);
}
.service-card:hover { transform: translateY(-6px); border-color: var(--grey-600); box-shadow: 0 24px 50px rgba(0,0,0,0.45); }
.service-card:hover::before { transform: scaleY(1); }
.service-card h3 { font-size: 1.6rem; margin-bottom: 0.75rem; }
.service-card p { color: var(--grey-300); margin-bottom: 1.4rem; }
.service-price {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red-soft); font-weight: 500;
}
.services-note {
  text-align: center; margin-top: 3rem; color: var(--grey-300); font-style: italic;
  font-family: var(--font-display); font-size: 1.25rem;
}

/* ===================================================================
   GALLERY
=================================================================== */
.gallery { background: var(--grey-900); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.15);
  transition: var(--transition);
}
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(155,34,51,0.18), rgba(22,22,24,0.5));
  opacity: 0.6; transition: var(--transition);
}
.gallery-item:hover { filter: grayscale(0); transform: scale(1.01); }
.gallery-item:hover::after { opacity: 0.2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===================================================================
   REVIEWS
=================================================================== */
.reviews {
  background: linear-gradient(135deg, var(--grey-850), var(--red-deep) 220%);
}
.reviews-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.reviews-body p { color: var(--grey-200); margin-bottom: 1.5rem; }
.reviews-score {
  font-family: var(--font-display);
  font-size: 1.5rem; color: var(--white); margin-bottom: 1rem !important;
}
.reviews-score strong { font-size: 2.4rem; color: var(--red-soft); }
.reviews-qr { display: flex; justify-content: center; }
.qr-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  max-width: 260px;
  box-shadow: 0 24px 50px rgba(0,0,0,0.4);
}
.qr-card img { width: 200px; height: 200px; margin: 0 auto 1rem; }
.qr-card p { color: var(--ink); font-size: 0.82rem; line-height: 1.5; }

/* ===================================================================
   CONTACT
=================================================================== */
.contact { background: var(--grey-900); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}
.contact-list { list-style: none; padding: 0; margin: 2rem 0; }
.contact-list li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--grey-700);
  display: flex; flex-direction: column; gap: 0.2rem;
}
.contact-label {
  font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--red-soft);
}
.contact-list a:hover { color: var(--red-soft); }
.contact-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.contact-map { position: relative; min-height: 360px; }
.contact-map iframe {
  width: 100%; height: 100%; min-height: 360px;
  border: 0; border-radius: var(--radius);
  filter: grayscale(0.4) contrast(1.05);
}
.map-consent {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; text-align: center; padding: 1.5rem;
  background:
    linear-gradient(160deg, rgba(155,34,51,0.2), transparent),
    repeating-linear-gradient(45deg, var(--grey-800), var(--grey-800) 14px, var(--grey-700) 14px, var(--grey-700) 28px);
  border-radius: var(--radius);
}
.map-consent p { color: var(--grey-200); max-width: 30ch; font-size: 0.95rem; }
.contact-map.loaded .map-consent { display: none; }

/* ===================================================================
   FOOTER
=================================================================== */
.site-footer { background: var(--grey-900); border-top: 1px solid var(--grey-700); padding-block: 3rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; flex-direction: column; }
.footer-tag { font-size: 0.65rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--red-soft); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-nav a, .footer-nav .link-btn { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-300); transition: color var(--transition); }
.footer-nav a:hover, .footer-nav .link-btn:hover { color: var(--white); }
.link-btn { background: none; border: none; cursor: pointer; font-family: var(--font-text); padding: 0; }
.footer-copy { width: 100%; text-align: center; color: var(--grey-600); font-size: 0.78rem; margin-top: 1rem; }

/* ===================================================================
   COOKIE BANNER
=================================================================== */
.cookie-banner {
  position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%);
  width: min(960px, calc(100% - 2rem));
  z-index: 100;
  background: var(--grey-800);
  border: 1px solid var(--grey-600);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 30px 70px rgba(0,0,0,0.6);
  animation: cookieIn 0.5s ease;
}
@keyframes cookieIn { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
.cookie-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; justify-content: space-between; }
.cookie-text { flex: 1 1 360px; }
.cookie-text h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.cookie-text p { font-size: 0.88rem; color: var(--grey-300); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie-actions .btn { padding: 0.7rem 1.3rem; font-size: 0.72rem; }
.cookie-prefs {
  margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--grey-600);
  display: flex; flex-direction: column; gap: 0.8rem;
}
.cookie-pref { display: flex; align-items: center; gap: 0.7rem; font-size: 0.9rem; color: var(--grey-200); cursor: pointer; }
.cookie-pref em { color: var(--grey-600); font-style: italic; }
.cookie-save { align-self: flex-start; margin-top: 0.5rem; padding: 0.7rem 1.6rem; font-size: 0.72rem; }

/* ===================================================================
   REVEAL ANIMATION
=================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===================================================================
   RESPONSIVE
=================================================================== */
@media (max-width: 900px) {
  .about-grid, .reviews-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { aspect-ratio: 16 / 10; }
  .reviews-qr { order: -1; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(80%, 320px);
    flex-direction: column;
    gap: 1.5rem;
    background: var(--grey-900);
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1rem; }
  .nav-toggle { display: flex; z-index: 60; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .hero-cta .btn, .contact-cta .btn { flex: 1 1 100%; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
