@font-face {
  font-family: Inter;
  src: url("assets/fonts/inter-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #141414;
  --muted: #585858;
  --line: #c7c7c2;
  --paper: #fff;
  --quiet: #f4f4f2;
  --orange: #b83807;
  --accent: #bd3500;
  --frame: min(1136px, calc(100% - 2 * clamp(20px, 5.65vw, 72px)));
  --radius: 28px;
  --radius-sm: 14px;
  --radius-control: 20px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, sans-serif;
}
/* Shared continuous corners for every rounded surface. */
* { box-sizing: border-box; corner-shape: squircle; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 16px; line-height: 1.5; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 550; font-optical-sizing: auto; }
h1, h2 { font-size: clamp(36px, 5vw, 62px); line-height: 1.06; letter-spacing: -.043em; text-wrap: balance; }
h3 { font-size: clamp(19px, 2vw, 23px); line-height: 1.15; letter-spacing: -.025em; }
p { color: var(--muted); }
p + p { margin-top: 8px; }
.intro { margin-top: 18px; max-width: 62ch; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .36; cursor: default; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.slide-heading:focus { outline: none; }

.controls {
  position: sticky;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-inline: clamp(16px, 3vw, 40px);
  background: rgb(255 255 255 / .95);
}
.controls { bottom: 0; min-height: 58px; border-top: 1px solid var(--line); }
.controls > span, .pager output { font: 11px/1.4 Inter, system-ui, sans-serif; color: var(--muted); }
.pager { display: flex; align-items: center; gap: 8px; }
.pager output { min-width: 7ch; text-align: center; white-space: nowrap; }
.pager button { width: 44px; height: 44px; border: 0; border-radius: var(--radius-control); background: var(--quiet); color: var(--ink); }
.pager button:not(:disabled) { background: var(--ink); color: white; }
.pager button:hover:not(:disabled) { background: #383838; color: white; }

.deck body { display: flex; flex-direction: column; min-height: 100dvh; }
main { flex: 1; display: grid; }
main > section { display: grid; align-items: center; min-width: 0; }
.slide-layout { width: var(--frame); margin-inline: auto; padding-block: clamp(32px, 6vh, 76px); min-width: 0; }
.cover .slide-layout { display: grid; gap: clamp(24px, 4vh, 48px); }
.cover h1 { max-width: 17ch; font-size: clamp(42px, 6.2vw, 84px); }
.cover-brands { display: flex; align-items: center; gap: clamp(20px, 4vw, 44px); }
.cover-brands img:first-child { width: clamp(108px, 13vw, 164px); }
.cover-brands img:last-child { width: clamp(90px, 11.5vw, 140px); }
.cover-actions { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 18px; margin-top: 28px; }
.cover-copy p { max-width: 29ch; margin-top: 28px; }
.button-primary { display: inline-block; border-radius: var(--radius-control); padding: 12px 22px; background: var(--accent); color: white; text-decoration: none; }
.button-primary:hover { background: var(--orange); }
.cover-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; border-top: 1px solid var(--line); padding-top: 18px; margin: 0; font: 12px/1.4 Inter, system-ui, sans-serif; }
.cover-meta div { display: flex; gap: 6px; }
.cover-meta dt { color: var(--muted); }
.cover-meta dd { margin: 0; }

.divider h2 { font-size: clamp(42px, 6.1vw, 82px); }


.hero .slide-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.manual-copy h2 + p { margin-top: 18px; }
.manual-art { display: grid; }
.manual-node { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); }
.manual-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--quiet); }
.manual-icon img { width: 25px; }
.manual-transfer { display: flex; align-items: center; gap: 10px; padding-left: 17px; color: var(--muted); font: 12px/1.4 Inter, system-ui, sans-serif; }
.manual-direction { display: grid; width: 40px; justify-items: center; }
.manual-direction img { width: 18px; transform: rotate(90deg); }
.manual-screen p { margin-top: 3px; font-size: 14px; }
.manual-formats { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; margin: 8px 0 0; padding: 0; }
.manual-formats li { display: flex; align-items: center; gap: 4px; font: 11px/1.5 Inter, system-ui, sans-serif; padding: 3px 6px; background: var(--quiet); border-radius: var(--radius-sm); }
.manual-formats img { width: 14px; height: 14px; }

.grid, .split { display: grid; gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(22px, 5vh, 44px); }
:is(.management-table, .project-faq) {
  width: 100%;
  margin-top: clamp(28px, 6vh, 60px);
  border-collapse: collapse;
  border-block: 3px solid var(--ink);
  text-align: left;
}
:is(.management-table, .project-faq) th,
:is(.management-table, .project-faq) td {
  padding: clamp(14px, 2.8vh, 28px) clamp(8px, 2.4vw, 32px) clamp(14px, 2.8vh, 28px) 0;
  vertical-align: top;
}
:is(.management-table, .project-faq) thead th {
  padding-block: 11px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 650;
}
:is(.management-table, .project-faq) tbody tr + tr { border-top: 1px solid var(--line); }
:is(.management-table, .project-faq) th:first-child { width: 26%; }
:is(.management-table, .project-faq) tbody th {
  font-size: clamp(14px, 2.1vw, 25px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.025em;
}
:is(.management-table, .project-faq) td {
  font-size: clamp(13px, 1.55vw, 17px);
  line-height: 1.45;
}
.project-faq { margin-top: clamp(20px, 4vh, 44px); }
.project-faq th:first-child { width: 36%; }
.project-faq tbody :is(th, td) { padding-block: clamp(12px, 2.2vh, 22px); }
.project-faq tr > :last-child { padding-right: 0; }

.management-table tr > :last-child {
  width: 23%;
  padding-right: 0;
  text-align: right;
}
.management-table strong {
  display: block;
  font-size: clamp(14px, 2.55vw, 34px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}
.management-table td span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid article { min-width: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.grid article > img { width: 100%; height: clamp(62px, 9vh, 96px); object-fit: contain; padding: 20px; display: block; background: var(--quiet); margin-bottom: 14px; }
.grid article:nth-child(2) > img { background: #ecf3fa; }
.grid article:nth-child(3) > img { background: #f4ede6; }
article h3 + p { margin-top: 6px; }
.badge { font: 11px/1.4 Inter, system-ui, sans-serif; color: var(--muted); }
#dettagli-progetto article { padding-right: clamp(0px, 1vw, 16px); }
#dettagli-progetto article p { font-size: 15px; }

#investimento .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(24px, 5vw, 64px); margin-top: 24px; }
.pricing .panel { min-width: 0; padding: clamp(18px, 2.5vw, 28px); border: 1px solid var(--line); border-radius: var(--radius); }
.pricing .dark { position: relative; background: #242322; border-color: #242322; color: white; box-shadow: 0 9px 0 -4px #e6caba, 0 18px 26px -15px #30201f80; }
.pricing .dark p { color: #e3e0de; }
.discount-badge {
  position: absolute;
  z-index: 1;
  top: -18px;
  right: -18px;
  display: grid;
  place-content: center;
  width: 162px;
  height: 72px;
  border: 2px solid #fff;
  border-radius: var(--radius-sm);
  background: #141414;
  color: #fff;
  text-align: center;
  line-height: 1.02;
  transform: rotate(7deg);
  box-shadow: 0 10px 22px rgb(0 0 0 / .22);
}
.discount-badge strong { font-size: 25px; font-weight: 750; letter-spacing: -.035em; }
.discount-badge span { margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: .11em; }
@keyframes discount-land {
  0% { opacity: 0; transform: translateY(-100vh) rotate(-12deg) scale(.92); }
  55% { opacity: 1; transform: translateY(10px) rotate(10deg) scale(1.03); }
  76% { transform: translateY(-5px) rotate(5deg) scale(.99); }
  100% { opacity: 1; transform: translate(0, 0) rotate(7deg) scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  #investimento.active .discount-badge { animation: discount-land 1.15s cubic-bezier(.32,.05,.35,1) .55s both; }
}
@media screen and (max-width: 620px) {
  .discount-badge { right: -5px; width: 130px; height: 62px; }
  .discount-badge strong { font-size: 20px; }
}
.list-price { margin-top: 12px; font-size: 13px; }
.price { font-size: clamp(52px, 7vw, 90px); font-weight: 550; line-height: 1.03; letter-spacing: -.06em; }
.offer-price { margin: 6px 0 0; font-size: 14px; }
.pricing-column { min-width: 0; }
.pricing-notes { list-style: none; margin: 22px 0 0; padding: 0; }
.pricing-notes li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.calculator-header { display: flex; align-items: center; gap: 9px; }
.calculator-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.calculator-controls label { display: block; font-size: 14px; font-weight: 600; }
.calculator-controls input { width: 100%; min-height: 44px; margin-top: 4px; padding: 8px 13px; border: 1px solid #aaa; border-radius: var(--radius-control); background: var(--quiet); color: var(--ink); }
.order-presets { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.order-presets button { min-height: 40px; padding: 5px 9px; border-radius: var(--radius-control); border: 1px solid var(--line); background: var(--paper); font: 12px/1.4 Inter, system-ui, sans-serif; }
.order-presets button[aria-pressed="true"] { background: var(--ink); color: white; border-color: var(--ink); }
.calculator-result { display: grid; align-content: center; gap: 4px; min-width: 0; padding: 13px; border-radius: var(--radius-sm); background: var(--quiet); font-size: 12px; }
.calculator-result output { font-size: clamp(17px, 2vw, 26px); font-weight: 600; line-height: 1.15; overflow-wrap: anywhere; }
.calculator-result .estimate-error { font-size: 14px; }
.estimate-method { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.estimate-method p { margin-top: 6px; line-height: 1.45; }
.estimate-method a { text-underline-offset: 3px; }
.estimate-method a:hover { color: var(--orange); }

@media screen and (max-width: 830px) {
  .hero .slide-layout, #investimento .pricing { grid-template-columns: 1fr; }
}
@media screen and (max-width: 620px) {
  .cover-actions { align-items: start; flex-direction: column; }
  .grid, .split { grid-template-columns: 1fr; }
  .controls { gap: 6px; }
}
@media screen and (max-width: 380px) {
  .calculator-body { grid-template-columns: 1fr; }
}
@media print {
  .controls, .button-primary, .order-presets { display: none !important; }
  main, .deck body { display: block; }
  .deck main > section[hidden] { display: grid !important; }
  main > section { break-after: page; min-height: 85vh; print-color-adjust: exact; }
}

/* Product previews, resource cards, and compact feature panels. */
.button-primary { background: #bd3500; }
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafaf9;
}

.manual-node.manual-screen { border: 0; background: #25292d; color: white; }
.manual-screen p { color: #e5e6ea; }

.schedule-chart {
  --phase-column: 35%;
  --chart-gap: clamp(20px, 4vw, 56px);
  margin-top: clamp(28px, 5vw, 56px);
}
.schedule-axis,
.schedule-phase {
  display: grid;
  grid-template-columns: var(--phase-column) minmax(0, 1fr);
  column-gap: var(--chart-gap);
  align-items: center;
}
.schedule-axis {
  grid-template-columns: calc(var(--phase-column) + var(--chart-gap)) repeat(6, minmax(0, 1fr));
  column-gap: 0;
  padding-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.schedule-axis span:not(:first-child) { text-align: center; }
.schedule-phases { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.schedule-phase { border-top: 1px solid var(--line); }
.schedule-phase > div:first-child { padding-block: 18px; }
.schedule-phase p { margin-top: 5px; font-size: 14px; }
.schedule-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  place-items: center stretch;
  align-self: stretch;
  position: relative;
  border-right: 1px solid var(--line);
}
.schedule-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: inherit;
  pointer-events: none;
}
.schedule-grid > span { border-inline-start: 1px solid var(--line); }
.schedule-bar {
  position: relative;
  grid-column: var(--start) / var(--end);
  margin-inline: 3px;
  padding: 8px 2px;
  border-radius: var(--radius-sm);
  background: #000;
  color: white;
  text-align: center;
  white-space: nowrap;
  font-size: clamp(10px, 1.15vw, 13px);
  font-weight: 600;
}

@media screen and (max-width: 760px) {
  .schedule-axis { display: none; }
  .schedule-phase { grid-template-columns: minmax(0, 1fr); padding-bottom: 12px; }
  .schedule-phase > div:first-child { padding-block: 12px 8px; }
}

#gestione .grid { grid-template-columns: 1fr .82fr 1fr; gap: 12px; }
#gestione article {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border: 0;
  min-height: 190px;
  border-radius: var(--radius);
  background: #ebf1fa;
}
#gestione article:nth-child(2) { background: #f1eee9; }
#gestione article:nth-child(3) { background: #f9eee4; }
#gestione article > img { align-self: start; width: 44px; height: 44px; padding: 9px; border-radius: var(--radius-sm); background: white; }

#avvio .grid { grid-template-columns: 1fr; gap: 0; width: 100%; }
#avvio article {
  display: grid;
  grid-template-columns: 46px minmax(140px, .8fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}
#avvio .step-number { display: block; font-size: 28px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
#avvio article p { margin: 0; }

.calculator-header { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.calculator-result { background: var(--quiet); }

@media screen and (max-width: 620px) {
  #gestione .grid { grid-template-columns: 1fr; }
  #gestione article { min-height: auto; }
  #avvio article { grid-template-columns: 46px minmax(0, 1fr); gap: 4px 12px; }
  #avvio .step-number { grid-row: span 2; }
  #avvio article p { grid-column: 2; }
}

.closing-slide .slide-layout {
  display: grid;
  gap: clamp(24px, 6vh, 60px);
}
.contact-signature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .65fr);
  align-items: center;
  column-gap: clamp(24px, 5vw, 72px);
  row-gap: 20px;
  padding-block: clamp(20px, 4vh, 40px);
  border-block: 1px solid var(--line);
}
.contact-identity {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
  min-width: 0;
}
.contact-identity p { margin-top: 5px; }
.contact-portrait {
  position: relative;
  width: clamp(60px, 8vw, 104px);
  aspect-ratio: 1;
  overflow: hidden;
  flex: none;
  border-radius: var(--radius);
}
.contact-portrait img { position: absolute; top: -11%; left: -140%; width: 375%; }
.contact-details { display: grid; justify-items: start; gap: 6px; min-width: 0; }
.contact-details a { overflow-wrap: anywhere; text-underline-offset: 4px; text-decoration-color: var(--line); }
.contact-details a:hover { text-decoration-color: currentColor; }
.contact-actions { justify-self: start; }
.contact-actions img { display: block; width: clamp(130px, 14vw, 180px); }

@media screen and (max-width: 620px) {
  .contact-signature { grid-template-columns: minmax(0, 1fr); }
}

.client-brands { margin-top: clamp(32px, 7vh, 64px); padding-top: 18px; border-top: 1px solid var(--line); }
.client-brands h3 { font: 12px/1.5 Inter, system-ui, sans-serif; color: var(--muted); }
.client-brands > div {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafaf9;
}
.client-brands img { width: 100%; height: 78px; padding: 20px clamp(12px, 2vw, 26px); object-fit: contain; justify-self: center; filter: grayscale(1); }
.client-brands img + img { border-left: 1px solid var(--line); }
@media screen and (max-width: 830px) {
  .client-brands > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.company-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .65fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}
.company-copy .intro { margin-bottom: 12px; }
.company-copy > p + p { margin-top: 0; color: var(--muted); }
.company-photo {
  display: block;
  width: 100%;
  height: clamp(240px, 40vh, 390px);
  object-fit: cover;
  object-position: center 38%;
  border-radius: var(--radius);
}
.company-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.company-kpis div { display: flex; flex-direction: column-reverse; gap: 5px; justify-content: flex-end; }
.company-kpis dt { font-size: 13px; color: var(--muted); }
.company-kpis dd { margin: 0; font-size: clamp(24px, 4vw, 48px); font-weight: 650; line-height: 1; }
#extendi .client-brands { margin-top: clamp(20px, 4vh, 40px); }
@media screen and (max-width: 680px) {
  .company-profile { grid-template-columns: 1fr; }
  .company-photo { height: 200px; }
}

#esigenza .slide-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 5vw, 64px);
}
.manual-copy h2 { max-width: 19ch; }
.manual-copy p { max-width: 62ch; }
.manual-art {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
  border-top: 2px solid var(--ink);
}
.manual-art > div { padding-top: 22px; }
.manual-art > div + div {
  padding-left: clamp(14px, 2vw, 26px);
  border-left: 1px solid var(--line);
}
.manual-art h3 { font-size: clamp(18px, 2.1vw, 26px); line-height: 1.15; }
.manual-art p { margin-top: 8px; font-size: 14px; }
.manual-symbol { display: block; width: 32px; height: 32px; margin-bottom: 14px; }
.manual-art .manual-formats { display: flex; flex-wrap: wrap; gap: 7px 14px; margin: 10px 0 0; padding: 0; list-style: none; }
.manual-art .manual-formats li { display: flex; align-items: center; gap: 4px; padding: 0; background: transparent; font-size: 13px; color: var(--muted); }
.manual-art .manual-formats img { width: 15px; height: 15px; }
@media screen and (max-width: 680px) {
  .manual-art { grid-template-columns: 1fr; gap: 0; }
  .manual-art > div {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: start;
    column-gap: 12px;
    padding: 12px 0;
  }
  .manual-art > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .manual-art .manual-formats { grid-column: 2; margin-top: 5px; }
  .manual-symbol { width: 26px; height: 26px; margin: 0; }
}

/* Current manual flow: consistent spacing and directional connectors. */
.manual-art {
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  border: 0;
}
.manual-art > div,
.manual-art > div + div {
  height: auto;
  min-height: 280px;
  padding: 28px;
  border: 0;
  border-radius: var(--radius);
  background: var(--quiet);
  color: var(--ink);
}
.manual-art h3 { font-size: clamp(18px, 1.65vw, 23px); line-height: 1.2; }
.manual-art > div p { color: var(--ink); line-height: 1.5; margin-top: 12px; }
.manual-art > div > img.manual-symbol { filter: none; }
.manual-art .manual-formats { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 10px 20px; margin-top: 18px; }
.manual-art .manual-formats li {
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  white-space: nowrap;
}
.manual-art .manual-formats :is(svg, img) { width: 18px; height: 18px; flex: none; }
.manual-symbol { width: 40px; height: 40px; margin-bottom: 22px; }
.manual-link { display: block; width: 24px; height: 24px; align-self: center; justify-self: center; padding: 0; }
.manual-link path { fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
@media screen and (max-width: 900px) and (min-width: 681px) {
  .manual-art { grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr) 36px minmax(0, 1fr); }
  .manual-art > div, .manual-art > div + div { padding: 20px; }
}
@media screen and (max-width: 680px) {
  .manual-art { grid-template-columns: 1fr; gap: 0; }
  .manual-art > div, .manual-art > div + div { display: block; min-height: 0; padding: 22px; }
  .manual-link { width: 24px; height: 24px; margin: 10px 0; transform: rotate(90deg); }
  .manual-symbol { width: 28px; height: 28px; margin-bottom: 14px; }
}

/* Text-first overview in a consistent Vignelli-style table. */
.summary-slide { width: var(--frame); }
.summary-slide h2 { max-width: 17ch; font-size: clamp(38px, 5.2vw, 68px); font-weight: 650; }
.summary-lead { max-width: 66ch; margin-top: clamp(14px, 2vh, 22px); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.5; }
.summary-steps { margin: clamp(26px, 5vh, 46px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.summary-steps li { display: grid; grid-template-columns: 42px minmax(150px, .82fr) minmax(0, 1.45fr); align-items: center; gap: clamp(12px, 2vw, 24px); height: 112px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.summary-icon { width: 32px; height: 32px; color: var(--accent); }
.summary-icon .icon-fill { fill: currentColor; opacity: .16; }
.summary-steps h3 { font-size: clamp(18px, 2vw, 23px); font-weight: 600; }
.summary-steps p { max-width: 54ch; font-size: clamp(14px, 1.3vw, 16px); line-height: 1.5; }
@media screen and (max-width: 620px) {
  .summary-slide { padding-block: 28px; }
  .summary-steps li { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; height: auto; min-height: 112px; padding: 17px 0; }
  .summary-steps h3, .summary-steps p { grid-column: 2; }
  .summary-steps p { margin-top: -6px; }
  .summary-icon { width: 28px; height: 28px; }
}

/* Gerarchia tipografica: una famiglia, tre pesi e tre livelli di testo. */
:root { --type-body: 16px; --type-secondary: 14px; --type-label: 12px; }
body { font-size: var(--type-body); font-weight: 400; }
h1, h2 { font-weight: 700; letter-spacing: -.035em; }
.cover h1, .divider h2 { font-size: clamp(42px, 6.2vw, 84px); }
h3, h4, :is(.management-table, .project-faq) thead th,
:is(.management-table, .project-faq) tbody th,
.management-table strong, .company-kpis dd, .price,
.calculator-controls label, .calculator-result output,
.schedule-bar { font-weight: 600; }
h3, h4 { letter-spacing: -.02em; }
.summary-slide h2 { font-size: clamp(36px, 5vw, 62px); font-weight: 700; letter-spacing: -.035em; }
.summary-steps h3 { font-weight: 600; }
.controls > span, .pager output, .cover-meta, .manual-transfer,
.manual-formats li, .badge, .client-brands h3,
:is(.management-table, .project-faq) thead th,
.order-presets button, .calculator-result, .schedule-bar {
  font-size: var(--type-label);
}
.manual-screen p, .pricing-notes li,
.calculator-controls label, .calculator-result .estimate-error,
.schedule-phase p, .manual-art p, .manual-art .manual-formats li,
.company-kpis dt, .estimate-method, .list-price {
  font-size: var(--type-secondary);
}
:is(.management-table, .project-faq) td, .summary-steps p {
  font-size: var(--type-body);
}
.management-table, .company-kpis, .schedule-axis, .schedule-bar,
.price, .calculator-result output { font-variant-numeric: tabular-nums; }

/* Sistema editoriale condiviso per tutte le tabelle e le liste a righe. */
:root {
  --rule-frame: 3px solid var(--ink);
  --rule-row: 1px solid var(--line);
  --table-row-space: clamp(14px, 2.4vh, 24px);
  --table-title-size: clamp(18px, 1.8vw, 22px);
}
.editorial-table { border-block: var(--rule-frame); }
.editorial-table :is(th, td) { padding-block: var(--table-row-space); }
.editorial-table.project-faq tbody :is(th, td) { padding-block: var(--table-row-space); }
.editorial-table thead th {
  padding-block: 10px;
  border-bottom: 1px solid var(--ink);
  font-size: var(--type-label);
  font-weight: 600;
  line-height: 1.35;
}
.editorial-table :is(tbody th, h3) {
  font-size: var(--table-title-size);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.editorial-table :is(td, p, .pricing-notes li),
.editorial-table.pricing-notes li {
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
}
.editorial-table tbody tr + tr,
.editorial-table > li + li,
#avvio .editorial-table > article + article { border-top: var(--rule-row); }
.editorial-table > li { border-bottom: 0; }
.editorial-table.summary-steps li { height: auto; min-height: 0; padding-block: var(--table-row-space); }
.editorial-table.schedule-phases .schedule-phase:first-child,
.editorial-table.pricing-notes li:first-child { border-top: 0; }
.editorial-table.schedule-phases .schedule-phase > div:first-child { padding-block: var(--table-row-space); }
.editorial-table.pricing-notes li,
#avvio .editorial-table > article { padding-block: var(--table-row-space); }
#avvio .editorial-table > article { border-top: 0; }
#avvio .editorial-table > article + article { border-top: var(--rule-row); }
.management-table strong { font-size: clamp(24px, 2.55vw, 34px); font-weight: 600; }
.management-table td span { font-size: var(--type-secondary); line-height: 1.45; }
.schedule-axis { font-size: var(--type-label); font-weight: 600; }
.schedule-track { border-right: var(--rule-row); }
.schedule-grid > span { border-inline-start: var(--rule-row); }
.contact-signature { border-block: var(--rule-frame); }
.cover-meta, .client-brands, .company-kpis, .calculator-header { border-color: var(--ink); border-width: 3px; }
.grid article { border-color: var(--line); }
.client-brands img + img { border-left: var(--rule-row); }
@media screen and (max-width: 760px) {
  .editorial-table.schedule-phases .schedule-phase { padding-block: var(--table-row-space); }
  .editorial-table.schedule-phases .schedule-phase > div:first-child { padding-block: 0 8px; }
}


/* Spatial slide transitions and progressive, reading-order disclosure. */
@media screen {
  .deck main { isolation: isolate; overflow: clip; }
  .deck main > section { grid-area: 1 / 1; position: relative; }
  .deck main > section.active { z-index: 1; }
  .deck main > section.slide-leaving { z-index: 0; pointer-events: none; }
}
.arrow-glyph { display: inline-block; pointer-events: none; }
.pager button { overflow: hidden; transition: background-color 180ms ease, color 180ms ease, box-shadow 220ms ease; }
@media (prefers-reduced-motion: no-preference) {
  .pager button:hover:not(:disabled) { box-shadow: 0 4px 14px rgb(0 0 0 / .12); }
  .order-presets button, a { transition: background-color 200ms ease, color 200ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* Color lives in the letterforms, never on slide or card surfaces. */
.text-accent { color: #df6b8d; }
.text-mesh, .mesh-surface {
  color: #b48aff;
  --mesh-base: #bc8cff;
  --mesh-one: #ff8fd1;
  --mesh-two: #d4f765;
  --mesh-three: #a778f5;
  --mesh-four: #fca1e0;
}
.text-mesh-warm {
  --mesh-base: #c596ef;
  --mesh-one: #ff9ab6;
  --mesh-two: #83baff;
  --mesh-three: #b9a0ff;
  --mesh-four: #ffba8f;
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .text-mesh {
    display: inline-block;
    padding-block: .16em .24em;
    margin-block: -.16em -.24em;
    vertical-align: baseline;
    background-image:
      url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22160%22%20height%3D%22160%22%20viewBox%3D%220%200%20160%20160%22%3E%3Cfilter%20id%3D%22n%22%20x%3D%220%22%20y%3D%220%22%20width%3D%22100%25%22%20height%3D%22100%25%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.72%22%20numOctaves%3D%223%22%20seed%3D%2217%22%20stitchTiles%3D%22stitch%22%2F%3E%3CfeColorMatrix%20type%3D%22saturate%22%20values%3D%220%22%2F%3E%3CfeComponentTransfer%3E%3CfeFuncR%20type%3D%22linear%22%20slope%3D%223%22%20intercept%3D%22-1%22%2F%3E%3CfeFuncG%20type%3D%22linear%22%20slope%3D%223%22%20intercept%3D%22-1%22%2F%3E%3CfeFuncB%20type%3D%22linear%22%20slope%3D%223%22%20intercept%3D%22-1%22%2F%3E%3CfeFuncA%20type%3D%22linear%22%20slope%3D%220.8%22%2F%3E%3C%2FfeComponentTransfer%3E%3C%2Ffilter%3E%3Cpath%20fill%3D%22%23808080%22%20filter%3D%22url%28%23n%29%22%20d%3D%22M0%200h160v160H0z%22%2F%3E%3C%2Fsvg%3E"),
      radial-gradient(ellipse at 50% 50%, var(--mesh-two) 0%, transparent 62%),
      radial-gradient(ellipse at 50% 50%, var(--mesh-four) 0%, transparent 62%),
      radial-gradient(ellipse at 50% 50%, var(--mesh-one) 0%, transparent 62%),
      radial-gradient(ellipse at 50% 50%, var(--mesh-three) 0%, transparent 62%),
      linear-gradient(var(--mesh-base), var(--mesh-base));
    background-size: 128px 128px, 180% 240%, 180% 240%, 180% 240%, 180% 240%, 100% 100%;
    background-position: 0 0, 0% 20%, 100% 80%, 20% 0%, 80% 100%, 0 0;
    background-blend-mode: soft-light, normal, normal, normal, normal, normal;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
  }
}
@media screen and (prefers-reduced-motion: no-preference) {
  .text-mesh { animation: mesh-letter-drift 2.8s ease-in-out infinite alternate; }
}
@keyframes mesh-letter-drift {
  from { background-position: 0 0, -100% 0%, 200% 100%, 0% 100%, 100% 0%, 0 0; }
  50% { background-position: 0 0, 50% 100%, 50% 0%, 150% 0%, -50% 100%, 0 0; }
  to { background-position: 0 0, 200% 0%, -100% 100%, 100% 100%, 0% 0%, 0 0; }
}
@media print, (forced-colors: active) {
  .text-mesh { background: none; color: inherit; -webkit-text-fill-color: currentColor; }
}

@property --grain-x {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}
@property --grain-y {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}
/* The price card shares the AI letterforms’ animated mesh and grain. */
#investimento .pricing .mesh-surface {
  --mesh-base: #ffffff;
  --mesh-one: #efb5df;
  --mesh-two: #ddc8fa;
  --mesh-three: #bf9bea;
  --mesh-four: #f5d9ed;
  background-color: var(--mesh-base);
    background-image:
      url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22160%22%20height%3D%22160%22%20viewBox%3D%220%200%20160%20160%22%3E%3Cfilter%20id%3D%22n%22%20x%3D%220%22%20y%3D%220%22%20width%3D%22100%25%22%20height%3D%22100%25%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.65%22%20numOctaves%3D%222%22%20seed%3D%2217%22%20stitchTiles%3D%22stitch%22%2F%3E%3CfeColorMatrix%20type%3D%22saturate%22%20values%3D%220%22%2F%3E%3CfeComponentTransfer%3E%3CfeFuncR%20type%3D%22linear%22%20slope%3D%225%22%20intercept%3D%22-2%22%2F%3E%3CfeFuncG%20type%3D%22linear%22%20slope%3D%225%22%20intercept%3D%22-2%22%2F%3E%3CfeFuncB%20type%3D%22linear%22%20slope%3D%225%22%20intercept%3D%22-2%22%2F%3E%3CfeFuncA%20type%3D%22linear%22%20slope%3D%221%22%2F%3E%3C%2FfeComponentTransfer%3E%3C%2Ffilter%3E%3Cpath%20fill%3D%22%23808080%22%20filter%3D%22url%28%23n%29%22%20d%3D%22M0%200h160v160H0z%22%2F%3E%3C%2Fsvg%3E"),
      radial-gradient(ellipse at 28% 32%, #fff 0%, #ffffffcc 10%, #ffffff00 38%),
      radial-gradient(ellipse at 95% 90%, rgb(var(--price-color-0, 150 57 239) / .95) 0%, rgb(var(--price-color-0, 150 57 239) / .65) 28%, transparent 65%),
      radial-gradient(ellipse at 82% 35%, rgb(var(--price-color-1, 255 85 196) / .95) 0%, rgb(var(--price-color-1, 255 85 196) / .65) 28%, transparent 65%),
      radial-gradient(ellipse at 8% 80%, rgb(var(--price-color-2, 194 161 255) / .85) 0%, transparent 58%),
      radial-gradient(ellipse at 60% 8%, rgb(var(--price-color-3, 255 176 226) / .85) 0%, transparent 60%),
      radial-gradient(ellipse at 40% 100%, rgb(var(--price-color-4, 225 214 255) / .65) 0%, transparent 48%),
      linear-gradient(#fffbff, #fffbff);
    background-size: 128px 128px, 155% 150%, 170% 165%, 175% 170%, 160% 160%, 165% 155%, 160% 170%, 100% 100%;
    background-position: var(--grain-x, 0px) var(--grain-y, 0px), 0% 10%, 100% 100%, 90% 20%, 0% 80%, 30% 0%, 50% 100%, 0 0;
    background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
    background-blend-mode: soft-light, normal, normal, normal, normal, normal, normal, normal;
  color: #20132f;
  border-color: transparent;
  box-shadow: none;
}
#investimento .pricing .mesh-surface :is(h3, p, .price) { color: #20132f; }
@media screen and (prefers-reduced-motion: no-preference) {
  #investimento.active .mesh-surface { animation: price-grain-drift .7s steps(1, end) infinite; }
}
@media (forced-colors: active) {
  #investimento .pricing .mesh-surface { background: Canvas; color: CanvasText; border: 1px solid CanvasText; }
  #investimento .pricing .mesh-surface :is(h3, p, .price) { color: CanvasText; }
}

@keyframes price-grain-drift {
  0%, 100% { --grain-x: 0px; --grain-y: 0px; }
  20% { --grain-x: -23px; --grain-y: 17px; }
  40% { --grain-x: 31px; --grain-y: -29px; }
  60% { --grain-x: -41px; --grain-y: -11px; }
  80% { --grain-x: 13px; --grain-y: 37px; }
}

/* Neutral card for usage-based AI costs. */
#investimento .calculator { background: #f4f4f2; color: var(--ink); border-color: var(--line); box-shadow: none; }
#investimento .calculator-result { background: transparent; }
#investimento .calculator-controls input { background: var(--paper); }

#investimento .investment-explainer { margin: 28px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); font-size: var(--type-secondary); line-height: 1.5; color: var(--ink); }

.cover .cover-copy p { max-width: none; font-size: clamp(16px, 1.8vw, 26px); line-height: 1.35; margin-top: 24px; white-space: nowrap; }

.export-pdf { display: inline-flex; align-items: center; justify-content: center; gap: 10px; justify-self: start; width: fit-content; padding: 14px 22px; border: 1px solid var(--ink); border-radius: var(--radius-control); background: var(--ink); color: white; font-weight: 600; transition: background 180ms ease; }
.export-pdf:hover { background: #383838; }
.export-pdf svg { width: 22px; height: 22px; }
@page { size: 320mm 180mm; margin: 0; }
@media print {
  html, .deck body { display: block; width: 320mm; margin: 0; padding: 0; background: white; }
  .deck main { display: block; overflow: visible; }
  .deck main > section, .deck main > section[hidden] { display: grid !important; position: relative; width: 320mm; height: 180mm; min-height: 0; margin: 0; overflow: hidden; break-after: page; break-inside: avoid; opacity: 1 !important; transform: none !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .deck main > section:last-child { break-after: auto; }
  .slide-layout { width: 284mm; padding-block: 12mm; }
  main > section * { animation: none !important; transition: none !important; }
  footer, .controls, .export-pdf, .order-presets { display: none !important; }
  .discount-badge { opacity: 1 !important; transform: rotate(7deg) !important; }
}

/* Keep investment cards side by side regardless of the print preview viewport. */
@media print {
  #investimento .slide-layout { width: 284mm; padding-block: 12mm; }
  #investimento h2 { font-size: 44px; line-height: 1.08; }
  #investimento .pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12mm; margin-top: 10mm; align-items: stretch; }
  #investimento .pricing-column { min-width: 0; }
  #investimento .pricing .panel { height: 100%; min-width: 0; padding: 7mm; }
  #investimento .pricing h3 { font-size: 22px; }
  #investimento .price { font-size: 76px; line-height: 1.1; white-space: nowrap; }
  #investimento .list-price, #investimento .offer-price { font-size: 14px; }
  #investimento .discount-badge { top: -5mm; right: -3mm; width: 140px; height: 64px; }
  #investimento .discount-badge strong { font-size: 24px; }
  #investimento .calculator-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
  #investimento .calculator-header { padding-bottom: 12px; }
  #investimento .calculator-result { padding: 10px; font-size: 12px; }
  #investimento .calculator-result output { font-size: 24px; }
  #investimento .calculator-controls label { font-size: 14px; }
  #investimento .calculator-controls input { font-size: 16px; min-width: 0; }
  #investimento .investment-explainer { margin-top: 7mm; padding-top: 4mm; font-size: 15px; line-height: 1.5; }
}

.export-pdf { justify-self: end; margin-left: auto; }

.closing-actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

@media print {
  #extendi .company-profile { grid-template-columns: minmax(0, 1fr) minmax(0, .65fr); gap: 10mm; }
  #extendi .company-photo { height: 68mm; }
  #extendi h2 { font-size: 44px; }
  #extendi .company-copy p { font-size: 16px; line-height: 1.45; }
  #extendi .company-kpis { margin-top: 16px; }
  #extendi .company-kpis dd { font-size: 34px; }
  #extendi .client-brands { margin-top: 7mm; padding-top: 4mm; break-inside: avoid; }
  #extendi .client-brands > div { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 12px; }
  #extendi .client-brands img { display: block; width: 100%; min-width: 0; height: 20mm; padding: 5mm; object-fit: contain; }
  #tempi h2 { font-size: 44px; }
  .schedule-chart { --phase-column: 35%; --chart-gap: 8mm; margin-top: 10mm; }
  .schedule-axis { display: grid; grid-template-columns: calc(var(--phase-column) + var(--chart-gap)) repeat(6, minmax(0, 1fr)); font-size: 13px; }
  .schedule-phase { display: grid; grid-template-columns: var(--phase-column) minmax(0, 1fr); column-gap: var(--chart-gap); padding-bottom: 0; break-inside: avoid; }
  .editorial-table.schedule-phases .schedule-phase { padding-block: 0; }
  .editorial-table.schedule-phases .schedule-phase > div:first-child { padding-block: 5mm; }
  .schedule-phase h3 { font-size: 20px; }
  .schedule-phase p { font-size: 14px; line-height: 1.45; }
  .schedule-track { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-self: stretch; }
  .schedule-bar { grid-column: var(--start) / var(--end); background: #000 !important; color: #fff !important; font-size: 13px; padding: 9px 2px; }
}

#esigenza .manual-formats { gap: 8px; }
#esigenza .manual-formats li { padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }

.print-slide-counter { display: none; }
@media print {
  .print-slide-counter { display: block; position: absolute; right: 10mm; bottom: 6mm; color: var(--muted); font: 12px/1 Inter, sans-serif; font-variant-numeric: tabular-nums; }
}
