@charset "UTF-8";
/* ALFA Design: sistema grafico condiviso.
   Scuro come la brochure, titoli contenuti (hero ~49px, sezioni ~32px), Montserrat per tutto,
   Michroma solo per micro-etichette. Neon arancio/magenta/blu come accento. */
:root {
  --night: #070a10;
  --navy: #0c1624;
  --steel: #8fa5b5;
  --ink: #f3f6f9;
  --muted: #b9c5cf;
  --neon-orange: #ff9a3d;
  --neon-magenta: #ff4f9a;
  --neon-blue: #3ea6ff;
  --line: rgba(143, 165, 181, .28);
  --panel: rgba(255, 255, 255, .05);
  --font-body: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-label: "Michroma", "Eurostile", "Arial", sans-serif;
  --gutter: clamp(18px, 5vw, 64px);
  --max: 1240px;
  --h1: clamp(1.9rem, 2.6vw + .75rem, 3.1rem);
  --h2: clamp(1.45rem, 1.2vw + 1rem, 2rem);
  --h3: clamp(1.05rem, .4vw + .95rem, 1.25rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--neon-blue); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--night); padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .28s ease both vt-out; }
::view-transition-new(root) { animation: .45s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* Grana da pellicola */
body::after { content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }

.wrap { width: min(var(--max), 100%); margin-inline: auto; padding-inline: var(--gutter); }
.label { font-family: var(--font-label); font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: var(--steel); }
.h1 { font-size: var(--h1); font-weight: 300; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.h1 b, .h2 b { font-weight: 700; }
.h2 { font-size: var(--h2); font-weight: 300; line-height: 1.22; letter-spacing: -.005em; text-wrap: balance; }
.h3 { font-size: var(--h3); font-weight: 700; line-height: 1.3; }
.lead { font-size: clamp(1.02rem, .3vw + .95rem, 1.15rem); color: var(--muted); max-width: 40em; }
.copy p + p { margin-top: 1.1em; }
.copy p { color: var(--muted); }
.copy b { color: var(--ink); font-weight: 600; }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--line { border-top: 1px solid var(--line); }
.stack > * + * { margin-top: 20px; }

/* Bottoni */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px; border: 1px solid var(--ink); background: var(--ink); color: var(--night); font: 600 .78rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; border-radius: 2px; transition: background .25s, border-color .25s, color .25s; }
.btn::after { content: "\2192"; transition: transform .3s var(--ease); }
.btn:hover { background: var(--neon-orange); border-color: var(--neon-orange); }
.btn:hover::after { transform: translateX(5px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--steel); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: var(--ink); color: var(--ink); }
.btn--sm { padding: 11px 18px; font-size: .72rem; }
.btn--plain::after { content: none; }
.link-arrow { display: inline-flex; gap: 10px; align-items: center; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 6px; transition: border-color .25s, gap .3s var(--ease); }
.link-arrow::after { content: "\2192"; }
.link-arrow:hover { border-color: var(--neon-orange); gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Header */
.hdr { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 60; transition: transform .45s var(--ease), background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.hdr.is-solid { background: rgba(7, 10, 16, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.hdr.is-hidden { transform: translateY(-110%); }
.hdr__in { width: min(var(--max), 100%); margin-inline: auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { display: block; line-height: 0; margin-right: auto; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.nav a { text-decoration: none; color: var(--muted); padding: 8px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.has-sub { position: relative; }
.sub { position: absolute; top: 100%; left: -18px; min-width: 220px; padding: 12px; background: rgba(12, 22, 36, .96); border: 1px solid var(--line); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 10px 12px; }
.sub a::after { display: none; }
.sub a:hover { background: var(--panel); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; color: var(--ink); }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 55; background: rgba(7, 10, 16, .97); padding: 110px var(--gutter) 40px; display: flex; flex-direction: column; gap: 6px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; overflow-y: auto; }
.menu-open .menu { opacity: 1; visibility: visible; }
.menu a { font-size: 1.5rem; font-weight: 300; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line); }
.menu a.sm { font-size: 1rem; color: var(--muted); padding-left: 16px; border-bottom: 0; padding-block: 5px; }
@media (max-width: 900px) { .nav, .hdr .btn { display: none; } .burger { display: block; } .logo img { height: 38px; } }

/* Portale (home) */
.portal { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--night); }
.portal__pin { position: absolute; inset: 0; }
.portal__motif { position: absolute; left: 50%; top: 50%; height: 45%; max-width: 80vw; width: auto; transform: translate(-50%, -50%); opacity: .4; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent 98%); mask-image: linear-gradient(90deg, #000 78%, transparent 98%); }
.portal__clip { position: absolute; inset: 0; clip-path: inset(11% 37% 11% 37% round 999px 999px 0 0); will-change: clip-path; }
.portal__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transform: scale(1.18); will-change: transform; max-width: none; }
.portal__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,10,16,.55), transparent 40%); }
.portal__txt { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 var(--gutter); pointer-events: none; }
.portal__kicker { position: absolute; left: var(--gutter); right: var(--gutter); top: clamp(92px, 14vh, 130px); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.portal__h1 { display: block; text-align: center; max-width: 18em; font-size: var(--h1); font-weight: 300; line-height: 1.12; letter-spacing: -.01em; }
.pw { display: block; white-space: nowrap; text-shadow: 0 2px 30px rgba(0,0,0,.55); }
.pw b { font-weight: 700; }

.pw--l { text-align: center; }
.pw--r { text-align: center; margin-top: .15em; }
.portal__sub { position: absolute; left: var(--gutter); bottom: clamp(36px, 7vh, 72px); max-width: 26em; color: var(--muted); font-size: .98rem; text-shadow: 0 1px 14px rgba(0,0,0,.7); }
.portal__hint { position: absolute; right: var(--gutter); bottom: clamp(36px, 7vh, 72px); display: flex; align-items: center; gap: 14px; text-decoration: none; }
.portal__hint i { display: block; width: 64px; height: 1px; background: linear-gradient(90deg, var(--neon-orange), var(--neon-magenta), var(--neon-blue)); transform-origin: left; animation: hint 2.4s var(--ease) infinite; }
@keyframes hint { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.portal__veil { position: absolute; inset: 0; background: var(--night); opacity: 0; pointer-events: none; }
@media (max-width: 760px) {
  .portal__clip { clip-path: inset(15% 13% 27% 13% round 999px 999px 0 0); }
  .portal__txt { align-items: flex-end; padding-bottom: 27vh; }
  .portal__h1 { display: block; text-align: center; grid-column: 1; }
  .pw--l, .pw--r { text-align: center; margin-top: .15em; }
  .pw--l::after { content: " "; }
  .portal__sub { display: none; }
  .portal__hint { left: var(--gutter); right: auto; bottom: 7vh; }
}

/* Ticker */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding-block: 18px; background: var(--night); }
.ticker__row { display: flex; width: max-content; animation: tick 46s linear infinite; }
.ticker__row + .ticker__row { margin-top: 10px; animation-direction: reverse; animation-duration: 58s; }
.ticker__row span { font-weight: 600; font-size: .95rem; letter-spacing: .18em; text-transform: uppercase; padding-right: 34px; white-space: nowrap; display: flex; align-items: center; gap: 34px; }
.ticker__row span::after { content: ""; width: 7px; height: 7px; background: var(--neon-magenta); transform: rotate(45deg); }
.ticker__row:nth-child(2) span { color: transparent; -webkit-text-stroke: 1px var(--steel); }
.ticker__row:nth-child(2) span::after { background: var(--neon-blue); }
@keyframes tick { to { transform: translateX(-50%); } }

/* Intro con parole che si accendono */
.intro { position: relative; isolation: isolate; overflow: hidden; }
.intro__grid { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: clamp(24px, 6vw, 80px); align-items: start; }
.intro__text { font-size: clamp(1.2rem, 1vw + .9rem, 1.75rem); font-weight: 500; line-height: 1.4; letter-spacing: -.01em; max-width: 30em; }
.intro__text .w { display: inline-block; }
.intro__more { margin-top: 32px; color: var(--muted); max-width: 36em; }
@media (max-width: 760px) { .intro__grid { grid-template-columns: minmax(0, 1fr); } }

/* Servizi: scorrimento orizzontale */
.hs { position: relative; background: var(--night); border-top: 1px solid var(--line); }
.hs__head { padding-block: clamp(56px, 7vw, 96px) clamp(28px, 4vw, 48px); }
.hs__head .h2 { margin-top: 16px; max-width: 18em; }
.hs__stage { position: relative; }
.hs__track { display: block; }
.hs__panel { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.hs__bg { position: absolute; inset: -6% 0; z-index: -3; }
.hs__bg img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hs__panel::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(7,10,16,.95) 0%, rgba(7,10,16,.82) 50%, rgba(7,10,16,.5) 100%); }
.hs__panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 110% at 100% 0%, color-mix(in srgb, var(--glow) 22%, transparent), transparent 60%); }
.hs__inner { width: min(var(--max), 100%); padding-inline: var(--gutter); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(24px, 6vw, 80px); align-items: center; }
.hs__title { width: min(100%, var(--tw, 420px)); height: auto; margin-bottom: 22px; filter: drop-shadow(0 0 16px color-mix(in srgb, var(--glow) 55%, transparent)); }
.hs__panel p.copy { color: var(--muted); max-width: 32em; }
.hs__panel .tags { margin: 22px 0 28px; }
.hs__prod { display: flex; align-items: flex-end; justify-content: center; gap: 22px; }
.hs__prod img { width: auto; max-width: 46%; height: clamp(120px, 20vh, 230px); filter: drop-shadow(0 22px 28px rgba(0,0,0,.6)); }
.hs__logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 44px; padding: 28px; border: 1px solid var(--line); background: rgba(7,10,16,.5); backdrop-filter: blur(6px); }
.hs__logos img { width: auto; height: var(--h, 28px); opacity: .95; }
.hs__bar { display: none; }
.hmode .hs__stage { height: 100vh; height: 100svh; overflow: hidden; }
.hmode .hs__track { display: flex; width: max-content; height: 100%; }
.hmode .hs__panel { width: 100vw; height: 100%; flex: none; border-top: 0; padding-block: 0; }
.hmode .hs__bar { display: block; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px; height: 2px; background: var(--line); z-index: 5; }
.hmode .hs__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--neon-orange), var(--neon-magenta), var(--neon-blue)); transform-origin: left; transform: scaleX(0); }
.hmode .hs__names { position: absolute; left: var(--gutter); bottom: 46px; z-index: 5; display: flex; gap: 22px; }
.hs__names { display: none; }
.hmode .hs__names { display: flex; }
.hs__names span { font-family: var(--font-label); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); transition: color .3s; }
.hs__names span.on { color: var(--ink); }
@media (max-width: 899px) { .hs__inner { grid-template-columns: minmax(0, 1fr); } .hs__prod { justify-content: flex-start; } }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 12px; border: 1px solid var(--line); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; background: rgba(7,10,16,.5); }

/* Laboratorio */
.lab__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.parax { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line); }
.parax img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; max-width: none; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.stat { padding: 18px 16px; border-top: 2px solid var(--steel); background: var(--panel); }
.stat:nth-child(1) { border-top-color: var(--neon-orange); }
.stat:nth-child(2) { border-top-color: var(--neon-magenta); }
.stat:nth-child(3) { border-top-color: var(--neon-blue); }
.stat b { display: block; font-size: 2rem; font-weight: 300; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.machines { display: flex; align-items: flex-end; gap: 26px; margin-top: 34px; }
.machines img { height: clamp(110px, 12vw, 160px); width: auto; filter: drop-shadow(0 18px 24px rgba(0,0,0,.6)); }
@media (max-width: 820px) { .lab__grid { grid-template-columns: minmax(0, 1fr); } .parax { aspect-ratio: 16 / 11; } }

/* Percorso */
.proc__head { max-width: 30em; }
.proc { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.proc__line { position: absolute; left: 0; right: 0; top: -22px; height: 2px; background: var(--line); }
.proc__line i { display: block; height: 100%; background: linear-gradient(90deg, var(--neon-orange), var(--neon-magenta), var(--neon-blue)); transform-origin: left; transform: scaleX(1); }
.pstep { padding: 22px 20px; background: var(--panel); border-top: 2px solid var(--steel); }
.pstep h3 { font-family: var(--font-label); font-weight: 400; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.pstep p { font-size: .94rem; color: var(--muted); }
@media (max-width: 900px) { .proc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .proc { grid-template-columns: minmax(0, 1fr); } }

/* Persone / CTA */
.cta { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); }
.cta__bg { position: absolute; inset: -8% 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,10,16,.95), rgba(7,10,16,.8) 60%, rgba(7,10,16,.6)); }
.cta__quote { font-size: var(--h2); font-weight: 300; line-height: 1.3; max-width: 22em; text-wrap: balance; }
.cta__quote b { font-weight: 700; }
.cta .copy { margin-top: 22px; max-width: 38em; }
.cta .row { margin-top: 34px; }

/* Pagine interne */
.phero { position: relative; isolation: isolate; overflow: hidden; padding-top: clamp(130px, 17vw, 190px); padding-bottom: clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--line); --glow: var(--neon-orange); }
.phero__bg { position: absolute; inset: -4% 0; z-index: -3; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(7,10,16,.96) 0%, rgba(7,10,16,.84) 55%, rgba(7,10,16,.55) 100%); }
.phero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--glow) 22%, transparent), transparent 60%), linear-gradient(0deg, var(--night), transparent 25%); }
.crumbs { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.phero .title { width: min(100%, var(--tw, 440px)); height: auto; margin-bottom: 26px; filter: drop-shadow(0 0 16px color-mix(in srgb, var(--glow) 55%, transparent)); }
.phero .lead { margin-top: 18px; }
.phero .tags { margin-top: 26px; }
.phero .row { margin-top: 34px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fact { padding: 20px 20px; border: 1px solid var(--line); background: var(--panel); }
.fact h3 { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }
.fact p { font-size: .94rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 560px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.partners { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.partners ul { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; margin-top: 16px; }
.partners img { width: auto; height: var(--h, 26px); opacity: .92; }
.products { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px 36px; margin-top: 8px; }
.products img { width: auto; max-width: 46%; filter: drop-shadow(0 22px 28px rgba(0,0,0,.6)); }
.products.machines2 img { height: clamp(130px, 16vw, 200px); }
.products.led img { height: clamp(160px, 20vw, 250px); }
.next { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 36px; border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(280px, 30vw, 380px); padding: 28px; border: 1px solid var(--line); text-decoration: none; --glow: var(--neon-orange); }
.card img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease); max-width: none; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7,10,16,.92), rgba(7,10,16,.35) 70%, rgba(7,10,16,.2)); transition: background .4s; }
.card:hover img.bg { transform: scale(1.06); }
.card:hover { border-color: var(--glow); }
.card .t { width: min(70%, var(--tw, 300px)); height: auto; margin-bottom: 14px; }
.card p { color: var(--muted); font-size: .95rem; max-width: 30em; }
.card .link-arrow { margin-top: 18px; align-self: flex-start; }
@media (max-width: 760px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* Portfolio */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 16px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 600 .72rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; border-radius: 2px; transition: background .25s, color .25s, border-color .25s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--night); border-color: var(--ink); }
.gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.gal figure { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); transition: opacity .35s, transform .45s var(--ease); }
.gal figure[hidden] { display: none; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); max-width: none; }
.gal figure:hover img { transform: scale(1.06); }
.gal figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(0deg, rgba(7,10,16,.92), transparent); font-size: .8rem; }
.gal figcaption small { display: block; font-family: var(--font-label); font-size: .56rem; letter-spacing: .22em; text-transform: uppercase; color: var(--steel); margin-bottom: 4px; }
.note { margin-top: 28px; font-size: .86rem; color: var(--steel); max-width: 46em; }
@media (max-width: 900px) { .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gal { grid-template-columns: minmax(0, 1fr); } }

/* Timeline */
.tl { position: relative; margin-top: 12px; }
.tl__list { display: grid; gap: 36px; }
.tl__track { position: absolute; top: 8px; bottom: 8px; left: 28px; width: 8px; margin-left: -4px; border-radius: 4px; background: rgba(143,165,181,.25); }
.tl__fill { position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(180deg, var(--neon-orange), var(--neon-magenta), var(--neon-blue)); transform-origin: top; transform: scaleY(1); }
.tl li { position: relative; padding-left: 84px; min-width: 0; }
.node { position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff, #cfd8df); color: #7c8e9b; font-weight: 300; font-size: 1.2rem; box-shadow: 0 0 0 7px rgba(143,165,181,.3); }
.tl .yr { font-weight: 600; font-size: .74rem; letter-spacing: .24em; color: var(--steel); }
.tl h3 { font-weight: 700; font-size: 1.2rem; margin: 2px 0 8px; }
.tl p.d { color: #cfd8df; font-size: .95rem; }
.tl li:last-child h3 { color: var(--neon-orange); }
@media (min-width: 900px) {
  .tl__list { gap: 0; }
  .tl__track { left: 50%; }
  .tl li { width: 50%; padding: 0 76px 52px 0; text-align: right; }
  .tl li:nth-child(even) { margin-left: 50%; padding: 0 0 52px 76px; text-align: left; }
  .tl li:last-child { padding-bottom: 0; }
  .tl li .node { left: auto; right: -28px; }
  .tl li:nth-child(even) .node { right: auto; left: -28px; }
  .tl p.d { max-width: 30em; margin-left: auto; }
  .tl li:nth-child(even) p.d { margin-left: 0; }
}
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.value { padding: 24px 22px; border-top: 2px solid var(--steel); background: var(--panel); }
.value:nth-child(1) { border-top-color: var(--neon-orange); }
.value:nth-child(2) { border-top-color: var(--neon-magenta); }
.value:nth-child(3) { border-top-color: var(--neon-blue); }
.value h3 { font-size: 1rem; margin-bottom: 8px; }
.value p { color: var(--muted); font-size: .94rem; }
@media (max-width: 820px) { .values { grid-template-columns: minmax(0, 1fr); } }

/* Form */
.form { padding: clamp(22px, 3vw, 38px); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(62,166,255,.11), rgba(255,79,154,.07) 60%, rgba(255,154,61,.09)), rgba(12,22,36,.9); display: grid; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > label, .field > .lbl { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); font-weight: 600; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea { width: 100%; min-width: 0; padding: 13px 14px; border-radius: 2px; border: 1px solid var(--line); background: rgba(7,10,16,.78); color: var(--ink); font: 400 1rem var(--font-body); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--neon-blue); outline: none; box-shadow: 0 0 0 3px rgba(62,166,255,.25); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .two { grid-template-columns: minmax(0, 1fr); } }
.pick { display: flex; flex-wrap: wrap; gap: 10px; }
.pick label { cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: inline-block; padding: 10px 14px; border: 1px solid var(--line); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; transition: background .25s, border-color .25s, color .25s; }
.pick input:checked + span { background: var(--ink); color: var(--night); border-color: var(--ink); }
.pick input:focus-visible + span { outline: 2px solid var(--neon-blue); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--neon-orange); }
.status { min-height: 1.4em; font-size: .92rem; color: var(--neon-orange); }
.contact-box { padding: 24px; border: 1px solid var(--line); background: var(--panel); }
.contact-box dt { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); margin-top: 16px; }
.contact-box dt:first-child { margin-top: 0; }
.contact-box dd { font-size: 1.02rem; user-select: all; }
.legal h2 { font-size: 1.15rem; font-weight: 700; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: .96rem; }
.legal ul { list-style: disc; padding-left: 1.2em; margin-top: 8px; }
.todo { background: rgba(255,154,61,.14); color: var(--neon-orange); padding: 1px 6px; border-radius: 2px; }

/* Footer */
.ftr { border-top: 1px solid var(--line); padding-block: 56px 28px; background: var(--night); }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.ftr img { height: 92px; width: auto; }
.ftr h2 { font-family: var(--font-label); font-weight: 400; font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--steel); margin-bottom: 16px; }
.ftr li + li { margin-top: 8px; }
.ftr a { text-decoration: none; color: var(--muted); font-size: .94rem; }
.ftr a:hover { color: var(--ink); }
.ftr p { color: var(--muted); font-size: .92rem; }
.ftr__bot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--steel); letter-spacing: .06em; }
.ftr__bot a { font-size: .78rem; }
@media (max-width: 900px) { .ftr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ftr__grid { grid-template-columns: minmax(0, 1fr); } }

/* Stato iniziale delle animazioni (solo con JS e movimento consentito) */
.anim [data-reveal] { opacity: 0; transform: translateY(26px); }
@media (prefers-reduced-motion: reduce) {
  body::after, .portal__hint i, .ticker__row { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

@keyframes fadein { from { opacity: 0; transform: translateY(14px); } }
.portal__kicker, .portal__sub { animation: fadein 1s .5s var(--ease) backwards; }
@media (prefers-reduced-motion: reduce) { .portal__kicker, .portal__sub { animation: none; } }

/* AGG 26 */
.ftr h2{color:var(--ink);font-size:calc(.62rem + 1.33px);font-weight:700}
.hint-m{display:none}@media (hover:none),(max-width:760px){.hint-d{display:none}.hint-m{display:inline}}
.hint-row{display:flex;justify-content:flex-end;margin-top:32px}
.hint-link{display:inline-flex;align-items:center;gap:14px;text-decoration:none;color:var(--ink);margin-right:var(--hint-shift,0px)}
.hint-link i{display:block;width:64px;height:1px;background:linear-gradient(90deg,var(--neon-orange),var(--neon-magenta),var(--neon-blue));transform-origin:left center;animation:hint 2.4s var(--ease) infinite}
.hint-link:hover{color:var(--ink)}
@media (prefers-reduced-motion:reduce){.hint-link i{animation:none}}
/* AGG 27: header */
.nav a { color: var(--ink); }
.nav { font-family: var(--font-label); font-weight: 700; font-size: calc(.66rem - 1px); letter-spacing: .28em; }
.hdr .btn { margin-left: 34px; padding: 8px 0; gap: 14px; background: transparent; border: 0; border-radius: 0; color: var(--ink); font-family: var(--font-label); font-weight: 700; font-size: calc(.66rem - 1px); letter-spacing: .28em; }
.hdr .btn::before { content: ""; display: block; width: 40px; height: 1px; background: linear-gradient(90deg, var(--neon-orange), var(--neon-magenta), var(--neon-blue)); transform-origin: left center; animation: hint 2.4s var(--ease) infinite; }
.hdr .btn::after { content: none; }
.hdr .btn:hover { background: transparent; border: 0; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .hdr .btn::before { animation: none; } }

/* AGG 33: logo del footer centrato nel suo spazio */
.ftr__grid > div:first-child { display: flex; align-items: center; justify-content: center; align-self: start; }
/* Colonne del footer centrate rispetto alla riga sotto */
@media (min-width: 901px) { .ftr__grid { grid-template-columns: repeat(4, auto); justify-content: center; column-gap: clamp(56px, 8vw, 120px); } }
@media (min-width: 901px) { .ftr__grid > div:nth-child(2) { position: relative; left: 100px; } .ftr__grid > div:nth-child(3) { position: relative; left: 66px; } }

.sub a { font-weight: 400; }
.sub a { font-family: var(--font-body); font-weight: 400; font-size: .8rem; letter-spacing: .08em; white-space: nowrap; }
.sub a { font-size: 16px; letter-spacing: normal; text-transform: none; color: rgb(185, 197, 207); }
.sub a:hover { color: #fff; }
.sub { top: calc(100% + 29px); border: 0; background: rgba(0, 0, 0, .8); backdrop-filter: none; -webkit-backdrop-filter: none; }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -29px; height: 29px; }
.sub a { color: #fff; padding-top: 7.5px; padding-bottom: 7.5px; }
.sub a:hover { color: #fff; }
.sub a { width: fit-content; padding: 7.5px 0; margin: 0 12px; }
.sub a:hover { background: none; }
.sub a::after { display: block; bottom: 5px; }
.sub a { color: rgb(185, 197, 207); }
.sub a:hover { color: #fff; }
.sub { background: rgba(12, 22, 36, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* ---------- Assistente (chat guidata) ---------- */
.chat { position: fixed; right: 22px; bottom: 22px; z-index: 90; font-family: var(--font-body); }
.chat__btn { width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(12,22,36,.92); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 0 rgba(62,166,255,.0); transition: transform .3s var(--ease), box-shadow .3s; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); margin-left: auto; }
.chat__btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0,0,0,.5), 0 0 22px rgba(62,166,255,.35); }
.chat__btn svg { width: 26px; height: 26px; }
.chat.is-open .chat__btn svg { opacity: .7; }
.chat__teaser { position: absolute; right: 0; bottom: 72px; width: max-content; max-width: 240px; padding: 12px 34px 12px 16px; background: var(--ink); color: #0c1624; font-size: 14px; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,.4); cursor: pointer; animation: chat-in .5s var(--ease); }
.chat__teaser::after { content: ""; position: absolute; right: 22px; bottom: -6px; width: 12px; height: 12px; background: var(--ink); transform: rotate(45deg); }
.chat__tx { position: absolute; top: 4px; right: 6px; border: 0; background: none; color: #0c1624; font-size: 18px; line-height: 1; cursor: pointer; padding: 4px; opacity: .6; }
.chat__panel { position: absolute; right: 0; bottom: 72px; width: 340px; max-width: calc(100vw - 32px); height: min(520px, calc(100vh - 120px)); display: flex; flex-direction: column; background: rgba(12,22,36,.97); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0,0,0,.55); animation: chat-in .35s var(--ease); }
.chat__panel[hidden], .chat__teaser[hidden] { display: none; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat__head b { display: block; font-family: var(--font-label); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.chat__head small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.chat__dot { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; flex: none; }
.chat__close { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; padding: 2px 4px; }
.chat__close:hover { color: var(--ink); }
.chat__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat__msg { max-width: 88%; padding: 10px 13px; font-size: 14px; line-height: 1.45; animation: chat-in .3s var(--ease); }
.chat__msg--bot { align-self: flex-start; background: rgba(255,255,255,.07); color: var(--ink); }
.chat__msg--bot a { color: var(--ink); }
.chat__msg--me { align-self: flex-end; background: var(--ink); color: #0c1624; font-weight: 500; }
.chat__chips { display: flex; flex-wrap: wrap; gap: 8px; animation: chat-in .3s var(--ease); }
.chat__chip { border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 13px; padding: 8px 12px; cursor: pointer; transition: background .2s, border-color .2s; }
.chat__chip:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }
.chat__form { display: flex; flex-direction: column; gap: 8px; position: relative; animation: chat-in .3s var(--ease); }
.chat__form input[type="text"], .chat__form textarea { width: 100%; box-sizing: border-box; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--ink); font: inherit; font-size: 14px; padding: 10px 12px; resize: vertical; }
.chat__form input:focus, .chat__form textarea:focus { outline: none; border-color: rgba(255,255,255,.5); }
.chat__ok { font-size: 11.5px; color: var(--muted); line-height: 1.4; display: flex; gap: 8px; align-items: flex-start; }
.chat__ok a { color: var(--ink); }
.chat__ok input { margin-top: 2px; flex: none; }
.chat__send { border: 0; background: var(--ink); color: #0c1624; font-family: var(--font-label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 12px; cursor: pointer; }
.chat__send:disabled { opacity: .6; cursor: default; }
.chat__st { font-size: 12.5px; color: var(--muted); min-height: 1em; margin: 0; }
.chat__alt { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--muted); }
.chat__wa { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; background: #25d366; color: #0b2a17; font-size: 13px; font-weight: 600; text-decoration: none; }
.chat__wa svg { width: 18px; height: 18px; }
@keyframes chat-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .chat { right: 14px; bottom: 14px; } .chat__btn { width: 52px; height: 52px; } .chat__panel { bottom: 64px; height: min(500px, calc(100vh - 100px)); } .chat__teaser { bottom: 64px; } }
@media (prefers-reduced-motion: reduce) { .chat *, .chat__panel, .chat__teaser { animation: none !important; transition: none !important; } }

/* ---- 23/10: header senza riga, footer ---- */
.hdr, .hdr.is-solid { border-bottom-color: transparent; }
@media (min-width: 901px) {
  .ftr__grid > div:nth-child(1) { position: relative; left: 45px; }
  .ftr__grid > div:nth-child(2) { position: relative; left: 85px; }
  .ftr__grid > div:nth-child(3) { position: relative; left: 20px; }
  .ftr__grid > div:nth-child(4) { position: relative; left: -45px; }
  .ftr__bot > span { position: relative; left: 45px; }
  .ftr__bot > a { position: relative; left: -45px; }
}
.ftr__bot { align-items: center; }
.ftr__bot, .ftr__bot a { font-family: var(--font-label); font-weight: 700; font-size: calc(.66rem - 1px); letter-spacing: .28em; text-transform: uppercase; color: var(--ink); }
.ftr__bot a { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.ftr__bot a::before { content: ""; display: block; width: 40px; height: 1px; background: linear-gradient(90deg, var(--neon-orange), var(--neon-magenta), var(--neon-blue)); transform-origin: left center; animation: hint 2.4s var(--ease) infinite; }
@media (prefers-reduced-motion: reduce) { .ftr__bot a::before { animation: none; } }
.ftr__bot, .ftr__bot a { font-size: calc(.66rem - 3px); }
@media (min-width: 901px) { .nav { position: relative; left: 45px; gap: 20px; } }
/* Logo footer nuovo (AF AGG 41) */
@media (min-width:901px){.ftr__grid > div:first-child img{height:auto;width:140px;max-width:none}.ftr__grid{column-gap:clamp(48px,7vw,104px)}}
/* Logo di sfondo home nuovo (AF AGG 41) */
.portal__motif{height:calc(19% + 80px);-webkit-mask-image:none;mask-image:none}
/* Glow scritte home (AF AGG 41) */
.portal__logo,.portal__claim{filter:drop-shadow(0 0 4px rgba(255,255,255,.75)) drop-shadow(0 0 14px rgba(120,190,255,.55)) drop-shadow(0 0 32px rgba(120,190,255,.35))}
/* Niente righe sopra video finale e footer (AF AGG 47) */
.cta,.ftr{border-top:0}
