/* ============================================================
   LABSKY — Tech Startup / SaaS Design System
   Code. Cloud. Scale.
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   1. CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* ============================================================
     COLORI UFFICIALI HOTEL PRO ITALIA
     ============================================================ */

  --brand-blu-deep: #0F172A;
  --brand-blu-website: #1C2638;
  --brand-bianco-panna: #FFFDEE;

  /* ============================================================
     VARIABILI ORIGINALI DEL TEMPLATE
     ============================================================ */

  --blue: #3C4A96;
  --blue-dark: #2563EB;
  --blue-light: #60A5FA;
  --violet: #8B5CF6;
  --violet-dark: #7C3AED;
  --violet-light: #A78BFA;
  --dark: #3D3A62;
  --dark-700: #1E293B;
  --dark-600: #334155;
  --dark-500: #475569;
  --white: #fffef7;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
  --gradient-hero: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
  --gradient-accent: linear-gradient(135deg, var(--blue) 0%, var(--violet) 50%, var(--blue) 100%);
  --gradient-card: linear-gradient(145deg, rgba(59,130,246,0.05) 0%, rgba(139,92,246,0.05) 100%);
  --gradient-text: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);

  /* Tipografia condivisa per i titoli delle sezioni interne. */
  --section-heading-size: clamp(30px, 3.6vw, 42px);
  --section-heading-weight: 750;
  --section-heading-line-height: 1.2;
  --section-heading-letter-spacing: -.025em;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  --fs-5xl: 3rem;
  --fs-6xl: 3.75rem;
  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-normal: 1.6;
  --lh-relaxed: 1.75;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
  --shadow-glow-blue: 0 0 20px rgba(59,130,246,0.3);
  --shadow-glow-violet: 0 0 20px rgba(139,92,246,0.3);
  --shadow-card: 0 4px 24px rgba(15,23,42,0.06);
  --shadow-card-hover: 0 12px 40px rgba(15,23,42,0.12);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-header: 500;

  /* Container */
  --container-max: 1200px;
  --container-wide: 1400px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--dark);
}

h1 { font-size: var(--fs-6xl); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-base); }

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--violet);
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   3. UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-wide {
  max-width: var(--container-wide);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section {
  padding: var(--space-24) 0;
}

.section-lg {
  padding: var(--space-32) 0;
}

.section-dark {
  background-color: var(--dark);
  color: var(--white);
}

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

.section-light {
  background-color: #1c2638;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue);
}

.badge-violet {
  background: rgba(139, 92, 246, 0.1);
  color: var(--violet);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-16);
}

.section-header .badge {
  margin-bottom: var(--space-4);
}

.section-header h2 {
  font-size: var(--section-heading-size);
  font-weight: var(--section-heading-weight);
  line-height: var(--section-heading-line-height);
  letter-spacing: var(--section-heading-letter-spacing);
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--fs-lg);
  color: var(--gray-500);
  line-height: var(--lh-relaxed);
}

/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.5;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-md), var(--shadow-glow-blue);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(59,130,246,0.4);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border-color: var(--gray-300);
}

.btn-outline-dark:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--fs-base);
  border-radius: var(--radius-xl);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-xs);
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-lg);
}

/* ============================================================
   5. HEADER / NAVIGATION
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  padding: calc(var(--space-3) + 11px) 0;
  transition: all var(--transition-base);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header.scrolled {
  padding: calc(var(--space-4) + 11px) 0;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-extrabold);
  color: var(--white);
  letter-spacing: -0.02em;
}

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

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  font-size: var(--fs-lg);
  font-weight: var(--fw-extrabold);
  color: var(--white);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav a {
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.7);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav a:hover,
.nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-cta {
  margin-left: var(--space-4);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: var(--space-2) 0;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.98);
  z-index: calc(var(--z-header) - 1);
  padding: 100px var(--space-6) var(--space-8);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  color: rgba(255,255,255,0.8);
  padding: var(--space-4);
  transition: color var(--transition-fast);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--white);
}

/* ============================================================
   6. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
  padding: var(--space-32) 0 var(--space-24);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  margin-bottom: var(--space-6);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, var(--fs-6xl));
  font-weight: var(--fw-extrabold);
  color: var(--white);
  margin-bottom: var(--space-6);
  letter-spacing: -0.03em;
}

.hero h1 .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(var(--fs-lg), 2vw, var(--fs-xl));
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  margin: 0 auto var(--space-10);
  line-height: var(--lh-relaxed);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  margin-top: var(--space-16);
  padding-top: var(--space-10);
  border-top: 1px solid rgba(255,255,255,0.08);
}

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

.hero-stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extrabold);
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.hero-stat-label {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.5);
}

/* Floating particles */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(59,130,246,0.4);
  border-radius: 50%;
  animation: float-particle 8s infinite ease-in-out;
}

.hero-particle:nth-child(2) {
  left: 20%;
  top: 30%;
  animation-delay: -2s;
  background: rgba(139,92,246,0.3);
}

.hero-particle:nth-child(3) {
  left: 60%;
  top: 20%;
  animation-delay: -4s;
  background: rgba(59,130,246,0.2);
}

.hero-particle:nth-child(4) {
  left: 80%;
  top: 60%;
  animation-delay: -6s;
  background: rgba(139,92,246,0.4);
}

.hero-particle:nth-child(5) {
  left: 40%;
  top: 70%;
  animation-delay: -1s;
  width: 3px;
  height: 3px;
}

.hero-particle:nth-child(6) {
  left: 10%;
  top: 60%;
  animation-delay: -3s;
  width: 5px;
  height: 5px;
  background: rgba(59,130,246,0.2);
}

@keyframes float-particle {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.6; }
  25% { transform: translateY(-30px) translateX(10px); opacity: 1; }
  50% { transform: translateY(-15px) translateX(-15px); opacity: 0.4; }
  75% { transform: translateY(-40px) translateX(5px); opacity: 0.8; }
}

/* ============================================================
   7. FEATURES / CARDS
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.feature-card {
  position: relative;
  padding: var(--space-8);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
  font-size: 24px;
}

.feature-icon.blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue);
}

.feature-icon.violet {
  background: rgba(139, 92, 246, 0.1);
  color: var(--violet);
}

.feature-icon.gradient {
  background: var(--gradient-primary);
  color: var(--white);
}

.feature-icon.blue,
.feature-icon.violet,
.feature-icon.gradient {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue);
}

.feature-card h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-3);
}

.feature-card p {
  color: var(--gray-500);
  line-height: var(--lh-relaxed);
  font-size: var(--fs-sm);
}

/* ============================================================
   8. PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  align-items: start;
}

.pricing-card {
  position: relative;
  padding: var(--space-8);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  transition: all var(--transition-base);
  text-align: center;
}

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

.pricing-card.featured {
  
  background: #0F172A;
  color: var(--white);
  border-color: transparent;
  transform: scale(1.05);
  box-shadow: 0 20px 60px rgba(15,23,42,0.2);
}

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

.pricing-card.featured h3,
.pricing-card.featured h4,
.pricing-card.featured p {
  color: var(--white);
}

.pricing-card.featured p {
  color: rgba(255,255,255,0.6);
}

.pricing-badge {
  display: inline-flex;
  padding: var(--space-1) var(--space-3);
  background: var(--gradient-primary);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.pricing-card h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-2);
}

.pricing-card p {
  font-size: var(--fs-sm);
  color: var(--gray-500);
  margin-bottom: var(--space-6);
}

.pricing-amount {
  margin-bottom: var(--space-6);
}

.pricing-currency {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  vertical-align: super;
}

.pricing-value {
  font-family: var(--font-heading);
  font-size: var(--fs-5xl);
  font-weight: var(--fw-extrabold);
  line-height: 1;
}

.pricing-period {
  font-size: var(--fs-sm);
  color: var(--gray-400);
  margin-left: var(--space-1);
}

.pricing-features {
  text-align: left;
  margin-bottom: var(--space-8);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-size: var(--fs-sm);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.pricing-card.featured .pricing-features li {
  border-bottom-color: rgba(255,255,255,0.08);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue);
  border-radius: 50%;
  font-size: 12px;
}

.pricing-card.featured .pricing-check {
  background: rgba(59, 130, 246, 0.2);
  color: var(--blue-light);
}

.pricing-card .btn {
  width: 100%;
}

/* ============================================================
   9. TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.testimonial-card {
  padding: var(--space-8);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
  color: #F59E0B;
  font-size: 14px;
}

.testimonial-text {
  font-size: var(--fs-base);
  color: var(--gray-600);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-6);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.testimonial-name {
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--dark);
}

.testimonial-role {
  font-size: var(--fs-xs);
  color: var(--gray-400);
}

/* ============================================================
   10. CTA SECTION
   ============================================================ */
.cta-section {
  position: relative;
  padding: var(--space-20) 0;
  background: var(--dark);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  color: var(--white);
  font-size: clamp(var(--fs-3xl), 4vw, var(--fs-5xl));
  margin-bottom: var(--space-4);
}

.cta-content p {
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-lg);
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

/* ============================================================
   11. FOOTER
   ============================================================ */
.footer {
  
    background: #0F172A;
  color: rgba(255,255,255,0.6);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand p {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  margin: var(--space-4) 0;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  font-size: var(--fs-sm);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--gradient-primary);
  color: var(--white);
}

.footer-col h4 {
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-5);
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: var(--fs-sm);
  padding: var(--space-2) 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: var(--fs-xs);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-6);
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.4);
  font-size: var(--fs-xs);
}

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

/* ============================================================
   12. ABOUT PAGE
   ============================================================ */
.about-hero {
  padding: calc(100px + var(--space-16)) 0 var(--space-16);
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.about-hero h1 {
  color: var(--white);
  font-size: clamp(var(--fs-4xl), 5vw, var(--fs-6xl));
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.about-hero p {
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-lg);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.story-content img {
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

.story-content h2 {
  margin-bottom: var(--space-4);
}

.story-content p {
  color: var(--gray-500);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-4);
}

.story-content p strong {
  color: var(--dark);
  font-weight: var(--fw-semibold);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.value-card {
  text-align: center;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  background: var(--gray-50);
  transition: all var(--transition-base);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xl);
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 28px;
  margin-bottom: var(--space-5);
}

.value-card h3 {
  margin-bottom: var(--space-3);
}

.value-card p {
  color: var(--gray-500);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.team-card {
  text-align: center;
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

.team-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

.team-card img {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin: 0 auto var(--space-4);
  border: 3px solid var(--gray-100);
}

.team-card h4 {
  margin-bottom: var(--space-1);
}

.team-card p {
  font-size: var(--fs-sm);
  color: var(--blue);
  font-weight: var(--fw-medium);
}

.team-card .team-social {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.team-card .team-social a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--gray-100);
  color: var(--gray-500);
  font-size: var(--fs-xs);
  transition: all var(--transition-fast);
}

.team-card .team-social a:hover {
  background: var(--gradient-primary);
  color: var(--white);
}

/* ============================================================
   13. SERVICES PAGE
   ============================================================ */
.service-card {
  display: flex;
  gap: var(--space-8);
  padding: var(--space-8);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  align-items: flex-start;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

.service-card-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 32px;
}

.service-card h3 {
  margin-bottom: var(--space-2);
  font-size: var(--fs-xl);
}

.service-card p {
  color: var(--gray-500);
  line-height: var(--lh-relaxed);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-4);
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--blue);
  transition: gap var(--transition-fast);
}

.service-card-link:hover {
  gap: var(--space-3);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  counter-reset: step;
}

.process-step {
  text-align: center;
  position: relative;
  counter-increment: step;
}

.process-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-5);
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 40px);
  width: calc(100% - 40px);
  height: 2px;
  background: var(--gray-200);
}

.process-step h4 {
  margin-bottom: var(--space-2);
}

.process-step p {
  font-size: var(--fs-sm);
  color: var(--gray-500);
  line-height: var(--lh-relaxed);
}

/* ============================================================
   14. CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}

.contact-form {
  padding: var(--space-8);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--dark);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  font-size: var(--fs-base);
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-ok,
.form-err {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  display: none;
  margin-top: var(--space-4);
}

.form-ok {
  background: rgba(34, 197, 94, 0.1);
  color: #16A34A;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-err {
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-ok.visible,
.form-err.visible {
  display: block;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-info-card {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.contact-info-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.contact-info-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 20px;
}

.contact-info-card h4 {
  margin-bottom: var(--space-1);
}

.contact-info-card p {
  font-size: var(--fs-sm);
  color: var(--gray-500);
}

.contact-info-card a {
  font-size: var(--fs-sm);
  color: var(--blue);
  font-weight: var(--fw-medium);
}

/* Map placeholder */
.contact-map {
  width: 100%;
  height: 200px;
  background: var(--gray-100);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: var(--fs-sm);
  margin-top: auto;
}

/* ============================================================
   15. PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding: calc(100px + var(--space-12)) 0 var(--space-12);
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl));
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
}

.page-hero p {
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-lg);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ============================================================
   16. REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

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

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children */
.stagger-children > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.3s; }

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

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

  .pricing-card.featured {
    transform: scale(1);
  }

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

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

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

  .story-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

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

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

  .process-step:not(:last-child)::after {
    display: none;
  }

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

  .hero-stats {
    gap: var(--space-8);
  }

  .service-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ============================================================
   18. RESPONSIVE — MOBILE (max-width: 720px)
   ============================================================ */
@media (max-width: 720px) {
  h1 { font-size: var(--fs-4xl); }
  h2 { font-size: var(--fs-3xl); }

  .container {
    padding: 0 var(--space-4);
  }

  .section {
    padding: var(--space-16) 0;
  }

  .section-lg {
    padding: var(--space-20) 0;
  }

  /* Nav */
  .nav {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: calc(100px + var(--space-8)) 0 var(--space-16);
  }

  .hero h1 {
    font-size: var(--fs-4xl);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-6);
  }

  .hero-stat-value {
    font-size: var(--fs-2xl);
  }

  /* Grids */
  .features-grid,
  .pricing-grid,
  .testimonials-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: scale(1);
    order: -1;
  }

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

  .process-steps {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

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

  .cta-section {
    border-radius: var(--radius-xl);
    margin: 0 var(--space-4);
  }

  .section-header {
    margin-bottom: var(--space-10);
  }

  .service-card {
    padding: var(--space-6);
  }

  .contact-form {
    padding: var(--space-6);
  }
}

/* ============================================================
   19. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   20. PRINT
   ============================================================ */
@media print {
  .header,
  .burger,
  .mobile-nav,
  .cta-section,
  .footer {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .hero {
    min-height: auto;
    padding: var(--space-8) 0;
    background: #fff;
    color: #000;
  }

  .hero h1 {
    color: #000;
    -webkit-text-fill-color: #000;
  }
}

/* ============================================================
   HOTEL PRO ITALIA — STORY CARD SPACING
   ============================================================ */

.pricing-card.featured:has(.story-text) {
  --story-spacing: 32px;
  padding: var(--story-spacing);
}

.pricing-card.featured:has(.story-text) h3 {
  margin: 0 0 var(--story-spacing);
}

.pricing-card.featured .story-text p {
  margin: 0 0 16px;
}

.pricing-card.featured .story-text p:last-child {
  margin-bottom: var(--story-spacing);
}


/* ============================================================
   HOTEL PRO ITALIA — DISABLE REVEAL ANIMATIONS
   ============================================================ */

.reveal,
.reveal-left,
.reveal-right,
.reveal-scale,
.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-scale.revealed {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.stagger-children > * {
  transition-delay: 0s !important;
}


/* ============ STORIA ============ */

.storia {
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
}

/* Contenuto sopra retina e stelline */
.storia > .container {
    position: relative;
    z-index: 1;
}

/* Titoli bianchi */
.storia h2,
.storia h3 {
    color: var(--white);
}

/* Paragrafi chiari */
.storia .section-header p,
.storia .story-text p {
    color: rgba(255, 255, 255, 0.75);
}

/* Retina e stelline */
.storia .hero-grid,
.storia .hero-particles {
    position: absolute;
    inset: 0;
}

/* Layout condiviso — allineamento desktop, come nella home. */
@media (min-width: 981px) {
  .header .container {
    max-width: none;
    width: 100%;
    padding-left: 32px;
    padding-right: 32px;
    position: relative;
  }
  .header .nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}


/* ==========================================
   HOTEL PRO ITALIA - FOOTER CENTRALIZZATO
   ========================================== */

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 12px;
}

.footer-contacts h4 {
  color: #FFFDEE;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}

.footer-contacts a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-contacts a:hover {
  color: #FFFDEE;
}

/* MOBILE */
@media (max-width: 720px) {
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 32px;
  }

  .footer-contacts {
    align-items: flex-start;
    text-align: left;
  }
}


/* Popup contatti condiviso */
.contact-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(520px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 36px;
  border: 1px solid rgba(255, 253, 238, .18);
  border-radius: 20px;
  background: var(--brand-blu-website);
  color: var(--brand-bianco-panna);
  font-family: var(--font-body);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .4);
}
.contact-dialog::backdrop { background: rgba(15, 23, 42, .75); backdrop-filter: blur(6px); }
.contact-dialog h2 { margin: 0 36px 24px 0; color: inherit; font-size: var(--fs-2xl); }
.contact-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 30px;
  cursor: pointer;
}
#contact-form { display: grid; gap: 8px; }
#contact-form label { font-size: var(--fs-sm); margin-top: 8px; }
#contact-form input, #contact-form textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 253, 238, .25);
  border-radius: 10px;
  background: var(--brand-blu-deep);
  color: var(--brand-bianco-panna);
  font: inherit;
}
#contact-form textarea { resize: vertical; min-height: 100px; }
#contact-form .btn { margin-top: 16px; width: 100%; }
.contact-dialog :focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; }
.contact-status { margin-top: 8px; font-size: var(--fs-sm); color: inherit; }
.contact-status[hidden] { display: none; }
@media (max-width: 600px) { .contact-dialog { padding: 28px 22px; } }

/* Academy: spazio sufficiente tra logo e navigazione. */
@media (min-width: 721px) and (max-width: 1100px) {
  .header .nav { display: none; }
  .header .burger { display: flex; }
}
/* Menu condiviso consultabile anche su schermi di altezza ridotta. */
.mobile-nav { overflow-y: auto; }
@media (max-height: 650px) {
  .mobile-nav { justify-content: flex-start; }
}
