/* ninoamato.com — personal brand: teal · ink · magenta */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --teal-950: #012f31;
  --teal-900: #013e3f;
  --teal-800: #024b4f;
  --teal-700: #02555a;   /* fondo dei ritratti */
  --teal-100: #dcebea;
  --ink: #0b1416;
  --ink-2: #081013;
  --paper: #f6f5f1;
  --paper-2: #edece6;
  --line: #d9d8d0;
  --muted: #55605f;
  --magenta: #d42a60;
  --magenta-hi: #ff4f86;
  --cyan: #45d6cf;

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--magenta); }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; text-wrap: balance; }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.h-sm { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
b, strong { font-weight: 650; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; justify-content: center; }

/* kicker: trattino magenta come nel visual "E poi ci siamo noi" */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 .78rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.kicker::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--magenta); }
.kicker-light { color: rgba(255,255,255,.72); }
.kicker-light::before { background: var(--magenta-hi); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--magenta);
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  background: var(--bg); color: #fff;
  font: 600 .95rem/1.2 var(--font-head); letter-spacing: -.005em;
  text-decoration: none; border-radius: 999px; border: 1.5px solid var(--bg);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--ease-out);
}
.btn:hover { color: #fff; background: #b81f51; border-color: #b81f51; }
.btn:active { transform: scale(.97); }
.btn .arr { transition: transform .3s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
.btn-small { min-height: 38px; padding: 8px 16px; font-size: .85rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: #fff; color: var(--teal-800); border-color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: #fff;
  transition: background-color .35s ease, color .35s ease, box-shadow .35s ease;
}
.site-header.is-scrolled {
  background: rgba(246,245,241,.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1rem/1 var(--font-head); letter-spacing: -.01em; }
.brand:hover { color: inherit; }
.brand-mark {
  display: grid; place-items: center; width: 32px; height: 32px;
  border: 1.5px solid currentColor; border-radius: 8px; font-size: .95rem; position: relative;
}
.brand-mark::after { /* il "play" magenta del marchio NAD */
  content: ""; position: absolute; right: -5px; bottom: 4px;
  border-left: 7px solid var(--magenta-hi); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.nav { display: flex; gap: 26px; margin-left: auto; font: 500 .9rem/1 var(--font-head); }
.nav a { text-decoration: none; opacity: .82; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--magenta-hi); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav a:hover { opacity: 1; color: inherit; }
.nav a:hover::after { transform: scaleX(1); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  /* il fondo riprende il teal della foto (#015458) dove il ritratto sfuma */
  background: radial-gradient(70% 110% at 22% 70%, #015458 0%, #015458 38%, var(--teal-800) 62%, var(--teal-950) 100%);
  color: #fff;
  padding: 0;
}
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
/* foto a filo del bordo sinistro e del fondo: il taglio della spalla coincide con il bordo dello schermo */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; min-height: min(100svh, 980px); }
.hero-copy {
  align-self: center;
  padding: 120px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) clamp(48px, 7vw, 96px) clamp(16px, 3vw, 48px);
}
.hero-title {
  font-size: clamp(3.4rem, 9vw, 7.4rem); font-weight: 800; letter-spacing: -.045em; line-height: .92;
  margin-bottom: 22px;
}
.hero-title .line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; animation: rise 1.1s var(--ease-out) both; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.92); }
.hero-role { font: 600 clamp(1.05rem, 1.7vw, 1.3rem)/1.35 var(--font-head); max-width: 30ch; color: var(--teal-100); animation: fade .9s .35s var(--ease-out) both; }
.hero-quote { max-width: 46ch; font-size: 1.05rem; color: rgba(255,255,255,.82); margin-top: 22px; animation: fade .9s .45s var(--ease-out) both; }
.hero-quote strong { color: #fff; box-shadow: inset 0 -.42em 0 rgba(212,42,96,.55); }
.hero .cta-row { animation: fade .9s .55s var(--ease-out) both; }
.social { display: flex; gap: 22px; margin-top: 28px; font: 500 .85rem/1 var(--font-head); }
.social a { text-decoration: none; color: rgba(255,255,255,.75); }
.social a::after { content: " ↗"; font-size: .8em; }
.social a:hover { color: #fff; }
.hero-photo { margin: 0; align-self: end; display: flex; justify-content: flex-start; animation: photo-in 1.4s .1s var(--ease-out) both; }
/* la sfumatura in alto e a destra è già nell'immagine (canale alpha): il soggetto resta intero */
.hero-photo img { width: auto; height: min(88svh, 900px); max-width: 100%; object-fit: contain; object-position: left bottom; }
@keyframes photo-in { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }

@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-sub { color: var(--muted); font-size: 1.08rem; margin-top: 18px; }

.intro { padding: clamp(56px, 8vw, 96px) 0; border-bottom: 1px solid var(--line); }
.lead { font: 500 clamp(1.2rem, 2.2vw, 1.55rem)/1.5 var(--font-head); letter-spacing: -.01em; }
.lead a { color: var(--magenta); }
.meta-line { color: var(--muted); font-size: .92rem; margin-top: 14px; }

/* checklist */
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; counter-reset: c; }
.checks li { position: relative; padding: 22px 0 22px 44px; border-top: 1px solid var(--line); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 25px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat;
}
.checks strong { display: block; font-family: var(--font-head); font-weight: 600; line-height: 1.35; }
.checks span { display: block; color: var(--muted); font-size: .95rem; margin-top: 6px; }

/* split layout */
.split { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; }
.split-top { margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.prose p:last-child { margin-bottom: 0; }
.note { color: var(--muted); font-size: .95rem; border-left: 3px solid var(--magenta); padding-left: 16px; }
.cz-logo { display: inline-block; margin-top: 14px; font: 500 .9rem/1 var(--font-head); color: var(--muted); text-decoration: none; }

.link-card {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; align-items: center;
  margin-top: 24px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); text-decoration: none;
  transition: border-color .3s ease, transform .4s var(--ease-out);
}
.link-card:hover { color: inherit; border-color: var(--ink); transform: translateY(-2px); }
.link-card-label { grid-column: 1; font: 600 .72rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--magenta); }
.link-card-title { grid-column: 1; font: 600 1.02rem/1.35 var(--font-head); }
.link-card .arr { grid-column: 2; grid-row: 1 / span 2; font-size: 1.3rem; transition: transform .3s var(--ease-out); }
.link-card:hover .arr { transform: translateX(4px); }

/* two columns */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.two-col h3 { margin-bottom: 14px; }
.roles { margin-top: 18px; border-top: 1px solid var(--line); }
.roles li { display: grid; grid-template-columns: 13.5rem 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.roles b { color: var(--ink); font-family: var(--font-head); font-weight: 600; }
.dash li { position: relative; padding: 7px 0 7px 26px; }
.dash li::before { content: ""; position: absolute; left: 0; top: 19px; width: 14px; height: 2px; background: var(--magenta); }
.pull { margin-top: 24px; padding: 20px 22px; background: var(--teal-700); color: #fff; border-radius: var(--radius); font: 600 1.05rem/1.45 var(--font-head); }

/* service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: card; }
.card {
  counter-increment: card; position: relative;
  padding: 28px 26px 30px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s ease, transform .5s var(--ease-out);
}
.card::before {
  content: counter(card, decimal-leading-zero);
  display: block; margin-bottom: 22px;
  font: 600 .8rem/1 var(--font-head); letter-spacing: .1em; color: var(--magenta);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }
.card:hover { border-color: var(--teal-700); transform: translateY(-3px); }

/* second brain (dark) */
.section-dark { background: var(--ink-2); color: #fff; position: relative; overflow: hidden; }
.section-dark::before { /* alone teal dietro la foto */
  content: ""; position: absolute; width: 60vw; height: 60vw; left: -18vw; top: 50%; transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(2,85,90,.55), transparent);
  pointer-events: none;
}
.sb-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: center; position: relative; }
.sb-photo { margin: 0; border-radius: 22px; overflow: hidden; }
.sb-copy h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 22px; }
.sb-lead { font: 500 1.2rem/1.5 var(--font-head); color: rgba(255,255,255,.9); }
.sb-lead strong { color: #fff; }
.sb-copy p { color: rgba(255,255,255,.76); }
.sb-verbs { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 26px 0; font: 700 clamp(1.2rem, 2.4vw, 1.6rem)/1.2 var(--font-head); letter-spacing: -.02em; }
.sb-verbs li { color: rgba(255,255,255,.28); transition: color .5s ease; }
.sb-verbs li.is-on { color: var(--cyan); }
.sb-for b { color: #fff; }
.sb-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sb-pills li { padding: 8px 14px; border: 1px solid rgba(69,214,207,.4); border-radius: 999px; font: 500 .82rem/1 var(--font-head); color: var(--cyan); }

/* cases */
.case {
  display: grid; grid-template-columns: 1fr 1.4fr; grid-template-areas: "head body" "head stats";
  gap: 18px 56px; padding: 40px 0; border-top: 1px solid var(--line);
}
.case:last-of-type { border-bottom: 1px solid var(--line); }
.case-head { grid-area: head; }
.case-head h3 { font-size: 1.5rem; }
.case-head h3 a { text-decoration: none; }
.case-head p { color: var(--magenta); font: 600 .95rem/1.4 var(--font-head); margin-top: 8px; }
.case-body { grid-area: body; color: var(--muted); }
.case-body p { margin: 0; }
.stats { grid-area: stats; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 6px 0 0; }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.stats dt { font-size: .85rem; color: var(--muted); line-height: 1.35; }
.stats dd { margin: 0; font: 800 clamp(2rem, 4vw, 2.8rem)/1 var(--font-head); letter-spacing: -.04em; color: var(--teal-700); font-variant-numeric: tabular-nums; }
.stats dd.dd-text { font-size: 1.05rem; line-height: 1.25; letter-spacing: -.01em; font-weight: 700; padding-top: 6px; }
.reviews { margin-top: 32px; color: var(--muted); }
.reviews a { color: var(--ink); font-weight: 600; }

/* steps */
.steps { counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 16px 0 16px 56px; border-bottom: 1px solid var(--line); color: var(--muted); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 13px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff; font: 700 .85rem/1 var(--font-head);
}
.steps b { display: block; color: var(--ink); font-family: var(--font-head); font-weight: 600; }

/* fit */
.fit { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-top: clamp(48px, 6vw, 72px); }
.fit-col { padding: 28px; border-radius: var(--radius); }
.fit-col h3 { margin-bottom: 14px; }
.fit-col li { padding: 7px 0 7px 28px; position: relative; }
.fit-yes { background: var(--teal-700); color: #fff; }
.fit-yes li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }
.fit-no { background: var(--paper); border: 1px solid var(--line); }
.fit-no li { color: var(--muted); }
.fit-no li::before { content: "✕"; position: absolute; left: 0; color: var(--magenta); font-weight: 700; }

/* tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; background: var(--paper); }

/* presenza online */
.presence { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.presence > div { padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.presence h3 { margin-bottom: 14px; }
.link-list li { padding: 9px 0; border-top: 1px solid var(--line); }
.link-list li:first-child { border-top: 0; }
.link-list a { font-weight: 600; text-decoration: none; }
.link-list a::after { content: " ↗"; font-size: .8em; color: var(--magenta); }
.link-list span { display: block; font-size: .85rem; color: var(--muted); }

/* faq */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 48px 22px 0; font: 600 1.06rem/1.4 var(--font-head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 2px; background: var(--ink);
  transition: transform .35s var(--ease-out), background-color .2s;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details[open] summary::before, .faq details[open] summary::after { background: var(--magenta); }
.faq summary:hover { color: var(--magenta); }
.faq details p { color: var(--muted); padding: 0 48px 22px 0; margin: 0; }

/* final cta */
.final {
  padding: clamp(80px, 11vw, 136px) 0;
  background: radial-gradient(90% 120% at 50% 0%, var(--teal-700), var(--teal-950));
  color: #fff;
}
.final h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 18px; }
.final p { color: rgba(255,255,255,.8); max-width: 58ch; margin-left: auto; margin-right: auto; }

/* footer */
.site-footer { background: var(--ink-2); color: rgba(255,255,255,.7); font-size: .9rem; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 40px; }
.footer-name { font: 700 1.25rem/1 var(--font-head); color: #fff; margin-bottom: 12px; }
.footer-label { font: 600 .72rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 14px; }
.footer-links li { padding: 4px 0; }
.footer-links a, .site-footer a { text-decoration: none; }
.footer-links a:hover, .site-footer a:hover { color: #fff; }
.social-dark a { color: rgba(255,255,255,.7); }
.privacy { margin-top: 14px; font-size: .8rem; color: rgba(255,255,255,.5); }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; }
.footer-bottom p { margin: 0; }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav { display: none; }
  .header-inner .btn-small { margin-left: auto; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero { background: linear-gradient(to bottom, var(--teal-800), #015458 55%); }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { order: -1; padding: 96px var(--gutter) 8px; }
  .hero-photo img { height: auto; width: min(100%, 520px); }
  .checks, .split, .two-col, .sb-grid, .fit, .footer-grid, .presence { grid-template-columns: 1fr; }
  .split { gap: 16px; }
  .case { grid-template-columns: 1fr; grid-template-areas: "head" "body" "stats"; gap: 14px; }
  .sb-photo { max-width: 420px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .roles li { grid-template-columns: 1fr; gap: 2px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .header-inner .btn-small { padding: 8px 14px; }
  .brand-name { display: none; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero-net, .cta-row { display: none; }
  .hero, .section-dark, .final { background: none; color: #000; }
}
