/* ============================================================
   Ludovica Dagna - Websites for Artists landing
   Identity pulled 1:1 from ludovicadagna.art:
   Cormorant Garamond + Raleway · wine #9B2355 · gold #C8962A · warm blush off-white
   ============================================================ */

:root {
  --bg: #FAF7F6;
  --bg-blush: #F8EEEF;
  --blush: #F9EEF1;
  --card: #FFFAFB;
  --text: #1A1315;
  --text-m: #5C4848;
  --text-l: #8A7272;
  --border: #EDD5DC;
  --accent: #9B2355;
  --accent-deep: #6E1A3A;
  --accent-mid: #C4657A;
  --accent-light: #F0C4D0;
  --gold: #C8962A;

  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Raleway", -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1360px;
  --gutter: clamp(22px, 5.5vw, 76px);
  --section-y: clamp(84px, 13vh, 176px);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-luxe: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Lenis: il browser NON deve ri-ammorbidire lo scroll gestito da Lenis (conflitto = scroll lentissimo) */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: 0; }
p { margin: 0; }
em { font-style: italic; color: var(--accent); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--accent); color: #fff; padding: 12px 18px; }
.skip-link:focus { left: 16px; top: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-family: var(--body); font-size: 13px; font-weight: 500; line-height: 1;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 17px 30px; min-height: 50px;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary { background: var(--accent); color: var(--card); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0) scale(0.97); }
.btn-cream { background: var(--card); color: var(--accent); }
.btn-cream:hover { background: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 12px 22px; min-height: 42px; font-size: 12px; letter-spacing: 0.12em; }
.btn-lg { padding: 19px 40px; min-height: 56px; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow, .section-label, .final-eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow-rule { width: 42px; height: 1px; background: var(--gold); display: inline-block; }
.section-label { color: var(--text-l); margin-bottom: 22px; }
.label-num { font-family: var(--display); font-size: 15px; letter-spacing: 0; color: var(--gold); font-style: italic; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 14px -10px rgba(110, 26, 58, 0.18); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 74px; }
.wordmark { display: inline-flex; flex-direction: column; line-height: 1; }
.wordmark-name { font-family: var(--display); font-size: 23px; font-weight: 500; letter-spacing: 0.01em; }
.wordmark-sub { font-family: var(--body); font-size: 9px; font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.header-nav { display: flex; gap: 34px; margin-left: auto; margin-right: 8px; }
.header-nav a { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-m); position: relative; padding-block: 6px; }
.header-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: center; transition: transform .3s ease-out; }
.header-nav a:hover { color: var(--accent); }
.header-nav a:hover::after { transform: scaleX(1); }
.wordmark.small .wordmark-name { font-size: 20px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(128px, 20vh, 208px); padding-bottom: var(--section-y); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-title { font-size: clamp(2.9rem, 7.4vw, 6.6rem); line-height: 1.0; letter-spacing: -0.01em; margin-top: clamp(24px, 4vh, 40px); font-weight: 400; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: block; will-change: transform; }
.hero-sub { margin-top: clamp(26px, 4vh, 40px); max-width: 46ch; font-size: clamp(1.05rem, 1.4vw, 1.24rem); color: var(--text-m); font-weight: 300; line-height: 1.68; }
.hero-actions { margin-top: clamp(32px, 5vh, 46px); display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--text-l); max-width: 26ch; line-height: 1.5; letter-spacing: 0.02em; }
.hero-figure { position: relative; }
.hero-scroll { position: absolute; left: var(--gutter); bottom: 34px; display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-l); }
.hero-scroll-line { width: 46px; height: 1px; background: var(--border); position: relative; overflow: hidden; }
.hero-scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: translateX(-100%); animation: scrollLine 2.6s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: translateX(-100%); } 60%,100% { transform: translateX(100%); } }

/* ---------- Frames / artwork placeholders ---------- */
.frame {
  position: relative; overflow: hidden; background: var(--card);
  border: 1px solid var(--border); box-shadow: 0 30px 60px -40px rgba(110, 26, 58, 0.4);
}
.frame::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(200, 150, 42, 0.35); pointer-events: none; z-index: 2; }
.frame::after { content: ""; position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1.1s var(--ease); }
.frame:hover::after { transform: scale(1.05); }
.frame-portrait { aspect-ratio: 4 / 5; }
.frame-cap { position: absolute; left: 18px; bottom: 16px; z-index: 3; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--card); mix-blend-mode: difference; }
/* placeholder art "paintings" - swap ::after background-image with real photos */
.art-1::after { background: radial-gradient(120% 90% at 30% 20%, #C4657A 0%, #9B2355 45%, #3c1020 100%); }
.art-2::after { background: linear-gradient(150deg, #E7C9A6 0%, #C8962A 55%, #6E1A3A 100%); }
.art-3::after { background: linear-gradient(160deg, #2b2226 0%, #5C4848 60%, #8A7272 100%); }
.art-4::after { background: radial-gradient(90% 120% at 70% 30%, #F0C4D0 0%, #C4657A 50%, #6E1A3A 100%); }
.art-5::after { background: linear-gradient(135deg, #F8EEEF 0%, #C8962A 40%, #9B2355 100%); }
.art-portrait::after { background-image: url("assets/ludovica-portrait.jpg"); background-position: center 30%; }

/* ---------- Marquee ---------- */
.marquee-section { border-block: 1px solid var(--border); padding-block: 28px; overflow: hidden; background: var(--bg-blush); }
.marquee { display: flex; }
.marquee-track { display: flex; align-items: center; gap: 44px; white-space: nowrap; padding-right: 44px; animation: marquee 34s linear infinite; }
.marquee-track span { font-family: var(--display); font-size: clamp(1.15rem, 2vw, 1.7rem); color: var(--text-m); font-style: italic; }
.marquee-track .dot { color: var(--gold); font-size: 9px; font-style: normal; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-head { max-width: 60ch; margin-bottom: clamp(44px, 7vh, 92px); }
.section-title { font-size: clamp(2rem, 4.8vw, 3.9rem); line-height: 1.04; letter-spacing: -0.005em; font-weight: 400; }

/* Services */
.services { background: var(--bg-blush); }
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.pillar { background: var(--bg-blush); padding: clamp(30px, 4vw, 60px); transition: background-color .4s var(--ease); }
.pillar:hover { background: var(--card); }
.pillar-num { font-family: var(--display); font-style: italic; font-size: 20px; color: var(--gold); margin-bottom: 26px; }
.pillar h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 14px; font-weight: 500; }
.pillar p { color: var(--text-m); font-size: 16px; font-weight: 300; max-width: 40ch; }

/* Works gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); padding-inline: var(--gutter); max-width: var(--maxw); margin: 0 auto; }
.art { margin: 0; }
.art .frame { aspect-ratio: 3 / 4; }
.art figcaption { margin-top: 14px; font-size: 12px; letter-spacing: 0.06em; color: var(--text-l); }

/* Proof / quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(30px, 4vw, 60px); }
.quote { margin: 0; padding-top: 30px; border-top: 1px solid var(--border); }
.quote blockquote { margin: 0 0 24px; font-family: var(--display); font-size: clamp(1.3rem, 1.9vw, 1.7rem); line-height: 1.34; font-weight: 400; color: var(--text); }
.quote figcaption { display: flex; flex-direction: column; gap: 3px; }
.q-name { font-weight: 500; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.q-role { font-size: 13px; color: var(--text-l); }

/* Steps */
.steps-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.step { display: flex; gap: clamp(24px, 5vw, 72px); padding-block: clamp(30px, 4vw, 52px); border-bottom: 1px solid var(--border); align-items: baseline; }
.step-num { font-family: var(--display); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.6rem); color: var(--gold); min-width: 2ch; }
.step h3 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); margin-bottom: 8px; font-weight: 500; }
.step p { color: var(--text-m); max-width: 54ch; font-weight: 300; }
.steps-cta { margin-top: clamp(44px, 6vh, 76px); }

/* About */
.about-grid { display: grid; grid-template-columns: 0.8fr 1fr; gap: clamp(34px, 6vw, 96px); align-items: center; }
.about-media .frame { max-width: 420px; }
.about-text .section-title { margin-bottom: 28px; }
.about-text p { color: var(--text-m); margin-bottom: 20px; max-width: 50ch; font-weight: 300; font-size: 1.05rem; }
.about-sign { font-family: var(--display); font-style: italic; font-size: 1.4rem; color: var(--accent) !important; }

/* FAQ */
.faq-list { border-top: 1px solid var(--border); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 22px; padding-block: clamp(22px, 3vw, 32px); font-size: clamp(1.2rem, 2vw, 1.6rem); font-family: var(--display); font-weight: 500; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--accent); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.faq-icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-icon::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-item[open] .faq-icon::after { transform: scaleY(0); opacity: 0; }
.faq-body { padding-bottom: clamp(22px, 3vw, 32px); }
.faq-body p { color: var(--text-m); max-width: 68ch; font-weight: 300; }

/* Final CTA - wine */
.final-cta { background: linear-gradient(150deg, var(--accent) 0%, var(--accent-deep) 100%); color: var(--card); padding-block: clamp(96px, 16vh, 208px); text-align: center; }
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final-eyebrow { color: var(--gold); margin-bottom: 26px; }
.final-title { font-size: clamp(2.4rem, 6.6vw, 5.4rem); line-height: 1.02; font-weight: 400; }
.final-title { color: var(--card); }
.final-sub { margin: 24px 0 42px; color: color-mix(in srgb, var(--card) 72%, transparent); font-size: 1.06rem; font-weight: 300; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding-block: 44px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 30px; }
.footer-nav a { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-m); transition: color .2s var(--ease); }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { font-size: 12px; letter-spacing: 0.08em; color: var(--text-l); }

/* ============ MODAL ============ */
.modal { position: fixed; inset: 0; z-index: 300; display: none; }
.modal.is-open { display: block; }
.modal-scrim { position: absolute; inset: 0; background: rgba(26, 19, 21, 0.55); backdrop-filter: blur(3px); animation: fade .3s var(--ease); }
.modal-dialog { position: absolute; inset: auto 0 0 0; margin-inline: auto; width: min(560px, 100%); background: var(--card); border-radius: 16px 16px 0 0; padding: clamp(28px, 4vw, 48px); max-height: 92vh; overflow-y: auto; animation: sheetUp .4s var(--ease); }
@media (min-width: 640px) { .modal.is-open { display: grid; place-items: center; padding: 24px; } .modal-dialog { position: relative; inset: auto; border-radius: 4px; border: 1px solid var(--border); animation: pop .35s var(--ease); } }
@keyframes fade { from { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border: none; background: transparent; font-size: 26px; line-height: 1; color: var(--text-l); border-radius: 50%; }
.modal-close:hover { background: var(--blush); color: var(--accent); }

.form-progress { height: 2px; background: var(--border); overflow: hidden; margin-bottom: 28px; }
.form-progress span { display: block; height: 100%; width: 33.33%; background: var(--accent); transition: width .4s var(--ease); }
.form-step-count { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-l); margin-bottom: 20px; }
.form-step { border: none; margin: 0; padding: 0; display: none; }
.form-step.is-active { display: block; animation: fade .3s var(--ease); }
.form-q { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; line-height: 1.16; padding: 0; margin-bottom: 22px; }
.form-q-2 { margin-top: 34px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--border); background: var(--card); color: var(--text); padding: 12px 20px; border-radius: 40px; font-size: 14px; font-weight: 400; letter-spacing: 0.02em; min-height: 44px; transition: all .18s var(--ease); }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-selected { background: var(--accent); color: var(--card); border-color: var(--accent); }

.field { display: block; margin-bottom: 24px; }
.field-label { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-m); margin-bottom: 9px; }
.field input { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); padding: 15px 16px; font-size: 16px; font-family: var(--body); background: var(--card); color: var(--text); transition: border-color .18s var(--ease); }
.field input::placeholder { color: #c3b3b3; }
.field input:focus { outline: none; border-color: var(--accent); }
.field-help { display: block; font-size: 12.5px; color: var(--text-l); margin-top: 8px; }
.input-prefix { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); padding-left: 14px; transition: border-color .18s var(--ease); }
.input-prefix:focus-within { border-color: var(--accent); }
.input-prefix span { color: var(--text-l); font-size: 16px; }
.input-prefix input { border: none; padding-left: 6px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--text-m); line-height: 1.55; margin-top: 8px; font-weight: 300; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.consent a { text-decoration: underline; color: var(--accent); }
.field-error { color: var(--accent-deep); font-size: 13px; min-height: 18px; margin-top: 12px; }

.form-nav { display: flex; gap: 12px; margin-top: 34px; }
.form-nav .btn { flex: 1; }
.form-nav .js-prev { flex: 0 0 auto; }

.form-done { text-align: center; padding: 20px 0 8px; }
.form-done h3 { font-family: var(--display); font-size: 2rem; font-weight: 500; margin-bottom: 12px; }
.form-done p { color: var(--text-m); font-weight: 300; }
.form-done a { text-decoration: underline; color: var(--accent); }
.done-mark { width: 58px; height: 58px; border-radius: 50%; border: 2px solid var(--accent); margin: 0 auto 22px; position: relative; }
.done-mark::after { content: ""; position: absolute; left: 20px; top: 15px; width: 12px; height: 23px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(42deg); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-luxe), transform .7s var(--ease-luxe); }
.reveal.is-visible { opacity: 1; transform: none; }
/* immagini/frame: entrano assestandosi (scale-settle, da 21st.dev) */
.reveal-scale { transform: translateY(20px) scale(0.96); }
/* titoli: blur-in parola per parola ("ink developing") */
.section-title .w, .final-title .w {
  display: inline-block; opacity: 0; filter: blur(4px); transform: translateY(10px);
  transition: opacity .45s ease-out, filter .45s ease-out, transform .45s ease-out;
  transition-delay: calc(var(--wi, 0) * 90ms);
}
.is-visible .section-title .w, .is-visible .final-title .w { opacity: 1; filter: none; transform: none; }

/* ---------- Browser frame (hero + case studies) ---------- */
.browser { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(110, 26, 58, 0.4); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--bg-blush); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-light); display: block; }
.browser-bar i:nth-child(2) { background: #E7C9A6; }
.browser-bar i:nth-child(3) { background: var(--border); }
.browser-bar em { margin-left: 12px; font-style: normal; font-size: 11px; letter-spacing: 0.04em; color: var(--text-l); font-family: var(--body); }
.browser-shot { display: block; width: 100%; aspect-ratio: 16 / 11; background-size: cover; background-position: top center; background-repeat: no-repeat; background-color: var(--blush); }
.browser-lg .browser-shot { aspect-ratio: 4 / 3; }

/* Case studies grid */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 34px); padding-inline: var(--gutter); max-width: var(--maxw); margin: 0 auto clamp(48px, 7vh, 92px); }
.case { margin: 0; }
.case .browser { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.case:hover .browser { transform: translateY(-6px); box-shadow: 0 40px 70px -40px rgba(110, 26, 58, 0.5); }
.case figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; }
.case-name { font-family: var(--display); font-size: 1.25rem; font-weight: 500; }
.case-link { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.work .quotes { margin-top: clamp(20px, 4vh, 40px); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.plan { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: clamp(30px, 3.6vw, 52px); display: flex; flex-direction: column; }
.plan-featured { border-color: var(--accent); box-shadow: 0 30px 60px -44px rgba(110, 26, 58, 0.5); }
.plan-sculptor { border-color: var(--gold); }
.plan-badge.gold { background: var(--gold); color: #4A2E05; }
.plan-badge { position: absolute; top: -11px; left: clamp(30px, 3.6vw, 52px); background: var(--accent); color: var(--card); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; padding: 6px 12px; border-radius: 40px; overflow: hidden; }
.plan-badge::after { content: ""; position: absolute; inset: 0; transform: translateX(-130%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  animation: badgeShine 4s ease-in-out infinite; }
@keyframes badgeShine { 0%, 55% { transform: translateX(-130%) skewX(-20deg); } 80%, 100% { transform: translateX(130%) skewX(-20deg); } }
.plan-name { font-family: var(--display); font-size: 1.6rem; font-weight: 500; }
.plan-price { font-family: var(--display); font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 500; color: var(--accent); line-height: 1.1; margin: 6px 0 4px; }
.plan-tag { color: var(--text-m); font-size: 15px; margin-bottom: 26px; }
.plan-list { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.plan-list li { position: relative; padding-left: 26px; color: var(--text-m); font-size: 15px; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg); }
.plan .btn { margin-top: auto; }
.plan-note { margin-top: clamp(26px, 4vh, 40px); max-width: 760px; color: var(--text-l); font-size: 14px; line-height: 1.7; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cases { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 440px; }
  .about-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; max-width: 640px; }
  .pillars { grid-template-columns: 1fr; }
  .header-nav { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-actions { align-items: flex-start; }
  .gallery { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .hero-title .line > span { transform: none !important; }
  .frame:hover::after { transform: none; }
  .section-title .w, .final-title .w { opacity: 1 !important; filter: none !important; transform: none !important; }
}

/* ============================================================
   FUNNEL v2 - conversion sections (sticky CTA, stats, PAS,
   testimonials carousel, guarantee, trust). Brand-consistent.
   ============================================================ */

.btn-quiet { background: transparent; color: var(--text-m); border-color: transparent; }
.btn-quiet:hover { color: var(--accent); transform: none; }

/* Hero trust strip */
.hero-trust { margin-top: 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.avatars { display: inline-flex; }
.avatars span { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-light); color: var(--accent-deep);
  font-family: var(--display); font-size: 13px; font-weight: 500; display: grid; place-items: center;
  border: 2px solid var(--bg); margin-left: -9px; }
.avatars span:first-child { margin-left: 0; }
.hero-trust-text { font-size: 13px; color: var(--text-l); max-width: 40ch; line-height: 1.5; letter-spacing: .01em; }
.hero-trust-text strong { color: var(--text-m); font-weight: 500; }

/* Stats bar */
.stats-section { background: var(--bg); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-block: 1px solid var(--border); }
.stat { background: var(--bg); text-align: center; padding: clamp(30px, 5vw, 56px) 14px; }
.stat b { display: block; font-family: var(--display); font-size: clamp(2.6rem, 6vw, 4.1rem); color: var(--accent); font-weight: 500; line-height: 1; letter-spacing: -.01em; }
.stat span { display: block; margin-top: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-l); }

/* Problem / Solution (PAS) */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 30px); }
.problem-col { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: clamp(26px, 3.6vw, 46px); }
.problem-col.solve { background: var(--blush); border-color: var(--accent-light); }
.pc-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-l); margin-bottom: 18px; }
.problem-col.solve .pc-label { color: var(--accent); }
.x-list, .check-list { list-style: none; margin: 0; padding: 0; }
.x-list li, .check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; font-size: 15.5px; color: var(--text-m); font-weight: 300; border-bottom: 1px solid var(--border); line-height: 1.45; }
.x-list li:last-child, .check-list li:last-child { border-bottom: none; }
.x-list svg { color: var(--text-l); flex: none; margin-top: 2px; }
.check-list svg { color: var(--accent); flex: none; margin-top: 2px; }

/* Work CTA */
.work-cta { text-align: center; margin-top: clamp(38px, 5vh, 64px); }

/* Testimonials carousel */
.testimonials { background: var(--bg-blush); }
.tcarousel { position: relative; max-width: 760px; margin: 0 auto; overflow: hidden; }
.ttrack { display: flex; transition: transform .6s var(--ease-luxe); }
.tslide { flex: 0 0 100%; margin: 0; padding: 6px clamp(6px, 3vw, 30px); text-align: center; }
.tslide blockquote { margin: 0 0 22px; font-family: var(--display); font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.3; color: var(--text); font-weight: 400; }
.tslide figcaption { display: flex; flex-direction: column; gap: 3px; }
.tnav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; }
.tarrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); color: var(--text-m); display: grid; place-items: center; transition: border-color .2s var(--ease), color .2s var(--ease); }
.tarrow:hover { border-color: var(--accent); color: var(--accent); }
.tdots { display: flex; gap: 8px; }
.tdot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); border: none; padding: 0; cursor: pointer; transition: all .3s var(--ease); }
.tdot.active { background: var(--accent); width: 22px; border-radius: 5px; }

/* Guarantee / risk reversal */
.guar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 28px); }
.guar { text-align: center; padding: clamp(18px, 2.4vw, 26px) 12px; }
.guar svg { color: var(--gold); margin-bottom: 15px; }
.guar h3 { font-family: var(--display); font-size: 1.25rem; font-weight: 500; margin-bottom: 8px; }
.guar p { font-size: 14px; color: var(--text-m); font-weight: 300; line-height: 1.5; }
.guarantee .steps-cta { text-align: center; }

/* Sticky conversion bar */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: color-mix(in srgb, var(--card) 95%, transparent); backdrop-filter: saturate(1.2) blur(12px);
  border-top: 1px solid var(--border); box-shadow: 0 -8px 30px -20px rgba(110, 26, 58, .35);
  transform: translateY(110%); transition: transform .45s var(--ease-luxe); }
.sticky-cta.show { transform: none; }
.sticky-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 11px; }
.sticky-text { font-size: 14px; color: var(--text-l); }
.sticky-text strong { color: var(--text); font-family: var(--display); font-size: 17px; font-weight: 500; margin-right: 4px; }
.sticky-cta .btn { flex: none; }

/* Responsive */
@media (max-width: 860px) {
  .problem-grid { grid-template-columns: 1fr; }
  .guar-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero-trust { align-items: flex-start; }
  .sticky-sub { display: none; }
  .sticky-text strong { font-size: 15px; }
  .sticky-inner { padding-block: 9px; }
  .stat b { font-size: 2.4rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

/* ============================================================
   FUNNEL v3 - flagship tier, mobile-max pass, safe areas
   ============================================================ */

.plan-badge.dark { background: var(--text); color: var(--card); }
.plan-flagship { border-color: var(--text); }
.plan-flagship .plan-price { color: var(--text); }

/* Mobile-max pass */
.sticky-cta { padding-bottom: env(safe-area-inset-bottom, 0px); }
@media (max-width: 1160px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .section { padding-block: clamp(56px, 9vh, 90px); }
  .section-head { margin-bottom: 34px; }
  .cases { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 24px 20px; }
  .hero { padding-top: 108px; }
  .hero-grid { gap: 34px; }
  .hero-title { font-size: clamp(2.5rem, 12vw, 3.4rem); }
  .hero-sub { font-size: 1rem; }
  .hero-scroll { display: none; }
  .tslide blockquote { font-size: 1.35rem; }
  .step { gap: 16px; }
  .faq-item summary { font-size: 1.05rem; gap: 12px; }
  .final-title { font-size: 2.3rem; }
  .btn-lg { padding: 17px 26px; min-height: 52px; }
  .header-inner { height: 62px; }
  .wordmark-name { font-size: 19px; }
  .wordmark-sub { letter-spacing: .22em; }
  .btn-sm { padding: 11px 14px; font-size: 11px; }
  .guar-grid { grid-template-columns: 1fr; }
  .guar { display: grid; grid-template-columns: 34px 1fr; text-align: left; gap: 4px 12px; padding: 14px 4px; }
  .guar svg { grid-row: span 2; margin: 3px 0 0; }
  .stat { padding: 24px 10px; }
  .stat span { font-size: 9.5px; letter-spacing: .1em; }
  .marquee-track span { font-size: 1rem; }
  .problem-col { padding: 22px 18px; }
  .x-list li, .check-list li { font-size: 14.5px; padding: 10px 0; }
}

/* Language toggle */
.lang-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; letter-spacing: .1em; color: var(--border); }
.lang-toggle button { border: none; background: none; padding: 6px 2px; font-size: 11.5px; letter-spacing: .1em; color: var(--text-l); text-transform: uppercase; }
.lang-toggle button.on { color: var(--accent); font-weight: 600; }
.lang-toggle button:hover { color: var(--accent); }
@media (max-width: 640px) { .lang-toggle { position: absolute; top: 70px; right: 22px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 2px 10px; } }
.case-links { display: inline-flex; gap: 16px; }
.case-links .case-link:first-child { color: var(--accent); }


/* Cookie banner (pari evidenza Accetta/Rifiuta, norma Garante) */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120; margin: 0 auto; max-width: 620px;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 16px 18px;
  box-shadow: 0 18px 50px -20px rgba(110, 26, 58, .4); display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.cookie-banner p { margin: 0; font-size: 13px; color: var(--text-m); flex: 1 1 300px; line-height: 1.55; }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cb-actions { display: flex; gap: 8px; }
.cb-btn { border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: 3px;
  padding: 11px 20px; font-family: var(--body); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.cb-btn:hover { border-color: var(--accent); color: var(--accent); }
.cb-btn.cb-accept { background: var(--accent); border-color: var(--accent); color: var(--card); }
.cb-btn.cb-accept:hover { background: var(--accent-deep); }

/* ============ Modale d'acquisto (checkout diretto) ============ */
.buy-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 2.6px; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.buy-title { font-family: var(--display); font-size: clamp(26px, 4vw, 34px); font-weight: 600; color: var(--text); margin: 0 0 16px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.buy-price { color: var(--accent); }
.buy-points { list-style: none; margin: 0 0 14px; padding: 0; }
.buy-points li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 14.5px; color: var(--text-m); border-bottom: 1px solid var(--border); }
.buy-points li:last-child { border-bottom: 0; }
.buy-points svg { flex: 0 0 auto; margin-top: 2px; color: var(--gold); }
.buy-scope { font-size: 13px; color: var(--text-m); background: var(--blush); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin: 0 0 14px; }
.buy-consent { margin: 2px 0 4px; }
.buy-pay { width: 100%; justify-content: center; display: inline-flex; align-items: center; gap: 10px; font-size: 16px; padding: 16px 22px; margin-top: 12px; }
.buy-pay[disabled] { opacity: .65; pointer-events: none; }
.buy-methods { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin: 14px 0 4px; }
.buy-methods img { height: 26px; width: auto; border: 1px solid var(--border); border-radius: 5px; background: #fff; }
.buy-fine { text-align: center; font-size: 12px; color: var(--text-l); margin: 8px 0 2px; }
.buy-alt { text-align: center; font-size: 13px; color: var(--text-m); margin: 10px 0 0; }
.buy-alt a { color: var(--accent); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent-light); }

/* Piano di pagamento (unica soluzione / 3 rate) */
.buy-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.buy-plan { position: relative; display: flex; flex-direction: column; gap: 2px; border: 1.5px solid var(--border); border-radius: 10px; padding: 11px 13px; cursor: pointer; transition: border-color .25s var(--ease), background .25s var(--ease); }
.buy-plan input { position: absolute; opacity: 0; pointer-events: none; }
.buy-plan.is-selected { border-color: var(--accent); background: var(--blush); }
.bp-name { font-size: 12px; font-weight: 600; letter-spacing: .4px; color: var(--text-m); }
.buy-plan.is-selected .bp-name { color: var(--accent-deep); }
.bp-amount { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--text); }
.buy-plan.is-selected .bp-amount { color: var(--accent); }
.buy-plan-note { font-size: 12.5px; color: var(--text-m); background: var(--blush); border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; margin: 0 0 12px; }
@media (max-width: 420px) { .buy-plans { grid-template-columns: 1fr; } }
