/* ============================================================
   DEL MONACO HAIR DESIGN — Milano Isola
   Palette: la cartella colori (tonalità di tinta)
   ============================================================ */

:root {
  --avorio:     #F5EFE7;   /* fondo principale */
  --porcellana: #ECE2D4;   /* sezioni alternate e card */
  --bruno:      #241812;   /* testo principale / footer */
  --taupe:      #6B5849;   /* testo secondario */
  --rame:       #A05C32;   /* CTA e accenti */
  --rame-scuro: #8F4E28;   /* accenti su fondo chiaro (AA) */
  --miele:      #C9974C;
  --castano:    #6E4530;
  --moka:       #4A2E20;
  --avorio-su-scuro: #F7F1E8;

  --f-display: "Gloock", "Georgia", serif;
  --f-body: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1120px;
  --pad: clamp(20px, 5vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-padding-top: 70px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  background: var(--avorio);
  color: var(--bruno);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--miele); color: var(--bruno); }

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--bruno);
  outline-offset: 3px;
  border-radius: 2px;
}
.footer :focus-visible {
  outline-color: var(--avorio-su-scuro);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -60px; left: 16px;
  z-index: 200;
  background: var(--bruno);
  color: var(--avorio-su-scuro);
  padding: 10px 18px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ============ INTRO "LA TINTA" ============ */

.intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--avorio);
  overflow: hidden;
}

body.intro-lock { overflow: hidden; }

.tinte {
  display: flex;
  height: 100%;
}

.tinta {
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding: 26px 18px;
  transform: translateY(-102%);
  animation: tinta-giu 0.6s cubic-bezier(0.5, 0, 0.2, 1) forwards;
}
.t-miele   { background: var(--miele);   animation-delay: 0.08s; }
.t-rame    { background: var(--rame);    animation-delay: 0.20s; }
.t-castano { background: var(--castano); animation-delay: 0.32s; }
.t-moka    { background: var(--moka);    animation-delay: 0.44s; }
.t-nero    { background: var(--bruno);   animation-delay: 0.56s; }

@keyframes tinta-giu {
  to { transform: translateY(0); }
}

.tinta span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--avorio-su-scuro);
  opacity: 0;
  animation: tinta-nome 0.4s ease 1.0s forwards;
}
.t-miele span { color: var(--bruno); }
@keyframes tinta-nome {
  to { opacity: 0.9; }
}

.intro-marca {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  opacity: 0;
  animation: marca-in 0.6s ease 1.15s forwards;
  transition: opacity 0.3s;
}
@keyframes marca-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.im-nome {
  font-family: var(--f-display);
  font-size: clamp(44px, 9vw, 96px);
  line-height: 1;
  color: var(--avorio-su-scuro);
  text-shadow: 0 2px 24px rgba(36, 24, 18, 0.35);
}
.im-sub {
  font-size: clamp(13px, 2vw, 18px);
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--avorio-su-scuro);
  opacity: 0.85;
}

/* uscita: la tinta si sciacqua via */
.intro--via .tinta {
  animation: tinta-via 0.6s cubic-bezier(0.6, 0, 0.3, 1) forwards;
}
.intro--via .t-miele   { animation-delay: 0.00s; }
.intro--via .t-rame    { animation-delay: 0.09s; }
.intro--via .t-castano { animation-delay: 0.18s; }
.intro--via .t-moka    { animation-delay: 0.27s; }
.intro--via .t-nero    { animation-delay: 0.36s; }
@keyframes tinta-via {
  from { transform: translateY(0); }
  to   { transform: translateY(102%); }
}
.intro--via .intro-marca { opacity: 0; animation: none; }

/* ingresso hero orchestrato con la fine dell'intro */
.has-intro .hero-inner {
  opacity: 0;
  transform: translateY(16px);
}
.intro-done .hero-inner {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease 0.25s, transform 0.7s ease 0.25s;
}
.has-intro .cartella-hero .sw { animation-play-state: paused; }
.intro-done .cartella-hero .sw { animation-play-state: running; }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .has-intro .hero-inner { opacity: 1; transform: none; }
}

/* ============ TOPBAR ============ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px var(--pad);
  background: rgba(245, 239, 231, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(36, 24, 18, 0.12);
}

.wordmark {
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  color: var(--bruno);
  white-space: nowrap;
}

.nav { margin-right: auto; }

.nav-toggle { display: none; }

.nav-menu {
  display: flex;
  gap: 26px;
  list-style: none;
}
.nav-menu a {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--taupe);
  transition: color 0.15s;
}
.nav-menu a:hover { color: var(--bruno); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  background: none;
  border: none;
  color: var(--taupe);
  font: inherit;
  cursor: pointer;
  padding: 6px 8px;
}
.lang-btn.is-active { color: var(--rame-scuro); }
.lang-btn:hover { color: var(--bruno); }
.lang-sep { color: rgba(36, 24, 18, 0.25); }

/* ============ BOTTONI ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 15px 28px;
  font-family: var(--f-body);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.15s, background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:active { transform: scale(0.98); }

.btn-book {
  background: var(--rame);
  color: #FFF8EF;
}
.btn-book:hover { background: var(--rame-scuro); }

.btn-ghost {
  border: 1px solid rgba(36, 24, 18, 0.35);
  color: var(--bruno);
}
.btn-ghost:hover { border-color: var(--bruno); }

.btn-small { padding: 9px 18px; font-size: 14px; }

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: calc(100vh - 51px);
  min-height: calc(100svh - 51px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px var(--pad) 0;
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding-bottom: 60px;
}

.eyebrow {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rame-scuro);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--f-display);
  font-size: clamp(58px, 11vw, 150px);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--bruno);
}

.hero-sub {
  font-size: clamp(15px, 2vw, 21px);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--rame-scuro);
  margin: 16px 0 30px;
}

.hero-lead {
  max-width: 540px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--taupe);
  margin-bottom: 38px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.hero-proof {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--taupe);
}

/* ============ LA CARTELLA (firma visiva) ============ */

.cartella {
  display: flex;
  width: 100%;
}
.cartella .sw {
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding: 10px 14px;
}
.sw-1 { background: var(--miele); }
.sw-2 { background: var(--rame); }
.sw-3 { background: var(--castano); }
.sw-4 { background: var(--moka); }
.sw-5 { background: var(--bruno); }

.cartella-hero .sw { height: 74px; }
.cartella-hero .sw i {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--avorio-su-scuro);
}
.cartella-hero .sw-1 i { color: var(--bruno); }

.cartella-divider .sw {
  height: 12px;
  padding: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .cartella-hero .sw {
    opacity: 0;
    transform: translateY(18px);
    animation: sw-in 0.5s cubic-bezier(0.3, 0.7, 0.2, 1) forwards;
  }
  .cartella-hero .sw-2 { animation-delay: 0.07s; }
  .cartella-hero .sw-3 { animation-delay: 0.14s; }
  .cartella-hero .sw-4 { animation-delay: 0.21s; }
  .cartella-hero .sw-5 { animation-delay: 0.28s; }
  @keyframes sw-in {
    to { opacity: 1; transform: none; }
  }
}

/* ============ SEZIONI ============ */

.section {
  padding: clamp(72px, 10vw, 130px) var(--pad);
}

.section-deep {
  background: var(--porcellana);
}

.section > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-no {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--rame-scuro);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}

.section-head h2 {
  font-family: var(--f-display);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 400;
  line-height: 1.05;
}

/* split layout */

.split {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
.split-even { grid-template-columns: 1fr 1fr; }

.split-main p + p { margin-top: 1.2em; }

.pull {
  font-family: var(--f-display);
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.28;
  color: var(--bruno);
  margin-bottom: 1.1em;
}
.split-main > p:not(.pull) { color: var(--taupe); }

/* stats */

.split-side { display: grid; gap: 28px; }

.stat {
  border-top: 1px solid rgba(36, 24, 18, 0.18);
  padding-top: 18px;
}
.stat-num {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1;
  color: var(--rame-scuro);
}
.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--taupe);
}

/* ============ GALLERY ============ */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: clamp(48px, 6vw, 72px);
}
.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
}
.g-wide { grid-column: span 2; }
.g-full {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}
.gallery-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--taupe);
}

/* ============ LISTINO ============ */

.ledger { list-style: none; }

.ledger-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(36, 24, 18, 0.16);
}
.ledger-row:first-child { border-top: 1px solid rgba(36, 24, 18, 0.16); }

.ledger-name {
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 500;
}

.ledger-dots {
  flex: 1;
  border-bottom: 2px dotted rgba(36, 24, 18, 0.28);
  transform: translateY(-4px);
  min-width: 40px;
}

.ledger-price {
  font-family: var(--f-display);
  font-size: clamp(18px, 2vw, 23px);
  white-space: nowrap;
}

.ledger-note {
  margin-top: 26px;
  font-size: 14.5px;
  color: var(--taupe);
}

/* ============ IL METODO ============ */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 48px);
}

.step {
  background: var(--porcellana);
  border: 1px solid rgba(36, 24, 18, 0.1);
  border-radius: 6px;
  padding: 30px 26px 34px;
}

.step-no {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #FFF8EF;
  background: var(--rame);
  width: 30px; height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  margin-bottom: 18px;
}

.step h3 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 10px;
}

.step p {
  font-size: 15.5px;
  color: var(--taupe);
}

.review-band {
  margin-top: clamp(48px, 7vw, 80px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(36, 24, 18, 0.16);
  border-radius: 6px;
  padding: 28px 32px;
}

.review-stat {
  font-size: 18px;
  color: var(--taupe);
}
.review-stat strong {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 34px;
  color: var(--bruno);
  margin-right: 10px;
}

/* ============ ORARI E DOVE ============ */

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.hours-table th,
.hours-table td {
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid rgba(36, 24, 18, 0.16);
  font-weight: 500;
}
.hours-table tr:first-child th,
.hours-table tr:first-child td { border-top: 1px solid rgba(36, 24, 18, 0.16); }
.hours-table td { text-align: right; font-weight: 400; }

.hours-note {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--taupe);
}

.where-address {
  font-family: var(--f-display);
  font-style: normal;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.3;
  margin-bottom: 18px;
}

.where-metro {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  margin-bottom: 28px;
  color: var(--taupe);
}
.metro-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #A85C98; /* lilla della M5 */
  flex: none;
}

/* ============ FOOTER ============ */

.footer {
  background: var(--bruno);
  color: var(--avorio-su-scuro);
  padding: clamp(60px, 8vw, 100px) var(--pad) 40px;
}

.footer > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.footer-wordmark {
  font-family: var(--f-display);
  font-size: clamp(48px, 9vw, 110px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 241, 232, 0.3);
  margin-bottom: clamp(40px, 6vw, 70px);
  user-select: none;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}

.footer-cols h3 {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--miele);
  margin-bottom: 14px;
}

.footer-cols p {
  font-size: 15.5px;
  color: rgba(247, 241, 232, 0.75);
}
.footer-cols a {
  color: var(--avorio-su-scuro);
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 241, 232, 0.3);
  transition: border-color 0.15s;
}
.footer-cols a:hover { border-color: var(--miele); }

.footer-legal {
  font-size: 12.5px;
  color: rgba(247, 241, 232, 0.72);
  border-top: 1px solid rgba(247, 241, 232, 0.12);
  padding-top: 22px;
}

/* ============ REVEAL ============ */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
  .topbar { gap: 18px; }
  .nav-menu { gap: 16px; }
  .nav-menu a { font-size: 13.5px; }

  .split,
  .split-even { grid-template-columns: 1fr; }
  .split-side {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .steps { grid-template-columns: 1fr; }
  .where { margin-top: 8px; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 130px; }

  .topbar { gap: 16px; flex-wrap: wrap; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid rgba(36, 24, 18, 0.3);
    border-radius: 999px;
    color: var(--bruno);
    font: 500 13.5px var(--f-body);
    letter-spacing: 0.04em;
    padding: 8px 14px;
    cursor: pointer;
  }
  .nav-toggle-bar {
    width: 14px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -4px 0 currentColor, 0 4px 0 currentColor;
  }

  .nav { order: 3; width: 100%; margin: 0; }
  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 6px 0 10px;
  }
  .nav.is-open .nav-menu { display: flex; }
  .nav-menu a {
    display: block;
    padding: 12px 2px;
    font-size: 16px;
    border-bottom: 1px solid rgba(36, 24, 18, 0.1);
  }

  .topbar-actions { margin-left: auto; }

  .hero { padding-top: 40px; }
  .hero-cta .btn { width: 100%; }

  .split-side { grid-template-columns: 1fr; }

  .section-head { flex-direction: column; gap: 12px; align-items: flex-start; }

  .review-band { flex-direction: column; align-items: flex-start; }
  .review-band .btn { width: 100%; }

  .footer-cols { grid-template-columns: 1fr; }

  .cartella-hero .sw { height: 58px; padding: 8px 10px; }
  .cartella-hero .sw i { font-size: 10px; letter-spacing: 0.1em; }

  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .g-full { aspect-ratio: 16 / 9; }
}
