/* 
   ImmoNova Landing Page - Design System & Styles
   Premium and Modern Real Estate Landing Page
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --primary: #0f172a;       /* Deep Slate */
  --primary-light: #1e293b; /* Darker Slate */
  --primary-rgb: 15, 23, 42;
  --accent: #c5a880;        /* Champagne Gold */
  --accent-hover: #b5976f;
  --accent-light: #f5f0e6;
  --accent-rgb: 197, 168, 128;
  --success: #10b981;       /* Emerald Green */
  --success-light: #ecfdf5;
  --success-rgb: 16, 185, 129;
  
  --bg-main: #f8fafc;       /* Off-White */
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  
  /* Text Colors */
  --text-dark: #0f172a;
  --text-main: #334155;
  --text-muted: #64748b;
  --text-white: #ffffff;
  
  /* Fonts */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Spacings & Layout */
  --container-max-width: 1200px;
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-lg: 20px;
  --border-radius-md: 12px;
  --border-radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.08);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-headings);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
}

/* --- Custom Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: var(--font-headings);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  gap: 8px;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(197, 168, 128, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 168, 128, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* --- Header & Navigation --- */
.header {
  position: fixed; /* Header fisso/sticky */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 0;
  transition: var(--transition-smooth);
}

.header.scrolled {
  padding: 12px 0;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
}

.header.scrolled .logo-text {
  color: var(--text-white);
}

.header.scrolled .header-phone {
  background-color: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--accent);
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 18px;
  border-radius: 10px;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 12px rgba(197, 168, 128, 0.2);
  letter-spacing: -0.5px;
  transition: var(--transition-smooth);
}

.logo:hover .logo-monogram {
  transform: rotate(5deg) scale(1.08);
  box-shadow: 0 6px 18px rgba(197, 168, 128, 0.35);
}

.logo-text {
  font-family: var(--font-headings);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
  line-height: 1.1;
  transition: var(--transition-smooth);
}

.logo-text span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 1px;
}

.header-phone {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 10px 18px;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.header-phone:hover {
  background-color: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
}

.header-phone svg {
  stroke: currentColor;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(197, 168, 128, 0.1) 0%, rgba(248, 250, 252, 0) 60%),
              linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
  padding-top: 160px;
  padding-bottom: 100px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content {
    max-width: 650px;
    margin: 0 auto;
  }
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-headings);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-hover);
  background-color: var(--accent-light);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero-title span {
  display: block;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 40px;
  }
}

.hero-desc {
  font-size: 18px;
  color: var(--text-main);
  margin-bottom: 40px;
  max-width: 550px;
}

@media (max-width: 992px) {
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 992px) {
  .hero-cta-group {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .hero-trust {
    justify-content: center;
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-item svg {
  color: var(--success);
  flex-shrink: 0;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image {
  width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.hero-badge {
  position: absolute;
  bottom: 30px;
  left: -30px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  padding: 20px 24px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (max-width: 1200px) {
  .hero-badge {
    left: 20px;
  }
}

@media (max-width: 992px) {
  .hero-badge {
    position: static;
    margin: 20px auto 0;
    max-width: 300px;
    justify-content: center;
  }
}

.hero-badge-icon {
  width: 44px;
  height: 44px;
  background-color: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-hover);
}

.hero-badge-text h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 2px;
}

.hero-badge-text p {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Solution Section --- */
.solution {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 40px;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

@media (max-width: 576px) {
  .section-header h2 {
    font-size: 32px;
  }
}

.section-header p {
  font-size: 18px;
  color: var(--text-muted);
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 992px) {
  .solution-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.solution-text h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.solution-text p {
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 24px;
}

.solution-bullets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.solution-bullet {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.solution-bullet-icon {
  width: 24px;
  height: 24px;
  background-color: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-hover);
  flex-shrink: 0;
  margin-top: 2px;
}

.solution-bullet-text h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.solution-bullet-text p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Before / After Slider Widget */
.slider-card {
  background-color: var(--bg-main);
  border-radius: var(--border-radius-lg);
  padding: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  user-select: none;
}

.slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.slider-img.img-after {
  z-index: 1;
}

.slider-img.img-before {
  z-index: 2;
  /* Clip path will dynamically reveal after image */
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: var(--bg-card);
  z-index: 3;
  cursor: ew-resize;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  transition: transform 0.1s ease;
}

.slider-button svg {
  width: 20px;
  height: 20px;
  color: var(--text-dark);
}

.slider-label {
  position: absolute;
  bottom: 16px;
  background-color: rgba(15, 23, 42, 0.7);
  color: var(--text-white);
  padding: 6px 14px;
  border-radius: 50px;
  font-family: var(--font-headings);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 4;
  backdrop-filter: blur(5px);
}

.slider-label.label-before {
  left: 16px;
}

.slider-label.label-after {
  right: 16px;
}

/* --- Process Section --- */
.process {
  position: relative;
  background-color: var(--bg-main);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

@media (max-width: 992px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.process-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: transparent;
  transition: var(--transition-smooth);
}

.process-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(197, 168, 128, 0.4);
}

.process-card:hover::before {
  background-color: var(--accent);
}

.process-num {
  font-family: var(--font-headings);
  font-size: 72px;
  font-weight: 800;
  color: rgba(197, 168, 128, 0.15);
  line-height: 1;
  margin-bottom: 16px;
  transition: var(--transition-smooth);
}

.process-card:hover .process-num {
  color: rgba(197, 168, 128, 0.35);
  transform: scale(1.05);
}

.process-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.process-card p {
  font-size: 15px;
  color: var(--text-muted);
}

/* --- Yield Calculator Section --- */
.calculator-section {
  background-color: var(--primary);
  color: var(--text-white);
}

.calculator-section h2, 
.calculator-section h3, 
.calculator-section h4 {
  color: var(--text-white);
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 992px) {
  .calculator-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.calculator-intro h2 {
  font-size: 40px;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

@media (max-width: 576px) {
  .calculator-intro h2 {
    font-size: 32px;
  }
}

.calculator-intro p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
}

.calculator-bullets {
  display: grid;
  gap: 16px;
}

.calculator-bullet {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calculator-bullet svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Calculator Widget */
.calc-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.calc-group {
  margin-bottom: 28px;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-headings);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}

.calc-value-display {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

/* Style Range Input */
.calc-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--primary-light);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.1s ease;
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Selection Buttons */
.state-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.state-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  padding: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.state-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.state-btn.active {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
  box-shadow: 0 4px 10px rgba(197, 168, 128, 0.25);
}

/* Results Display */
.calc-results {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius-md);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 32px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.result-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
  padding-top: 18px;
}

.result-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.result-value {
  font-family: var(--font-headings);
  font-size: 16px;
  font-weight: 600;
}

.result-value.accented {
  font-size: 24px;
  font-weight: 800;
  color: var(--success);
}

/* --- Benefits (Perché Sceglierci) Section --- */
.benefits {
  background-color: var(--bg-card);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.benefit-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: var(--border-radius-md);
  transition: var(--transition-smooth);
}

.benefit-card:hover {
  background-color: var(--bg-main);
  transform: translateX(4px);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  background-color: var(--accent-light);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-hover);
  flex-shrink: 0;
}

.benefit-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.benefit-content p {
  font-size: 14px;
  color: var(--text-muted);
}

/* --- Contact & CTA Section --- */
.contact-section {
  background: radial-gradient(circle at 10% 90%, rgba(197, 168, 128, 0.08) 0%, rgba(248, 250, 252, 0) 60%),
              linear-gradient(0deg, #f1f5f9 0%, #f8fafc 100%);
  border-top: 1px solid var(--border-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.contact-info h2 {
  font-size: 40px;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

@media (max-width: 576px) {
  .contact-info h2 {
    font-size: 32px;
  }
}

.contact-info p {
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 32px;
}

.contact-methods {
  display: grid;
  gap: 20px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background-color: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-hover);
  flex-shrink: 0;
}

.contact-method-text h4 {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-method-text p {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0;
}

.contact-method-text p a {
  transition: var(--transition-smooth);
}

.contact-method-text p a:hover {
  color: var(--accent);
}

/* Contact Form Card */
.form-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 576px) {
  .form-card {
    padding: 24px;
  }
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dark);
  background-color: var(--bg-main);
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--accent);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

select.form-input {
  cursor: pointer;
}

.checkbox-group {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  margin-bottom: 24px;
}

.checkbox-group input {
  margin-top: 4px;
  cursor: pointer;
  accent-color: var(--accent);
}

.checkbox-group label {
  font-size: 12px;
  color: var(--text-muted);
}

.checkbox-group label a {
  color: var(--accent-hover);
  font-weight: 600;
}

.form-card button {
  width: 100%;
}

.success-message {
  display: none;
  background-color: var(--success-light);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--success);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Footer --- */
.footer {
  background-color: var(--primary);
  color: rgba(255, 255, 255, 0.5);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 30px;
  margin-bottom: 30px;
}

@media (max-width: 576px) {
  .footer-top {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

.footer .logo {
  color: var(--text-white);
}

.footer-links {
  display: flex;
  gap: 24px;
}

@media (max-width: 576px) {
  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

.footer-links a {
  font-size: 14px;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

.footer-bottom p {
  font-size: 13px;
}

.footer .logo-text {
  color: var(--text-white);
}

/* --- Reveal Animations --- */
.reveal-init {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-init.revealed {
  opacity: 1;
  transform: translateY(0);
}

#process-step-1.reveal-init { transition-delay: 0.1s; }
#process-step-2.reveal-init { transition-delay: 0.2s; }
#process-step-3.reveal-init { transition-delay: 0.3s; }

/* Sticky Header Scrolled Mobile Fix */
@media (max-width: 576px) {
  .header {
    position: absolute;
    padding: 16px 0;
  }
  
  .header.scrolled {
    position: fixed;
    padding: 8px 0;
    background-color: rgba(15, 23, 42, 0.98);
  }
  
  .header .container {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  
  .header-phone {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .hero {
    padding-top: 180px;
    padding-bottom: 60px;
  }
  
  .logo-text {
    font-size: 18px;
  }
  
  .logo-text span {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
}

/* ==========================================
   FORMULA PARTNERSHIP 1/3 & ASTE SECTION
   ========================================== */
.partnership-section {
  padding: 100px 0;
  background: radial-gradient(circle at 90% 10%, rgba(197, 168, 128, 0.06) 0%, rgba(248, 250, 252, 0) 65%),
              linear-gradient(180deg, var(--bg-main) 0%, var(--bg-card) 100%);
  border-bottom: 1px solid var(--border-color);
}

.partnership-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: flex-start;
}

@media (max-width: 992px) {
  .partnership-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.partnership-details h3 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.partnership-details > p {
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 24px;
  line-height: 1.7;
}

.partnership-features {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 36px;
}

.partnership-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.partnership-feature .feature-icon {
  width: 48px;
  height: 48px;
  background-color: var(--accent-light);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-hover);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(197, 168, 128, 0.2);
}

.partnership-feature .feature-text h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.partnership-feature .feature-text p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Comparison Financial Card */
.comparison-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.comparison-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
}

@media (max-width: 576px) {
  .comparison-card {
    padding: 30px 20px;
  }
}

.comparison-header-badge {
  display: inline-block;
  font-family: var(--font-headings);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-hover);
  background-color: var(--accent-light);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
  border: 1px solid rgba(197, 168, 128, 0.3);
}

.comparison-card h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.comparison-subtitle {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.comparison-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.comparison-option {
  padding: 18px 20px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-main);
  transition: var(--transition-smooth);
}

.comparison-option.best-choice {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, rgba(197, 168, 128, 0.04) 0%, rgba(197, 168, 128, 0.08) 100%);
  box-shadow: 0 10px 30px rgba(197, 168, 128, 0.12);
  transform: scale(1.02);
}

@media (max-width: 576px) {
  .comparison-option.best-choice {
    transform: none;
  }
}

.option-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.option-name {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
}

.option-yield {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 50px;
}

.yield-low {
  background-color: #f1f5f9;
  color: var(--text-muted);
}

.yield-med {
  background-color: #fef3c7;
  color: #d97706;
}

.yield-high {
  background-color: var(--success-light);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.option-desc {
  font-size: 13.5px;
  color: var(--text-main);
  line-height: 1.5;
}

.option-desc strong {
  color: var(--text-dark);
}

.best-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-headings);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--success);
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-action {
  margin-top: 24px;
}

@media (max-width: 768px) {
  .partnership-section {
    padding: 60px 0;
  }
}

#partnership-comparison-widget.reveal-init {
  transition-delay: 0.15s;
}

/* ==========================================
   CHI SIAMO & TESTIMONIANZE SECTION
   ========================================== */
.about-testimonials {
  padding: 100px 0;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.about-testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

@media (max-width: 992px) {
  .about-testimonials-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.about-profile h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.about-profile p {
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.7;
}

.about-badge {
  display: inline-block;
  font-family: var(--font-headings);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-hover);
  background-color: var(--accent-light);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid rgba(197, 168, 128, 0.3);
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.about-feat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text-dark);
  font-weight: 600;
}

.about-feat-item svg {
  color: var(--success);
  flex-shrink: 0;
}

.testimonials-container h3 {
  font-size: 24px;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.testimonials-subtitle {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.testimonials-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial-card {
  background-color: var(--bg-main);
  border-radius: var(--border-radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(197, 168, 128, 0.3);
}

.test-stars {
  color: #fbbf24;
  font-size: 16px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.test-text {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 16px;
}

.test-author {
  display: flex;
  flex-direction: column;
}

.test-author strong {
  font-size: 14px;
  color: var(--text-dark);
}

.test-author span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================
   FLOATING CONTACT WIDGET
   ========================================== */
.floating-contact {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 50px;
  color: var(--text-white);
  font-family: var(--font-headings);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: var(--transition-smooth);
  text-decoration: none;
  animation: floatPulse 2.5s infinite;
}

.float-whatsapp {
  background-color: #25D366;
  border: 1px solid #128C7E;
}

.float-whatsapp:hover {
  background-color: #128C7E;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.3);
}

@keyframes floatPulse {
  0% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.2);
  }
  50% {
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.45);
  }
  100% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.2);
  }
}

@media (max-width: 768px) {
  .about-testimonials {
    padding: 60px 0;
  }
  
  .floating-contact {
    bottom: 16px;
    right: 16px;
  }
  
  .float-btn span {
    display: none;
  }
  
  .float-btn {
    padding: 14px;
    border-radius: 50%;
  }
}


