/* AI Factory — landing su ai-factory.gurumedia.it
   Stili ricavati da gurumedia.it (27 novembre 2026):
   blu notte #051441, testo #4A5878, fondo #F4F7FA, verde acqua #17C7BD,
   Bricolage Grotesque per i titoli, Figtree per il testo, Geist Mono per le etichette. */

/* Font: copie locali in fonts/ (licenza SIL OFL). Il sito principale non li serve ad altri domini (CORS). */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/figtree-latin.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("fonts/geist-mono-latin.woff2") format("woff2"); }

:root {
  --navy: #051441;
  --navy-deep: #07112d;
  --navy-2: #06366c;
  --blue: #4067b0;
  --ink: #4a5878;
  --ink-soft: #b9c4d8;
  --bg: #f4f7fa;
  --white: #fff;
  --teal: #17c7bd;
  --teal-dark: #0e8f88;
  --line: #dce3ec;
  --display: "Bricolage Grotesque", Figtree, system-ui, sans-serif;
  --text: Figtree, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --r-section: 28px;
  --r-card: 18px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--text);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 14px; z-index: 100; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--navy); margin: 0; }
h1 { font-size: clamp(44px, 7vw, 84px); line-height: .96; letter-spacing: -.035em; }
h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1; letter-spacing: -.032em; }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.accent { color: var(--teal); }
.accent-dark { color: var(--teal-dark); }
p { margin: 0 0 1em; }
.lead { font-size: 19px; line-height: 1.6; }

/* Etichetta in monospazio, come «STUDIO» e «IL SISTEMA» sul sito */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 22px;
}
.on-dark .tag { color: var(--teal); }

/* Pulsanti a pillola */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--text); font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn .arr { font-size: 13px; }
.btn-primary { background: var(--teal); color: var(--navy); }
.btn-primary:hover { background: #3fd6cd; }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: var(--white); }
.btn-small { padding: 11px 16px; font-size: 13px; }

/* Testata */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 247, 250, .92);
  backdrop-filter: blur(8px);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.brand span { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; color: var(--ink); border-left: 1px solid var(--line); padding-left: 12px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; text-decoration: none; color: var(--navy); }
.nav a:hover { color: var(--teal-dark); }

/* Sezioni a riquadro arrotondato */
.panel { border-radius: var(--r-section); margin: 0 12px; }
.panel-dark { background: var(--navy); color: var(--ink-soft); }
.panel-dark h1, .panel-dark h2, .panel-dark h3 { color: var(--white); }
.panel-dark a { color: var(--white); }
section { padding: 110px 0; }
.grid-bg {
  background-color: var(--bg);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Apertura */
.hero { padding: 90px 0 100px; overflow: hidden; position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 .sub { display: block; font-size: .55em; line-height: 1.05; margin-top: 14px; letter-spacing: -.03em; }
.hero .lead { color: var(--ink-soft); max-width: 560px; margin-top: 28px; }
.hero .lead strong { color: var(--white); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.meta-row li { list-style: none; }
.meta-row ul { display: contents; }
.cover-wrap { position: relative; justify-self: center; }
.cover-wrap::before {
  content: ""; position: absolute; inset: -40px;
  background: radial-gradient(closest-side, rgba(23,199,189,.28), transparent 70%);
  z-index: 0;
}
.cover {
  position: relative; z-index: 1;
  width: min(360px, 70vw);
  border-radius: 6px;
  box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06);
  transform: rotate(2deg);
}

/* Domanda */
.question { padding: 120px 0 100px; }
.question .wrap { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.big-text { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.22; letter-spacing: -.02em; color: var(--navy); margin: 0; }
.big-text .muted { color: #9aa6bd; }

/* Torta a cinque strati */
.layers .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.layers h2 .accent-dark { display: block; }
.stack { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; gap: 8px; }
.stack li {
  display: grid; grid-template-columns: 40px 150px 1fr; gap: 14px; align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 1px 0 rgba(5,20,65,.04);
  transition: transform .2s ease, border-color .2s ease;
}
.stack li:hover { transform: translateX(6px); border-color: var(--teal); }
.stack .n { font-family: var(--mono); font-size: 12px; color: var(--teal-dark); }
.stack .name { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--navy); letter-spacing: -.01em; }
.stack .desc { font-size: 15px; line-height: 1.5; }
.stack li:nth-child(1) { margin-left: 0; }
.stack li:nth-child(2) { margin-left: 4%; }
.stack li:nth-child(3) { margin-left: 8%; }
.stack li:nth-child(4) { margin-left: 12%; }
.stack li:nth-child(5) { margin-left: 16%; }
.note { font-size: 14px; margin-top: 18px; }

/* Cosa c'è nel libro */
.inside { padding-top: 40px; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 28px 26px;
}
.card .chap { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; color: var(--teal-dark); letter-spacing: .04em; display: block; margin-bottom: 14px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15.5px; line-height: 1.6; margin: 0; }

/* Indice */
.toc .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: c; border-top: 1px solid rgba(255,255,255,.12); }
.toc li { counter-increment: c; display: grid; grid-template-columns: 56px 1fr; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: var(--white); font-size: 17px; font-weight: 400; }
.toc li::before { content: counter(c, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--teal); padding-top: 4px; }
.toc li small { display: block; color: var(--ink-soft); font-size: 14px; font-weight: 300; }
.toc .side p { color: var(--ink-soft); }

/* Per chi */
.who .cards { grid-template-columns: repeat(3, 1fr); }
.who .card { border-radius: 18px 18px 18px 4px; }

/* Fonti e dati */
.proof .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 30px 26px; }
.stat b { display: block; font-family: var(--display); font-weight: 700; font-size: 48px; letter-spacing: -.03em; color: var(--navy); line-height: 1; margin-bottom: 12px; }
.stat span { font-size: 15.5px; line-height: 1.55; display: block; }

/* Estratto */
.excerpt blockquote { margin: 0; max-width: 880px; }
.excerpt blockquote p { font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; letter-spacing: -.015em; color: var(--white); font-weight: 500; }
.excerpt cite { font-style: normal; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--teal); }

/* Autore */
.author .wrap { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: center; }
.author img { width: 260px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 8px var(--white), 0 0 0 9px var(--line); }
.author .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.author .links a { font-family: var(--mono); font-size: 12px; text-transform: uppercase; text-decoration: none; border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 7px 14px; }
.author .links a:hover { border-color: var(--teal); }

/* Chiusura */
.final { text-align: center; padding: 100px 0; }
.final h2 { max-width: 820px; margin: 0 auto; }
.final p { max-width: 620px; margin: 22px auto 0; color: var(--ink-soft); }
.final .cta-row { justify-content: center; }
.price { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--teal); margin-top: 18px; }

/* Piede */
.site-footer { padding: 56px 0 40px; font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h3 { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; font-weight: 500; letter-spacing: 0; color: var(--navy); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { text-decoration: none; color: var(--ink); }
.site-footer a:hover { color: var(--navy); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; font-size: 13px; }

/* Torta 3D: il disegno statico si vede sempre; il canvas lo sostituisce solo quando la scena è pronta */
.torta3d { position: relative; width: 100%; max-width: 460px; aspect-ratio: 400 / 340; margin-top: 28px; }
.torta3d .torta-statica { width: 100%; height: 100%; display: block; transition: opacity .4s ease; }
.torta3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity .6s ease; }
.torta3d.attiva .torta-statica { opacity: 0; }
.torta3d.attiva canvas { opacity: 1; }
.torta3d .etichetta {
  position: absolute; left: 0; top: 0; z-index: 1; white-space: nowrap; pointer-events: none;
  display: flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--navy);
  opacity: 0; transition: opacity .6s ease, color .2s ease;
}
.torta3d .etichetta::before { content: ""; width: 16px; height: 1px; background: currentColor; opacity: .5; }
.torta3d .etichetta b { font-weight: 500; color: var(--teal-dark); }
.torta3d.attiva .etichetta { opacity: 1; }
.torta3d .etichetta.evidenziata { color: var(--teal-dark); font-weight: 600; }
.torta-statica text { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; fill: var(--navy); }
.torta-statica text tspan { fill: var(--teal-dark); }

/* Newsletter */
.newsletter .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.newsletter h2 .accent-dark { display: block; }
.newsletter p { max-width: 520px; }
.nl-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 30px 28px; }
.nl-label { display: block; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); margin-bottom: 8px; }
.nl-row { display: flex; gap: 10px; }
.nl-row input {
  flex: 1; min-width: 0; min-height: 48px;
  font: 400 16px/1.2 var(--text); color: var(--navy);
  border: 1px solid #b9c4d8; border-radius: 999px; padding: 0 20px; background: var(--white);
}
.nl-row input:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-color: var(--navy); }
.nl-row input[aria-invalid="true"] { border-color: #c0392b; }
.nl-row .btn { min-height: 48px; justify-content: center; cursor: pointer; }
.nl-row .btn[disabled] { opacity: .6; cursor: wait; }
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nl-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.nl-consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--navy); }
.nl-note { font-size: 13px; margin: 12px 0 0; }
.nl-msg { margin: 10px 0 0; font-size: 14.5px; font-weight: 500; min-height: 1.5em; }
.nl-msg.ok { color: var(--teal-dark); }
.nl-msg.errore { color: #c0392b; }

/* Domande frequenti: risposte sempre visibili, leggibili anche dai crawler */
.faq .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 20px; margin-bottom: 8px; }
.faq-item p { font-size: 15.5px; line-height: 1.6; margin: 0; }

/* Link del piede: area di tocco di almeno 24 px */
.site-footer li a { display: inline-block; padding: 4px 0; }

/* Schermi stretti */
@media (max-width: 960px) {
  .newsletter .wrap { grid-template-columns: 1fr; gap: 28px; }
  .torta3d { max-width: 340px; margin-inline: auto; }
  .nav { display: none; }
  .hero .wrap, .layers .wrap, .toc .wrap, .faq .wrap, .author .wrap, .section-head, .question .wrap { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 72px; }
  .cover-wrap { order: -1; }
  .cover { width: min(200px, 52vw); }
  .cards, .who .cards, .proof .wrap { grid-template-columns: 1fr; }
  .stack li { grid-template-columns: 30px 1fr; }
  .stack .desc { grid-column: 2; }
  .stack li:nth-child(n) { margin-left: 0; }
  .author img { width: 180px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .panel { margin: 0 8px; border-radius: 22px; }
}
@media (max-width: 480px) {
  .torta3d .etichetta { font-size: 10px; gap: 4px; letter-spacing: 0; }
  .torta3d .etichetta::before { width: 8px; }
  .nl-row { flex-direction: column; }
  .nl-form { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .cover { transform: none; }
}
