/* 
   AETON LANDING v4.0 - Santuario Digitale Theme
   Focus: Glassmorphism, Calm Colors, Premium Typography
*/

:root {
  --primary: #b39ddb;
  /* Viola AETON */
  --primary-dark: #7e57c2;
  /* Viola Scuro */
  --bg-light: #f3f4f6;
  /* Grigio Ghiaccio */
  --text-main: #374151;
  /* Grigio Antracite */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --shadow-soft: 0 10px 40px rgba(179, 157, 219, 0.15);
  --gold: #ffd700;

  /* Chart Colors (Exact Match from style.css) */
  --c-mood: #b39ddb;
  /* --primary */
  --c-anx: #ffb74d;
  /* --warning */
  --c-str: #ef5350;
  /* --error */
  --c-slp: #81d4fa;
  /* --calm-1 */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Nunito", sans-serif;
}

body {
  background: var(--bg-light);
  color: var(--text-main);
}

/* === UTILS === */
/* Wrap everything in a main div or let container handle hidden overflow if absolutely needed */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

/* === NAVIGATION === */
.glass-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 15px 0;
  left: 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.logo img {
  height: 32px;
  border-radius: 8px;
  /* Slightly rounded corners */
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  margin: 0 15px;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-dark);
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* === HAMBURGER MENU (Mobile) === */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}

.hamburger .bar {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text-main);
  margin: 5px 0;
  border-radius: 3px;
  transition: all 0.4s ease;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 63px;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 20px;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 1s cubic-bezier(0.16, 1, 0.3, 1),
    padding 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
  max-height: 600px;
  padding: 16px 20px 24px;
  pointer-events: all;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 14px 0;
  width: 100%;
  text-align: center;
  border-radius: 14px;
  transition: all 0.2s ease;
}

.mobile-menu a:hover {
  background: rgba(179, 157, 219, 0.12);
  color: var(--primary-dark);
}

.mobile-menu .btn-primary {
  color: white !important;
}

/* === GLOW ANIMATION === */
.glow {
  animation: glowPulse 2.5s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    box-shadow: 0 4px 15px rgba(126, 87, 194, 0.3);
  }

  50% {
    box-shadow: 0 4px 30px rgba(126, 87, 194, 0.6),
      0 0 50px rgba(179, 157, 219, 0.3);
  }
}

/* === SCROLL ENTRANCE ANIMATION === */
/* Initial state is set by JS, not CSS — so sections are visible even if JS is cached */
.animate-on-scroll.visible,
.feature-card.visible,
.why-card.visible,
.stat-item.visible,
.pro-dashboard-mockup.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* === SLIDER DOTS === */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* === BUTTONS === */
.btn {
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(126, 87, 194, 0.3);
}

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

.btn-secondary {
  background: #4a5568;
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
}

.btn-gold {
  background: linear-gradient(135deg, #ffd700, #ffa000);
  color: #333;
}

/* === HERO SECTION === */
.hero-section {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}

.hero-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: -1;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: #80cbc4;
  /* Calm Green */
  bottom: 50px;
  right: -50px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #1a202c;
}

.hero-mission {
  font-size: 0.95rem;
  font-weight: 500;
  font-style: italic;
  opacity: 0.85;
  margin-top: 15px;
}

.badge-soft {
  background: rgba(179, 157, 219, 0.2);
  color: var(--primary-dark);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 15px;
  display: inline-block;
}

.hero-btns {
  margin-top: 30px;
  display: flex;
  gap: 15px;
}

/* PHONE MOCKUP */
.phone-mockup {
  width: 280px;
  height: 580px;
  background: #000;
  border-radius: 40px;
  border: 8px solid #1a202c;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* MOCKUP SLIDER AUTOMATICO */
.mockup-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.mockup-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.mockup-slider .slide.active-slide {
  opacity: 1;
}

.floating {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

.offline-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  gap: 5px;
}

.slash-icon {
  position: absolute;
  left: 6px;
  color: #ff5252;
}

/* === SECTIONS === */
.section {
  padding: 100px 0;
}

/* === DEFINITION SECTION === */
.section-definition {
  padding: 100px 0 60px;
  background: white;
}

.definition-content {
  max-width: 800px;
  margin: 30px auto 0;
}

.definition-content p.lead {
  font-size: 1.5rem;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 20px;
}

.definition-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.feature-card {
  background: white;
  padding: 30px;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid white;
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.purple {
  background: #ede7f6;
  color: var(--primary-dark);
}

.blue {
  background: #e3f2fd;
  color: #1e88e5;
}

.red {
  background: #ffebee;
  color: #ef5350;
}

.green {
  background: #e8f5e9;
  color: #4caf50;
}

.yellow {
  background: #fffde7;
  color: #fbc02d;
}

.orange {
  background: #fff3e0;
  color: #ff9800;
}

/* === ABOUT SECTION === */
.section-about {
  padding: 120px 0;
  background: white;
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.quote-badge {
  position: absolute;
  bottom: 30px;
  right: -20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 700;
  color: var(--primary-dark);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  font-style: italic;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
  margin-top: 15px;
}

.about-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #555;
  font-size: 1.1rem;
}

/* === DOWNLOAD SECTION === */
.section-download {
  padding: 80px 0 120px;
}

.download-box {
  /* Softer background, less blinding */
  background: linear-gradient(135deg,
      rgba(88, 28, 135, 0.05) 0%,
      rgba(88, 28, 135, 0.1) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 80px 40px;
  border-radius: 40px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(88, 28, 135, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.glass-light {
  /* Adjusted to be less white/blinding */
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.download-box h2 {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.store-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.store-btn {
  background: #1a202c;
  color: white;
  padding: 12px 25px;
  border-radius: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.2s, background 0.2s;
  min-width: 180px;
}

.store-btn:hover {
  transform: translateY(-3px);
  background: #000;
}

.store-btn.google {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
}

.store-btn.google:hover {
  background: #f9f9f9;
}

.store-btn i {
  font-size: 1.8rem;
}

.btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.btn-text span {
  font-size: 0.7rem;
  text-transform: uppercase;
}

.btn-text strong {
  font-size: 1.1rem;
}

.store-note {
  margin-top: 20px;
  font-size: 0.9rem;
  opacity: 0.7;
}

.store-note a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

/* === WHY FREE SECTION === */
.section-why-free {
  padding: 80px 0;
  background: #f8f9fa;
}

.section-why-free h2 {
  font-size: 2.5rem;
  margin-top: 15px;
  margin-bottom: 10px;
}

.section-why-free .subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 50px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.why-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.why-card:hover {
  transform: translateY(-5px);
}

.icon-box {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: #f0f0f0;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.why-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

/* === PRO SECTION === */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.pro-list li {
  list-style: none;
  margin-bottom: 15px;
  font-size: 1.1rem;
  display: flex;
  gap: 10px;
  align-items: center;
}

.pro-list i {
  color: var(--primary);
}

/* === REALISTIC DASHBOARD MOCKUP (Refined) === */
.pro-dashboard-mockup {
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  /* Soft shadow */
  border: 1px solid #f3f4f6;
  font-family: "Inter", sans-serif;
  min-height: 400px;
  /* Taller */
  display: flex;
  flex-direction: column;
}

.mockup-header {
  padding: 25px 30px;
  border-bottom: none;
  /* No separator line in screenshot */
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  background: transparent;
}

.mockup-body {
  padding: 0 30px 30px;
  flex-grow: 1;
}

.chart-container {
  display: flex;
  gap: 15px;
  height: 250px;
  position: relative;
  padding-left: 40px;
  margin-top: 20px;
}

.y-axis {
  position: absolute;
  left: 0;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #9ca3af;
  height: 200px;
  /* Match bars height */
}

/* Grid Lines */
.grid-lines {
  position: absolute;
  left: 40px;
  right: 0;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 0;
  height: 200px;
}

.grid-line {
  border-bottom: 1px dashed #f3f4f6;
  width: 100%;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding-bottom: 30px;
  z-index: 1;
  border-bottom: 1px solid #f3f4f6;
  border-left: none;
}

.chart-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 10%;
  height: 200px;
  /* Fixed height for bars area */
  justify-content: flex-end;
  position: relative;
}

.bar-group {
  display: flex;
  gap: 4px;
  /* Space between bars */
  align-items: flex-end;
  height: 100%;
  width: 100%;
  justify-content: center;
}

.bar {
  width: 6px;
  border-radius: 4px 4px 4px 4px;
  /* Fully rounded caps */
  transition: height 0.5s ease;
}

.bar-mood {
  background: var(--c-mood);
}

.bar-anxiety {
  background: var(--c-anx);
}

.bar-stress {
  background: var(--c-str);
}

.bar-sleep {
  background: var(--c-slp);
}

.day-label {
  margin-top: 15px;
  font-size: 0.8rem;
  color: #6b7280;
  position: absolute;
  bottom: -30px;
  font-weight: 500;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 25px;
  padding-top: 0;
  border-top: none;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #4b5563;
  font-weight: 500;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.mood {
  background: var(--c-mood);
}

.dot.anxiety {
  background: var(--c-anx);
}

.dot.stress {
  background: var(--c-str);
}

.dot.sleep {
  background: var(--c-slp);
}

/* === BUSINESS SECTION === */
.section-business {
  padding-bottom: 140px;
}

.business-card {
  /* Exact match for screenshot: White, Clean, Soft Shadow */
  background: #ffffff;
  border-radius: 40px;
  padding: 80px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  position: relative;
  box-shadow: 0 30px 60px rgba(100, 100, 100, 0.05);
  /* Very subtle shadow */
  border: none;
  overflow: visible;
}

.business-card::before {
  display: none;
  /* Remove orb */
}

.business-content {
  flex: 1;
}

.overline.primary-text {
  color: #8b5cf6;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  display: block;
}

.business-card h2 {
  font-size: 2.8rem;
  line-height: 1.1;
  color: #1f2937;
  margin-bottom: 25px;
}

.business-desc {
  color: #4b5563;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  max-width: 600px;
}

.stats-grid {
  display: flex;
  gap: 60px;
  margin-top: 50px;
}

/* === THERAPIST LIST IMPROVEMENTS (CARD STYLE) === */
.split-content ul {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.split-content ul li {
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  /* Center vertically */
  gap: 20px;
  text-align: left;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.split-content ul li:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.split-content ul li i {
  /* DARK PURPLE ICON (No Background) */
  color: #6d28d9;
  /* Deep Purple 700 */
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

/* === BUSINESS SECTION (NEW STRUCTURE) === */
.business-card {
  background: #ffffff;
  border-radius: 40px;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  /* Stack header and grid */
  gap: 60px;
  box-shadow: 0 30px 60px rgba(100, 100, 100, 0.05);
  border: none;
}

.business-header {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}

.business-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.business-cta {
  display: flex;
  align-items: center;
  padding-bottom: 10px;
  /* Slight optical adjustment */
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.stat-item {
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 24px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  height: 100%;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-icon-wrapper {
  /* DARK PURPLE ICON (No Background) */
  font-size: 2rem;
  color: #6d28d9;
  /* Deep Purple 700 */
  flex-shrink: 0;
  width: 50px;
  text-align: center;
}

.stat-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: #8b5cf6;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.stat-label {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.4;
}

/* === FAQ SECTION === */
.section-faq {
  padding: 100px 0;
  background: var(--bg-light);
}

.faq-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 60px;
}

.faq-column-title {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-item {
  background: white;
  border-radius: 16px;
  margin-bottom: 15px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 25px;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
}

.faq-question:hover {
  background: rgba(0, 0, 0, 0.01);
}

.faq-question i {
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #fafafa;
}

.faq-item.active .faq-answer {
  padding: 0 25px 25px;
  max-height: 500px;
  /* Arbitrary large number for animation */
}

.faq-answer p {
  color: #555;
  line-height: 1.7;
  font-size: 1rem;
  margin: 0;
}

/* === FOOTER (RESTORED) === */
.main-footer {
  background: white;
  padding: 80px 0 30px;
  border-top: 1px solid #eee;
  margin-top: 80px;
  /* Separation from previous section */
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  text-align: left;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.footer-brand p {
  color: #6b7280;
  margin-bottom: 20px;
}

.social-links {
  margin-top: 10px;
  /* Adjusted spacing */
  display: flex;
  gap: 15px;
  font-size: 1.2rem;
}

.social-links a {
  color: var(--text-main);
  transition: color 0.2s;
}

.social-links a:hover {
  color: #6d28d9;
  /* Hover Deep Purple */
}

.footer-links h4 {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--text-main);
}

.footer-links a {
  display: block;
  text-decoration: none;
  color: #718096;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #6d28d9;
  /* Hover Deep Purple */
}

.copyright {
  text-align: center;
  font-size: 0.9rem;
  color: #a0aec0;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

/* RESPONSIVE */
@media (max-width: 900px) {

  /* Tablet Breakpoint */
  .business-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .business-text {
    max-width: 100%;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    /* Stack cards on smaller screens */
  }
}

@media (max-width: 768px) {

  .hero-content,
  .split-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Center the list container but keep items left-aligned */
  .split-content ul {
    width: 100%;
    max-width: 100%;
    margin: 30px auto;
    padding-left: 0;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-btns {
    width: 100%;
    justify-content: center;
    margin: 15px auto 0;
    /* Stacca leggermente dal testo sopra su mobile */
  }

  .phone-mockup {
    margin: 0 auto;
  }

  .pro-dashboard-mockup {
    margin-top: 30px;
  }

  .mockup-header {
    padding: 15px;
  }

  .ds-modal-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }


  .mockup-body {
    padding: 0 15px 15px;
  }

  .chart-container {
    gap: 8px;
    padding-left: 25px;
  }

  .bar {
    width: 4px;
  }

  .bar-group {
    gap: 2px;
  }

  .chart-legend {
    gap: 10px;
    font-size: 0.8rem;
  }

  .business-card {
    padding: 30px 5px;
    /* Minimize internal padding drastically */
    gap: 20px;
    width: 100%;
  }

  .business-header {
    align-items: center;
    gap: 15px;
  }

  .stats-grid {
    gap: 10px;
    /* Minimize gap between cards */
    margin-top: 0;
    width: 100%;
  }

  .stat-item {
    padding: 15px;
    /* Minimum padding for contents */
    gap: 10px;
    width: 100%;
  }

  .stat-icon-wrapper {
    font-size: 1.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .nav-links.desktop-only {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .about-wrapper {
    grid-template-columns: 1fr;
  }

  .faq-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .quote-badge {
    right: 20px;
  }

  .download-box h2 {
    font-size: 2rem;
  }
}

/* =========================================
   DIGITAL STUDIO IFRAME MODAL
   ========================================= */
.iframe-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  /* Dark overlay */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 3000;
  /* Above everything */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.iframe-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.iframe-modal-content {
  position: relative;
  width: 95%;
  max-width: 1200px;
  height: 90vh;
  /* Leave some space top/bottom */
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  /* Ensure iframe takes full space */
  flex-direction: column;
}

.iframe-modal-overlay.active .iframe-modal-content {
  transform: scale(1) translateY(0);
}

.iframe-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.iframe-modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
}

.iframe-modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #f3f4f6;
  /* light grey placeholder while loading */
}

/* Close button positioning on mobile to ensure tap target */
@media (max-width: 768px) {
  .iframe-modal-content {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    /* Full screen on mobile */
  }

  .iframe-modal-close {
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    /* Darker on mobile for contrast */
  }
}