/* ==========================================================================
   Salone Elisabetta - foglio di stile
   Palette: rosso del logo (#CA463D) su crema caldo, testo quasi nero.
   Font: Prata (titoli, come il vecchio sito) + Manrope (testo).
   ========================================================================== */

:root {
  --bg: #faf7f2;
  --bg-2: #f1ebe2;
  --bg-card: #ffffff;
  --ink: #141414;
  --ink-2: #4a4541;
  --ink-3: #7a736d;
  --ink-4: #a39b93;
  --line: rgba(20, 20, 20, .1);
  --accent: #ca463d;
  --accent-deep: #a83730;
  --accent-soft: rgba(202, 70, 61, .1);
  --dark: #141414;
  --dark-ink: #f6f2ec;
  --wa: #25d366;
  --display: 'Prata', Georgia, 'Times New Roman', serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(20, 20, 20, .08);
  --container: 1200px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--alt { background: var(--bg-2); }
.section--dark { background: var(--dark); color: var(--dark-ink); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(246, 242, 236, .8); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.12rem; color: var(--ink-2); }
.section--dark .lead { color: rgba(246, 242, 236, .8); }

/* Bottoni ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #1fb858; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--ghost-light:hover { background: #fff; color: var(--ink); }
.btn--sm { padding: 10px 18px; font-size: 14px; }

/* Header ----------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.header__logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--accent); }
.header__cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px; border-radius: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; color: #fff; min-height: min(88vh, 820px);
  display: flex; align-items: flex-end; overflow: hidden;
  background: var(--dark);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, .25) 0%, rgba(10, 10, 10, .45) 45%, rgba(10, 10, 10, .85) 100%);
}
.hero__inner { position: relative; z-index: 1; padding: clamp(96px, 14vw, 160px) 0 clamp(48px, 6vw, 72px); max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(255, 255, 255, .88); max-width: 560px; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero__values { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .25); }
.hero__values li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.hero__values li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Problema / soluzione --------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.split__intro h2 { margin-bottom: .6em; }
.plist { display: grid; gap: 16px; }
.plist li { padding-left: 28px; position: relative; color: var(--ink-2); }
.plist li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 2px; background: var(--accent); }
.plist strong { color: var(--ink); }
.cards { display: grid; gap: 20px; }
.card {
  background: var(--bg-card); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); border: 1px solid rgba(20, 20, 20, .04);
}
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; color: var(--ink-2); }
.card__num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: 14px; font-size: 15px;
}

/* Servizi ---------------------------------------------------------------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service {
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: grid; grid-template-columns: 200px 1fr;
}
.service__img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; display: block; }
.service__body { padding: 26px 28px; position: relative; z-index: 1; background: var(--bg-card); }
.service__body h3 { margin-bottom: .25em; }
.service__desc { color: var(--ink-2); font-size: .95rem; margin-bottom: 16px; }
.price { display: grid; gap: 8px; }
.price li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px dashed var(--line); padding-top: 8px; }
.price li:first-child { border-top: 0; padding-top: 0; }
.price__name { color: var(--ink); }
.price__val { font-weight: 800; white-space: nowrap; color: var(--accent); font-variant-numeric: tabular-nums; }
.price__val small { font-weight: 600; color: var(--ink-3); font-size: .8em; }
.services__note { margin-top: 28px; color: var(--ink-3); font-size: .92rem; max-width: 760px; }

/* Babylight -------------------------------------------------------------- */
.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.feature__media { position: sticky; top: 100px; }
.feature__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.feature__media figcaption { margin-top: 12px; font-size: .9rem; color: var(--ink-3); }
.feature__text h3 { margin-top: 1.6em; }
.feature__text h3:first-of-type { margin-top: 0; }
.checks { display: grid; gap: 12px; margin: 10px 0 18px; }
.checks li { position: relative; padding-left: 32px; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checks strong { color: var(--ink); }

/* Tre passi -------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { text-align: center; padding: 0 12px; }
.step img { width: 180px; height: 180px; margin: 0 auto 20px; }
.step__n { font-family: var(--display); color: var(--accent); font-size: 1.1rem; letter-spacing: .1em; margin-bottom: 6px; }
.step p { color: var(--ink-2); margin: 0; }

/* Chi siamo -------------------------------------------------------------- */
.about { display: grid; grid-template-columns: 420px 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about__media { position: relative; }
.about__media::before {
  content: ""; position: absolute; inset: 12% -6% -4% 10%; border-radius: var(--radius);
  background: var(--accent-soft);
}
.about__media img { position: relative; width: 100%; }
.about__caption { position: relative; margin-top: 14px; font-size: .92rem; color: var(--ink-3); text-align: center; }

/* Galleria --------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery button {
  padding: 0; border: 0; background: var(--bg-2); border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in;
  aspect-ratio: 1; transition: transform .2s;
}
.gallery button:hover { transform: scale(1.02); }
.gallery img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 10, 10, .88); }
.lightbox img { max-height: 84vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: var(--radius-sm); }
.lightbox__bar { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 12px 4px 0; color: #fff; font-size: 13px; }
.lightbox__count { white-space: nowrap; padding: 0 6px; }
.lightbox__bar button { background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 700; font-size: 13px; white-space: nowrap; }
.lightbox__bar button:hover { background: rgba(255, 255, 255, .25); }

/* Davines ---------------------------------------------------------------- */
.davines { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.davines__logo { width: 220px; margin-bottom: 24px; }
.davines__cols { display: grid; gap: 24px; }
.davines__cols h3 { font-size: 1.2rem; margin-bottom: .3em; }

/* Recensioni ------------------------------------------------------------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: var(--bg-card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.review__stars { color: #e3a008; letter-spacing: 2px; font-size: 15px; }
.review blockquote { margin: 0; font-size: 1.02rem; color: var(--ink-2); flex: 1; }
.review cite { font-style: normal; font-weight: 700; font-size: .92rem; }

/* FAQ -------------------------------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--bg-card); border-radius: var(--radius-sm); border: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 800;
}
.faq details[open] summary::after { content: "-"; }
.faq .faq__a { padding: 0 22px 20px; color: var(--ink-2); }

/* Contatti --------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.hours { display: grid; gap: 0; border-top: 1px solid var(--line); }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours li span:last-child { text-align: right; color: var(--ink-2); }
.hours .closed span:last-child { color: var(--accent); font-weight: 700; }
.contact__list { display: grid; gap: 14px; margin-top: 28px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 2px; }
.contact__list a { color: var(--ink); font-weight: 600; }
.contact__list a:hover { color: var(--accent); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.socials a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-card); color: var(--ink); font-weight: 700; font-size: 14px;
}
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.socials svg { width: 18px; height: 18px; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-2); position: relative; aspect-ratio: 4 / 3; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map__placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center; padding: 24px; background: linear-gradient(180deg, var(--bg-2), #e6ded2);
}
.map__placeholder p { margin: 0; color: var(--ink-2); max-width: 320px; font-size: .95rem; }
.map__placeholder .map__pin { width: 44px; height: 44px; color: var(--accent); }
.map__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Banda CTA -------------------------------------------------------------- */
.cta-band { background: var(--accent); color: #fff; padding: clamp(48px, 7vw, 80px) 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .9); max-width: 620px; margin: 0 auto 28px; }
.cta-band .btn--ghost-light { border-color: rgba(255, 255, 255, .8); }
.cta-band .btn--wa { box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.cta-band .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* WhatsApp flottante ----------------------------------------------------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* Pagine interne (privacy) ----------------------------------------------- */
.page { max-width: 820px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter); }
.page h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page h2 { font-size: 1.5rem; margin-top: 2em; }
.page ul { list-style: disc; padding-left: 22px; }
.page li { margin-bottom: .5em; color: var(--ink-2); }
.page p { color: var(--ink-2); }

/* Footer minimo ---------------------------------------------------------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 26px 0; font-size: 14px; color: var(--ink-3); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 10px 24px; flex-wrap: wrap; }
.footer__copy { margin: 0; }
.footer__links { display: flex; gap: 18px; }
.footer__links a { color: var(--ink-2); font-weight: 600; }
.footer__links a:hover { color: var(--accent); }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 340px 1fr; }
  .service { grid-template-columns: 160px 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 0 12px; display: none;
    box-shadow: 0 20px 30px rgba(20, 20, 20, .08);
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 14px var(--gutter); border-top: 1px solid var(--line); }
  .header__cta .btn { display: none; }
  .split, .feature, .davines, .contact, .about { grid-template-columns: 1fr; }
  .feature__media { position: static; }
  .feature__media img { aspect-ratio: 4 / 3; }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .reviews { grid-template-columns: 1fr; }
  .about__media { max-width: 360px; margin: 0 auto; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .header__inner { height: 68px; }
  .nav { top: 68px; }
  .header__logo img { height: 38px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .service { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .service__img { height: auto; aspect-ratio: 16 / 9; align-self: start; }
  .hero { min-height: min(92vh, 760px); min-height: min(92svh, 760px); }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .card, .review { padding: 22px; }
  .footer__inner { padding-right: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .gallery button, .wa-float { transition: none; }
}
