/* Coloriva™ — stile scuro con luce arancione */
:root {
  --bg: #0b0908;
  --bg-2: #120e0c;
  --panel: #17120f;
  --panel-2: #1e1814;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --ink: #f6f1ec;
  --muted: #a39890;
  --dim: #958a81;
  --orange: #ff6a13;
  --orange-2: #ff8a3d;
  --orange-deep: #c2410c;
  --glow: rgba(255, 106, 19, .55);
  --radius: 22px;
  --header-h: 76px;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --on-orange: #1c0e05;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }   /* i link interni non finiscono sotto il menu */

/* Passaggio morbido tra le pagine (il menu resta fermo, il contenuto sfuma) */
@view-transition { navigation: auto; }
header.top { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--orange); color: var(--on-orange); }
html { scrollbar-color: #3a2c24 var(--bg); accent-color: var(--orange); caret-color: var(--orange); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a2c24; border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--orange-deep); }
a { text-underline-offset: .2em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0 0 .45em; letter-spacing: -.01em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 em, h1 em { color: var(--orange); font-style: italic; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 110px 0; position: relative; overflow-x: clip; }
.center { text-align: center; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 580px; }
.center .lead, .cta-card .lead, .page-hero .lead { margin-left: auto; margin-right: auto; }   /* testo centrato = anche il blocco al centro */

.kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: .7rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; margin-bottom: 22px;
  background: rgba(255,255,255,.02);
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.tagline { font-size: .74rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* Bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  font: 600 .9rem var(--sans); padding: 12px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--ink);
  transition: transform .15s, background .15s, border-color .15s, box-shadow .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.3); }
.btn.primary { background: var(--orange); border-color: var(--orange); color: var(--on-orange); font-weight: 800; box-shadow: 0 10px 24px -12px rgba(0,0,0,.7); }
.btn.primary:hover { background: var(--orange-2); border-color: var(--orange-2); box-shadow: 0 14px 30px -12px rgba(0,0,0,.8); }
.btn.sm { padding: 8px 16px; font-size: .82rem; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* Header */
header.top { position: sticky; top: 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; transition: background .2s, border-color .2s; border-bottom: 1px solid transparent; }
header.top > .wrap { width: 100%; justify-content: flex-start; gap: 12px; }
header.top .pill-nav { margin: 0 auto; }
/* sfondo pieno invece della sfocatura: la sfocatura va ricalcolata a ogni fotogramma e rende lo scorrimento a scatti */
header.top.scrolled { background: var(--bg); border-bottom-color: var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 46px; width: auto; }
footer.bottom .logo img { height: 54px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--orange); color: var(--on-orange); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--orange-2); outline-offset: 3px; }
.pill-nav {
  display: flex; gap: 2px; padding: 5px; border-radius: 999px;
  background: #15100d; border: 1px solid var(--line-2);
}
.pill-nav a { text-decoration: none; font-size: .84rem; color: #d6cdc6; padding: 7px 14px; border-radius: 999px; transition: background .15s, color .15s; }
.pill-nav a:hover, .pill-nav a.on { background: rgba(255,255,255,.08); color: #fff; }
.menu-btn { display: none; place-items: center; background: none; border: 1px solid var(--line-2); color: var(--ink); width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }

/* Selettore lingua */
.lang { position: relative; flex: none; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  font: 700 .8rem var(--sans); letter-spacing: .06em; color: var(--ink);
  background: rgba(11,9,8,.62); border: 1px solid var(--line-2);
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--orange); }
.lang-btn svg { width: 16px; height: 16px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 180px; margin: 0; padding: 6px; list-style: none;
  background: #17120f; border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.9);
}
.lang-menu[hidden] { display: none; }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; text-decoration: none; font-size: .92rem; color: #e6ddd6; }
.lang-menu a b { font-size: .72rem; letter-spacing: .08em; color: var(--muted); width: 22px; }
.lang-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
.lang-menu a[aria-current="true"] { background: rgba(255,106,19,.14); color: #fff; }
.lang-menu a[aria-current="true"] b { color: var(--orange-2); }

/* Banner cookie */
.ck {
  position: fixed; z-index: 90; left: 20px; bottom: 20px; width: min(440px, calc(100% - 40px));
  padding: 22px; border-radius: 22px; background: #17120f; border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.95);
}
.ck-title { font-family: var(--serif); font-size: 1.35rem; margin: 0 0 6px; }
.ck-text { margin: 0 0 16px; color: #d6cdc6; font-size: .9rem; line-height: 1.55; }
.ck-text a { color: var(--orange-2); }
.ck-custom { display: grid; gap: 8px; margin-bottom: 16px; }
.ck-custom[hidden] { display: none; }
.ck-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--line); cursor: pointer; }
.ck-row span { display: grid; gap: 2px; font-size: .9rem; }
.ck-row small { color: var(--muted); font-size: .78rem; line-height: 1.4; }
.ck-row input { width: 20px; height: 20px; flex: none; accent-color: var(--orange); }
.ck-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ck-actions .btn { flex: 1 1 auto; }
.link-btn { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.link-btn:hover { color: var(--orange-2); }
.menu-btn path { transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .2s; transform-origin: 12px 12px; }
.menu-btn.open .l1 { transform: translateY(5px) rotate(45deg); }
.menu-btn.open .l2 { opacity: 0; }
.menu-btn.open .l3 { transform: translateY(-5px) rotate(-45deg); }

/* Hero: video come sfondo a tutto schermo, menu e testo sopra (come il riferimento) */
.hero {
  position: relative; display: flex; align-items: flex-end; overflow: hidden; padding: 0;
  height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); min-height: 480px; max-height: 1000px;
}
.hero-media { position: absolute; inset: 0; background: var(--bg); }
/* il video si vede sempre intero (nessun taglio): il suo sfondo è lo stesso nero del sito */
.hero-video {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  height: 100%; width: auto; max-width: 100%; aspect-ratio: 16 / 9; object-fit: contain;
  /* bordi laterali sfumati: il video si fonde con lo sfondo */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
/* il titolo sta in una fascia in basso, così i testi del video restano visibili */
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(11,9,8,.5) 9%, rgba(11,9,8,0) 20%);
}
/* il video parla da solo: sopra restano solo i pulsanti, in basso al centro */
.hero-text { position: relative; z-index: 2; width: 100%; padding: 0 20px 82px; display: flex; justify-content: center; }
.hero-text .ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-text .btn:not(.primary) { background: rgba(11,9,8,.72); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink); border: 1px solid var(--line-2); background: rgba(11,9,8,.5);
}
.scroll-cue svg { width: 18px; height: 18px; }
.hero-play {
  position: absolute; z-index: 3; left: 50%; top: 42%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 800 1rem var(--sans); background: var(--orange); color: var(--on-orange); box-shadow: 0 16px 40px -14px rgba(0,0,0,.9);
  white-space: nowrap;
}
.hero-play[hidden] { display: none; }
.hero-toggle {
  position: absolute; z-index: 3; right: 18px; bottom: 18px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--ink);
  border: 1px solid var(--line-2); background: rgba(11,9,8,.6);
}
.hero-toggle:hover { border-color: var(--orange); color: var(--orange-2); }
.hero-toggle svg { width: 16px; height: 16px; }
.hero-play svg { width: 18px; height: 18px; }
.scroll-cue:hover { border-color: var(--orange); color: var(--orange-2); }
/* schermi in verticale (telefono, tablet in piedi): versione verticale dello stesso video */
@media (orientation: portrait) and (max-width: 1024px) {
  /* in verticale il video sta sopra e i pulsanti sotto, senza coprirlo */
  .hero { height: auto; max-height: none; min-height: 0; flex-direction: column; align-items: stretch; }
  .hero-media { position: relative; inset: auto; width: 100%; aspect-ratio: 9 / 16; max-height: calc(100svh - var(--header-h) - 120px); }
  .hero-video { inset: 0; left: 0; transform: none; width: 100%; height: 100%; max-width: none; aspect-ratio: auto; -webkit-mask-image: none; mask-image: none; }
  .hero-shade { display: none; }
  .hero-text { padding: 18px 22px 72px; }
  .hero-text .ctas { width: 100%; }
}

.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 28px 0 0; color: #cbbfb5; font-size: .9rem; }
.facts b { color: var(--ink); font-weight: 700; }
/* testo più chiaro dove c'è la luce arancione, per restare leggibile */
.cta-card .lead, .cta-card .small { color: #d8ccc2; }
.cta-card h2 em { color: #ff8f4a; }

/* Glow decorativo per sezioni */
.glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255,106,19,.22), transparent 65%); pointer-events: none; z-index: 0; }
section > .wrap { position: relative; z-index: 1; }

/* Libri */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.sec-head .lead { margin: 0; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.filters button { font: 500 .84rem var(--sans); cursor: pointer; padding: 7px 15px; border-radius: 999px; border: 0; background: none; color: #d6cdc6; }
.filters button:hover { color: #fff; }
.filters button.on { background: var(--orange); color: var(--on-orange); font-weight: 700; }
.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.book {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
  display: flex; flex-direction: column; min-width: 0; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.book:hover { transform: translateY(-6px); border-color: rgba(255,106,19,.45); box-shadow: 0 30px 50px -28px rgba(0,0,0,.9); }
.book.hide { display: none; }
.cover { position: relative; aspect-ratio: 5/8; border-radius: 12px; overflow: hidden; background: #000; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.book:hover .cover img { transform: scale(1.04); }
.ribbon {
  position: absolute; bottom: 10px; left: 10px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: rgba(11,9,8,.88); color: #fff;
  border: 1px solid var(--line-2); display: inline-flex; align-items: center; gap: 6px;
}
.ribbon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.book h3 { font-size: 1.3rem; margin: 16px 4px 4px; }
.book .age { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-2); margin: 0 4px; font-weight: 600; }
.book p { color: var(--muted); font-size: .88rem; margin: 10px 4px 16px; flex: 1; }
.book .buy { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 4px 4px; }

/* Valori */
.values { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.values .lead { margin-top: 18px; }
.val-list { margin: 0; border-top: 1px solid var(--line-2); }
.val-row { display: grid; grid-template-columns: 210px 1fr; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line-2); }
.val-row dt { font-family: var(--serif); font-size: 1.55rem; line-height: 1.15; }
.val-row dd { margin: 0; color: var(--muted); align-self: center; }

/* Pagine gratis */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.pages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 460px; margin: 0 auto; padding-bottom: 22px; width: 100%; }
.pages a { display: block; text-decoration: none; background: #fff; border-radius: 12px; padding: 8px; transition: transform .25s; box-shadow: 0 30px 50px -25px rgba(0,0,0,.9); }
.pages a:nth-child(odd) { transform: rotate(-3deg); }
.pages a:nth-child(even) { transform: rotate(3deg) translateY(22px); }
.pages a:hover { transform: rotate(0) scale(1.06); z-index: 2; position: relative; }
.pages img { aspect-ratio: 797/1132; object-fit: cover; border-radius: 6px; width: 100%; }
.check { list-style: none; padding: 0; margin: 24px 0 32px; }
.check li { padding-left: 30px; position: relative; margin-bottom: 10px; color: #d6cdc6; }
.check li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,106,19,.15); color: var(--orange); font-size: .72rem; display: grid; place-items: center; font-weight: 700; }

/* Pagina "Pagine gratis" */
.color-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.color-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; min-width: 0; transition: transform .25s, border-color .25s, box-shadow .25s; }
.color-card[hidden] { display: none; }
.color-card:hover { transform: translateY(-6px); border-color: rgba(255,106,19,.45); box-shadow: 0 30px 50px -28px rgba(0,0,0,.9); }
.color-card .paper { background: #fff; border-radius: 12px; padding: 8px; }
.color-card img { aspect-ratio: 797/1132; object-fit: cover; width: 100%; border-radius: 6px; }
.color-card .book-tag { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-2); font-weight: 600; margin: 16px 4px 4px; }
.color-card h3 { font-size: 1.25rem; margin: 0 4px 14px; flex: 1; }
.color-card .btn { margin: 0 4px 4px; align-self: flex-start; }

/* Colora online */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.board { position: sticky; top: 90px; }
.paper-wrap {
  position: relative; background: #fff; border-radius: 22px; padding: 14px;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.95), 0 0 0 1px var(--line);
  max-width: 640px; margin: 0 auto;
}
#cv { display: block; width: 100%; height: auto; aspect-ratio: 797/1132; border-radius: 10px; cursor: crosshair; touch-action: manipulation; }
#cv.brush { touch-action: none; }
.loading { position: absolute; inset: 0; display: grid; place-items: center; color: #6f655e; font-weight: 600; background: rgba(255,255,255,.85); border-radius: 22px; }
.loading[hidden] { display: none; }
.tools { display: grid; gap: 16px; }
.tool-group { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.tool-label { display: flex; align-items: center; gap: 10px; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.tool-label .current { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line-2); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button { font: 600 .88rem var(--sans); color: #d6cdc6; background: none; border: 0; padding: 10px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.seg svg { width: 18px; height: 18px; }
.seg button.on { background: var(--orange); color: var(--on-orange); }
.size-row { display: grid; gap: 8px; margin-top: 14px; font-size: .85rem; color: var(--muted); }
.size-row[hidden] { display: none; }
.size-row input { accent-color: var(--orange); width: 100%; }
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 8px; }
.palette button {
  aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); transition: transform .12s;
}
.palette button:hover { transform: scale(1.12); }
.palette button.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px #fff; transform: scale(1.08); }
.custom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: .88rem; color: #d6cdc6; }
.custom input { width: 46px; height: 32px; border: 0; padding: 0; background: none; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions .btn.primary { flex: 1 1 100%; }
.actions .btn.sm { flex: 1; }
.picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-height: 300px; overflow-y: auto; padding: 2px; }
.picker button { background: #fff; border: 0; border-radius: 8px; padding: 3px; cursor: pointer; opacity: .75; transition: opacity .15s, box-shadow .15s; }
.picker button:hover { opacity: 1; }
.picker button.on { opacity: 1; outline: 3px solid var(--orange); outline-offset: 0; }
.picker img { aspect-ratio: 797/1132; object-fit: cover; border-radius: 5px; width: 100%; }

/* Demo "video" in home: un disegno che si colora da solo */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.demo-frame { position: relative; max-width: 440px; margin: 0 auto; width: 100%; }
.demo-frame .paper-wrap { transform: rotate(-2deg); }
.demo-stage { position: relative; aspect-ratio: 797/1132; }
.demo-frame canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: 10px; }
#demoFx { pointer-events: none; opacity: 0; }
/* matita che si sposta sul disegno: la punta è nell'angolo in basso a sinistra del box */
.demo-pencil {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  transition: transform .26s cubic-bezier(.3,.7,.3,1), opacity .3s; opacity: 0;
}
.demo-pencil.on { opacity: 1; }
.demo-pencil svg {
  position: absolute; left: 0; top: 0; width: 9%; height: auto;
  transform-origin: 50% 100%; transform: translate(-50%, -100%) rotate(35deg);
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.35));
}
.demo-pencil .body, .demo-pencil .tip { fill: var(--tip, #ff6a13); transition: fill .2s; }
.demo-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; margin-top: 26px; }
.demo-caption p { margin: 0; display: grid; line-height: 1.3; }
.demo-caption b { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.demo-caption span { color: var(--muted); font-size: .85rem; }
.demo-dots { display: flex; gap: 8px; }
.demo-dots button { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; cursor: pointer; background: var(--line-2); transition: width .25s, background .25s; }
.demo-dots button[aria-current="true"] { width: 26px; background: var(--orange); }
.demo-dots button:hover { background: var(--orange-2); }
.demo-badge {
  position: absolute; top: 18px; right: -12px; z-index: 5; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(11,9,8,.88); border: 1px solid var(--line-2);
  padding: 8px 14px; border-radius: 999px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
}
.demo-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.demo-ctrl { display: flex; gap: 8px; }
.demo-ctrl button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); cursor: pointer; background: rgba(255,255,255,.04); color: var(--ink); display: grid; place-items: center; }
.demo-ctrl svg { width: 18px; height: 18px; }
.demo-ctrl button:hover { background: var(--orange); color: var(--on-orange); }

/* Galleria */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 50px 0 40px; text-align: left; }
.step { border-top: 1px solid var(--line-2); padding-top: 22px; }
.step .n { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--orange); font-style: italic; }
.step h3 { font-size: 1.4rem; margin: 14px 0 6px; }
.step p { color: var(--muted); margin: 0; font-size: .94rem; }
.hashtag { font-family: var(--serif); font-size: clamp(2.6rem, 8vw, 6rem); line-height: 1; margin: 10px 0 30px; color: var(--orange); }

/* Chi sono */
.about-card { display: grid; grid-template-columns: .85fr 1.15fr; gap: 0; border: 1px solid var(--line); border-radius: 32px; overflow: hidden; background: var(--panel); }
.about-visual {
  position: relative; min-height: 460px; display: grid; place-items: center;
  background: radial-gradient(70% 70% at 50% 50%, rgba(255,106,19,.5), rgba(194,65,12,.15) 50%, transparent 75%), #0d0a08;
}
.about-visual img { width: 78%; max-width: 380px; filter: drop-shadow(0 0 30px rgba(255,106,19,.4)); }
.about-copy { padding: 56px 52px; }
.quote { font-family: var(--serif); font-size: 1.7rem; line-height: 1.3; margin: 28px 0; }
.quote::before { content: "\201C"; display: block; font-size: 4.2rem; line-height: .7; color: var(--orange); margin-bottom: 4px; }
.quote em { color: var(--orange); }
.sign { color: var(--muted); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }

/* Newsletter + contatti */
.cta-card {
  position: relative; overflow: hidden; border-radius: 32px; border: 1px solid var(--line); padding: 72px 40px;
  background: radial-gradient(60% 90% at 50% 120%, rgba(255,106,19,.38), rgba(194,65,12,.14) 45%, transparent 68%), var(--bg-2);
  text-align: center;
}
.nl-form { display: flex; gap: 8px; max-width: 520px; margin: 30px auto 14px; padding: 6px; border-radius: 999px; background: rgba(0,0,0,.45); border: 1px solid var(--line-2); }
.nl-form input { flex: 1; min-width: 0; background: none; border: 0; color: var(--ink); font: inherit; padding: 0 16px; outline: none; }
.nl-form input::placeholder { color: var(--dim); }
.small { font-size: .8rem; color: var(--dim); }
/* messaggio dopo l'invio: spazio già riservato (niente salti), compare e sparisce con una dissolvenza */
.form-msg { min-height: 1.4em; font-size: .9rem; margin-top: 6px; opacity: 0; transform: translateY(4px); transition: opacity .3s ease, transform .3s ease; }
.form-msg.show { opacity: 1; transform: none; }
.form-msg.ok { color: #7ee2a8; font-weight: 700; }
.form-msg.ok::before { content: "✓ "; }
.form-msg.err { color: #ff9b7a; }
.form-msg a { color: inherit; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; margin-top: 30px; align-items: start; }
.contact-info .row { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.contact-info .row:hover .t { color: var(--orange-2); }
.contact-info .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,106,19,.12); color: var(--orange); flex: none; }
.contact-info .ico svg { width: 18px; height: 18px; fill: currentColor; }
.contact-info .l { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); display: block; }
.contact-info .t { font-size: 1.05rem; transition: color .15s; }
.form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; gap: 14px; }
.form label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); display: grid; gap: 8px; }
.form input, .form textarea {
  font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 13px 16px; outline: none; transition: border-color .15s;
}
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--orange); }
.hp { position: absolute; left: -9999px; }

/* Footer */
footer.bottom { border-top: 1px solid var(--line); padding: 50px 0 40px; margin-top: 40px; color: var(--muted); font-size: .88rem; }
footer.bottom .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
footer.bottom .foot-title { font: 600 .7rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); margin: 0 0 14px; }
footer.bottom ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer.bottom a { text-decoration: none; }
footer.bottom a:hover { color: var(--orange-2); }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: background .15s, border-color .15s; }
.socials a:hover { background: var(--orange); border-color: var(--orange); }
.socials a:hover svg { fill: var(--on-orange); }
.socials svg { width: 17px; height: 17px; fill: #fff; }
.legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 24px; font-size: .82rem; color: #8d8279; }
.legal.solo { border-top: 0; margin-top: 0; padding-top: 4px; }

/* Pagine interne (blog, privacy, termini) */
.page-hero { padding: 80px 0 50px; text-align: center; position: relative; overflow: hidden; }
.page-hero h1, .prose h2 { overflow-wrap: break-word; }
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
.page-hero .glow { left: 50%; top: -260px; transform: translateX(-50%); width: 760px; height: 600px; }
.prose { max-width: 760px; margin: 0 auto; padding: 0 20px 60px; color: #d9d0c9; font-size: 1.04rem; }
.prose h2 { font-size: 1.9rem; margin: 46px 0 14px; color: var(--ink); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--orange); }
.prose a { color: var(--orange-2); }
.updated { color: var(--dim); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1200px; margin: 0 auto 80px; padding: 0 20px; }
.post-card { display: flex; flex-direction: column; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .2s, transform .2s; }
.post-card:hover { border-color: rgba(255,106,19,.45); transform: translateY(-4px); }
.post-card .n { font-family: var(--serif); font-style: italic; color: var(--orange); }
.post-card h2 { font-size: 1.45rem; margin: 18px 0 10px; }
.post-card p { color: var(--muted); font-size: .9rem; margin: 0 0 18px; flex: 1; }
.post-card .more { font-size: .82rem; font-weight: 600; color: var(--orange-2); }
article.post { border-top: 1px solid var(--line); padding-top: 50px; margin-top: 50px; scroll-margin-top: 90px;
  content-visibility: auto; contain-intrinsic-size: auto 1100px; }   /* gli articoli fuori schermo non si disegnano finché non servono */
article.post h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-top: 6px; }
article.post .num { font-family: var(--serif); font-style: italic; color: var(--orange); font-size: 1.1rem; }
.back-top { display: inline-block; margin-top: 10px; font-size: .85rem; color: var(--muted) !important; text-decoration: none; }

/* Animazione d'ingresso */

/* Responsive */
@media (max-width: 1020px) {
  .book-grid, .color-grid { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: 1fr; gap: 36px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  section:not(.hero) { padding: 76px 0; }
  .menu-btn { display: grid; }
  .pill-nav {
    display: none; position: absolute; top: 70px; left: 16px; right: 16px; flex-direction: column; border-radius: 20px;
    background: #120e0c; padding: 10px;
  }
  .pill-nav.open { display: flex; }
  .pill-nav a { padding: 12px 16px; font-size: 1rem; }
  header.top .btn.cta { display: none; }
  .lang { margin-left: auto; }
  .ck { left: 12px; bottom: 12px; width: calc(100% - 24px); padding: 18px; }
  .split, .contact-grid, .about-card, .demo { grid-template-columns: 1fr; gap: 40px; }
  .studio { grid-template-columns: 1fr; }
  .board { position: static; }
  .picker { grid-template-columns: repeat(6, 1fr); max-height: none; }
  .demo-badge { right: 8px; }
  .about-card { gap: 0; }
  .about-visual { min-height: 300px; }
  .about-copy { padding: 36px 28px; }
  .steps { grid-template-columns: 1fr; }
  .book-grid, .color-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .color-card { padding: 10px; }
  .color-card h3 { font-size: 1.05rem; }
  .color-card .btn { width: 100%; align-self: stretch; }
  footer.bottom .grid { grid-template-columns: 1fr 1fr; }
  footer.bottom .grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hero-text .ctas { flex-wrap: nowrap; gap: 8px; }
  .hero-text .ctas .btn { flex: 1 1 0; padding: 12px 10px; font-size: .86rem; }
  .hero-text .ctas .btn svg { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .val-row { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .logo img { height: 38px; }
  .book { padding: 10px; }
  .book p { display: none; }
  .book h3 { font-size: 1.1rem; }
  .book .btn { width: 100%; white-space: normal; text-align: center; }
  .pages { grid-template-columns: repeat(2, 1fr); }
  .picker { grid-template-columns: repeat(4, 1fr); }
  .paper-wrap { padding: 8px; border-radius: 16px; }
  .cta-card { padding: 56px 20px; }
  .nl-form { flex-direction: column; border-radius: 22px; background: none; border: 0; padding: 0; }
  .nl-form input { background: rgba(0,0,0,.45); border: 1px solid var(--line-2); border-radius: 999px; padding: 14px 18px; }
  .sec-head { flex-direction: column; align-items: flex-start; }
}
/* meno movimento: niente scorrimento animato né spostamenti al passaggio del mouse;
   video e anteprima restano attivi, ma hanno il loro pulsante di pausa */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .form-msg { transform: none; }
  .btn:hover, .book:hover, .color-card:hover, .post-card:hover, .pages a:hover { transform: none; }
}
