/* ============================================================
   REVAMPING FOTOVOLTAICO - Landing Page Styles
   Energia Solare Srl
   Redesign: Organic Biophilic + Sustainable Energy palette
   Typography: Poppins (headings) + Open Sans (body)
   ============================================================ */

/* ---------- CSS Variables — Sustainable Energy Palette ---------- */
:root {
  --rv-primary: #059669;
  --rv-primary-dark: #047857;
  --rv-primary-darker: #064E3B;
  --rv-primary-light: #10B981;
  --rv-primary-lighter: #34D399;
  --rv-primary-50: #ECFDF5;
  --rv-primary-100: #D1FAE5;
  --rv-accent: #F59E0B;
  --rv-accent-dark: #D97706;
  --rv-accent-light: #FBBF24;
  --rv-accent-50: #FFFBEB;
  --rv-white: #FFFFFF;
  --rv-gray-50: #F9FAFB;
  --rv-gray-100: #F3F4F6;
  --rv-gray-200: #E5E7EB;
  --rv-gray-300: #D1D5DB;
  --rv-gray-400: #9CA3AF;
  --rv-gray-600: #4B5563;
  --rv-gray-700: #374151;
  --rv-gray-800: #1F2937;
  --rv-gray-900: #111827;
  --rv-danger: #EF4444;
  --rv-shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --rv-shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --rv-shadow-md: 0 4px 6px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.04);
  --rv-shadow-lg: 0 10px 25px rgba(0,0,0,.08), 0 4px 10px rgba(0,0,0,.04);
  --rv-shadow-xl: 0 20px 50px rgba(0,0,0,.1), 0 8px 20px rgba(0,0,0,.06);
  --rv-shadow-glow: 0 0 30px rgba(5,150,105,.15);
  --rv-radius: 16px;
  --rv-radius-lg: 24px;
  --rv-radius-xl: 32px;
  --rv-radius-full: 9999px;
  --rv-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --rv-font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --rv-ease: cubic-bezier(.4,0,.2,1);
  --rv-duration: .3s;
  --rv-transition: var(--rv-duration) var(--rv-ease);
}

/* ---------- Reset & Base ---------- */
#landing-revamping {
  font-family: var(--rv-font-body);
  color: var(--rv-gray-900);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
#landing-revamping *, #landing-revamping *::before, #landing-revamping *::after { box-sizing: border-box; }
#landing-revamping img { max-width: 100%; height: auto; }
.rv-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
.rv-section__eyebrow {
  display: inline-block;
  font-family: var(--rv-font-heading);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--rv-primary);
  margin-bottom: .75rem;
  padding: 6px 16px;
  background: var(--rv-primary-50);
  border-radius: var(--rv-radius-full);
  border: 1px solid var(--rv-primary-100);
}
.rv-section__eyebrow--light {
  color: var(--rv-accent-light);
  background: rgba(251,191,36,.12);
  border-color: rgba(251,191,36,.25);
}
.rv-section__title {
  font-family: var(--rv-font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: .75rem;
  color: var(--rv-gray-900);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.rv-section__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  text-align: center;
  color: var(--rv-gray-600);
  margin-bottom: 3rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ---------- Buttons ---------- */
.rv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--rv-radius-full);
  font-family: var(--rv-font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--rv-transition);
  letter-spacing: .01em;
  position: relative;
  overflow: hidden;
}
.rv-btn--primary {
  background: linear-gradient(135deg, var(--rv-primary), var(--rv-primary-dark));
  color: var(--rv-white);
  box-shadow: 0 4px 14px rgba(5,150,105,.35);
}
.rv-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(5,150,105,.45);
  color: var(--rv-white);
  text-decoration: none;
}
.rv-btn--secondary {
  background: var(--rv-white);
  color: var(--rv-primary);
  border: 2px solid var(--rv-primary);
  box-shadow: var(--rv-shadow-sm);
}
.rv-btn--secondary:hover {
  background: var(--rv-primary-50);
  transform: translateY(-2px);
  box-shadow: var(--rv-shadow-md);
  color: var(--rv-primary-dark);
  text-decoration: none;
}
.rv-btn--ghost {
  background: rgba(255,255,255,.12);
  color: var(--rv-white);
  border: 2px solid rgba(255,255,255,.35);
  backdrop-filter: blur(8px);
}
.rv-btn--ghost:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.6);
  transform: translateY(-2px);
  color: var(--rv-white);
  text-decoration: none;
}
.rv-btn--lg { padding: 18px 42px; font-size: 1.1rem; }
.rv-btn--full { width: 100%; }

.rv-pulse { animation: rvPulse 2.5s infinite; }
@keyframes rvPulse {
  0%   { box-shadow: 0 4px 14px rgba(5,150,105,.35); }
  50%  { box-shadow: 0 4px 25px rgba(5,150,105,.55), 0 0 0 8px rgba(5,150,105,0); }
  100% { box-shadow: 0 4px 14px rgba(5,150,105,.35); }
}

/* ---------- Badge ---------- */
.rv-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--rv-radius-full);
  font-family: var(--rv-font-heading);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.rv-badge--urgency {
  background: rgba(245,158,11,.15);
  color: var(--rv-accent-dark);
  border: 1.5px solid rgba(245,158,11,.4);
  backdrop-filter: blur(8px);
}
.rv-badge--eco {
  background: rgba(5,150,105,.12);
  color: var(--rv-primary-lighter);
  border: 1.5px solid rgba(5,150,105,.3);
  backdrop-filter: blur(8px);
}

.rv-stars { color: var(--rv-accent); font-size: 1.15rem; letter-spacing: 2px; }

/* ============================================================
   1. HERO SECTION
   ============================================================ */
.rv-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 130px 0 100px;
  overflow: hidden;
}
.rv-hero__bg { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; }
.rv-hero__bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
.rv-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(6,78,59,.88) 0%, rgba(4,120,87,.78) 40%, rgba(5,150,105,.68) 100%);
  z-index: 1;
}
.rv-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(to top, var(--rv-white), transparent);
  pointer-events: none;
  z-index: 2;
}

/* Floating particles */
.rv-hero__particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.rv-particle { position: absolute; border-radius: 50%; background: rgba(251,191,36,.2); animation: rvFloat linear infinite; }
.rv-particle--1 { width: 6px; height: 6px; left: 10%; top: 20%; animation-duration: 8s; }
.rv-particle--2 { width: 4px; height: 4px; left: 25%; top: 60%; animation-duration: 12s; animation-delay: 2s; }
.rv-particle--3 { width: 8px; height: 8px; left: 55%; top: 15%; animation-duration: 10s; animation-delay: 4s; }
.rv-particle--4 { width: 5px; height: 5px; left: 70%; top: 50%; animation-duration: 9s; animation-delay: 1s; }
.rv-particle--5 { width: 3px; height: 3px; left: 85%; top: 30%; animation-duration: 11s; animation-delay: 3s; }
@keyframes rvFloat {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) scale(.5); opacity: 0; }
}

.rv-hero__content { text-align: center; position: relative; z-index: 2; max-width: 820px; }
.rv-hero__badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 1.5rem; }
.rv-hero__title {
  font-family: var(--rv-font-heading);
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 700;
  color: var(--rv-white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
}
.rv-highlight { color: var(--rv-accent-light); position: relative; }
.rv-hero__subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,.92);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

/* Countdown */
.rv-countdown { margin-bottom: 2rem; }
.rv-countdown__label { color: rgba(255,255,255,.8); font-size: .85rem; font-family: var(--rv-font-heading); margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 500; }
.rv-countdown__timer { display: flex; justify-content: center; gap: 8px; align-items: center; }
.rv-countdown__block { background: rgba(255,255,255,.08); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.15); border-radius: var(--rv-radius); padding: 14px 18px; min-width: 76px; text-align: center; }
.rv-countdown__number { display: block; font-family: var(--rv-font-heading); font-size: 1.85rem; font-weight: 700; color: var(--rv-white); line-height: 1; }
.rv-countdown__unit { display: block; font-size: .7rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .12em; margin-top: 6px; font-weight: 500; }
.rv-countdown__separator { font-size: 1.5rem; font-weight: 700; color: rgba(255,255,255,.4); }

/* Hero CTA group */
.rv-hero__cta-group { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 2rem; }

/* Hero social proof */
.rv-hero__proof { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.rv-hero__proof-avatars { display: flex; }
.rv-avatar-stack__item {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--rv-primary-dark); color: var(--rv-white);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; font-family: var(--rv-font-heading);
  border: 2px solid rgba(255,255,255,.3); margin-left: -8px;
}
.rv-avatar-stack__item:first-child { margin-left: 0; }
.rv-avatar-stack__item--count { background: var(--rv-accent); color: var(--rv-gray-900); font-size: .65rem; }
.rv-hero__proof-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; color: rgba(255,255,255,.85); font-size: .85rem; }

/* Scroll indicator */
.rv-hero__scroll { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 3; }
.rv-hero__scroll span { display: block; width: 24px; height: 40px; border: 2px solid rgba(255,255,255,.35); border-radius: 12px; position: relative; }
.rv-hero__scroll span::after {
  content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: rgba(255,255,255,.6); border-radius: 4px;
  animation: rvScrollBounce 1.8s ease-in-out infinite;
}
@keyframes rvScrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(12px); opacity: .3; }
}

/* ============================================================
   2. TRUST BAR
   ============================================================ */
.rv-trust-bar { background: var(--rv-white); padding: 24px 0; border-bottom: 1px solid var(--rv-gray-200); box-shadow: var(--rv-shadow-xs); }
.rv-trust-bar__items { display: flex; justify-content: center; flex-wrap: wrap; gap: 32px; }
.rv-trust-bar__item { display: flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 600; color: var(--rv-gray-700); }
.rv-trust-bar__icon-wrap {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--rv-primary-50); border-radius: 10px; flex-shrink: 0;
}
.rv-trust-icon { width: 20px; height: 20px; color: var(--rv-primary); flex-shrink: 0; }

/* ============================================================
   3. PRICING CARDS
   ============================================================ */
.rv-section { padding: 90px 0; }
.rv-pricing { background: var(--rv-white); }
.rv-pricing__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; align-items: stretch; }
.rv-pricing__card {
  position: relative; background: var(--rv-white); border: 2px solid var(--rv-gray-200);
  border-radius: var(--rv-radius-lg); display: flex; flex-direction: column;
  transition: all var(--rv-transition); overflow: hidden;
}
.rv-pricing__card:hover { border-color: var(--rv-primary-light); transform: translateY(-6px); box-shadow: var(--rv-shadow-lg); }
.rv-pricing__card-header { padding: 36px 28px 24px; text-align: center; border-bottom: 1px solid var(--rv-gray-100); }
.rv-pricing__card--featured { border-color: var(--rv-primary); box-shadow: var(--rv-shadow-lg), var(--rv-shadow-glow); transform: scale(1.03); z-index: 1; }
.rv-pricing__card--featured:hover { transform: scale(1.03) translateY(-6px); }
.rv-pricing__card--featured .rv-pricing__card-header { background: linear-gradient(135deg, var(--rv-primary-50), var(--rv-primary-100)); }
.rv-pricing__ribbon {
  position: absolute; top: 20px; right: -35px;
  background: linear-gradient(135deg, var(--rv-primary), var(--rv-primary-dark));
  color: var(--rv-white); font-family: var(--rv-font-heading); font-size: .72rem; font-weight: 700;
  padding: 6px 40px; transform: rotate(45deg); text-transform: uppercase; letter-spacing: .05em;
}
.rv-pricing__badge {
  display: inline-block; background: var(--rv-primary-50); color: var(--rv-primary);
  font-family: var(--rv-font-heading); font-size: .78rem; font-weight: 700;
  padding: 6px 16px; border-radius: var(--rv-radius-full); margin-bottom: .75rem;
  text-transform: uppercase; letter-spacing: .05em; border: 1px solid var(--rv-primary-100);
}
.rv-pricing__badge--gold { background: var(--rv-accent-50); color: var(--rv-accent-dark); border-color: rgba(245,158,11,.3); }
.rv-pricing__plan { font-family: var(--rv-font-heading); font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; color: var(--rv-gray-900); }
.rv-pricing__price { margin-bottom: .75rem; }
.rv-pricing__from { display: block; font-size: .85rem; color: var(--rv-gray-400); }
.rv-pricing__amount { font-family: var(--rv-font-heading); font-size: 2.75rem; font-weight: 700; color: var(--rv-primary); line-height: 1.2; }
.rv-pricing__tax { display: block; font-size: .75rem; color: var(--rv-gray-400); margin-top: 2px; }
.rv-pricing__ideal { font-size: .85rem; color: var(--rv-gray-600); line-height: 1.5; font-style: italic; }
.rv-pricing__features { list-style: none; padding: 24px 28px; margin: 0; text-align: left; flex: 1; }
.rv-pricing__features li { padding: 10px 0 10px 30px; position: relative; font-size: .9rem; color: var(--rv-gray-700); border-bottom: 1px solid var(--rv-gray-100); line-height: 1.5; }
.rv-pricing__features li:last-child { border-bottom: none; }
.rv-pricing__features li::before {
  content: ''; position: absolute; left: 0; top: 13px; width: 20px; height: 20px;
  background: var(--rv-primary-light);
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") no-repeat center;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") no-repeat center;
}
.rv-pricing__card .rv-btn { margin: 0 28px 28px; }
.rv-pricing__disclaimer { text-align: center; font-size: .82rem; color: var(--rv-gray-400); margin-top: 2rem; }

/* ============================================================
   4. PROBLEMA / SOLUZIONE
   ============================================================ */
.rv-problem { background: var(--rv-gray-50); }
.rv-problem__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.rv-stat { display: flex; align-items: center; gap: 16px; padding: 24px; background: var(--rv-white); border-radius: var(--rv-radius); box-shadow: var(--rv-shadow-sm); margin-bottom: 16px; border: 1px solid var(--rv-gray-200); transition: all var(--rv-transition); }
.rv-stat:hover { box-shadow: var(--rv-shadow-md); transform: translateY(-2px); }
.rv-stat__icon { width: 56px; height: 56px; min-width: 56px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--rv-primary-50), var(--rv-primary-100)); border-radius: 14px; color: var(--rv-primary); }
.rv-stat__info { flex: 1; }
.rv-stat__number { font-family: var(--rv-font-heading); font-size: 2.5rem; font-weight: 700; color: var(--rv-primary); line-height: 1; }
.rv-stat__symbol { font-family: var(--rv-font-heading); font-size: 1.75rem; font-weight: 700; color: var(--rv-primary); }
.rv-stat__label { display: block; font-size: .875rem; color: var(--rv-gray-600); margin-top: .35rem; line-height: 1.5; }
.rv-problem__comparison h3 { text-align: center; margin-bottom: 1.5rem; font-family: var(--rv-font-heading); font-size: 1.2rem; font-weight: 600; color: var(--rv-gray-800); }
.rv-compare { display: flex; align-items: stretch; gap: 16px; }
.rv-compare__item { flex: 1; padding: 28px 24px; border-radius: var(--rv-radius); text-align: center; transition: all var(--rv-transition); }
.rv-compare__item--before { background: linear-gradient(135deg, #FEF2F2, #FECACA); border: 2px solid #FCA5A5; }
.rv-compare__item--after { background: linear-gradient(135deg, var(--rv-primary-50), var(--rv-primary-100)); border: 2px solid var(--rv-primary-lighter); box-shadow: var(--rv-shadow-glow); }
.rv-compare__label { display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--rv-font-heading); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .75rem; }
.rv-compare__value { display: block; font-family: var(--rv-font-heading); font-size: 2.25rem; font-weight: 700; margin-bottom: .5rem; }
.rv-compare__value small { font-size: .5em; font-weight: 500; opacity: .7; }
.rv-compare__item--before .rv-compare__value { color: #DC2626; }
.rv-compare__item--after .rv-compare__value { color: var(--rv-primary); }
.rv-compare__desc { display: block; font-size: .82rem; color: var(--rv-gray-600); line-height: 1.5; }
.rv-compare__arrow { flex-shrink: 0; display: flex; align-items: center; }
.rv-compare__arrow svg { width: 32px; height: 32px; color: var(--rv-primary); }
.rv-compare__savings { text-align: center; margin-top: 1.5rem; font-size: 1.05rem; background: var(--rv-white); padding: 18px 24px; border-radius: var(--rv-radius); box-shadow: var(--rv-shadow-sm); border-left: 4px solid var(--rv-primary); display: flex; align-items: center; justify-content: center; gap: 10px; }

/* ============================================================
   5. BENEFICI
   ============================================================ */
.rv-benefits { background: var(--rv-white); }
.rv-benefits__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.rv-benefit { text-align: center; padding: 36px 24px; border-radius: var(--rv-radius-lg); background: var(--rv-gray-50); border: 1px solid var(--rv-gray-200); transition: all var(--rv-transition); }
.rv-benefit:hover { background: var(--rv-white); box-shadow: var(--rv-shadow-md); transform: translateY(-4px); border-color: var(--rv-primary-light); }
.rv-benefit__icon { width: 60px; height: 60px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--rv-primary), var(--rv-primary-dark)); border-radius: 18px; padding: 15px; box-shadow: 0 4px 12px rgba(5,150,105,.2); }
.rv-benefit__icon svg { width: 28px; height: 28px; color: var(--rv-white); }
.rv-benefit h3 { font-family: var(--rv-font-heading); font-size: 1.1rem; font-weight: 600; margin-bottom: .5rem; color: var(--rv-gray-900); }
.rv-benefit p { font-size: .9rem; color: var(--rv-gray-600); margin: 0; line-height: 1.6; }

/* ============================================================
   6. TIMELINE
   ============================================================ */
.rv-timeline { background: var(--rv-gray-50); }
.rv-timeline__track { position: relative; max-width: 720px; margin: 0 auto; }
.rv-timeline__line { position: absolute; left: 27px; top: 0; bottom: 0; width: 3px; background: linear-gradient(to bottom, var(--rv-primary-light), var(--rv-primary-dark)); border-radius: 2px; }
.rv-timeline__step { display: flex; gap: 28px; margin-bottom: 36px; position: relative; }
.rv-timeline__step:last-child { margin-bottom: 0; }
.rv-timeline__marker { width: 56px; height: 56px; min-width: 56px; background: linear-gradient(135deg, var(--rv-primary), var(--rv-primary-dark)); color: var(--rv-white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--rv-font-heading); font-size: 1.2rem; font-weight: 700; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--rv-gray-50), 0 0 0 8px var(--rv-primary-light); }
.rv-timeline__content { background: var(--rv-white); padding: 28px; border-radius: var(--rv-radius); box-shadow: var(--rv-shadow-sm); flex: 1; border: 1px solid var(--rv-gray-200); transition: all var(--rv-transition); }
.rv-timeline__content:hover { box-shadow: var(--rv-shadow-md); transform: translateX(4px); }
.rv-timeline__day { display: inline-block; background: linear-gradient(135deg, var(--rv-primary), var(--rv-primary-dark)); color: var(--rv-white); font-family: var(--rv-font-heading); font-size: .72rem; font-weight: 700; padding: 4px 14px; border-radius: var(--rv-radius-full); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.rv-timeline__content h3 { font-family: var(--rv-font-heading); font-size: 1.1rem; font-weight: 600; margin-bottom: .25rem; color: var(--rv-gray-900); }
.rv-timeline__content p { font-size: .9rem; color: var(--rv-gray-600); margin: 0; line-height: 1.6; }

/* ============================================================
   7. TESTIMONIANZE
   ============================================================ */
.rv-testimonials { background: var(--rv-white); }
.rv-testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rv-testimonial { background: var(--rv-gray-50); border: 1px solid var(--rv-gray-200); border-radius: var(--rv-radius-lg); padding: 32px; transition: all var(--rv-transition); display: flex; flex-direction: column; }
.rv-testimonial:hover { box-shadow: var(--rv-shadow-md); transform: translateY(-4px); border-color: var(--rv-primary-light); }
.rv-testimonial__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.rv-testimonial__stars { color: var(--rv-accent); font-size: 1.1rem; }
.rv-testimonial__verified { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 600; color: var(--rv-primary); background: var(--rv-primary-50); padding: 3px 10px; border-radius: var(--rv-radius-full); }
.rv-testimonial__text { font-size: .95rem; line-height: 1.75; color: var(--rv-gray-700); margin-bottom: 1.5rem; font-style: italic; flex: 1; border: none; padding: 0; }
.rv-testimonial__author { display: flex; align-items: center; gap: 12px; padding-top: 1rem; border-top: 1px solid var(--rv-gray-200); }
.rv-testimonial__avatar { width: 48px; height: 48px; min-width: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--rv-primary), var(--rv-primary-dark)); color: var(--rv-white); display: flex; align-items: center; justify-content: center; font-family: var(--rv-font-heading); font-weight: 700; font-size: .85rem; }
.rv-testimonial__author strong { display: block; font-family: var(--rv-font-heading); font-size: .95rem; color: var(--rv-gray-900); }
.rv-testimonial__author span { display: block; font-size: .8rem; color: var(--rv-gray-400); }
.rv-testimonial__saving { color: var(--rv-primary) !important; font-weight: 600 !important; }

/* ============================================================
   8. FAQ
   ============================================================ */
.rv-faq { background: var(--rv-gray-50); }
.rv-faq__list { max-width: 740px; margin: 0 auto; }
.rv-faq__item { background: var(--rv-white); border: 1px solid var(--rv-gray-200); border-radius: var(--rv-radius); margin-bottom: 12px; overflow: hidden; transition: all var(--rv-transition); }
.rv-faq__item:hover { border-color: var(--rv-primary-light); box-shadow: var(--rv-shadow-sm); }
.rv-faq__item.active { border-color: var(--rv-primary); box-shadow: var(--rv-shadow-md), var(--rv-shadow-glow); }
.rv-faq__question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; background: none; border: none; font-family: var(--rv-font-heading); font-size: 1rem; font-weight: 600; color: var(--rv-gray-900); cursor: pointer; text-align: left; gap: 16px; transition: color var(--rv-transition); }
.rv-faq__item.active .rv-faq__question { color: var(--rv-primary); }
.rv-faq__icon { width: 20px; height: 20px; min-width: 20px; color: var(--rv-primary); transition: transform var(--rv-transition); }
.rv-faq__item.active .rv-faq__icon { transform: rotate(180deg); }
.rv-faq__answer { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .4s ease; }
.rv-faq__item.active .rv-faq__answer { max-height: 400px; }
.rv-faq__answer p { padding: 0 24px 22px; font-size: .95rem; color: var(--rv-gray-600); line-height: 1.75; margin: 0; }

/* ============================================================
   9. FORM SECTION
   ============================================================ */
.rv-form-section {
  background: linear-gradient(160deg, #064E3B 0%, #047857 40%, #059669 100%);
  padding: 90px 0;
  position: relative;
}
.rv-form-section::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.rv-form-wrapper { max-width: 700px; margin: 0 auto; background: var(--rv-white); border-radius: var(--rv-radius-xl); padding: 52px 44px; box-shadow: var(--rv-shadow-xl); position: relative; z-index: 1; }
.rv-form-header { text-align: center; margin-bottom: 2rem; }
.rv-form-header h2 { font-family: var(--rv-font-heading); font-size: 1.65rem; font-weight: 700; margin-bottom: .5rem; color: var(--rv-gray-900); line-height: 1.25; }
.rv-form-header p { color: var(--rv-gray-600); font-size: .95rem; }
.rv-form-proof { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: .75rem; font-size: .82rem; color: var(--rv-gray-400); }
.rv-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.rv-form__field label { display: block; font-family: var(--rv-font-heading); font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: var(--rv-gray-700); }
.rv-form__field input { width: 100%; padding: 15px 16px; min-height: 52px; border: 2px solid var(--rv-gray-200); border-radius: 12px; font-family: var(--rv-font-body); font-size: .95rem; color: var(--rv-gray-900); background: var(--rv-white); transition: border-color var(--rv-transition), box-shadow var(--rv-transition); -webkit-appearance: none; }
.rv-form__field select { width: 100%; padding: 15px 44px 15px 16px; min-height: 52px; border: 2px solid var(--rv-gray-200); border-radius: 12px; font-family: var(--rv-font-body); font-size: .95rem; color: var(--rv-gray-900); background-color: var(--rv-white); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234B5563' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; transition: border-color var(--rv-transition), box-shadow var(--rv-transition); appearance: none; -webkit-appearance: none; -moz-appearance: none; cursor: pointer; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.rv-form__field input:focus, .rv-form__field select:focus { outline: none; border-color: var(--rv-primary); box-shadow: 0 0 0 4px rgba(5,150,105,.12); }
.rv-form__field select:focus { outline: none; border-color: var(--rv-primary); box-shadow: 0 0 0 4px rgba(5,150,105,.12); }
.rv-form__field input.rv-field-error, .rv-form__field select.rv-field-error { border-color: var(--rv-danger); box-shadow: 0 0 0 4px rgba(239,68,68,.1); }
/* Ensure selected option text is visible */
.rv-form__field select option { color: var(--rv-gray-900); background: var(--rv-white); padding: 8px; }
.rv-form__field select:invalid { color: var(--rv-gray-400); }
.rv-form__field select option[value=""] { color: var(--rv-gray-400); }
.rv-form__privacy { margin: 20px 0; font-size: .82rem; color: var(--rv-gray-600); }
.rv-form__privacy label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.rv-form__privacy input[type="checkbox"] { margin-top: 3px; accent-color: var(--rv-primary); width: 18px; height: 18px; flex-shrink: 0; }
.rv-form__privacy a { color: var(--rv-primary); text-decoration: underline; }
.rv-form__note { text-align: center; font-size: .78rem; color: var(--rv-gray-400); margin-top: 14px; }
.rv-form__success { text-align: center; padding: 30px; color: var(--rv-primary); }
.rv-form__success h3 { font-family: var(--rv-font-heading); font-size: 1.25rem; font-weight: 700; margin: 16px 0 8px; }
.rv-form__success p { color: var(--rv-gray-600); }

/* ============================================================
   STICKY CTA (Mobile)
   ============================================================ */
.rv-sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; padding: 12px 16px; background: var(--rv-white); box-shadow: 0 -4px 24px rgba(0,0,0,.1); transform: translateY(100%); transition: transform var(--rv-transition); display: none; }
.rv-sticky-cta.visible { transform: translateY(0); }

/* ============================================================
   EXIT INTENT POPUP
   ============================================================ */
.rv-popup-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: all .3s ease; }
.rv-popup-overlay.active { opacity: 1; visibility: visible; }
.rv-popup { background: var(--rv-white); border-radius: var(--rv-radius-xl); padding: 48px 36px; max-width: 480px; width: 100%; text-align: center; position: relative; transform: scale(.9) translateY(20px); transition: transform .3s ease; box-shadow: var(--rv-shadow-xl); }
.rv-popup-overlay.active .rv-popup { transform: scale(1) translateY(0); }
.rv-popup__close { position: absolute; top: 14px; right: 18px; background: none; border: none; font-size: 1.75rem; color: var(--rv-gray-400); cursor: pointer; line-height: 1; transition: color var(--rv-transition); }
.rv-popup__close:hover { color: var(--rv-gray-700); }
.rv-popup__icon { margin-bottom: 1rem; }
.rv-popup h3 { font-family: var(--rv-font-heading); font-size: 1.4rem; font-weight: 700; margin-bottom: .75rem; color: var(--rv-gray-900); line-height: 1.3; }
.rv-popup p { font-size: .95rem; color: var(--rv-gray-600); margin-bottom: 1.5rem; line-height: 1.6; }
.rv-popup__dismiss { display: block; margin: 14px auto 0; background: none; border: none; font-family: var(--rv-font-body); font-size: .78rem; color: var(--rv-gray-400); cursor: pointer; text-decoration: underline; transition: color var(--rv-transition); }
.rv-popup__dismiss:hover { color: var(--rv-gray-600); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .rv-pricing__grid { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
  .rv-pricing__card--featured { transform: none; }
  .rv-pricing__card--featured:hover { transform: translateY(-6px); }
  .rv-benefits__grid, .rv-testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .rv-problem__grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .rv-section { padding: 64px 0; }
  .rv-hero { min-height: 100vh; padding: 100px 0 90px; }
  .rv-hero__bg-img {
    object-position: center center;
    height: auto;
    min-height: 100%;
    min-width: 100%;
  }
  .rv-hero__particles { display: none; }
  .rv-hero__scroll { display: none; }
  .rv-pricing__grid { grid-template-columns: 1fr; max-width: 440px; }
  .rv-benefits__grid, .rv-testimonials__grid { grid-template-columns: 1fr; }
  .rv-form__row { grid-template-columns: 1fr; }
  .rv-form-wrapper { padding: 36px 24px; }
  .rv-compare { flex-direction: column; }
  .rv-compare__arrow { transform: rotate(90deg); }
  .rv-trust-bar__items { gap: 16px; justify-content: center; }
  .rv-trust-bar__item { font-size: .8rem; }
  .rv-trust-bar__icon-wrap { width: 32px; height: 32px; }
  .rv-countdown__block { min-width: 60px; padding: 10px 12px; }
  .rv-countdown__number { font-size: 1.4rem; }
  .rv-hero__proof { flex-direction: column; gap: 8px; }
  .rv-hero__proof-text { align-items: center; text-align: center; }
  .rv-hero__cta-group { flex-direction: column; align-items: center; }
  .rv-hero__cta-group .rv-btn { width: 100%; max-width: 340px; }
  .rv-sticky-cta { display: block; }
  .rv-timeline__line { left: 22px; }
  .rv-timeline__marker { width: 48px; height: 48px; min-width: 48px; font-size: 1rem; }
  .rv-timeline__content { padding: 20px; }
}

@media (max-width: 480px) {
  .rv-hero__title { font-size: 1.65rem; }
  .rv-hero__subtitle { font-size: .95rem; }
  .rv-hero__badges { flex-direction: column; align-items: center; }
  .rv-countdown__block { min-width: 52px; padding: 8px 10px; }
  .rv-countdown__number { font-size: 1.15rem; }
  .rv-stat { flex-direction: column; text-align: center; }
  .rv-stat__number { font-size: 2rem; }
  .rv-section__title { font-size: 1.5rem; }
  .rv-pricing__card-header { padding: 28px 20px 20px; }
  .rv-pricing__features { padding: 20px; }
  .rv-pricing__card .rv-btn { margin: 0 20px 20px; }
}

/* ============================================================
   GALLERY — I Nostri Revamping
   ============================================================ */
.rv-gallery {
  background: var(--rv-gray-50, #F9FAFB);
}

.rv-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rv-gallery__item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.rv-gallery__item--large {
  grid-column: span 2;
}

.rv-gallery__item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.rv-gallery__item--large img {
  height: 320px;
}

.rv-gallery__item:hover img {
  transform: scale(1.06);
}

.rv-gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.0) 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity .35s ease;
}

.rv-gallery__item:hover .rv-gallery__overlay {
  opacity: 1;
}

.rv-gallery__tag {
  display: inline-block;
  background: var(--rv-green, #059669);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 6px;
  width: fit-content;
}

.rv-gallery__overlay p {
  color: rgba(255,255,255,.9);
  font-size: .88rem;
  margin: 0;
}

@media (max-width: 768px) {
  .rv-gallery__grid {
    grid-template-columns: 1fr 1fr;
  }
  .rv-gallery__item--large {
    grid-column: span 2;
  }
  .rv-gallery__item img,
  .rv-gallery__item--large img {
    height: 220px;
  }
  .rv-gallery__overlay {
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .rv-gallery__grid {
    grid-template-columns: 1fr;
  }
  .rv-gallery__item--large {
    grid-column: span 1;
  }
  .rv-gallery__item img,
  .rv-gallery__item--large img {
    height: 200px;
  }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes rvFadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HERO SPOTLIGHT — Prima/Dopo cursor reveal (motion v2)
   ============================================================ */
.rv-hero--spotlight { background: var(--rv-gray-900); }

.rv-hero__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.rv-hero__layer { position: absolute; inset: 0; }
.rv-hero__layer picture,
.rv-hero__layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}

/* Shared synchronized Ken Burns — identical on both layers = pixel-aligned */
.rv-hero__layer img {
  animation: rv-kenburns 26s ease-in-out infinite alternate;
  transform-origin: 58% 40%;
  will-change: transform;
}
@keyframes rv-kenburns {
  from { transform: scale(1.03); }
  to   { transform: scale(1.11) translateY(-1.2%); }
}

/* PRIMA: tired, dim, washed out */
.rv-hero__layer--prima img {
  filter: grayscale(.68) brightness(.62) saturate(.6) contrast(.97);
}

/* DOPO: revealed through cursor spotlight (CSS-var driven mask) */
.rv-hero__layer--dopo {
  --spot-x: 72%;
  --spot-y: 44%;
  --spot-r: 0px;
  -webkit-mask-image: radial-gradient(circle var(--spot-r) at var(--spot-x) var(--spot-y), #000 0%, #000 58%, transparent 100%);
          mask-image: radial-gradient(circle var(--spot-r) at var(--spot-x) var(--spot-y), #000 0%, #000 58%, transparent 100%);
}

/* Spotlight ring + label following the cursor */
.rv-spot-ring {
  position: absolute;
  left: 0; top: 0;
  width: var(--ring-d, 300px);
  height: var(--ring-d, 300px);
  margin: calc(var(--ring-d, 300px) / -2) 0 0 calc(var(--ring-d, 300px) / -2);
  border: 1.5px solid rgba(251,191,36,.65);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(251,191,36,.18), inset 0 0 40px rgba(251,191,36,.08);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
.rv-spot-ring span {
  position: absolute;
  left: 50%;
  bottom: -34px;
  transform: translateX(-50%);
  font-family: var(--rv-font-heading);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rv-accent-light);
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
  white-space: nowrap;
}

/* Lighter overlay so the imagery breathes (text keeps its own shadow) */
.rv-hero--spotlight .rv-hero__overlay {
  background: linear-gradient(165deg, rgba(6,78,59,.52) 0%, rgba(4,120,87,.26) 45%, rgba(2,20,15,.45) 100%);
}
.rv-hero--spotlight .rv-hero__title { text-shadow: 0 2px 26px rgba(0,0,0,.55); }
.rv-hero--spotlight .rv-hero__subtitle { text-shadow: 0 1px 14px rgba(0,0,0,.5); }

/* Title line mask-reveal wrappers */
.rv-reveal { display: block; overflow: hidden; }
.rv-reveal__inner { display: block; }

/* Cursor hint */
.rv-hero__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: rgba(251,191,36,.95);
  margin: -0.4rem 0 1.4rem;
  text-shadow: 0 1px 10px rgba(0,0,0,.5);
}
.rv-hero__hint svg { flex: none; }
@media (hover: none) {
  .rv-hero__hint { display: none; }
}

/* Reduced motion: show the DOPO, kill all motion */
@media (prefers-reduced-motion: reduce) {
  .rv-hero__layer img { animation: none; }
  .rv-hero__layer--dopo {
    -webkit-mask-image: none;
            mask-image: none;
  }
  .rv-spot-ring { display: none; }
}
