/* Valeria Del Campo — psicologa e psicoterapeuta
   Un solo motivo: il cerchio (le librerie tonde dello studio di via Al Monte,
   i giri del pizzo di Cantù, la circolarità delle relazioni). */

/* Bricolage Grotesque (SIL Open Font License), ospitato sul sito: nessun dato inviato a terzi */
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/bricolage-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/bricolage-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ground: #FAF8F4;   /* bianco caldo */
  --sand: #E4DACD;     /* sabbia */
  --wine: #754650;     /* vino: azioni e motivo */
  --wine-strong: #5C343D;
  --wine-2: #8D5F69;
  --wine-3: #C4A1A7;
  --wine-4: #D9C3C3;
  --sage: #A7B1A0;     /* salvia */
  --sage-soft: #CBD1C5;
  --ink: #303C3D;      /* grafite */
  --ink-soft: #4E5A5B;

  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.75rem, 1rem + 6.4vw, 6.25rem);

  --m: clamp(16px, 3.2vw, 48px);
  --gap: clamp(20px, 2.4vw, 32px);
  --section: clamp(96px, 12vw, 200px);
  --max: 1440px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-soft: cubic-bezier(0.25, 0.1, 0.25, 1);
  --t-press: 120ms;
  --t-hover: 200ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.55;
  font-optical-sizing: auto;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; }
::selection { background: var(--wine); color: var(--ground); }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .on-wine :focus-visible { outline-color: var(--ground); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--m); top: -100px; z-index: 50;
  background: var(--ink); color: var(--ground); padding: 12px 18px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.display, h1 {
  font-size: var(--step-display);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
h2, .h2 {
  font-size: var(--step-head);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h3, .h3 {
  font-size: var(--step-lead);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.lead { font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.01em; }
.small { font-size: var(--step-small); line-height: 1.5; }
.measure { max-width: 58ch; }
.prose p + p { margin-top: 1em; }
.prose p, .prose li { max-width: 60ch; }
.prose h3 { margin-top: 1.8em; margin-bottom: 0.5em; }
.prose ul { margin-top: 1em; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--m); }
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(64px, 8vw, 120px); }
.field-sand { background: var(--sand); }
.field-sage { background: var(--sage); }
.field-ink { background: var(--ink); color: var(--ground); }
.field-wine { background: var(--wine); color: var(--ground); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
@media (max-width: 860px) { .grid { grid-template-columns: minmax(0, 1fr); } .grid > * { grid-column: 1 / -1 !important; } }

/* circle bullet: the motif at text size */
.dots { list-style: none; display: grid; gap: 0.9em; }
.dots li { position: relative; padding-left: 1.6em; }
.dots li::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 0.62em; height: 0.62em; border-radius: 50%; background: var(--wine);
}
.field-wine .dots li::before, .field-ink .dots li::before { background: var(--sage); }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0.7em 1.5em;
  border: 0; border-radius: 999px;
  background: var(--wine); color: var(--ground);
  font: inherit; font-weight: 500; font-size: var(--step-body); line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-light { background: var(--ground); color: var(--wine); }
.btn-sand { background: var(--sand); color: var(--ink); }
.btn-small { min-height: 44px; padding: 0.5em 1.1em; font-size: var(--step-small); }
.link {
  font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}
.arrow::after { content: " →"; display: inline-block; transition: transform var(--t-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--wine-strong); }
  .btn-light:hover { background: var(--sand); color: var(--wine-strong); }
  .btn-sand:hover { background: var(--sage-soft); }
  .link:hover { text-decoration-color: currentColor; }
  .arrow:hover::after { transform: translateX(4px); }
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.wordmark { font-weight: 600; font-size: var(--step-lead); letter-spacing: -0.03em; text-decoration: none; line-height: 1.1; }
.wordmark span { display: block; font-weight: 400; font-size: var(--step-small); letter-spacing: 0; color: var(--ink-soft); }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); list-style: none; }
.nav-links a { text-decoration: none; font-weight: 500; padding-block: 10px; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; text-decoration-color: var(--wine); }
@media (hover: hover) and (pointer: fine) { .nav-links a:not(.btn):hover { color: var(--wine); } }
.nav-mobile { display: none; }
@media (max-width: 520px) { .wordmark span { display: none; } .wordmark { font-size: 1.25rem; } }
@media (max-width: 1080px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: flex; align-items: center; gap: 10px; }
  .nav-mobile details > summary {
    list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center;
    padding: 0 6px; font-weight: 500;
  }
  .nav-mobile details > summary::-webkit-details-marker { display: none; }
  .nav-mobile details[open] > summary { color: var(--wine); }
  .nav-panel {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink); color: var(--ground);
    padding: 20px var(--m) 32px;
  }
  .nav-mobile details:not([open]) .nav-panel { display: none; }
  .nav-panel ul { list-style: none; display: grid; }
  .nav-panel ul a { display: block; padding: 12px 0; font-size: 1.5rem; font-weight: 500; text-decoration: none; letter-spacing: -0.02em; }
  .nav-panel .actions { margin-top: 20px; }
}

/* ---------- home hero: the giant circle ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - 84px); min-height: max(640px, calc(100svh - 84px));
  display: flex; align-items: center;
}
.hero-shape {
  position: absolute; z-index: 0;
  width: 120vh; height: 120vh; border-radius: 50%;
  left: max(calc(78% - 60vh), 50%); top: calc(55% - 60vh);
  background: var(--wine);
}
.hero-portrait {
  position: absolute; z-index: 1;
  width: min(34vw, 50vh, 460px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  left: calc((max(78% - 60vh, 50%) + 100%) / 2 - min(17vw, 25vh, 230px)); top: calc(52% - min(17vw, 25vh, 230px));
  background: var(--sand);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hero .wrap { position: relative; z-index: 2; }
.hero-text { max-width: min(calc(max(78vw - 60vh, 50vw) - var(--m) - 48px), 640px); padding-block: 48px 72px; }
.hero h1 { margin-bottom: 0.28em; }
.hero .lead { font-weight: 500; margin-bottom: 0.9em; max-width: 22ch; }
.hero .intro { max-width: 46ch; margin-bottom: 2em; }
.hero .facts { margin-top: 2.2em; color: var(--ink-soft); font-size: var(--step-small); }
.hero-caption {
  position: absolute; z-index: 2; right: var(--m); bottom: 20px;
  color: var(--ground); font-size: var(--step-small); text-align: right; max-width: 30ch;
}
@media (max-width: 860px) {
  .hero { display: block; min-height: auto; padding-bottom: calc(118vw + 24px); }
  .hero-shape { width: 130vw; height: 130vw; left: -15vw; top: auto; bottom: calc(-130vw + 112vw); }
  .hero-portrait { width: 70vw; left: 15vw; top: auto; bottom: 22vw; }
  .hero-text { max-width: none; padding-block: 28px 0; }
  .hero h1 { font-size: 11.5vw; }
  .hero .lead { max-width: 24ch; }
  .hero-caption { left: var(--m); right: var(--m); bottom: 8px; text-align: center; max-width: none; }
}

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 140px) clamp(72px, 10vw, 160px); }
.page-hero .shape {
  position: absolute; z-index: 0; border-radius: 50%; background: var(--wine);
  width: 86vh; height: 86vh; right: -30vh; top: 50%; transform: translateY(-50%);
}
.page-hero .shape img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.page-hero .shape.has-photo { background: var(--sand); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .text { max-width: min(58%, 760px); }
.page-hero h1 { margin-bottom: 0.4em; }
.page-hero .lead { max-width: 40ch; margin-bottom: 1.6em; }
.crumb { margin-bottom: 1.4em; font-size: var(--step-small); }
.crumb a { color: var(--ink-soft); }
@media (max-width: 860px) {
  .page-hero { padding-bottom: calc(58vw + 40px); }
  .page-hero .shape { width: 110vw; height: 110vw; right: -18vw; top: auto; bottom: -52vw; transform: none; }
  .page-hero .text { max-width: none; }
  .page-hero h1 { font-size: clamp(2.5rem, 10.5vw, 4rem); }
}

/* summary strip: the short answer first */
.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); padding-block: clamp(40px, 5vw, 64px); }
.summary dt { font-weight: 600; margin-bottom: 0.35em; }
.summary dd { max-width: 34ch; }
@media (max-width: 860px) { .summary { grid-template-columns: 1fr 1fr; row-gap: 28px; } }
@media (max-width: 520px) { .summary { grid-template-columns: 1fr; } }

/* two-column text block: heading left, text right */
.split-text .head { grid-column: 1 / span 4; }
.split-text .body { grid-column: 6 / span 7; }
.split-text + .split-text { margin-top: clamp(72px, 8vw, 128px); }
@media (max-width: 860px) { .split-text .head { margin-bottom: 24px; } }

/* circle photo */
.disc { border-radius: 50%; overflow: hidden; aspect-ratio: 1; background: var(--sand); }
.disc img { width: 100%; height: 100%; object-fit: cover; }
figcaption, .credit { font-size: var(--step-small); color: var(--ink-soft); margin-top: 14px; max-width: 46ch; }
.on-dark figcaption, .field-ink .credit, .field-wine .credit { color: var(--sand); }

/* ---------- situations ---------- */
.situations .head { grid-column: 1 / span 5; }
.situations .body { grid-column: 7 / span 6; }
.situations .dots { font-size: var(--step-lead); line-height: 1.3; gap: 0.8em; letter-spacing: -0.01em; }
.situations .note { margin-top: 2.4em; max-width: 48ch; }
.situations .head p { margin-top: 1.2em; max-width: 34ch; }

/* ---------- percorsi: two-column menu with photo bullets ---------- */
.menu-cat { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-top: 140px; margin-bottom: 40px; }
.menu-cat:first-of-type { margin-top: 0; }
.menu-cat .count { font-size: var(--step-body); color: var(--ink-soft); white-space: nowrap; }
.menu { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; row-gap: 40px; }
.menu-item a { display: grid; grid-template-columns: 76px 1fr; gap: 22px; align-items: start; text-decoration: none; }
.menu-item .disc { width: 76px; }
.menu-item .row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.menu-item .name { font-weight: 600; font-size: var(--step-lead); letter-spacing: -0.015em; }
.menu-item .where { font-size: var(--step-small); color: var(--wine); font-weight: 500; white-space: nowrap; }
.menu-item p { margin-top: 6px; max-width: 46ch; }
.menu-item .more { display: inline-block; margin-top: 10px; font-weight: 500; color: var(--wine); }
.menu-item .disc img { transition: transform 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .menu-item a:hover .name { color: var(--wine); }
  .menu-item a:hover .disc img { transform: scale(1.08); }
}
.menu-note { margin-top: 56px; max-width: 60ch; color: var(--ink-soft); }
@media (max-width: 860px) {
  .menu { grid-template-columns: 1fr; row-gap: 32px; }
  .menu-item a { grid-template-columns: 56px 1fr; gap: 16px; }
  .menu-item .disc { width: 56px; }
  .menu-item .row { flex-direction: column; gap: 2px; }
  .menu-cat { margin-top: 112px; }
}

/* ---------- come lavoro: accordion of tinted panels ---------- */
.approach-intro .head { grid-column: 1 / span 5; }
.approach-intro .body { grid-column: 7 / span 5; }
.accordion { display: grid; gap: 0; margin-top: 64px; }
.panel { padding: 28px clamp(20px, 3vw, 40px) 36px; }
.panel:nth-child(1) { background: var(--wine); color: var(--ground); }
.panel:nth-child(2) { background: var(--wine-2); color: var(--ground); }
.panel:nth-child(3) { background: var(--wine-3); color: var(--ink); }
.panel:nth-child(4) { background: var(--wine-4); color: var(--ink); }
.panel-toggle {
  all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%;
  font-weight: 600; font-size: var(--step-lead); letter-spacing: -0.015em; line-height: 1.1;
}
.panel-toggle:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.panel-body { margin-top: 18px; display: grid; gap: 1em; }
.panel-body p { max-width: 40ch; }
.panel-body .more { font-weight: 500; }
@media (min-width: 861px) {
  .js .accordion { display: flex; height: 540px; }
  .js .panel { position: relative; flex: 0 0 9%; min-width: 0; overflow: hidden; padding: 0; transition: flex-basis 450ms var(--ease-out); }
  .js .panel.is-open { flex: 1 1 auto; }
  .js .panel .panel-toggle { position: absolute; inset: 0; padding: 28px clamp(24px, 3vw, 44px); }
  .js .panel:not(.is-open) .panel-toggle span {
    position: absolute; left: 50%; bottom: 28px; margin-left: -0.6em;
    writing-mode: vertical-rl; transform: rotate(180deg);
    white-space: nowrap; font-size: var(--step-lead); line-height: 1.2;
  }
  .js .panel.is-open .panel-toggle { pointer-events: none; font-size: var(--step-head); letter-spacing: -0.03em; line-height: 1; }
  .js .panel .panel-body {
    position: absolute; left: clamp(24px, 3vw, 44px); bottom: 40px; margin: 0; width: min(46ch, 70%);
    opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity 300ms ease, transform 450ms var(--ease-out), visibility 0s linear 300ms; pointer-events: none;
  }
  .js .panel.is-open .panel-body { opacity: 1; visibility: visible; transform: none; transition-delay: 200ms, 200ms, 0s; pointer-events: auto; }
  .js .panel .panel-body p { font-size: var(--step-body); }
  .js .panel:not(.is-open) .panel-disc { visibility: hidden; }
  .js .panel .panel-disc { position: absolute; right: clamp(24px, 3vw, 48px); top: 50%; width: min(30%, 340px); transform: translateY(-50%); opacity: 0; transition: opacity 400ms ease 150ms; }
  .js .panel.is-open .panel-disc { opacity: 1; }
}
.panel-disc { display: none; }
@media (min-width: 861px) { .js .panel-disc { display: block; } }
@media (max-width: 860px) {
  .js .panel { padding: 0; }
  .js .panel-toggle { padding: 20px 20px; min-height: 64px; }
  .js .panel:not(.is-open) .panel-body { display: none; }
  .js .panel.is-open .panel-body { padding: 0 20px 28px; margin-top: 0; }
}

/* ---------- primo colloquio + reply clock ---------- */
.first .head { grid-column: 1 / span 6; }
.steps { list-style: none; counter-reset: none; margin-top: 48px; display: grid; gap: 34px; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; }
.steps .ring { width: 44px; height: 44px; border-radius: 50%; background: var(--wine); flex: none; margin-top: 2px; }
.steps li:nth-child(2) .ring { background: var(--wine-2); }
.steps li:nth-child(3) .ring { background: var(--wine-3); }
.steps li:nth-child(4) .ring { background: var(--sage); }
.steps h3 { margin-bottom: 0.3em; }
.steps p { max-width: 44ch; }
.first .clock-col { grid-column: 8 / span 5; align-self: start; }
.clock { background: var(--sand); padding: clamp(28px, 3vw, 44px); }
.clock h3 { margin-bottom: 0.6em; }
.clock .choices { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 18px 26px; }
.chip {
  all: unset; box-sizing: border-box; cursor: pointer;
  min-height: 44px; padding: 10px 16px; border-radius: 999px;
  background: var(--ground); color: var(--ink); font-size: var(--step-small); font-weight: 500;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.chip:focus-visible { outline: 3px solid var(--wine); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .chip[aria-pressed="false"]:hover { background: var(--sage-soft); } }
.clock .out { display: grid; gap: 18px; }
.clock .out p { font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.015em; }
.clock .out strong { display: block; font-weight: 600; color: var(--wine); }
.clock .out strong.updated { animation: pop 420ms var(--ease-out); }
@keyframes pop { from { opacity: 0.2; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.clock .fine { margin-top: 22px; font-size: var(--step-small); color: var(--ink-soft); }
.no-js-only { display: block; }
.js .no-js-only { display: none; }
.js-only { display: none; }
.js .js-only { display: block; }
@media (max-width: 860px) { .first .clock-col { margin-top: 56px; } }

/* ---------- profile: inset panel with shaped picture ---------- */
.inset { margin-inline: 20px; background: var(--ink); color: var(--ground); position: relative; overflow: hidden; min-height: 108svh; }
.inset .wrap { position: relative; padding-block: 56px; }
.inset .statement { grid-column: 1 / span 6; font-size: var(--step-head); max-width: 13ch; }
.inset .texts { grid-column: 8 / span 4; display: grid; gap: 56px; align-content: start; }
.inset .texts h3 { margin-bottom: 0.5em; }
.inset .texts p { font-size: var(--step-body); }
.inset .texts .dots { gap: 0.55em; }
.inset .shaped {
  position: absolute; left: var(--m); bottom: -9vw; width: 38vw; max-width: 600px; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
}
.inset .shaped img { width: 100%; height: 100%; object-fit: cover; }
.inset .shaped-credit { position: absolute; left: calc(var(--m) + 40vw); bottom: 24px; max-width: 28ch; color: var(--sand); font-size: var(--step-small); }
@media (max-width: 1100px) and (min-width: 861px) { .inset .texts { grid-column: 7 / span 6; } }
@media (max-width: 860px) {
  .inset { margin-inline: 10px; min-height: 0; display: flex; flex-direction: column; }
  .inset .wrap { padding-bottom: 8px; }
  .inset .shaped-credit { order: 2; padding-inline: var(--m); margin: 0 0 24px; }
  .inset .statement { font-size: 8.5vw; margin-bottom: 40px; }
  .inset .texts { gap: 40px; }
  .inset .shaped { order: 3; position: relative; width: 86vw; left: auto; bottom: auto; margin: 0 auto calc(-86vw * 0.25); }
  .inset .shaped-credit { position: static; }
}

/* ---------- studio e online ---------- */
.place .pic { grid-column: 1 / span 6; }
.place .pic .disc { width: min(100%, 600px); }
.place .pic .disc img { transform: scale(1.06); transition: transform 2400ms var(--ease-soft); }
.place .info { grid-column: 8 / span 5; align-self: center; }
.place .info h2 { margin-bottom: 0.5em; }
.place address { font-style: normal; font-size: var(--step-lead); line-height: 1.3; margin-bottom: 1em; }
.place .modes { display: grid; gap: 22px; margin-block: 32px 36px; }
.place .modes h3 { font-size: var(--step-body); margin-bottom: 4px; }
@media (max-width: 860px) { .place .pic { margin-bottom: 40px; } }

/* ---------- FAQ: tabbed index cards ---------- */
.faq .head { grid-column: 3 / span 8; margin-bottom: 56px; }
.cards { grid-column: 3 / span 8; padding-top: 0; }
.card {
  --tx: 0px; --tw: 210px;
  position: relative; margin-top: -40px;
  clip-path: polygon(0 40px, var(--tx) 40px, var(--tx) 0, calc(var(--tx) + var(--tw)) 0, calc(var(--tx) + var(--tw)) 40px, 100% 40px, 100% 100%, 0 100%);
  padding-bottom: 40px;
}
.card:first-child { margin-top: 0; }
.card:nth-child(1) { --tx: 0px; background: var(--ground); }
.card:nth-child(2) { --tx: 150px; background: var(--sage); }
.card:nth-child(3) { --tx: 300px; background: var(--wine-4); }
.card:nth-child(4) { --tx: 450px; background: var(--sage-soft); }
.card:nth-child(5) { --tx: 600px; background: var(--ground); }
.card:last-child { padding-bottom: 8px; }
.card summary { list-style: none; cursor: pointer; display: block; padding: 0 clamp(20px, 3vw, 40px) 0; }
.card summary::-webkit-details-marker { display: none; }
.card .tab {
  display: flex; align-items: center; height: 40px; margin-left: calc(var(--tx) - clamp(20px, 3vw, 40px) + 18px);
  font-size: var(--step-small); font-weight: 600;
}
.card:first-child .tab { margin-left: 18px; }
.card .q {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 56px; padding-block: 12px 8px;
  font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.01em; line-height: 1.25;
}
.card .q::after {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink); transition: transform 300ms var(--ease-out), background-color 200ms ease;
}
.card[open] .q::after { transform: scale(0.55); background: var(--wine); }
.card .a { padding: 4px clamp(20px, 3vw, 40px) 20px; max-width: calc(50ch + 80px); }
.card .a p + p { margin-top: 0.8em; }
@media (hover: hover) and (pointer: fine) { .card summary:hover .q { color: var(--wine-strong); } }
@media (max-width: 860px) {
  .card { --tw: 160px; }
  .card:nth-child(2) { --tx: 44px; }
  .card:nth-child(3) { --tx: 88px; }
  .card:nth-child(4) { --tx: 132px; }
  .card:nth-child(5) { --tx: 176px; }
  .card .tab { margin-left: calc(var(--tx) - 20px + 12px); }
  .card:first-child .tab { margin-left: 12px; }
  .card .a { font-size: 1rem; padding-inline: 20px; }
}

/* ---------- contact coupon ---------- */
.coupon-wrap { padding-block: clamp(96px, 9vw, 140px); }
.coupon {
  grid-column: 2 / span 10;
  position: relative; overflow: hidden; display: grid; grid-template-columns: 46% 54%;
  background: var(--wine); color: var(--ground);
}
.coupon .notch { position: absolute; width: 36px; height: 36px; border-radius: 50%; background: var(--ground); left: 46%; margin-left: -18px; }
.coupon .notch.top { top: -18px; }
.coupon .notch.bottom { bottom: -18px; }
.field-sand .coupon .notch { background: var(--sand); }
.coupon .left { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.coupon .left h2 { max-width: 10ch; }
.coupon .left p { max-width: 40ch; }
.coupon .perf { position: absolute; left: 46%; top: 30px; bottom: 30px; width: 8px; margin-left: -4px; display: flex; flex-direction: column; justify-content: space-between; }
.coupon .perf i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--ground); opacity: 0.85; }
.coupon .right { padding: clamp(32px, 4vw, 56px); display: grid; gap: 12px; align-content: center; }
.coupon .right .btn { width: 100%; min-height: 58px; }
.copyline {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--wine-strong); padding: 10px 10px 10px 20px; min-height: 58px;
}
.copyline a { text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.copy-btn {
  all: unset; box-sizing: border-box; cursor: pointer; flex: none;
  min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--wine); color: var(--ground); font-size: var(--step-small); font-weight: 500;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.copy-btn:active { transform: scale(0.95); }
.copy-btn:focus-visible { outline: 3px solid var(--ground); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .copy-btn:hover { background: var(--wine-2); } }
.coupon .fine { font-size: var(--step-small); color: var(--wine-4); margin-top: 10px; }
@media (max-width: 860px) {
  .coupon {
    grid-template-columns: 1fr;
  }
  .coupon .perf { display: none; }
  .coupon .notch { display: none; }
  .coupon .right { position: relative; }
  .coupon .right::before, .coupon .right::after { content: ""; position: absolute; top: -18px; width: 36px; height: 36px; border-radius: 50%; background: var(--ground); }
  .coupon .right::before { left: -18px; }
  .coupon .right::after { right: -18px; }
  .field-sand .coupon .right::before, .field-sand .coupon .right::after { background: var(--sand); }
  .coupon .left { padding: 32px 24px 36px; }
  .coupon .right { padding: 36px 24px 32px; }
  .coupon-wrap .wrap { padding-inline: 12px; }
}

/* ---------- prose pages ---------- */
.answer { font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.01em; max-width: 34ch; }
.aside-box { background: var(--sand); padding: clamp(24px, 3vw, 40px); margin-top: 40px; }
.aside-box h3 { margin-bottom: 0.4em; }
.aside-box.sage { background: var(--sage); }
.figure-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
.figure-row .disc-wrap { grid-column: 2 / span 4; }
.figure-row .quote { grid-column: 7 / span 5; }
.quote p { font-size: var(--step-lead); line-height: 1.22; letter-spacing: -0.02em; font-weight: 500; max-width: 26ch; }
@media (max-width: 860px) {
  .figure-row { grid-template-columns: 1fr; gap: 32px; }
  .figure-row > * { grid-column: 1 / -1 !important; }
  .figure-row .disc-wrap { max-width: 78vw; }
}
.timeline { list-style: none; display: grid; gap: 22px; }
.timeline li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 18px; }
.timeline .y { font-weight: 600; color: var(--wine); font-variant-numeric: tabular-nums; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--ground); padding-top: clamp(72px, 9vw, 128px); padding-bottom: 32px; overflow: hidden; }
.mark { display: flex; align-items: flex-end; gap: 6px; height: clamp(120px, 20vw, 300px); margin-bottom: 64px; }
.mark span { flex: 1 1 0; border-radius: 50% 50% 0 0; }
.mark span:nth-child(1) { height: 100%; background: var(--wine); }
.mark span:nth-child(2) { height: 72%; background: var(--sage); }
.mark span:nth-child(3) { height: 88%; background: var(--sand); }
.mark span:nth-child(4) { height: 60%; background: var(--wine-2); }
.mark span:nth-child(5) { height: 94%; background: var(--ground); }
.mark span:nth-child(6) { height: 66%; background: var(--wine-3); }
.footer-name { font-size: min(var(--step-display), 8.4vw); font-weight: 600; letter-spacing: -0.045em; line-height: 0.95; margin-bottom: 56px; }
.footer-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--gap); }
.footer-cols .col { grid-column: span 2; }
.footer-cols .col.wide { grid-column: span 4; }
.footer-cols h2 { font-size: var(--step-body); letter-spacing: 0; line-height: 1.3; margin-bottom: 12px; color: var(--sage); }
.footer-cols ul { list-style: none; display: grid; gap: 6px; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { text-decoration: underline; }
.footer-legal { margin-top: 64px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; font-size: var(--step-small); color: var(--sand); }
.footer-legal p { max-width: 52ch; }
.credits { margin-top: 28px; font-size: var(--step-small); color: var(--sand); max-width: 56ch; }
.credits a { color: var(--sand); }
@media (max-width: 1080px) { .footer-cols .col { grid-column: span 4; } .footer-cols .col.wide { grid-column: span 12; } }
@media (max-width: 560px) { .footer-cols .col { grid-column: span 6; } .mark { gap: 4px; } }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] > * {
    opacity: 0; transform: translateY(24px);
    transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
  }
  .js [data-reveal].is-in > * { opacity: 1; transform: none; }
  .js [data-reveal].is-in > *:nth-child(2) { transition-delay: 80ms; }
  .js [data-reveal].is-in > *:nth-child(3) { transition-delay: 160ms; }
  .js [data-reveal].is-in > *:nth-child(4) { transition-delay: 240ms; }
  .js [data-reveal].is-in > *:nth-child(5) { transition-delay: 320ms; }
  .js [data-reveal].is-in > *:nth-child(6) { transition-delay: 400ms; }

  /* the clip sits on the picture, not on the observed frame, so the observer always sees the frame */
  .js .shutter img { clip-path: inset(0 0 100% 0); transform: scale(1.12); transition: clip-path 1100ms var(--ease-in-out) 150ms, transform 1500ms var(--ease-soft) 150ms; }
  .js .shutter.is-in img { clip-path: inset(0); transform: none; }

  .js .grow { transform: scale(0.82); transition: transform 1400ms var(--ease-out); }
  .js .grow.is-in { transform: none; }

  .place .disc.is-in img { transform: scale(1); }
  .drift img { animation: drift 24s var(--ease-soft) infinite alternate; }
  @keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -1.5%); } }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] > * { opacity: 0; transition: opacity 500ms ease; }
  .js [data-reveal].is-in > * { opacity: 1; }
  .clock .out strong.updated { animation: none; }
}
.field-sage .timeline .y { color: var(--ink); }
.page-hero .crumb { margin: 1.6em 0 0; }
@media (max-width: 400px) { .wordmark { font-size: 1.0625rem; white-space: nowrap; } .site-header .wrap { gap: 12px; } }

/* audit fixes */
.card summary:focus-visible { outline: none; }
.card summary:focus-visible .q { outline: 3px solid var(--wine); outline-offset: 6px; border-radius: 2px; }
@media (max-width: 359px) { .nav-mobile > .btn { display: none; } }
.actions .link, .crumb .link, .count .link, .panel-body .more, .facts .link { display: inline-block; padding-block: 10px; }
.facts .link { padding-block: 10px 4px; }
.wordmark { display: inline-block; padding-block: 12px; }
.crumb .link { padding-block: 12px; }
.faq:not(.field-sand) .card:nth-child(1), .faq:not(.field-sand) .card:nth-child(5) { background: var(--sand); }

/* mobile pass */
a, button, summary { -webkit-tap-highlight-color: transparent; }
.wrap { padding-left: max(var(--m), env(safe-area-inset-left)); padding-right: max(var(--m), env(safe-area-inset-right)); }
.hero .facts, .coupon .fine, .clock .fine { max-width: 60ch; }
@media (max-width: 1080px) {
  /* compact header that stays reachable: hides while reading down, returns on the way up */
  .site-header { position: sticky; top: 0; background: var(--ground); transition: transform 300ms var(--ease-out); }
  .site-header .wrap { min-height: 64px; }
  .site-header.is-hidden { transform: translateY(-100%); }
  .site-header.is-hidden:focus-within { transform: none; }
  .nav-panel { max-height: calc(100svh - 64px); overflow-y: auto; overscroll-behavior: contain; }
  .hero { min-height: max(600px, calc(100svh - 64px)); }
}
@media (max-width: 860px) {
  .hero { min-height: 0; }
  .timeline li { grid-template-columns: 3.4rem 1fr; gap: 12px; }
  .section { padding-block: clamp(72px, 18vw, 96px); }
}
@media (max-width: 420px) {
  .copyline { padding-left: 16px; }
  .copyline a { font-size: 0.9375rem; overflow-wrap: normal; word-break: normal; }
}
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
@media (max-width: 1080px) { html { scroll-padding-top: 80px; } }

/* ritratto: cerchio intero, mai tagliato dal bordo, alla sua dimensione reale */
.page-hero .shape.portrait {
  width: min(34vw, 58vh, 440px); height: auto; aspect-ratio: 1;
  right: max(var(--m), calc((100vw - var(--max)) / 2 + var(--m)) + 2vw); top: 50%; transform: translateY(-50%);
  background: var(--wine);
  padding: clamp(10px, 1.2vw, 16px);
}
.page-hero .shape.portrait img { object-position: 50% 30%; }
@media (max-width: 860px) {
  .page-hero:has(.portrait) { --pd: min(76vw, 420px); padding-bottom: calc(var(--pd) + 40px + 56px); }
  .page-hero .shape.portrait { width: var(--pd); right: calc(50% - var(--pd) / 2); top: auto; bottom: 40px; transform: none; padding: 10px; }
}
.prose ul + p, .prose ol + p { margin-top: 1em; }

/* didascalia accanto al cerchio: larga solo quanto lo spazio fino alla colonna dei testi, così va a capo prima */
@media (min-width: 861px) {
  .inset { --shape-w: 38vw; --cols-before: 7; }
  .inset .shaped { width: var(--shape-w); }
  .inset .shaped-credit {
    left: calc(var(--m) + var(--shape-w) + 2vw);
    max-width: calc(var(--m) + var(--cols-before) * ((100vw - 40px - 2 * var(--m) - 11 * var(--gap)) / 12 + var(--gap)) - (var(--m) + var(--shape-w) + 2vw) - 32px);
  }
}
@media (min-width: 861px) and (max-width: 1100px) { .inset { --shape-w: 30vw; --cols-before: 6; } }
@media (max-width: 860px) { .inset .shaped-credit { margin: 28px 0 28px; } }
.site-footer .actions { gap: 10px; }

/* badge "Powered by Netlify" iniettato dall'hosting gratuito */
#nl-badge-frame { display: none !important; }
