@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/bricolage-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/bricolage-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --bg: #ffffff;
  --surface: #f2eee6;
  --ink: #111111;
  --muted: #5a5346;
  --accent: #de194b;
  --accent-ink: #ffffff;
  --field-1: #ffffff;  --field-1-ink: #111111; --field-1-soft: #f2eee6; --field-1-muted: #5a5346;
  --field-2: #4db3ff;  --field-2-ink: #111111; --field-2-soft: #75c4ff; --field-2-muted: #0c3a5c;
  --field-3: #f7f2e8;  --field-3-ink: #111111; --field-3-soft: #ede5d4; --field-3-muted: #5a5346;
  --field-5: #f7f2e8;  --field-5-ink: #111111; --field-5-soft: #ede5d4; --field-5-muted: #5a5346;
  --field-4: #161615;  --field-4-ink: #f2f2f2; --field-4-soft: #262624; --field-4-muted: #b9b9b4;

  --font: "Bricolage Grotesque", system-ui, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --m: clamp(16px, 2vw, 28px);
  --max: 1440px;
  --pad: max(var(--m), calc((100vw - var(--max)) / 2));
  --gap: clamp(72px, 8vw, 112px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--field-1); color: var(--ink); font: 400 var(--step-body)/1.5 var(--font); font-optical-sizing: auto; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.04em; line-height: .95; text-wrap: balance; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.1; }
::selection { background: var(--ink); color: var(--field-3); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.field-4 :focus-visible { outline-color: var(--field-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: var(--m); background: var(--ink); color: var(--field-3); padding: .6rem 1rem; z-index: 50; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; }
.wrap { padding-inline: var(--pad); }

.field-1 { background: var(--field-1); color: var(--field-1-ink); --soft: var(--field-1-soft); --mut: var(--field-1-muted); }
.field-2 { background: var(--field-2); color: var(--field-2-ink); --soft: var(--field-2-soft); --mut: var(--field-2-muted); }
.field-3 { background: var(--field-3); color: var(--field-3-ink); --soft: var(--field-3-soft); --mut: var(--field-3-muted); }
.field-5 { background: var(--field-5); color: var(--field-5-ink); --soft: var(--field-5-soft); --mut: var(--field-5-muted); }
.field-4 { background: var(--field-4); color: var(--field-4-ink); --soft: var(--field-4-soft); --mut: var(--field-4-muted); }

/* buttons: square, one fill */
.btn { display: inline-flex; align-items: center; gap: .6rem; padding: 1rem 1.4rem; background: var(--ink); color: var(--field-3); font: 500 var(--step-body)/1 var(--font); text-decoration: none; border: 0; cursor: pointer; transition: transform .25s var(--ease), background-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #c4103e; }

/* HERO */
.hero { position: relative; min-height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; }
.hero-top { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--m); }
.wordmark { font-weight: 600; font-size: var(--step-body); text-decoration: none; letter-spacing: -0.02em; }
.hero-nav { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); }
.hero-nav a { font-weight: 500; text-decoration: underline 2px transparent; text-underline-offset: 6px; transition: text-decoration-color .2s, text-underline-offset .2s; }
.hero-nav a:hover { text-decoration-color: currentColor; text-underline-offset: 3px; }
.hero-body { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); column-gap: clamp(24px, 4vw, 72px); align-items: center; padding-block: clamp(32px, 5vh, 72px); }
.intro { animation: rise .8s var(--ease) both; }
.hero-copy .intro:nth-child(2) { animation-delay: .12s; }
.hero-copy .intro:nth-child(3) { animation-delay: .24s; }
.hero-copy .intro:nth-child(4) { animation-delay: .36s; }
.hero-copy { display: grid; gap: 1.5rem; justify-items: start; position: relative; z-index: 2; }
.hero-copy h1 { font-size: clamp(2.4rem, 1rem + 4.2vw, 5.4rem); max-width: 11ch; line-height: .95; }
.hero-sub { font-size: var(--step-lead); line-height: 1.35; max-width: 32ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.link { font-weight: 500; text-decoration: underline 2px; text-underline-offset: 6px; transition: text-underline-offset .2s; }
.link:hover { text-underline-offset: 3px; }
.hero-prices { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 2px 2rem; margin-top: .4rem; font-size: 1.0625rem; }
.hero-prices li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 2px solid color-mix(in srgb, currentColor 18%, transparent); }
.hero-prices b { font-weight: 600; font-variant-numeric: tabular-nums; }

/* hero collage */
.hero-art { position: relative; width: 100%; aspect-ratio: 1 / .9; max-height: 74svh; justify-self: end; }
.ha { position: absolute; will-change: transform; }
.ha img, .ha video { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ha-browser { left: 0; top: 4%; width: 84%; aspect-ratio: 1440 / 940; background: #fffdf7; padding-top: 34px; transform: rotate(-2deg); animation: rise .9s var(--ease) .1s both; }
.ha-bar { position: absolute; top: 0; left: 0; right: 0; height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--ink); }
.ha-bar i { width: 10px; height: 10px; border-radius: 50%; background: #444; }
.ha-bar i:first-child { background: var(--accent); }
.ha-bar i:nth-child(2) { background: var(--field-3); }
.ha-bar span { margin-left: 10px; font-size: 13px; color: #d8d8d3; background: #262624; padding: 3px 10px; }
.ha-phone { box-sizing: content-box; right: 2%; top: 0; width: 25%; aspect-ratio: 780 / 1688; border: 7px solid var(--ink); border-radius: 26px; overflow: hidden; background: var(--ink); transform: rotate(4deg); animation: rise .9s var(--ease) .3s both; }
.ha-reel { left: 34%; bottom: 0; width: 25%; aspect-ratio: 9 / 16; border: 6px solid var(--field-3); background: var(--ink); transform: rotate(-3deg); animation: rise .9s var(--ease) .5s both; }
.ha-label { position: absolute; left: -6px; bottom: -6px; transform: translateY(100%); background: var(--field-3); color: var(--ink); font-size: 14px; font-weight: 600; padding: 4px 10px; }
.ha-sticker { right: 6%; bottom: 8%; width: 24%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; animation: pop .7s var(--ease) .8s both; }
.ha-sticker svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.ha-sticker text { font: 600 17px var(--font); letter-spacing: 2px; fill: #fff; }
.ha-sticker b { font-weight: 600; font-size: clamp(1rem, .5rem + 1.3vw, 1.9rem); line-height: .95; text-align: center; letter-spacing: -0.03em; }
.ha-chip { position: absolute; display: inline-flex; align-items: center; gap: .45rem; background: #fffdf7; color: var(--ink); font-size: 15px; font-weight: 500; padding: .45rem .75rem .45rem .5rem; animation: rise .7s var(--ease) both, bob 5s ease-in-out infinite; }
.ha-chip .lg { width: 22px; height: 22px; }
.k1 { left: -2%; top: 62%; animation-delay: .9s, 1.6s; }
.k2 { left: 6%; top: 78%; animation-delay: 1s, 2.4s; }
.k3 { left: 62%; top: 52%; animation-delay: 1.1s, .8s; }
.k4 { right: 32%; top: -4%; animation-delay: 1.2s, 3s; }

/* tools marquee */
.tools { display: flex; align-items: center; gap: 0; background: var(--field-4); color: var(--field-4-ink); overflow: hidden; }
.tools-h { flex: none; padding: 1rem var(--pad) 1rem var(--pad); padding-right: 1.4rem; font-weight: 600; background: var(--field-4); position: relative; z-index: 2; color: var(--field-3); }
.tools-track { display: flex; overflow: hidden; min-width: 0; flex: 1; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tools-list { display: flex; flex: none; gap: 2.4rem; padding-right: 2.4rem; animation: marquee 38s linear infinite; }
.tools-list li { display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; font-weight: 500; padding-block: 1rem; }
.tools:hover .tools-list { animation-play-state: paused; }

/* brand marks (official logos, tinted with the brand colour) */
.lg, .ic { display: inline-block; flex: none; width: 1.25em; height: 1.25em; fill: currentColor; }
.ic { width: 1.05em; height: 1.05em; vertical-align: -0.15em; margin-right: .35em; }
.ics { display: inline-flex; gap: 0; vertical-align: middle; }
.pl-desc .ics { margin-left: .4rem; padding: 3px 6px 3px 8px; background: #fffdf7; }
.pl-desc .ics .ic { margin-right: 2px; }
.records .ics { margin-right: .5rem; }
.records .ics .ic { margin-right: 4px; }
.ic-txt { display: inline-block; width: 1.05em; height: 1.05em; background: var(--ink); color: var(--field-3); font: 700 9px/1.05em var(--font); font-style: normal; text-align: center; letter-spacing: 0; }
.picker label .ic { margin-right: 0; }
.picker label:has(input:checked) .ic[style*="#111"] { color: var(--field-1) !important; }
.ic-row { width: .7em; height: .7em; margin: 0 0 .08em; align-self: center; }

@keyframes rise { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
@keyframes pop { from { opacity: 0; scale: .4; } to { opacity: 1; scale: 1; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes marquee { to { transform: translateX(-100%); } }

/* CALCOLATORE */
.conto { padding-block: var(--gap) calc(var(--gap) * .7); }
.conto-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: start; }
.conto-intro { grid-column: 1 / span 5; display: grid; gap: 1.2rem; }
.conto-intro > p { max-width: 40ch; }
.picker { display: grid; gap: 1.6rem; margin-top: 1rem; }
.picker fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.picker legend { font-weight: 500; margin-bottom: .6rem; padding: 0; color: var(--mut); }
.picker label { position: relative; display: inline-flex; gap: .5rem; align-items: baseline; padding: .7rem .95rem; background: var(--soft); cursor: pointer; font-size: 1rem; line-height: 1.2; transition: background-color .2s, color .2s, transform .2s var(--ease); user-select: none; }
.picker label:hover { transform: translateY(-2px); }
.picker label:active { transform: scale(.97); }
.picker input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.picker label:has(input:checked) { background: var(--ink); color: var(--field-1); }
.picker label:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.picker b { font-weight: 600; white-space: nowrap; }

.conto-figure { grid-column: 7 / span 6; position: sticky; top: 4vh; display: grid; gap: 1.4rem; justify-items: start; padding-top: 2rem; }
.figure { position: relative; font-weight: 600; font-size: clamp(120px, 15vw, 236px); line-height: .85; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; display: flex; align-items: flex-start; }
.figure .cur { font-size: .5em; margin-top: .06em; margin-right: .04em; }
.figure #tot { display: inline-block; transition: transform .35s var(--ease); }
.figure.bump #tot { transform: translateY(-6px); }
.figure-month { position: relative; z-index: 2; margin-top: .5rem; font-size: var(--step-lead); font-weight: 500; }
.receipt { position: absolute; top: 0; right: 0; width: min(260px, 40%); background: #fffdf7; color: #111; padding: 18px 18px 22px; font-size: 14px; line-height: 1.35; transform: rotate(3deg); transform-origin: top right; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), 94% 100%, 88% calc(100% - 8px), 82% 100%, 76% calc(100% - 8px), 70% 100%, 64% calc(100% - 8px), 58% 100%, 52% calc(100% - 8px), 46% 100%, 40% calc(100% - 8px), 34% 100%, 28% calc(100% - 8px), 22% 100%, 16% calc(100% - 8px), 10% 100%, 4% calc(100% - 8px), 0 100%); }
.receipt .r-head { text-align: center; font-weight: 600; margin-bottom: 12px; }
.receipt ul { display: grid; gap: 6px; padding-block: 10px; border-block: 2px dashed #111; }
.receipt li, .receipt .r-tot { display: flex; justify-content: space-between; gap: 10px; }
.receipt li span:last-child, .receipt .r-tot span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipt .r-tot { font-weight: 600; font-size: 16px; padding-top: 10px; }
.receipt .r-foot { margin-top: 6px; color: #444; }
.receipt li { animation: line-in .35s var(--ease) both; }
@keyframes line-in { from { opacity: 0; translate: -8px 0; } }
.included { display: grid; gap: .35rem; font-size: 1.125rem; }
.included li { max-width: 46ch; }

/* LISTINO */
.listino { padding-block: var(--gap) calc(var(--gap) * .5); }
.listino h2 { font-size: clamp(3.5rem, 1rem + 8vw, 9rem); }
.listino-note { font-size: var(--step-lead); margin-top: 1.2rem; max-width: 34ch; }
.pl-group { margin-top: clamp(64px, 8vw, 120px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.pl-group h3 { grid-column: 1 / span 3; padding-top: .9rem; }
.pl { grid-column: 4 / span 9; display: grid; gap: 6px; }
.pl { gap: 0; }
.pl li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name price pay" "desc price pay"; column-gap: 2rem; padding: 1.1rem 1.2rem; transition: background-color .2s, transform .25s var(--ease); }
.pl li:nth-child(even) { background: var(--soft); }
.pl li { border-top: 2px solid var(--ink); }
.pl li:last-child { border-bottom: 2px solid var(--ink); }
.pl li:hover { background: var(--ink); color: var(--field-5); transform: translateX(6px); }
.pl-name { grid-area: name; font-weight: 600; font-size: clamp(1.6rem, .9rem + 2.4vw, 3.4rem); letter-spacing: -0.035em; line-height: 1.02; }
.pl-desc { grid-area: desc; margin-top: .3rem; }
.pl-price { grid-area: price; align-self: center; font-weight: 600; font-size: clamp(1.6rem, .9rem + 2.4vw, 3.4rem); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-price small { font-size: .4em; letter-spacing: 0; font-weight: 500; margin-left: .15em; }
.pl-packs .pl li { background: var(--ink); color: var(--field-5); border: 0; }
.pl-packs .pl li + li { margin-top: 6px; }
.pl-packs .pl li:hover { background: var(--accent); color: #fff; }

/* LAVORI */
.lavori { padding-top: calc(var(--gap) * .5); }
.stage { position: relative; display: grid; grid-template-columns: 38fr 62fr; max-width: calc(var(--max) + var(--m) * 2); margin-inline: auto; }
.stage-left { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding: 40px var(--m) 32px; }
.stage-left h2 { font-size: clamp(3rem, 1rem + 5.4vw, 7.5rem); max-width: 9ch; }
.index { display: grid; }
.index a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; text-decoration: none; color: var(--mut); transition: color .2s, transform .25s var(--ease); }
.index li.is-on a, .index a:hover { color: var(--ink); }
.index li.is-on a { transform: translateX(10px); }
.w-name { font-weight: 600; font-size: clamp(1.4rem, 1rem + 1vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.05; }
.w-what { font-size: 1rem; text-align: right; }
.stage-right { position: relative; }
.slide { position: relative; height: 88svh; overflow: hidden; background: var(--field-4); display: grid; place-items: center; padding: 48px 48px 120px; }
.slide img, .slide video { width: 100%; height: 100%; object-fit: contain; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 22px; background: var(--field-4); color: var(--field-4-ink); font-size: 1rem; max-width: 52ch; }
.slide figcaption b { font-weight: 600; }
.slide .wipe { clip-path: inset(100% 0 0 0); transition: clip-path .9s var(--ease); }

/* COME FUNZIONA */
.bubble { max-width: 44ch; padding: 12px 14px; font-size: 1rem; line-height: 1.4; }
.bubble.in { background: #2b2b29; color: #f2f2f2; }
.bubble.out { background: #dcf8c6; color: #111; margin-left: auto; }
.files { display: flex; flex-wrap: wrap; gap: 8px; }
.files span { background: #2b2b29; padding: 8px 12px; font-size: 1rem; }
.browser { background: #2b2b29; padding: 10px 14px; display: flex; align-items: center; gap: 10px; }
.url { background: #161615; padding: 4px 12px; font-size: .9rem; color: #f2f2f2; }

/* CHI SONO */
.chi { padding-block: var(--gap) calc(var(--gap) * .6); }
.listino { padding-bottom: var(--gap); }
.chi-grid { display: grid; grid-template-columns: minmax(0, 34fr) minmax(0, 66fr); align-items: center; column-gap: clamp(24px, 4vw, 64px); }
.chi-side { display: grid; gap: 2rem; align-content: start; }
.chi-photo { width: 100%; max-width: 420px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.chi-main { display: grid; gap: 2rem; align-content: start; }
.records { display: grid; grid-template-columns: minmax(0, 760px); gap: clamp(32px, 5vw, 64px); margin-top: 1.5rem; }
.records h3 { margin-bottom: 1rem; }
.records li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .8rem; font-size: 1rem; }
.records li:nth-child(odd) { background: var(--soft); }
.records li span:last-child { color: var(--mut); white-space: nowrap; }

/* DOMANDE */
.faq { padding-block: calc(var(--gap) * .4) var(--gap); }
.faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.faq-grid h2 { grid-column: 1 / span 3; }
.faq-text { grid-column: 5 / span 8; columns: 2; column-gap: 56px; }
.faq-text p { break-inside: avoid; margin-bottom: 20px; font-size: 1.0625rem; line-height: 1.55; }
.faq-text b { font-weight: 600; }

/* CONTATTI */
.rows { display: grid; }
.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; min-height: clamp(84px, 8vw, 130px); padding: 0 var(--pad) .4em; font-size: clamp(2.2rem, .6rem + 5.4vw, 5.5rem); line-height: 1; letter-spacing: -0.04em; }
.row:nth-child(odd) { background: var(--soft); }
.row a { text-decoration: none; transition: color .2s; overflow-wrap: anywhere; }
.row a:hover { color: var(--accent); }
.row-photo { width: clamp(64px, 7vw, 110px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; align-self: center; }
.row .ic-row { margin-left: auto; }

/* FOOTER */
.foot { display: grid; grid-template-rows: auto auto auto; padding-top: 40px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; font-size: 1rem; }
.foot-cols p { color: var(--mut); line-height: 1.7; }
.foot-cols .f1 { color: var(--field-4-ink); font-weight: 500; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { color: var(--field-3); }
.foot-cta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; padding-block: clamp(72px, 10vw, 140px) clamp(48px, 6vw, 80px); }
.foot-big { font-weight: 600; font-size: clamp(2.2rem, 1rem + 4vw, 5rem); line-height: .98; letter-spacing: -0.045em; color: var(--field-3); }
.foot-acts { display: flex; align-items: center; gap: 1.6rem; }
.btn-lime { background: var(--field-3); color: var(--ink); }
.foot .link { color: var(--field-4-ink); }
.legal { font-size: var(--step-small); color: var(--mut); padding-block: 20px 24px; }

/* PAY */
.pl-pay { grid-area: pay; align-self: center; margin-left: 1rem; padding: .8rem 1.3rem; background: var(--accent); color: #fff; font-size: 1.0625rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.pl li:hover .pl-pay, .pl-packs .pl .pl-pay { background: var(--field-3); color: var(--ink); }
.pl-pay:hover { transform: translateY(-2px); }
.pl-pay:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.pl-foot { grid-column: 1 / -1; margin-top: 2.4rem; max-width: 62ch; font-size: 1.125rem; display: flex; gap: .7rem; align-items: flex-start; }
.pl-foot .ic { width: 1.4em; height: 1.4em; flex: none; }
.conto-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.6rem; }
.pay-note { font-size: 1rem; max-width: 46ch; }
.pay-note[hidden] { display: none; }

/* WORK extras */
.slide-link { display: block; width: 100%; height: 100%; }
.slide-link.phone { box-sizing: content-box; flex: none; width: auto; height: calc(100% - 20px); aspect-ratio: 780 / 1688; border: 10px solid #000; border-radius: 34px; overflow: hidden; background: #000; }
.slide-link.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.slide figcaption .visit { display: inline-block; margin-left: .4rem; color: var(--field-3); font-weight: 500; text-decoration: underline 2px; text-underline-offset: 4px; white-space: nowrap; }
.slide video { background: #000; }
.slide { grid-template-rows: minmax(0, 1fr); }
.slide > video { width: auto; height: 100%; max-width: 100%; aspect-ratio: 9 / 16; min-height: 0; }
.slide > video.v-land { width: 100%; height: auto; max-height: 100%; aspect-ratio: 16 / 9; }

/* MAP */
.map { position: relative; height: clamp(340px, 42vw, 560px); background: var(--field-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.9); }
.map-ph { height: 100%; display: grid; align-content: center; justify-items: start; gap: 1rem; padding: 32px var(--pad); background:
  linear-gradient(90deg, rgb(0 0 0 / .07) 1px, transparent 1px) 0 0 / 48px 48px,
  linear-gradient(rgb(0 0 0 / .07) 1px, transparent 1px) 0 0 / 48px 48px, var(--field-2); }
.map-ph p { max-width: 46ch; font-size: 1.125rem; }
.map-ph .map-t { font-weight: 600; font-size: clamp(3rem, 1rem + 6vw, 7rem); line-height: .9; letter-spacing: -0.045em; }

/* COOKIE */
.cookie { position: fixed; left: var(--m); bottom: var(--m); z-index: 60; width: min(520px, calc(100vw - var(--m) * 2)); background: var(--ink); color: #f2f2f2; padding: 18px 18px 16px; display: grid; gap: 14px; box-shadow: 0 18px 40px rgb(0 0 0 / .28); animation: rise .5s var(--ease) both; }
.cookie[hidden] { display: none; }
.cookie p { font-size: 15px; line-height: 1.45; }
.cookie a { color: var(--field-3); }
.cookie-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie .btn { justify-content: center; padding: .85rem 1rem; background: var(--field-3); color: var(--ink); }
.cookie .btn-ghost { background: transparent; color: #f2f2f2; box-shadow: inset 0 0 0 2px #f2f2f2; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* CHAT */
.chat-open { position: fixed; right: var(--pad); bottom: var(--m); z-index: 40; background: var(--ink); color: var(--field-3); border: 0; padding: .9rem 1.2rem; font: 500 1rem/1 var(--font); cursor: pointer; transition: transform .25s var(--ease); }
.chat-open:hover { transform: translateY(-3px); }
.chat-open { animation: rise .6s var(--ease) 1.4s both; }
.chat-open.away { transform: translateY(160%); pointer-events: none; }
.nav-chat { background: none; border: 0; padding: 0; font: 500 var(--step-body)/1.5 var(--font); color: inherit; cursor: pointer; text-decoration: underline 2px transparent; text-underline-offset: 6px; transition: text-decoration-color .2s, text-underline-offset .2s; }
.nav-chat:hover { text-decoration-color: currentColor; text-underline-offset: 3px; }
.chat { position: fixed; right: var(--pad); bottom: var(--m); z-index: 41; width: min(400px, calc(100vw - var(--m) * 2)); height: min(600px, calc(100svh - var(--m) * 2)); transition: width .35s var(--ease), height .35s var(--ease); background: #fffdf7; color: #111; display: grid; grid-template-rows: auto 1fr auto auto; box-shadow: 0 24px 60px rgba(0,0,0,.28); } /* taste-skill-ignore: open dialog floats */
.chat[hidden] { display: none; }
.chat.big { width: min(880px, calc(100vw - var(--m) * 2)); height: calc(100svh - var(--m) * 2); }
.chat.big .chat-log { padding: 24px clamp(16px, 4vw, 48px); gap: 14px; }
.chat.big .msg { font-size: 17px; max-width: 72ch; }
.chat.big .chat-quick, .chat.big .chat-form { padding-inline: clamp(12px, 4vw, 48px); }
.chat-acts { display: flex; gap: 4px; }
.chat-acts button + button { border-left: 1px solid #444 !important; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--ink); color: #f2f2f2; }
.chat-head p { font-weight: 600; line-height: 1.2; }
.chat-head small { font-weight: 400; color: #b9b9b4; font-size: 13px; }
.chat-head button { background: none; border: 0; color: inherit; font: 500 15px var(--font); cursor: pointer; padding: 6px; }
.chat-log { overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 12px; font-size: 15.5px; line-height: 1.45; white-space: pre-wrap; }
.msg.bot { background: #efece4; align-self: flex-start; }
.msg.me { background: var(--ink); color: #f2f2f2; align-self: flex-end; }
.msg a { color: var(--accent); font-weight: 500; }
.msg.wait { color: #555; }
.chat-quick[hidden] { display: none; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.chat-quick button { background: #efece4; border: 0; padding: 8px 10px; font: 400 14px var(--font); cursor: pointer; }
.chat-quick button:hover { background: var(--field-3); }
.chat-form { display: flex; gap: 6px; padding: 10px 12px 12px; background: #efece4; }
.chat-form input { flex: 1; min-width: 0; border: 0; background: #fff; padding: 12px; font: 400 16px var(--font); }
.chat-form button { border: 0; background: var(--accent); color: #fff; padding: 0 16px; font: 500 15px var(--font); cursor: pointer; }

/* MOTION */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (max-width: 700px) { .reveal { opacity: 1; transform: translateY(14px); } .reveal.in { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ha, .ha-chip, .tools-list, .ha-sticker svg { animation: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* TABLET */
@media (max-width: 1000px) {
  .conto-intro { grid-column: 1 / -1; }
  .conto-figure { grid-column: 1 / -1; position: relative; top: 0; margin-top: 112px; }
  .hero-body { grid-template-columns: 1fr; row-gap: 48px; }
  .hero-art { max-height: none; width: min(100%, 720px); justify-self: center; }
  .pl-group h3 { grid-column: 1 / -1; margin-bottom: 1rem; }
  .pl { grid-column: 1 / -1; }
  .faq-grid h2 { grid-column: 1 / -1; margin-bottom: 2rem; }
  .faq-text { grid-column: 1 / -1; }
}

/* PHONE */
@media (max-width: 700px) {
  .hero { min-height: 0; }
  .hero-nav a { display: none; }
  .hero-body { padding-block: 28px 40px; row-gap: 40px; }
  .hero-copy { gap: 1.1rem; }
  .hero-copy h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .hero-sub { font-size: 1.0625rem; }
  .hero-prices { grid-template-columns: 1fr; width: 100%; }
  .hero-art { aspect-ratio: 1 / 1; }
  .ha-browser { width: 92%; top: 2%; }
  .ha-phone { width: 30%; right: 0; top: 30%; border-width: 5px; border-radius: 18px; }
  .ha-reel { left: 4%; width: 30%; bottom: 0; border-width: 4px; }
  .ha-sticker { width: 30%; right: 32%; bottom: 2%; }
  .ha-chip { font-size: 13px; }
  .k1 { left: 38%; top: 62%; }
  .k1, .k2, .k4 { display: none; }
  .k3 { left: auto; right: 0; top: 90%; }
  .ha-phone { top: 26%; }
  .ha-sticker { width: 27%; left: 37%; right: auto; bottom: 0; }
  .tools-h { padding-left: var(--m); }
  .chat.big { inset: 0; width: 100vw; height: 100svh; right: 0; bottom: 0; }
  .figure { font-size: 34vw; }
  .receipt { position: relative; width: 100%; transform: none; margin-top: .5rem; }
  .conto-figure .btn { width: 100%; justify-content: center; }
  .pl li { padding: .9rem 1rem; column-gap: 1rem; }
  .pl-name, .pl-price { font-size: 1.5rem; }
  .pl-desc { font-size: 1rem; }
  .stage { grid-template-columns: 1fr; }
  .stage-left { position: relative; height: auto; padding: 0 var(--m) 24px; }
  .stage-left .index { display: none; }
  .slide { height: auto; padding: 24px 16px 0; display: block; }
  .slide img, .slide video { height: auto; max-height: 70svh; width: auto; max-width: 100%; margin-inline: auto; }
  .slide figcaption { position: relative; }
  .chi-grid { grid-template-columns: 1fr; gap: 2rem; }
  .chi-main { order: -1; }
  .chi-photo { max-width: 260px; }
  .pl li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "desc desc" "pay pay"; }
  .pl-pay { margin: .8rem 0 0; justify-self: start; }
  .conto-acts { width: 100%; }
  .slide-link.phone { height: auto; width: min(72vw, 300px); margin-inline: auto; border-width: 7px; border-radius: 26px; }
  .slide-link.phone img { width: 100%; height: auto; max-height: none; }
  .slide > video { display: block; height: auto; width: min(100%, calc(70svh * 9 / 16)); max-height: none; }
  .slide > video.v-land { width: 100%; }
  .cookie-acts .btn { width: 100%; }
  .records { grid-template-columns: 1fr; gap: 40px; }
  .faq-text { columns: auto; }
  .row { font-size: 9.6vw; min-height: 84px; padding-inline: 16px; }
  .foot-cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .chat-open { left: auto; }
}

/* ---------- round 5 ---------- */
/* listino: canone choice on the site rows */
.pl li.pl-site { grid-template-areas: "name price pay" "desc price pay" "opt price pay" "note note note"; }
.pl-opt { grid-area: opt; justify-self: start; position: relative; display: inline-flex; align-items: center; gap: .55rem; margin-top: .7rem; padding: .5rem .8rem .5rem .6rem; background: #fff; color: var(--ink); font-size: 1rem; cursor: pointer; box-shadow: inset 0 0 0 2px var(--ink); user-select: none; }
.pl-opt input, .opt-canone input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pl-opt:has(input:focus-visible), .opt-canone:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.tick { flex: none; width: 1.15em; height: 1.15em; border: 2px solid currentColor; background: #fff; display: grid; place-items: center; }
.tick::after { content: ""; width: .32em; height: .6em; border: solid var(--ink); border-width: 0 3px 3px 0; transform: translateY(-1px) rotate(45deg); opacity: 0; }
input:checked + .tick { background: var(--field-3); }
input:checked + .tick::after { opacity: 1; }
.pl-optnote { grid-area: note; display: none; margin-top: .5rem; font-size: .95rem; }
.pl li.no-canone .pl-optnote { display: block; }
.pl li.no-canone .pl-month { display: none; }
.pl-month { display: block; font-size: .36em !important; letter-spacing: 0; font-weight: 500; margin: .2em 0 0 !important; text-align: right; }
.pl li:hover .pl-opt { box-shadow: inset 0 0 0 2px var(--field-3); }
.pl li:hover .pl-pay { background: var(--field-3); color: var(--ink); }
.pl-packs .pl .pl-pay { background: var(--field-3); color: var(--ink); }
.listino .pl-desc .ics { box-shadow: inset 0 0 0 1px rgb(0 0 0 / .15); }

/* calculator: canone checkbox */
.opt-canone { flex-basis: 100%; justify-content: flex-start; align-items: center !important; }
.opt-canone[hidden], .canone-note[hidden] { display: none !important; }
.picker label.opt-canone:has(input:checked) { background: var(--field-3); color: var(--ink); }
.canone-note { flex-basis: 100%; font-size: .95rem; max-width: 52ch; color: var(--mut); }

/* hero: the ad image next to Roberta's phone */
.ha-ad { right: 22%; top: 36%; width: 19%; aspect-ratio: 1122 / 1402; border: 5px solid #fffdf7; background: #fffdf7; transform: rotate(-4deg); box-shadow: 0 18px 40px rgb(0 0 0 / .22); animation: rise .9s var(--ease) .4s both; }
.ha-ad .ha-label { left: auto; right: -5px; }

/* lavori: phone + ad side by side */
.duo { height: 100%; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.4vw, 40px); }
.duo-ad { position: relative; display: block; flex: 0 1 auto; height: 84%; aspect-ratio: 1122 / 1402; min-width: 0; max-width: 56%; }
.duo-ad img { width: 100%; height: 100%; object-fit: contain; }
.duo-tag { position: absolute; left: 0; bottom: 0; transform: translateY(100%); background: var(--field-3); color: var(--ink); font-size: 14px; font-weight: 600; padding: 4px 10px; }

/* nav: the assistant link carries the robot */
.nav-chat { display: inline-flex; align-items: center; gap: .4rem; }
.robot { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.menu-btn { display: none; }
.nav-more { display: none; }

/* assistant: small robot button, there from the start */
.chat-open { width: 56px; height: 56px; padding: 0; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 10px 28px rgb(0 0 0 / .3); animation: pop .5s var(--ease) .3s both; }
.chat-open .robot { width: 30px; height: 30px; }
.chat-open[hidden] { display: none; }
.chat-title { display: flex; align-items: center; gap: .6rem; }
.chat-av { width: 34px; height: 34px; border-radius: 50%; background: var(--field-3); color: var(--ink); display: grid; place-items: center; flex: none; }
.chat-av .robot { width: 22px; height: 22px; }

@media (max-width: 1100px) and (min-width: 701px) {
  .duo-ad { height: 70%; }
}

@media (max-width: 700px) {
  /* dropdown menu */
  .menu-btn { display: inline-flex; align-items: center; gap: .5rem; position: fixed; top: 10px; right: 10px; z-index: 46; background: var(--ink); color: var(--field-3); border: 0; padding: .65rem .9rem; font: 500 1rem/1 var(--font); cursor: pointer; box-shadow: 0 8px 22px rgb(0 0 0 / .25); }
  .menu-ic { display: grid; gap: 4px; width: 18px; }
  .menu-ic i { display: block; height: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
  .menu-btn[aria-expanded="true"] .menu-ic i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-ic i:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] .menu-ic i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hero-nav { position: fixed; z-index: 45; top: 0; left: 0; right: 0; display: grid; gap: 0; padding: 64px 16px 20px; background: var(--ink); color: #f2f2f2; box-shadow: 0 24px 50px rgb(0 0 0 / .35); transform: translateY(-105%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; }
  .hero-nav.open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .hero-nav a, .hero-nav .nav-more, .hero-nav .nav-chat { display: flex; align-items: center; font: 600 1.75rem/1.1 var(--font); letter-spacing: -0.03em; padding: .7rem 0; border-bottom: 1px solid #333; text-decoration: none; color: #f2f2f2; }
  .hero-nav .nav-chat { color: var(--field-3); border-bottom: 0; gap: .6rem; }
  .hero-nav a:active { color: var(--field-3); }
  .hero-top { padding-right: 110px; }

  /* price list */
  .pl li.pl-site { grid-template-areas: "name price" "desc desc" "opt opt" "note note" "pay pay"; }
  .pl-month { font-size: .5em !important; }

  /* hero collage */
  .ha-ad { width: 25%; right: 29%; top: 40%; border-width: 3px; }
  .ha-ad .ha-label { display: none; }

  /* lavori */
  .duo { height: auto; display: grid; grid-template-columns: 44fr 56fr; align-items: center; gap: 12px; }
  .slide .duo .slide-link.phone { width: auto; height: auto; border-width: 6px; border-radius: 22px; }
  .slide .duo .slide-link.phone img { width: 100%; height: auto; max-height: none; }
  .duo-ad { height: auto; max-width: none; margin-bottom: 26px; }
  .duo-ad img { width: 100%; height: auto; max-height: none; }
  .duo-tag { font-size: 12px; }

  /* assistant fills the visible area, above the keyboard */
  .chat { inset: auto 0 auto 0; top: var(--vvt, 0px); width: 100%; height: var(--vvh, 100svh); right: 0; bottom: auto; transition: none; }
  .chat.big { inset: auto 0 auto 0; top: var(--vvt, 0px); width: 100%; height: var(--vvh, 100svh); }
  #chatSize { display: none; }
  .chat-head { padding: 10px 12px; }
  .chat-form { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  html.chat-on, html.chat-on body { overflow: hidden; }
  .chat-open { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}
@media (min-width: 701px) { .k3 { left: 20%; top: -1%; } }
html.chat-on .menu-btn { display: none; }
@media (max-width: 700px) { .chat-acts button + button { border-left: 0 !important; } }

/* ---------- round 6: white and cream, no orange, no lime ---------- */
.ha-reel { border-color: var(--ink); }
.ha-bar i:nth-child(2) { background: #f5b400; }
input:checked + .tick { background: var(--accent); border-color: var(--accent); }
.tick::after { border-color: #fff; }
.picker label.opt-canone:has(input:checked) { background: var(--ink); color: #fff; }
.picker label:has(input:checked) { color: #fff; }
.opt-sub { font-size: .8em; color: var(--mut); }
.picker label:has(input:checked) .opt-sub { color: #cfc8ba; }
.chat-av { background: var(--accent); color: #fff; }
.duo-tag { background: var(--ink); color: #fff; }
.field-5 + .field-1, .field-1 + .field-5 { box-shadow: inset 0 1px 0 rgb(0 0 0 / .08); }
.foot-big { color: #fff; }

/* ---------- round 7: works index on desktop ---------- */
@media (min-width: 701px) {
  .stage { grid-template-columns: minmax(300px, 34fr) 66fr; }
  .stage-left { top: 0; height: 100svh; justify-content: center; gap: clamp(20px, 4vh, 44px); padding: 40px clamp(20px, 2.4vw, 40px) 40px var(--m); }
  .stage-left h2 { font-size: clamp(3rem, 1rem + 4vw, 6rem); }
  .index { counter-reset: w; gap: 6px; border-top: 2px solid var(--ink); padding-top: 14px; }
  .index li { counter-increment: w; }
  .index a { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); column-gap: .8rem; row-gap: 2px; align-items: baseline; padding: 14px 16px; color: var(--ink); background: rgb(255 255 255 / .3); transform: none !important; transition: background-color .2s, color .2s; }
  .index a::before { content: counter(w, decimal-leading-zero); grid-row: 1 / span 2; font-weight: 600; font-size: 1rem; opacity: .55; }
  .index .w-name { font-size: clamp(1.25rem, .9rem + .9vw, 1.75rem); }
  .index .w-what { grid-column: 2; text-align: left; font-size: .95rem; opacity: .75; }
  .index a:hover { background: rgb(255 255 255 / .65); color: var(--ink); }
  .index li.is-on a, .index li.is-on a:hover { background: var(--ink); color: #fff; }
  .index li.is-on a::before { opacity: .8; }
  .slide { height: 100svh; padding: 40px 40px 120px; }
}

/* ---------- round 8: wide screens (21:9) ---------- */
@media (min-width: 701px) {
  .stage { grid-template-columns: minmax(320px, 34fr) minmax(0, 66fr); }
  .index .w-name { overflow-wrap: anywhere; }
  /* the caption sits under the work, never on top of it */
  .slide { padding: 32px 40px 0; grid-template-rows: minmax(0, 1fr) auto; }
  .slide figcaption { position: static; justify-self: start; padding: 16px 0 24px; max-width: 64ch; background: none; }
  .duo { height: 100%; }
}
@media (min-width: 701px) {
  /* phone + ad always fit side by side, whatever the screen ratio */
  .duo { container-type: size; gap: 40px; }
  .duo-ad { flex: none; max-width: none; width: auto; height: min(84cqh, (100cqw - (100cqh - 20px) * 0.4621 - 20px - 40px) * 1.2496); }
}

/* ---------- round 9: chi sono + career timeline ---------- */
.chi-lead { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.015em; max-width: 34ch; }
.chi-lead b { font-weight: 600; background: linear-gradient(transparent 62%, rgb(222 25 75 / .22) 62%); }
.chi-text { max-width: 56ch; }
.ai-use-h { font-weight: 600; margin-bottom: .7rem; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-chips li { padding: .45rem .8rem; background: var(--ink); color: #fff; font-size: 1rem; font-weight: 500; }
.ai-chips li:nth-child(3n+1) { background: var(--accent); }
.chi .records { margin-top: 0; }

.tl-wrap { margin-top: clamp(64px, 9vw, 128px); }
.tl-head { display: grid; gap: .8rem; justify-items: center; text-align: center; margin-bottom: clamp(40px, 6vw, 80px); }
.tl-title { font-size: clamp(2.5rem, 1rem + 5vw, 5.5rem); letter-spacing: -0.045em; line-height: .95; }
.tl-sub { font-size: var(--step-lead); max-width: 30ch; line-height: 1.3; }
.tl-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.2rem; font-size: 1rem; margin-top: .4rem; }
.tl-legend li { display: inline-flex; align-items: center; gap: .45rem; }
.tl-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.lg-eco, .tg-eco { --c: #111111; }
.lg-ai, .tg-ai { --c: #de194b; }
.lg-web, .tg-web { --c: #1f8be0; }
.lg-es, .tg-es { --c: #e8a317; }
.tl-legend i { background: var(--c); }

.tl { --p: 0; --x: 50%; position: relative; display: grid; gap: clamp(28px, 4vw, 56px); padding: 8px 0 0; margin: 0 auto; max-width: 1180px; }
.tl::before, .tl::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--x); width: 4px; margin-left: -2px; border-radius: 2px; }
.tl::before { background: var(--field-1-soft); }
.tl::after { clip-path: inset(0 0 calc((1 - var(--p)) * 100%) 0); background: linear-gradient(#e8a317, #111111 22%, #111111 60%, #de194b 80%, #1f8be0); }
.tl-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); align-items: center; }
.tl-dot { grid-column: 2; justify-self: center; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--mut); box-shadow: inset 0 0 0 3px var(--field-1-soft); transition: background-color .45s var(--ease), color .45s, box-shadow .45s, transform .5s var(--ease); }
.tl-ic { width: 26px; height: 26px; }
.tl-card { grid-row: 1; position: relative; padding: clamp(20px, 2.2vw, 30px); background: var(--field-3); display: grid; gap: .55rem; justify-items: start; opacity: .18; transform: translateX(var(--from, -48px)); transition: opacity .7s var(--ease), transform .8s var(--ease), box-shadow .3s; }
.tl-item:nth-child(even) .tl-card { grid-column: 1; text-align: right; justify-items: end; }
.tl-item:nth-child(odd) .tl-card { grid-column: 3; --from: 48px; }
.tl-card::before { content: ""; position: absolute; top: 50%; width: 14px; height: 14px; background: inherit; transform: translateY(-50%) rotate(45deg); }
.tl-item:nth-child(even) .tl-card::before { right: -7px; }
.tl-item:nth-child(odd) .tl-card::before { left: -7px; }
.tl-when { font-size: clamp(1.05rem, .9rem + .5vw, 1.35rem); font-weight: 600; letter-spacing: -0.01em; color: var(--c, var(--accent)); }
.tl-card h4 { font-size: clamp(1.4rem, 1.05rem + 1.1vw, 2.1rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; max-width: 18ch; }
.tl-card p:not(.tl-when):not(.tl-tags) { max-width: 46ch; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .2rem; }
.tl-item:nth-child(even) .tl-tags { justify-content: flex-end; }
.tg { font-size: .8125rem; font-weight: 600; padding: .25rem .55rem; background: var(--c); color: #fff; }
.tg-es { color: #111; }
.tl-link { margin-top: .3rem; font-weight: 600; color: inherit; text-underline-offset: 4px; }

.tl-es { --c: #e8a317; }
.tl-eco { --c: #111111; }
.tl-ai { --c: #de194b; }
.tl-web { --c: #1f8be0; }
.tl-item.on .tl-card { opacity: 1; transform: none; }
.tl-item.on .tl-dot { background: var(--c); color: #fff; box-shadow: 0 0 0 8px color-mix(in srgb, var(--c) 18%, transparent); transform: scale(1.06); }
.tl-es.on .tl-dot { color: #111; }
.tl-card:hover { box-shadow: 0 18px 40px rgb(0 0 0 / .12); }

/* the AI steps carry the weight: dark card, red ink */
.tl-ai .tl-card { background: var(--ink); color: #fff; }
.tl-ai .tl-when { color: #ff5c85; }
/* today: the biggest card, in red */
.tl-web .tl-card { background: var(--accent); color: #fff; padding: clamp(24px, 3vw, 40px); }
.tl-web .tl-when { color: #fff; font-size: clamp(1.4rem, 1rem + 1.4vw, 2.2rem); }
.tl-web .tl-card h4 { font-size: clamp(1.8rem, 1.1rem + 2.2vw, 3.2rem); }
.tl-web .tg-web { background: #fff; color: var(--accent); }
.tl-web .tg-ai { background: var(--ink); }
.tl-web.on .tl-dot { width: 72px; height: 72px; animation: tl-pulse 2.4s var(--ease) .6s infinite; }
@keyframes tl-pulse { 0%, 100% { box-shadow: 0 0 0 8px rgb(31 139 224 / .18); } 50% { box-shadow: 0 0 0 18px rgb(31 139 224 / .06); } }

@media (max-width: 700px) {
  .tl { --x: 27px; gap: 22px; }
  .tl-head { justify-items: start; text-align: left; }
  .tl-legend { justify-content: flex-start; }
  .tl-item { grid-template-columns: 54px minmax(0, 1fr); align-items: start; }
  .tl-dot { grid-column: 1; width: 46px; height: 46px; margin-top: 14px; }
  .tl-ic { width: 22px; height: 22px; }
  .tl-web.on .tl-dot { width: 54px; height: 54px; }
  .tl-item:nth-child(n) .tl-card { grid-column: 2; text-align: left; justify-items: start; --from: 32px; margin-left: 10px; }
  .tl-item:nth-child(n) .tl-card::before { left: -7px; right: auto; top: 34px; }
  .tl-item:nth-child(n) .tl-tags { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-card { opacity: 1; transform: none; transition: none; }
  .tl-web.on .tl-dot { animation: none; }
}

/* timeline: cards interleave on desktop, each one starts halfway down the previous */
.tl-card > * { margin: 0; }
@media (min-width: 701px) {
  .tl { grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); row-gap: 18px; gap: 0 0; }
  .tl-item { grid-column: 1 / -1; grid-row: calc(var(--i) * 1 + 1) / span 2; pointer-events: none; margin-bottom: 18px; }
  .tl-card, .tl-dot { pointer-events: auto; }
}

/* round 9: on phones the two phones sit below the AI-site screenshot, never on it */
@media (max-width: 700px) {
  .hero-art { aspect-ratio: 1 / 1.32; }
  .hero-art .ha { translate: none !important; }
  .ha-browser { top: 0; left: 0; width: 100%; }
  .ha-phone { top: 47%; right: 6%; width: 29%; }
  .ha-reel { top: 50%; bottom: auto; left: 8%; width: 30%; }
}
@media (min-width: 701px) {
  .ha-browser { width: 76%; top: 8%; }
  .ha-phone { right: 0; top: 0; width: 23%; }
  .ha-reel { left: 44%; width: 22%; bottom: 0; }
}

/* logo */
.wordmark { display: inline-flex; align-items: center; gap: .55rem; }
.wm-logo { height: 1.5em; width: auto; }
.foot-logo { height: 44px; width: auto; margin-bottom: .8rem; }

/* AI chips with the official logos */
.ai-chips li, .ai-chips li:nth-child(3n+1) { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem .55rem .7rem; background: var(--field-3); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgb(17 17 17 / .12); font-weight: 600; }
.ai-ic { width: 1.35em; height: 1.35em; flex: none; }

/* round 10: works on desktop sit on the section's blue, no dark bands between them */
@media (min-width: 701px) {
  .stage-right { display: grid; gap: clamp(24px, 4vh, 48px); padding-block: clamp(24px, 5vh, 56px); }
  .slide { background: transparent; height: min(100svh, 980px); padding: 0 40px; }
  .slide:not(.slide-v) { height: auto; }
  .slide:not(.slide-v) .slide-link { height: auto; }
  .slide:not(.slide-v) img { height: auto; box-shadow: 0 24px 60px rgb(0 0 0 / .22); }
  .slide figcaption, .slide figcaption b { color: var(--ink); }
  .slide figcaption { padding: 16px 0 0; }
  .slide figcaption .visit { color: var(--ink); }
  .slide > video { box-shadow: 0 24px 60px rgb(0 0 0 / .22); }
}
@media (min-width: 701px) {
  .slide:has(> video.v-land) { height: auto; }
  .slide > video.v-land { height: auto; max-height: 80svh; width: 100%; }
}

/* Round 11: whole contact row clickable (icon included) */
.row { position: relative; }
.row a::after { content: ""; position: absolute; inset: 0; }
.row:has(a):hover a { color: var(--accent); }
.row a { white-space: nowrap; }
.row a[href^="mailto"] { white-space: normal; }

/* Round 12: la canzone del sito */
.song { padding-block: var(--gap); }
.song-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: start; }
.song-main { grid-column: 1 / span 6; }
.song-main h2 { font-size: clamp(2.6rem, 1.2rem + 5vw, 6rem); line-height: .92; letter-spacing: -0.045em; color: var(--field-3); }
.song-lead { font-size: var(--step-lead); line-height: 1.3; margin-top: 1.4rem; max-width: 30ch; color: var(--field-4-ink); }
.player { margin-top: 2.2rem; display: grid; grid-template-columns: clamp(96px, 11vw, 150px) 1fr; gap: 1.2rem; background: var(--field-4-soft); padding: 16px; }
.pl-cover { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; }
.pl-body { display: grid; gap: .7rem; align-content: start; min-width: 0; }
.pl-row { display: flex; align-items: center; gap: 1rem; }
.pl-play { flex: none; width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--ease); }
.pl-play:hover { transform: scale(1.06); }
.pl-play svg { width: 28px; height: 28px; }
.pl-play .i-pause, .player.is-playing .pl-play .i-play { display: none; }
.player.is-playing .pl-play .i-pause { display: block; }
.pl-meta { display: grid; gap: .15rem; min-width: 0; }
.pl-meta b { font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--field-3); }
.pl-meta > span { color: var(--field-4-muted); font-size: .95rem; font-variant-numeric: tabular-nums; }
.pl-seek { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; background: linear-gradient(to right, var(--accent) var(--pos, 0%), #3a3a37 var(--pos, 0%)); cursor: pointer; margin: 0; }
.pl-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--field-3); border: 0; }
.pl-seek::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--field-3); border: 0; }
.pl-viz { width: 100%; height: 70px; display: block; }
.song-cta { margin-top: 1.4rem; font-size: var(--step-lead); color: var(--field-4-ink); }
.song-cta a { color: var(--field-3); text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.song-lyrics { grid-column: 8 / span 5; }
.ly-h { font-weight: 600; color: var(--field-3); margin-bottom: .8rem; }
.ly { max-height: min(70svh, 640px); overflow-y: auto; padding-right: 12px; scrollbar-width: thin; scrollbar-color: #555 transparent; display: grid; gap: 1.3rem; }
.ly-b p { font-size: 1.15rem; line-height: 1.45; color: var(--field-4-ink); }
.ly-b .ly-t { font-size: .85rem; font-weight: 600; color: var(--field-4-muted); margin-bottom: .2rem; }
@media (max-width: 860px) {
  .song-main, .song-lyrics { grid-column: 1 / -1; }
  .song-lyrics { margin-top: 2.6rem; }
  .ly { max-height: 420px; }
}
@media (max-width: 480px) {
  .player { grid-template-columns: 1fr; }
  .pl-cover { display: none; }
}
.ly { -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); mask-image: linear-gradient(to bottom, #000 82%, transparent); padding-bottom: 60px; }

/* Round 13: audit fixes */
.deal { margin-top: 1rem; padding: .8rem 1rem; background: var(--field-3); box-shadow: inset 4px 0 0 var(--accent); font-weight: 500; line-height: 1.4; }
.proc { padding-block: var(--gap); }
.proc-list { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); counter-reset: none; }
.proc-list li { position: relative; padding: 1.4rem 1.2rem 1.5rem; background: var(--field-3); display: grid; align-content: start; gap: .5rem; }
.proc-list li:last-child { background: var(--ink); color: var(--field-3); }
.proc-n { font-size: clamp(2.6rem, 1.6rem + 2.4vw, 4rem); font-weight: 600; line-height: .9; letter-spacing: -0.05em; color: var(--accent); }
.proc-list h3 { font-size: 1.3rem; font-weight: 600; }
.proc-list p { margin: 0; font-size: 1rem; line-height: 1.45; }
.proc-cta { margin-top: 2rem; }
@media (max-width: 1000px) { .proc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .proc-list li:last-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .proc-list { grid-template-columns: 1fr; } }
.chat-note { margin: 0; padding: .45rem 14px; font-size: .78rem; line-height: 1.35; color: #5a5346; background: #efece4; }
.chat-note a { color: inherit; }
.ly-d { border-top: 1px solid #3a3a37; padding-top: 1rem; }
.ly-d summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .6rem; }
.ly-d summary::-webkit-details-marker { display: none; }
.ly-d summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); }
.ly-d[open] summary::after { content: "–"; }
.ly-d .ly { margin-top: 1rem; }
.chat-form button:disabled, .chat-quick button:disabled { opacity: .5; cursor: progress; }

/* Round 14 */
[hidden] { display: none !important; }
.rows { grid-template-columns: minmax(0, 1fr); }
.row { min-width: 0; }
.row a, .row > span { min-width: 0; }
@media (max-width: 700px) {
  .row a, .row > span { white-space: nowrap; }
  .row a[href^="mailto"] { white-space: normal; }
  .row { font-size: 8.4vw; }
}

/* Round 14: collapsible timeline */
.tl-toggle { margin-top: 1rem; }
.tl-chev { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }
.tl-toggle[aria-expanded="true"] .tl-chev { transform: rotate(180deg); }
.tl-head:has(+ .tl-body[hidden]) { margin-bottom: 0; }
