/* Angelo Pavanello · Consulente di bellezza
   Titoli: Libre Caslon Display (lo stesso del logo), maiuscolo spaziato.
   Testo: Montserrat. Sfondi: solo bianco, nero, foto o video. */

:root {
  --bianco: #ffffff;
  --nero: #111111;
  --grigio: #6f6f6f;
  --linea: #e5e5e5;
  --oro: #b8a07e;
  --serif: "Libre Caslon Display", "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: clamp(16px, 5vw, 64px);
  --header-h: 84px;
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bianco); color: var(--nero);
  font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.85;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.2em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
strong { font-weight: 500; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--nero); color: var(--bianco); padding: 12px 18px; z-index: 200; }
.skip:focus { left: 12px; top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center .text { margin-inline: auto; }

/* ── Tipografia ─────────────────────────────────────────── */
.title {
  font-family: var(--serif); font-weight: 400; text-transform: uppercase;
  letter-spacing: .32em; line-height: 1.35; font-size: clamp(1.45rem, 3vw, 2.4rem);
  margin: 0 0 40px; padding-left: .32em; /* compensa la spaziatura dopo l'ultima lettera */
}
.title--xl { font-size: clamp(1.9rem, 5.4vw, 4.2rem); margin: 0; }
.label { font-family: var(--sans); font-weight: 500; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; }
.text { max-width: 640px; font-size: 1.04rem; font-weight: 400; }
.muted { color: var(--grigio); }
.s--nero .muted { color: rgba(255, 255, 255, .62); }
.small { font-size: .8rem; }

/* ── Bottoni ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 30px; border: 1px solid currentColor; background: transparent;
  font-family: var(--sans); font-weight: 500; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .35s, color .35s, border-color .35s;
}
.btn:hover, .btn:focus-visible { background: var(--nero); color: var(--bianco); border-color: var(--nero); }
.s--nero .btn:hover, .banner .btn:hover, .header--over:not(.is-scrolled) .btn:hover, .contact .btn:hover { background: var(--bianco); color: var(--nero); border-color: var(--bianco); }
.actions { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; margin-top: 34px; }
.center .actions { justify-content: center; }
.link { font-weight: 500; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; transition: opacity .3s; }
.link:hover { opacity: .6; }

/* ── Header ─────────────────────────────────────────────── */
.header {
  position: fixed; inset: 0 0 auto; z-index: 80; height: var(--header-h); display: flex; align-items: center;
  color: var(--nero); background: var(--bianco); border-bottom: 1px solid var(--linea);
  transition: background .4s, color .4s, border-color .4s, height .4s, transform .5s var(--ease);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: none; }
.header--over:not(.is-scrolled) { background: transparent; color: var(--bianco); border-color: transparent; }
.header.is-scrolled { --header-h: 70px; }
.header.is-hidden { transform: translateY(-100%); }
.logo {
  display: block; flex: none; width: 290px; aspect-ratio: 8625 / 1929; background: currentColor;
  -webkit-mask: url(/assets/img/logo-orizzontale.svg?v=5) no-repeat left center / contain;
  mask: url(/assets/img/logo-orizzontale.svg?v=5) no-repeat left center / contain;
  view-transition-name: logo;
}
.is-scrolled .logo { width: 250px; }
.nav { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav a { position: relative; text-decoration: none; font-weight: 500; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; padding: 8px 0; }
.nav a { white-space: nowrap; }
@media (max-width: 1120px) { .nav { gap: 16px; } .nav a { letter-spacing: .14em; } }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .4s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header .btn { min-height: 40px; padding: 10px 20px; font-size: .64rem; }

.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform .4s, top .4s; }
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-open .menu-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 22px; transform: rotate(-45deg); }
@media (max-width: 960px) {
  .nav, .header .btn { display: none; }
  .menu-toggle { display: block; }
  .logo { width: 220px; }
  .is-scrolled .logo { width: 200px; }
}
.drawer {
  position: fixed; inset: 0; z-index: 70; background: var(--nero); color: var(--bianco);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 6px;
  opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s;
}
.menu-open .drawer { opacity: 1; visibility: visible; }
.menu-open .header { color: var(--bianco); background: transparent; border-color: transparent; }
.drawer a.big { font-family: var(--serif); text-transform: uppercase; letter-spacing: .3em; padding-left: .3em; font-size: 1.3rem; line-height: 2.6; text-decoration: none; }
.drawer .drawer-foot { margin-top: 36px; font-size: .85rem; color: rgba(255,255,255,.7); display: grid; gap: 4px; }
.drawer .drawer-foot a { text-decoration: none; }

/* ── Hero con video ─────────────────────────────────────── */
.hero { position: relative; height: 100svh; min-height: 540px; background: var(--nero); color: var(--bianco); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 70%, rgba(0,0,0,.45) 100%); pointer-events: none; }
.hero__foot {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 34px; text-align: center;
  font-weight: 500; font-size: .66rem; letter-spacing: .3em; text-transform: uppercase;
}

/* ── Sezioni ────────────────────────────────────────────── */
.s { padding: clamp(80px, 11vw, 150px) 0; }
.s--nero { background: var(--nero); color: var(--bianco); }

/* Banner con foto e titolo spaziato, come su Mèche */
.banner {
  position: relative; height: clamp(300px, 58vh, 560px); display: grid; place-items: center; text-align: center;
  color: var(--bianco); background: var(--nero); overflow: hidden;
}
.banner img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; filter: grayscale(1); }
.banner::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.38); }
.banner > div { position: relative; z-index: 1; padding: 0 var(--gutter); }
.banner--hero { height: 78svh; min-height: 480px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ── Servizi ────────────────────────────────────────────── */
.services { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(40px, 7vw, 100px); margin-top: 10px; text-align: left; }
.service { padding: 28px 0; border-top: 1px solid var(--linea); }
.service h3 { font-family: var(--sans); font-weight: 500; font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 8px; }
.service p { margin: 0; color: var(--grigio); font-size: .95rem; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* ── Foto ───────────────────────────────────────────────── */
.figure { margin: 0; overflow: hidden; background: #f2f2f2; }
.figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.figure--tall { aspect-ratio: 4 / 5; }
.figure--wide { aspect-ratio: 3 / 2; }
.figure--sq { aspect-ratio: 1; }
.gallery .figure:hover img { transform: scale(1.03); }
.caption { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grigio); margin-top: 14px; }
.s--nero .caption { color: rgba(255,255,255,.55); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery .figure { aspect-ratio: 4 / 5; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; gap: 6px; } }

/* ── Recensioni ─────────────────────────────────────────── */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(30px, 5vw, 70px); margin: 20px 0 50px; }
.review { margin: 0; text-align: center; }
.review blockquote { margin: 0 0 18px; font-size: 1.02rem; line-height: 1.8; }
.review figcaption { font-weight: 500; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.6); }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }

/* ── Domande ────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--linea); text-align: left; }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-weight: 400; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.2rem; font-weight: 300; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 24px; color: var(--grigio); max-width: 620px; }

/* ── Percorso (Chi sono) ────────────────────────────────── */
.timeline { border-top: 1px solid var(--linea); }
.tl { display: grid; grid-template-columns: 200px 1fr; gap: 30px; padding: 44px 0; border-bottom: 1px solid var(--linea); }
.tl__year { font-family: var(--serif); font-size: 1.6rem; letter-spacing: .12em; line-height: 1.2; }
.tl h3 { font-family: var(--sans); font-weight: 500; font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; margin: 6px 0 12px; }
.tl p { color: var(--grigio); max-width: 620px; }
.tl .figure { margin-top: 24px; max-width: 720px; }
.tl .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 720px; margin-top: 10px; }
@media (max-width: 700px) { .tl { grid-template-columns: 1fr; gap: 8px; } }

/* ── Contatti ───────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: 1fr 1fr; background: var(--nero); color: var(--bianco); }
.contact__info { padding: clamp(50px, 8vw, 110px) clamp(24px, 6vw, 90px); }
.contact__map { position: relative; min-height: 440px; background: #1b1b1b; }
.contact__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1); }
.map-consent { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; padding: 30px; color: rgba(255,255,255,.7); font-size: .9rem; }
.hours { width: 100%; max-width: 420px; border-collapse: collapse; margin: 22px 0 30px; font-size: .92rem; }
.hours td { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today td { font-weight: 500; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .contact__map { min-height: 320px; } }

/* ── Footer ─────────────────────────────────────────────── */
.footer { background: #1c1c1c; color: rgba(255,255,255,.72); padding: 70px 0 30px; font-size: .86rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; align-items: start; }
.footer .logo-v { width: min(230px, 60vw); aspect-ratio: 6160 / 4017; background: var(--bianco); -webkit-mask: url(/assets/img/logo-verticale.svg?v=5) center/contain no-repeat; mask: url(/assets/img/logo-verticale.svg?v=5) center/contain no-repeat; }
.footer h4 { font-weight: 500; font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--bianco); margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--bianco); }
.footer__bottom { margin-top: 60px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: .72rem; letter-spacing: .06em; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* Barra "Chiama" fissa su telefono */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; grid-template-columns: 1fr 1fr; background: var(--nero); border-top: 1px solid rgba(255,255,255,.15); transform: translateY(100%); transition: transform .5s var(--ease); }
.callbar.is-visible { transform: none; }
.callbar a { color: var(--bianco); text-align: center; text-decoration: none; padding: 17px 8px; font-weight: 500; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; }
.callbar a + a { border-left: 1px solid rgba(255,255,255,.15); }
@media (max-width: 760px) { .callbar { display: grid; } .footer { padding-bottom: 90px; } }

/* ── Splash: Salone / Instagram ─────────────────────────── */
.splash { height: 100svh; min-height: 540px; background: var(--nero); color: var(--bianco); position: relative; overflow: hidden; }
.splash__panels { position: absolute; inset: 0; display: flex; }
.panel { position: relative; flex: 1; overflow: hidden; text-decoration: none; color: var(--bianco); transition: flex-grow .9s var(--ease); opacity: 0; animation: fadeIn 1.2s var(--ease) .15s forwards; }
.panel + .panel { border-left: 1px solid rgba(255,255,255,.18); animation-delay: .3s; }
.panel__media { position: absolute; inset: 0; transition: filter .9s var(--ease), transform 1.4s var(--ease); transform: scale(1.04); }
.panel__media img, .panel__media video { width: 100%; height: 100%; object-fit: cover; }
.panel::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.32); transition: background .9s; }
.panel__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: clamp(28px, 5vw, 64px); text-align: center; }
.panel__title { display: block; white-space: nowrap; font-family: var(--serif); text-transform: uppercase; letter-spacing: .34em; padding-left: .34em; font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: 1.2; margin-bottom: 22px; }
.splash__panels:hover .panel { flex-grow: .8; }
.splash__panels:hover .panel:hover, .panel:focus-visible { flex-grow: 1.4; }
.splash__panels:hover .panel:not(:hover) .panel__media { filter: grayscale(1); }
.splash__panels:hover .panel:not(:hover)::after { background: rgba(0,0,0,.55); }
.panel:hover .panel__media { transform: scale(1); }
.splash__top { position: absolute; z-index: 5; left: 0; right: 0; top: 0; padding: clamp(26px, 5vh, 48px) var(--gutter); display: flex; justify-content: center; pointer-events: none; }
.splash__logo { width: min(340px, 72vw); aspect-ratio: 6160 / 4017; background: var(--bianco); -webkit-mask: url(/assets/img/logo-verticale.svg?v=5) center/contain no-repeat; mask: url(/assets/img/logo-verticale.svg?v=5) center/contain no-repeat; opacity: 0; animation: fadeIn 1.4s var(--ease) .5s forwards; filter: drop-shadow(0 2px 18px rgba(0,0,0,.4)); }
.ig-mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 2px; }
.ig-mosaic img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
@keyframes fadeIn { to { opacity: 1; } }
@media (max-width: 760px) {
  .splash__panels { flex-direction: column; }
  .panel + .panel { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .panel__body { padding: 22px var(--gutter); }
  .panel__title { margin-bottom: 12px; }
  .splash__logo { width: min(210px, 60vw); }
}

/* ── Instagram ──────────────────────────────────────────── */
.ig-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.ig-avatar { width: 110px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.ig-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 60px; }
.ig-grid a { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #f2f2f2; }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ig-grid a::after { content: attr(data-caption); position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; background: rgba(0,0,0,.55); color: var(--bianco); font-size: .82rem; line-height: 1.6; opacity: 0; transition: opacity .4s; }
.ig-grid a:hover img { transform: scale(1.04); }
.ig-grid a:hover::after, .ig-grid a:focus-visible::after { opacity: 1; }

/* ── Comparse discrete ──────────────────────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease), transform .45s var(--ease); transition-delay: calc(var(--d, 0s) * .35); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; }
/* foto: niente tendina dall'alto (sembrava che si stessero caricando), solo una dissolvenza rapida */
.js [data-reveal="clip"] img { opacity: 0; transform: scale(1.03); transition: opacity .4s var(--ease) calc(var(--d, 0s) * .35), transform .6s var(--ease) calc(var(--d, 0s) * .35); }
.js [data-reveal="clip"].is-in img { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-reveal="clip"] img { opacity: 1; transform: none; clip-path: none; }
  .panel, .splash__logo { opacity: 1; }
}

/* ── Hero della home: nome al centro, note in basso ─────── */
.hero__media video { opacity: 0; transition: opacity 1.6s ease; }
.hero__media video.is-playing, .no-video .hero__media video { opacity: 1; }
.hero__center { position: absolute; z-index: 2; inset: 0; display: grid; place-content: center; text-align: center; padding: 0 var(--gutter); }
.hero__center .title { margin: 0; }
.hero__center .hero__role { margin: 14px 0 0; font-size: clamp(1rem, 2.2vw, 1.6rem); }
.hero__center .label { margin-top: 18px; }
.hero__bar {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 0 var(--gutter) 34px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
}
.hero__bar .label { font-size: .64rem; }
.hero-in { opacity: 0; transform: translateY(14px); animation: heroIn 1.4s var(--ease) forwards; animation-delay: var(--d, 1s); }
@keyframes heroIn { to { opacity: 1; transform: none; } }
/* Nome nella hero: dopo la comparsa (0.8s + 1.4s) respira piano, zoom leggerissimo avanti e indietro */
.hero__breathe { display: inline-block; animation: breathe 3s ease-in-out 2.2s infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .hero__breathe { animation: none !important; } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse 60% 45% at 50% 50%, rgba(0,0,0,.38), rgba(0,0,0,0) 70%); pointer-events: none; }
@media (max-width: 760px) {
  .hero__center { place-content: end center; padding-bottom: 150px; }
  .hero__bar { flex-direction: column; align-items: center; text-align: center; gap: 16px; padding-bottom: 28px; }
  .hero::before { background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.6)); }
}
/* Telefono: loghi con "Parrucchiere" e "Consulente di bellezza" un po' più grandi (file *-mobile.svg) */
@media (max-width: 760px) {
  .logo { -webkit-mask-image: url(/assets/img/logo-orizzontale-mobile.svg?v=5); mask-image: url(/assets/img/logo-orizzontale-mobile.svg?v=5); }
  .footer .logo-v, .splash__logo { aspect-ratio: 6160 / 4229; -webkit-mask-image: url(/assets/img/logo-verticale-mobile.svg?v=5); mask-image: url(/assets/img/logo-verticale-mobile.svg?v=5); }
}
/* sulla home il logo dell'header compare solo dopo lo scroll: sopra il video c'è già il nome */
.header--home:not(.is-scrolled) .logo { opacity: 0; }
.header .logo { transition: opacity .5s, width .4s; }

/* ── Frase in evidenza ──────────────────────────────────── */
.phrase { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.35; letter-spacing: .01em; margin: 0 auto 36px; max-width: 760px; }

/* ── Schede (anteprime) ─────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); text-align: left; }
.card { text-decoration: none; display: block; }
.card .figure { aspect-ratio: 4 / 5; margin-bottom: 20px; }
.card:hover .figure img { transform: scale(1.03); }
.card h3 { font-weight: 500; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 8px; }
.card p { color: var(--grigio); font-size: .94rem; margin: 0; }
.s--nero .card p { color: rgba(255,255,255,.62); }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

/* ── Dettaglio (pagine interne) ─────────────────────────── */
.detail { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.detail--rev { grid-template-columns: 6fr 5fr; }
.detail--rev > .figure, .detail--rev > .detail__media { order: 2; }
.detail .figure { aspect-ratio: 4 / 5; max-width: 520px; }
.detail h2.title { margin-bottom: 28px; }
.detail h3 { font-weight: 500; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; margin: 28px 0 8px; }
@media (max-width: 860px) { .detail, .detail--rev { grid-template-columns: 1fr; } .detail--rev > .figure, .detail--rev > .detail__media { order: 0; } }
.intro { padding-top: clamp(70px, 9vw, 120px); padding-bottom: clamp(40px, 6vw, 80px); }
.page-top { padding-top: calc(var(--header-h) + clamp(60px, 9vw, 110px)); }
.anchors { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 30px; }
.anchors a { font-weight: 500; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--grigio); }
.anchors a:hover { color: var(--nero); }
.banner--plain::after { display: none; }

/* ── Lavori: filtri ─────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 40px; }
.filters button { border: 1px solid var(--linea); background: none; padding: 10px 18px; font-weight: 500; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; transition: border-color .3s, background .3s, color .3s; }
.filters button[aria-pressed="true"], .filters button:hover { border-color: var(--nero); background: var(--nero); color: var(--bianco); }
.gallery .figure[hidden] { display: none; }
.gallery figcaption { display: none; }

/* ── Recensioni (pagina) ────────────────────────────────── */
.quotes { columns: 2; column-gap: clamp(40px, 6vw, 90px); }
.quotes figure { break-inside: avoid; margin: 0 0 44px; }
.quotes blockquote { margin: 0 0 12px; font-size: 1.04rem; font-weight: 400; }
.quotes figcaption { font-weight: 500; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--grigio); }
@media (max-width: 760px) { .quotes { columns: 1; } }

/* ── Domande (pagina): gruppi ───────────────────────────── */
.faq-group + .faq-group { margin-top: 70px; }
.faq-group > .label { display: block; margin-bottom: 18px; color: var(--grigio); }

/* ── Footer: pagine ─────────────────────────────────────── */
.footer__grid { grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr; }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
/* telefono: logo del footer su una riga sua, centrato */
@media (max-width: 760px) { .footer__grid > div:first-child { grid-column: 1 / -1; display: flex; justify-content: center; margin-bottom: 10px; } }
.header--home:not(.is-scrolled) .btn { opacity: 0; pointer-events: none; }
.header .btn { transition: opacity .5s, background .35s, color .35s, border-color .35s; }
.banner--hero:not(:has(img)) { height: 56svh; min-height: 380px; }

/* ── Sezione con foto di sfondo e contenuto ─────────────────
   Ritmo delle pagine: hero → tinta unita → foto → tinta unita → foto… */
.sx {
  position: relative; overflow: hidden; isolation: isolate; color: var(--bianco); background: var(--nero);
  min-height: clamp(520px, 78vh, 860px); display: grid; align-items: center; text-align: center;
  padding: clamp(100px, 13vw, 180px) 0;
}
.sx > img.bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.sx::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0,0,0,.5); }
.sx .text { margin-inline: auto; }
.sx .muted { color: rgba(255,255,255,.72); }
.sx .btn:hover { background: var(--bianco); color: var(--nero); border-color: var(--bianco); }
.sx .review figcaption { color: rgba(255,255,255,.7); }
.sx .actions { justify-content: center; }
.sx--hero { min-height: 82svh; padding-top: calc(var(--header-h) + 60px); }
.sx--hero::after { background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.35) 50%, rgba(0,0,0,.55)); }
.sx .steps-plain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; text-align: left; margin-top: 40px; }
.sx .steps-plain p { margin: 6px 0 0; color: rgba(255,255,255,.75); font-size: .94rem; }
@media (max-width: 860px) { .sx .steps-plain { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sx .steps-plain { grid-template-columns: 1fr; } }
/* divisori interni a una sezione lunga (stesso sfondo) */
.part + .part { margin-top: clamp(80px, 10vw, 130px); padding-top: clamp(80px, 10vw, 130px); border-top: 1px solid var(--linea); }
.s--nero .part + .part { border-color: rgba(255,255,255,.14); }
@media (max-width: 760px) {
  .sx::after { background: rgba(0,0,0,.62); }
  .gallery--3 { grid-template-columns: repeat(3, 1fr); gap: 4px; }
}

/* ── Hero della home: tre foto 4K ───────────────────────── */
.hero__tri { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--nero); }
.hero__tri figure { margin: 0; overflow: hidden; position: relative; opacity: 0; animation: triIn 1.6s var(--ease) forwards; }
.hero__tri figure:nth-child(2) { animation-delay: .25s; }
.hero__tri figure:nth-child(3) { animation-delay: .5s; }
.hero__tri img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: triZoom 24s ease-out forwards; }
@keyframes triIn { to { opacity: 1; } }
@keyframes triZoom { to { transform: scale(1); } }
.hero:has(.hero__tri)::after { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.05) 25%, rgba(0,0,0,.05) 60%, rgba(0,0,0,.55) 100%); }
@media (max-width: 760px) {
  /* su telefono le tre foto si alternano a tutto schermo, con dissolvenza */
  .hero__tri { display: block; }
  .hero__tri figure { position: absolute; inset: 0; opacity: 0; animation: triCycle 18s infinite; }
  .hero__tri figure:nth-child(2) { animation-delay: 6s; }
  .hero__tri figure:nth-child(3) { animation-delay: 12s; }
  .hero__tri figure:nth-child(1) { animation-delay: 0s; }
  @keyframes triCycle { 0% { opacity: 0; } 6% { opacity: 1; } 33% { opacity: 1; } 40% { opacity: 0; } 100% { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .hero__tri figure { opacity: 1; } .hero__tri figure + figure { display: none; } }
@media (prefers-reduced-motion: reduce) and (min-width: 761px) { .hero__tri figure + figure { display: block; } }
.hero:has(.hero__tri)::before { background: radial-gradient(ellipse 55% 30% at 50% 50%, rgba(0,0,0,.45), rgba(0,0,0,0) 75%); }

/* sfondi delle sezioni dentro <picture> */
.sx > picture { position: absolute; inset: 0; z-index: -2; }
.sx > picture img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .sx > picture img.bg { object-position: 50% 30% !important; } }

/* ── Hero scura ─────────────────────────────────────────── */
.hero { background: #0b0b0b; }
.hero__tri { background: #0b0b0b; }
.hero__tri img { filter: brightness(.58) contrast(1.08) saturate(.82); }
.hero:has(.hero__tri)::after {
  background:
    radial-gradient(ellipse 85% 75% at 50% 45%, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 28%, rgba(0,0,0,.1) 62%, rgba(0,0,0,.75) 100%);
}
.hero:has(.hero__tri)::before { background: radial-gradient(ellipse 50% 26% at 50% 50%, rgba(0,0,0,.35), rgba(0,0,0,0) 75%); }

/* Telefono: una sola foto, ferma, subito visibile (niente alternanza né dissolvenze = niente lampi) */
@media (max-width: 760px) {
  .hero__tri { display: block; }
  .hero__tri figure { position: absolute; inset: 0; opacity: 1 !important; animation: none !important; }
  .hero__tri figure + figure { display: none; }
  .hero__tri img { animation: none; transform: none; object-position: 50% 30% !important; }
}

/* ── Hero della home: solo fondo scuro ──────────────────── */
.hero--dark { background: #070707; }
.hero--dark::before {
  background: radial-gradient(ellipse 70% 55% at 50% 48%, #1d1b19 0%, #0f0e0d 45%, #070707 100%);
  z-index: 0;
}
.hero--dark::after { background: none; }
.hero--dark .hero__center, .hero--dark .hero__bar { z-index: 2; }
.hero--dark .hero__center .title { color: #f4f1ec; }
.hero--dark .hero__center .label { color: var(--oro); }
/* niente animazioni che partono da invisibile su telefono: il testo è subito lì */
/* telefono: stessa comparsa del desktop; il fondo è già nero dal primo istante, quindi niente lampi */
@media (max-width: 760px) { .hero--dark .hero__center { place-content: center; padding-bottom: 90px; } }

/* ── Servizi: menu agganciato in alto al posto dell'header ─ */
.anchors--sticky {
  position: sticky; top: 0; z-index: 85; margin: 0; padding: 18px var(--gutter);
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linea); display: flex; justify-content: center; flex-wrap: nowrap;
  gap: 10px 30px; overflow-x: auto; scrollbar-width: none;
}
.anchors--sticky::-webkit-scrollbar { display: none; }
.anchors--sticky a { white-space: nowrap; padding: 4px 0; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.anchors--sticky a.is-active { color: var(--nero); border-color: var(--nero); }
@media (max-width: 1360px) { .anchors--sticky { justify-content: flex-start; } }
.anchors-on .header { transform: translateY(-100%); }
.svc-wrap { position: relative; }
.svc-wrap [id] { scroll-margin-top: 90px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .cards--4 { grid-template-columns: 1fr 1fr; } }
.sx--bottom { align-items: end; padding-bottom: clamp(40px, 6vw, 70px); } .sx--bottom::after { background: linear-gradient(180deg, rgba(0,0,0,.15) 40%, rgba(0,0,0,.65)); }
@media (max-width: 760px) { .sx--m-right > picture img.bg { object-position: 100% 30% !important; } }
@media (max-width: 760px) { .sx--m-left > picture img.bg { object-position: 0% 30% !important; } }
/* monogramma AP sopra il nome nella hero */
.hero__mono {
  display: block; margin: 0 auto 34px; width: clamp(110px, 12vw, 170px); aspect-ratio: 2046 / 1929;
  background: #f4f1ec; -webkit-mask: url(/assets/img/ap-monogramma.svg) center / contain no-repeat; mask: url(/assets/img/ap-monogramma.svg) center / contain no-repeat;
}
@media (max-width: 760px) { .hero__mono { width: 96px; margin-bottom: 26px; } }
@media (max-width: 760px) {
  .sx--m-short { min-height: 58svh; padding-top: calc(var(--header-h) + 30px); padding-bottom: 50px; }
  .sx--bottom { min-height: 110vw; }
}
/* pagine legali */
.legal h2 { font-family: var(--sans); font-weight: 500; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; margin: 44px 0 12px; }
.legal p, .legal li { font-size: .98rem; font-weight: 400; }
.legal ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.legal li { margin-bottom: .5em; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .sx--m-top > picture img.bg { object-position: 50% 6% !important; } }

/* Header e menu dei servizi: si danno il cambio con una transizione morbida */
.header { transition: transform .7s cubic-bezier(.22,.8,.2,1), opacity .5s ease, background .4s, color .4s, border-color .4s, height .4s; }
.header.is-hidden { transform: none; }
.anchors-on .header { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.anchors--sticky { transition: box-shadow .5s ease; }
.anchors-on .anchors--sticky { box-shadow: 0 1px 0 var(--linea), 0 10px 30px -20px rgba(0,0,0,.25); }
.contact__map iframe { filter: grayscale(1) contrast(1.05); }
.map-credit { position: absolute; right: 8px; bottom: 6px; z-index: 1; font-size: .62rem; color: #333; background: rgba(255,255,255,.8); padding: 2px 6px; text-decoration: none; }

/* ── Indicazioni: dove parcheggiare ─────────────────────── */
.h-sub { font-family: var(--sans); font-weight: 500; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; margin: 56px 0 14px; }
.parcheggi { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); max-width: 1040px; margin: 44px auto 0; }
.parcheggio__map { position: relative; aspect-ratio: 4 / 3; background: #f2f2f2; margin-bottom: 22px; }
.parcheggio__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; } /* a colori: qui la mappa serve a orientarsi */
.parcheggio h3 { font-weight: 500; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; margin: 0 0 10px; }
.parcheggio .h3-sub { display: block; margin-top: 2px; }
.parcheggi--uno .parcheggio h3 { line-height: 1.5; }
.parcheggio p { color: var(--grigio); font-size: .96rem; margin: 0 0 18px; }
.parcheggi--uno { grid-template-columns: 1fr; }
.parcheggi--uno .parcheggio__map { aspect-ratio: 21 / 9; }
@media (max-width: 760px) { .parcheggi { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .parcheggi--uno .parcheggio__map { aspect-ratio: 4 / 3; } }

/* Hero su telefono: "Parrucchiere" più largo di "Consulente di bellezza" */
@media (max-width: 760px) { .hero__center .hero__role { font-size: 1.4rem; } }

/* ── Home, Il salone: continua il nero della hero ───────── */
.salone-intro { background: #070707; padding-top: 0; }
.salone-intro .text { margin-inline: auto; color: rgba(255,255,255,.78); }
.salone-intro .actions { justify-content: center; }
/* filo sottile che scende dalla hero e introduce la sezione */
.salone-line { display: block; width: 1px; height: clamp(70px, 10vw, 130px); margin: 0 auto clamp(44px, 6vw, 72px); background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.6)); transform-origin: top; }
.js .salone-line[data-reveal] { opacity: 1; transform: scaleY(0); transition: transform .6s var(--ease); }
.js .salone-line[data-reveal].is-in { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) {
  .js .salone-line[data-reveal] { transform: none; }
}

/* ── Titoli: arrivano larghi e sfocati e si stringono fino alla spaziatura normale (tutto il sito) ── */
.js .title[data-reveal] { transform: none; letter-spacing: .45em; filter: blur(4px); transition: opacity .5s var(--ease), letter-spacing .7s var(--ease), filter .5s var(--ease); transition-delay: calc(var(--d, 0s) * .35); }
.js .title[data-reveal].is-in { letter-spacing: .32em; filter: none; }
/* su telefono parte meno largo, così le parole lunghe non escono dallo schermo */
@media (max-width: 760px) { .js .title[data-reveal] { letter-spacing: .4em; } .js .title[data-reveal].is-in { letter-spacing: .32em; } }
@media (prefers-reduced-motion: reduce) { .js .title[data-reveal] { letter-spacing: .32em; filter: none; } }

/* Titoli grandi delle pagine su telefono: si adattano alla larghezza così le parole lunghe (APPUNTAMENTO, UN'ESPERIENZA) non vengono tagliate */
@media (max-width: 760px) { .sx .title--xl { font-size: min(1.9rem, 7vw); } }

/* ── Trattamento all'Ozono: video di sfondo a tutto schermo ─ */
.sx > video.bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.sx > video.bg.is-playing { opacity: 1; }
.no-video .sx > video.bg { display: none; }
.sx--video { min-height: 100svh; }
.actions--stack { flex-direction: column; gap: 26px; }
.sx--video .wrap.narrow { max-width: 1000px; }
.sx--video .phrase { max-width: none; }

/* ── Foto collegate a Instagram ──────────────────────────── */
.ig-link { display: block; position: relative; height: 100%; overflow: hidden; color: var(--bianco); }
.ig-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .4s; }
.ig-link::after {
  content: ""; position: absolute; right: 12px; bottom: 12px; width: 22px; height: 22px; opacity: 0; transform: translateY(6px);
  transition: opacity .4s, transform .4s var(--ease); pointer-events: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.3' cy='6.7' r='.6' fill='white'/%3E%3C/svg%3E");
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
}
.ig-link:hover::after, .ig-link:focus-visible::after { opacity: 1; transform: none; }
.ig-link:hover img { transform: scale(1.03); }

/* ── Home: le foto del salone di Mirano ──────────────────── */
.wrap--wide { max-width: 1160px; }
.salone-gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: clamp(60px, 8vw, 100px); }
.salone-gal .ig-link { aspect-ratio: 1; background: #111; }
@media (max-width: 760px) {
  /* telefono: una striscia che scorre di lato, non una colonna infinita */
  .salone-gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .salone-gal::-webkit-scrollbar { display: none; }
  .salone-gal .ig-link { flex: 0 0 72vw; scroll-snap-align: center; }
}

/* le foto entrano più in fretta */
.js [data-reveal="clip"] img { transition-duration: .35s, .5s; }
.tl-photo { margin-top: 22px; max-width: 300px; aspect-ratio: 2 / 3; }
/* Lavori: quattro colonne su schermi larghi, le foto non riempiono tutto lo schermo */
@media (min-width: 1000px) { .gallery:not(.gallery--3):not(.gallery--sei) { grid-template-columns: repeat(4, 1fr); gap: 8px; } }

/* ── Metodo Sirio Color: la linea dei colori ─────────────── */
/* ogni foto tiene le sue proporzioni; le colonne sono larghe in proporzione, così la riga ha un'altezza sola */
.sirio-gal { display: grid; grid-template-columns: .5625fr .5625fr 1.22fr; gap: 6px; max-width: 1100px; margin: 0 auto; }
.sirio-gal .ig-link { aspect-ratio: 9 / 16; }
.sirio-gal .sirio-gal__wide { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.sirio-gal .sirio-gal__pair { aspect-ratio: 1.22; }
@media (max-width: 760px) {
  .sirio-gal { grid-template-columns: 1fr 1fr; gap: 4px; }
  .sirio-gal .sirio-gal__pair { grid-column: 1 / -1; }
}

/* ── Home: video di sfondo nella hero ────────────────────── */
.hero--video .hero__media { z-index: 1; }
.hero--video .hero__media video { transform: scale(1.04); transition: opacity 1.2s ease .3s, transform 14s var(--ease) .3s; }
.hero--video .hero__media video.is-playing { transform: none; }
/* velo scuro: il nome resta leggibile, il video si vede ma non disturba */
.hero--video .hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(7,7,7,.7) 0%, rgba(7,7,7,.46) 60%, rgba(7,7,7,.32) 100%),
              linear-gradient(180deg, rgba(7,7,7,.55) 0%, rgba(7,7,7,0) 22%, rgba(7,7,7,0) 70%, rgba(7,7,7,.75) 100%);
}
.hero--video .hero__center, .hero--video .hero__bar { z-index: 2; }
.hero--video .hero__center .title, .hero--video .hero__center .label { text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.hero--video .hero__mono { filter: drop-shadow(0 2px 18px rgba(0,0,0,.5)); }
@media (max-width: 760px) { .hero--video .hero__media::after { background: linear-gradient(180deg, rgba(7,7,7,.55), rgba(7,7,7,.45) 45%, rgba(7,7,7,.8)); } }
