/* DecorazioneTreni · shared stylesheet (design system + configurator) */
:root {
  --bg: #060509;
  --bg-1: #0b0810;
  --bg-2: #120c18;
  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.12);
  --border-2: rgba(255,255,255,0.2);
  --text: #f6f4f9;
  --text-2: #aaa2b6;
  --text-3: #726a80;
  --accent: #b5179e;        /* magenta-purple */
  --accent-2: #e6007e;      /* magenta */
  --accent-glow: rgba(181,23,158,0.4);
  --purple: #7b2d8b;
  --magenta: #e6007e;
  --orange: #f39200;
  --yellow: #ffc20e;
  --red: #e2001a;
  --radius: 20px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text); overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-weight: 400; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

/* Typography */
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-2); font-family: 'JetBrains Mono', monospace; }
.display { font-weight: 800; letter-spacing: -0.04em; line-height: 0.95;
  background: linear-gradient(180deg, #fff 0%, #c9c2d4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
h1.display { font-size: clamp(48px, 8.6vw, 132px); }
h2.display { font-size: clamp(38px, 5.6vw, 84px); }
h3.display { font-size: clamp(28px, 3.6vw, 48px); }
.muted { color: var(--text-2); }
.lead { font-size: clamp(17px, 1.4vw, 22px); color: var(--text-2); line-height: 1.6; font-weight: 400; }
.lead b { color: var(--text); font-weight: 500; }
.accent { color: var(--accent); }

/* multicolor brand gradient (from logo) */
.brand-gradient {
  background: linear-gradient(120deg, var(--purple) 0%, var(--magenta) 32%, var(--red) 52%, var(--orange) 76%, var(--yellow) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* Noise overlay */
.noise { position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay; }

section { position: relative; padding: 130px 0; }
@media (max-width: 640px) { section { padding: 80px 0; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  transition: all .25s cubic-bezier(.2,.9,.3,1);
  border: 1px solid var(--border); background: var(--surface);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  cursor: pointer; font-family: inherit; color: var(--text); }
.btn:hover { background: var(--surface-2); border-color: var(--border-2); transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 10px 40px -10px var(--accent-glow); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn svg { width: 16px; height: 16px; }

/* Glass card */
.glass { background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px);
  transition: all .7s cubic-bezier(.2,.7,.3,1); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .40s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: .48s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: .56s; }

/* ═══ Top nav — glass pill ═══ */
nav.top {
  position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 100;
  padding: 9px 12px 9px 12px;
  display: flex; justify-content: space-between; align-items: center; gap: 26px;
  background: rgba(14,10,18,0.68);
  backdrop-filter: saturate(180%) blur(28px); -webkit-backdrop-filter: saturate(180%) blur(28px);
  border: 1px solid var(--border); border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
  width: calc(100% - 48px); max-width: 1260px;
}
nav.top .brand-block { display: flex; align-items: center; gap: 12px; flex: none; }
nav.top .brand-chip { background: #fff; border-radius: 12px; padding: 5px 8px;
  display: flex; align-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
nav.top .brand-chip img { height: 26px; width: auto; }
nav.top .brand-tag { font-size: 11px; color: var(--text-3); letter-spacing: .04em;
  font-weight: 400; padding-left: 12px; border-left: 1px solid var(--border); }
nav.top ul { list-style: none; display: flex; gap: 26px; flex: 1; justify-content: center; }
nav.top ul a { font-size: 14px; color: var(--text-2); transition: color .2s;
  letter-spacing: -0.005em; font-weight: 400; }
nav.top ul a:hover { color: var(--text); }
nav.top .cta { background: var(--accent); color: #fff; padding: 10px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500; flex: none;
  box-shadow: 0 8px 30px -6px var(--accent-glow); transition: all .2s;
  display: inline-flex; align-items: center; gap: 8px; }
nav.top .cta:hover { background: var(--accent-2); transform: scale(1.03); }
nav.top .cta svg { width: 14px; height: 14px; }
@media (max-width: 1180px) {
  nav.top .brand-tag { display: none; }
  nav.top ul { gap: 16px; }
}
@media (max-width: 940px) {
  nav.top { padding: 8px 8px 8px 10px; gap: 12px; }
  nav.top ul { display: none; }
  nav.top .cta { padding: 9px 16px; font-size: 13px; }
}

@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); } }

/* ═══ Hero ═══ */
.hero { position: relative; min-height: 100vh; padding: 190px 0 120px;
  display: flex; align-items: center; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 18% 0%, rgba(123,45,139,0.28), transparent 60%),
    radial-gradient(ellipse 70% 55% at 96% 22%, rgba(230,0,126,0.18), transparent 65%),
    radial-gradient(ellipse 60% 50% at 78% 96%, rgba(243,146,0,0.12), transparent 70%),
    var(--bg); }
.hero-bg-glow { position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 900px 700px at 26% 30%, rgba(123,45,139,0.40), transparent 60%),
    radial-gradient(ellipse 800px 600px at 84% 68%, rgba(230,0,126,0.26), transparent 65%),
    radial-gradient(ellipse 700px 500px at 50% 102%, rgba(243,146,0,0.18), transparent 70%),
    radial-gradient(ellipse 600px 400px at 6% 92%, rgba(255,194,14,0.14), transparent 70%);
  filter: blur(8px); animation: heroGlow 14s ease-in-out infinite alternate; }
@keyframes heroGlow {
  0%   { transform: translate3d(0,0,0) scale(1); opacity: .95; }
  100% { transform: translate3d(2%, -1.5%, 0) scale(1.06); opacity: 1; }
}
.hero-grid { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .14;
  background-image: linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 80px 80px; mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000, transparent 80%); }
.hero-train { position: absolute; right: 0; top: 50%; transform: translateY(-30%);
  width: min(70vw, 1100px); z-index: 1; pointer-events: none; opacity: .1;
  color: var(--text); }
.hero-train svg { width: 100%; height: auto; display: block; }

.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-tag { display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  font-size: 13px; color: var(--text); font-weight: 400;
  margin-bottom: 40px; letter-spacing: -0.005em; }
.hero-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 14px var(--accent);
  animation: pulse 2.4s ease-in-out infinite; flex: none; }

.hero h1 { margin-bottom: 32px; max-width: 16ch; }
.hero h1 .accent-word {
  background: linear-gradient(120deg, var(--purple) 0%, var(--magenta) 30%, var(--red) 52%, var(--orange) 78%, var(--yellow) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-style: normal; font-weight: 800;
  filter: drop-shadow(0 6px 40px rgba(230,0,126,0.30));
}
.hero h1 .dot { color: var(--accent); -webkit-text-fill-color: var(--accent); }
.hero p.hero-sub { font-size: clamp(17px, 1.45vw, 22px); color: var(--text-2);
  line-height: 1.6; max-width: 640px; margin-bottom: 40px; font-weight: 400; }
.hero p.hero-sub b { color: var(--text); font-weight: 500; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-ticker { position: absolute; bottom: 34px; left: 0; right: 0;
  display: flex; gap: 36px; align-items: center; padding: 0 32px;
  font-size: 12px; color: var(--text-3); letter-spacing: .28em; text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace; font-weight: 500;
  white-space: nowrap; overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.hero-ticker .ticker-track { display: flex; gap: 36px; align-items: center;
  animation: tickerScroll 38s linear infinite; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hero-ticker .ticker-item { display: inline-flex; align-items: center; gap: 14px; }
.hero-ticker .dot-sep { width: 4px; height: 4px; border-radius: 50%;
  background: var(--text-3); flex: none; }

/* ═══ Stats band ═══ */
.stats-band { padding: 70px 0; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); background: var(--bg-1); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat .num { font-size: clamp(38px, 4.6vw, 68px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1; }
.stat .lbl { margin-top: 12px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-2); font-family: 'JetBrains Mono', monospace; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: 36px 16px; } }

/* ═══ Section heads ═══ */
.section-head { max-width: 920px; margin-bottom: 70px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.section-head .eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--accent); }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { margin-bottom: 22px; }
.section-head h2 em { font-style: italic; padding-right: .14em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section-head h2 .dim { color: var(--text-2); -webkit-text-fill-color: var(--text-2); }

/* ═══ Azienda split ═══ */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.split .copy p + p { margin-top: 18px; }
.split .copy .lead-sm { font-size: 16px; color: var(--text-2); line-height: 1.7; }
.split .copy .lead-sm b { color: var(--text); font-weight: 500; }
.az-card { position: relative; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--border); aspect-ratio: 4/5; }
.az-card img { width: 100%; height: 100%; object-fit: cover; }
.az-badge { position: absolute; left: 22px; bottom: 22px; right: 22px;
  padding: 18px 22px; border-radius: 16px;
  background: rgba(10,8,14,.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-2); display: flex; align-items: center; gap: 16px; }
.az-badge .big { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.az-badge .txt { font-size: 13px; color: var(--text-2); line-height: 1.4; }
.az-bullets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.az-bullets span { font-size: 12.5px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  font-family: 'JetBrains Mono', monospace; letter-spacing: .02em; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 40px; }
  .az-card { aspect-ratio: 16/11; } }

/* ═══ Solution cards ═══ */
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sol { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--border);
  background: var(--bg-1); transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s; }
.sol:hover { transform: translateY(-6px); border-color: var(--border-2); }
.sol .sol-img { aspect-ratio: 4/3; overflow: hidden; }
.sol .sol-img img { width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.sol:hover .sol-img img { transform: scale(1.06); }
.sol .sol-body { padding: 26px 24px 28px; }
.sol .sol-kicker { font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace; color: var(--accent); font-weight: 600; }
.sol h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 12px 0 10px; }
.sol p { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.sol .sol-num { position: absolute; top: 16px; right: 18px; font-size: 13px; font-weight: 700;
  font-family: 'JetBrains Mono', monospace; color: rgba(255,255,255,.5);
  background: rgba(10,8,14,.55); border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 11px; backdrop-filter: blur(10px); }
@media (max-width: 880px) { .sol-grid { grid-template-columns: 1fr; } }

/* ═══ Impianti (feature list) ═══ */
.impianti { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.imp { padding: 22px 20px; border-radius: 16px; border: 1px solid var(--border);
  background: var(--surface); transition: border-color .25s, background .25s, transform .25s; }
.imp:hover { border-color: var(--accent); background: rgba(181,23,158,.06); transform: translateY(-3px); }
.imp .imp-dot { width: 30px; height: 30px; border-radius: 9px; margin-bottom: 14px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.imp .imp-dot svg { width: 16px; height: 16px; }
.imp h4 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.imp p { font-size: 12.5px; color: var(--text-3); margin-top: 5px; line-height: 1.45; }
@media (max-width: 980px) { .impianti { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .impianti { grid-template-columns: 1fr; } }

/* ═══ Stazioni ═══ */
.staz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.staz { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 3/4;
  border: 1px solid var(--border); cursor: default;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s; }
.staz:hover { transform: translateY(-6px); border-color: var(--border-2); }
.staz img { width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.staz:hover img { transform: scale(1.06); }
.staz.soon { background: linear-gradient(160deg, var(--bg-2), var(--bg-1));
  display: grid; place-items: center; }
.staz.soon .soon-in { text-align: center; padding: 24px; }
.staz.soon .soon-in .ico { width: 46px; height: 46px; margin: 0 auto 16px;
  border-radius: 14px; display: grid; place-items: center; color: var(--accent);
  border: 1px solid var(--border-2); background: var(--surface); }
.staz .staz-ov { position: absolute; inset: 0; padding: 26px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(to top, rgba(6,5,9,.9) 0%, rgba(6,5,9,.1) 55%, transparent 100%); }
.staz .staz-cat { font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.staz h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.staz p { font-size: 13px; color: var(--text-2); margin-top: 8px; line-height: 1.5; }
@media (max-width: 880px) { .staz-grid { grid-template-columns: 1fr; } .staz { aspect-ratio: 16/11; } }

/* ═══ Portfolio ═══ */
.port-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; grid-auto-flow: dense; }
.tile { position: relative; overflow: hidden; border-radius: 18px; cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  background: var(--bg-1); border: 1px solid var(--border); }
.tile:hover { transform: translateY(-6px); border-color: var(--border-2); }
.tile-inner { aspect-ratio: 4/3; position: relative; }
.tile.large .tile-inner { aspect-ratio: 16/10; }
.tile.col2 { grid-column: span 2; }
.tile.row2 { grid-row: span 2; }
.tile-inner img { width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.tile:hover .tile-inner img { transform: scale(1.06); }
.tile-overlay { position: absolute; inset: 0; padding: 26px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(to top, rgba(6,5,9,.86) 0%, rgba(6,5,9,.05) 60%, transparent 100%);
  transition: background .35s; }
.tile:hover .tile-overlay { background: linear-gradient(to top, rgba(6,5,9,.92) 0%, rgba(6,5,9,.25) 65%, rgba(6,5,9,.1) 100%); }
.tile-cat { font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 10px; font-family: 'JetBrains Mono', monospace; }
.tile h4 { font-size: clamp(16px, 1.4vw, 22px); font-weight: 600; color: var(--text);
  letter-spacing: -0.01em; line-height: 1.15; margin-bottom: 6px; }
.tile-sub { font-size: 13px; color: var(--text-2); line-height: 1.45;
  opacity: 0; transform: translateY(8px); transition: all .35s ease; }
.tile:hover .tile-sub { opacity: 1; transform: translateY(0); }
.tile.large h4 { font-size: clamp(22px, 2.2vw, 36px); }
@media (max-width: 1100px) { .port-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .port-grid { grid-template-columns: repeat(2, 1fr); }
  .tile.row2 { grid-row: auto; } .tile h4 { font-size: 16px; } .tile-sub { opacity: 1; transform: none; } }

/* ═══ Lavora con noi ═══ */
#lavora { background: var(--bg-1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 44px; }
.work-card { padding: 28px 24px; border-radius: 18px; border: 1px solid var(--border);
  background: var(--surface); transition: border-color .25s, transform .25s, background .25s; }
.work-card:hover { border-color: var(--accent); transform: translateY(-4px); background: rgba(181,23,158,.05); }
.work-card .wc-ico { width: 40px; height: 40px; border-radius: 11px; margin-bottom: 18px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.work-card .wc-ico svg { width: 20px; height: 20px; }
.work-card h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.work-card p { font-size: 13px; color: var(--text-2); margin-top: 8px; line-height: 1.55; }
@media (max-width: 980px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .work-grid { grid-template-columns: 1fr; } }

/* ═══ Partners ═══ */
.partners { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.partners span { font-size: 14px; padding: 12px 22px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  font-weight: 500; letter-spacing: .01em; transition: color .2s, border-color .2s; }
.partners span:hover { color: var(--text); border-color: var(--border-2); }

/* ═══ Contact ═══ */
#contact { background: var(--bg); position: relative; overflow: hidden; }
#contact::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 800px 500px at 50% 50%, rgba(181,23,158,.1), transparent 70%);
  pointer-events: none; }
.contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: .9fr 1.1fr;
  gap: 28px; align-items: stretch; }
.contact-info { padding: 44px; display: flex; flex-direction: column; gap: 26px; }
.contact-info h2 { margin-bottom: 4px; }
.contact-info .ci-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .ci-ico { width: 38px; height: 38px; flex: none; border-radius: 11px;
  display: grid; place-items: center; color: var(--accent);
  border: 1px solid var(--border-2); background: var(--surface); }
.contact-info .ci-ico svg { width: 18px; height: 18px; }
.contact-info .ci-row .lbl { font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-3); font-family: 'JetBrains Mono', monospace; margin-bottom: 4px; }
.contact-info .ci-row .val { font-size: 15px; color: var(--text); line-height: 1.5; }
.contact-card { padding: 44px; position: relative; z-index: 2; border: 1px solid var(--accent);
  box-shadow: 0 40px 100px rgba(0,0,0,.45), 0 0 60px rgba(181,23,158,.14); }
.contact-card h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.contact-card .lead { font-size: 15px; margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: span 2; }
.form-grid label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-2); font-weight: 600; margin-bottom: 8px; display: block;
  font-family: 'JetBrains Mono', monospace; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%; padding: 14px 16px; background: rgba(255,255,255,.03);
  border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); font-family: inherit; font-size: 14px;
  transition: border-color .2s, background .2s; }
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus { outline: none;
  border-color: var(--accent); background: rgba(255,255,255,.05); }
.form-grid textarea { min-height: 110px; resize: vertical; }
.form-grid select { appearance: none; cursor: pointer; }
.form-grid .submit-row { grid-column: span 2; margin-top: 6px; }
.form-grid .submit-row .btn { width: 100%; justify-content: center; padding: 16px; font-size: 15px; }
.privacy-check { grid-column: span 2; }
.privacy-check-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  font-size: 12.5px; color: var(--text-2); line-height: 1.5; text-transform: none;
  letter-spacing: normal; font-family: inherit; font-weight: 400; }
.privacy-check-label input { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); }
.privacy-check-label a { color: var(--text); text-decoration: underline; }
.contact-feedback { margin-top: 18px; padding: 14px 16px; border-radius: 10px;
  background: rgba(181,23,158,.08); border: 1px solid var(--accent);
  font-size: 13px; color: var(--text); display: none; }
.contact-feedback.on { display: block; }
.contact-feedback.success { background: rgba(0,180,80,.08); border-color: #00b450; color: #d0f0d0; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; }
  .contact-info, .contact-card { padding: 32px 26px; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; }
  .form-grid .full, .form-grid .submit-row { grid-column: span 1; } }

/* ═══ Footer ═══ */
footer { background: var(--bg); padding: 64px 32px 40px; border-top: 1px solid var(--border); }
.footer-top { max-width: 1280px; margin: 0 auto; display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px;
  border-bottom: 1px solid var(--border); }
.footer-brand .brand-chip { background: #fff; border-radius: 12px; padding: 8px 10px;
  display: inline-flex; margin-bottom: 18px; }
.footer-brand .brand-chip img { height: 40px; }
.footer-brand p { font-size: 13px; color: var(--text-2); line-height: 1.6; max-width: 320px; }
.footer-col h5 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-3); font-family: 'JetBrains Mono', monospace; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: var(--text-2);
  margin-bottom: 10px; transition: color .2s; line-height: 1.5; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { max-width: 1280px; margin: 28px auto 0; display: flex;
  justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-bottom p { font-size: 12px; color: var(--text-3); letter-spacing: .06em; }
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .socials a { width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); transition: all .2s; }
.footer-bottom .socials a:hover { color: #fff; border-color: var(--accent); background: var(--accent); }
.footer-bottom .socials svg { width: 16px; height: 16px; }
.footer-legal-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.footer-legal-links a { font-size: 11px; color: var(--text-3); text-decoration: underline; transition: color .2s; }
.footer-legal-links a:hover { color: var(--accent); }
@media (max-width: 880px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ═══ Cookie banner ═══ */
#cookie-banner { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 200;
  max-width: 640px; margin: 0 auto; background: var(--bg-1); border: 1px solid var(--border-2);
  border-radius: 16px; padding: 22px 24px; box-shadow: 0 12px 40px rgba(0,0,0,.5);
  display: none; }
#cookie-banner.shown { display: block; }
#cookie-banner p { font-size: 13px; color: var(--text-2); line-height: 1.55; margin-bottom: 16px; }
#cookie-banner a { color: var(--text); text-decoration: underline; }
#cookie-banner .cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
#cookie-banner button { font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 10px 20px; border-radius: 10px; cursor: pointer; border: 1px solid var(--border-2); }
#cookie-banner .cookie-accept { background: var(--accent); color: #fff; border-color: transparent; }
#cookie-banner .cookie-reject { background: transparent; color: var(--text); }
@media (max-width: 640px) { #cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px; } }

/* ═══ Legal pages (privacy/cookie policy) ═══ */
.legal-header { padding: 160px 0 40px; }
.legal-header .back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2);
  font-size: 14px; text-decoration: none; margin-bottom: 28px; }
.legal-header .back:hover { color: var(--text); }
.legal-header h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.legal-header .updated { color: var(--text-3); font-size: 13px; font-family: 'JetBrains Mono', monospace; }
.legal-body { padding-bottom: 120px; }
.legal-body section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.legal-body section:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-body h2 { font-size: 22px; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.01em; }
.legal-body h3 { font-size: 16px; font-weight: 600; margin: 24px 0 10px; color: var(--text); }
.legal-body p { color: var(--text-2); font-size: 15px; margin-bottom: 14px; }
.legal-body ul { color: var(--text-2); font-size: 15px; margin: 0 0 14px 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { text-decoration: underline; }
.legal-body strong { color: var(--text); font-weight: 600; }
table.cookie-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 13.5px; }
table.cookie-table th, table.cookie-table td { text-align: left; padding: 10px 12px; border: 1px solid var(--border); color: var(--text-2); }
table.cookie-table th { color: var(--text); font-weight: 600; background: var(--surface); }
.legal-body .table-wrap { overflow-x: auto; }

@media (max-width: 640px) { .hero-actions .btn { width: 100%; justify-content: center; } }

/* ═══ Configuratore Render (studio) ═══ */
/* ═══ Builder ═══ */
#studio { background: var(--bg-1); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); }
.studio-stage { display: grid; grid-template-columns: 400px 1fr; gap: 56px;
  margin-top: 32px; align-items: flex-start; }
.studio-form { padding: 32px; position: sticky; top: 100px; align-self: flex-start; }
.studio-form h3 { font-size: 22px; font-weight: 600; margin-bottom: 28px;
  letter-spacing: -0.015em; }
.field { margin-bottom: 24px; }
.field-label { display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-2); font-weight: 600; font-family: 'JetBrains Mono', monospace; }
.field-label .opt { color: var(--text-3); font-size: 9px; letter-spacing: .14em; }
.field-hint { font-size: 11px; color: var(--text-3); margin-top: 8px; line-height: 1.4; }
.upload-zone { display: flex; flex-direction: column; align-items: center; padding: 26px 18px;
  border: 1.5px dashed var(--border-2); border-radius: 14px; cursor: pointer;
  transition: all .2s; gap: 10px; background: rgba(255,255,255,.02); text-align: center; }
.upload-zone:hover { border-color: var(--accent); background: rgba(181,23,158,.06); }
.upload-zone.has-file { border-style: solid; border-color: var(--accent);
  background: rgba(181,23,158,.04); }
.upload-zone .up-icon { width: 32px; height: 32px; color: var(--accent); }
.upload-zone .up-title { font-size: 14px; color: var(--text); font-weight: 500;
  letter-spacing: -0.005em; }
.upload-zone .up-sub { font-size: 11px; color: var(--text-3); letter-spacing: .12em;
  text-transform: uppercase; }
.upload-zone img.preview { max-height: 70px; max-width: 100%; margin-top: 6px;
  border-radius: 6px; background: #fff; padding: 8px; object-fit: contain; }
.text-input {
  width: 100%; padding: 14px 16px; background: rgba(255,255,255,.03);
  border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); font-family: inherit; font-size: 14px;
  transition: border-color .2s, background .2s;
}
.text-input:focus { outline: none; border-color: var(--accent);
  background: rgba(255,255,255,.05); }
.color-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.color-cell { display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; background: rgba(255,255,255,.03);
  border: 1px solid var(--border); border-radius: 12px; transition: border-color .2s; }
.color-cell:focus-within { border-color: var(--accent); }
.color-cell input[type="color"] { width: 36px; height: 30px; border: none;
  border-radius: 6px; cursor: pointer; padding: 0; background: transparent; }
.color-cell input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; border-radius: 6px; }
.color-cell input[type="color"]::-webkit-color-swatch { border: none; border-radius: 6px; }
.color-cell .value { font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--text-2); }
.studio-form .submit-row { margin-top: 28px; padding-top: 26px;
  border-top: 1px solid var(--border); }
.studio-form .submit-row .btn { width: 100%; justify-content: center; }
.reset-link { display: block; text-align: center; margin-top: 14px;
  font-size: 11px; color: var(--text-3); cursor: pointer; letter-spacing: .04em;
  transition: color .2s; }
.reset-link:hover { color: var(--accent); }

/* Mockup viewer */
.mockup-wrap { display: flex; flex-direction: column; gap: 22px; }
.mockup-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.mockup-tab { padding: 10px 18px; background: rgba(255,255,255,.04);
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 12px; color: var(--text-2); cursor: pointer; font-family: inherit;
  letter-spacing: 0.02em; transition: all .2s; font-weight: 500; }
.mockup-tab:hover { color: var(--text); border-color: var(--border-2); }
.mockup-tab.active { background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 6px 24px -6px var(--accent-glow); }
.mockup-stage { background: #0a0a0e; border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden; aspect-ratio: 16/10;
  position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.mockup-pane { position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .5s ease-out, visibility 0s linear .5s; }
.mockup-pane.active { opacity: 1; visibility: visible; transition: opacity .5s ease-out; }
.mockup-pane svg { width: 100%; height: 100%; display: block; }
.mockup-caption { font-size: 12px; color: var(--text-3); text-align: center;
  font-family: 'JetBrains Mono', monospace; letter-spacing: .14em; }

.zone-fill { transition: fill .3s ease-out; }
.zone-text { transition: fill .3s ease-out; font-family: 'Inter', sans-serif;
  font-weight: 700; text-anchor: middle; pointer-events: none; }
.zone-logo { transition: opacity .3s ease-out; }

/* ═══ AI render block ═══ */
.ai-block { margin-top: 22px; padding: 18px 18px 16px; border-radius: 14px;
  border: 1px solid var(--border); background:
    linear-gradient(135deg, rgba(181,23,158,.10), rgba(243,146,0,.06) 40%, rgba(255,194,14,.05) 100%),
    rgba(255,255,255,.02); position: relative; overflow: hidden; }
.ai-block::before { content: ""; position: absolute; inset: -1px; border-radius: 14px;
  background: conic-gradient(from 0deg, transparent 0 60%, rgba(243,146,0,.5) 70%, transparent 80%);
  filter: blur(14px); opacity: .35; z-index: 0; pointer-events: none;
  animation: aiSpin 9s linear infinite; }
@keyframes aiSpin { to { transform: rotate(360deg); } }
.ai-block > * { position: relative; z-index: 1; }
.ai-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ai-head .badge { padding: 3px 8px; border-radius: 999px;
  background: linear-gradient(135deg, #b5179e, #f39200); color: #fff;
  font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: .18em; font-weight: 600; }
.ai-head .label { font-size: 12px; color: var(--text); letter-spacing: .04em; font-weight: 500; }
.ai-block .lead-mini { font-size: 12px; color: var(--text-2); line-height: 1.5; margin-bottom: 12px; }
.ai-key-row { display: flex; gap: 8px; margin-bottom: 10px; }
.ai-key-row input { flex: 1; padding: 10px 12px; background: rgba(0,0,0,.35);
  border: 1px solid var(--border); border-radius: 10px; color: var(--text);
  font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.ai-key-row input:focus { outline: none; border-color: var(--accent); }
.ai-key-row .toggle-key { padding: 0 12px; border: 1px solid var(--border);
  background: rgba(255,255,255,.04); border-radius: 10px; color: var(--text-2);
  font-size: 11px; cursor: pointer; font-family: inherit; }
.btn.ai { width: 100%; justify-content: center; padding: 14px;
  background: linear-gradient(135deg, #b5179e 0%, #e6007e 50%, #f39200 100%);
  border: none; color: #fff; font-weight: 600; letter-spacing: -.005em;
  box-shadow: 0 14px 40px -10px rgba(230,0,126,.55), inset 0 1px 0 rgba(255,255,255,.25);
  position: relative; overflow: hidden; }
.btn.ai::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-110%); transition: transform .8s ease; }
.btn.ai:hover::after { transform: translateX(110%); }
.btn.ai:disabled { opacity: .65; cursor: not-allowed; }
.ai-status { font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--text-3); letter-spacing: .14em; text-transform: uppercase;
  margin-top: 10px; min-height: 14px; text-align: center; }
.ai-status.err { color: #ff7a70; text-transform: none; letter-spacing: 0; font-size: 11px; }
.ai-status.ok { color: #6bd49a; }

/* AI render overlay on mockup */
.ai-render { position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .6s ease; background: #0a0a0e; }
.ai-render.shown { opacity: 1; visibility: visible; }
.ai-render img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-render .ribbon { position: absolute; top: 14px; left: 14px;
  padding: 6px 12px; border-radius: 999px; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  background: linear-gradient(135deg, #b5179e, #f39200); color: #fff;
  box-shadow: 0 6px 24px -4px rgba(230,0,126,.55);
  display: inline-flex; align-items: center; gap: 8px; }
.ai-render .ribbon::before { content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 10px #fff; animation: pulse 2s ease-in-out infinite; }

/* Variant picker (banchina · 3 render) */
.variant-pick { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 4;
  padding: 6px; border-radius: 999px;
  background: rgba(10,10,14,.7); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); border: 1px solid var(--border); }
.variant-pick button { width: 56px; height: 36px; border-radius: 8px; padding: 0;
  border: 1px solid var(--border); background-color: #0a0a0e;
  background-size: cover; background-position: center;
  cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s, transform .2s; }
.variant-pick button:hover { opacity: .85; transform: translateY(-1px); }
.variant-pick button.active { opacity: 1; border-color: var(--accent);
  box-shadow: 0 6px 18px -6px var(--accent-glow); }

.ai-loading { position: absolute; inset: 0; display: none; align-items: center;
  justify-content: center; background: rgba(10,10,14,.78); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); z-index: 5; flex-direction: column; gap: 18px; }
.ai-loading.on { display: flex; }
.ai-loading .scan { width: 64%; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #e6007e, #f39200, #e6007e, transparent);
  background-size: 200% 100%; animation: scanMove 1.6s ease-in-out infinite; }
@keyframes scanMove { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.ai-loading .lbl { font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--text-2); }
.ai-loading .lbl b { color: var(--accent); font-weight: 600; }

@media (max-width: 980px) {
  .studio-stage { grid-template-columns: 1fr; gap: 32px; }
  .studio-form { position: static; }
}

/* ═══ Inner pages ═══ */
.page-hero { position: relative; padding: 180px 0 70px; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 20% 0%, rgba(123,45,139,0.28), transparent 60%),
    radial-gradient(ellipse 60% 50% at 95% 10%, rgba(230,0,126,0.16), transparent 65%),
    var(--bg); border-bottom: 1px solid var(--border); }
.page-hero .crumb { font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3); font-family: 'JetBrains Mono', monospace; margin-bottom: 18px; }
.page-hero .crumb a { color: var(--text-2); } .page-hero .crumb a:hover { color: var(--accent); }
.page-hero h1 { max-width: 18ch; margin-bottom: 22px; }
.page-hero h1 em { font-style: italic; padding-right: .14em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-hero .lead { max-width: 720px; }
.prose { max-width: 760px; }
.prose p { font-size: 16px; color: var(--text-2); line-height: 1.75; margin-bottom: 18px; }
.prose p b { color: var(--text); font-weight: 500; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  background: var(--bg-1); transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s; }
.news-card:hover { transform: translateY(-6px); border-color: var(--border-2); }
.news-card .nc-img { aspect-ratio: 16/10; overflow: hidden; }
.news-card .nc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-card:hover .nc-img img { transform: scale(1.06); }
.news-card .nc-body { padding: 24px; }
.news-card .nc-date { font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); font-family: 'JetBrains Mono', monospace; font-weight: 600; }
.news-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 12px 0 8px; }
.news-card p { font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
@media (max-width: 880px) { .news-grid { grid-template-columns: 1fr; } }
