/* Iteria · stile del sito (v3, "fatto a mano")
   Carta calda, titoli in un carattere da libro, tratti disegnati a mano, palette Vino.
   Source Serif 4 (titoli) e Space Grotesk (etichette): licenza OFL, ospitati qui. Nessuna risorsa esterna. */

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4-Italic-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
:root {
  --carta: #FBF6EC;
  --carta-2: #F4ECDD;
  --bianco: #FFFDF8;
  --inchiostro: #2B1B1E;
  --inchiostro-2: #625356;
  --matita: #988A84;
  --linea: #E3D6C2;
  --vino: #7A1F2B;
  --vino-scuro: #5E1621;
  --vino-notte: #3A0D14;
  --senape: #D9A21B;
  --oro-chiaro: #F3D27A;
  --postit: #FBE7A1;
  --nastro: rgba(233, 214, 170, .72);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .24 0 0 0 0 .18 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --brand: "Space Grotesk", var(--sans);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --gutter: 20px;
  --max: 1160px;
  --header: 64px;
  interpolate-size: allow-keywords;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--carta);
  background-image: var(--grain);
  color: var(--inchiostro);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--vino); text-underline-offset: 3px; }
a:hover { color: var(--vino-scuro); }
:focus-visible { outline: 3px solid var(--senape); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.012em; margin: 0 0 .45em; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h3 { font-size: 1.4rem; }
h1 em, h2 em { font-style: italic; color: var(--vino); }
p { margin: 0 0 1em; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--inchiostro); color: var(--carta); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: var(--carta); }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }

/* Etichette sopra i titoli */
.label {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-family: var(--brand); font-weight: 500; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--vino);
}
.label::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(-6deg); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--inchiostro-2); max-width: 36em; }

/* ---------- Tratti disegnati a mano ---------- */
.doodle { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; overflow: visible; pointer-events: none; }
.js .doodle { stroke-dasharray: 1 2; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease) var(--dd, 0s); }
.js .doodle.is-drawn { stroke-dashoffset: 0; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- Pulsanti e link ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75em 1.35em; border: 0; border-radius: 12px;
  font-family: var(--sans); font-weight: 650; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s;
}
.btn-primary { background: var(--vino); color: var(--carta); box-shadow: 0 3px 0 var(--vino-notte); }
.btn-primary:hover { background: var(--vino-scuro); color: var(--carta); transform: translateY(-1px); box-shadow: 0 4px 0 var(--vino-notte); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--vino-notte); }
.btn-ghost { background: transparent; color: var(--vino); box-shadow: inset 0 0 0 2px var(--vino); }
.btn-ghost:hover { background: var(--vino); color: var(--carta); }
.btn-sm { min-height: 38px; padding: .45em 1em; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.link-more {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 600; color: var(--vino);
  text-decoration: underline; text-decoration-color: rgba(122, 31, 43, .35); text-underline-offset: 4px;
}
.link-more::after { content: "→"; text-decoration: none; transition: transform .25s var(--ease); }
.link-more:hover::after { transform: translateX(3px); }

/* ---------- Intestazione ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 236, .9);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(43, 27, 30, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header); }
.brand { display: block; flex: none; }
.brand img { height: 58px; width: auto; margin-left: -14px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { color: var(--inchiostro); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] {
  color: var(--vino); text-decoration: underline wavy var(--senape); text-decoration-thickness: 1.5px; text-underline-offset: 6px;
}
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; margin-right: -10px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 12px; width: 20px; height: 2px; border-radius: 2px; background: var(--inchiostro);
  transition: transform .3s var(--ease), background-color .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px;
    background-color: var(--carta); background-image: var(--grain);
    border-bottom: 1px solid var(--linea); box-shadow: 0 24px 40px -30px rgba(43, 27, 30, .5);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px dashed var(--linea); font-size: 1.1rem; }
  .nav .btn { margin-top: 18px; min-height: 48px; }
}

/* ---------- Comparsa allo scorrimento ---------- */
.js [data-reveal] { opacity: 0; translate: 0 18px; transition: opacity .8s var(--ease), translate .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* ---------- Carta: polaroid, post-it, nastro ---------- */
.polaroid {
  position: relative; margin: 0; max-width: 380px; padding: 14px 14px 16px; border-radius: 3px; background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06), 0 26px 44px -26px rgba(43, 27, 30, .6);
  transform: rotate(-2.5deg); transition: transform .5s var(--ease);
}
.polaroid:hover { transform: rotate(-1deg) translateY(-2px); }
.polaroid::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; margin-left: -60px;
  background: var(--nastro); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); transform: rotate(3deg);
}
.polaroid img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 25%; border-radius: 1px; }
.polaroid figcaption { padding: 12px 4px 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.35; color: var(--inchiostro-2); }
.postit {
  position: absolute; right: -30px; bottom: 76px; max-width: 220px; padding: 16px 18px;
  background: var(--postit); color: var(--inchiostro);
  font-family: var(--serif); font-size: 1.05rem; line-height: 1.35;
  box-shadow: 0 14px 22px -16px rgba(43, 27, 30, .55); transform: rotate(3deg);
}
.postit p { margin: 0; }
.postit strong { display: block; margin-bottom: 4px; font-family: var(--brand); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--vino); }
.postit-wide { position: relative; right: auto; bottom: auto; max-width: 600px; margin: 56px auto 0; transform: rotate(-1deg); }
.postit-wide strong { display: inline; margin: 0 .3em 0 0; font-family: var(--serif); font-size: inherit; letter-spacing: 0; text-transform: none; }
.postit a { font-family: var(--sans); font-weight: 600; margin-left: .3em; }

/* Taccuino dell'apertura: la lista delle cose da sistemare */
.notepad {
  position: relative; padding: 30px 28px 22px 58px; border-radius: 4px;
  background-color: var(--bianco);
  background-image:
    linear-gradient(90deg, transparent 40px, rgba(122, 31, 43, .3) 40px 42px, transparent 42px),
    repeating-linear-gradient(180deg, transparent 0 43px, rgba(110, 130, 170, .2) 43px 44px);
  background-position: 0 0, 0 26px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .05), 0 30px 50px -30px rgba(43, 27, 30, .6);
  transform: rotate(-2deg); transition: transform .5s var(--ease);
}
.notepad:hover { transform: rotate(-1deg) translateY(-2px); }
.notepad::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; margin-left: -60px;
  background: var(--nastro); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); transform: rotate(3deg);
}
.notepad-title { margin: 0 0 6px; font-family: var(--serif); font-style: italic; font-size: 1.7rem; line-height: 44px; color: var(--vino); }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: flex; align-items: center; gap: 14px; min-height: 44px; font-family: var(--serif); font-size: 1.1rem; line-height: 1.25; }
.box { position: relative; width: 24px; height: 24px; flex: none; border: 2px solid var(--inchiostro-2); border-radius: 4px 6px 3px 7px; transform: rotate(-3deg); }
.box .doodle-check { position: absolute; left: -1px; top: -9px; width: 32px; height: 26px; margin: 0; color: var(--vino); stroke-width: 3.4; }
.todo li:nth-child(1) .doodle-check { --dd: .5s; }
.todo li:nth-child(2) .doodle-check { --dd: .9s; }
.todo li:nth-child(3) .doodle-check { --dd: 1.3s; }
.todo li:nth-child(4) .doodle-check { --dd: 1.7s; }
.notepad-foot { margin: 6px 0 0; font-family: var(--serif); font-style: italic; line-height: 44px; color: var(--inchiostro-2); }
.hero .postit { right: -40px; bottom: -78px; }
@media (max-width: 520px) {
  .notepad { padding: 26px 18px 18px 50px; background-image: linear-gradient(90deg, transparent 34px, rgba(122, 31, 43, .3) 34px 36px, transparent 36px), repeating-linear-gradient(180deg, transparent 0 43px, rgba(110, 130, 170, .2) 43px 44px); }
  .todo li { gap: 12px; font-size: .98rem; }
  .notepad-title { font-size: 1.5rem; }
}

/* ---------- Apertura ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: clamp(40px, 6vw, 96px); }
.hero-title { font-size: clamp(2.1rem, 4.6vw, 3.95rem); line-height: 1.04; letter-spacing: -.025em; margin: 0 0 .5em; }
.hl { position: relative; display: inline-block; color: var(--vino); font-style: italic; }
.hl .doodle-underline { position: absolute; left: -1%; bottom: -.34em; width: 102%; height: auto; color: var(--senape); stroke-width: 4; }
.hero .doodle-underline { animation: draw 1.3s var(--ease) .5s both; }
.hero-lead { max-width: 34em; font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--inchiostro-2); }
.hero-lead:first-of-type { color: var(--inchiostro); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 30px; }
.hero-side { position: relative; justify-self: center; width: 100%; max-width: 380px; }
.hero-arrow { position: absolute; left: -84px; top: 20%; width: 74px; color: var(--vino); }
@media (max-width: 1100px) { .hero-arrow { display: none; } }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { max-width: 320px; margin-top: 8px; }
  .hero .postit { right: -10px; bottom: -70px; }
  .hero-side { margin-bottom: 64px; }
}

/* ---------- Per chi lavoro: cartellini ---------- */
.who { padding: 0 0 clamp(48px, 6vw, 72px); text-align: center; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; }
.tags li {
  position: relative; padding: 9px 16px 9px 30px; border: 1px solid var(--linea); border-radius: 4px 12px 12px 4px;
  background: var(--bianco); font-size: .98rem; box-shadow: 0 6px 14px -12px rgba(43, 27, 30, .6);
  transform: rotate(-1deg);
}
.tags li:nth-child(even) { transform: rotate(1.2deg); }
.tags li:nth-child(3n) { transform: rotate(-.3deg); }
.tags li::before {
  content: ""; position: absolute; left: 11px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--carta); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25);
}
.tags-flat { justify-content: flex-start; }
.tags-flat li { transform: none !important; padding: 7px 14px; border-radius: 999px; font-size: .92rem; }
.tags-flat li::before { display: none; }

/* ---------- Sezioni ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background-color: var(--carta-2); background-image: var(--grain); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }

/* ---------- Ti suona familiare? ---------- */
.problems { padding-top: clamp(40px, 6vw, 72px); }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 36px; }
.quote {
  position: relative; margin: 0; padding: 32px 28px 26px 32px; border-radius: 3px; background: var(--bianco);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04), 0 18px 30px -24px rgba(43, 27, 30, .6);
  transform: rotate(-.8deg);
}
.quote:nth-child(2) { transform: rotate(.9deg); }
.quote:nth-child(3) { transform: rotate(.4deg); }
.quote:nth-child(4) { transform: rotate(-1.1deg); }
.quote::before { content: "“"; position: absolute; left: 12px; top: -10px; font-family: var(--serif); font-size: 4.2rem; line-height: 1; color: var(--senape); }
.quote::after { content: ""; position: absolute; top: -12px; right: 26px; width: 72px; height: 22px; background: var(--nastro); transform: rotate(5deg); }
.quote p { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.42; }
.problems-after { max-width: 40em; margin: 48px 0 0; font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.45; }
.problems-after a { margin-left: .4em; font-family: var(--sans); font-weight: 600; font-size: 1rem; }
.circled { position: relative; display: inline-block; }
.circled .doodle-circle { position: absolute; left: -34%; top: 50%; width: 168%; max-width: none; height: auto; transform: translateY(-50%); color: var(--vino); stroke-width: 2.6; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Servizi ---------- */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.svc { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 30px 0; border-top: 1px dashed rgba(43, 27, 30, .24); }
.svc-num { padding-top: 7px; font-family: var(--brand); font-weight: 500; font-size: .95rem; letter-spacing: .04em; color: var(--vino); }
.svc h3 { margin: 0 0 .35em; font-size: clamp(1.35rem, 2vw, 1.6rem); }
.svc p { margin: 0 0 .6em; color: var(--inchiostro-2); }
.svc-es { font-size: .95rem; }
.svc-es em { font-family: var(--serif); font-style: italic; color: var(--vino); }
@media (max-width: 800px) { .services { grid-template-columns: 1fr; } }

/* ---------- Esempi: dallo schizzo al sito ---------- */
.ex-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 28px; }
.seg {
  position: relative; display: inline-flex; max-width: 100%; padding: 4px; overflow-x: auto;
  border-radius: 12px; background: var(--bianco); border: 1px solid var(--linea); scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  position: relative; z-index: 1; flex: none; padding: 9px 16px; border: 0; border-radius: 9px;
  background: transparent; color: var(--inchiostro-2); font: 600 .95rem var(--sans); cursor: pointer; transition: color .3s;
}
.seg button:hover { color: var(--inchiostro); }
.seg button[aria-selected="true"] { color: var(--carta); }
.seg-pill {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0;
  width: var(--w, 0px); transform: translateX(var(--x, 0px)); border-radius: 9px; background: var(--inchiostro);
  transition: transform .45s var(--ease), width .45s var(--ease);
}
.mode { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bianco); border: 1px solid var(--linea); }
.mode button {
  padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--inchiostro-2);
  font: italic 600 1rem var(--serif); cursor: pointer; transition: background-color .3s, color .3s;
}
.mode button[aria-pressed="true"] { background: var(--postit); color: var(--inchiostro); box-shadow: 0 2px 0 rgba(43, 27, 30, .12); }
.ex-devices { position: relative; width: min(1000px, 100%); margin: 0 auto; padding-bottom: 5%; }
.browser {
  width: 84%; overflow: hidden; border-radius: 14px; background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 40px 70px -40px rgba(43, 27, 30, .6), 0 0 0 1px rgba(43, 27, 30, .08);
}
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #F1EADF; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D7CBBB; }
.browser-bar span { margin-left: 12px; padding: 2px 14px; border-radius: 7px; background: #fff; font-size: 12px; color: var(--matita); }
.browser .screen { aspect-ratio: 16 / 10; }
.ex-devices .phone { position: absolute; right: 0; bottom: 0; width: 21%; }
.stage-features {
  list-style: none; margin: 26px 0 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px;
  color: var(--inchiostro-2); transition: opacity .25s;
}
.stage-features.is-swapping { opacity: 0; }
.stage-features li { display: flex; align-items: center; gap: 10px; }
.stage-features li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--senape); }
@media (max-width: 720px) {
  .browser { display: none; }
  .ex-devices .phone { position: relative; right: auto; bottom: auto; width: min(64vw, 280px); margin-inline: auto; }
  .seg button { padding: 8px 12px; font-size: .9rem; }
}

/* ---------- Telefono e schermi ---------- */
.phone {
  position: relative; container-type: inline-size; aspect-ratio: 9 / 19.5;
  border-radius: 16% / 7.4%; background: #121011;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 26px 50px -24px rgba(43, 27, 30, .7);
}
.phone::after {
  content: ""; position: absolute; z-index: 3; top: 6.4cqi; left: 50%; width: 4.6cqi; aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%; background: #2A2526;
}
.phone .phone-screen { position: absolute; inset: 3.6cqi; border-radius: 11.5cqi; overflow: hidden; background: #fff; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.screen { position: relative; overflow: hidden; background: #fff; container-type: inline-size; }

/* ---------- Siti dimostrativi (scalano con lo schermo che li contiene) ---------- */
.demo {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  background: var(--d-bg); color: var(--d-ink);
  font-family: var(--sans); font-size: 1.3cqi; line-height: 1.35; text-align: left;
  opacity: 0; transform: scale(1.015);
  transition: opacity .7s var(--ease), transform .9s var(--ease), background-color .6s, color .6s;
}
.demo * { transition: background-color .6s, color .6s, box-shadow .6s, border-color .6s, opacity .5s; }
.demo.is-active { opacity: 1; transform: none; }
.demo i, .demo b, .demo small { font-style: normal; }
.d-nav { display: flex; align-items: center; gap: 2.2em; padding: 1.5em 3.2em; }
.d-logo { font-family: var(--d-display); font-size: 1.35em; font-weight: 600; white-space: nowrap; }
.d-logo b { color: var(--d-accent); font-weight: 700; }
.d-links { display: flex; gap: 1.8em; margin-left: auto; font-size: .95em; opacity: .72; }
.d-btn { padding: .55em 1.3em; border-radius: 99em; background: var(--d-accent); color: #fff; font-size: .9em; font-weight: 600; white-space: nowrap; }
.d-burger { display: none; }
.d-hero { flex: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2.4em; padding: 1em 3.2em 2em; }
.d-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1em; }
.d-kicker { font-size: .82em; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--d-accent); }
.d-title { font-family: var(--d-display); font-size: 3.4em; line-height: 1.02; letter-spacing: -.025em; font-weight: 600; }
.d-text { font-size: 1.15em; opacity: .72; }
.d-cta { margin-top: .4em; padding: .85em 1.6em; border-radius: 99em; background: var(--d-ink); color: var(--d-bg); font-size: .95em; font-weight: 600; }
.d-art { position: relative; aspect-ratio: 5 / 4; border-radius: 1.8em; overflow: hidden; background: var(--d-soft); }
.d-art i { position: absolute; display: block; }
.d-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2em; padding: 0 3.2em 1.8em; }
.d-item {
  display: flex; justify-content: space-between; align-items: baseline; gap: .8em;
  padding: 1em 1.3em; border-radius: 1.1em; background: #fff; box-shadow: 0 .3em 1.2em rgba(0, 0, 0, .06);
}
.d-item b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-item small { color: var(--d-accent); font-weight: 700; font-size: .9em; white-space: nowrap; }
.d-foot { display: flex; justify-content: space-between; gap: 1em; padding: 1.1em 3.2em; font-size: .85em; background: var(--d-ink); color: var(--d-bg); }
@container (max-width: 520px) {
  .demo { font-size: 4.2cqi; }
  .d-nav { gap: 1em; padding: 2.8em 1.2em 1em; }
  .d-links, .d-btn { display: none; }
  .d-burger { display: flex; flex-direction: column; gap: .32em; margin-left: auto; }
  .d-burger i { display: block; width: 1.5em; height: .16em; border-radius: 1em; background: var(--d-ink); }
  .d-hero { flex: none; grid-template-columns: 1fr; gap: 1.2em; padding: .4em 1.2em 1.4em; }
  .d-art { order: -1; aspect-ratio: 16 / 11; border-radius: 1.2em; }
  .d-title { font-size: 2.05em; }
  .d-text { font-size: 1em; }
  .d-row { grid-template-columns: 1fr; gap: .6em; padding: 0 1.2em 1.2em; }
  .d-item { padding: .85em 1em; }
  .d-foot { flex-direction: column; gap: .25em; margin-top: auto; padding: 1em 1.2em 1.8em; }
}
.demo-ristorante { --d-bg: #FBF4EA; --d-ink: #3A1D12; --d-accent: #B5462A; --d-soft: #F1E0C8; --d-display: var(--serif); }
.demo-bnb { --d-bg: #F3F7F8; --d-ink: #1D3340; --d-accent: #2F7A8C; --d-soft: #DCEAEE; --d-display: var(--serif); }
.demo-studio { --d-bg: #F5F6FA; --d-ink: #15203A; --d-accent: #2D4BA0; --d-soft: #E1E7F5; --d-display: var(--sans); }
.demo-negozio { --d-bg: #FFF8F1; --d-ink: #2A2320; --d-accent: #5E6B2F; --d-soft: #EEF0DC; --d-display: var(--brand); }

/* Modalità schizzo: lo stesso sito, disegnato a matita su un foglio a righe */
.screen.is-sketch .demo {
  --d-bg: #FDFBF6; --d-ink: #6E625D; --d-accent: #8C807A; --d-soft: transparent; --d-display: var(--serif);
  background-image: repeating-linear-gradient(180deg, transparent 0 1.9em, rgba(110, 130, 170, .16) 1.9em calc(1.9em + 1px));
}
.screen.is-sketch .d-btn, .screen.is-sketch .d-cta { background: transparent; color: #6E625D; box-shadow: inset 0 0 0 .13em #6E625D; }
.screen.is-sketch .d-title, .screen.is-sketch .d-logo { font-style: italic; }
.screen.is-sketch .d-art { background: transparent; box-shadow: inset 0 0 0 .14em #A59A93; }
.screen.is-sketch .d-art i { opacity: 0; }
.d-art::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s;
  background:
    linear-gradient(to top right, transparent calc(50% - .07em), #B4A9A2 calc(50% - .07em), #B4A9A2 calc(50% + .07em), transparent calc(50% + .07em)),
    linear-gradient(to top left, transparent calc(50% - .07em), #B4A9A2 calc(50% - .07em), #B4A9A2 calc(50% + .07em), transparent calc(50% + .07em));
}
.screen.is-sketch .d-art::after { opacity: 1; }
.screen.is-sketch .d-item { background: transparent; box-shadow: inset 0 0 0 .1em #A59A93; }
.screen.is-sketch .d-foot { background: transparent; color: #8C807A; box-shadow: inset 0 .12em 0 #C9BFB8; }
.screen.is-sketch .d-burger i { background: #6E625D; }

/* Illustrazioni dei siti dimostrativi */
.art-plate { background: radial-gradient(120% 90% at 20% 10%, #F8DDB0, #E29A57 60%, #B5462A); }
.art-plate i:nth-child(1) { inset: 13% 22%; border-radius: 50%; background: #FFFDF8; box-shadow: 0 1.2em 2.4em rgba(80, 30, 10, .3), inset 0 0 0 .9em #F3E6D3; }
.art-plate i:nth-child(2) { inset: 30% 35%; border-radius: 50%; background: radial-gradient(circle at 38% 35%, #FBE38E, #EFB43A 45%, #D9822B 75%, #B5462A); }
.art-plate i:nth-child(3) { width: 14%; height: 9%; left: 50%; top: 31%; border-radius: 100% 0; background: linear-gradient(135deg, #7DAA4A, #4E7A2E); transform: rotate(-20deg); }
.art-window { background: linear-gradient(180deg, #CFE8F1, #F7E9D3); }
.art-window i:nth-child(1) {
  inset: 12% 24% 10%; border: .9em solid #FFFDF8; border-radius: 48% 48% .6em .6em / 34% 34% .6em .6em;
  background: linear-gradient(180deg, #8ECDE6 0%, #CDE9F2 55%, #F4D7AE 100%); box-shadow: 0 1em 2em rgba(30, 51, 64, .18);
}
.art-window i:nth-child(2) { width: 16%; aspect-ratio: 1; left: 51%; top: 30%; border-radius: 50%; background: radial-gradient(circle, #FFE7A0, #F6B73C); box-shadow: 0 0 2em rgba(246, 183, 60, .6); }
.art-window i:nth-child(3) {
  left: calc(24% + .9em); right: calc(24% + .9em); bottom: calc(10% + .9em); height: 26%; background: #C8643F;
  clip-path: polygon(0 55%, 14% 25%, 28% 55%, 40% 15%, 56% 55%, 70% 30%, 84% 55%, 100% 35%, 100% 100%, 0 100%);
}
.art-doc { background: linear-gradient(140deg, #DCE4F7, #F6F7FB); }
.art-doc i:nth-child(1) { width: 44%; height: 62%; left: 12%; top: 20%; border-radius: .8em; background: #fff; box-shadow: 0 1em 2em rgba(21, 32, 58, .14); transform: rotate(-6deg); }
.art-doc i:nth-child(1)::before { content: ""; position: absolute; inset: 16% 12% 12%; background: repeating-linear-gradient(180deg, #E3E8F5 0 .3em, transparent .3em 1.3em); }
.art-doc i:nth-child(2) { width: 38%; height: 50%; left: 46%; top: 36%; border-radius: .8em; background: #fff; box-shadow: 0 1em 2em rgba(21, 32, 58, .16); transform: rotate(5deg); }
.art-doc i:nth-child(2)::before { content: ""; position: absolute; left: 12%; right: 12%; top: 12%; height: 14%; border-radius: .4em; background: #2D4BA0; }
.art-doc i:nth-child(2)::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 12%; height: 48%;
  background: linear-gradient(90deg, #C9D3EE 0 26%, transparent 26% 37%, #2D4BA0 37% 63%, transparent 63% 74%, #E8B93A 74% 100%);
  clip-path: polygon(0 45%, 26% 45%, 26% 100%, 37% 100%, 37% 8%, 63% 8%, 63% 100%, 74% 100%, 74% 28%, 100% 28%, 100% 100%, 0 100%);
}
.art-doc i:nth-child(3) {
  width: 24%; aspect-ratio: 1; right: 7%; top: 9%; border-radius: 50%; background: conic-gradient(#E8B93A 0 32%, #2D4BA0 32% 100%);
  -webkit-mask: radial-gradient(circle, transparent 42%, #000 43%); mask: radial-gradient(circle, transparent 42%, #000 43%);
}
.art-shop { background: linear-gradient(160deg, #EEF0DC, #F9E5CF); }
.art-shop i:nth-child(1) { width: 36%; height: 46%; left: 15%; bottom: 14%; border-radius: .7em .7em 1em 1em; background: linear-gradient(160deg, #6F7D38, #4E5A24); box-shadow: 0 1em 2em rgba(42, 35, 32, .2); }
.art-shop i:nth-child(1)::before { content: ""; position: absolute; left: 28%; right: 28%; top: -24%; height: 30%; border: .45em solid #4E5A24; border-bottom: 0; border-radius: 1em 1em 0 0; }
.art-shop i:nth-child(2) {
  width: 30%; height: 30%; left: 52%; bottom: 14%; border-radius: .6em;
  background: linear-gradient(90deg, transparent 44%, #B5462A 44% 56%, transparent 56%), linear-gradient(#F3C85A, #E8A92A);
  box-shadow: 0 1em 2em rgba(42, 35, 32, .18);
}
.art-shop i:nth-child(3) { width: 15%; aspect-ratio: .8; right: 13%; top: 16%; border-radius: 40% 40% 30% 30%; background: radial-gradient(circle at 40% 35%, #FBE38E, #E0A21E); box-shadow: 0 .8em 1.6em rgba(224, 162, 30, .35); }

/* ---------- Come lavoro: il percorso ---------- */
.path-wrap { position: relative; }
.path-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.path-dots { fill: none; stroke: var(--vino); stroke-opacity: .5; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: .5 11; }
.path-reveal { fill: none; stroke: #fff; stroke-width: 18; stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: 1; }
.steps { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.step:nth-child(even) { margin-top: 120px; }
.step-num {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px;
  border-radius: 50%; background: var(--carta);
  font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.7rem; color: var(--vino);
}
.step-num .doodle-ring { position: absolute; inset: -7px; width: calc(100% + 14px); height: calc(100% + 14px); color: var(--vino); stroke-width: 2.2; }
.step h3 { margin: 0 0 .4em; font-size: 1.45rem; }
.step p { margin: 0; color: var(--inchiostro-2); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step, .step:nth-child(even) { position: relative; margin-top: 0; padding: 0 0 40px 92px; min-height: 104px; }
  .step-num { position: absolute; left: 0; top: 0; }
}

/* ---------- Promesse: la lettera ---------- */
.letter {
  position: relative; max-width: 780px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) clamp(24px, 6vw, 72px);
  border-radius: 4px; background: var(--bianco);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04), 0 40px 70px -50px rgba(43, 27, 30, .65);
  transform: rotate(-.6deg);
}
.letter::before { content: ""; position: absolute; top: -13px; left: 36px; width: 96px; height: 26px; background: var(--nastro); transform: rotate(-4deg); }
.letter h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.checks li { display: flex; align-items: flex-start; gap: 16px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.45; }
.doodle-check { width: 30px; height: 24px; flex: none; margin-top: 2px; color: var(--vino); stroke-width: 3.2; }
.checks li:nth-child(2) .doodle-check { --dd: .15s; }
.checks li:nth-child(3) .doodle-check { --dd: .3s; }
.checks li:nth-child(4) .doodle-check { --dd: .45s; }
.checks li:nth-child(5) .doodle-check { --dd: .6s; }
.signature { display: inline-flex; align-items: center; gap: 8px; margin: 32px 0 0; font-family: var(--serif); font-style: italic; font-size: 2.2rem; color: var(--vino); }
.doodle-star { width: 34px; height: 34px; color: var(--senape); stroke-width: 2.4; --dd: .8s; }

/* ---------- Lavori ---------- */
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.work { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--bianco); box-shadow: 0 1px 1px rgba(0, 0, 0, .04), 0 30px 50px -40px rgba(43, 27, 30, .65); }
.work-media { position: relative; height: clamp(260px, 30vw, 360px); display: flex; justify-content: center; align-items: flex-start; gap: 6%; padding-top: 28px; overflow: hidden; background: var(--tint); }
.work-taska { --tint: #ECE9FA; }
.work-brindoo { --tint: #FBE6DF; }
.work-media .phone { width: 34%; flex: none; }
.work-media .phone:first-child { transform: rotate(-5deg) translateY(10%); }
.work-media .phone:last-child { transform: rotate(4deg) translateY(22%); }
.work-body { flex: 1; display: flex; flex-direction: column; padding: 26px 28px 30px; }
.work-id { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.work-icon { width: 56px; height: 56px; flex: none; border-radius: 13px; box-shadow: 0 0 0 1px rgba(43, 27, 30, .08); }
.work-type { margin: 0 0 2px; font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--vino); }
.work-id h3 { margin: 0; font-size: 1.9rem; }
.work-body > p { color: var(--inchiostro-2); }
.work-body .link-more { margin-top: auto; }
@media (max-width: 800px) { .works { grid-template-columns: 1fr; } }

/* ---------- Domande ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(32px, 6vw, 96px); }
.faq-head { position: sticky; top: calc(var(--header) + 32px); }
.faq { border-top: 1px dashed rgba(43, 27, 30, .24); }
.faq details { border-bottom: 1px dashed rgba(43, 27, 30, .24); }
.faq summary {
  position: relative; padding: 24px 48px 24px 0; list-style: none; cursor: pointer;
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.2rem, 1.9vw, 1.45rem); transition: color .2s;
}
.faq summary:hover { color: var(--vino); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  background:
    linear-gradient(var(--vino), var(--vino)) center / 16px 2px no-repeat,
    linear-gradient(var(--vino), var(--vino)) center / 2px 16px no-repeat;
  transition: transform .4s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { max-width: 60ch; margin: 0; padding: 0 0 24px; font-size: 1.06rem; color: var(--inchiostro-2); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
}

/* ---------- Contatti ---------- */
.contact { background-color: var(--vino); background-image: var(--grain); color: var(--carta); }
.contact .label { color: var(--oro-chiaro); }
.contact h2 em { color: var(--oro-chiaro); }
.contact .lead { color: rgba(251, 246, 236, .84); }
.contact a:not(.btn) { color: var(--postit); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; gap: clamp(32px, 6vw, 88px); }
.me { display: flex; align-items: center; gap: 14px; margin: 30px 0; }
.me img { width: 64px; height: 64px; flex: none; border-radius: 50%; object-fit: cover; object-position: 55% 22%; border: 3px solid rgba(251, 246, 236, .92); }
.me p { display: flex; flex-direction: column; margin: 0; }
.me strong { font-family: var(--serif); font-size: 1.2rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 84px 1fr; align-items: baseline; gap: 12px; }
.contact-list span { font-family: var(--brand); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(251, 246, 236, .62); }
.contact-list a { font-weight: 600; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { padding: clamp(22px, 4vw, 40px); border-radius: 14px; background: var(--bianco); color: var(--inchiostro); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.contact .form a:not(.btn) { color: var(--vino); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-size: .95rem; font-weight: 600; }
.opt { font-weight: 400; color: var(--inchiostro-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid #D9CBB6; border-radius: 10px;
  background: #fff; color: var(--inchiostro); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field textarea::placeholder { font-family: var(--serif); font-style: italic; color: var(--matita); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--vino); box-shadow: 0 0 0 4px rgba(122, 31, 43, .14); }
.form-note { font-size: .88rem; color: var(--inchiostro-2); }
.form .btn { width: 100%; }
@media (min-width: 560px) { .form .btn { width: auto; } }
.form-status { min-height: 1.6em; margin: 14px 0 0; font-weight: 600; }
.form-status[data-state="ok"] { color: #2F6B3A; }
.form-status[data-state="error"] { color: #A32020; }

/* ---------- Piè di pagina ---------- */
.site-footer { padding: 56px 0 40px; background-color: var(--vino-notte); background-image: var(--grain); color: rgba(251, 246, 236, .72); }
.footer-inner { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr auto; align-items: center; } }
.footer-brand img { height: 72px; width: auto; margin: -14px 0 -8px -18px; }
.footer-brand p { margin: 4px 0 0; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--carta); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer-nav a { color: var(--carta); text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: var(--oro-chiaro); text-decoration: underline wavy var(--senape); text-underline-offset: 5px; }
.footer-legal { grid-column: 1 / -1; margin: 0; padding-top: 24px; border-top: 1px dashed rgba(251, 246, 236, .2); font-size: .85rem; color: rgba(251, 246, 236, .55); }

/* ---------- Pagina Chi sono (CV) ---------- */
.cv-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(36px, 5vw, 64px); }
.cv-hero-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: center; gap: clamp(36px, 6vw, 88px); }
.polaroid-lg { max-width: 400px; justify-self: center; transform: rotate(-2deg); }
.cv-name { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 0 0 .35em; }
.cv-name .hl { color: var(--inchiostro); font-style: normal; }
.cv-role { margin: 0 0 1.1em; font-family: var(--brand); font-weight: 500; font-size: 1.02rem; letter-spacing: .02em; color: var(--vino); }
.cv-intro > p:not(.label):not(.cv-role):not(.lead) { color: var(--inchiostro-2); max-width: 36em; }
.cv-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cv-facts { padding: 0 0 clamp(24px, 4vw, 40px); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.facts li { padding: 16px 18px; border: 1px solid var(--linea); border-radius: 12px; background: var(--bianco); font-family: var(--serif); font-size: 1.08rem; line-height: 1.3; }
.facts span { display: block; margin-bottom: 6px; font-family: var(--brand); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--vino); }
.cv-grid { display: grid; grid-template-columns: minmax(0, .45fr) minmax(0, 1.55fr); align-items: start; gap: clamp(24px, 5vw, 72px); }
.cv-grid > h2 { position: sticky; top: calc(var(--header) + 24px); font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 30px; border-left: 2px dashed rgba(122, 31, 43, .3); }
.timeline li { position: relative; padding: 0 0 36px; }
.timeline li::before { content: ""; position: absolute; left: -38px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--senape); box-shadow: 0 0 0 5px var(--carta); }
.tl-when { font-family: var(--brand); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--vino); }
.timeline h3 { margin: 6px 0 4px; font-size: 1.45rem; }
.tl-where { margin: 0 0 8px; font-family: var(--serif); font-style: italic; color: var(--matita); }
.timeline p { color: var(--inchiostro-2); }
.cv-more { font-family: var(--serif); font-style: italic; color: var(--inchiostro-2); }
.certs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.certs-list li { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; padding: 22px 24px; border: 1px solid var(--linea); border-radius: 14px; background: var(--bianco); }
.cert-code { grid-row: span 2; align-self: start; padding: 6px 10px; border-radius: 8px; background: var(--vino); color: var(--carta); font-family: var(--brand); font-weight: 700; font-size: .88rem; }
.certs-list h3 { margin: 0; font-size: 1.2rem; }
.certs-list p { margin: 0; font-size: .95rem; color: var(--inchiostro-2); }
.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.skill-group h3 { margin: 0 0 12px; font-size: 1.25rem; }
.projects { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.projects li { display: flex; align-items: flex-start; gap: 18px; padding: 20px; border: 1px solid var(--linea); border-radius: 14px; background: var(--bianco); }
.projects img { width: 56px; height: 56px; flex: none; border-radius: 13px; box-shadow: 0 0 0 1px rgba(43, 27, 30, .08); }
.projects h3 { margin: 0 0 4px; font-size: 1.3rem; }
.projects p { margin: 0 0 8px; color: var(--inchiostro-2); }
.cv-end { padding-top: 24px; }
.cv-end .postit-wide { margin-top: 0; }
@media (max-width: 860px) {
  .cv-hero-grid, .cv-grid { grid-template-columns: 1fr; }
  .polaroid-lg { max-width: 300px; }
  .cv-grid > h2 { position: static; }
  .facts, .skills { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .facts, .skills { grid-template-columns: 1fr; } }

/* ---------- Pagine testuali e 404 ---------- */
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.prose h2 { margin-top: 2em; font-size: 1.45rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.muted { color: var(--inchiostro-2); }
.notfound { min-height: 100vh; display: grid; place-items: center; padding-block: 48px; text-align: center; }
.notfound .brand img { height: 72px; width: auto; margin: 0 auto 32px; }
.notfound h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.notfound .lead { margin-inline: auto; }

/* ---------- Stampa (CV in PDF) ---------- */
@media print {
  .site-header, .site-footer, .cv-cta, .cv-end, .skip-link { display: none !important; }
  body, .section-alt { background: #fff !important; }
  .section, .cv-hero, .cv-facts { padding: 14px 0 !important; }
  .js [data-reveal] { opacity: 1 !important; translate: none !important; }
  .polaroid { max-width: 180px; box-shadow: none; transform: none; border: 1px solid #ddd; }
  .polaroid::before { display: none; }
  .cv-grid { grid-template-columns: 1fr; }
  .cv-grid > h2 { position: static; }
  .facts li, .certs-list li, .projects li { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; translate: none; }
  .js .doodle { stroke-dashoffset: 0; }
}


/* ======================================================================
   v4: offerta chiara, fiducia, pulsanti nei punti giusti
   ====================================================================== */
.section-alt .step-num { background: var(--carta-2); }
.cta-reassure { margin: 14px 0 0; font-size: .9rem; color: var(--inchiostro-2); }
.todo a { display: flex; align-items: center; gap: 14px; width: 100%; color: inherit; text-decoration: none; }
.todo a:hover { color: var(--vino); text-decoration: underline wavy var(--senape); text-underline-offset: 5px; }

/* Barra di fiducia e settori */
.trust { padding: 8px 0 clamp(40px, 6vw, 64px); }
.trust-list {
  list-style: none; margin: 0 0 28px; padding: 18px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px;
  border-top: 1px dashed rgba(43, 27, 30, .24); border-bottom: 1px dashed rgba(43, 27, 30, .24);
}
.trust-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; line-height: 1.4; }
.trust-list .doodle-check { width: 24px; height: 20px; flex: none; margin-top: 1px; color: var(--vino); stroke-width: 3.2; }
.trust-list li:nth-child(2) .doodle-check { --dd: .15s; }
.trust-list li:nth-child(3) .doodle-check { --dd: .3s; }
.trust-list li:nth-child(4) .doodle-check { --dd: .45s; }
.who-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; }
.who-row .label { margin: 0; }
.tags-links a { display: block; color: inherit; text-decoration: none; transition: color .2s; }
.tags-links li { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.tags-links li:hover { transform: rotate(0deg) translateY(-2px); box-shadow: 0 10px 18px -12px rgba(43, 27, 30, .6); }
.tags-links li:hover a { color: var(--vino); }
@media (max-width: 900px) { .trust-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust-list { grid-template-columns: 1fr; padding: 14px 0; } }

/* Ti suona familiare: costo del problema e invito */
.problems-cost { max-width: 40em; margin: 44px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1.8vw, 1.35rem); color: var(--vino); }
.problems-after { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 18px; }
.problems-after p { margin: 0; max-width: 34em; font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.45; }
.quotes-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .quotes-3 { grid-template-columns: 1fr; } }

/* Servizi: offerta d'ingresso + aggiunte */
.services-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.services-grid-single { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: center; }
.offer {
  position: relative; padding: clamp(26px, 4vw, 44px); border-radius: 16px; background: var(--bianco);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04), 0 30px 60px -40px rgba(43, 27, 30, .65);
  border: 2px solid var(--vino);
}
.offer-tag {
  display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px; background: var(--postit);
  font-family: var(--brand); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--vino);
}
.offer h2, .offer h3 { margin: 0 0 .4em; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.offer > p { color: var(--inchiostro-2); }
.offer-list { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 10px; }
.offer-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 1.02rem; line-height: 1.4; }
.offer-list .doodle-check { width: 26px; height: 21px; flex: none; margin-top: 1px; color: var(--vino); stroke-width: 3.2; }
.offer-list li:nth-child(2) .doodle-check { --dd: .12s; }
.offer-list li:nth-child(3) .doodle-check { --dd: .24s; }
.offer-list li:nth-child(4) .doodle-check { --dd: .36s; }
.offer-list li:nth-child(5) .doodle-check { --dd: .48s; }
.offer-list li:nth-child(6) .doodle-check { --dd: .6s; }
.offer-meta { margin: 0 0 20px; font-family: var(--serif); font-style: italic; color: var(--vino) !important; }
.offer-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.addons-title { margin: 0 0 4px; font-family: var(--brand); font-weight: 500; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--vino); }
.addons .services { grid-template-columns: 1fr; gap: 0; }
.addons .svc { display: block; padding: 18px 0; }
.addons .svc h3 { font-size: 1.25rem; margin-bottom: .25em; }
.addons .svc p { margin-bottom: .35em; }
@media (max-width: 900px) { .services-grid, .services-grid-single { grid-template-columns: minmax(0, 1fr); } }

/* Riquadri di invito a metà pagina */
.cta-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px;
  margin-top: clamp(32px, 5vw, 56px); padding: 22px 26px; border-radius: 14px;
  background: var(--postit); box-shadow: 0 16px 28px -22px rgba(43, 27, 30, .6); transform: rotate(-.4deg);
}
.cta-box p { margin: 0; max-width: 40em; font-family: var(--serif); font-size: 1.12rem; line-height: 1.45; }
.cta-box strong { font-weight: 600; color: var(--vino); }
.cta-box-sketch { background: var(--bianco); border: 2px dashed rgba(122, 31, 43, .35); box-shadow: none; transform: rotate(.3deg); }
.services-grid-single .cta-box { margin-top: 0; flex-direction: column; align-items: flex-start; }

/* Come lavoro: promesse brevi e invito */
.promises { margin-top: 44px; }
.promises-title { margin: 0 0 12px; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--vino); }
.checks-inline { margin-top: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 28px; }
.checks-inline li { font-size: 1.02rem; }
.checks-inline .doodle-check { width: 26px; height: 21px; }
@media (max-width: 900px) { .checks-inline { grid-template-columns: 1fr; } }
.process-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; margin-top: 40px; }
.postit-inline { position: relative; right: auto; bottom: auto; max-width: 420px; margin: 0; transform: rotate(-1.2deg); }
.postit-inline strong { display: inline; margin: 0 .3em 0 0; font-family: var(--serif); font-size: inherit; letter-spacing: 0; text-transform: none; }

/* Lavori + programma primi clienti */
.works-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.works-3 .work-media { height: clamp(200px, 20vw, 250px); padding-top: 22px; }
.works-3 .work-id h3 { font-size: 1.6rem; }
.first-clients {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 30px 28px; border-radius: 20px;
  background: var(--postit); box-shadow: 0 30px 50px -40px rgba(43, 27, 30, .65); transform: rotate(.6deg);
}
.first-clients::before { content: ""; position: absolute; top: -12px; left: 50%; width: 96px; height: 26px; margin-left: -48px; background: var(--nastro); transform: rotate(-3deg); }
.first-clients h3 { margin: 0 0 .4em; font-size: 1.7rem; }
.first-clients p:not(.label) { color: var(--inchiostro-2); }
.first-clients .btn { margin-top: auto; }
@media (max-width: 1000px) { .works-3 { grid-template-columns: 1fr 1fr; } .first-clients { grid-column: 1 / -1; } }
@media (max-width: 700px) {
  .works-3 { grid-template-columns: 1fr; }
  .works-3 .work-media { height: 150px; padding-top: 16px; }
  .works-3 .work-body { padding: 22px; }
}

/* Contatti: cosa succede dopo l'invio */
.next-steps { margin-top: 30px; padding-top: 22px; border-top: 1px dashed rgba(251, 246, 236, .3); }
.next-steps-title { margin: 0 0 14px; font-family: var(--brand); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(251, 246, 236, .62); }
.next-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: passo; }
.next-steps li { position: relative; padding-left: 40px; line-height: 1.45; counter-increment: passo; }
.next-steps li::before {
  content: counter(passo); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 26px; height: 26px;
  border: 1.5px solid var(--senape); border-radius: 50%; font-family: var(--serif); font-style: italic; font-size: .92rem; color: var(--senape);
}
.field-opt { font-weight: 400; color: var(--inchiostro-2); }

/* Domande: link "altre domande" */
.faq-more { margin: 22px 0 0; }

/* Modulo: rassicurazione prima del pulsante */
.form-reassure { margin: 4px 0 12px; font-family: var(--serif); font-style: italic; color: var(--vino); }
.form-note { margin-top: 12px; }

/* Piè di pagina: due colonne di link */
.footer-cols { display: grid; gap: 14px; }
.footer-nav-sectors a { color: rgba(251, 246, 236, .72); font-size: .9rem; }

/* Pagine per settore: apertura con il sito dimostrativo */
.hero-sector .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero-devices-wrap { position: relative; }
.ex-devices-hero { width: 100%; padding-bottom: 8%; }
.ex-devices-hero .browser { width: 88%; }
.ex-devices-hero .phone { width: 24%; }
.sketch-note { margin: 10px 0 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: .95rem; color: var(--matita); }
@media (max-width: 860px) { .hero-sector .hero-grid { grid-template-columns: 1fr; } }

/* Barra fissa con il pulsante, solo su telefono */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 246, 236, .95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--linea); box-shadow: 0 -12px 24px -18px rgba(43, 27, 30, .5);
  transform: translateY(110%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s;
}
.mobile-cta .btn { min-height: 46px; }
.mobile-cta .btn-primary { flex: 1; }
.mobile-cta.is-visible { transform: none; visibility: visible; }
@media (max-width: 900px) {
  .mobile-cta { display: flex; }
  body.has-mobile-cta { padding-bottom: 72px; }
}
@media print { .mobile-cta { display: none !important; } }

/* ======================================================================
   Telefono: pagina più corta, stessi contenuti (schede da scorrere di lato)
   ====================================================================== */
@media (max-width: 700px) {
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 26px; }
  .hero { padding: 28px 0 40px; }
  .hero .postit, .notepad-foot { display: none; }
  .hero-side { margin: 0 auto; }
  .notepad { padding-top: 22px; padding-bottom: 12px; }
  .trust { padding-bottom: 24px; }
  .trust-list { grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-bottom: 18px; }
  .trust-list li { font-size: .86rem; gap: 8px; }
  .who-row { display: block; }
  .who-row .label { margin-bottom: 8px; }
  .tags-links, .quotes, .addons .services, .works-3 {
    display: flex; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .tags-links::-webkit-scrollbar, .quotes::-webkit-scrollbar, .addons .services::-webkit-scrollbar, .works-3::-webkit-scrollbar { display: none; }
  .tags-links { gap: 10px; padding-block: 6px 12px; scroll-snap-type: x proximity; }
  .tags-links li { flex: none; }
  .quotes, .addons .services, .works-3 { gap: 16px; padding-block: 18px 22px; }
  .quotes > *, .addons .services > *, .works-3 > * { flex: 0 0 84%; scroll-snap-align: start; }
  .quote p { font-size: 1.12rem; }
  .problems-cost { margin-top: 18px; }
  .addons .svc { padding: 18px; border: 1px solid var(--linea); border-radius: 14px; background: var(--bianco); }
  .first-clients { grid-column: auto; }
  .stage-features { display: none; }
  .ex-devices .phone { width: min(58vw, 240px); }
  .ex-controls { margin-bottom: 18px; }
  .cta-box { padding: 18px; margin-top: 26px; }
  .step, .step:nth-child(even) { padding-bottom: 26px; min-height: 0; }
  .promises { margin-top: 20px; }
  .postit-inline { display: none; }
  .process-cta { margin-top: 24px; }
  .faq summary { padding: 18px 40px 18px 0; }
  .faq details p { padding-bottom: 18px; }
  .site-footer { padding: 40px 0 28px; }
}
@media (max-width: 700px) {
  .path-line { display: none; }
  .steps {
    display: flex; overflow-x: auto; gap: 16px; margin-inline: calc(-1 * var(--gutter)); padding: 8px var(--gutter) 18px;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .steps::-webkit-scrollbar { display: none; }
  .steps > .step, .steps > .step:nth-child(even) {
    flex: 0 0 78%; scroll-snap-align: start; margin: 0; padding: 20px 18px; min-height: 0;
    border: 1px solid var(--linea); border-radius: 14px; background: var(--bianco);
  }
  .step-num { position: relative; left: auto; top: auto; width: 52px; height: 52px; margin-bottom: 12px; font-size: 1.4rem; }
  .section-alt .step-num { background: var(--bianco); }
}
.hero-sector .hero-title { font-size: clamp(2.2rem, 3.9vw, 3.5rem); }
