/* ══════════════════════════════════════════════════════════════════════════
   CITREA — Values Page  (val-*)
   Fully namespaced · Premium design · Zero Bootstrap conflicts.
   Updated: pillars, manifesto, contact form section.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── 1. CSS Custom Properties ─────────────────────────────────────────── */
:root {
  --val-accent:       #F5DF4D;
  --val-accent-glow:  rgba(245, 223, 77, 0.12);
  --val-green:        #007136;
  --val-green-soft:   rgba(0, 113, 54, 0.15);
  --val-bg:           #070b07;
  --val-card:         rgba(9, 13, 9, 0.88);
  --val-border:       rgba(255, 255, 255, 0.07);
  --val-border-soft:  rgba(255, 255, 255, 0.035);
  --val-text:         #9ba5a0;
  --val-text-hi:      #f1f3f5;
  --val-radius:       20px;
  --val-radius-sm:    13px;
  --val-shadow:       0 28px 72px rgba(0, 0, 0, 0.55), 0 2px 10px rgba(0, 0, 0, 0.3);
  --val-shadow-sm:    0 8px 28px rgba(0, 0, 0, 0.32);
}

/* ── 2. Scroll Progress Bar ───────────────────────────────────────────── */
#valProgress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--val-green) 0%, var(--val-accent) 100%);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 9999;
  pointer-events: none;
}

/* ── 3. Hero ──────────────────────────────────────────────────────────── */
.val-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
  background:
    linear-gradient(to bottom,
      rgba(7, 11, 7, 0.20) 0%,
      rgba(7, 11, 7, 0.58) 50%,
      rgba(7, 11, 7, 1.00) 100%
    ),
    radial-gradient(ellipse 130% 90% at 50% 0%, rgba(15, 28, 12, 0.75) 0%, rgba(7, 11, 7, 0.95) 75%),
    #070b07;
  background-size: cover;
  background-position: center top;
}

/* Atmospheric veil */
.val-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -5%,  rgba(245, 223, 77, 0.06) 0%, transparent 65%),
    radial-gradient(ellipse 50% 55% at 92%  30%, rgba(0, 113, 54, 0.10)   0%, transparent 60%),
    radial-gradient(ellipse 45% 60% at 8%   75%, rgba(0, 0, 0, 0.50)      0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Decorative light blades */
.val-blade {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent              0%,
    rgba(0, 113, 54, 0.28)   20%,
    rgba(245, 223, 77, 0.22) 50%,
    rgba(0, 113, 54, 0.28)   80%,
    transparent              100%
  );
  pointer-events: none;
  z-index: 1;
}
.val-blade.b2 { opacity: 0.4; transform: rotate(-0.25deg); }
.val-blade.b3 { opacity: 0.18; }

/* Top cinematic edge */
.val-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 113, 54, 0.5)    20%,
    rgba(245, 223, 77, 0.45) 50%,
    rgba(0, 113, 54, 0.5)    80%,
    transparent 100%
  );
  z-index: 2;
}

/* Subtle grain texture */
.val-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(245,223,77,0.018) 1px, transparent 1px),
    radial-gradient(circle, rgba(0,113,54,0.022)   1px, transparent 1px);
  background-size: 60px 60px, 95px 95px;
  background-position: 0 0, 30px 30px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

/* ── 4. Hero Text Reveal (GSAP mask) ──────────────────────────────────── */
.val-mask {
  overflow: hidden;
  display: block;
  line-height: 1.04;
}
.val-mask > span {
  display: block;
  transform: translateY(108%);
  will-change: transform;
}

/* ── 5. Kicker / Eyebrow ──────────────────────────────────────────────── */
.val-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--val-accent);
  line-height: 1;
}
.val-kicker::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 22px;
  height: 1.5px;
  background: var(--val-accent);
  border-radius: 99px;
}

/* ── 6. Glass Card ────────────────────────────────────────────────────── */
.val-glass {
  position: relative;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.028) 0%, rgba(255, 255, 255, 0.006) 100%),
    var(--val-card);
  border: 1px solid var(--val-border);
  border-radius: var(--val-radius);
  box-shadow: var(--val-shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}
.val-glass::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--val-green) 0%, var(--val-accent) 55%, transparent 100%);
  opacity: 0.6;
  border-radius: 99px;
}

/* ── 7. Accent Bar ────────────────────────────────────────────────────── */
.val-bar {
  height: 1.5px;
  background: linear-gradient(90deg, var(--val-green) 0%, var(--val-accent) 55%, transparent 100%);
  border-radius: 99px;
  transform-origin: left center;
}

/* ── 8. Value Tile Card ───────────────────────────────────────────────── */
.val-tile {
  position: relative;
  background:
    linear-gradient(148deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.005) 100%),
    rgba(9, 14, 9, 0.72);
  border: 1px solid var(--val-border);
  border-radius: var(--val-radius);
  overflow: hidden;
  height: 100%;
  transition:
    transform    0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    box-shadow   0.3s ease;
}
.val-tile::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 223, 77, 0.35) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.val-tile:hover::after { opacity: 1; }

/* ── 9. Grid Wrapper ──────────────────────────────────────────────────── */
.val-grid {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.018) 0%, rgba(255, 255, 255, 0.004) 100%),
    rgba(9, 14, 9, 0.55);
  border: 1px solid var(--val-border);
  border-radius: 26px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

/* ── 10. Sections ─────────────────────────────────────────────────────── */
.val-chapter {
  position: relative;
  padding: 100px 0;
}
.val-chapter + .val-chapter::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--val-border), transparent);
}

/* Section alternation */
#valValues  { background: transparent; }
#valWhy     { background: rgba(0, 0, 0, 0.18); }
#valHow     { background: transparent; }

/* ── 11. Typography ───────────────────────────────────────────────────── */
.val-hero h1 {
  letter-spacing: -0.038em;
  line-height: 1.03;
  color: var(--val-text-hi);
}
.val-chapter h2 {
  letter-spacing: -0.026em;
  line-height: 1.12;
  color: var(--val-text-hi);
}
.val-chapter h3 {
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--val-text-hi);
}
.val-chapter .fw-light,
.val-hero .fw-light,
#valHeroLead {
  font-size: clamp(0.94rem, 1.1vw, 1.06rem);
  line-height: 1.82;
  color: var(--val-text);
  max-width: 68ch;
}

/* Keyword emphasis */
.val-em {
  color: var(--val-accent);
  font-weight: 600;
}

/* ── 12. Badges ───────────────────────────────────────────────────────── */
.val-hero .badge {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  padding: 6px 13px;
  border-radius: 8px;
}

/* ── 13. Hero Buttons ─────────────────────────────────────────────────── */
.val-hero .btn {
  position: relative;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 13px 30px;
  border-radius: 11px;
  transition:
    transform  0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease;
}
.val-hero .btn-primary:hover {
  box-shadow: 0 0 0 4px rgba(245, 223, 77, 0.18), 0 10px 36px rgba(245, 223, 77, 0.15);
}
.val-hero .btn-outline-light:hover {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1), 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ── 14. WHY section – arrow items ────────────────────────────────────── */
#valWhy .val-glass p.fw-light {
  font-size: 0.96rem;
  line-height: 1.74;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.val-arrow {
  font-style: normal;
  display: inline-block;
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1;
}

/* ── 15. CTA Glass (HOW section) ──────────────────────────────────────── */
.val-cta-glass {
  background:
    linear-gradient(135deg, rgba(0, 113, 54, 0.07) 0%, rgba(245, 223, 77, 0.04) 100%),
    var(--val-card);
  border-color: rgba(245, 223, 77, 0.14);
}
.val-cta-glass .btn {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 12px 24px;
  border-radius: 10px;
  transition: box-shadow 0.3s ease, transform 0.25s ease;
}
.val-cta-glass .btn-primary:hover {
  box-shadow: 0 0 0 4px rgba(245, 223, 77, 0.15), 0 8px 28px rgba(245, 223, 77, 0.12);
  transform: translateY(-2px);
}
.val-cta-glass .btn-outline-light:hover {
  transform: translateY(-2px);
}

/* ── 16. Mobile ───────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .val-hero {
    min-height: auto;
    padding: 116px 0 72px;
  }
  .val-chapter {
    padding: 76px 0;
  }
  .val-blade.b2,
  .val-blade.b3 {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .val-hero {
    padding: 104px 0 60px;
  }
  .val-hero h1 {
    font-size: clamp(2.2rem, 9vw, 3rem) !important;
    letter-spacing: -0.025em;
  }
  .val-chapter {
    padding: 64px 0;
  }
  .val-chapter h2 {
    font-size: clamp(1.6rem, 6vw, 2rem) !important;
  }
  .val-glass,
  .val-tile {
    border-radius: var(--val-radius-sm);
  }
  .val-grid {
    border-radius: 18px;
  }
  .val-chapter + .val-chapter::before {
    width: 80%;
  }
  #valHeroLead {
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .val-hero h1 {
    font-size: clamp(2rem, 10vw, 2.8rem) !important;
  }
  .val-chapter h2 {
    font-size: clamp(1.5rem, 7vw, 1.9rem) !important;
  }
  .val-chapter {
    padding: 56px 0;
  }
  .val-cta-glass .d-flex .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}


/* ══════════════════════════════════════════════════════════════════════════
   NUOVI COMPONENTI — Pilastri, Manifesto, Form di contatto
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Hero CTA button ──────────────────────────────────────────────────── */
.val-btn-primary {
  background: var(--val-accent);
  color: #070b07 !important;
  border: none;
}
.val-btn-primary:hover {
  background: #f9e96a;
  box-shadow: 0 0 0 4px rgba(245,223,77,0.20), 0 10px 36px rgba(245,223,77,0.18);
  transform: translateY(-2px);
}

/* ── Scroll hint ──────────────────────────────────────────────────────── */
.val-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}
.val-scroll-hint span {
  display: block;
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.22);
  border-radius: 20px;
  position: relative;
}
.val-scroll-hint span::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 7px;
  background: var(--val-accent);
  border-radius: 4px;
}

/* ── Strip CITREA acronimo ────────────────────────────────────────────── */
.val-strip {
  padding: 48px 0 36px;
  border-top:    1px solid var(--val-border);
  border-bottom: 1px solid var(--val-border);
  background: rgba(0,0,0,0.2);
  text-align: center;
}
.val-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.val-strip-letter {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--c, var(--val-accent));
  line-height: 1;
  padding: 0 18px;
  position: relative;
  text-shadow: 0 0 40px color-mix(in srgb, var(--c, var(--val-accent)) 40%, transparent);
}
.val-strip-sep {
  width: 1px;
  height: 40px;
  background: var(--val-border);
  flex-shrink: 0;
}
.val-strip-sub {
  margin-top: 16px;
  font-size: 0.73rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--val-text);
  opacity: 0.7;
}

/* ── Pillar Tile Card ─────────────────────────────────────────────────── */
.val-tile {
  position: relative;
  background:
    linear-gradient(148deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.005) 100%),
    rgba(9,14,9,0.72);
  border: 1px solid var(--val-border);
  border-radius: var(--val-radius);
  overflow: hidden;
  transition:
    transform    0.35s cubic-bezier(0.16,1,0.3,1),
    border-color 0.3s ease,
    box-shadow   0.3s ease;
  will-change: transform;
}
.val-tile:hover {
  border-color: rgba(245,223,77,0.2);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,223,77,0.07);
}
.val-tile--featured {
  border-color: rgba(245,223,77,0.18);
  background:
    linear-gradient(148deg, rgba(245,223,77,0.045) 0%, rgba(255,255,255,0.004) 100%),
    rgba(9,14,9,0.8);
}

/* Top accent line that fills on hover */
.val-tile-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--ta, var(--val-accent));
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 99px;
}
.val-tile:hover .val-tile-accent,
.val-tile--featured .val-tile-accent { opacity: 1; }

.val-tile-inner {
  padding: 32px 28px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Big letter avatar */
.val-tile-letter {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  background: color-mix(in srgb, var(--lc, var(--val-accent)) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--lc, var(--val-accent)) 25%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--lc, var(--val-accent));
  line-height: 1;
}

.val-tile-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--val-text);
  opacity: 0.7;
  line-height: 1;
}
.val-tile-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--val-text-hi);
  letter-spacing: -0.01em;
  margin-top: 3px;
}

.val-tile-headline {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  font-weight: 700;
  color: var(--val-text-hi);
  letter-spacing: -0.018em;
  line-height: 1.3;
  margin: 0;
}

.val-tile-text {
  font-size: 0.875rem;
  line-height: 1.78;
  color: var(--val-text);
  margin: 0;
  flex-grow: 1;
}

.val-tile-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.val-tile-list li {
  font-size: 0.825rem;
  color: var(--val-text);
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.55;
}
.val-tile-list li i {
  color: var(--val-green);
  flex-shrink: 0;
  font-size: 0.8rem;
}

.val-tile-quote {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--val-accent);
  opacity: 0.8;
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px solid var(--val-border-soft);
  margin-top: auto;
}

/* ── Manifesto strip ──────────────────────────────────────────────────── */
.val-manifesto {
  padding: 72px 0;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0,113,54,0.06) 0%, rgba(245,223,77,0.04) 100%),
    rgba(0,0,0,0.25);
  border-top:    1px solid var(--val-border);
  border-bottom: 1px solid var(--val-border);
}
.val-manifesto::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(245,223,77,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.val-manifesto-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  flex-direction: column;
}
.val-manifesto-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(245,223,77,0.08);
  border: 1px solid rgba(245,223,77,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--val-accent);
  flex-shrink: 0;
}
.val-manifesto-text {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--val-text-hi);
  margin: 0;
  letter-spacing: -0.015em;
}

/* ── Why list (contact section) ───────────────────────────────────────── */
.val-why-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.val-why-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.val-why-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(0,113,54,0.12);
  border: 1px solid rgba(0,113,54,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--val-green);
  margin-top: 2px;
}
.val-why-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--val-text-hi);
  margin-bottom: 3px;
}
.val-why-item p {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--val-text);
  margin: 0;
}

/* ── Trust badge ──────────────────────────────────────────────────────── */
.val-trust-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(0,113,54,0.07);
  border: 1px solid rgba(0,113,54,0.18);
}
.val-trust-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--val-green);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(0,113,54,0.22);
  animation: valDotPulse 2s ease-in-out infinite;
}
@keyframes valDotPulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(0,113,54,0.22); }
  50%      { box-shadow: 0 0 0 6px rgba(0,113,54,0.10); }
}
.val-trust-badge strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--val-text-hi);
  line-height: 1.2;
}
.val-trust-badge span {
  font-size: 0.78rem;
  color: var(--val-text);
}

/* ── Form card ────────────────────────────────────────────────────────── */
.val-form-card {
  padding: 36px 36px 32px;
}
.val-form-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}
.val-form-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(245,223,77,0.08);
  border: 1px solid rgba(245,223,77,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--val-accent);
}
.val-form-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--val-text-hi);
  letter-spacing: -0.015em;
  margin: 0 0 4px;
}
.val-form-subtitle {
  font-size: 0.83rem;
  line-height: 1.65;
  color: var(--val-text);
  margin: 0;
}

/* ── Form fields ──────────────────────────────────────────────────────── */
.val-field {
  position: relative;
}
.val-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--val-text);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.val-label--block {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--val-text);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.val-label-optional {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--val-text);
  opacity: 0.55;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--val-border);
  border-radius: 5px;
  padding: 2px 7px;
  margin-left: 2px;
}
.val-field-hint {
  font-size: 0.72rem;
  color: var(--val-text);
  opacity: 0.5;
  margin: 5px 0 0;
  line-height: 1.4;
}
.val-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--val-border);
  border-radius: 10px;
  color: var(--val-text-hi);
  font-size: 0.9rem;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}
.val-input::placeholder { color: rgba(155,165,160,0.45); }
.val-input:focus {
  border-color: rgba(245,223,77,0.35);
  background: rgba(255,255,255,0.06);
}
.val-textarea {
  resize: vertical;
  min-height: 112px;
}
.val-input-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--val-green), var(--val-accent));
  border-radius: 0 0 10px 10px;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* ── Chips ────────────────────────────────────────────────────────────── */
.val-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.val-chip-wrap input { display: none; }
.val-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 13px;
  border-radius: 8px;
  border: 1px solid var(--val-border);
  background: rgba(255,255,255,0.03);
  color: var(--val-text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
  user-select: none;
}
.val-chip:hover {
  border-color: rgba(245,223,77,0.3);
  background: rgba(245,223,77,0.06);
  color: var(--val-text-hi);
}
.val-chip-wrap input:checked + .val-chip {
  border-color: rgba(245,223,77,0.55);
  background: rgba(245,223,77,0.11);
  color: var(--val-accent);
  box-shadow: 0 0 0 2px rgba(245,223,77,0.08);
}

/* ── Turnstile wrapper ────────────────────────────────────────────────── */
.val-turnstile {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* ── Alert messages ───────────────────────────────────────────────────── */
.val-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
}
.val-alert p { margin: 0; }
.val-alert--success {
  background: rgba(0,113,54,0.12);
  border: 1px solid rgba(0,113,54,0.28);
  color: #4ade80;
}
.val-alert--error {
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(220,38,38,0.25);
  color: #f87171;
}

/* ── Submit button ────────────────────────────────────────────────────── */
.val-form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.val-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 28px;
  border: none;
  border-radius: 11px;
  background: var(--val-accent);
  color: #070b07;
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.3s ease;
}
.val-submit:hover {
  background: #f9e96a;
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(245,223,77,0.18), 0 10px 36px rgba(245,223,77,0.16);
}
.val-submit-text { position: relative; z-index: 1; }
.val-submit-icon { position: relative; z-index: 1; font-size: 1rem; }
.val-submit-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(1);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(245,223,77,0.35);
  pointer-events: none;
  opacity: 0.6;
}
.val-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  color: var(--val-text);
  opacity: 0.65;
  margin: 0;
  line-height: 1.5;
}

/* ── Extra mobile adjustments ─────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .val-form-card { padding: 28px 22px 24px; }
  .val-strip-letter { padding: 0 12px; }
}
@media (max-width: 767.98px) {
  .val-strip-sep { height: 28px; }
  .val-strip-letter { font-size: clamp(1.6rem, 6vw, 2.4rem); padding: 0 8px; }
  .val-tile-inner { padding: 24px 20px 20px; }
  .val-manifesto { padding: 52px 0; }
  .val-manifesto-text { font-size: clamp(1rem, 4vw, 1.25rem); }
}
@media (max-width: 575.98px) {
  .val-form-card { padding: 22px 16px 20px; }
  .val-submit { font-size: 0.88rem; }
}


/* ══════════════════════════════════════════════════════════════════════════
   VIDEO DEMO SECTION  (val-video-* / val-lightbox-* / val-play-*)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Sezione wrapper ─────────────────────────────────────────────────── */
.val-video-section {
  position: relative;
  overflow: hidden;
}
.val-video-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--val-border), transparent);
}

/* ── Video container ─────────────────────────────────────────────────── */
.val-video-wrap {
  position: relative;
  border-radius: var(--val-radius);
  overflow: hidden;
  border: 1px solid rgba(245,223,77,0.12);
  box-shadow:
    0 0 0 1px rgba(0,113,54,0.08),
    0 40px 100px rgba(0,0,0,0.65),
    0 0 80px rgba(0,113,54,0.07);
  aspect-ratio: 16 / 9;
  background: #040806;
  cursor: pointer;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}
.val-video-wrap:hover {
  border-color: rgba(245,223,77,0.22);
  box-shadow:
    0 0 0 1px rgba(0,113,54,0.12),
    0 48px 120px rgba(0,0,0,0.7),
    0 0 100px rgba(0,113,54,0.1);
}
.val-video-wrap:hover .val-play-btn {
  transform: translate(-50%,-50%) scale(1.08);
  box-shadow:
    0 0 0 4px rgba(245,223,77,0.3),
    0 12px 40px rgba(0,0,0,0.55);
}

/* ── Poster area ─────────────────────────────────────────────────────── */
.val-video-poster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(0,113,54,0.13) 0%, transparent 65%),
    radial-gradient(ellipse 45% 50% at 15% 20%, rgba(245,223,77,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 45% at 85% 80%, rgba(0,113,54,0.09) 0%, transparent 60%),
    linear-gradient(160deg, #080d08 0%, #030603 100%);
}

/* Gradient veil (più scuro in basso e in alto) */
.val-video-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,    rgba(4,8,4,0.88) 0%,   transparent 45%),
    linear-gradient(to bottom, rgba(4,8,4,0.50) 0%,   transparent 30%);
  z-index: 1;
  pointer-events: none;
}

/* Texture grain */
.val-video-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    radial-gradient(circle, rgba(245,223,77,0.025) 1px, transparent 1px),
    radial-gradient(circle, rgba(0,113,54,0.03)    1px, transparent 1px);
  background-size: 55px 55px, 85px 85px;
  background-position: 0 0, 27px 27px;
  pointer-events: none;
  opacity: 0.7;
}

/* Brand top-left */
.val-video-brand {
  position: absolute;
  top: 20px;
  left: 22px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.val-video-brand-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--val-green);
  box-shadow: 0 0 7px rgba(0,113,54,0.75);
  animation: valDotPulse 2s ease-in-out infinite;
}

/* ── Play button ─────────────────────────────────────────────────────── */
.val-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  z-index: 10;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: none;
  background: rgba(245,223,77,0.95);
  color: #040806;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform    0.3s cubic-bezier(0.16,1,0.3,1),
    background   0.25s ease,
    box-shadow   0.3s ease;
  box-shadow:
    0 0 0 3px rgba(245,223,77,0.22),
    0 8px 32px rgba(0,0,0,0.55);
  padding: 0;
}
.val-play-btn:hover {
  background: #fce84e;
}
.val-play-btn i { margin-left: 5px; line-height: 1; } /* centramento ottico */

/* Anelli pulsanti attorno al play */
.val-play-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(1);
  border-radius: 50%;
  border: 1.5px solid rgba(245,223,77,0.38);
  width: 80px; height: 80px;
  animation: valPlayRing 2.6s ease-out infinite;
  pointer-events: none;
}
.val-play-ring--2 {
  animation-delay: 0.85s;
  border-color: rgba(245,223,77,0.22);
}
.val-play-ring--3 {
  animation-delay: 1.7s;
  border-color: rgba(245,223,77,0.12);
}
@keyframes valPlayRing {
  0%   { transform: translate(-50%,-50%) scale(1);   opacity: 0.8; }
  100% { transform: translate(-50%,-50%) scale(2.35); opacity: 0;   }
}

/* ── Barra info in basso ─────────────────────────────────────────────── */
.val-video-info {
  position: absolute;
  bottom: 18px;
  left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}
.val-video-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  background: rgba(0,0,0,0.48);
  border: 1px solid var(--val-border);
  padding: 5px 13px;
  border-radius: 99px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.val-video-tag i { color: var(--val-accent); font-size: 0.78rem; }
.val-video-duration {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.38);
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--val-border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ── Video player (inline nel wrapper) ───────────────────────────────── */
.val-video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}

/* ── Transizione overlay e stato playing ─────────────────────────────── */
.val-video-poster {
  transition: opacity 0.45s ease;
}
.val-video-wrap.val--playing .val-video-poster {
  opacity: 0;
  pointer-events: none;
}
/* Cursore default sul wrapper una volta in play (l'overlay ha cursor pointer) */
.val-video-wrap.val--playing {
  cursor: default;
}

/* ── Responsive video section ────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .val-play-btn          { width: 64px; height: 64px; font-size: 1.4rem; }
  .val-play-ring,
  .val-play-ring--2,
  .val-play-ring--3      { width: 64px; height: 64px; }
  .val-video-wrap        { border-radius: var(--val-radius-sm); }
  .val-lightbox-panel    { width: 96vw; border-radius: var(--val-radius-sm); }
  .val-video-info        { padding: 0 14px; bottom: 12px; }
}
@media (max-width: 575.98px) {
  .val-video-brand       { display: none; }
  .val-video-duration    { display: none; }
  .val-lightbox-panel    { border-radius: 12px; }
}

