/* ==========================================================================
   Design System & Variable Tokens - Universale & Cross-Browser Optimized
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette inspired by ParmaCare & Artistic Voice Aesthetics */
  --primary: #0F766E;        /* Deep Ocean Teal - Trust, Medical, Calm */
  --primary-dark: #115E59;
  --primary-light: #CCFBF1;
  --secondary: #1E3A8A;      /* Elegant Deep Navy - Voice & Professionalism */
  --accent: #F97316;         /* Warm Coral Orange - Energy, Kids, Warmth */
  
  /* Sfumatura Artistica Elegante (Rosa Coral / Rose Gold per le parole in evidenza) */
  --gradient-title: linear-gradient(135deg, #E11D48 0%, #F97316 50%, #F59E0B 100%);
  --gradient-badge: linear-gradient(135deg, #FFF1F2 0%, #FFEDD5 100%);
  --accent-gold-text: #9F1239;
  
  /* Neutral Shades */
  --bg-main: #FAFAF9;        /* Off-white warm canvas */
  --bg-card: #FFFFFF;
  --bg-alt: #F4F7F6;
  --text-main: #1F2937;
  --text-muted: #4B5563;
  --text-light: #9CA3AF;
  
  /* Glassmorphism & Shadow Effects */
  --glass-bg: rgba(255, 255, 255, 0.94);
  --glass-border: rgba(255, 255, 255, 0.6);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(15, 118, 110, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 118, 110, 0.15);
  
  /* Layout Radius & Transitions */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base Styles & Reset (Cross-Browser & iOS Fixes)
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--secondary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  position: relative;
}

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

/* Badges & Section Headers (Fluid Typography) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: clamp(0.78rem, 2vw, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.badge-accent {
  background: var(--accent-soft, #FFEDD5);
  color: #C2410C;
}

.badge-gold {
  background: var(--gradient-badge);
  color: var(--accent-gold-text);
  border: 1px solid rgba(225, 29, 72, 0.15);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.08);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2rem, 5vw, 4rem) auto;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0.85rem 0 1rem 0;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: clamp(0.95rem, 2.5vw, 1.125rem);
  color: var(--text-muted);
}

/* Buttons (Touch Target Safe) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  min-height: 48px;
  border-radius: var(--radius-full);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: clamp(0.9rem, 2vw, 1rem);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15, 118, 110, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--secondary);
  border: 1px solid rgba(30, 58, 138, 0.15);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-main);
  border-color: var(--secondary);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1EBE57;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   Header & Navigation (Universal Responsive Header)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  transition: var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
}

.logo-icon-img img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.logo-text h3 {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--secondary);
  line-height: 1.15;
  white-space: nowrap;
}

.logo-text span {
  font-size: clamp(0.68rem, 1.8vw, 0.75rem);
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.mobile-nav-toggle {
  display: none;
  font-size: 1.3rem;
  background: var(--bg-alt);
  border: 1px solid rgba(209, 213, 219, 0.8);
  color: var(--secondary);
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  min-height: 44px;
  min-width: 44px;
}

.mobile-nav-toggle:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* ==========================================================================
   Hero Section - Fluid Scaling Across All Mobile Screen Ratios
   ========================================================================== */
.hero {
  padding-top: clamp(6.5rem, 14vw, 9rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  background: radial-gradient(circle at 80% 20%, rgba(204, 251, 241, 0.5) 0%, rgba(254, 242, 242, 0.6) 50%, rgba(250, 250, 249, 1) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.25rem);
  margin: 1rem 0 1.25rem 0;
  letter-spacing: -0.03em;
  color: var(--secondary);
}

.hero-content h1 span {
  background: var(--gradient-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(209, 213, 219, 0.6);
  flex-wrap: wrap;
}

.stat-item h4 {
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  color: var(--primary);
  line-height: 1;
}

.stat-item p {
  font-size: clamp(0.78rem, 2vw, 0.85rem);
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid white;
}

.hero-image-card img {
  width: 100%;
  height: clamp(360px, 48vh, 520px);
  object-fit: cover;
  object-position: 80% 50%;
  transition: transform 0.5s ease;
}

.hero-image-card img.img-hero-portrait {
  object-position: 80% 50%;
}

.hero-image-card img.img-artistic-voice {
  object-position: center center;
}

.hero-floating-tag {
  position: absolute;
  bottom: 1.5rem;
  left: clamp(-1rem, -2vw, -1.5rem);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 280px;
  animation: float 4s ease-in-out infinite;
}

.tag-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #FFF1F2;
  color: #E11D48;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.tag-text h5 {
  font-size: 0.9rem;
  color: var(--secondary);
}

.tag-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==========================================================================
   Chi Sono Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.highlight-card {
  background: white;
  padding: 1.35rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(229, 231, 235, 0.8);
  transition: var(--transition);
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}

.highlight-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.highlight-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Servizi Section & Tab Filters (Perfect Universal Alignment)
   ========================================================================== */
.services-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.65rem 1.4rem;
  min-height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(209, 213, 219, 0.8);
  background: white;
  color: var(--text-muted);
  font-weight: 600;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.75rem;
}

.service-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(229, 231, 235, 0.8);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.service-card-header {
  position: relative;
  height: clamp(200px, 30vh, 260px);
  overflow: hidden;
}

.service-card-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.5s ease;
}

.service-card-header img.service-img-voice {
  object-position: 36% 38%;
}

.service-card-header img.service-img-kids {
  object-position: 62% 45%;
}

.service-card:hover .service-card-header img {
  transform: scale(1.05);
}

.service-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.service-card-body {
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-body h3 {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  margin-bottom: 0.65rem;
}

.service-card-body p {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-bottom: 1.25rem;
}

.service-features {
  list-style: none;
  margin-bottom: 1.75rem;
  margin-top: auto;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.service-features i {
  color: var(--primary);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Chi ne beneficia (Target Patients)
   ========================================================================== */
.target-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.25rem;
}

.target-card {
  background: white;
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(229, 231, 235, 0.8);
  transition: var(--transition);
}

.target-card:hover {
  transform: translateY(-4px);
  border-color: #E11D48;
  box-shadow: var(--shadow-md);
}

.target-icon-avatar {
  width: 58px;
  height: 58px;
  margin: 0 auto 1rem auto;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-light) 0%, #FFE4E6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-dark);
}

/* ==========================================================================
   Testimonianze Section
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.75rem;
}

.review-card {
  background: white;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(229, 231, 235, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars {
  color: #F59E0B;
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.review-quote {
  font-size: 0.925rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--bg-alt);
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.author-info h5 {
  font-size: 0.9rem;
  color: var(--secondary);
}

.author-info p {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ==========================================================================
   Contatti & Booking Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.contact-info-card {
  background: linear-gradient(135deg, var(--secondary) 0%, #0F172A 100%);
  color: white;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-info-card h3 {
  color: white;
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  margin-bottom: 0.85rem;
}

.contact-info-card p {
  color: #94A3B8;
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.contact-item-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #38BDF8;
  flex-shrink: 0;
}

.contact-item-text h5 {
  color: white;
  font-size: 0.95rem;
}

.contact-item-text p {
  color: #CBD5E1;
  font-size: 0.85rem;
  margin: 0;
  word-break: break-word;
}

.contact-form-card {
  background: white;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(229, 231, 235, 0.8);
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--secondary);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #D1D5DB;
  font-family: inherit;
  font-size: 0.925rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%4b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25em;
}

/* ==========================================================================
   WhatsApp Floating Widget - Safe Area Padding
   ========================================================================== */
.whatsapp-widget {
  position: fixed;
  bottom: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  z-index: 9999;
}

.whatsapp-trigger {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.whatsapp-trigger:hover {
  transform: scale(1.08);
}

.whatsapp-badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  background: #EF4444;
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.whatsapp-popup {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: min(320px, calc(100vw - 2rem));
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(229, 231, 235, 0.8);
  overflow: hidden;
  display: none;
  flex-direction: column;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-popup.active {
  display: flex;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(15px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.whatsapp-popup-header {
  background: #075E54;
  color: white;
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.whatsapp-popup-header-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.whatsapp-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: white;
  color: #075E54;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.whatsapp-popup-body {
  padding: 1rem;
  background: #E5DDD5;
  min-height: 110px;
}

.whatsapp-message-bubble {
  background: white;
  padding: 0.75rem 0.9rem;
  border-radius: 0 14px 14px 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.4;
}

.whatsapp-popup-footer {
  padding: 0.85rem;
  background: white;
}

/* ==========================================================================
   Cookie Banner GDPR & Modal Overlay
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  max-width: 460px;
  background: rgba(15, 23, 42, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: white;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.15);
  z-index: 10000;
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  animation: slideUp 0.4s ease;
}

.cookie-banner.active {
  display: flex;
}

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

.cookie-banner h4 {
  color: white;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-banner p {
  font-size: 0.825rem;
  color: #94A3B8;
  line-height: 1.45;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cookie-btn-accept {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.825rem;
  cursor: pointer;
  min-height: 38px;
}

.cookie-btn-decline {
  background: rgba(255,255,255,0.1);
  color: white;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.825rem;
  cursor: pointer;
  min-height: 38px;
}

/* Modal Window Privacy */
.legal-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.legal-modal-overlay.active {
  display: flex;
}

.legal-modal-card {
  background: white;
  width: 100%;
  max-width: 760px;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.legal-modal-header {
  padding: 1.25rem 1.5rem;
  background: var(--bg-alt);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.legal-modal-body h3 {
  font-size: 1.15rem;
  color: var(--secondary);
  margin: 1.25rem 0 0.4rem 0;
}

.legal-modal-body h3:first-child {
  margin-top: 0;
}

/* ==========================================================================
   Footer Dati Legali
   ========================================================================== */
.footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 3.5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand h3 {
  color: white;
  margin-bottom: 0.85rem;
}

.footer-links h5 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.825rem;
}

/* ==========================================================================
   Responsive Media Queries (Universal Cross-Device Optimization)
   ========================================================================== */
@media (min-width: 993px) {
  .hero-image-card img.img-hero-portrait {
    height: 520px;
    object-position: 82% 52%;
  }
}

@media (max-width: 992px) {
  .hero-grid, .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-image-card img.img-hero-portrait {
    height: 440px;
    object-position: 78% 50%;
  }

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

@media (max-width: 768px) {
  .header-container {
    height: 68px;
    padding: 0 1rem;
  }

  .logo {
    gap: 0.5rem;
  }

  .logo-icon-img img {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
  }

  .logo-text h3 {
    font-size: 1.02rem;
    line-height: 1.15;
    white-space: nowrap;
  }

  .logo-text span {
    font-size: 0.67rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    display: block;
    margin-top: 1px;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    height: calc(100dvh - 68px);
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    flex-direction: column;
    gap: 1.1rem;
    z-index: 999;
    overflow-y: auto;
    border-top: 1px solid rgba(229, 231, 235, 0.8);
  }

  .nav-menu.active {
    display: flex !important;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(243, 244, 246, 0.8);
  }

  .nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    display: block;
    padding: 0.4rem 0;
  }

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

  .hero-floating-tag {
    bottom: 0.85rem;
    left: 0.5rem;
    padding: 0.65rem 0.85rem;
    max-width: 250px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .cookie-banner {
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.85rem;
    max-width: none;
  }
}

@media (max-width: 576px) {
  .header-wa-btn {
    display: none !important;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .form-group div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 380px) {
  .logo-text h3 {
    font-size: 0.9rem;
  }
  .logo-text span {
    font-size: 0.6rem;
  }
  .container {
    padding: 0 0.85rem;
  }
}
