/* Maison Hair — foglio di stile */

@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

/* Caratteri di riserva tarati sulle misure di Cormorant e Jost: finché i font non sono caricati
   il testo occupa lo stesso spazio, quindi al loro arrivo la pagina non "salta" (CLS) */
@font-face { font-family: "Cormorant Fallback"; src: local("Georgia"); size-adjust: 88.57%; ascent-override: 103.87%; descent-override: 32.74%; line-gap-override: 0%; }
@font-face { font-family: "Cormorant Fallback Times"; src: local("Times New Roman"), local("Noto Serif"), local("Liberation Serif"); size-adjust: 96.68%; ascent-override: 95.16%; descent-override: 30%; line-gap-override: 0%; }
@font-face { font-family: "Jost Fallback"; src: local("Arial"), local("Helvetica"), local("Roboto"), local("Liberation Sans"); size-adjust: 96%; ascent-override: 111.46%; descent-override: 39.58%; line-gap-override: 0%; }

:root {
  --cream: #F7F0E8;
  --paper: #FBF7F2;
  --sand: #EEDFD1;
  --blush: #E7C9BA;
  --terra: #A2402D;
  --terra-deep: #7E2F21;
  --ink: #2A1915;
  --muted: #6E554B;
  --line: #E2CFC0;
  --glow: rgba(255, 214, 170, .55);
  --serif: "Cormorant", "Cormorant Fallback", "Cormorant Fallback Times", Georgia, serif;
  --sans: "Jost", "Jost Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  -webkit-tap-highlight-color: transparent;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
h3 { font-size: 1.6rem; }
h1 em, h2 em { font-style: italic; color: var(--terra); }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .78rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.lead { font-size: 1.12rem; color: var(--muted); max-width: 34em; }

/* Bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font: 500 .98rem/1 var(--sans); letter-spacing: .02em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--terra); color: #fff; }
@media (hover: hover) { .btn-primary:hover { background: var(--terra-deep); } }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
@media (hover: hover) { .btn-ghost:hover { background: var(--ink); color: var(--cream); } }
.btn-light { background: var(--cream); color: var(--terra-deep); }
@media (hover: hover) { .btn-light:hover { background: #fff; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 240, 232, .9);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #B3583D; }
/* Il logo è un'immagine usata come maschera: prende il colore del testo (terracotta in alto, chiaro nel footer) */
.logo-mark, .logo-name { display: block; flex: none; background: currentColor; }
.logo-mark {
  width: 40px; height: 44px;
  -webkit-mask: url("../img/logo-mark.png") center / contain no-repeat; mask: url("../img/logo-mark.png") center / contain no-repeat;
}
.logo-text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-name {
  width: 132px; aspect-ratio: 1421 / 253;
  -webkit-mask: url("../img/logo-name.png") center / contain no-repeat; mask: url("../img/logo-name.png") center / contain no-repeat;
}
.logo-sub { font: 400 .56rem/1 var(--sans); letter-spacing: .42em; text-transform: uppercase; color: var(--muted); margin-top: 6px; padding-left: .42em; }

.nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: .95rem; color: var(--ink); position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--terra); transform: scaleX(0); transition: transform .25s; transform-origin: left; }
@media (hover: hover) { .nav a:hover::after { transform: scaleX(1); } }
.header-cta { min-height: 44px; padding: 0 20px; font-size: .92rem; }

.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; color: var(--ink); }
.menu-toggle span { display: block; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .25s, opacity .25s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: clamp(40px, 7vw, 90px) 0 clamp(60px, 8vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 28px; }
/* Stato e indirizzo su righe separate: il testo dello stato cambia via JS e non deve spostare il layout */
.hero-meta { display: flex; flex-direction: column; gap: 8px; font-size: .95rem; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 17px; height: 17px; color: var(--terra); flex: none; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #9a8a80; flex: none; }
.status-dot.open { background: #4c9a5b; box-shadow: 0 0 0 4px rgba(76, 154, 91, .18); }

.hero-visual { position: relative; justify-self: center; width: min(100%, 440px); }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% -22% -6% 18%;
  background: url("../img/pattern.svg") 0 0 / 120px 120px;
  border-radius: 28px; opacity: .9;
}
.mirror {
  position: relative; aspect-ratio: 4 / 5.3; border-radius: 999px; overflow: hidden;
  box-shadow: 0 0 0 10px var(--cream), 0 0 0 11px var(--line), 0 0 60px 14px var(--glow);
  background: var(--sand);
}
.mirror img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; right: -18px; bottom: 9%;
  background: var(--paper); border-radius: 16px; padding: 14px 18px;
  box-shadow: 0 14px 40px rgba(42, 25, 21, .14);
  font-size: .85rem; line-height: 1.35; color: var(--muted);
}
.hero-badge strong { display: block; font: 500 1.35rem/1.1 var(--serif); color: var(--ink); }

/* Sezioni */
.section { padding: clamp(70px, 10vw, 120px) 0; }
.section-alt { background: var(--paper); }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }

/* Servizi */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .25s, box-shadow .25s;
}
@media (hover: hover) { .service:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(126, 47, 33, .09); } }
.service-icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sand); color: var(--terra); margin-bottom: 20px;
}
.service-icon svg { width: 24px; height: 24px; }
.service h3 { margin-bottom: .35em; }
.service p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Listino */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 48px; }
.price-group { background: var(--paper); border-radius: var(--radius); padding: 30px 32px; }
.price-group h3 { color: var(--terra-deep); margin-bottom: .6em; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.price-list li:last-child { border-bottom: 0; }
.price-list .name { flex: 1; }
.price-list .name small { display: block; color: var(--muted); font-size: .84rem; }
.price-list .price { font: 500 1.3rem/1 var(--serif); color: var(--terra-deep); white-space: nowrap; }
.price-note { margin-top: 28px; color: var(--muted); font-size: .95rem; text-align: center; }

/* Tessera fedeltà */
.loyalty {
  position: relative; overflow: hidden; margin: 44px auto 0; max-width: 900px;
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center;
  background: var(--terra-deep); color: var(--cream); border-radius: 24px; padding: 36px 44px;
}
.loyalty::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern.svg") 0 0 / 140px 140px; opacity: .06; }
.loyalty > * { position: relative; }
.loyalty .eyebrow { color: var(--blush); margin-bottom: 10px; }
.loyalty h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: .3em; }
.loyalty h3 em { color: var(--blush); }
.loyalty p { margin: 0; color: rgba(247, 240, 232, .85); }
.loyalty strong { color: #fff; font-weight: 500; }
.loyalty-card {
  width: 240px; aspect-ratio: 1.6; border-radius: 14px; background: var(--cream); color: var(--terra);
  padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .28); transform: rotate(-4deg);
}
.loyalty-brand { font: 500 1.35rem/1 var(--serif); }
.loyalty-label { font: 500 .58rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.loyalty-dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.loyalty-dots i {
  aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--blush);
  display: grid; place-items: center; font-style: normal; font-size: .75rem; line-height: 1;
}
.loyalty-dots i.on { background: var(--terra); border-color: var(--terra); }
.loyalty-dots i.gift { border-color: var(--terra); color: var(--terra); }

/* Il salone */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-media { position: relative; }
.about-media .main { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; }
.about-media .main img { width: 100%; height: 100%; object-fit: cover; }
.about-media .inset {
  position: absolute; right: -14px; bottom: -40px; width: 34%;
  border-radius: 999px; overflow: hidden; aspect-ratio: 3 / 4.4;
  box-shadow: 0 0 0 8px var(--cream), 0 0 40px 8px var(--glow);
}
.about-media .inset img { width: 100%; height: 100%; object-fit: cover; }
.signature { font: italic 500 1.7rem/1.2 var(--serif); color: var(--terra); margin-top: 8px; }
.values { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.values li { display: flex; gap: 12px; align-items: flex-start; }
.values svg { width: 20px; height: 20px; color: var(--terra); flex: none; margin-top: 4px; }

/* Galleria */
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.gallery button {
  padding: 0; border: 0; background: var(--sand); cursor: zoom-in; border-radius: 16px; overflow: hidden;
  aspect-ratio: 4 / 5;
}
.gallery button:nth-child(3) { border-radius: 999px 999px 16px 16px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
@media (hover: hover) { .gallery button:hover img { transform: scale(1.04); } }
.gallery-cta { text-align: center; margin-top: 34px; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 820px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(28, 16, 13, .86); }
.lightbox img { max-height: 86vh; width: auto; margin: 0 auto; border-radius: 12px; }
.lightbox-close {
  position: fixed; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--cream); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer;
}

/* Come prenotare */
.booking { position: relative; background: var(--terra-deep); color: var(--cream); overflow: hidden; }
.booking::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/pattern.svg") 0 0 / 160px 160px; opacity: .05;
}
.booking .wrap { position: relative; }
.booking .eyebrow { color: var(--blush); }
.booking h2 em { color: var(--blush); }
.booking .lead { color: rgba(247, 240, 232, .8); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 44px 0; counter-reset: step; list-style: none; padding: 0; }
.steps li { border-top: 1px solid rgba(247, 240, 232, .3); padding-top: 22px; }
.steps li::before { counter-increment: step; content: "0" counter(step); display: block; font: italic 500 2.4rem/1 var(--serif); color: var(--blush); margin-bottom: 12px; }
.steps h3 { font-size: 1.45rem; margin-bottom: .3em; }
.steps p { color: rgba(247, 240, 232, .78); margin: 0; }
.booking-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.booking .btn-ghost { border-color: var(--cream); color: var(--cream); }
@media (hover: hover) { .booking .btn-ghost:hover { background: var(--cream); color: var(--terra-deep); } }

/* Recensioni */
.review-cta {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 34px clamp(24px, 4vw, 44px);
}
.stars { display: flex; gap: 4px; color: #C9893F; }
.stars svg { width: 24px; height: 24px; }
.review-cta h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: .2em; }
.review-cta p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font: 500 1.4rem/1.25 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 1.5px solid var(--terra); border-bottom: 1.5px solid var(--terra);
  transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Contatti */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: clamp(26px, 4vw, 40px); }
.card h3 { margin-bottom: .7em; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; color: var(--muted); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.today th, .hours tr.today td { color: var(--terra-deep); font-weight: 500; }
.hours tr.today th::after { content: " · oggi"; font-size: .8rem; letter-spacing: .04em; }
.contact-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic { width: 42px; height: 42px; border-radius: 50%; background: var(--sand); color: var(--terra); display: grid; place-items: center; flex: none; }
.contact-list .ic svg { width: 19px; height: 19px; }
.contact-list small { display: block; color: var(--muted); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.contact-list a { text-decoration: none; }
@media (hover: hover) { .contact-list a:hover { color: var(--terra); } }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.map-card {
  grid-column: 1 / -1; position: relative; overflow: hidden; border-radius: 24px; min-height: 260px;
  display: flex; align-items: flex-end; text-decoration: none; color: var(--cream);
  background: url("../img/pattern.svg") 0 0 / 140px 140px;
}
.map-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,25,21,.12) 0%, rgba(42,25,21,.7) 45%, rgba(42,25,21,.92)); }
.map-card strong, .map-card .inner > div { text-shadow: 0 1px 12px rgba(42, 25, 21, .5); }
.map-card .inner { position: relative; padding: 30px clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; width: 100%; }
.map-card strong { display: block; font: 500 clamp(1.6rem, 3vw, 2.2rem)/1.1 var(--serif); }
.map-card span.btn { pointer-events: none; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(247, 240, 232, .75); padding: 60px 0 110px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer .logo { color: var(--blush); margin-bottom: 14px; }
.site-footer .logo-sub { color: rgba(247, 240, 232, .55); }
.site-footer h4 { font: 500 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--cream); margin: 6px 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
@media (hover: hover) { .site-footer a:hover { color: var(--cream); } }
.footer-bottom { border-top: 1px solid rgba(247, 240, 232, .14); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .84rem; }

/* Componenti visibili solo su schermi piccoli */
.show-sm, .nav-cta, .price-tabs, .nav-backdrop, .gallery-hint { display: none; }

/* Barra azioni mobile */
.mobile-bar { display: none; }

/* Galleria a schermo intero: navigazione */
.lb-nav {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px; color: var(--cream); font-size: .9rem; letter-spacing: .08em;
}
.lb-nav button {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(247, 240, 232, .14); color: var(--cream); font-size: 22px; line-height: 1;
}
@media (hover: hover) { .lb-nav button:hover { background: rgba(247, 240, 232, .28); } }

/* Animazione di comparsa */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Pagine legali */
.legal { max-width: 760px; padding-top: 60px; padding-bottom: 100px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.legal h2 { font-size: 1.8rem; margin-top: 1.6em; }
.legal p, .legal li { color: #4a3530; }

/* ---------- Tablet e telefono ---------- */
@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; max-height: calc(100dvh - 76px); overflow-y: auto;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 6px var(--gutter) 24px; transform: translateY(-120%); visibility: hidden;
    transition: transform .35s ease, visibility 0s .35s; z-index: -1;
  }
  .menu-open .nav { transform: none; visibility: visible; transition: transform .35s ease; }
  .menu-open { overflow: hidden; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 15px 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .nav-cta { display: block; margin-top: 20px; }
  .nav .nav-cta a { display: flex; width: 100%; padding: 0 24px; border-bottom: 0; color: #fff; font-size: 1rem; }
  .nav-backdrop {
    display: block; position: fixed; inset: 0; z-index: 40; background: rgba(42, 25, 21, .4);
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .menu-open .nav-backdrop { opacity: 1; pointer-events: auto; }

  .hero-grid, .about, .contact { grid-template-columns: 1fr; }
  .hero-visual { width: min(80%, 380px); margin-top: 10px; }
  .services { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .about-media { margin-bottom: 40px; }
  .review-cta { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* ---------- Telefono ---------- */
@media (max-width: 640px) {
  html { scroll-padding-top: 72px; }
  body { font-size: 16px; }
  .show-sm { display: inline; }
  .hide-sm { display: none; }

  h2 { font-size: 2.05rem; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  .lead { font-size: 1.04rem; }
  .eyebrow { margin-bottom: 12px; font-size: .72rem; letter-spacing: .16em; }

  /* Header più basso: più spazio al contenuto */
  .header-inner { height: 64px; }
  .header-cta { display: none; }
  .logo { gap: 10px; }
  .logo-mark { width: 34px; height: 38px; }
  .logo-name { width: 116px; }
  .logo-sub { font-size: .52rem; margin-top: 5px; }
  .nav { inset: 64px 0 auto 0; max-height: calc(100dvh - 64px); }

  /* Hero: prima la foto del salone (ad arco, come gli specchi), poi testo e pulsanti affiancati */
  .hero { padding: 14px 0 44px; }
  .hero-grid { gap: 26px; }
  .hero-visual { order: -1; width: 100%; margin: 0; }
  .hero-visual::before { inset: 22% -10% -8% 42%; background-size: 90px 90px; }
  .mirror {
    aspect-ratio: 16 / 11;
    border-radius: 50% 50% 22px 22px / 64% 64% 22px 22px;
    box-shadow: 0 0 0 6px var(--cream), 0 0 0 7px var(--line), 0 0 40px 8px var(--glow);
  }
  .mirror img { object-position: 50% 40%; }
  .hero-badge { right: 12px; bottom: -16px; padding: 10px 14px; font-size: .8rem; }
  .hero-badge strong { font-size: 1.15rem; }
  h1 { font-size: 2.5rem; margin-bottom: .4em; }
  .hero-actions { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; margin: 22px 0 20px; }
  .hero-actions .btn { padding: 0 12px; }
  .hero-meta { flex-direction: column; gap: 8px; font-size: .92rem; }

  /* Servizi: righe compatte invece di card alte */
  .services { grid-template-columns: 1fr; gap: 10px; }
  .service { display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; padding: 18px 18px 18px 16px; align-items: start; }
  .service-icon { width: 44px; height: 44px; margin: 2px 0 0; grid-row: 1 / span 2; }
  .service-icon svg { width: 20px; height: 20px; }
  .service h3 { font-size: 1.32rem; margin: 0; }
  .service p { font-size: .93rem; line-height: 1.55; }

  /* Listino: schede per categoria */
  .js .price-tabs {
    display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 14px; padding: 2px var(--gutter);
    scrollbar-width: none;
  }
  .js .price-tabs::-webkit-scrollbar { display: none; }
  .price-tabs button {
    flex: none; min-height: 42px; padding: 0 18px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 500 .92rem/1 var(--sans);
  }
  .price-tabs button[aria-selected="true"] { background: var(--terra); border-color: var(--terra); color: #fff; }
  .js .pricing .price-group:not(.is-active) { display: none; }
  .js .pricing .price-group h3 { display: none; }
  .pricing { gap: 12px; }
  .price-group { padding: 8px 18px; }
  .price-list li { padding: 12px 0; }
  .price-list .price { font-size: 1.2rem; white-space: normal; text-align: right; max-width: 40%; }
  .price-note { margin-top: 18px; font-size: .9rem; }
  .loyalty { grid-template-columns: 1fr; gap: 24px; padding: 30px 22px 28px; margin-top: 30px; text-align: center; justify-items: center; }
  .loyalty .eyebrow { justify-content: center; }
  .loyalty-card { width: 210px; }

  /* Il salone */
  .about-media { margin-bottom: 30px; }
  .about-media .inset { width: 32%; right: 10px; bottom: -26px; box-shadow: 0 0 0 6px var(--cream), 0 0 30px 6px var(--glow); }

  /* Galleria: carosello orizzontale con anteprima della foto successiva */
  .gallery {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery button, .gallery button:nth-child(3) {
    flex: 0 0 72%; scroll-snap-align: start;
    border-radius: 50% 50% 16px 16px / 36% 36% 16px 16px;
  }
  .gallery-hint { display: block; text-align: center; margin: 14px 0 0; font-size: .85rem; color: var(--muted); }

  /* Prenota */
  .steps { grid-template-columns: 1fr; gap: 0; margin: 26px 0; }
  .steps li { padding: 16px 0 18px; }
  .steps li::before { font-size: 1.9rem; margin-bottom: 6px; }
  .steps h3 { font-size: 1.35rem; }
  .booking-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .booking-actions .btn { padding: 0 12px; }

  /* Recensioni e FAQ */
  .review-cta { padding: 26px 20px; gap: 16px; }
  .stars svg { width: 20px; height: 20px; }
  .faq summary { font-size: 1.24rem; padding: 18px 36px 18px 0; }

  /* Contatti */
  .contact { gap: 14px; }
  .card { padding: 22px 20px; }
  .hours th, .hours td { padding: 9px 0; }
  .contact-list { gap: 12px; margin-bottom: 20px; }
  .contact-list a { display: inline-block; padding: 6px 0; }
  .contact-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .map-card { min-height: 200px; }
  .map-card .inner { padding: 22px 20px; }
  .map-card .btn { width: 100%; }

  /* Footer compatto, link facili da toccare */
  .site-footer { padding: 44px 0 calc(104px + env(safe-area-inset-bottom)); }
  .footer-grid { gap: 22px 16px; }
  .site-footer ul { gap: 0; }
  .site-footer li a { display: inline-block; padding: 9px 0; }
  .footer-bottom { margin-top: 24px; flex-direction: column; }

  /* Barra azioni: compare quando i pulsanti in alto escono dallo schermo */
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 4px;
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
    background: var(--ink); border-radius: 18px; padding: 6px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
    transform: translateY(calc(100% + 30px)); transition: transform .35s ease;
  }
  .mobile-bar.show { transform: none; }
  .menu-open .mobile-bar { transform: translateY(calc(100% + 30px)); }
  .mobile-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 52px; padding: 6px 4px; color: var(--cream); text-decoration: none;
    font-size: .78rem; letter-spacing: .03em; border-radius: 12px;
  }
  .mobile-bar a.wa { background: var(--terra); font-weight: 500; }
  .mobile-bar svg { width: 21px; height: 21px; }

  .lightbox { max-width: 100vw; }
  .lightbox img { max-height: 76vh; border-radius: 0; }
}

@media (max-width: 360px) {
  h1 { font-size: 2.2rem; }
  .hero-actions, .booking-actions, .contact-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

