/* =========================================================================
   Paolo Manocchi — foglio di stile unico (restyle 2026-12)
   Identità del cliente: verde inchiostro, carta, oro; Georgia + Arial.
   Tutto passa dalle variabili qui sotto.
   ========================================================================= */

:root {
  /* colore */
  --paper: #f5f2eb;
  --paper-2: #ebe6db;
  --ink: #202e2c;
  --ink-soft: #46524e;
  --ink-raised: #2a3b37;
  --night: #0a0c0b;
  --gold: #ad8b54;
  --gold-hover: #c4a36d;
  --gold-text: #775b31;
  --gold-on-dark: #d4bb8d;
  --on-dark: #f5f2eb;
  --on-dark-soft: #c9d1ca;
  --error: #a4372b;
  --line: #d3cdc0;
  --line-on-dark: rgba(245, 242, 235, 0.16);

  /* carattere */
  --f-display: Georgia, "Times New Roman", serif;
  --f-text: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --t-hero: clamp(46px, 5.2vw, 78px);
  --t-h2: clamp(34px, 3.8vw, 56px);
  --t-h3: clamp(24px, 2.2vw, 32px);
  --t-lead: clamp(19px, 1.45vw, 21px);
  --t-body: 17px;
  --t-small: 15px;

  /* spazio */
  --max: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --pad-x: max(var(--gutter), calc((100% - var(--max)) / 2));
  --section: clamp(88px, 10vw, 152px);
  --header-h: 76px;

  /* movimento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: var(--t-body)/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; }
h1, h2, h3, h4, blockquote { font-family: var(--f-display); font-weight: normal; margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-hero); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: var(--t-h2); line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; }
strong { font-weight: 700; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.hero :focus-visible, .quote :focus-visible, .insight :focus-visible, .appuntuale-business :focus-visible,
.site-footer :focus-visible { outline-color: var(--gold-on-dark); }
::selection { background: var(--gold); color: var(--night); }
.sr-only, .wf-sr {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* etichette sopra i titoli: frase normale, leggibile */
.eyebrow {
  font: 700 var(--t-small)/1.4 var(--f-text);
  color: var(--gold-text);
  margin: 0 0 18px;
}
.hero .eyebrow, .quote .eyebrow, .insight .eyebrow, .appuntuale-business .eyebrow { color: var(--gold-on-dark); }

/* ---------- pulsanti e link d'azione ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  background: var(--gold); color: #16201d;
  font: 700 var(--t-small)/1.2 var(--f-text);
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button[disabled] { opacity: 0.6; cursor: progress; }
.plain, button.plain {
  display: inline-block;
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
  font: 700 var(--t-small)/1.5 var(--f-text);
  color: inherit;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.45em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}
.link-inline, .link-button {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em;
}
.link-inline { color: var(--gold-on-dark); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--gold-hover); }
  .plain:hover, button.plain:hover { text-decoration-color: currentColor; }
  .link-inline:hover { color: var(--on-dark); }
}

/* ---------- testata ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad-x);
  background: var(--paper);
  transition: background-color var(--t-ui) ease;
}
.brand { text-decoration: none; font: 21px/1 var(--f-text); letter-spacing: 0.06em; white-space: nowrap; }
.brand small { display: block; margin-top: 8px; font-size: 13px; letter-spacing: 0.12em; color: var(--ink-soft); }
.site-header nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); font-size: var(--t-small); }
.site-header nav a { text-decoration: none; padding: 8px 0; white-space: nowrap; }
.site-header nav .contact-link {
  padding: 0 18px; min-height: 42px; display: inline-flex; align-items: center;
  background: var(--ink); color: var(--paper); font-weight: 700;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.site-header nav .contact-link:active { transform: scale(0.97); }
.nav-toggle {
  display: none;
  min-height: 44px; padding: 0 16px;
  background: var(--ink); color: var(--paper); border: 0; cursor: pointer;
  font: 700 var(--t-small)/1 var(--f-text);
}
@media (hover: hover) and (pointer: fine) {
  .site-header nav a:not(.contact-link):hover { text-decoration: underline; text-underline-offset: 0.4em; }
  .site-header nav .contact-link:hover { background: var(--ink-raised); }
}
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-header nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--pad-x) 28px;
    background: var(--paper);
    font: 24px/1.2 var(--f-display);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out), visibility 0s linear var(--t-ui);
  }
  .site-header.is-open nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .site-header nav a { padding: 12px 0; }
  .site-header nav .contact-link { margin-top: 16px; justify-content: center; min-height: 52px; font: 700 var(--t-small)/1 var(--f-text); }
}

/* ---------- sezioni: margini e ritmo comuni ---------- */
main > section { padding: var(--section) var(--pad-x); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px clamp(32px, 6vw, 96px); align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.section-head > p, .section-head .services-intro { font-size: var(--t-lead); line-height: 1.55; color: var(--ink); max-width: 44ch; margin: 0; }
.services-intro p { margin: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
  min-height: min(calc(100svh - var(--header-h)), 900px);
  padding-top: clamp(64px, 8vw, 112px);
  padding-bottom: clamp(96px, 10vw, 136px);
  background: var(--night) url('/assets/paolo-aula.webp') 37% 43% / cover no-repeat;
  color: var(--on-dark);
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(4,5,5,.95) 0%, rgba(4,5,5,.9) 40%, rgba(4,5,5,.8) 66%, rgba(4,5,5,.93) 100%); /* taste-skill-ignore: neutral scrim over the hero photograph */
}
.hero-content { max-width: 600px; }
.hero h1 { margin-bottom: 28px; }
.hero h1 em { color: var(--gold-on-dark); }
.hero-content > p { font-size: var(--t-lead); line-height: 1.55; color: #d9dfda; max-width: 40ch; margin-bottom: 40px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.hero-album {
  display: grid; grid-template-columns: 1.12fr .88fr; grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: 10px; height: min(640px, 74vh); overflow: hidden;
}
.hero-album figure { position: relative; margin: 0; overflow: hidden; background: #222; min-width: 0; min-height: 0; }
.hero-album img {
  width: 100%; height: 100%; object-fit: cover; filter: grayscale(1);
  transition: transform 700ms var(--ease-soft), filter 700ms var(--ease-soft);
}
.hero-album figure:nth-child(1) { grid-area: 1 / 1 / 4 / 2; }
.hero-album figure:nth-child(2) { grid-area: 1 / 2 / 3 / 3; }
.hero-album figure:nth-child(3) { grid-area: 3 / 2 / 7 / 3; }
.hero-album figure:nth-child(4) { grid-area: 4 / 1 / 6 / 2; }
.hero-album figure:nth-child(5) { grid-area: 6 / 1 / 7 / 2; }
.hero-album figure:nth-child(1) img { object-position: 50% 57%; }
.hero-album figure:nth-child(2) img { object-position: 50% 39%; }
.hero-album figure:nth-child(3) img { object-position: 50% 31%; }
.hero-album figure:nth-child(4) img { object-position: 66% 49%; }
.hero-album figure:nth-child(5) img { object-position: 48% 32%; }
@media (hover: hover) and (pointer: fine) {
  .hero-album figure:hover img { transform: scale(1.045); filter: grayscale(1) brightness(1.12); }
}
.hero-bottom {
  position: absolute; left: var(--pad-x); right: var(--pad-x); bottom: 32px;
  display: flex; justify-content: space-between; gap: 24px;
  font-size: var(--t-small); color: #b9c1bb;
}
.hero-bottom a { text-decoration: none; color: var(--on-dark); }
@media (hover: hover) and (pointer: fine) { .hero-bottom a:hover { text-decoration: underline; text-underline-offset: 0.35em; } }

/* ---------- riflessione (#paolo) ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.intro > div:first-child { position: sticky; top: calc(var(--header-h) + 40px); }
.bio-copy { line-height: 1.7; max-width: 64ch; }
.bio-copy p { margin: 0; }
.signature { margin-top: 40px; font: italic var(--t-h3)/1.2 var(--f-display); color: var(--gold-text); }

/* ---------- tre modi di lavorare (#lavoro) ---------- */
#lavoro { background: var(--paper-2); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); }
.service { display: flex; flex-direction: column; }
.service .number { display: block; font: 700 var(--t-small)/1.4 var(--f-text); color: var(--gold-text); margin-bottom: 14px; }
.service h3 { margin-bottom: 18px; }
.service p, .event-word-copy p { color: var(--ink); }
.event-word-copy p { margin: 0 0 0.35em; }
.tags { padding-top: 20px; font-size: var(--t-small); line-height: 1.7; color: var(--ink-soft); }

/* ---------- citazione ---------- */
.quote { background: var(--ink); color: var(--on-dark); text-align: center; }
.quote blockquote { font-size: var(--t-h2); line-height: 1.12; letter-spacing: -0.02em; max-width: 16ch; margin: 0 auto 28px; }
.quote > p { font-size: var(--t-small); color: var(--on-dark-soft); margin: 0; }

/* ---------- percorso (path) ---------- */
.path { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.path h2 { margin-bottom: 28px; }
.path > div > p { font-size: var(--t-lead); line-height: 1.55; max-width: 38ch; margin-bottom: 32px; }
.steps { padding-left: 1.6em; display: grid; gap: clamp(36px, 4vw, 56px); }
.steps li { padding-left: 0.6em; }
.steps li::marker { font: var(--t-h3) var(--f-display); color: var(--gold-text); }
.steps h3 { margin-bottom: 10px; }
.steps p { font-size: var(--t-lead); line-height: 1.55; margin: 0; max-width: 40ch; }

/* ---------- corsi (#percorsi) ---------- */
#percorsi { background: var(--paper-2); }
.programs { display: grid; gap: clamp(56px, 6vw, 88px); }
.program { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px clamp(32px, 6vw, 96px); align-items: start; }
.program-head h3 { letter-spacing: 0.01em; margin-bottom: 12px; }
.course-subtitle { font-size: var(--t-small); line-height: 1.5; color: var(--gold-text); font-weight: 700; margin-bottom: 14px; }
.duration { font-size: var(--t-small); color: var(--ink-soft); }
.program-body > p { font-size: var(--t-lead); line-height: 1.55; margin-bottom: 18px; }
.program-body > ul { padding-left: 1.2em; color: var(--ink); }
.program-body > ul li { margin-bottom: 6px; }

/* schede apribili (corsi e brochure) */
.scheda-disclosure { margin-top: 26px; }
.scheda-toggle {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 44px;
  font: 700 var(--t-small)/1.4 var(--f-text);
  transition: color var(--t-hover) ease;
}
.scheda-toggle::-webkit-details-marker { display: none; }
.scheda-chevron {
  order: -1; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font: 21px/1 var(--f-text);
  transition: transform var(--t-ui) var(--ease-out);
}
.scheda-disclosure[open] .scheda-chevron { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .scheda-toggle:hover { color: var(--gold-text); } }
.scheda-panel { margin-top: 18px; padding: clamp(24px, 3vw, 40px); background: var(--paper); }
.scheda-heading { font: var(--t-lead)/1.3 var(--f-display); letter-spacing: 0.04em; margin-bottom: 8px; }
.scheda-content { overflow-wrap: break-word; }
.scheda-content h4 { font: 700 var(--t-body)/1.4 var(--f-text); margin: 26px 0 10px; }
.scheda-content p { margin: 0 0 14px; }
.scheda-content ul { padding-left: 1.2em; margin: 0 0 14px; }
.scheda-content li { margin-bottom: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .scheda-disclosure[open] .scheda-panel { animation: panel-in 320ms var(--ease-out); }
}
@keyframes panel-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Insight Sparks ---------- */
.insight { background: var(--ink); color: var(--on-dark); }
.insight-head-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.insight h2 { margin-bottom: 28px; }
.insight-copy > p { font-size: var(--t-lead); line-height: 1.6; color: var(--on-dark-soft); max-width: 52ch; margin: 0; }
.insight-brand-wrap { display: flex; justify-content: flex-end; }
.insight-brand-card { margin: 0; width: min(100%, 380px); background: #f3f3f1; border-radius: 16px; padding: 18px; }
.insight-brand-card img { width: 100%; border-radius: 10px; }
.insight-questions {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  margin: clamp(72px, 8vw, 120px) 0;
}
.insight-questions p { font: var(--t-lead)/1.45 var(--f-display); margin: 0; }
.insight-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.insight-tool { background: var(--ink-raised); padding: clamp(28px, 3.5vw, 52px); display: flex; flex-direction: column; }
.insight-tool h3 { font-size: var(--t-h2); margin: 0 0 16px; }
.insight-tool .question { font: var(--t-lead)/1.45 var(--f-display); color: var(--gold-on-dark); margin-bottom: 22px; }
.insight-tool p, .insight-tool li { color: var(--on-dark-soft); }
.insight-tool ul { padding-left: 1.2em; margin: 0 0 20px; }
.insight-tool li { margin-bottom: 8px; }
.insight-tool .scheda-disclosure { margin: 4px 0 28px; }
.insight-tool .scheda-toggle { color: var(--on-dark); text-decoration: underline; text-underline-offset: 0.45em; text-decoration-color: rgba(245,242,235,.45); }
.insight-tool .scheda-panel { background: transparent; padding: 18px 0 0; }
.insight-tool .scheda-panel img { width: 100%; margin-bottom: 16px; }
.demo-gold-action { margin: auto 0 18px; padding-top: 8px; }
.insight-tool > p:last-child { margin: 0; font-size: var(--t-small); }
.insight-message {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 32px clamp(40px, 6vw, 96px); align-items: start;
  margin-top: clamp(72px, 8vw, 120px);
}
.insight-message-intro p { font-size: var(--t-lead); line-height: 1.6; color: var(--on-dark-soft); }
.insight-message-intro .insight-message-note { font-size: var(--t-small); margin-top: 28px; }
.insight-message-note strong { color: var(--on-dark); }
.insight-message-steps .statement { font: var(--t-h3)/1.35 var(--f-display); letter-spacing: -0.01em; color: var(--on-dark); margin-bottom: 22px; }
.insight-final-help { font-size: var(--t-lead); color: var(--on-dark-soft); }
.insight-message > a.plain { grid-column: 2; justify-self: start; color: var(--on-dark); }

/* ---------- Appuntuale ---------- */
.appuntuale-intro { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.appuntuale-intro h2 { margin-bottom: 24px; }
.appuntuale-intro h2 em { font-style: italic; }
.appuntuale-intro p { font-size: var(--t-lead); line-height: 1.55; margin: 0 0 12px; max-width: 56ch; }
.appuntuale-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.appuntuale-card { display: flex; flex-direction: column; }
.appuntuale-cover { display: flex; align-items: center; justify-content: center; background: var(--paper-2); aspect-ratio: 4 / 4.2; padding: 32px; margin-bottom: 26px; overflow: hidden; }
.appuntuale-cover img { height: 82%; width: auto; object-fit: contain; transition: transform 600ms var(--ease-soft); }
@media (hover: hover) and (pointer: fine) { .appuntuale-card:hover .appuntuale-cover img { transform: translateY(-6px); } }
.appuntuale-card h3 { margin-bottom: 12px; }
.appuntuale-card p { color: var(--ink); margin-bottom: 20px; }
.appuntuale-card .plain { margin-top: auto; align-self: flex-start; }
.appuntuale-business {
  margin-top: clamp(56px, 7vw, 96px);
  background: var(--ink); color: var(--on-dark);
  padding: clamp(32px, 5vw, 72px);
}
.appuntuale-business > div { max-width: 66ch; }
.appuntuale-business h3 { margin-bottom: 20px; }
.appuntuale-business p { color: var(--on-dark-soft); font-size: var(--t-lead); line-height: 1.55; margin-bottom: 14px; }
.appuntuale-business p:last-child { margin-bottom: 0; color: var(--on-dark); }

/* ---------- numeri ---------- */
#numeri { background: var(--paper-2); }
#numeri h2 { margin-bottom: clamp(48px, 6vw, 80px); }
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px clamp(20px, 3vw, 48px); }
.stat strong {
  display: block; font: var(--t-h2)/1 var(--f-display);
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap;
  margin-bottom: 14px;
}
.stat > span { display: block; font-size: var(--t-small); line-height: 1.5; color: var(--ink-soft); max-width: 20ch; }
.roll__digits { display: inline-flex; align-items: flex-start; font-variant-numeric: tabular-nums; line-height: 1.15; }
.roll__col { display: inline-block; height: 1.15em; overflow: clip; }
.roll__strip { display: flex; flex-direction: column; transform: translateY(calc(var(--d) * -1.15em)); }
.roll__strip::before { content: "0\A 1\A 2\A 3\A 4\A 5\A 6\A 7\A 8\A 9"; white-space: pre; line-height: 1.15; }
@media (prefers-reduced-motion: no-preference) {
  .roll:not(.is-in) .roll__strip { transform: none; }
  .roll.is-in .roll__strip { transition: transform 1100ms var(--ease-expo) calc(var(--i) * 70ms); }
}

/* ---------- restiamo in contatto, contatti ---------- */
.newsletter, .contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.newsletter { background: var(--paper-2); }
.newsletter h2, .contact h2 { margin-bottom: 28px; }
.newsletter > div:first-child p { font-size: var(--t-lead); line-height: 1.55; }
.contact-invitation { font-size: var(--t-lead); line-height: 1.8; }
.contact-invitation a { text-decoration-color: var(--gold); }
.privacy-intro p { margin: 0 0 12px; }
.privacy-intro { margin-bottom: 32px; }
.privacy-note { font-size: var(--t-small); line-height: 1.6; color: var(--ink-soft); margin: 20px 0 0; }
.privacy-note a { color: var(--ink); }

/* moduli Wix */
.wix-form { min-height: 96px; }
.wf-status { color: var(--ink-soft); }
.wf-field { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.wf-field > label:not(.wf-check), .wf-field legend { display: block; font-size: var(--t-small); color: var(--ink-soft); margin-bottom: 6px; padding: 0; }
.wf-req { color: var(--gold-text); }
.wf-field input[type=text], .wf-field input[type=email], .wf-field input[type=tel], .wf-field input[type=url],
.wf-field input[type=number], .wf-field input[type=date], .wf-field input[type=time], .wf-field input[type=datetime-local],
.wf-field input[type=password], .wf-field select, .wf-field textarea {
  display: block; width: 100%; margin: 0;
  padding: 12px 0; background: transparent; border: 0; border-bottom: 1px solid #8f978f; border-radius: 0;
  font-size: var(--t-body); outline-offset: 4px;
  transition: border-color var(--t-hover) ease;
}
.wf-field textarea { min-height: 140px; resize: vertical; padding: 12px; border: 1px solid #8f978f; }
.wf-field input:focus, .wf-field textarea:focus, .wf-field select:focus { border-color: var(--ink); }
.wf-field [aria-invalid=true] { border-color: var(--error); }
.wf-check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-small); line-height: 1.55; margin: 0 0 10px; cursor: pointer; color: var(--ink); }
.wf-check input { margin: 3px 0 0; width: 20px; height: 20px; flex: 0 0 20px; accent-color: var(--ink); }
.wf-help { font-size: var(--t-small); color: var(--ink-soft); margin: 8px 0 0; }
.wf-error { font-size: var(--t-small); color: var(--error); margin: 6px 0 0; }
.wf-form-error { font-size: var(--t-small); color: var(--error); margin: 0 0 14px; }
.wf-actions { display: flex; gap: 16px 28px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.wf-actions .button { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .wf-actions .button:hover { background: var(--ink-raised); } }
.wf-progress { font-size: var(--t-small); color: var(--gold-text); margin: 0 0 18px; }
.wf-thanks p { font: var(--t-lead)/1.45 var(--f-display); color: var(--ink); }

/* ---------- piè di pagina ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding: clamp(72px, 8vw, 120px) var(--pad-x) 32px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px; align-items: end; margin-bottom: clamp(56px, 7vw, 96px); }
.footer-name { font: clamp(48px, 8vw, 120px)/0.95 var(--f-display); letter-spacing: -0.03em; margin: 0 0 18px; }
.footer-tagline { font-size: var(--t-lead); color: var(--on-dark-soft); margin: 0; }
.social-links { display: flex; justify-content: flex-end; gap: 16px; }
.social-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px;
  background: var(--ink-raised); color: var(--on-dark); text-decoration: none; font: 700 var(--t-small)/1 var(--f-text);
  transition: background-color var(--t-hover) ease;
}
.social-link svg { width: 20px; height: 20px; fill: currentColor; }
@media (hover: hover) and (pointer: fine) { .social-link:hover { background: #34473f; } }
.legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: var(--t-small); line-height: 1.7; color: var(--on-dark-soft); }
.legal a, .legal .link-button { color: var(--on-dark); }
.site-footer--legal { padding-top: 40px; }

/* ---------- finestra moduli ---------- */
.form-dialog { border: 0; padding: 0; width: min(640px, 94vw); max-height: 92dvh; overflow: auto; background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.45); } /* taste-skill-ignore: dialog overlay */
.form-dialog::backdrop { background: rgba(10,17,15,.82); }
.form-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 32px 32px 0; }
.form-dialog__head h2 { font-size: var(--t-h3); margin: 0; }
.form-dialog__close { background: none; border: 0; font-size: 32px; line-height: 1; cursor: pointer; color: var(--ink); min-width: 44px; min-height: 44px; }
.form-dialog__intro { padding: 0 32px; margin: 14px 0 0; color: var(--ink-soft); }
.form-dialog__body { padding: 26px 32px 0; }
.form-dialog .privacy-note { padding: 0 32px 30px; margin: 4px 0 0; }
body:has(.form-dialog[open]) { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .form-dialog[open] { animation: dialog-in 320ms var(--ease-out); }
}
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- pagina privacy ---------- */
.policy { max-width: 860px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--gutter) clamp(80px, 9vw, 128px); }
.policy h1 { font-size: var(--t-h2); margin: 0 0 24px; }
.policy h2 { font-size: var(--t-h3); margin: 56px 0 16px; }
.policy p, .policy li { line-height: 1.7; }
.policy ul { padding-left: 1.2em; margin: 0 0 1em; }
.policy li { margin-bottom: 8px; }
.policy .policy-meta { font-size: var(--t-small); color: var(--ink-soft); }
.policy-toc { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 32px 0 8px; padding: 18px 22px; background: var(--paper-2); }
.policy-toc a { font-size: var(--t-small); font-weight: 700; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .policy-toc a:hover { text-decoration: underline; text-underline-offset: 0.3em; } }
.policy-table { overflow-x: auto; margin: 24px 0; }
.policy-table table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: var(--t-small); line-height: 1.5; }
.policy-table th, .policy-table td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid #d3cdc0; }
.policy-table th { color: var(--ink-soft); font-weight: 700; }

/* ---------- pagina curriculum ---------- */
.cv-hero {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px); align-items: end;
  padding-top: clamp(64px, 8vw, 112px); padding-bottom: 0;
  background: var(--night); color: var(--on-dark);
}
.cv-hero__text { align-self: center; padding-bottom: clamp(64px, 8vw, 112px); }
.cv-hero .eyebrow, .cv-talks .eyebrow { color: var(--gold-on-dark); }
.cv-hero :focus-visible, .cv-talks :focus-visible { outline-color: var(--gold-on-dark); }
.cv-hero h1 { margin-bottom: 22px; }
.cv-role { font-size: var(--t-lead); line-height: 1.5; color: var(--on-dark-soft); margin: 0 0 6px; }
.cv-since { font: italic clamp(28px, 3vw, 40px)/1.15 var(--f-display); color: var(--gold-on-dark); margin: 0 0 clamp(36px, 4vw, 52px); }
.cv-contacts {
  display: grid; grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 20px clamp(32px, 4vw, 64px); margin: 0 0 clamp(36px, 4vw, 48px);
}
.cv-contacts dt { font-size: var(--t-small); color: var(--on-dark-soft); margin-bottom: 2px; }
.cv-contacts dd { margin: 0; overflow-wrap: anywhere; }
.cv-contacts a { color: var(--on-dark); text-decoration-color: color-mix(in srgb, var(--gold-on-dark) 60%, transparent); }
.cv-portrait { margin: 0; align-self: end; overflow: hidden; }
.cv-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; }
@media (hover: hover) and (pointer: fine) {
  .cv-contacts a:hover { text-decoration-color: currentColor; }
}

.cv-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.cv-split > div:first-child { position: sticky; top: calc(var(--header-h) + 40px); }
.cv-lead { font-size: var(--t-lead); line-height: 1.6; max-width: 56ch; margin: 0 0 clamp(40px, 5vw, 56px); }
.cv-subhead { font: 700 var(--t-small)/1.4 var(--f-text); color: var(--ink-soft); letter-spacing: 0; margin: 0 0 6px; }
.cv-topics { list-style: none; padding: 0; margin: 0; }
.cv-topics li { font: var(--t-lead)/1.35 var(--f-display); padding: 16px 0; border-bottom: 1px solid var(--line); }

.cv-path { background: var(--paper); }
.cv-timeline { list-style: none; padding: 0; margin: 0; }
.cv-entry { padding: clamp(26px, 3vw, 36px) 0; border-top: 1px solid var(--line); }
.cv-entry:last-child { border-bottom: 1px solid var(--line); }
.cv-entry:first-child { padding-top: 0; border-top: 0; }
.cv-when { font: 700 var(--t-small)/1.4 var(--f-text); color: var(--gold-text); margin: 0 0 8px; }
.cv-entry h3 { font-size: clamp(22px, 1.9vw, 27px); line-height: 1.25; margin: 0 0 10px; }
.cv-entry p:not(.cv-when) { margin: 0 0 10px; max-width: 62ch; }
.cv-entry p:last-child { margin-bottom: 0; }
.cv-entry ul { padding-left: 1.2em; margin: 0; }
.cv-entry li { margin-bottom: 6px; }
.cv-entry .plain { margin-top: 8px; }

.cv-section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.cv-courses { background: var(--paper-2); }
.cv-course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.cv-course { background: var(--paper); padding: clamp(28px, 3.5vw, 48px); }
.cv-course__place { font: 700 var(--t-small)/1.5 var(--f-text); color: var(--gold-text); margin: 0 0 14px; }
.cv-course h3 { margin: 0 0 16px; }
.cv-course p:last-child { margin: 0; max-width: 60ch; }

.cv-talks { background: var(--ink); color: var(--on-dark); }
.cv-talks h2 { font-style: italic; }
.cv-venues {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px);
}
.cv-venues li { padding: 26px 0 30px; border-top: 1px solid var(--line-on-dark); }
.cv-venue__place { font: var(--t-lead)/1.3 var(--f-display); color: var(--on-dark); margin: 0 0 8px; }
.cv-venue__who { font-size: var(--t-small); line-height: 1.55; color: var(--on-dark-soft); margin: 0; }

.cv-clients { list-style: none; padding: 0; margin: 0; columns: 3 260px; column-gap: clamp(24px, 4vw, 64px); }
.cv-clients li { break-inside: avoid; padding: 14px 0 16px; border-top: 1px solid var(--line); }
.cv-clients strong { display: block; line-height: 1.45; }
.cv-clients span { display: block; font-size: var(--t-small); line-height: 1.5; color: var(--ink-soft); margin-top: 2px; }

.cv-cta {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px clamp(32px, 6vw, 96px); align-items: end;
  background: var(--paper-2);
}
.cv-cta__actions p { margin: 22px 0 0; font-size: var(--t-lead); line-height: 1.7; }
.cv-cta__actions a { text-decoration-color: var(--gold); }

@media (max-width: 1100px) {
  .cv-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cv-venues { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cv-hero { grid-template-columns: 1fr; padding-top: 56px; gap: 0; }
  .cv-hero__text { padding-bottom: 48px; }
  .cv-portrait { margin: 0 calc(var(--pad-x) * -1); }
  .cv-portrait img { aspect-ratio: 1 / 1; object-position: 50% 22%; }
  .cv-contacts { grid-template-columns: 1fr; }
  .cv-split, .cv-cta, .cv-course-grid, .cv-venues { grid-template-columns: 1fr; }
  .cv-split > div:first-child { position: static; }
}
@media print {
  .cv-page .site-footer .footer-top, .cv-page [data-open-form], .cv-page [data-print], .cv-page .cv-cta, .cv-page .cv-portrait { display: none !important; }
  .cv-page main > section, .cv-page .site-footer { padding: 18px 0 !important; background: none !important; color: #000 !important; }
  .cv-page { background: #fff; }
  .cv-page .cv-entry .plain, .cv-page [data-cookie-preferences] { display: none !important; }
  .cv-page .cv-hero { display: block; }
  .cv-page .cv-hero__text { padding-bottom: 0; }
  .cv-page .cv-hero *, .cv-page .cv-talks *, .cv-page .site-footer * { color: #000 !important; }
  .cv-page .eyebrow, .cv-page .cv-when, .cv-page .cv-course__place, .cv-page .cv-since { color: var(--gold-text) !important; }
  .cv-page .cv-split > div:first-child { position: static; }
  .cv-page .cv-course { padding: 12px 0; }
  .cv-page .cv-entry, .cv-page .cv-course, .cv-page .cv-venues li, .cv-page .cv-clients li, .cv-page .stat { break-inside: avoid; }
  .cv-page .roll__strip { transform: translateY(calc(var(--d) * -1.15em)) !important; transition: none !important; }
  .cv-page a { text-decoration: none; }
}

/* ---------- movimento ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-content > * { animation: rise 1000ms var(--ease-expo) backwards; }
  .hero-content > :nth-child(2) { animation-delay: 90ms; }
  .hero-content > :nth-child(3) { animation-delay: 180ms; }
  .hero-content > :nth-child(4) { animation-delay: 270ms; }
  .hero-album figure { animation: open 1100ms var(--ease-in-out) backwards; }
  .hero-album img { animation: settle 1600ms var(--ease-soft) backwards; }
  .hero-album figure:nth-child(2), .hero-album figure:nth-child(2) img { animation-delay: 110ms; }
  .hero-album figure:nth-child(3), .hero-album figure:nth-child(3) img { animation-delay: 220ms; }
  .hero-album figure:nth-child(4), .hero-album figure:nth-child(4) img { animation-delay: 330ms; }
  .hero-album figure:nth-child(5), .hero-album figure:nth-child(5) img { animation-delay: 440ms; }

  [data-reveal] {
    opacity: 0; transform: translateY(24px);
    transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  [data-reveal].is-in { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes open { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes settle { from { transform: scale(1.14); } to { transform: none; } }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .insight-head-grid, .newsletter, .contact { grid-template-columns: 1fr; }
  .insight-brand-wrap { justify-content: flex-start; }
  .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inspirational-events { grid-column: 1 / -1; }
}

/* ---------- telefono ---------- */
@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .brand { font-size: 17px; }
  .site-header { gap: 12px; }
  .brand small { font-size: 12px; letter-spacing: 0.04em; }
  .nav-toggle { padding: 0 14px; flex-shrink: 0; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 56px; padding-bottom: 112px; background-position: 54% center; }
  .hero::before { background: rgba(0,0,0,.86); }
  .hero-album { height: 400px; gap: 7px; }
  .hero-bottom { bottom: 28px; }
  .hero-bottom span { display: none; }
  .section-head, .intro, .path, .program, .insight-head-grid, .insight-message, .newsletter, .contact, .footer-top { grid-template-columns: 1fr; }
  .intro > div:first-child { position: static; }
  .service-grid, .insight-questions, .insight-tools, .appuntuale-grid { grid-template-columns: 1fr; }
  .insight-brand-wrap { justify-content: flex-start; }
  .insight-brand-card { width: min(100%, 300px); }
  .insight-message > a.plain { grid-column: 1; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .appuntuale-cover { aspect-ratio: 4 / 3.6; }
  .social-links { justify-content: flex-start; }
  .form-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; }
  .form-dialog__head, .form-dialog__intro, .form-dialog__body { padding-left: 20px; padding-right: 20px; }
  .form-dialog .privacy-note { padding: 0 20px 24px; }
}

/* ---------- stampa ---------- */
@media print {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .site-header, .form-dialog, .nav-toggle { display: none !important; }
}

/* telefoni molto stretti: il marchio resta, il sottotitolo lascia spazio al menu */
@media (max-width: 359px) {
  .brand small { display: none; }
}
