/* ================================================================
   NAIL STUDIO N.2 — Milano · Stadera
   Palette dal salone: marmo verde dei banchi, pietra chiara dei
   pavimenti, carbone delle poltrone, rosso smalto OPI.
   Type: Bodoni Moda (display) + Figtree (testo).
   ================================================================ */

:root {
  --stone: #F3F1EB;
  --stone-2: #E9E5DB;
  --verde: #3E5C50;
  --verde-deep: #2B4237;
  --carbone: #21261F;
  --ink: #262B26;
  --ink-soft: #5A6158;
  --smalto: #B03A3C;
  --rosa: #E8CCC5;
  --legno: #B99B77;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow: 0 18px 50px -22px rgba(33, 38, 31, .35);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: 'Bodoni Moda', 'Didot', serif; font-weight: 600; line-height: 1.08; margin: 0 0 .5em; color: var(--ink); letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--verde); }

p { margin: 0 0 1em; }
a { color: var(--verde); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--smalto); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--carbone); color: #fff; padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { left: 8px; top: 8px; }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--smalto); margin-bottom: 1.1rem;
}
.eyebrow-light { color: var(--rosa); }

/* ---------------- Intro: le unghie che si smaltano ---------------- */
.preloader {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center; text-align: center;
  background: linear-gradient(160deg, var(--verde) 0%, var(--verde-deep) 100%);
  transition: transform .8s cubic-bezier(.65, 0, .35, 1), visibility 0s .8s;
}
.preloader.is-done { transform: translateY(-101%); visibility: hidden; }
html:not(.js) .preloader { display: none; }

.preloader__nails { width: min(180px, 44vw); height: auto; }
.pl-outline { fill: rgba(243, 241, 235, .07); stroke: rgba(243, 241, 235, .55); stroke-width: 2; }
.pl-fill {
  transform: scaleY(0);
  transform-box: fill-box; transform-origin: bottom;
  animation: pl-fill .5s cubic-bezier(.4, 0, .3, 1) var(--d) forwards;
}
@keyframes pl-fill { to { transform: scaleY(1); } }

.preloader__name {
  display: block; margin-top: 26px;
  font-family: 'Bodoni Moda', serif; font-weight: 600; font-size: 2rem; color: var(--stone);
  opacity: 0; transform: translateY(18px);
  animation: pl-in .8s ease .15s forwards;
}
.preloader__name i { font-style: italic; font-weight: 400; color: var(--rosa); }
.preloader__sub {
  display: block; margin-top: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(243, 241, 235, .65);
  opacity: 0; transform: translateY(14px);
  animation: pl-in .8s ease .3s forwards;
}
@keyframes pl-in { to { opacity: 1; transform: none; } }

.preloader__caption {
  display: block; margin-top: 22px; min-height: 1.6em;
  font-size: .95rem; color: rgba(243, 241, 235, .75);
}
.preloader__caption.flip { animation: pl-caption .45s ease; }
@keyframes pl-caption {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------- Topbar ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem clamp(1rem, 4vw, 2.4rem);
  background: rgba(243, 241, 235, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(38, 43, 38, .08);
}

.brand { display: flex; align-items: baseline; gap: .45rem; text-decoration: none; color: var(--ink); }
.brand-name { font-family: 'Bodoni Moda', serif; font-weight: 600; font-size: 1.3rem; letter-spacing: .02em; }
.brand-n {
  font-family: 'Bodoni Moda', serif; font-style: italic; font-size: 1.05rem;
  color: var(--stone); background: var(--verde); padding: .05rem .5rem .15rem;
  border-radius: 999px 999px 4px 4px; /* archetto */
}

.nav { display: flex; align-items: center; gap: clamp(.9rem, 2.2vw, 1.8rem); }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem; }
.nav a:hover { color: var(--verde); }
.nav .nav-cta { display: none; }
.nav-close { display: none; }
.nav[hidden] { display: none; }

.topbar-actions { display: flex; align-items: center; gap: .7rem; }
.lang {
  font: inherit; font-weight: 700; font-size: .85rem; letter-spacing: .06em;
  border: 1.5px solid var(--ink); background: none; color: var(--ink);
  padding: .32rem .65rem; border-radius: 999px; cursor: pointer;
}
.lang:hover { background: var(--ink); color: var(--stone); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: .5rem; cursor: pointer; }
.burger span { width: 24px; height: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }

/* ---------------- Bottoni ---------------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: 999px; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--verde); color: #fff; box-shadow: var(--shadow); }
.btn-solid:hover { background: var(--verde-deep); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--stone); }
.btn-light { background: var(--stone); color: var(--verde-deep); }
.btn-outline { border: 1.5px solid rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-small { padding: .5rem 1.1rem; font-size: .9rem; }

/* ---------------- La mensola degli smalti (firma) ---------------- */
.shelf {
  display: flex; align-items: flex-end; gap: 7px;
  padding-bottom: 6px; border-bottom: 3px solid var(--legno);
  width: fit-content; max-width: 100%;
  margin: 1.4rem 0 1.6rem;
}
.polish { width: 11px; height: 26px; border-radius: 2px 2px 1px 1px; position: relative; background: var(--sw, #ccc); }
.polish::before {
  content: ""; position: absolute; top: -7px; left: 2.5px;
  width: 6px; height: 7px; background: var(--carbone); border-radius: 2px 2px 0 0;
}
.shelf-wide { margin: 0 auto 2.6rem; }
.shelf-foot { margin: 2.2rem auto 1.4rem; border-color: rgba(255,255,255,.25); }
@media (hover: hover) {
  .polish { transition: transform .18s ease; }
  .shelf:hover .polish:hover { transform: translateY(-4px); }
}

/* ---------------- Hero ---------------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(2.4rem, 6vh, 5rem) clamp(1rem, 4vw, 2.4rem) clamp(2.2rem, 5vh, 4rem);
}
.hero-sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.4rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .6rem; }

.rating-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--white); border: 1px solid rgba(38,43,38,.1);
  padding: .45rem .85rem; border-radius: 999px; font-size: .88rem; color: var(--ink-soft);
  text-decoration: none;
}
.rating-chip strong { color: var(--smalto); font-size: .95rem; }

.hero-media { position: relative; }
.arch { margin: 0; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .arch { aspect-ratio: 4 / 5; max-height: 620px; }
.hero-media .arch img { object-position: 30% center; height: 100%; }
.hero-badge {
  position: absolute; left: 50%; bottom: -1rem; transform: translateX(-50%);
  background: var(--carbone); color: var(--stone); white-space: nowrap;
  font-size: .85rem; font-weight: 600; letter-spacing: .04em;
  padding: .55rem 1.2rem; border-radius: 999px; box-shadow: var(--shadow); margin: 0;
}

/* ---------------- Info strip ---------------- */
.strip {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: .5rem 1.1rem; text-align: center;
  background: var(--carbone); color: var(--stone);
  font-size: .92rem; font-weight: 500; letter-spacing: .03em;
  padding: .85rem clamp(1rem, 4vw, 2.4rem);
}
.strip-dot { font-size: .45rem; color: var(--legno); }

/* ---------------- Sezioni ---------------- */
.section { padding: clamp(3.2rem, 8vh, 6rem) clamp(1rem, 4vw, 2.4rem); }
.section-head { max-width: var(--wrap); margin: 0 auto 2.6rem; }
.section-alt { background: var(--stone-2); }
.section-dark { background: var(--carbone); }
.section-dark h2, .section-dark h3 { color: var(--stone); }
.section-dark .eyebrow { color: var(--rosa); }

/* ---------------- Servizi ---------------- */
.services {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem; max-width: var(--wrap); margin: 0 auto;
}
.service {
  background: var(--white); border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.4rem; border: 1px solid rgba(38,43,38,.07);
  display: flex; flex-direction: column;
}
.service h3 { margin: 1.05rem 0 .35rem; }
.service > p { color: var(--ink-soft); font-size: .96rem; flex-grow: 1; }
.swatch {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sw); color: #fff;
  font-weight: 700; font-size: .82rem; letter-spacing: .05em;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.4);
}
.price-list { list-style: none; margin: .9rem 0 0; padding: .9rem 0 0; border-top: 1px dashed rgba(38,43,38,.18); }
.price-list li { display: flex; align-items: baseline; gap: .6rem; font-size: .95rem; padding: .22rem 0; }
.price-list li i { flex: 1; border-bottom: 1px dotted rgba(38,43,38,.25); transform: translateY(-4px); }
.price-list li span:last-child { font-weight: 700; white-space: nowrap; }
.services-note { max-width: var(--wrap); margin: 1.8rem auto 0; font-size: .9rem; color: var(--ink-soft); }

/* ---------------- Il salone ---------------- */
.salone-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem); max-width: var(--wrap); margin: 0 auto; align-items: start;
}
.salone-points { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.salone-points li { padding: .55rem 0 .55rem 1.9rem; position: relative; border-bottom: 1px solid rgba(38,43,38,.09); font-weight: 500; }
.salone-points li::before {
  content: ""; position: absolute; left: 2px; top: .95em;
  width: 10px; height: 16px; background: var(--verde);
  border-radius: 999px 999px 2px 2px;
}
.salone-media { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.salone-media .arch { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.salone-media .arch img { height: 100%; object-fit: cover; object-position: center 40%; }
.frame { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Galleria ---------------- */
#galleria { padding-top: clamp(2.4rem, 6vh, 4rem); }
.gallery {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 240px; gap: 1.1rem;
  max-width: var(--wrap); margin: 0 auto;
}
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.045); }
.gallery .tall { grid-row: span 2; }

/* ---------------- Recensioni ---------------- */
.section-dark .section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .2rem 1.4rem; }
.section-dark .section-head .eyebrow { grid-column: 1 / -1; }
.section-dark .section-head h2 { margin-bottom: 0; }
.review-badges { display: flex; flex-wrap: wrap; gap: .6rem; padding-bottom: .5rem; }
.rating-chip-dark { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); color: var(--stone); }
.reviews {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem; max-width: var(--wrap); margin: 0 auto;
}
.review {
  margin: 0; padding: 1.6rem 1.5rem 1.3rem; border-radius: var(--radius);
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.09);
  color: var(--stone); display: flex; flex-direction: column;
}
.review p { font-family: 'Bodoni Moda', serif; font-size: 1.12rem; line-height: 1.45; flex-grow: 1; }
.review cite { font-style: normal; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--legno); }

/* ---------------- Dove siamo ---------------- */
.dove-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4rem); max-width: var(--wrap); margin: 0 auto; align-items: center;
}
.dove-text address { font-style: normal; font-size: 1.12rem; font-weight: 600; margin-bottom: 1.4rem; }
.dove-text address span { font-weight: 400; color: var(--ink-soft); font-size: .95rem; }
.transport { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.transport li { display: flex; gap: .95rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px solid rgba(38,43,38,.09); }
.transport strong { display: block; font-size: .98rem; }
.transport li > div > span { font-size: .9rem; color: var(--ink-soft); }
.t-badge {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  font-weight: 800; font-size: .95rem; color: #fff;
}
.t-tram { background: #C4652F; }   /* arancio tram storico */
.t-bus { background: #5E7D8C; }
.t-metro { background: #2E7D52; }  /* verde M2 */
.t-auto { background: #21489B; }
.dove-photo { aspect-ratio: 9 / 10; }
.dove-photo img { object-position: 32% center; }

/* ---------------- CTA band ---------------- */
.cta-band {
  background: linear-gradient(160deg, var(--verde) 0%, var(--verde-deep) 100%);
  color: #fff; text-align: center;
  padding: clamp(3.5rem, 9vh, 6.5rem) clamp(1rem, 4vw, 2.4rem);
}
.cta-inner { max-width: 720px; margin: 0 auto; }
.cta-band h2 { color: #fff; }
.cta-band h2 em { color: var(--rosa); }
.cta-band p { color: rgba(255,255,255,.85); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin: 1.8rem 0 1.6rem; }
.cta-ig { color: var(--rosa); font-size: .95rem; }

/* ---------------- Footer ---------------- */
.footer { background: var(--carbone); color: var(--stone); padding: 3rem clamp(1rem, 4vw, 2.4rem) 1.6rem; }
.footer a { color: var(--stone); }
.footer-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem; max-width: var(--wrap); margin: 0 auto;
  font-size: .95rem;
}
.footer h3 { color: var(--legno); font-family: 'Figtree', sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 .4rem; }
.footer h3 + p { margin-bottom: 1.2rem; }
.brand-foot { font-family: 'Bodoni Moda', serif; font-size: 1.5rem; font-weight: 600; margin-bottom: .3rem; }
.brand-foot span { font-style: italic; color: var(--rosa); }
.footer-fine { text-align: center; font-size: .82rem; color: rgba(243,241,235,.55); margin: 0; }

/* ---------------- Reveal (dietro .js) ---------------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .gallery img, .polish { transition: none; }
  .preloader { display: none; }
}

/* ================= Responsive ================= */
@media (max-width: 980px) {
  .services, .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
}

@media (max-width: 840px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { max-width: 480px; }
  .salone-grid, .dove-grid { grid-template-columns: 1fr; }
  .dove-photo { aspect-ratio: 3 / 2; }
  .topbar .btn-small { display: none; }

  .burger { display: flex; }
  .nav {
    position: fixed; inset: 0; z-index: 150;
    flex-direction: column; justify-content: center; align-items: center; gap: 1.6rem;
    background: var(--stone);
    height: 100vh; height: 100svh;
  }
  .nav a { font-family: 'Bodoni Moda', serif; font-size: 1.7rem; }
  .nav .nav-cta { display: inline-block; color: var(--smalto); }
  .nav-close {
    display: block; position: absolute; top: 1rem; right: 1.2rem;
    background: none; border: 0; font-size: 1.6rem; color: var(--ink); cursor: pointer; padding: .5rem;
  }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .services, .reviews { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .gallery .tall { grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .strip { flex-direction: column; gap: .3rem; }
  .strip-dot { display: none; }
}
