/* Shinobi – Audit · Risk · Compliance Boutique
   Palette e caratteri dalla Guida rapida al marchio v2 (ottobre 2026).
   Regola: tanto rosa cipria e crema, blu notte per i testi, oro solo come accento. */

@font-face { font-family: 'Marcellus'; src: url('/assets/fonts/Marcellus-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/assets/fonts/Montserrat-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/assets/fonts/Montserrat-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/assets/fonts/Montserrat-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/assets/fonts/Montserrat-Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('/assets/fonts/CormorantGaramond-SemiBoldItalic.woff2') format('woff2'); font-weight: 600; font-style: italic; font-display: swap; }

:root {
  /* colori del marchio */
  --blu-notte: #1E253C;
  --rosa-cipria: #F2DED5;
  --oro: #B08D57;
  --oro-scuro: #8A6A3A;
  --oro-chiaro: #D9BE8C;
  --crema: #F6EEE8;

  /* ruoli */
  --ground: var(--crema);
  --field: var(--rosa-cipria);
  --ink: var(--blu-notte);
  --accent-on-light: var(--oro-scuro); /* solo testo ≥ 24px (contrasto 3.85–4.36:1) */
  --accent-on-dark: var(--oro-chiaro);

  --font-brand: 'Marcellus', Georgia, serif;
  --font-text: 'Montserrat', Arial, sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;

  /* cinque gradini tipografici */
  --step-display: clamp(2.75rem, 1.6rem + 3.6vw, 5.25rem);
  --step-title: clamp(2rem, 1.6rem + 1.2vw, 2.75rem);
  --step-accent: clamp(1.625rem, 1.3rem + 1vw, 2.25rem);
  --step-text: 1.125rem;
  --step-small: 0.9375rem;

  --gutter: max(clamp(1.25rem, 0.6rem + 3vw, 4.5rem), env(safe-area-inset-left), env(safe-area-inset-right));
  --section-gap: clamp(6rem, 4rem + 8vw, 12rem);
  --measure: 40rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; touch-action: manipulation; -webkit-tap-highlight-color: rgba(30, 37, 60, .12); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-text);
  line-height: 1.6;
  font-feature-settings: 'kern', 'liga', 'lnum';
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-brand); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--blu-notte); color: var(--crema); }
:focus-visible { outline: 3px solid var(--blu-notte); outline-offset: 4px; border-radius: 2px; }
.on-dark :focus-visible { outline-color: var(--oro-chiaro); }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  background: var(--blu-notte); color: var(--crema); padding: .75rem 1.25rem; text-decoration: none;
}
.skip:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ———————————————————— SPLIT STAGE ———————————————————— */
.split { display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); }
.read { grid-column: 1; grid-row: 1; padding: 0 var(--gutter); position: relative; z-index: 1; background: var(--ground); min-width: 0; }
.stage {
  position: sticky; top: 0; height: 100svh; grid-column: 2; grid-row: 1; align-self: start;
  background: var(--field);
  display: grid; grid-template-rows: 1fr auto 1fr; justify-items: center; align-items: center;
  padding: var(--gutter); overflow: hidden;
}
.stage__logo { width: min(22rem, 62%, 38svh); grid-row: 2; }
.stage__caption {
  grid-row: 3; align-self: start; width: min(26rem, 90%); min-height: 9rem;
  text-align: center; position: relative; margin-top: clamp(1.5rem, 4svh, 3rem);
}
.stage__line {
  position: absolute; inset: 0 0 auto 0;
  opacity: 0; transform: translateY(8px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.stage__line.is-on { opacity: 1; transform: none; }
.stage__kicker { display: block; font-size: var(--step-small); font-weight: 500; margin-bottom: .5rem; }
.stage__quote { font-family: var(--font-accent); font-style: italic; font-weight: 600; font-size: var(--step-accent); line-height: 1.2; color: var(--accent-on-light); }

/* ———————————————————— TOP BAR ———————————————————— */
.bar { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; align-items: center; padding-top: clamp(1.25rem, 3vw, 2.25rem); font-size: var(--step-small); font-weight: 500; }
.bar a { text-decoration: none; padding: .6rem 0; }
.bar a:hover { text-decoration: underline; }
.bar__lang { margin-left: auto; }

/* ———————————————————— HERO ———————————————————— */
.hero { min-height: calc(100svh - 4.5rem); display: flex; flex-direction: column; justify-content: center; padding: 4rem 0 6rem; }
.hero h1 { font-size: var(--step-display); line-height: 1.02; letter-spacing: -0.01em; max-width: 11ch; }
.hero__lead { margin-top: 2.25rem; max-width: 34rem; }
.hero__actions { margin-top: 2.75rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; min-height: 3.5rem; padding: 0 1.75rem;
  background: var(--blu-notte); color: var(--crema); text-decoration: none; font-weight: 600; font-size: var(--step-small);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: #2a3352; }
.btn:active { transform: translateY(1px); }
.on-dark .btn { background: var(--oro-chiaro); color: var(--blu-notte); }
.on-dark .btn:hover { background: var(--crema); }
.link { font-weight: 500; }

/* ———————————————————— SECTIONS ———————————————————— */
.section { padding-block: 0 var(--section-gap); scroll-margin-top: 1rem; }
.section h2 { font-size: var(--step-title); line-height: 1.08; margin-bottom: 2.5rem; max-width: 18ch; }
.prose { max-width: var(--measure); display: grid; gap: 1.4em; }
.prose p:first-child { font-weight: 500; }
.prose em { font-family: var(--font-accent); font-style: italic; font-weight: 600; font-size: 1.3em; line-height: 1.2; white-space: nowrap; }

/* approccio: colonna stretta, molta aria */
.approach .prose { max-width: 31rem; margin-left: clamp(0rem, 8vw, 7rem); }

/* competenze: il foglio di lavoro */
.sheet { background: var(--field); padding: clamp(1.5rem, 3vw, 3.5rem); margin-inline: calc(var(--gutter) * -0.5); }
.sheet__intro { max-width: 34rem; margin-bottom: 2.5rem; }
.skill { border-top: 0; }
.skill + .skill { margin-top: .25rem; }
.skill summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1.5rem 1fr; gap: 0 1rem;
  padding: 1.1rem .75rem 1.1rem 0; border-radius: 2px; transition: background-color .2s var(--ease);
}
.skill summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .skill summary:hover { background: color-mix(in srgb, var(--crema) 55%, transparent); } }
.skill__ring {
  width: 1rem; height: 1rem; margin-top: .55rem; border-radius: 50%;
  border: 2px solid var(--oro); background: transparent; transition: background-color .35s var(--ease), transform .35s var(--ease);
}
@media (hover: hover) { .skill summary:hover .skill__ring { transform: scale(1.15); } }
.skill[open] .skill__ring { background: var(--oro); }
.skill__name { font-family: var(--font-brand); font-size: 1.5rem; line-height: 1.25; }
.skill__line { grid-column: 2; font-size: var(--step-small); margin-top: .3rem; max-width: 36rem; }
.skill__body { padding: .25rem 0 1.5rem 2.5rem; }
.skill__qlabel { font-size: var(--step-small); font-weight: 600; margin-bottom: .5rem; }
.skill__body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; max-width: 34rem; }
.skill__body li { padding-left: 1.25rem; position: relative; }
.skill__body li::before { content: ''; position: absolute; left: 0; top: .72em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--oro); }

/* come posso affiancarti */
.services__intro { max-width: 34rem; margin-bottom: 2.5rem; }
.services__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 2.5rem; max-width: 46rem; }
.services__list li { display: grid; gap: .5rem; align-content: start; }
.services__name { font-family: var(--font-brand); font-size: 1.375rem; line-height: 1.25; }
.services__line { font-size: var(--step-small); }
@media (max-width: 40rem) { .services__list { grid-template-columns: 1fr; } }
.skill__dlabel { margin-top: 1.25rem; }
.skill__deliv li::before { background: var(--blu-notte); border-radius: 0; width: .5rem; height: 2px; top: .8em; }

/* profilo: lettera firmata */
.letter { max-width: 33rem; margin-left: auto; margin-right: clamp(0rem, 4vw, 4rem); display: grid; gap: 1.3em; }
.letter__motto { margin-top: 1.5rem; font-family: var(--font-accent); font-style: italic; font-weight: 600; font-size: var(--step-accent); line-height: 1.2; color: var(--ink); }
.letter__sign { margin-top: 1.25rem; }
.letter__name { display: block; font-family: var(--font-accent); font-style: italic; font-weight: 600; font-size: var(--step-accent); line-height: 1.1; color: var(--accent-on-light); }
.letter__role { display: block; font-size: var(--step-small); margin-top: .35rem; }

/* settori: fascia piena in blu notte, rompe lo split */
.band { background: var(--blu-notte); color: var(--crema); padding: var(--section-gap) var(--gutter); }
.band__statement { font-family: var(--font-brand); font-size: clamp(2.5rem, 1rem + 5.2vw, 6.5rem); line-height: 1.04; letter-spacing: -0.01em; color: var(--crema); margin: 0; max-width: none; text-wrap: initial; }
.band__statement span { display: block; }

.band__note { margin-top: 3rem; max-width: 32rem; color: var(--rosa-cipria); }

/* formazione */
.training .prose { max-width: 34rem; }
.facts { margin: 3.5rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; max-width: 46rem; }
.facts div { background: var(--field); padding: 1.5rem 1.25rem; }
.facts dt { font-family: var(--font-brand); font-size: 1.5rem; line-height: 1.2; }
.facts dd { margin: .5rem 0 0; font-size: var(--step-small); }
.facts__by { display: block; margin-top: .35rem; font-size: var(--step-small); font-style: italic; }

.split + .band + .split .training, .band + .split .training { padding-top: var(--section-gap); }
.doc--404 { min-height: 70svh; background: var(--field); }
.doc__logo { width: 16rem; margin-bottom: 3rem; }
.doc__back { margin-top: 2rem; }

/* contatti */
.contact__statement { font-family: var(--font-brand); font-size: var(--step-accent); line-height: 1.25; max-width: 26ch; }
.contact__row { margin-top: 2.75rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.contact__mail { font-size: var(--step-text); font-weight: 600; }
.contact__meta { margin-top: 2.5rem; display: grid; gap: .6rem; max-width: 34rem; font-size: var(--step-small); }

/* ———————————————————— FOOTER ———————————————————— */
.footer { background: var(--blu-notte); color: var(--crema); padding: clamp(4rem, 8vw, 8rem) var(--gutter) 2.5rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem var(--gutter); align-items: end; }
.footer__logo { width: min(30rem, 100%); }
.footer__nav { display: grid; gap: .25rem; font-size: var(--step-text); justify-self: end; text-align: right; }
.footer__nav a { text-decoration: none; padding: .35rem 0; display: inline-block; transition: color .2s var(--ease), transform .25s var(--ease); }
.footer__nav a:hover { color: var(--oro-chiaro); transform: translateX(-6px); }
.footer__legal { margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; font-size: var(--step-small); color: var(--rosa-cipria); position: relative; }
.footer__legal a { color: inherit; }

/* segnaposto delle bozze */
.todo { background: var(--oro-chiaro); color: var(--blu-notte); padding: 0 .3em; font-weight: 600; font-size: .92em; }

/* ———————————————————— LEGAL PAGES ———————————————————— */
.doc-head { padding: 1.75rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--field); }
.doc-head img { width: 15rem; }
.doc-head nav { display: flex; gap: 1.5rem; font-size: var(--step-small); font-weight: 500; }
.doc { padding: clamp(3rem, 6vw, 6rem) var(--gutter) var(--section-gap); }
.doc article { max-width: 46rem; }
.doc h1 { font-size: var(--step-title); line-height: 1.1; margin-bottom: 1rem; }
.doc h2 { font-size: 1.625rem; margin: 3rem 0 1rem; line-height: 1.2; }
.doc h3 { font-family: var(--font-text); font-weight: 600; font-size: 1.0625rem; margin: 2rem 0 .5rem; }
.doc p, .doc li { font-size: 1.0625rem; }
.doc p + p { margin-top: 1em; }
.doc ul { padding-left: 1.25rem; }
.doc li + li { margin-top: .4em; }
.doc table { border-collapse: collapse; width: 100%; font-size: 1rem; margin: 1.25rem 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: .7rem .75rem; border-bottom: 1px solid color-mix(in srgb, var(--blu-notte) 22%, transparent); }
.doc th { font-weight: 600; background: var(--field); }
.doc .meta { font-size: var(--step-small); }
.doc .draft { background: var(--field); padding: 1.25rem 1.5rem; margin: 2rem 0 2.5rem; font-weight: 500; }
.table-wrap { overflow-x: auto; }

/* ———————————————————— MOTION ———————————————————— */
.js .rise > * { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rise.is-in > * { opacity: 1; transform: none; }
.js .rise.is-in > *:nth-child(2) { transition-delay: .08s; }
.js .rise.is-in > *:nth-child(3) { transition-delay: .16s; }
.js .rise.is-in > *:nth-child(4) { transition-delay: .24s; }
.js .rise.is-in > *:nth-child(n+5) { transition-delay: .32s; }
.stage__logo { animation: settle 1.6s var(--ease) both; }
@keyframes settle { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .rise > * { opacity: 1; transform: none; }
}

/* ———————————————————— PHONE / TABLET ———————————————————— */
@media (max-width: 64rem) {
  .split { display: block; position: relative; }
  .stage { position: sticky; top: 0; height: 46svh; z-index: 0; grid-template-rows: 1fr; padding: 1.5rem; }
  .stage__logo { grid-row: 1; width: min(13rem, 50%, 34svh); }
  .stage__caption { display: none; }
  .hero { min-height: auto; padding: 3.5rem 0 5rem; }
  .bar { padding-top: 1.5rem; gap: 0 1.25rem; }
  .bar__lang { margin-left: 0; }
  .approach .prose, .letter { margin-left: 0; margin-right: 0; }
  .sheet { margin-inline: calc(var(--gutter) * -1); }
  .facts { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__nav { justify-self: start; text-align: left; }
  .footer__nav a:hover { transform: translateX(6px); }
  .doc-head { flex-direction: column; align-items: flex-start; }
  .doc-head img { width: 12rem; }
}
@media (max-width: 30rem) {
  .skill__body { padding-left: 0; }
  .contact__mail { font-size: 1.0625rem; word-break: break-all; }
}
@media print {
  .stage, .bar, .skip { display: none; }
  .split { display: block; }
  .skill__body { display: block; }
}
