/* ========================================
   RADICI PIGNATARO INTERAMNA
   ======================================== */

/* ----------------------------------------
   CUSTOM FONTS - Sempione Style
   ---------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

ul, ol {
  list-style: none;
}

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

/* ----------------------------------------
   CSS VARIABLES - DESIGN TOKENS
   ----------------------------------------*/
:root {

  
  /* ======================================
     PALETTE COPERTINA LIBRO (Blu-Grigio)
     Colori ispirati alla copertina del libro
     ====================================== */
  --color-primary: #506197;
  --color-primary-dark: #3d4a75;
  --color-primary-light: #697695;
  --color-secondary: #546598;
  --color-secondary-dark: #414f7a;
  --color-accent: #697695;
  --color-accent-light: #8a95ad;
  --color-yellow: #B9B9B9;
  --color-orange: #555556;
  --color-purple: #506197;
  --color-background: #FFFFFF;
  --color-background-alt: #F5F6F8;
  --color-background-dark: #191919;
  --color-text: #191919;
  --color-text-light: #555556;
  --color-text-muted: #697695;
  --color-dark: #191919;
  --color-white: #FFFFFF;
  --color-border: #B9B9B9;
  --gradient-primary: linear-gradient(135deg, #506197 0%, #697695 100%);
  --gradient-warm: linear-gradient(135deg, #546598 0%, #697695 100%);
  --gradient-cool: linear-gradient(135deg, #506197 0%, #546598 100%);
  --gradient-hero: linear-gradient(135deg, #191919 0%, #3d4a75 50%, #506197 100%);
  --gradient-card: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(80,97,151,0.05) 100%);
  --shadow-color: 80, 97, 151;


  /* Typography */
  --font-heading: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;
  --text-6xl: 4.5rem;
  --text-7xl: 6rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --container-max: 1400px;
  --container-narrow: 800px;
  --header-height: 80px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows - Modern Soft Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 102, 255, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 102, 255, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 102, 255, 0.16);
  --shadow-xl: 0 24px 64px rgba(0, 102, 255, 0.2);
  --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.3);

  /* Transitions */
  --transition-fast: 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-base: 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ----------------------------------------
   ANIMATED BACKGROUND SHAPES
   ---------------------------------------- */
.bg-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.bg-shape-1 {
  width: 600px;
  height: 600px;
  background: var(--color-primary);
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}

.bg-shape-2 {
  width: 400px;
  height: 400px;
  background: var(--color-secondary);
  bottom: -100px;
  left: -100px;
  animation-delay: -5s;
}

.bg-shape-3 {
  width: 300px;
  height: 300px;
  background: var(--color-accent);
  top: 50%;
  left: 50%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -50px) scale(1.1); }
  50% { transform: translate(-30px, 30px) scale(0.95); }
  75% { transform: translate(20px, 50px) scale(1.05); }
}

/* ----------------------------------------
   TYPOGRAPHY
   ---------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-dark);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-md);
}

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

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-lg { font-size: var(--text-lg); }

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

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

.section {
  padding: var(--space-5xl) 0;
  position: relative;
}

.section-sm {
  padding: var(--space-3xl) 0;
}

.section-lg {
  padding: calc(var(--space-5xl) * 1.5) 0;
}

.bg-alt {
  background-color: var(--color-background-alt);
}

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

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

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

/* Flexbox Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

/* Grid Utilities */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ----------------------------------------
   HEADER & NAVIGATION
   ---------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all var(--transition-base);
}

.header.transparent {
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
}

.header.transparent .nav-link {
  color: var(--color-white);
}

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

.header.transparent .menu-toggle span {
  background: var(--color-white);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

.header.scrolled .nav-link,
.header.scrolled .logo {
  color: var(--color-text);
}

.header.scrolled .menu-toggle span {
  background: var(--color-text);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--space-xl);
  max-width: var(--container-max);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  transition: all var(--transition-base);
}

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

.logo:hover .logo-icon {
  transform: scale(1.05);
}

.logo-icon {
  width: 52px;
  height: 52px;
  transition: transform var(--transition-base);
}

.logo img {
  height: 50px;
  width: auto;
}

/* Logo bianco su header trasparente */
.header.transparent:not(.scrolled) .logo {
  color: var(--color-white);
}

.header.transparent:not(.scrolled) .logo:hover {
  color: rgba(255, 255, 255, 0.8);
}

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

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

.nav-item {
  position: relative;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-primary);
  background: rgba(0, 102, 255, 0.08);
}

.nav-link.active {
  color: var(--color-primary);
  background: rgba(0, 102, 255, 0.1);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.dropdown-toggle::after {
  content: '';
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  padding: 3px;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform var(--transition-fast);
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(-135deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 240px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--color-background-alt);
  color: var(--color-primary);
  transform: translateX(4px);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(0, 102, 255, 0.08);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
}

.lang-switcher a {
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
}

.lang-switcher a.active {
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-primary);
}

.lang-switcher span {
  color: var(--color-text-muted);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-sm);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

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

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

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

/* ----------------------------------------
   HERO SECTION - MODERN & DYNAMIC
   ---------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
  background: var(--color-dark);
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  transform: scale(1.1);
  animation: heroKenBurns 25s ease-in-out infinite;
  filter: saturate(1.2);
}

/* Effetto Ken Burns migliorato con movimento più dinamico */
@keyframes heroKenBurns {
  0% {
    transform: scale(1.1) translateX(0) translateY(0);
    filter: saturate(1.2) brightness(1);
  }
  25% {
    transform: scale(1.15) translateX(-15px) translateY(-10px);
    filter: saturate(1.3) brightness(1.05);
  }
  50% {
    transform: scale(1.2) translateX(10px) translateY(-20px);
    filter: saturate(1.2) brightness(1.1);
  }
  75% {
    transform: scale(1.15) translateX(-5px) translateY(-5px);
    filter: saturate(1.25) brightness(1);
  }
  100% {
    transform: scale(1.1) translateX(0) translateY(0);
    filter: saturate(1.2) brightness(1);
  }
}

/* Effetto parallax al movimento del mouse (opzionale via JS) */
.hero-background.parallax img {
  transition: transform 0.3s ease-out;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(var(--shadow-color), 0.85) 0%,
    rgba(var(--shadow-color), 0.5) 50%,
    rgba(var(--shadow-color), 0.3) 100%
  );
}

/* Linee decorative animate nell'hero */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(255,255,255,0.03) 50%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(255,255,255,0.03) 50%, transparent 50.5%);
  background-size: 60px 60px;
  pointer-events: none;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

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

.hero-particles::before,
.hero-particles::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(100px);
  animation: particleFloat 15s ease-in-out infinite;
}

.hero-particles::before {
  background: var(--color-primary);
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.hero-particles::after {
  background: var(--color-secondary);
  bottom: 20%;
  right: 10%;
  animation-delay: -7s;
}

@keyframes particleFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  50% { transform: translate(100px, -50px) scale(1.2); opacity: 0.5; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  padding: var(--space-xl);
}

.hero-subtitle {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 500;
  padding: var(--space-sm) var(--space-lg);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero-title {
  font-size: var(--text-7xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  line-height: 1;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.hero-title span {
  display: inline-block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: var(--text-xl);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  opacity: 0.9;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.8s;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 500;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-15px); }
  60% { transform: translateX(-50%) translateY(-8px); }
}

.hero-scroll-icon {
  width: 28px;
  height: 48px;
  border: 2px solid currentColor;
  border-radius: 14px;
  position: relative;
}

.hero-scroll-icon::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: currentColor;
  border-radius: 2px;
  animation: scroll-dot 2s infinite;
}

@keyframes scroll-dot {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 24px; }
}

/* ----------------------------------------
   BUTTONS - MODERN STYLE
   ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  border: none;
  box-shadow: 0 8px 24px rgba(var(--shadow-color), 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(var(--shadow-color), 0.4);
}

.btn-secondary {
  background: var(--gradient-warm);
  color: var(--color-white);
  border: none;
  box-shadow: 0 8px 24px rgba(var(--shadow-color), 0.25);
}

.btn-secondary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(var(--shadow-color), 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

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

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

.btn-outline-dark:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-lg);
}

.btn-sm {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
}

/* ----------------------------------------
   SECTION HEADERS - MODERN
   ---------------------------------------- */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-4xl);
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  padding: var(--space-xs) var(--space-md);
  background: rgba(0, 102, 255, 0.1);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.section-title {
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ----------------------------------------
   FEATURE CARDS - GLASS MORPHISM
   ---------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 102, 255, 0.08);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

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

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 24px;
  color: var(--color-white);
  font-size: var(--text-4xl);
  transition: all var(--transition-base);
  position: relative;
  box-shadow:
    0 10px 40px rgba(var(--shadow-color), 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

/* Cerchio decorativo dietro l'icona */
.feature-icon::before {
  content: '';
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(var(--shadow-color), 0.1) 0%, transparent 100%);
  z-index: -1;
  transition: all var(--transition-base);
}

/* Effetto shine sull'icona */
.feature-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4) 0%,
    transparent 40%,
    transparent 60%,
    rgba(255, 255, 255, 0.1) 100%
  );
  pointer-events: none;
}

.feature-icon svg {
  width: 44px;
  height: 44px;
  stroke-width: 1.5;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
  transform: translateY(-8px) scale(1.05);
  box-shadow:
    0 20px 50px rgba(var(--shadow-color), 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.feature-card:hover .feature-icon::before {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(var(--shadow-color), 0.15) 0%, transparent 100%);
}

.feature-card:hover .feature-icon svg {
  transform: scale(1.1);
}

.feature-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
  color: var(--color-dark);
}

.feature-description {
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

/* ----------------------------------------
   STORY CARDS - MODERN
   ---------------------------------------- */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.story-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.story-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.story-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-slow);
}

.story-card:hover .story-image img {
  transform: scale(1.1);
}

.story-date {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--gradient-primary);
  color: var(--color-white);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
}

.story-content {
  padding: var(--space-xl);
}

.story-name {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
  color: var(--color-dark);
}

.story-destination {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.story-excerpt {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.7;
}

.story-link {
  color: var(--color-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.story-link:hover {
  gap: var(--space-sm);
}

.story-link svg {
  transition: transform var(--transition-fast);
}

.story-link:hover svg {
  transform: translateX(4px);
}

/* ----------------------------------------
   GALLERY - MODERN MASONRY
   ---------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.15);
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 102, 255, 0.8) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  color: var(--color-white);
  font-weight: 500;
  transform: translateY(100%);
  transition: transform var(--transition-base);
  z-index: 2;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.98);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.lightbox-close {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: var(--radius-full);
  font-size: var(--text-2xl);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-lg);
}

.lightbox-close:hover {
  transform: scale(1.1) rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: var(--radius-full);
  font-size: var(--text-xl);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-lg);
}

.lightbox-prev { left: var(--space-xl); }
.lightbox-next { right: var(--space-xl); }

.lightbox-nav:hover {
  transform: translateY(-50%) scale(1.1);
  background: var(--color-primary);
  color: var(--color-white);
}

/* ----------------------------------------
   FORMS - MODERN INPUT STYLE
   ---------------------------------------- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.form-label.required::after {
  content: ' *';
  color: var(--color-secondary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-background-alt);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  background: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

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

.form-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.form-checkbox:hover {
  background: var(--color-background-alt);
}

.form-checkbox input {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
}

.form-error {
  color: var(--color-secondary);
  font-size: var(--text-sm);
  margin-top: var(--space-xs);
}

/* Honeypot anti-spam field - hidden from users */
.form-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Form success/error messages */
.form-message {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
  text-align: center;
  font-weight: 500;
}

.form-success {
  background-color: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-error-message {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.form-success {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.1) 0%, rgba(0, 102, 255, 0.1) 100%);
  color: var(--color-accent);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  font-weight: 500;
  border: 1px solid rgba(0, 212, 170, 0.3);
}

/* ----------------------------------------
   BOOK SECTION - MODERN LAYOUT
   ---------------------------------------- */
.book-showcase {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-4xl);
  align-items: center;
}

.book-cover {
  position: relative;
}

.book-cover img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-base);
}

.book-cover::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.2;
  filter: blur(40px);
}

.book-cover:hover img {
  transform: translateY(-10px) rotate(2deg);
}

.book-info h2 {
  margin-bottom: var(--space-md);
}

.book-description {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
  line-height: 1.8;
}

.book-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ----------------------------------------
   CTA SECTION - VIBRANT
   ---------------------------------------- */
.cta-section {
  position: relative;
  padding: var(--space-5xl) 0;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}

.cta-background {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.cta-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  font-size: var(--text-4xl);
}

.cta-description {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2xl);
  opacity: 0.9;
  line-height: 1.7;
}

/* ----------------------------------------
   FOOTER - MODERN LIGHT
   ---------------------------------------- */
.footer {
  background: var(--color-white);
  color: var(--color-text);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

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

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-md);
}

.footer-description {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.8;
}

.footer-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links li {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.footer-links a {
  color: var(--color-text-light);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  padding: var(--space-xs) 0;
}

.footer-links a:hover {
  color: var(--color-primary);
  transform: translateX(4px);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.footer-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-background-alt);
  border-radius: var(--radius-md);
  color: var(--color-text-light);
  transition: all var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-legal a:hover {
  color: var(--color-primary);
}

/* ----------------------------------------
   PAGE HEADER - MODERN
   ---------------------------------------- */
.page-header {
  position: relative;
  padding: calc(var(--header-height) + var(--space-5xl)) 0 var(--space-4xl);
  background: var(--color-dark);
  color: var(--color-white);
  text-align: center;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: -20%;
  width: 60%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.1;
  filter: blur(100px);
  border-radius: 50%;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  animation: pageHeaderZoom 30s ease-in-out infinite;
  filter: saturate(1.1);
}

@keyframes pageHeaderZoom {
  0%, 100% {
    transform: scale(1.05) translateY(0);
  }
  50% {
    transform: scale(1.1) translateY(-10px);
  }
}

/* Overlay sfumato per page-header */
.page-header-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(var(--shadow-color), 0.7) 0%,
    rgba(var(--shadow-color), 0.9) 100%
  );
}

/* Page header più piccolo per pagine legali */
.page-header-small {
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-2xl);
}

.page-header-small .page-title {
  font-size: var(--text-4xl);
}

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

.page-title {
  font-size: var(--text-5xl);
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.page-subtitle {
  font-size: var(--text-xl);
  opacity: 0.8;
  font-weight: 400;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
}

.breadcrumb a {
  opacity: 0.6;
}

.breadcrumb a:hover {
  opacity: 1;
}

.breadcrumb span {
  opacity: 0.4;
}

/* ----------------------------------------
   ACCORDION - MODERN
   ---------------------------------------- */
.accordion {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  text-align: left;
  background: var(--color-white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.accordion-header:hover {
  background: var(--color-background-alt);
  color: var(--color-primary);
}

.accordion-icon {
  font-size: var(--text-xl);
  transition: transform var(--transition-fast);
  color: var(--color-primary);
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.accordion-item.active .accordion-content {
  max-height: 500px;
}

.accordion-body {
  padding: 0 var(--space-xl) var(--space-xl);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ----------------------------------------
   NEWS CARDS - MODERN
   ---------------------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: var(--space-xl);
}

.news-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.news-image {
  height: 220px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-slow);
}

.news-card:hover .news-image img {
  transform: scale(1.1);
}

.news-content {
  padding: var(--space-xl);
}

.news-meta {
  display: flex;
  gap: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.news-category {
  color: var(--color-primary);
  font-weight: 600;
  background: rgba(0, 102, 255, 0.1);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
}

.news-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
  color: var(--color-dark);
}

.news-excerpt {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

/* ----------------------------------------
   ANIMATIONS - ADVANCED
   ---------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger animation delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Hover lift effect */
.hover-lift {
  transition: transform var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-8px);
}

/* ----------------------------------------
   RESPONSIVE - TABLET
   ---------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --text-7xl: 4rem;
    --text-6xl: 3.5rem;
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
  }

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

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

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

  .book-cover img {
    max-width: 350px;
    margin: 0 auto;
  }

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

/* ----------------------------------------
   RESPONSIVE - MOBILE
   ---------------------------------------- */
@media (max-width: 768px) {
  :root {
    --text-7xl: 2.75rem;
    --text-6xl: 2.5rem;
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
    --space-4xl: 4rem;
    --space-3xl: 3rem;
    --space-5xl: 5rem;
  }

  /* Mobile Navigation */
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff !important;
    background-color: #ffffff !important;
    display: flex !important;
    flex-direction: column;
    padding: var(--space-xl);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 9999;
    width: 100%;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
  }

  .nav.active {
    transform: translateX(0);
  }

  /* Forza colori scuri nel menu mobile anche con header trasparente */
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    font-size: var(--text-lg);
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    color: var(--color-text) !important;
    background: transparent !important;
  }

  .nav-link:hover {
    color: var(--color-primary) !important;
    background: var(--color-background-alt) !important;
  }

  .nav-link.active {
    color: var(--color-primary) !important;
  }

  /* Dropdown toggle freccia su mobile */
  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-toggle::after {
    margin-left: auto;
  }

  /* Dropdown menu mobile */
  .dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    background: var(--color-background-alt) !important;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: max-height var(--transition-base);
    margin: 0;
    padding: 0 !important;
    width: 100%;
    min-width: 100%;
    left: 0 !important;
    display: block !important;
  }

  .dropdown:hover .dropdown-menu {
    transform: none !important;
    max-height: 0 !important;
  }

  .dropdown.active .dropdown-menu {
    max-height: 500px !important;
    padding: var(--space-sm) 0 !important;
  }

  .dropdown-item {
    color: var(--color-text) !important;
    padding: var(--space-sm) var(--space-lg);
    padding-left: var(--space-xl);
    font-size: var(--text-base);
    display: block;
    border-left: 3px solid var(--color-primary);
    margin-left: var(--space-md);
    transform: none !important;
  }

  .dropdown-item:hover {
    color: var(--color-primary) !important;
    background: var(--color-white);
    transform: none !important;
  }

  .lang-switcher {
    margin-top: var(--space-lg);
    justify-content: center;
    background: var(--color-background-alt);
    flex-wrap: wrap;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    gap: var(--space-sm);
  }

  .lang-switcher a {
    color: var(--color-text);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
  }

  .lang-switcher a.active {
    color: var(--color-white);
    background: var(--color-primary);
  }

  /* Nascondi i separatori | su mobile */
  .lang-switcher span {
    display: none;
  }

  /* Mobile Hero */
  .hero-title {
    font-size: var(--text-4xl);
  }

  .hero-description {
    font-size: var(--text-base);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-particles::before,
  .hero-particles::after {
    width: 200px;
    height: 200px;
  }

  /* Mobile Grids */
  .features {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

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

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

  /* Mobile Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    max-width: 100%;
  }

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

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

  .footer-legal {
    justify-content: center;
  }

  /* Mobile Page Header */
  .page-title {
    font-size: var(--text-3xl);
  }

  /* Mobile Buttons */
  .btn {
    width: 100%;
    text-align: center;
  }

  .btn-lg {
    padding: var(--space-md) var(--space-xl);
  }

  .book-showcase {
    gap: var(--space-2xl);
  }

  .book-cover::before {
    inset: -10px;
  }

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

/* ----------------------------------------
   UTILITY CLASSES
   ---------------------------------------- */
.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;
}

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.w-full { width: 100%; }
.max-w-full { max-width: 100%; }

/* Glass Effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Glow Effect */
.glow {
  box-shadow: var(--shadow-glow);
}

/* Gradient Text */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ----------------------------------------
   LEGAL PAGES (Privacy, Cookie Policy)
   ---------------------------------------- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: var(--text-2xl);
  color: var(--color-primary);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-border);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content h3 {
  font-size: var(--text-xl);
  color: var(--color-dark);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal-content h4 {
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-content p {
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.legal-content ul {
  list-style: disc;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.legal-content ul li {
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.legal-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--color-primary-dark);
}

.legal-intro {
  font-size: var(--text-lg);
  color: var(--color-text);
  font-weight: 500;
  padding: var(--space-lg);
  background: var(--color-background-alt);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-primary);
  margin-bottom: var(--space-xl);
}

.legal-box {
  background: var(--color-background-alt);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  margin: var(--space-lg) 0;
}

.legal-box p {
  margin-bottom: var(--space-xs);
}

.legal-box p:last-child {
  margin-bottom: 0;
}

.legal-note {
  background: linear-gradient(135deg, rgba(var(--shadow-color), 0.05) 0%, rgba(var(--shadow-color), 0.1) 100%);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(var(--shadow-color), 0.2);
  font-size: var(--text-sm);
}

.legal-footer {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

/* Cookie Table */
.cookie-table {
  overflow-x: auto;
  margin: var(--space-lg) 0;
}

.cookie-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.cookie-table th,
.cookie-table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.cookie-table th {
  background: var(--color-background-alt);
  font-weight: 600;
  color: var(--color-dark);
}

.cookie-table td {
  color: var(--color-text-light);
}

.cookie-table tr:hover td {
  background: var(--color-background-alt);
}

/* ----------------------------------------
   FLOATING ACTION ELEMENTS
   ---------------------------------------- */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes floatMedium {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
}

.float-slow {
  animation: floatSlow 4s ease-in-out infinite;
}

.float-medium {
  animation: floatMedium 3s ease-in-out infinite;
}

/* ----------------------------------------
   AUDIO PLAYER BUTTON
   ---------------------------------------- */
.audio-player {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 1000;
}

.audio-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--gradient-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    0 8px 32px rgba(var(--shadow-color), 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
}

.audio-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 12px 40px rgba(var(--shadow-color), 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.audio-btn svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-base);
}

.audio-btn.playing svg {
  animation: audioWave 1s ease-in-out infinite;
}

@keyframes audioWave {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Icona equalizer animata quando in riproduzione */
.audio-btn .audio-bars {
  display: none;
  gap: 2px;
  align-items: flex-end;
  height: 16px;
}

.audio-btn.playing .audio-bars {
  display: flex;
}

.audio-btn.playing .audio-icon-play {
  display: none;
}

.audio-bars span {
  width: 3px;
  background: currentColor;
  border-radius: 1px;
  animation: audioBar 0.8s ease-in-out infinite;
}

.audio-bars span:nth-child(1) { height: 8px; animation-delay: 0s; }
.audio-bars span:nth-child(2) { height: 14px; animation-delay: 0.2s; }
.audio-bars span:nth-child(3) { height: 10px; animation-delay: 0.4s; }
.audio-bars span:nth-child(4) { height: 6px; animation-delay: 0.1s; }

@keyframes audioBar {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.5); }
}

/* Audio Description Tooltip */
.audio-description {
  position: absolute;
  bottom: calc(100% + var(--space-md));
  right: 0;
  width: 280px;
  padding: var(--space-lg);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(var(--shadow-color), 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  pointer-events: none;
}

.audio-description::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 24px;
  width: 16px;
  height: 16px;
  background: var(--color-white);
  transform: rotate(45deg);
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.05);
}

.audio-player.show-description .audio-description {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.audio-description-text {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
}

.audio-description-text strong {
  display: block;
  font-size: var(--text-base);
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

/* Testo nascosto su mobile */
@media (max-width: 768px) {
  .audio-btn .audio-text {
    display: none;
  }

  .audio-btn {
    padding: var(--space-md);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    justify-content: center;
  }

  .audio-player {
    bottom: var(--space-lg);
    right: var(--space-lg);
  }

  .audio-description {
    width: 250px;
    right: 0;
  }
}

/* ----------------------------------------
   QUOTE BLOCKS - CITAZIONI
   ---------------------------------------- */
.quote-block {
  position: relative;
  padding: var(--space-xl) var(--space-xl) var(--space-xl) var(--space-2xl);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--color-primary);
}

.quote-block::before {
  content: '"';
  position: absolute;
  top: var(--space-md);
  left: var(--space-lg);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.3;
}

.quote-block p {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--color-text);
  font-style: italic;
  margin-bottom: var(--space-lg);
  padding-left: var(--space-lg);
}

.quote-block footer {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-left: var(--space-lg);
}

.quote-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-primary);
  flex-shrink: 0;
}

.quote-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: var(--text-xl);
  font-weight: 600;
  flex-shrink: 0;
}

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

.quote-author strong {
  font-size: var(--text-base);
  color: var(--color-dark);
  font-weight: 600;
}

.quote-author .text-muted {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: normal;
}

@media (max-width: 768px) {
  .quote-block {
    padding: var(--space-lg) var(--space-lg) var(--space-lg) var(--space-xl);
  }

  .quote-block::before {
    font-size: 3rem;
    left: var(--space-md);
  }

  .quote-block p {
    font-size: var(--text-base);
    padding-left: var(--space-md);
  }

  .quote-block footer {
    padding-left: var(--space-md);
  }

  .quote-avatar,
  .quote-avatar-placeholder {
    width: 48px;
    height: 48px;
  }
}

/* ----------------------------------------
   PARTNER LOGOS
   ---------------------------------------- */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  transition: all var(--transition-base);
}

.partner-logo img {
  max-height: 60px;
  width: auto;
  filter: grayscale(0);
  opacity: 0.85;
  transition: all var(--transition-base);
}

.partner-logo:hover img {
  opacity: 1;
  transform: scale(1.05);
}

/* Footer partners bar */
.footer-partners {
  padding: var(--space-xl) 0;
  margin-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--color-border);
}

.footer-partners .partner-logos {
  gap: var(--space-2xl);
}

.footer-partners .partner-logo img {
  max-height: 70px;
  opacity: 0.8;
}

.footer-partners .partner-logo:hover img {
  opacity: 1;
}

/* Partner grid for project page */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.partner-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

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

.partner-card-logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.partner-card-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.partner-card h4 {
  font-size: var(--text-base);
  color: var(--color-dark);
  margin-bottom: var(--space-xs);
}

.partner-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .partner-logos {
    gap: var(--space-lg);
  }

  .partner-logo img {
    max-height: 45px;
  }

  .footer-partners .partner-logo img {
    max-height: 50px;
  }

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

  .partner-card {
    padding: var(--space-lg);
  }

  .partner-card-logo {
    height: 60px;
  }
}

/* ----------------------------------------
   COOKIE BANNER
   ---------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: var(--space-lg) var(--space-xl);
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.cookie-banner-text {
  flex: 1;
}

.cookie-banner-text p {
  margin: 0;
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.cookie-banner-text a {
  color: var(--color-primary);
  text-decoration: underline;
}

.cookie-banner-text a:hover {
  color: var(--color-primary-dark);
}

.cookie-banner-buttons {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.cookie-btn {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.cookie-btn-accept {
  background: var(--color-primary);
  color: var(--color-white);
}

.cookie-btn-accept:hover {
  background: var(--color-primary-dark);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
}

.cookie-btn-reject:hover {
  background: var(--color-background-alt);
  color: var(--color-text);
}

@media (max-width: 768px) {
  .cookie-banner {
    padding: var(--space-md);
  }

  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner-buttons {
    width: 100%;
    justify-content: center;
  }

  .cookie-btn {
    flex: 1;
    max-width: 160px;
  }
}
