/* danielporro.com · sistema grafico condiviso (home + /macchina) */
:root {
  --bg: #faf7f2; --bg-2: #f2ede4; --paper: #fffdf9; --ink: #141312; --ink-2: #3d3a35; --muted: #6f6a63;
  --line: #e4ddd1; --line-2: #d6cdbf; --accent: #b8252b; --accent-h: #9c1e23; --accent-soft: #ff8a8e; --dark: #141312; --dark-2: #1d1b19;
  --f-head: 'Inter Tight', system-ui, sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --side: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sec: clamp(80px, 10vw, 128px);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { font-family: var(--f-body); background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 18px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--accent); color: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--side); }
section { padding: var(--sec) 0; position: relative; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(40px, 5.4vw, 74px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 3.9vw, 50px); line-height: 1.06; letter-spacing: -0.03em; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; margin-bottom: 8px; }
p { color: var(--ink-2); margin-bottom: 18px; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; }
.serif { font-family: var(--f-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.accent { color: var(--accent); }
.hi { font-weight: 600; color: var(--ink); }

/* titoli di sezione: allineati a sinistra, larghezza di lettura */
.head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.head h2 { margin-bottom: 18px; }
.head p { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 38em; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: block; font-family: var(--f-head); font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 14px; }

/* bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 8px; font-family: var(--f-head); font-size: 16px; font-weight: 600; text-decoration: none; background: var(--ink); color: #fff; border: 0; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.btn:hover { background: #2a2826; }
.btn:active { transform: translateY(1px); }
.btn.red { background: var(--accent); }
.btn.red:hover { background: var(--accent-h); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 7px; }
.btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.textlink { font-family: var(--f-head); font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 5px; text-decoration-thickness: 1.5px; padding: 12px 2px; transition: text-decoration-color .2s; }
.textlink:hover { text-decoration-color: var(--ink); }
.textlink.on-dark { color: #eee9e1; text-decoration-color: #4a4642; }
.textlink.on-dark:hover { text-decoration-color: #eee9e1; }

/* nav */
nav { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(250,247,242,0); border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
nav.solid { background: rgba(250,247,242,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-head); font-weight: 700; font-size: 17px; letter-spacing: -0.015em; text-decoration: none; min-height: 44px; }
.logo img { width: 30px; height: 30px; border-radius: 50%; }
.links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; margin-left: auto; }
.links a { text-decoration: none; color: var(--ink-2); padding: 10px 0; transition: color .2s; }
.links a:hover { color: var(--ink); }

/* hero */
.hero { padding: clamp(112px, 13vw, 160px) 0 clamp(56px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.hero h1 { margin-bottom: 26px; }
.hero h1 .serif { color: var(--accent); font-size: 1.04em; letter-spacing: -0.02em; }
.hero .lede { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; max-width: 31em; margin-bottom: 34px; }
.portrait { position: relative; border-radius: 14px; overflow: hidden; background: var(--bg-2); aspect-ratio: 4 / 5; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.portrait figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 12px 14px; border-radius: 10px; background: rgba(20,19,18,.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 14px; line-height: 1.4; }
.portrait figcaption b { display: block; font-family: var(--f-head); font-size: 15px; }
.proof { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.proof div { padding: 22px 24px 0 0; }
.proof div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.proof b { display: block; font-family: var(--f-head); font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.proof span { font-size: 15px; color: var(--muted); }

/* entrata della prima schermata: solo CSS, una volta */
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.in1, .in2, .in3, .in4 { animation: up .7s var(--ease) both; }
.in2 { animation-delay: .08s; } .in3 { animation-delay: .16s; } .in4 { animation-delay: .26s; }

/* manifesto */
.dark { background: var(--dark); color: #e9e4dc; }
.dark h2, .dark h3, .dark strong { color: #fff; }
.dark p { color: #bdb6ab; }
.dark .head p { color: #a39c91; }
.manifesto .grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.manifesto h2 { position: sticky; top: 110px; }
.manifesto .body p { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.65; }
.manifesto .body .punch, .punch { font-family: var(--f-serif); font-style: italic; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; color: #fff !important; margin: 40px 0 !important; padding-left: 22px; border-left: 2px solid var(--accent); }
.punch .hl { color: var(--accent-soft); }
.end { font-family: var(--f-head); font-weight: 600; color: #fff !important; }

/* foglio corretto in rosso */
.sheet { max-width: 920px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: clamp(22px, 3.5vw, 40px) clamp(20px, 4vw, 48px); box-shadow: 0 24px 60px -36px rgba(20,19,18,.25); }
.sheet-top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-head); font-size: 13px; font-weight: 600; color: var(--muted); padding-bottom: 16px; border-bottom: 1px dashed var(--line-2); }
.sheet ol { list-style: none; }
.ln { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 20px 0; border-bottom: 1px solid #efe8dc; }
.ln:last-child { border-bottom: 0; padding-bottom: 4px; }
.num { font-family: var(--f-head); font-weight: 600; font-size: 13px; color: #a9a094; padding-top: 4px; font-variant-numeric: tabular-nums; }
.old { font-size: 17px; color: var(--ink-2); background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat; background-size: 0% 2px; background-position: 0 60%; transition: background-size .6s var(--ease) var(--d), color .6s var(--d); }
.fix { display: block; margin-top: 6px; font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 2.3vw, 28px); line-height: 1.22; color: var(--accent); opacity: 0; transform: translateY(6px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--d) + .3s); }
.sheet.on .old { color: #8c847a; background-size: 100% 2px; }
.sheet.on .fix { opacity: 1; transform: none; }

/* bio a capitoli */
.chapters { position: relative; max-width: 1040px; }
.chapter { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.chapter:first-child { border-top: 0; padding-top: 0; }
.ill { border-radius: 12px; overflow: hidden; background: var(--paper); }
.ill img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.ch-year { display: block; font-family: var(--f-head); font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.ch-text h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.02em; margin-bottom: 16px; }
.ch-text p { font-size: 17.5px; line-height: 1.65; margin-bottom: 14px; }

/* settori */
.sectors { display: flex; flex-wrap: wrap; gap: 10px; max-width: 980px; }
.sectors span { font-family: var(--f-head); font-weight: 600; font-size: 16px; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); }

/* testimonianze */
.quotes { columns: 3 300px; column-gap: 20px; }
blockquote { break-inside: avoid; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 26px 26px 22px; margin-bottom: 20px; }
blockquote p { font-size: 17px; line-height: 1.6; color: var(--ink); margin-bottom: 18px; }
blockquote cite { display: block; font-style: normal; font-family: var(--f-head); font-weight: 600; font-size: 15px; }
blockquote cite span { display: block; font-family: var(--f-body); font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 2px; }

/* lavoriamo */
.now { max-width: 960px; border-top: 1px solid var(--line); }
.now-row { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 30px 8px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .25s; }
.now-row:hover { background: var(--bg-2); }
.now-row h3 { font-size: clamp(22px, 2.2vw, 26px); }
.now-row p { margin: 0; max-width: 40em; }
.go { font-family: var(--f-head); font-weight: 600; color: var(--accent); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.go i { font-style: normal; transition: transform .3s var(--ease); }
.now-row:hover .go i { transform: translateX(4px); }

.midcta { margin-top: clamp(40px, 5vw, 56px); }

/* chiusura */
.final { text-align: center; }
.final .head { margin-left: auto; margin-right: auto; }
.final h2 { font-size: clamp(36px, 4.8vw, 62px); }
.final .head p { color: #bdb6ab; margin: 0 auto; }
.final .btns { justify-content: center; }

footer { background: var(--dark); border-top: 1px solid #2a2826; padding: 28px 0 40px; font-size: 14px; color: #8f887e; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; }
footer a { color: #a39c91; display: inline-block; padding: 10px 0; }

/* ------- pagina /macchina ------- */
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mk-hero { padding: clamp(120px, 14vw, 168px) 0 clamp(64px, 8vw, 96px); }
.mk-hero h1 { max-width: 13em; margin-bottom: 26px; }
.mk-hero h1 .serif { display: block; color: var(--accent); font-size: .92em; margin-top: .08em; }
.mk-hero .lede { font-size: clamp(19px, 1.7vw, 22px); max-width: 34em; margin-bottom: 34px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.box { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.box h3 { margin-bottom: 16px; }
.box ul { list-style: none; display: grid; gap: 12px; }
.box li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.box li::before { content: "✓"; font-weight: 700; color: #2f7d45; }
.box.no li::before { content: "✕"; color: var(--accent); }
.gets { list-style: none; border-top: 1px solid var(--line-2); }
.get { display: grid; grid-template-columns: 64px minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line-2); }
.get .n { font-family: var(--f-head); font-weight: 600; font-size: 14px; color: var(--accent); font-variant-numeric: tabular-nums; }
.get h3 { margin: 0; font-size: 22px; }
.get p { margin: 0; }
.tl { list-style: none; max-width: 820px; position: relative; }
.tl::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 30px; width: 2px; background: var(--line); }
.tl li { position: relative; padding: 0 0 30px 40px; }
.tl li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tl b { display: block; font-family: var(--f-head); font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
.tl h3 { font-size: 22px; }
.guar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #2e2b28; border: 1px solid #2e2b28; border-radius: 12px; overflow: hidden; }
.g { background: var(--dark); padding: 28px 26px; }
.g i { font-style: normal; display: block; font-family: var(--f-head); font-weight: 600; font-size: 14px; color: var(--accent-soft); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.g h3 { font-size: 20px; } .g p { font-size: 16px; }
.small { font-size: 14px; color: var(--muted); margin-top: 18px; }
.faq { max-width: 820px; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 2px; font-family: var(--f-head); font-weight: 600; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 2px 22px; margin: 0; max-width: 42em; }
.faq details p + p { margin-top: -8px; }


/* 15/10: allineamento centrato come nella versione precedente (richiesta di Daniel) */
.head { margin-left: auto; margin-right: auto; text-align: center; max-width: 860px; }
.head p { margin-left: auto; margin-right: auto; }
.kicker { text-align: center; }
.sheet, .chapters, .now, .sectors, .gets, .tl, .faq, .two, .guar { margin-left: auto; margin-right: auto; }
.sectors { justify-content: center; }
.midcta { display: flex; justify-content: center; }
.manifesto .narrow { max-width: 740px; margin: 0 auto; }
.manifesto h2 { position: static; }
.manifesto .narrow p { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.62; }
.manifesto .narrow .punch { text-align: center; border-left: 0; padding-left: 0; margin: 48px 0 !important; font-size: clamp(32px, 4vw, 50px); }
.manifesto .narrow .end { text-align: center; font-size: 21px; }
.mk-hero { text-align: center; }
.mk-hero h1, .mk-hero .lede { margin-left: auto; margin-right: auto; }
.mk-hero .btns { justify-content: center; }
.price, .final { text-align: center; }
.small { text-align: center; }

@media (max-width: 960px) {
  .links { display: none; }
  .hero-grid, .manifesto .grid, .chapter, .two { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 360px; aspect-ratio: 1 / 1; }
  .hero .portrait { order: -1; width: 112px; height: 112px; border-radius: 50%; }
  .hero .portrait figcaption { display: none; }
  .manifesto h2 { position: static; }
  .chapter { gap: 20px; }
  .ill { max-width: 440px; }
  .get { grid-template-columns: 44px minmax(0, 1fr); }
  .get p { grid-column: 2; }
  .guar { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .proof { grid-template-columns: minmax(0, 1fr); }
  .proof div, .proof div + div { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .now-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 26px 0; }
  .btns .btn { width: 100%; }
  nav .btn.sm { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fix { opacity: 1; transform: none; }
}
.gets { max-width: 980px; }

/* 15/10: prima schermata della home centrata come prima (richiesta di Daniel) */
.hero { text-align: center; }
.hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; justify-items: center; }
.hero .portrait { order: -1; width: 120px; height: 120px; aspect-ratio: 1; border-radius: 50%; max-width: none; }
.hero .portrait figcaption { display: none; }
.hero h1 { max-width: 14em; margin-left: auto; margin-right: auto; }
.hero .lede { margin-left: auto; margin-right: auto; }
.hero .btns { justify-content: center; }
.proof { text-align: center; }
.proof div { padding-right: 24px; padding-left: 24px; }
@media (max-width: 640px) { .proof div, .proof div + div { padding: 16px 0; } }
