/* =============================================
   EDILBOSS — DESIGN SYSTEM (LIGHT THEME)
   Colors: Orange #F5821E | Dark #111111 | White #FFFFFF
   Font: Inter (Google Fonts)
   ============================================= */

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

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

:root {
  --orange: #F5821E;
  --orange-dark: #D96B0A;
  --orange-light: #FF9A3C;
  --orange-glow: rgba(245, 130, 30, 0.10);
  --orange-glow-strong: rgba(245, 130, 30, 0.20);

  /* Light theme surfaces */
  --bg-main: #FFFFFF;
  --bg-soft: #F7F8FA;
  --bg-muted: #EFF1F5;
  --bg-card: #FFFFFF;

  /* Dark text */
  --black: #111111;
  --text-primary: #111111;
  --text-secondary: #444444;
  --text-tertiary: #888888;
  --text-light: #BBBBBB;

  /* Borders */
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --border-orange: rgba(245, 130, 30, 0.35);

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-orange: 0 8px 32px rgba(245, 130, 30, 0.30);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-soft);
}

::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 3px;
}

/* ---- SELECTION ---- */
::selection {
  background: var(--orange);
  color: #fff;
}

/* ---- UTILITY ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--bg-soft);
}

.section-darker {
  background: var(--bg-muted);
}

.tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--orange-glow);
  border: 1px solid var(--border-orange);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-title span {
  color: var(--orange);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(245, 130, 30, 0.40);
}

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

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

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

.btn-ghost:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-2px);
}

/* ---- NAVIGATION ---- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-logo-text span {
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ======================== SPLASH SHOWCASE ======================== */
#splash-showcase {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-main);
  padding-top: 80px;
  /* Compenso altezza navbar */
}

.splash-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.splash-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 30%, rgba(245, 130, 30, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 85% 75%, rgba(245, 130, 30, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
}

#splash-showcase .hero-grid {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.splash-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  padding: 0 40px;
}

/* BLOCCO 1: logo a sinistra e devices a destra */
.splash-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  gap: 40px;
  animation: fadeInDown 0.8s ease both;
}

.splash-logo-col {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* BLOCCO 2: slogan grande */
.splash-slogan {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -1.5px;
  text-align: center;
  max-width: 860px;
  animation: fadeInDown 0.8s ease 0.2s both;
}

.splash-slogan span {
  color: var(--orange);
}

/* BLOCCO 3: CTA centrato */
.splash-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeInDown 0.8s ease 0.35s both;
}

.splash-trust {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-weight: 500;
  opacity: 0.8;
  letter-spacing: 0.02em;
}

/* Cornice iPhone premium */
.splash-phone {
  position: absolute;
  bottom: -10px;
  right: -30px;
  animation: splashPhoneFloat 6s ease-in-out 1s infinite;
  filter: drop-shadow(-15px 20px 40px rgba(0, 0, 0, 0.2));
  z-index: 10;
}

.splash-phone-inner {
  width: 195px;
  background: #fff;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 2px #1a1a1a,
    0 20px 50px rgba(0, 0, 0, 0.2);
  transform: rotate(3deg);
}

.splash-phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 65px;
  height: 20px;
  background: #111;
  border-radius: 12px;
  z-index: 10;
}

.splash-phone-inner img {
  width: 100%;
  display: block;
}

/* Glare sul vetro */
.splash-phone-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 40%);
  pointer-events: none;
  z-index: 5;
  border-radius: 28px;
}

@keyframes splashPhoneFloat {

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

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

/* Contenitore doppio device */
.splash-devices {
  position: relative;
  display: flex;
  align-items: flex-end;
  animation: fadeInRight 0.8s ease 0.2s both;
}

/* Mini iMac */
.splash-imac {
  position: relative;
  animation: splashImacFloat 7s ease-in-out infinite;
}

.splash-imac-wrap {
  background: #111;
  border-radius: 10px;
  padding: 10px 10px 30px 10px;
  position: relative;
  max-width: 700px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.18),
    0 0 0 1px #c8c8c8;
}

.splash-imac-screen {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: min(680px, 100%);
}

.splash-imac-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.splash-imac-chin {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: #e4e4e4;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.splash-imac-stand {
  width: 100px;
  height: 50px;
  background: linear-gradient(to bottom, #d0d0d0, #b0b0b0);
  margin: 0 auto;
  transform: translateY(-4px);
}

.splash-imac-base {
  width: 200px;
  height: 8px;
  background: linear-gradient(to right, #b4b4b4, #e8e8e8, #b4b4b4);
  margin: 0 auto;
  border-radius: 4px;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.splash-imac-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 40%);
  pointer-events: none;
  border-radius: 10px;
  z-index: 2;
}

@keyframes splashImacFloat {

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

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

.splash-logo {
  width: 100%;
  max-width: 360px;
  height: auto;
  filter: drop-shadow(0 8px 30px rgba(245, 130, 30, 0.15));
  margin-bottom: 24px;
}

.splash-tagline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
  letter-spacing: -0.2px;
  margin: 0 0 40px;
  max-width: 520px;
  animation: fadeInDown 0.8s ease 0.15s both;
}

.splash-tagline span {
  color: var(--text-primary);
  font-weight: 700;
  display: block;
}

.splash-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: white;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.2px;
  box-shadow: 0 8px 30px rgba(245, 130, 30, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: fadeInDown 0.8s ease 0.3s both;
}

.splash-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(245, 130, 30, 0.5);
}

/* Scroll indicator in basso */
.splash-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
  animation: fadeIn 1s ease 0.8s both;
}

.splash-scroll-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.splash-scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--orange), rgba(245, 130, 30, 0));
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0;
  }
}

/* ---- HERO ---- */
#hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  background: var(--bg-main);
  /* overflow: hidden rimosso affinché i mockup sforino liberamente */
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* Trattiene i particellari */
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 65% 35%, rgba(245, 130, 30, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 15% 70%, rgba(245, 130, 30, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--orange);
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 0.5;
  }

  90% {
    opacity: 0.15;
  }

  100% {
    transform: translateY(-20px) scale(1);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ---- BRAND SHOWCASE (VETRINA ALTA HERO) ---- */
.hero-brand-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  animation: fadeInDown 0.6s ease;
}

.hero-brand-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.hero-brand-logo {
  width: 100%;
  max-width: 550px;
  /* Masive logo width */
  height: auto;
}

.hero-brand-slogan {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0px;
  text-transform: uppercase;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--orange-glow);
  border: 1px solid var(--border-orange);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 28px;
  animation: fadeInDown 0.6s ease;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(1.5);
  }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-primary);
  animation: fadeInDown 0.7s ease 0.1s both;
}

.hero-title .highlight {
  color: var(--orange);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 520px;
  animation: fadeInDown 0.7s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  animation: fadeInDown 0.7s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  animation: fadeInDown 0.7s ease 0.4s both;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.hero-stat-num span {
  color: var(--orange);
}

.hero-stat-label {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-visual {
  position: relative;
  animation: fadeInRight 0.8s ease 0.2s both;
}

/* ---- BEAUTIFUL PHYSICAL DEVICES MOCKUP ---- */
.hero-devices-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 20px;
  margin-top: 40px;
}

/* iMac Frame */
.imac-device {
  width: 100%;
  max-width: 780px;
  position: relative;
  z-index: 2;
  animation: floatDesktop 8s ease-in-out infinite;
}

.imac-screen-wrap {
  background: #111;
  border-radius: 12px;
  padding: 16px 16px 45px 16px;
  position: relative;
  /* Premium metallic outer edge and huge drop shadow */
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(0, 0, 0, 0.1),
    0 0 0 2px #d4d4d4,
    inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.imac-display {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.hero-mockup-desktop {
  width: 100%;
  height: auto;
  display: block;
}

/* Apple real silver chin */
.imac-chin {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45px;
  background: #e4e4e4;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Generic Apple-style dot */
.imac-chin::after {
  content: '';
  width: 14px;
  height: 14px;
  background: #a3a3a3;
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.imac-stand {
  width: 120px;
  height: 60px;
  background: linear-gradient(to bottom, #d2d2d2, #a8a8a8);
  margin: 0 auto;
  position: relative;
  z-index: -1;
  transform: translateY(-8px);
}

.imac-base {
  width: 220px;
  height: 10px;
  background: linear-gradient(to right, #b4b4b4, #e8e8e8, #b4b4b4);
  margin: 0 auto;
  border-radius: 4px 4px 0 0;
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

/* iPhone Floating Device */
.iphone-device {
  position: absolute;
  bottom: -15px;
  right: -30px;
  /* Overlap right corner massively */
  width: 190px;
  z-index: 10;
  background: transparent;
  padding: 0;
  animation: floatPhone 6s ease-in-out 1s infinite;
}

.iphone-screen {
  background: #fff;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  display: flex;
  /* Shadow depth and single sleek dark bezel */
  box-shadow:
    -25px 35px 80px rgba(0, 0, 0, 0.30),
    0 0 0 2px #151515;
}

/* Image */
.iphone-screen img {
  width: 100%;
  display: block;
}

/* Dynamic island */
.iphone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 65px;
  height: 20px;
  background: #000;
  border-radius: 12px;
  z-index: 20;
}

/* Glare effects / Glass reflections */
.imac-screen-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 40%);
  pointer-events: none;
  z-index: 30;
  border-radius: 12px;
}

.iphone-screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 35%);
  pointer-events: none;
  z-index: 30;
  border-radius: 34px;
}

/* Subtle, extremely sleek organic animations (no blurry 3D rotations) */
@keyframes floatDesktop {

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

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

@keyframes floatPhone {

  0%,
  100% {
    transform: translateY(0px) rotate(-3deg);
  }

  50% {
    transform: translateY(-16px) rotate(-2deg);
  }
}

/* ---- ANIMAZIONE DRAG & DROP OVERLAY ---- */
.dnd-animation-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

.dnd-tooltip {
  position: absolute;
  top: 5%;
  left: 28%;
  background: var(--orange);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(245, 130, 30, 0.4);
  animation: dndTooltipPulse 2s infinite ease-in-out;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dnd-tooltip::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 15px;
  width: 10px;
  height: 10px;
  background: var(--orange);
  transform: rotate(45deg);
}

@keyframes dndTooltipPulse {

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

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

.dnd-worker {
  position: absolute;
  background: white;
  border-radius: 100px;
  padding: 6px 14px 6px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
  font-size: 0.85rem;
  font-weight: 700;
  color: #333;
  animation: dndMove 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: top, left, transform, opacity;
}

.dnd-avatar {
  background: var(--orange);
  color: white;
  width: 26px;
  height: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 0.65rem;
  letter-spacing: -0.5px;
}

.dnd-cursor {
  position: absolute;
  z-index: 21;
  animation: dndCursor 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.4));
  will-change: top, left, transform, opacity;
}

.dnd-drop-ripple {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 4px solid var(--orange);
  border-radius: 50%;
  animation: dndRipple 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  opacity: 0;
  will-change: top, left, transform, opacity;
}

@keyframes dndMove {
  0% {
    top: 15%;
    left: 30%;
    transform: scale(0.8);
    opacity: 0;
  }

  10% {
    top: 15%;
    left: 30%;
    transform: scale(1);
    opacity: 1;
  }

  15% {
    top: 15%;
    left: 30%;
    transform: scale(1.05) rotate(-3deg);
    opacity: 1;
  }

  45% {
    top: 60%;
    left: 65%;
    transform: scale(1.05) rotate(4deg);
    opacity: 1;
  }

  55% {
    top: 60%;
    left: 65%;
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }

  65% {
    top: 60%;
    left: 65%;
    transform: scale(0.9);
    opacity: 0;
  }

  100% {
    top: 60%;
    left: 65%;
    transform: scale(0.9);
    opacity: 0;
  }
}

@keyframes dndCursor {
  0% {
    top: 18%;
    left: 33%;
    transform: scale(1.3);
    opacity: 0;
  }

  10% {
    top: 18%;
    left: 33%;
    transform: scale(1);
    opacity: 1;
  }

  15% {
    top: 18%;
    left: 33%;
    transform: scale(0.85);
    opacity: 1;
  }

  45% {
    top: 63%;
    left: 68%;
    transform: scale(0.85);
    opacity: 1;
  }

  55% {
    top: 63%;
    left: 68%;
    transform: scale(1);
    opacity: 1;
  }

  65% {
    top: 75%;
    left: 75%;
    transform: scale(1);
    opacity: 0;
  }

  100% {
    top: 75%;
    left: 75%;
    transform: scale(1);
    opacity: 0;
  }
}

@keyframes dndRipple {

  0%,
  54% {
    top: 58%;
    left: 63%;
    transform: scale(0);
    opacity: 0;
  }

  55% {
    top: 58%;
    left: 63%;
    transform: scale(0);
    opacity: 0.8;
  }

  75% {
    top: 58%;
    left: 63%;
    transform: scale(1.5);
    opacity: 0;
  }

  100% {
    top: 58%;
    left: 63%;
    transform: scale(1.5);
    opacity: 0;
  }
}

.hero-mockup {
  width: 100%;
  display: block;
}

.hero-floating-card,
.hero-float-card {
  position: absolute;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  animation: floatCard 4s ease-in-out infinite;
}

@keyframes floatCard {

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

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

.hero-card-1 {
  top: 100px;
  left: -10px;
  animation-delay: 0s;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.hero-card-2 {
  bottom: 20px;
  left: 0px;
  animation-delay: 2s;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.card-icon {
  width: 36px;
  height: 36px;
  background: var(--orange-glow);
  border: 1px solid var(--border-orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.card-info {
  display: flex;
  flex-direction: column;
}

.card-value {
  font-weight: 800;
  color: var(--text-primary);
  font-size: 1rem;
}

.card-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 400;
}

/* ---- MULTI-DEVICE SECTION ---- */
#multidevice {
  background: var(--bg-soft);
}

.multidevice-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.md-device-card {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.md-device-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--orange-glow-strong), transparent 65%);
  opacity: 0;
  transition: var(--transition);
}

.md-device-card.md-featured {
  border-color: var(--orange);
  background: #FFFAF6;
  box-shadow: 0 0 0 2px var(--orange), var(--shadow-orange);
  transform: scale(1.03);
}

@media (hover: hover) {
  .md-device-card:hover::before {
    opacity: 1;
  }

  .md-device-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--border-orange);
  }

  .md-device-card.md-featured:hover {
    transform: scale(1.03) translateY(-6px);
  }
}

.md-device-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.md-device-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.md-device-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
  min-height: 60px;
}

/* ===== DEVICE PREVIEW ===== */

/* Base frame (Desktop usa questo) */
.md-preview {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

/* Screen: height ESPLICITO bulletproof */
.md-preview-screen {
  height: 150px;
  overflow: hidden;
  background: #fff;
}

.md-preview-screen img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top left;
}

/* ---- Desktop: browser chrome con bezel monitor ---- */
.md-preview-desktop {
  background: #1a1a1a;
  padding: 10px 10px 12px;
  /* bezel scuro intorno allo schermo */
  border-radius: 10px;
}

.md-preview-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  background: #2a2a2a;
}

.dot-r {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f57;
  display: inline-block;
}

.dot-y {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #febc2e;
  display: inline-block;
}

.dot-g {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28c840;
  display: inline-block;
}

.md-preview-url {
  flex: 1;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  font-family: monospace;
  margin-left: 6px;
}

/* ---- Monitor stand & base ---- */
.md-monitor-wrap {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.md-monitor-wrap .md-preview {
  width: 100%;
  margin-top: 0;
  /* silver metallic outer bezel */
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.2),
    0 0 0 2px #cccccc;
}

.md-monitor-neck {
  width: 40px;
  height: 22px;
  background: linear-gradient(to bottom, #d0d0d0, #b0b0b0);
  clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
}

.md-monitor-base {
  width: 100px;
  height: 7px;
  background: linear-gradient(to right, #a8a8a8, #e0e0e0, #a8a8a8);
  border-radius: 3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* ---- Tablet portrait ---- */
.md-tablet-wrap {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.md-tablet {
  background: #1a1a1a;
  border-radius: 20px;
  padding: 14px 8px;
  width: 56%;
  /* stretto e alto = portrait */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 0 0 1.5px #2e2e2e;
}

.md-tablet-cam {
  width: 6px;
  height: 6px;
  background: #555;
  border-radius: 50%;
  flex-shrink: 0;
}

.md-tablet-screen {
  width: 100%;
  height: 160px;
  /* esplicito */
  overflow: hidden;
  background: #fff;
  border-radius: 4px;
}

.md-tablet-screen img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top left;
}

.md-tablet-btn {
  width: 20px;
  height: 20px;
  border: 1.5px solid #444;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---- Phone solo (immagine già ha cornice iPhone) ---- */
.md-phone-solo {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  height: 230px;
  /* fisso: niente max-height */
  overflow: hidden;
}

.md-phone-solo img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
  object-position: top center;
}

/* Hover bounce */
.md-device-card:hover .md-preview,
.md-device-card:hover .md-tablet,
.md-device-card:hover .md-phone-solo img {
  animation: deviceBounce 3s ease-in-out infinite;
}

@keyframes deviceBounce {

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

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



/* --- Compat strip --- */
.md-compat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0 0;
}

.md-compat-label {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.md-compat-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.md-badge {
  padding: 5px 14px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}

.md-badge:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ---- BRAND BAR ---- */
#brand-bar {
  position: relative;
  z-index: 2;
  padding: 28px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.brand-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.brand-item {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.brand-item:hover {
  color: var(--orange);
}

.brand-item .icon {
  font-size: 1.2rem;
}

/* ---- FEATURES ---- */
#features {
  padding: 100px 0;
  background: var(--bg-soft);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-card {
  background: var(--bg-main);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, var(--orange-glow-strong), transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

/* Solo su dispositivi con vero hover (mouse): mai sui touchscreen */
@media (hover: hover) {
  .feature-card:hover::before {
    opacity: 1;
  }

  .feature-card:hover {
    background: #FFF9F5;
  }

  .feature-card:hover .feature-icon {
    background: var(--orange);
    border-color: var(--orange);
    box-shadow: 0 0 20px rgba(245, 130, 30, 0.3);
  }
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--orange-glow);
  border: 1px solid var(--border-orange);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ---- HOW IT WORKS ---- */
#how-it-works {
  padding: 100px 0;
  background: var(--bg-muted);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.steps-container::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--orange), rgba(245, 130, 30, 0.2), var(--orange), rgba(245, 130, 30, 0.2), var(--orange));
  z-index: 0;
}

.step {
  text-align: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 72px;
  height: 72px;
  background: var(--bg-muted);
  border: 2px solid var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--orange);
  margin: 0 auto 24px;
  position: relative;
  transition: var(--transition);
}

/* Solo su dispositivi con vero hover (mouse): mai sui touchscreen */
@media (hover: hover) {
  .step:hover .step-number {
    background: var(--orange);
    color: #fff;
    box-shadow: var(--shadow-orange);
    transform: scale(1.1);
  }
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- FEATURE SHOWCASE (ex Benefits) ---- */
#benefits {
  padding: 100px 0;
  background: var(--bg-main);
}

/* Layout: immagine sinistra 55%, tabs destra 45% */
.showcase-layout {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 60px;
  align-items: center;
  margin-top: 60px;
}

/* ---- Lato sinistro: screen wrap ---- */
.showcase-visual {
  position: relative;
}

.showcase-screen-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.14), 0 0 0 1px var(--border);
  background: #f0f0f0;
  aspect-ratio: 16 / 10;
  width: 100%;
  min-height: 300px;
}

/* Pannelli sovrapposti — TUTTI absolute, si alternano solo con opacity */
.showcase-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.showcase-panel.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.showcase-screen {
  width: 100%;
  height: 100%;
}

.showcase-screen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top left;
}

/* Badge in basso a sinistra sull'immagine */
.showcase-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.showcase-badge span {
  font-size: 1rem;
}

/* ---- Lato destro: tab stack ---- */
.showcase-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.showcase-tab {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 20px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: all 0.22s ease;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.showcase-tab::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--orange);
  border-radius: 3px 0 0 3px;
  opacity: 0;
  transition: opacity 0.22s ease;
}

@media (hover: hover) {
  .showcase-tab:hover {
    border-color: var(--border-orange);
    background: #FFFAF6;
    transform: translateX(3px);
  }
}

.showcase-tab.active {
  border-color: var(--orange);
  background: #FFF6EE;
  box-shadow: 0 4px 20px rgba(245, 130, 30, 0.12);
  transform: translateX(4px);
}

.showcase-tab.active::before {
  opacity: 1;
}

.showcase-tab-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.showcase-tab-body {
  flex: 1;
  min-width: 0;
}

.showcase-tab-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.showcase-tab.active .showcase-tab-title {
  color: var(--orange);
}

.showcase-tab-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
  /* si espande solo quando attivo */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.showcase-tab.active .showcase-tab-desc {
  max-height: 80px;
  opacity: 1;
}

.showcase-tab-arrow {
  font-size: 1.1rem;
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.showcase-tab.active .showcase-tab-arrow {
  color: var(--orange);
  transform: translateX(3px);
}

/* Responsive */
@media (max-width: 900px) {
  .showcase-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .showcase-screen-wrap {
    aspect-ratio: 16 / 9;
  }
}




/* ---- Showcase image: slow Ken Burns pan ---- */
.showcase-screen-pan img {
  animation: showcasePan 8s ease-in-out infinite alternate;
  transform-origin: top left;
}

@keyframes showcasePan {
  0% {
    transform: scale(1.08) translate(0%, 0%);
  }

  100% {
    transform: scale(1.08) translate(-4%, -2%);
  }
}

/* ---- PRICING ---- */

/* Toggle Mensile / Annuale — Pill Group */
.pricing-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 48px;
  gap: 12px;
}

.pricing-pill-group {
  display: inline-flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  gap: 4px;
}

.pricing-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: none;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.22s ease;
  white-space: nowrap;
}

.pricing-pill:hover {
  color: var(--text-primary);
  background: var(--bg-main);
}

.pricing-pill.active {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 2px 12px rgba(245, 130, 30, 0.35);
}

.pricing-toggle-hint {
  font-size: 0.85rem;
  color: var(--orange);
  background: var(--orange-glow);
  padding: 4px 14px;
  border-radius: 100px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.pricing-toggle-hint strong {
  font-weight: 700;
}

/* Show/hide annual note spans */
.pa-m {
  display: none;
}

.pa-a {
  display: none;
}

.pricing-is-annual .pa-a {
  display: inline;
}


#pricing {
  padding: 100px 0;
  background: var(--bg-soft);
  overflow: hidden;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.pricing-card.featured {
  border-color: var(--orange);
  background: #FFFAF6;
  box-shadow: 0 0 0 2px var(--orange), var(--shadow-orange);
  transform: scale(1.04);
}

@media (hover: hover) {
  .pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
  }

  .pricing-card.featured:hover {
    transform: scale(1.04) translateY(-4px);
  }
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  padding: 5px 18px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-name {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 8px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 0;
}

.price-currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-tertiary);
}

.price-amount {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-primary);
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.pricing-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.pricing-annual {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-bottom: 16px;
  margin-top: -12px;
}

.pricing-annual strong {
  color: var(--orange);
}

.pricing-per-user {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange);
  background: var(--orange-glow);
  border: 1px solid var(--border-orange);
  border-radius: 100px;
  padding: 3px 10px;
  margin-top: 6px;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-features .check {
  width: 20px;
  height: 20px;
  background: var(--orange-glow);
  border: 1px solid var(--border-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--orange);
  flex-shrink: 0;
}

.pricing-features .cross {
  width: 20px;
  height: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-light);
  flex-shrink: 0;
}

.pricing-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-top: 40px;
}

.pricing-note a {
  color: var(--orange);
  text-decoration: none;
}

/* ---- PRICING OPERAI (Version B) ---- */
.pricing-operai-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 0 8px;
  text-align: center;
}

.pricing-operai-num {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--orange);
}

.pricing-card.featured .pricing-operai-num {
  color: var(--orange);
}

.pricing-operai-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 4px;
}

/* ---- PRICING SHARED FEATURES ---- */
.pricing-features-common {
  margin-top: 40px;
  padding: 24px 32px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.pricing-features-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.pricing-features-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
}

.pricing-features-list span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-features-list .check {
  width: 20px;
  height: 20px;
  background: var(--orange-glow);
  border: 1px solid var(--border-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--orange);
  flex-shrink: 0;
}

/* ---- TESTIMONIALS ---- */
#testimonials {
  padding: 100px 0;
  background: var(--bg-muted);
  overflow: hidden;
}

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

.testimonial-card {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

@media (hover: hover) {
  .testimonial-card:hover {
    border-color: var(--border-orange);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
  }
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: var(--orange);
  font-size: 1rem;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.author-role {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ---- FAQ ---- */
#faq {
  padding: 100px 0;
  background: var(--bg-main);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid transparent;
}

.faq-item:hover {
  background: #FFF9F5;
  border-color: var(--border-orange);
}

.faq-item.open {
  background: #FFF9F5;
  border-color: var(--orange);
  border-left: 3px solid var(--orange);
}

.faq-question {
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  gap: 16px;
  user-select: none;
  color: var(--text-primary);
}

.faq-icon {
  width: 28px;
  height: 28px;
  background: var(--orange-glow);
  border: 1px solid var(--border-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--orange);
  transition: var(--transition);
}

.faq-item.open .faq-icon {
  background: var(--orange);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 28px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 28px 22px;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- CTA SECTION ---- */
#cta {
  padding: 120px 0;
  background: var(--bg-main);
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(245, 130, 30, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

#cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 130, 30, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 130, 30, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.cta-title span {
  color: var(--orange);
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons inside light CTA use standard styles — no overrides needed */
#cta .btn-outline {
  color: var(--text-primary);
  border-color: var(--border);
}

#cta .btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-glow);
}

.cta-trust {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

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

/* ---- CONTACT ---- */
#contact {
  padding: 100px 0;
  background: var(--bg-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.contact-info h2 span {
  color: var(--orange);
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--orange-glow);
  border: 1px solid var(--border-orange);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item-label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-item-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-form {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(245, 130, 30, 0.12);
}

.form-group select option {
  background: #fff;
  color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-privacy {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 24px;
  font-size: 0.82rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.form-privacy input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--orange);
}

.form-privacy a {
  color: var(--orange);
  text-decoration: none;
}

/* Honeypot (anti-spam) */
.hp-field {
  display: none !important;
}

/* ---- FOOTER ---- */
footer {
  background: var(--black);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 50px;
}

.footer-brand img {
  height: 90px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: #888;
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ccc;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: #888;
  text-decoration: none;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: #666;
}

.footer-bottom a {
  color: #666;
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: var(--orange);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: translateY(-2px);
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- MOBILE MENU ---- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 90px 32px 40px;
  flex-direction: column;
  gap: 0;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.12);
}

.mobile-menu.open {
  transform: translateX(0);
  display: flex;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu ul li a {
  display: block;
  padding: 12px 0;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.mobile-menu ul li a:hover {
  color: var(--orange);
  padding-left: 8px;
}

.mobile-menu .btn {
  width: 100%;
  justify-content: center;
  margin-top: 24px;
}

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 998;
  backdrop-filter: blur(4px);
}

.menu-overlay.active {
  display: block;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card.featured {
    transform: none;
  }

  @media (hover: hover) {
    .pricing-card.featured:hover {
      transform: translateY(-6px);
    }
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .multidevice-showcase {
    grid-template-columns: 1fr 1fr;
  }

  .md-device-card.md-featured {
    transform: none;
  }

  .md-device-card.md-featured:hover {
    transform: translateY(-6px);
  }

  /* Contact: single column su tablet */
  .contact-grid {
    gap: 48px;
  }
}

/* ============================================================
   MOBILE — 768px
   ============================================================ */
@media (max-width: 768px) {

  /* ---- GLOBAL ---- */
  .section {
    padding: 60px 0;
  }

  .container {
    padding: 0 20px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: clamp(1.7rem, 5.5vw, 2.4rem);
  }

  .section-subtitle {
    font-size: 1rem;
  }

  /* Pulsanti: touch-friendly (min 48px height) */
  .btn {
    padding: 14px 24px;
    min-height: 48px;
    font-size: 0.95rem;
  }

  /* ---- NAVBAR ---- */
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
    padding: 8px;
    /* touch target espanso */
  }

  .mobile-menu {
    display: flex;
  }

  /* ---- SPLASH SECTION MOBILE ---- */
  #splash-showcase {
    padding-top: 96px;
    min-height: 100svh;
    min-height: -webkit-fill-available;
  }

  .splash-inner {
    padding: 0 20px;
    padding-top: 20px;
    gap: 24px;
  }

  /* Nasconde il logo col: sul mobile la top-row mostra solo i devices */
  .splash-logo-col {
    display: none;
  }

  .splash-top-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    width: 100%;
  }

  .splash-devices {
    width: 100%;
    justify-content: center;
    align-items: flex-end;
    max-width: 100%;
    overflow: visible;
    position: relative;
  }

  /* iMac scalato per mobile */
  .splash-imac {
    width: 100%;
    max-width: 100%;
  }

  .splash-imac-wrap {
    padding: 6px 6px 20px 6px;
    max-width: 100%;
  }

  .splash-imac-screen {
    width: 100%;
  }

  .splash-imac-stand {
    width: 50px;
    height: 26px;
  }

  .splash-imac-base {
    width: 110px;
    height: 5px;
  }

  .splash-imac-chin {
    height: 20px;
  }

  /* iPhone: riportato visibile, ridimensionato per mobile */
  .splash-phone {
    display: block;
    position: absolute;
    bottom: -8px;
    right: -12px;
  }

  .splash-phone-inner {
    width: 110px;
    border-radius: 22px;
  }

  .splash-phone-island {
    width: 44px;
    height: 14px;
    top: 7px;
  }

  .splash-slogan {
    font-size: clamp(1.5rem, 5.5vw, 2.2rem);
    letter-spacing: -0.5px;
    padding: 0 4px;
  }

  .splash-cta {
    padding: 14px 28px;
    font-size: 1rem;
    min-height: 52px;
  }

  .splash-trust {
    font-size: 0.8rem;
  }

  .splash-scroll-indicator {
    display: none;
  }

  /* ---- FEATURES: lista orizzontale su mobile ---- */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .feature-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto auto;
    column-gap: 18px;
    row-gap: 4px;
    padding: 20px 20px;
    align-items: start;
  }

  .feature-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 52px;
    height: 52px;
    margin-bottom: 0;
    align-self: center;
  }

  .feature-title {
    grid-column: 2;
    grid-row: 1;
    font-size: 1rem;
    margin-bottom: 0;
  }

  .feature-desc {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.85rem;
    line-height: 1.55;
  }

  /* ---- HOW IT WORKS: timeline verticale su mobile ---- */
  .steps-container {
    grid-template-columns: 1fr;
    gap: 0;
    position: relative;
  }

  /* Linea verticale arancione a sinistra, allineata ai centri dei cerchi */
  .steps-container::before {
    display: block;
    top: 56px;
    /* padding-top step (20px) + metà cerchio (36px) */
    bottom: 56px;
    left: 52px;
    /* padding-left step (16px) + metà cerchio (36px) */
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(to bottom,
        var(--orange),
        rgba(245, 130, 30, 0.25));
  }

  /* Ogni step: cerchio a sinistra, titolo + testo a destra */
  .step {
    display: grid;
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
    column-gap: 20px;
    row-gap: 5px;
    padding: 20px 16px;
    text-align: left;
  }

  .step-number {
    grid-column: 1;
    grid-row: 1 / 3;
    margin: 0;
    align-self: center;
  }

  .step-title {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin-bottom: 0;
  }

  .step-desc {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
  }

  /* ---- FEATURE SHOWCASE ---- */
  .showcase-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
  }

  .showcase-screen-wrap {
    aspect-ratio: 16 / 9;
    min-height: unset;
  }

  .showcase-tab {
    padding: 16px;
    gap: 12px;
  }

  .showcase-tab-icon {
    width: 32px;
    font-size: 1.4rem;
  }

  .showcase-tab.active .showcase-tab-desc {
    max-height: 120px;
  }

  /* ---- MULTIDEVICE: carousel orizzontale con scroll-snap ---- */
  .multidevice-showcase {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    /* padding calcolato: (50vw) centro schermo - (min(42.5vw, 170px)) metà larghezza card */
    padding: 8px calc(50vw - min(42.5vw, 170px)) 20px;
    margin: 0 calc(-50vw + 50%) 40px;
    width: auto;
    /* sfora i bordi del container per full-bleed */
    scrollbar-width: none;
    /* Firefox: nasconde scrollbar */
  }

  /* Webkit: nasconde scrollbar */
  .multidevice-showcase::-webkit-scrollbar {
    display: none;
  }

  /* Ogni card: larghezza fissa, non si restringe, snap al centro */
  .md-device-card {
    flex: 0 0 85vw;
    max-width: 340px;
    scroll-snap-align: center;
    padding: 24px 20px 20px;
  }

  /* Ripristina il layout originale delle card (emoji + testo + mockup) */
  .md-device-icon {
    display: flex;
    justify-content: center;
  }

  .md-device-desc {
    min-height: unset;
    margin-bottom: 16px;
  }

  /* Monitor: ridimensionato per stare bene nella card mobile */
  .md-monitor-wrap {
    max-width: 100%;
    margin: 0 auto;
  }

  .md-preview-screen {
    height: 130px;
  }

  .md-monitor-neck {
    width: 40px;
    height: 20px;
  }

  .md-monitor-base {
    width: 90px;
    height: 6px;
  }

  /* Tablet */
  .md-tablet {
    width: 60%;
    max-width: 180px;
    margin: 0 auto;
    padding: 14px 8px;
    border-radius: 20px;
    gap: 10px;
  }

  .md-tablet-screen {
    height: 130px;
  }

  /* Smartphone */
  .md-phone-solo img {
    max-height: 210px;
    width: auto;
    margin: 0 auto;
    display: block;
  }

  /* ---- PRICING: Carousel Orizzontale ---- */
  .pricing-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 8px 20px 20px;
    margin: 0 -20px 40px;
    scrollbar-width: none;
  }

  .pricing-grid::-webkit-scrollbar {
    display: none;
  }

  .pricing-grid::after {
    content: '';
    flex: 0 0 20px;
    padding-right: 20px;
  }

  .pricing-card {
    flex: 0 0 75vw;
    max-width: 320px;
    scroll-snap-align: center;
    padding: 24px 20px;
  }

  .pricing-card.featured {
    transform: none;
    border-top: 3px solid var(--orange);
  }

  .pricing-toggle-wrap {
    margin-bottom: 32px;
  }

  /* ---- TESTIMONIALS ---- */
  .testimonials-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 8px 20px 20px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 40px;
    scrollbar-width: none;
  }

  .testimonials-grid::-webkit-scrollbar {
    display: none;
  }

  .testimonials-grid::after {
    content: '';
    flex: 0 0 20px;
    padding-right: 20px;
  }

  .testimonial-card {
    flex: 0 0 85vw;
    max-width: 340px;
    scroll-snap-align: center;
  }

  /* ---- FAQ ---- */
  .faq-question {
    padding: 18px 20px;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-item.open .faq-answer {
    padding: 0 20px 18px;
  }

  /* ---- CONTACT ---- */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form {
    padding: 24px 20px;
  }

  /* ---- BENEFITS (hero device) ---- */
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-description {
    margin: 0 auto 40px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-card-1,
  .hero-card-2 {
    display: none;
  }

  /* ---- FOOTER ---- */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 16px;
    margin-bottom: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .footer-brand img {
    height: 60px;
    margin: 0;
    flex-shrink: 0;
  }

  .footer-brand p {
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
    text-align: right;
    text-wrap: balance;
  }

  .footer-col:last-child {
    display: none;
  }

  footer {
    padding: 48px 0 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  /* ---- DEVICE FRAMES ---- */
  .device-mobile {
    display: none;
  }

  .hero-devices-wrap {
    display: block;
  }

  /* ---- SCROLL TO TOP ---- */
  #scroll-top {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }

  /* ---- TOAST ---- */
  .toast {
    bottom: 20px;
    right: 16px;
    left: 16px;
    max-width: unset;
  }

  /* ---- MISC ---- */
  .benefits-layout {
    grid-template-columns: 1fr;
  }

  .benefits-visual {
    order: -1;
  }

  .benefits-stat-badge {
    display: none;
  }
}

/* ============================================================
   SMALL MOBILE — 480px
   ============================================================ */
@media (max-width: 480px) {

  .section {
    padding: 52px 0;
  }

  .container {
    padding: 0 16px;
  }

  /* ---- FEATURES: colonna singola ---- */
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 24px 20px;
  }

  /* ---- HOW IT WORKS: colonna singola ---- */
  .steps-container {
    grid-template-columns: 1fr;
  }

  .step {
    padding: 24px 16px;
  }

  /* ---- FORM ---- */
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 20px 16px;
  }

  /* ---- BRAND BAR ---- */
  .brand-bar-inner {
    gap: 20px;
  }

  /* ---- HERO STATS ---- */
  .hero-stats {
    gap: 20px;
  }

  .hero-stat-num {
    font-size: 1.5rem;
  }

  /* ---- MULTIDEVICE COMPAT ---- */
  .md-compat {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .md-frame-tablet-inner {
    width: 70%;
  }

  .md-frame-mobile-inner {
    width: 40%;
  }

  /* ---- SPLASH: extra small — iPhone ridotto ---- */
  .splash-phone-inner {
    width: 88px;
    border-radius: 18px;
  }

  .splash-phone-island {
    width: 36px;
    height: 12px;
    top: 6px;
  }

  .splash-slogan {
    font-size: clamp(1.35rem, 6vw, 1.9rem);
  }

  /* ---- PRICING: full bleed ---- */
  .pricing-grid {
    max-width: 100%;
  }

  .pricing-card {
    padding: 20px 16px;
  }

  .price-amount {
    font-size: 2.4rem;
  }

  /* ---- TESTIMONIAL ---- */
  .testimonial-card {
    padding: 24px 20px;
  }

  /* ---- FAQ ---- */
  .faq-question {
    padding: 16px 16px;
    font-size: 0.9rem;
  }

  .faq-answer {
    padding: 0 16px;
  }

  .faq-item.open .faq-answer {
    padding: 0 16px 16px;
  }

  /* ---- MOBILE MENU: full-width su piccoli schermi ---- */
  .mobile-menu {
    width: 100%;
    left: 0;
    border-left: none;
    border-top: 1px solid var(--border);
  }
}

/* ============================================================
   EXTRA SMALL — 390px (iPhone SE, 12 mini, ecc.)
   ============================================================ */
@media (max-width: 390px) {

  .section {
    padding: 44px 0;
  }

  .container {
    padding: 0 14px;
  }

  .section-title {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }

  /* ---- SPLASH: iPhone mini — iPhone ridotto al minimo ---- */
  .splash-phone-inner {
    width: 74px;
    border-radius: 16px;
  }

  .splash-phone-island {
    width: 30px;
    height: 10px;
    top: 5px;
  }

  .splash-slogan {
    font-size: 1.3rem;
    letter-spacing: -0.3px;
  }

  .splash-cta {
    padding: 13px 22px;
    font-size: 0.9rem;
  }

  .btn {
    padding: 13px 20px;
    font-size: 0.9rem;
  }

  .nav-logo img {
    height: 32px;
  }

  .nav-logo-text {
    font-size: 1.1rem;
  }

  .pricing-card {
    padding: 18px 14px;
  }

  .contact-form {
    padding: 18px 14px;
  }

  .step-number {
    width: 56px;
    height: 56px;
    font-size: 1.2rem;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }
}

/* ---- SCROLL TO TOP ---- */
#scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--orange);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-orange);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
  z-index: 500;
}

#scroll-top.show {
  opacity: 1;
  transform: translateY(0);
}

#scroll-top:hover {
  background: var(--orange-light);
  transform: translateY(-3px);
}

/* ---- NOTIFICATION TOAST ---- */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--bg-main);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  z-index: 9999;
  box-shadow: var(--shadow);
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  max-width: 340px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 1.2rem;
}