/* ============================================================
   Leonardo Brustolin — One-page · Dark premium + AI glow
   Accento: ciano / blu elettrico
   ============================================================ */

:root {
  --bg:          #2A1E15;
  --bg-2:        #34261A;
  --surface:     rgba(255,255,255,.05);
  --surface-2:   rgba(255,255,255,.085);
  --border:      rgba(255,255,255,.13);
  --border-2:    rgba(255,255,255,.22);
  --text:        #F4ECE3;
  --text-dim:    #A99C8D;
  --cyan:        #F0925E;
  --cyan-2:      #DC6A3A;
  --cyan-ink:    #2A1810;
  --cyan-glow:   rgba(237,139,92,.30);
  --violet:      #F4B863;

  --container: 1180px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow: 0 30px 70px -30px rgba(0,0,0,.75);
  --glow: 0 0 0 1px rgba(237,139,92,.22), 0 16px 50px -18px var(--cyan-glow);

  --ff-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --step: clamp(1rem, .94rem + .3vw, 1.1rem);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
  font-family: var(--ff-body);
  font-size: var(--step);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
/* ambient background glows */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(600px 500px at 78% -5%, rgba(237,139,92,.16), transparent 60%),
    radial-gradient(700px 600px at 8% 12%, rgba(240,178,92,.10), transparent 55%),
    radial-gradient(800px 700px at 90% 95%, rgba(237,139,92,.08), transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .035;
  background-image: radial-gradient(rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 38px 38px;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Typography ---------- */
h1,h2,h3,h4 { font-family: var(--ff-display); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 1.7rem + 3.9vw, 5rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.3rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.55rem); }
.lead { font-size: clamp(1.08rem, 1rem + .5vw, 1.35rem); color: var(--text-dim); }
.accent { color: var(--cyan); }
.gradient-text {
  background: linear-gradient(100deg, var(--cyan), var(--violet), var(--cyan));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 9s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 26px; }
.section { padding-block: clamp(72px, 6vw, 130px); position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--ff-display); font-size: .92rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 22px;
}
.nowrap { white-space: nowrap; }

/* immagini reali: visibili solo quando il file esiste (classe .has-img via JS) */
.has-img { background-size: cover; background-repeat: no-repeat; }
.portrait.has-img .ph-label,
.about-photo.has-img .ph-note,
.vino .media.has-img .m-note { display: none; }
.gallery-item .frame.has-img { color: transparent; }
.gallery-item .frame.has-img::after { opacity: 0; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--cyan); opacity: .6; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head .lead { margin-top: 18px; }

/* ---------- Scroll progress bar ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 100;
  background: linear-gradient(90deg, var(--cyan), var(--violet)); box-shadow: 0 0 12px var(--cyan-glow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: 15px 28px; border-radius: var(--radius-pill);
  font-family: var(--ff-display); font-weight: 500; font-size: .98rem; line-height: 1;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn--primary { background: var(--cyan); color: var(--cyan-ink); box-shadow: 0 10px 36px -12px var(--cyan-glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px -10px var(--cyan-glow), 0 0 0 4px rgba(237,139,92,.12); }
.btn--ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border-2); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  transition: background .3s ease, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(42,30,21,.72); backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { font-family: var(--ff-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; white-space: nowrap; }
.brand .accent { text-shadow: 0 0 16px var(--cyan-glow); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { position: relative; font-size: .92rem; color: var(--text-dim); transition: color .2s; font-weight: 500; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--cyan); transition: width .25s ease; border-radius: 2px; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { width: 100%; box-shadow: 0 0 10px var(--cyan-glow); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; align-items: center; justify-content: center; border: 1px solid var(--border); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
.site-header.open .nav-toggle span { background: transparent; }
.site-header.open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.site-header.open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 110px; padding-bottom: 60px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; width: 100%; }
.tag {
  display: inline-flex; align-items: center; gap: .6em; background: var(--surface);
  border: 1px solid var(--border-2); padding: 9px 16px; border-radius: var(--radius-pill);
  font-size: .85rem; color: var(--text-dim); margin-bottom: 28px;
}
.tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(237,139,92,.2); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(237,139,92,.35);} 50%{box-shadow:0 0 0 6px rgba(237,139,92,0);} }
.hero-loc { font-family: var(--ff-display); font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 28px; }
.hero-loc .hl-accent { color: var(--cyan); }
.hero h1 { margin-bottom: 26px; }
.hero .lead { max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-claim { margin-top: 38px; font-family: var(--ff-display); font-style: italic; font-size: 1.1rem; color: var(--text-dim); border-left: 2px solid var(--cyan); padding-left: 16px; }

/* hero visual */
.hero-visual { position: relative; aspect-ratio: 4/5; }
.portrait {
  position: absolute; inset: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, rgba(237,139,92,.14), rgba(240,178,92,.12) 60%, var(--bg-2));
  border: 1px solid var(--border-2); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
}
.portrait .ph-label { color: var(--text-dim); font-size: .9rem; text-align: center; padding: 0 24px; }
.hero-visual .blob {
  position: absolute; border-radius: 50%; filter: blur(50px); z-index: -1;
}
.blob.b1 { width: 280px; height: 280px; background: var(--cyan-glow); top: -40px; right: -30px; animation: float 9s ease-in-out infinite; }
.blob.b2 { width: 240px; height: 240px; background: rgba(240,178,92,.28); bottom: -40px; left: -40px; animation: float 11s ease-in-out infinite reverse; }
@keyframes float { 0%,100%{transform:translate(0,0);} 50%{transform:translate(14px,-22px);} }
.float-badge {
  position: absolute; background: rgba(15,20,24,.85); backdrop-filter: blur(10px);
  border: 1px solid var(--border-2); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow);
  font-size: .82rem; display: flex; align-items: center; gap: 10px;
}
.float-badge .big { font-family: var(--ff-display); font-weight: 700; font-size: 1.2rem; color: var(--cyan); display: grid; place-items: center; }
.float-badge .big svg { width: 22px; height: 22px; display: block; }
.float-badge.fb1 { top: 18%; left: -34px; animation: float 7s ease-in-out infinite; }
.float-badge.fb2 { bottom: 14%; right: -28px; animation: float 8.5s ease-in-out infinite reverse; }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); color: var(--text-dim); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint .mouse { width: 22px; height: 34px; border: 1.5px solid var(--border-2); border-radius: 12px; position: relative; }
.scroll-hint .mouse::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 3px; height: 6px; background: var(--cyan); border-radius: 2px; animation: wheel 1.6s infinite; }
@keyframes wheel { 0%{opacity:1;top:6px;} 100%{opacity:0;top:16px;} }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 64px; }
.stat { padding: 28px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .25s, background .25s; }
.stat:hover { border-color: var(--border-2); background: var(--surface-2); }
.stat .num { font-family: var(--ff-display); font-size: clamp(2.1rem,1.4rem+2vw,3rem); font-weight: 700; color: var(--text); line-height: 1; }
.stat .num .accent { color: var(--cyan); }
.stat .stat-label { margin-top: 14px; font-family: var(--ff-display); font-weight: 600; font-size: .98rem; color: var(--text); }
.stat .stat-sub { margin-top: 5px; font-size: .82rem; color: var(--text-dim); line-height: 1.45; }

/* ---------- Marquee loghi ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); border-block: 1px solid var(--border); padding-block: 26px; }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: scrollx 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--ff-display); font-weight: 600; font-size: 1.3rem; color: var(--text-dim); opacity: .7; white-space: nowrap; transition: color .2s, opacity .2s; }
.marquee-track span:hover { color: var(--cyan); opacity: 1; }
@keyframes scrollx { to { transform: translateX(-50%); } }
.marquee-label { text-align: center; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 22px; }

/* ---------- Cards / glass ---------- */
.glass { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
/* skip link (accessibilità) */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--cyan); color: var(--cyan-ink); padding: 12px 18px; border-radius: 0 0 10px 0; font-weight: 600; font-family: var(--ff-display); }
.skip-link:focus { left: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.card { padding: 32px; transition: transform .25s ease, border-color .25s, box-shadow .25s, background .25s; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, var(--cyan), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { transform: translateY(-6px); background: var(--surface-2); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card .ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(150deg, rgba(237,139,92,.14), rgba(240,178,92,.05)); border: 1px solid var(--border-2); color: var(--cyan); margin-bottom: 22px; }
.card .ico svg { width: 23px; height: 23px; }
.card .ico--ai { color: var(--violet); background: linear-gradient(150deg, rgba(240,178,92,.16), rgba(237,139,92,.04)); }
/* card senza icona: titolo in evidenza */
.card--title h3 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 16px; }
.card--title h3::after { content: ""; display: block; width: 38px; height: 2px; margin-top: 16px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), transparent); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-dim); }
.badge { display: inline-block; font-family: var(--ff-display); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 6px 13px; border-radius: var(--radius-pill); margin-bottom: 16px; border: 1px solid var(--border-2); }
.badge--mkt { color: var(--cyan); background: rgba(237,139,92,.08); }
.badge--ai { color: var(--violet); background: rgba(240,178,92,.10); }
.badge--win { color: var(--cyan-ink); background: var(--cyan); border-color: transparent; }
ul.ticks { margin-top: 18px; display: grid; gap: 10px; }
ul.ticks li { position: relative; padding-left: 28px; font-size: .95rem; color: var(--text-dim); }
ul.ticks li::before { content: "→"; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }
.result { margin-top: 18px; font-weight: 600; color: var(--cyan); font-size: .92rem; display: flex; gap: 8px; }
.card-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); font-size: .8rem; color: var(--text-dim); }

/* progetti compatti */
#progetti .grid-3 { gap: 18px; }
#progetti .card { padding: 24px; }
#progetti .card h3 { font-size: 1.14rem; margin-bottom: 8px; }
#progetti .card p { font-size: .86rem; line-height: 1.55; }
#progetti .badge { font-size: .62rem; padding: 4px 10px; margin-bottom: 12px; }
#progetti .result { font-size: .8rem; margin-top: 12px; }
.proj-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.proj-links a { font-size: .72rem; padding: 5px 11px; border-radius: var(--radius-pill); border: 1px solid var(--border-2); color: var(--text-dim); transition: .2s; }
.proj-links a:hover { color: var(--cyan); border-color: var(--cyan); }

/* icone contatti */
.contact-info .ci-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border-2); background: var(--surface); color: var(--cyan); flex: none; }
.contact-info .ci-ico svg { width: 17px; height: 17px; }
.contact-info a, .contact-info span { align-items: center; }

/* gallery (chi sono — speech, eventi, lavori) */
.gallery-wrap { margin-top: 64px; }
.gallery-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.gallery-head h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); }
.gallery-head .hint { font-size: .82rem; color: var(--text-dim); }
.gallery { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.gallery-track { display: flex; gap: 20px; width: max-content; animation: scrollx 72s linear infinite; }
.gallery:hover .gallery-track { animation-play-state: paused; }
.gallery-item { width: 340px; flex: none; }
.gallery-item .frame {
  position: relative; aspect-ratio: 3/2; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-2); background: linear-gradient(150deg, rgba(237,139,92,.12), rgba(240,178,92,.08) 60%, var(--bg-2));
  display: grid; place-items: center; color: var(--text-dim); font-size: .8rem; transition: border-color .25s, transform .25s;
}
.gallery-item .frame::after { content: ""; position: absolute; inset: 0; background: radial-gradient(300px 200px at 75% 15%, rgba(237,139,92,.16), transparent 60%); opacity: .7; }
.gallery-item:hover .frame { border-color: var(--cyan); transform: translateY(-4px); }
.gallery-item .cap { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gallery-item .cap strong { font-family: var(--ff-display); font-weight: 600; font-size: .98rem; }
.gallery-item .cap span { font-size: .78rem; color: var(--cyan); white-space: nowrap; }

/* skills tags */
.tags { display: flex; flex-wrap: wrap; gap: 12px; }
.tags li { padding: 9px 16px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); font-size: .88rem; color: var(--text-dim); transition: .2s; }
.tags li:hover { border-color: var(--cyan); color: var(--cyan); }
.tags--center { justify-content: center; }

/* riquadro valore aggiunto (rete di professionisti) */
.valueadd { margin-top: 26px; padding: 36px 40px; border-radius: var(--radius-lg); border: 1px solid var(--border-2); background: linear-gradient(120deg, rgba(237,139,92,.09), rgba(240,178,92,.06) 55%, transparent); position: relative; overflow: hidden; }
.valueadd::after { content: ""; position: absolute; top: -60px; right: -40px; width: 240px; height: 240px; border-radius: 50%; background: var(--cyan-glow); filter: blur(70px); opacity: .5; pointer-events: none; }
.va-tag { display: inline-block; font-family: var(--ff-display); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); border: 1px solid var(--border-2); border-radius: var(--radius-pill); padding: 6px 14px; margin-bottom: 18px; }
.valueadd h3 { font-size: clamp(1.4rem, 1.15rem + 1vw, 2.05rem); line-height: 1.12; margin-bottom: 14px; position: relative; }
.valueadd p { color: var(--text-dim); max-width: 78ch; position: relative; }

/* ---------- About highlight ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.about-photo { position: sticky; top: 100px; aspect-ratio: 3/4; border-radius: var(--radius-lg); border: 1px solid var(--border-2); background: linear-gradient(160deg, rgba(240,178,92,.14), rgba(237,139,92,.06) 55%, var(--bg-2)); overflow: hidden; box-shadow: var(--shadow); }
.about-photo .ph-note { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-dim); font-size: .85rem; text-align: center; padding: 24px; }
.about-photo .ph-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; background: linear-gradient(0deg, rgba(7,9,11,.85), transparent); }
.about-photo .ph-cap strong { font-family: var(--ff-display); display: block; font-size: 1rem; }
.about-photo .ph-cap span { font-size: .82rem; color: var(--text-dim); }

/* ---------- Vino spotlight ---------- */
.vino { overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border); position: relative; }
.vino .glassbg { position: absolute; inset: 0; background: radial-gradient(700px 400px at 100% 0%, rgba(237,139,92,.12), transparent 55%), radial-gradient(600px 400px at 0% 100%, rgba(240,178,92,.10), transparent 55%); z-index: -1; }
.vino-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.vino .media { position: relative; background: linear-gradient(160deg, #2A1C12, #160F0A); min-height: 420px; border-right: 1px solid var(--border); overflow: hidden; }
.vino .media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 300px at 70% 20%, rgba(237,139,92,.18), transparent 60%); }
.vino .media .m-note { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-dim); font-size: .85rem; z-index: 1; }
.vino .media .m-cap { position: absolute; left: 26px; bottom: 24px; z-index: 1; }
.vino .media .m-cap strong { font-family: var(--ff-display); font-size: 1.25rem; line-height: 1.25; color: var(--cyan); display: block; max-width: 15ch; }
.vino .media .m-cap span { font-size: .84rem; color: var(--text-dim); }
.vino .body { padding: clamp(34px,4vw,60px); }
.problems { display: grid; gap: 16px; margin-top: 28px; }
.problem { padding: 20px 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.problem h4 { font-size: 1rem; margin-bottom: 6px; color: var(--text); }
.problem p { font-size: .9rem; color: var(--text-dim); }
.problem .sol { color: var(--cyan); font-size: .86rem; margin-top: 8px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.step { padding: 32px; position: relative; }
.step .n { font-family: var(--ff-display); font-size: 2.8rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1.5px var(--cyan); opacity: .8; line-height: 1; }
.step h3 { margin: 14px 0 10px; }
.step p { color: var(--text-dim); font-size: .95rem; }

/* ---------- Testimonials ---------- */
.quote { padding: 30px; }
.quote .stars { color: var(--cyan); letter-spacing: 3px; margin-bottom: 14px; }
.quote blockquote { font-family: var(--ff-display); font-size: 1.1rem; line-height: 1.5; }
.quote .who { margin-top: 18px; font-size: .88rem; color: var(--text-dim); }
.quote--soon { border-style: dashed; display: flex; flex-direction: column; }
.quote--soon blockquote { color: var(--text-dim); font-style: italic; font-weight: 400; flex: 1; }
.q-person { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.q-avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; background: linear-gradient(140deg, rgba(237,139,92,.25), rgba(240,178,92,.2)); border: 1px solid var(--border-2); }
.q-meta { display: grid; gap: 7px; }
.q-line { height: 9px; border-radius: 5px; background: var(--surface-2); }
.q-line.s1 { width: 96px; } .q-line.s2 { width: 132px; }
/* risultati */
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.result-panel { padding: 32px; }
.rp-tag { display: inline-block; font-family: var(--ff-display); font-size: .74rem; font-weight: 600; letter-spacing: .08em; color: var(--cyan); border: 1px solid var(--border-2); border-radius: var(--radius-pill); padding: 6px 14px; margin-bottom: 26px; }
.metrics-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.metric-box .metric { font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.2rem); line-height: 1; background: linear-gradient(100deg, var(--cyan), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric-box .m-up { color: #4ED6A3; font-size: .76rem; font-weight: 600; margin-top: 7px; }
.metric-box .m-name { color: var(--text-dim); font-size: .84rem; margin-top: 4px; }
.rp-note { margin-top: 24px; color: var(--text-dim); font-size: .8rem; line-height: 1.5; }
.rp-head { margin-bottom: 22px; }
.rp-head strong { font-family: var(--ff-display); font-size: 1.05rem; display: block; }
.rp-head span { font-size: .82rem; color: var(--text-dim); }
.bars { display: grid; gap: 11px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 44px; align-items: center; gap: 12px; font-size: .85rem; }
.bar-row .bl { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .bt { height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.bar-row .bf { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.bar-row .bv { color: var(--text-dim); text-align: right; font-variant-numeric: tabular-nums; }
.insight { margin-top: 18px; padding: 28px 32px; border-left: 3px solid var(--cyan); }
.insight strong { font-family: var(--ff-display); font-size: 1.12rem; color: var(--cyan); }
.insight p { margin-top: 10px; color: var(--text-dim); max-width: 80ch; }
@media (max-width: 900px) { .results-grid { grid-template-columns: 1fr; } }

.testi-note { text-align: center; margin-top: 30px; color: var(--text-dim); font-size: .9rem; }
.testi-note a { color: var(--cyan); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info { display: grid; gap: 14px; margin-top: 30px; }
.contact-info a, .contact-info span { display: flex; align-items: center; gap: 12px; color: var(--text-dim); }
.contact-info a:hover { color: var(--cyan); }
.form { display: grid; gap: 16px; padding: 34px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .82rem; color: var(--text-dim); font-family: var(--ff-display); letter-spacing: .04em; }
.field input, .field textarea { width: 100%; padding: 14px 16px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--border-2); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(237,139,92,.14); }
.field textarea { resize: vertical; min-height: 120px; }
.form .note { font-size: .8rem; color: var(--text-dim); }

/* ---------- Demo chatbot ---------- */
.chat { max-width: 720px; margin-inline: auto; padding: 0; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--border); font-family: var(--ff-display); font-size: .9rem; color: var(--text-dim); }
.chat-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan-glow); }
.chat-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; min-height: 200px; max-height: 360px; overflow-y: auto; }
.msg { max-width: 82%; padding: 13px 16px; border-radius: 16px; font-size: .94rem; line-height: 1.55; animation: msgIn .35s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg.bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.msg.user { align-self: flex-end; background: var(--cyan); color: var(--cyan-ink); border-bottom-right-radius: 5px; font-weight: 500; }
.msg.typing { color: var(--text-dim); font-style: italic; }
.chat-chips-label { padding: 0 22px 10px; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.chat-chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 22px 18px; }
.chat-chips button { animation: msgIn .3s ease; }
.chat-chips button { font-size: .82rem; padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border-2); color: var(--text-dim); background: var(--surface); transition: .2s; }
.chat-chips button:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-1px); }
.chat-input { display: flex; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--border); }
.chat-input input { flex: 1; padding: 13px 16px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--border-2); color: var(--text); font: inherit; }
.chat-input input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(237,139,92,.14); }
.chat-input button { padding: 13px 20px; }
.demo-note { text-align: center; margin: 26px auto 0; color: var(--text-dim); font-size: .96rem; line-height: 1.55; max-width: 620px; padding: 20px 28px; border: 1px solid var(--border-2); border-radius: var(--radius); background: var(--surface); }
.demo-note strong { color: var(--cyan); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { border-radius: var(--radius-lg); padding: clamp(44px,5vw,80px); text-align: center; position: relative; overflow: hidden; border: 1px solid var(--border-2); background: radial-gradient(120% 160% at 50% 0%, rgba(237,139,92,.16), transparent 60%), var(--bg-2); }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { color: var(--text-dim); max-width: 56ch; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; margin-top: 30px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 56px 30px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: .92rem; }
.footer-links a { color: var(--text-dim); } .footer-links a:hover { color: var(--cyan); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; font-size: .82rem; color: var(--text-dim); }

/* ---------- CTA fissa mobile ---------- */
.mobile-cta { display: none; }
@media (max-width: 720px) {
  .mobile-cta {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(42,30,21,.92); backdrop-filter: blur(12px); border-top: 1px solid var(--border);
    transition: transform .3s ease;
  }
  .mobile-cta .btn { flex: 1; justify-content: center; padding: 14px; }
  .mobile-cta--hide { transform: translateY(130%); }
  body { padding-bottom: 78px; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .blob, .float-badge, .tag .dot, .scroll-hint .mouse::before, .gradient-text { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .vino-inner, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { width: 100%; max-width: 420px; margin-inline: auto; aspect-ratio: 4/5; }
  .about-photo { position: static; max-width: 420px; }
  .vino .media { min-height: 240px; border-right: none; border-bottom: 1px solid var(--border); }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .scroll-hint { display: none; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn { display: none; }
  .brand { font-size: 1rem; }
  .nav-toggle { display: flex; }
  .site-header.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: fixed; top: 76px; left: 0; right: 0; padding: 26px;
    background: rgba(42,30,21,.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
  }
  .site-header.open .nav-links a { font-size: 1.1rem; }
  .stats, .grid-2, .grid-3, .steps { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .stats { gap: 30px; }
  .float-badge { display: none; }
}
