/* Suite Agenda · sito. Tema Classic («Notte e champagne»): prugna profonda, oro champagne, titoli serif. Nessun font esterno.
   Ogni pagina di settore ridefinisce soltanto i token di colore con <html data-tema="…">, coerenti con le icone approvate
   (issue #35, commento #7024703507). Contrasti AA verificati da e2e/site.spec.mjs su tutte le pagine. */
:root {
  --bg: #120a18;
  --bg-2: #1a0f23;
  --panel: #21142c;
  --panel-2: #2a1937;
  --line: rgba(232, 205, 150, .18);
  --line-strong: rgba(232, 205, 150, .38);
  --ink: #f6eff8;
  --muted: #cdbfd6;
  --accent: #e3c48a;
  --accent-2: #f2dcae;
  --on-accent: #1d1206;
  --glow-a: rgba(107, 42, 143, .55);
  --glow-b: rgba(228, 106, 168, .16);
  --top-bg: rgba(18, 10, 24, .92);
  --btn-shadow: var(--btn-shadow);
  --deluxe-a: #3a1650;
  --deluxe-b: #23122f;
  --deluxe-gold: #e3c48a;
  --radius: 18px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 400 1rem/1.65 var(--sans);
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1, h2 { font-family: var(--serif); letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 7vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); font-weight: 500; }
h3 { font-size: 1.08rem; letter-spacing: .01em; }
p { margin: 0 0 1em; }
a { color: var(--accent-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); color: var(--ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Intestazione */
.top { position: sticky; top: 0; z-index: 5; background: var(--top-bg); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; letter-spacing: .01em; margin-right: auto; }
.brand img { display: block; }
.nav-desktop ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-desktop a, .menu-panel a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .95rem; letter-spacing: .02em; }
.nav-desktop a:hover, .menu-panel a:not(.btn):hover { color: var(--accent-2); }
/* Menu mobile: <details> nativo, funziona con tastiera e lettori di schermo senza JavaScript. */
.menu { position: static; background: none; border: 0; margin: 0; border-radius: 0; }
.menu > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 8px 12px;
  border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); font-weight: 600; font-size: .9rem;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 16px; height: 2px; background: var(--accent); border-radius: 2px; position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -5px; } .menu-icon::after { top: 5px; }
.menu[open] .menu-icon { background: transparent; }
.menu[open] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu[open] .menu-icon::after { top: 0; transform: rotate(-45deg); }
.menu-panel {
  position: absolute; left: 0; right: 0; top: 100%; padding: 12px 16px 22px;
  background: var(--bg-2); border-bottom: 1px solid var(--line-strong); box-shadow: 0 24px 40px -20px rgba(0,0,0,.7);
  max-height: calc(100vh - 68px); overflow-y: auto;
}
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel li a:not(.btn) { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--ink); }
.menu-panel a[aria-current="page"] { color: var(--accent-2); }
.menu-heading { margin: 18px 0 4px; text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; color: var(--accent); font-weight: 600; }
.menu-panel .btn { margin-top: 18px; width: 100%; }
.top-row { position: relative; }
@media (max-width: 879px) { .nav-desktop, .top-row > .btn-small { display: none; } }
@media (min-width: 880px) { .menu { display: none; } }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--on-accent); font-weight: 650; letter-spacing: .02em; text-decoration: none;
  border: 1px solid var(--accent-2);
  box-shadow: 0 8px 24px -10px var(--btn-shadow);
}
.btn:hover { background: var(--accent-2); }
.btn-small { min-height: 40px; padding: 8px 18px; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); border-color: var(--accent); }
.btn-light { /* stesso stile oro nella sezione finale */ }
@media (max-width: 420px) { .brand { font-size: 1.15rem; } }

/* Apertura */
.hero {
  position: relative; overflow: hidden; padding: 64px 0 72px;
  background:
    radial-gradient(60% 70% at 85% 30%, var(--glow-a), transparent 70%),
    radial-gradient(50% 60% at 10% 100%, var(--glow-b), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-logo {
  position: absolute; width: 76px; left: calc(50% - 172px); bottom: -18px; border-radius: 22%;
  filter: drop-shadow(0 18px 40px rgba(168, 70, 210, .45));
}
.phone {
  width: min(78vw, 300px); padding: 10px; border-radius: 38px;
  background: linear-gradient(160deg, var(--panel-2), var(--bg) 60%);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.6) inset;
}
.phone .shot { margin: 0; }
.phone img { display: block; width: 100%; border-radius: 28px; }
.phone figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; font-weight: 600; color: var(--accent); margin-bottom: 1.2em;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.note { font-size: .92rem; color: var(--muted); margin: 0; }
.notice { margin: 0 0 18px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--accent-2); font-size: .95rem; }
@media (min-width: 820px) {
  .hero { padding: 104px 0 112px; }
  .hero-grid { grid-template-columns: 1.35fr 1fr; }
  .hero-logo { width: 116px; left: auto; right: calc(50% + 128px); bottom: 24px; }
}

/* Sezioni */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { position: relative; padding-bottom: .45em; }
.section h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 1px; background: var(--accent); }
.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 40em; }


.grid { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.card h3 { color: var(--accent-2); }
.card p { color: var(--muted); margin: 0; }

.deluxe {
  margin-top: 20px; padding: 24px 26px; border-radius: var(--radius);
  background: linear-gradient(120deg, var(--deluxe-a), var(--deluxe-b) 70%);
  border: 1px solid var(--line-strong);
}
.deluxe h3 { color: var(--deluxe-gold); text-transform: uppercase; letter-spacing: .18em; font-size: .85rem; }
.deluxe p { margin: 0; color: var(--ink); }

.steps { list-style: none; counter-reset: passo; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: passo; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--panel); }
.steps li::before {
  content: counter(passo, decimal-leading-zero); display: block;
  font-family: var(--serif); font-size: 2rem; color: var(--accent); line-height: 1; margin-bottom: 14px;
}
.steps p { color: var(--muted); margin: 0; }

.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink); }
.ticks li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--accent); font-size: 1rem; line-height: 1.65; }

details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; margin: 12px 0; }
details[open] { border-color: var(--line-strong); }
summary { cursor: pointer; padding: 16px 20px; font-weight: 600; min-height: 48px; color: var(--ink); }
summary::marker { color: var(--accent); }
details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

.cta {
  text-align: center;
  background:
    radial-gradient(70% 90% at 50% 0%, var(--glow-a), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.cta h2::after { left: 50%; transform: translateX(-50%); }
.cta p { color: var(--muted); }
.cta .small { font-size: .9rem; margin: 18px 0 0; }

/* Piè di pagina */
.foot { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; background: var(--bg); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot p { margin: 0; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.foot a { color: var(--accent-2); }

/* Pagine legali */
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.4rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .6em; color: var(--muted); }
.legal p { color: var(--muted); }
.small-muted { color: var(--muted); font-size: .95rem; }

/* Settori */
.sector-grid { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.sector-card {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 20px; min-height: 48px;
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.sector-card:hover { border-color: var(--accent); }
.sector-edition { text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; font-weight: 600; color: var(--accent); }
.sector-name { font-family: var(--serif); font-size: 1.45rem; }
.sector-more { color: var(--muted); font-size: .92rem; margin-top: auto; padding-top: 8px; }
@media (min-width: 960px) { .grid.grid-2 { grid-template-columns: repeat(2, 1fr); } }
.more { margin-top: 24px; }

/* Galleria di schermate: scorrimento orizzontale nativo, nessuno script, nessuna rotazione automatica. */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(70vw, 260px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 18px; margin: 32px -4px 0;
  overscroll-behavior-x: contain;
}
.gallery .shot { scroll-snap-align: start; margin: 0; }
.gallery img { display: block; width: 100%; border-radius: 22px; border: 1px solid var(--line-strong); background: var(--panel); }
.gallery figcaption { margin-top: 10px; color: var(--muted); font-size: .92rem; }
@media (min-width: 1100px) { .gallery { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }

/* Percorso */
.crumbs { padding-top: 18px; padding-bottom: 0; font-size: .9rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--accent); }
.crumbs a { color: var(--muted); }
.crumbs a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.hero-sector { padding-top: 40px; }

/* Piè di pagina strutturato */
.foot-grid { display: grid; gap: 24px; padding-bottom: 20px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot li a { display: inline-flex; align-items: center; min-height: 36px; }
.foot-title { font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; margin-bottom: 6px !important; }
.foot-name { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); margin-bottom: 8px !important; }
.foot-brand p { display: flex; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--line); padding-top: 18px; }

/* Approfondimenti delle landing */
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1.1fr 1fr; gap: 48px; } }
.prose p { color: var(--muted); font-size: 1.05rem; max-width: 40em; }
.prose a { color: var(--accent-2); }
.illustration { margin: 0; }
.illustration img { display: block; width: 100%; border-radius: var(--radius); border: 1px solid var(--line-strong); }
.illustration figcaption { margin-top: 10px; color: var(--muted); font-size: .88rem; }

/* Identità cromatiche delle pagine di settore: stessi componenti, solo token diversi. */
[data-tema="nails"] {
  --bg: #150a0d; --bg-2: #1c0c11; --panel: #261117; --panel-2: #321620;
  --line: rgba(255, 150, 165, .18); --line-strong: rgba(255, 150, 165, .38);
  --ink: #fbf0f2; --muted: #dcc3c8; --accent: #ff8a98; --accent-2: #ffb3bd; --on-accent: #2a0610;
  --glow-a: rgba(155, 17, 30, .6); --glow-b: rgba(255, 90, 110, .14); --top-bg: rgba(21, 10, 13, .92);
  --btn-shadow: rgba(255, 120, 140, .45); --deluxe-a: #4a1220; --deluxe-b: #261117;
}
[data-tema="beauty"] {
  --bg: #170a14; --bg-2: #1f0d1b; --panel: #2a1224; --panel-2: #36172e;
  --line: rgba(247, 143, 200, .18); --line-strong: rgba(247, 143, 200, .38);
  --ink: #fcf0f7; --muted: #e0c4d6; --accent: #f78fc8; --accent-2: #ffbfe1; --on-accent: #2a0619;
  --glow-a: rgba(214, 51, 132, .5); --glow-b: rgba(255, 170, 215, .14); --top-bg: rgba(23, 10, 20, .92);
  --btn-shadow: rgba(247, 143, 200, .45); --deluxe-a: #4a1640; --deluxe-b: #2a1224;
}
[data-tema="hair"] {
  --bg: #130e08; --bg-2: #1a130b; --panel: #241a10; --panel-2: #2f2215;
  --line: rgba(242, 191, 94, .18); --line-strong: rgba(242, 191, 94, .38);
  --ink: #fbf5ec; --muted: #ddd0bd; --accent: #f2bf5e; --accent-2: #ffd98f; --on-accent: #241604;
  --glow-a: rgba(191, 120, 20, .45); --glow-b: rgba(255, 210, 120, .12); --top-bg: rgba(19, 14, 8, .92);
  --btn-shadow: rgba(242, 191, 94, .45); --deluxe-a: #3e2a10; --deluxe-b: #241a10;
}
[data-tema="barber"] {
  --bg: #0a1020; --bg-2: #0e1528; --panel: #131c33; --panel-2: #1a2540;
  --line: rgba(143, 180, 255, .18); --line-strong: rgba(143, 180, 255, .38);
  --ink: #eef3fb; --muted: #c3cde0; --accent: #8fb4ff; --accent-2: #c2d6ff; --on-accent: #06102a;
  --glow-a: rgba(30, 70, 160, .6); --glow-b: rgba(200, 40, 50, .12); --top-bg: rgba(10, 16, 32, .92);
  --btn-shadow: rgba(143, 180, 255, .4); --deluxe-a: #1a2a52; --deluxe-b: #131c33;
}
[data-tema="tattoo"] {
  --bg: #0b0b0c; --bg-2: #111113; --panel: #18181b; --panel-2: #212126;
  --line: rgba(200, 200, 210, .16); --line-strong: rgba(200, 200, 210, .34);
  --ink: #f4f4f5; --muted: #c4c4cb; --accent: #ff6a6a; --accent-2: #ff9c9c; --on-accent: #1a0405;
  --glow-a: rgba(200, 20, 30, .38); --glow-b: rgba(210, 210, 220, .08); --top-bg: rgba(11, 11, 12, .92);
  --btn-shadow: rgba(255, 106, 106, .4); --deluxe-a: #2a0d10; --deluxe-b: #18181b;
}

/* Icona dell'app nelle pagine di settore (solo se il file approvato è presente: vedi scripts/build-site.mjs). */
.app-icon { display: block; width: 96px; height: 96px; border-radius: 22%; margin: 0 0 18px; box-shadow: 0 18px 40px -16px var(--glow-a), 0 0 0 1px var(--line-strong); }
@media (min-width: 820px) { .app-icon { width: 120px; height: 120px; } }
.sector-card .sector-icon { width: 48px; height: 48px; border-radius: 22%; margin-bottom: 8px; }

/* Schermate dell'app a scorrimento (slide), senza JavaScript: scroll-snap orizzontale. */
.slides { list-style: none; margin: 28px 0 0; padding: 4px 4px 18px; display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 4px; -webkit-overflow-scrolling: touch; }
.slides > li { flex: 0 0 min(72vw, 270px); scroll-snap-align: start; position: relative; }
.slides .phone { width: auto; }
.slides figcaption { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; margin-top: 12px; text-align: center; color: var(--muted); font-size: .9rem; }
@media (min-width: 1180px) { .slides { justify-content: center; overflow-x: visible; } }
.brand-icon { border-radius: 22%; }
