/* =========================================================
   Dott.ssa Debora Campaniello
   Mondo visivo: luce naturale, panna e rosa antico.
   Fondo panna, un accento rosa antico, fotografia grande.
   ========================================================= */

@view-transition { navigation: auto; }

:root {
  --bg: #f7f1ea;
  --surface: #fcf8f3;
  --surface-2: #efe4d8;
  --ink: #2b201e;
  --ink-soft: #6b5852;
  --line: #e6d8cb;
  --accent: #9a5a5b;
  --accent-ink: #fdf7f4;
  --accent-soft: #f1ddd6;
  --scrim: rgba(43, 24, 22, .62);
  --shadow-c: rgba(70, 40, 34, .35);
  --radius: 26px;
  --radius-sm: 14px;
  --maxw: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-logo: "Cormorant Garamond", "Times New Roman", serif;
  color-scheme: light;
}


:root[data-theme="dark"] {
  --bg: #171211;
  --surface: #1f1817;
  --surface-2: #281f1d;
  --ink: #f3e9e3;
  --ink-soft: #bcaaa3;
  --line: #352a27;
  --accent: #e0a6a4;
  --accent-ink: #171211;
  --accent-soft: #33221f;
  --shadow-c: rgba(0, 0, 0, .55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
::selection { background: var(--accent); color: var(--accent-ink); }
html { scrollbar-color: color-mix(in srgb, var(--ink-soft) 45%, transparent) var(--bg); }
input, textarea { caret-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: var(--radius-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografia ---------- */
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 6.2vw, 5.8rem); letter-spacing: -0.045em; line-height: .96; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.8rem); letter-spacing: -0.04em; }
h3 { font-size: 1.4rem; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--ink-soft); max-width: 46ch; }
.muted { color: var(--ink-soft); }
.accent { color: var(--accent); }
.prose { max-width: 60ch; }
.prose p + p { margin-top: 1em; }
.prose a { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; view-transition-name: header;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color 200ms ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--bg); } }
.nav { display: flex; align-items: center; height: 76px; gap: 16px; }
.nav-links { margin-left: auto; order: 2; }
.nav > .theme-toggle { order: 3; }
.nav-toggle { order: 4; }
.theme-toggle {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 500;
  white-space: nowrap; cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.theme-toggle i { font-size: 1.15rem; color: var(--accent); transition: transform 400ms var(--ease-out); }
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle:hover i { transform: rotate(-20deg); }
.theme-toggle:active { transform: scale(.96); }
.nav-theme { display: none; }
:root[data-theme="dark"] .wordmark { color: color-mix(in srgb, var(--accent) 30%, var(--bg)); }
html.theme-anim, html.theme-anim * { transition: background-color 400ms ease, color 400ms ease, border-color 400ms ease !important; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 999px 999px 10px 10px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 600; font-size: .9rem; letter-spacing: -.02em; padding-top: 4px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-weight: 600; font-size: 1rem; letter-spacing: -.01em; }
.brand-text span { font-size: .78rem; color: var(--ink-soft); }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { position: relative; text-decoration: none; font-size: .95rem; color: var(--ink-soft); padding: 8px 12px; transition: color 150ms ease; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 300ms var(--ease-out);
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav-cta { margin-left: 10px; }
.nav-toggle {
  display: none; background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  width: 46px; height: 46px; border-radius: 999px; font-size: 1.3rem; cursor: pointer; align-items: center; justify-content: center;
}

/* ---------- Bottoni ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font: inherit; font-weight: 500; font-size: 1rem; text-decoration: none; cursor: pointer;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(.97); }
.btn i { font-size: 1.1em; transition: transform 300ms var(--ease-out); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 85%, var(--ink)); }
.nav-links a.btn-primary { color: var(--accent-ink); padding: 10px 20px; }
.btn-ghost { border-color: color-mix(in srgb, var(--ink) 22%, transparent); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%);
}
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--accent); text-decoration: none; }
.link-arrow i { transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover i.ph-arrow-right { transform: translateX(3px); }
  .btn-primary:hover::before { transform: translateX(120%); transition: transform 800ms var(--ease-out); }
  .link-arrow:hover i { transform: translateX(4px); }
}

/* ---------- Hero editoriale: testo a sinistra, foto a filo bordo ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100dvh - 76px);
  padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
}
.hero-text { align-self: center; padding: clamp(48px, 7vw, 96px) clamp(24px, 4vw, 64px) clamp(48px, 7vw, 96px) 0; }
.hero h1 { max-width: 11ch; }
.hero .lead { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-media { position: relative; min-height: 560px; }
.hero-photo {
  position: absolute; inset: 0 0 24px 0; overflow: hidden;
  border-radius: 360px 0 0 var(--radius);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-inset {
  position: absolute; left: -12%; bottom: 0; width: 38%; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--radius); border: 8px solid var(--bg); box-shadow: 0 30px 60px -30px var(--shadow-c);
}
.hero-inset img { width: 100%; height: 100%; object-fit: cover; }

/* Entrata della hero */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; transform: translateY(105%); animation: word-up 1000ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 65ms + 200ms); }
@keyframes word-up { to { transform: translateY(0); } }
.fade-up { opacity: 0; transform: translateY(16px); animation: fade-up 900ms var(--ease-out) forwards; animation-delay: var(--d, 600ms); }
@keyframes fade-up { to { opacity: 1; transform: none; } }
.curtain { clip-path: inset(0 0 0 100%); animation: curtain 1500ms var(--ease-in-out) 100ms forwards; }
.curtain img { transform: scale(1.12); animation: settle 2200ms var(--ease-out) 100ms forwards; }
@keyframes curtain { to { clip-path: inset(0 0 0 0); } }
@keyframes settle { to { transform: scale(1); } }
.pop-in { opacity: 0; transform: translateY(40px) scale(.96); animation: pop-in 1100ms var(--ease-out) 1000ms forwards; }
@keyframes pop-in { to { opacity: 1; transform: none; } }

/* ---------- Credenziali ---------- */
.creds { padding: clamp(48px, 6vw, 72px) 0 clamp(40px, 5vw, 56px); }
.creds ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.creds li { padding-top: 18px; border-top: 1px solid var(--ink); }
.creds strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; letter-spacing: -.015em; line-height: 1.25; }
.creds span { display: block; margin-top: 6px; color: var(--ink-soft); font-size: .92rem; }

/* ---------- Sezioni ---------- */
section { padding: clamp(88px, 11vw, 150px) 0; }
.section-head { max-width: 780px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head h2 + p { margin-top: 20px; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }

/* ---------- Due ambiti: pannelli fotografici che si allargano ---------- */
.panels { display: flex; gap: 16px; height: clamp(520px, 70vh, 680px); }
.panel {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--radius);
  color: #fbf5f0; text-decoration: none; isolation: isolate;
  transition: flex-grow 800ms var(--ease-out);
}
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1200ms var(--ease-out); }
.panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(43, 24, 22, 0) 30%, rgba(43, 24, 22, .32) 55%, var(--scrim) 100%);
}
.panel-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(24px, 3.4vw, 44px); display: grid; gap: 14px; }
.panel h3 { font-size: clamp(2rem, 3.6vw, 3.2rem); letter-spacing: -.04em; line-height: 1; }
.panel p { color: rgba(251, 245, 240, .92); max-width: 40ch; }
.panel .chips li { border-color: rgba(251, 245, 240, .45); color: #fbf5f0; }
.panel-arrow {
  position: absolute; top: clamp(20px, 3vw, 32px); right: clamp(20px, 3vw, 32px);
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem;
  background: rgba(251, 245, 240, .94); color: #2b201e; transition: transform 500ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .panels:hover .panel { flex-grow: .8; }
  .panels .panel:hover { flex-grow: 1.5; }
  .panel:hover img { transform: scale(1.06); }
  .panel:hover .panel-arrow { transform: rotate(-45deg); }
}

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .88rem; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); }

/* ---------- Percorso della visita ---------- */
.journey-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.journey-head { position: sticky; top: 120px; }
.journey-head p { margin-top: 20px; }
.journey-img { margin-top: 40px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; }
.journey-img img { width: 100%; height: 100%; object-fit: cover; }
.journey { list-style: none; margin: 0; padding: 0 0 0 48px; position: relative; }
.journey::before, .journey::after { content: ""; position: absolute; left: 11px; top: 16px; bottom: 16px; width: 2px; border-radius: 2px; background: var(--line); }
.journey::after { background: var(--accent); transform-origin: top; transform: scaleY(1); }
.journey li { position: relative; padding: 0 0 clamp(56px, 8vw, 96px); }
.journey li:last-child { padding-bottom: 0; }
.journey li::before { content: ""; position: absolute; left: -48px; top: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); z-index: 1; }
.journey li::after { content: ""; position: absolute; left: -41px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); z-index: 2; }
.journey h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.035em; margin-bottom: 14px; }
.journey p { color: var(--ink-soft); max-width: 42ch; font-size: 1.08rem; }
@supports (animation-timeline: view()) {
  .journey::after { transform: scaleY(0); animation: fill-line linear both; animation-timeline: view(); animation-range: entry 40% cover 70%; }
  .journey li::after { transform: scale(0); animation: dot-on linear both; animation-timeline: view(); animation-range: entry 60% contain 15%; }
  @keyframes fill-line { to { transform: scaleY(1); } }
  @keyframes dot-on { to { transform: scale(1); } }
}

/* ---------- Anteprima chi sono ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-img { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; max-width: 520px; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-grid h2 { margin-bottom: 26px; }
.about-grid .link-arrow { margin-top: 34px; }

/* Rivelazione a sipario allo scroll */
/* Sipario: attivo solo quando il JavaScript lo prepara (classe .js-wipe), altrimenti la foto resta visibile */
.js-wipe .wipe { clip-path: inset(100% 0 0 0); transition: clip-path 1400ms var(--ease-in-out); }
.js-wipe .wipe.in { clip-path: inset(0 0 0 0); }
.js-wipe .about-img.wipe img { transform: scale(1.12); transition: transform 2000ms var(--ease-out); }
.js-wipe .about-img.wipe.in img { transform: scale(1); }

/* ---------- Citazione: riquadro con firma ---------- */
.statement { padding: clamp(56px, 7vw, 96px) 0; }
.quote-card {
  position: relative; margin: 0; overflow: hidden;
  padding: clamp(36px, 6vw, 88px) clamp(28px, 6vw, 96px);
  border-radius: var(--radius); background: var(--accent-soft);
  display: grid; grid-template-columns: 1.5fr 1fr; column-gap: clamp(32px, 6vw, 96px); row-gap: clamp(24px, 3vw, 40px); align-items: center;
}
.quote-card > :not(.quote-photo) { grid-column: 1; }
.quote-photo {
  grid-column: 2; grid-row: 1 / span 3; align-self: stretch; min-height: 380px;
  border-radius: 999px 999px var(--radius-sm) var(--radius-sm); overflow: hidden;
}
.quote-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) {
  .quote-card { grid-template-columns: 1fr; }
  .quote-photo { grid-column: 1; grid-row: auto; min-height: 0; aspect-ratio: 4 / 5; max-width: 280px; }
}
.quote-mark { font-size: clamp(2.6rem, 4vw, 3.6rem); color: var(--accent); line-height: 1; }
.quote-card blockquote {
  margin: 0; font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 3.4rem); font-weight: 500;
  letter-spacing: -.035em; line-height: 1.1; max-width: 22ch;
}
.quote-sign { display: flex; align-items: center; gap: 16px; }
.quote-sign img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; flex: none; }
.quote-sign strong { display: block; font-weight: 600; }
.quote-sign span span { color: var(--ink-soft); font-size: .92rem; }
@supports (animation-timeline: view()) {
  .glow-words .gw { opacity: .2; animation: word-on linear both; animation-timeline: view(); animation-range: cover var(--a) cover var(--b); }
  @keyframes word-on { to { opacity: 1; } }
}

/* ---------- Banda fotografica con parallasse ---------- */
.band { padding: 0; }
.band-frame { position: relative; height: clamp(320px, 62vh, 640px); overflow: hidden; border-radius: var(--radius); }
.band-frame img { position: absolute; left: 0; width: 100%; height: 130%; top: -15%; object-fit: cover; }
@supports (animation-timeline: view()) {
  .band-frame img { animation: parallax linear both; animation-timeline: view(); }
  @keyframes parallax { from { transform: translateY(-10%); } to { transform: translateY(10%); } }
}

/* ---------- CTA finale ---------- */
.cta { padding: clamp(88px, 11vw, 150px) 0 clamp(64px, 8vw, 100px); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.cta h2 { font-size: clamp(2.8rem, 7vw, 6.4rem); letter-spacing: -.05em; line-height: .92; }
.cta .lead { margin-top: 24px; }
.cta-links { display: flex; flex-direction: column; }
.cta-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; text-decoration: none;
  padding: 22px 0; border-top: 1px solid var(--ink); transition: color 200ms ease;
}
.cta-link:last-child { border-bottom: 1px solid var(--ink); }
.cta-link small { display: block; color: var(--ink-soft); font-size: .82rem; }
.cta-link strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem, 1.8vw, 1.45rem); letter-spacing: -.02em; word-break: break-word; }
.cta-link i { font-size: 1.5rem; color: var(--accent); transition: transform 400ms var(--ease-out); flex: none; }
@media (hover: hover) and (pointer: fine) {
  .cta-link:hover { color: var(--accent); }
  .cta-link:hover i { transform: rotate(-45deg); }
}

/* ---------- Pagine interne ---------- */
.page-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); min-height: min(78vh, 760px);
  padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); }
.page-hero .hero-text { align-self: end; }
.page-hero h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); max-width: 13ch; }
.page-hero .hero-photo { inset: 0 0 24px 0; border-radius: 280px 0 0 var(--radius); }
.page-hero-plain { padding: clamp(64px, 9vw, 128px) 0 clamp(32px, 4vw, 48px); }
.page-hero-plain h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); }
.page-hero-plain .lead { margin-top: 22px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius); padding: clamp(26px, 3vw, 38px); background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px; transition: transform 500ms var(--ease-out), border-color 300ms ease;
}
.tile h3 { font-size: clamp(1.35rem, 1.9vw, 1.65rem); }
.tile p { color: var(--ink-soft); font-size: .98rem; }
.tile .chips { margin-top: auto; padding-top: 14px; }
.tile-icon { font-size: 1.9rem; color: var(--accent); margin-bottom: 10px; }
.tile-accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.tile-accent p { color: color-mix(in srgb, var(--accent-ink) 85%, transparent); }
.tile-accent .tile-icon { color: var(--accent-ink); }
.tile-accent .chips li { border-color: color-mix(in srgb, var(--accent-ink) 35%, transparent); }
.tile-tint { background: var(--accent-soft); border-color: transparent; }
.tile-photo { padding: 0; border: 0; min-height: 320px; }
.tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out); }
.tile-big { min-height: 340px; justify-content: space-between; }
.tile-big h3 { font-size: clamp(2rem, 3.2vw, 2.8rem); letter-spacing: -.04em; }
.s-6 { grid-column: span 6; } .s-4 { grid-column: span 4; } .s-3 { grid-column: span 3; } .s-2 { grid-column: span 2; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 65%);
  transition: opacity 300ms ease;
}
.tile-accent.spot::before { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .16), transparent 65%); }
@media (hover: hover) and (pointer: fine) {
  .spot:hover::before { opacity: 1; }
  .tile:hover { transform: translateY(-4px); }
  .tile:not(.tile-accent):not(.tile-photo):hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
  .tile-photo:hover img { transform: scale(1.05); }
}

/* ---------- Approccio: righe grandi ---------- */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: baseline; padding: 30px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps h3 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); letter-spacing: -.035em; transition: color 250ms ease, transform 500ms var(--ease-out); }
.steps p { color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) { .steps li:hover h3 { color: var(--accent); transform: translateX(10px); } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 0; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem); letter-spacing: -.015em;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 1rem;
  border: 1px solid var(--line); color: var(--accent); transition: transform 300ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.faq details[open] summary i { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.faq details p { padding: 0 0 26px; color: var(--ink-soft); max-width: 62ch; }
.faq details[open] p { animation: fade-up 400ms var(--ease-out); }

/* ---------- Chi sono ---------- */
.profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.titles { list-style: none; margin: 0; padding: 0; }
.titles li { display: flex; gap: 18px; align-items: baseline; justify-content: space-between; padding: 24px 0; border-top: 1px solid var(--ink); }
.titles li:last-child { border-bottom: 1px solid var(--ink); }
.titles strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.2rem, 1.8vw, 1.5rem); letter-spacing: -.02em; }
.titles span { color: var(--ink-soft); font-size: .95rem; text-align: right; }
.values { list-style: none; margin: 0; padding: 0; }
.values li { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding: clamp(24px, 3vw, 36px) 0; border-top: 1px solid var(--line); }
.values li:last-child { border-bottom: 1px solid var(--line); }
.values h3 { font-size: clamp(1.9rem, 4vw, 3.4rem); letter-spacing: -.045em; line-height: 1; transition: color 300ms ease, transform 500ms var(--ease-out); }
.values p { color: var(--ink-soft); max-width: 40ch; }
@media (hover: hover) and (pointer: fine) { .values li:hover h3 { color: var(--accent); transform: translateX(12px); } }
.collab {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 48px); align-items: start;
  padding: clamp(32px, 5vw, 64px); border-radius: var(--radius); background: var(--accent-soft);
}
.collab-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.8rem; background: var(--accent); color: var(--accent-ink); }
.collab h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 14px; }
.collab p { color: var(--ink-soft); max-width: 62ch; }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.info-block { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.info-block:last-child { border-bottom: 1px solid var(--line); }
.info-block i { font-size: 1.4rem; color: var(--accent); }
.info-block h3 { font-size: 1rem; margin-bottom: 4px; font-family: var(--font); font-weight: 600; letter-spacing: 0; }
.info-block p, .info-block a { color: var(--ink-soft); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.form-card h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); margin-bottom: 8px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-top: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: .9rem; font-weight: 500; }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; width: 100%;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #b8382c; }
textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; font-size: .9rem; color: var(--ink-soft); font-weight: 400; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.check a { color: var(--accent); }
.error { color: #b8382c; font-size: .85rem; min-height: 1em; }
.form-card .btn { margin-top: 26px; }
.form-note { margin-top: 14px; font-size: .85rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 0; font-size: .95rem; overflow: hidden; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-h { margin: 0 0 14px; font-family: var(--font); font-size: .9rem; font-weight: 600; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; transition: color 150ms ease; }
.footer-grid a:hover { color: var(--ink); }
.footer-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-legal a { color: inherit; }
.wordmark {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -.055em; line-height: .8; white-space: nowrap;
  font-size: clamp(2.6rem, 11.4vw, 11rem); margin-top: 40px; text-align: center; user-select: none;
  color: var(--accent-soft); transform: translateY(16%);
}

/* ---------- Comparsa allo scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal, .no-js .fade-up, .no-js .pop-in { opacity: 1; transform: none; animation: none; }
.no-js .curtain { clip-path: none; animation: none; }
.no-js .curtain img { transform: none; animation: none; }

::view-transition-old(root) { animation: vt-out 220ms ease both; }
::view-transition-new(root) { animation: vt-in 450ms var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  .split .w > span, .fade-up, .pop-in, .curtain, .curtain img { animation: none; transform: none; opacity: 1; clip-path: none; }
  .js-wipe .wipe, .js-wipe .wipe img { clip-path: none; transform: none; transition: none; }
  .reveal { transform: none; transition: opacity 400ms ease; }
  .journey::after, .journey li::after, .glow-words .gw, .band-frame img { animation: none !important; transform: none !important; opacity: 1 !important; }
  .panel, .panel img, .tile, .btn i, .values h3, .steps h3 { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav-links {
    display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 16px 20px; gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 12px; font-size: 1.05rem; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .nav > .theme-toggle { margin-left: auto; height: 46px; }
  .nav-theme { display: block; margin-top: 6px; }
  .theme-toggle-menu { width: 100%; justify-content: center; height: 48px; font-size: 1rem; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .s-6, .s-4 { grid-column: span 2; } .s-3, .s-2 { grid-column: span 1; }
}
@media (max-width: 767px) {
  body { font-size: 1rem; }
  .hero, .page-hero { grid-template-columns: 1fr; min-height: 0; padding-left: 0; }
  .hero-text { padding: 32px var(--gutter) 40px; order: 2; }
  .page-hero .hero-text { padding: 32px var(--gutter) 24px; }
  .hero-media { order: 1; min-height: 0; height: 62vh; margin-left: var(--gutter); }
  .page-hero .hero-media { height: 46vh; }
  .hero-photo { border-radius: 200px 0 0 var(--radius); inset: 0 0 0 0; }
  .page-hero .hero-photo { border-radius: 160px 0 0 var(--radius); inset: 0; }
  .hero-inset { width: 34%; left: -4%; bottom: -28px; border-width: 6px; }
  .creds ul { grid-template-columns: 1fr; gap: 20px; }
  .panels { flex-direction: column; height: auto; }
  .panel { flex: none; height: 460px; }
  .journey-wrap, .about-grid, .cta-inner, .profile, .contact-grid, .footer-grid, .field-row,
  .values li, .steps li, .faq-grid { grid-template-columns: 1fr; }
  .journey-head { position: static; }
  .journey-img { display: none; }
  .about-img { max-width: 340px; }
  .bento { grid-template-columns: 1fr; }
  .s-6, .s-4, .s-3, .s-2 { grid-column: auto; }
  .values li, .steps li { gap: 10px; }
  .collab { grid-template-columns: 1fr; }
  .titles li { flex-direction: column; gap: 4px; }
  .titles span { text-align: left; }
  .brand-text span { display: none; }
}

/* Inquadratura sobria per la foto della pelle */
img[src$="pelle.jpg"] { object-position: 50% 12%; }

/* ---------- Blog: elenco articoli ---------- */
.posts { display: grid; gap: clamp(48px, 7vw, 96px); }
.post-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; text-decoration: none; color: inherit; }
.post-row:nth-child(even) .post-cover { order: 2; }
.post-cover { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease-out); }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--ink-soft); font-size: .9rem; margin-bottom: 18px; }
.post-tag { color: var(--accent); font-weight: 600; }
.post-row h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); letter-spacing: -.04em; line-height: 1.02; transition: color 250ms ease; }
.post-row p { margin-top: 18px; color: var(--ink-soft); max-width: 48ch; }
.post-row .link-arrow { margin-top: 26px; }
@media (hover: hover) and (pointer: fine) {
  .post-row:hover .post-cover img { transform: scale(1.05); }
  .post-row:hover h2 { color: var(--accent); }
  .post-row:hover .link-arrow i { transform: translateX(4px); }
}

/* ---------- Articolo ---------- */
.article-head { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 48px); }
.article-head .wrap { max-width: 980px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); text-decoration: none; font-size: .95rem; margin-bottom: 32px; transition: color 150ms ease; }
.back-link:hover { color: var(--accent); }
.back-link i { transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .back-link:hover i { transform: translateX(-3px); } }
.article-head h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); max-width: 18ch; }
.article-head .lead { margin-top: 24px; max-width: 58ch; }
.article-head .post-meta { margin: 28px 0 0; }
.article-cover { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.article-cover-frame { aspect-ratio: 21 / 9; overflow: hidden; border-radius: var(--radius); }
.article-cover-frame img { width: 100%; height: 100%; object-fit: cover; }
.article-body { max-width: 720px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--gutter) 0; font-size: 1.12rem; line-height: 1.75; }
.article-body > * + * { margin-top: 1.1em; }
.article-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -.03em; line-height: 1.15; margin-top: 2.2em; }
.article-body ul { padding-left: 1.2em; }
.article-body li + li { margin-top: .5em; }
.article-body li::marker { color: var(--accent); }
.article-body strong { font-weight: 600; }
.callout {
  margin: 2em 0; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-sm);
  background: var(--accent-soft); font-size: 1.05rem;
}
.callout strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; letter-spacing: -.015em; margin-bottom: 6px; color: var(--accent); }
.article-note { margin-top: 2.6em; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .92rem; }
.author { display: flex; align-items: center; gap: 16px; margin-top: 2.4em; }
.author-mark { width: 52px; height: 52px; flex: none; border-radius: 999px 999px 12px 12px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; padding-top: 4px; }
.author strong { display: block; font-weight: 600; }
.author span { color: var(--ink-soft); font-size: .92rem; }
.more { padding-top: clamp(72px, 9vw, 120px); }

@media (max-width: 767px) {
  .post-row { grid-template-columns: 1fr; }
  .post-row:nth-child(even) .post-cover { order: 0; }
  .article-cover-frame { aspect-ratio: 4 / 3; }
  .article-body { font-size: 1.05rem; }
}

/* Ritratto: inquadratura sul volto */
img[src$="ritratto.jpg"] { object-position: 50% 18%; }

/* ---------- Logotipo ---------- */
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--font-logo); font-weight: 600; font-size: 1.7rem; letter-spacing: .005em; color: var(--ink); }
.logo-sub { margin-top: 5px; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.site-footer .logo-name { font-size: 2rem; }
.wordmark { font-family: var(--font-logo); font-weight: 500; letter-spacing: -.01em; }
.author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
@media (max-width: 767px) {
  .logo-name { font-size: 1.45rem; }
  .logo-sub { font-size: .7rem; letter-spacing: .12em; }
}

/* ---------- Dallo studio: racconti ---------- */
.stories { padding-bottom: 0; }
.stories-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
.story { margin: 0; padding: clamp(28px, 4vw, 52px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.story blockquote { margin: 0; font-family: var(--font-logo); font-style: italic; font-weight: 500; font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.15; color: var(--accent); }
.story figcaption { color: var(--ink-soft); max-width: 52ch; }
.story-main { background: var(--accent-soft); border-color: transparent; }
.story-main blockquote { font-size: clamp(2rem, 3.6vw, 3.1rem); }
.stories-note { margin-top: 18px; font-size: .88rem; color: var(--ink-soft); }
@media (max-width: 767px) { .stories-grid { grid-template-columns: 1fr; } }

@media (max-width: 520px) {
  .nav > .theme-toggle { width: 46px; padding: 0; justify-content: center; }
  .nav > .theme-toggle .theme-label { display: none; }
}
