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

:root {
  --bg-light: #FAF8F6;
  --bg-alt: #F3F3F6;
  --bg-alt-darker: #E2E2E8;
  --bg-dark-soft: #2E2E35;
  --bg-card: #ffffff;
  
  --text-dark: #4A4A52;
  --text-light: #FAF8F6;
  --text-muted: #7A7A85;
  
  --brand-magenta: #D7268A;
  --brand-pink-light: #FBE6F2;
  --brand-pink-med: #F7D6E8;
  --brand-cyan-micro: #00d2ff;
  --brand-yellow: #FFD700;
  
  --gradient-magenta: linear-gradient(135deg, #D7268A, #F7D6E8);
  --gradient-soft-pink: linear-gradient(135deg, #FAF8F6, #FBE6F2);
  
  --grad-aia: linear-gradient(135deg, #e8f5e9, #FAF8F6);
  --grad-fisio: linear-gradient(135deg, #e0f7fa, #FAF8F6);
  --grad-ape: linear-gradient(135deg, #fff8e1, #FAF8F6);
  --grad-stella: linear-gradient(135deg, #f3f3f6, #FBE6F2);

  --font-main: 'Montserrat', sans-serif;
  
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  --shadow-soft: 0 10px 30px rgba(74, 74, 82, 0.05);
  --shadow-hover: 0 15px 40px rgba(215, 38, 138, 0.15);
  --shadow-chatbot: 0 20px 50px rgba(74, 74, 82, 0.15);
  --glow-magenta: 0 0 20px rgba(215, 38, 138, 0.4);
}

/* Base Reset & Cursor Hide */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-main); background-color: var(--bg-light); color: var(--text-dark); line-height: 1.8; overflow-x: hidden; font-weight: 400; }

@media (pointer: fine) { body { cursor: none; } a, button, input, textarea, select, label { cursor: none !important; } }

/* CUSTOM CURSOR */
.custom-cursor { position: fixed; top: 0; left: 0; width: 24px; height: 24px; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23D7268A"><path d="M12 2L15 9l7 1-5 5 1 7-7-4-7 4 1-7-5-5 7-1z"/></svg>') no-repeat center center; pointer-events: none; z-index: 99999; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, filter 0.2s; filter: drop-shadow(0 0 8px rgba(215,38,138,0.5)); will-change: transform; margin-left: -12px; margin-top: -12px; }
.custom-cursor.cursor-hover { width: 32px; height: 32px; filter: drop-shadow(0 0 15px rgba(215,38,138,0.8)); }
.custom-cursor.cursor-click { transform: scale(0.8); }
.cursor-explosion { position: fixed; width: 40px; height: 40px; background: radial-gradient(circle, rgba(215,38,138,0.8) 0%, transparent 70%); border-radius: 50%; pointer-events: none; z-index: 99998; transform: translate(-50%, -50%) scale(0); animation: explode 0.4s ease-out forwards; margin-left: -20px; margin-top: -20px; }
@keyframes explode { 0% { transform: translate(-50%, -50%) scale(0); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(2); opacity: 0; } }

/* MICRO-INTERACTIONS (Sparkles & Glows) */
@keyframes sparkle { 0%, 100% { opacity: 0.8; text-shadow: 0 0 10px rgba(215,38,138,0.2); } 50% { opacity: 1; text-shadow: 0 0 20px rgba(215,38,138,0.6); } }
@keyframes float-blob { 0%, 100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px, -50px) scale(1.1); } 66% { transform: translate(-20px, 20px) scale(0.9); } }
.sparkle-text { display: inline-block; animation: sparkle 3s infinite ease-in-out; position: relative; }
.sparkle-text::after { content: '✨'; position: absolute; top: -10px; right: -20px; font-size: 1rem; color: var(--brand-magenta); animation: sparkle 2s infinite alternate; }
.bg-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.4; z-index: 0; pointer-events: none; animation: float-blob 15s infinite ease-in-out; }

/* HOVER UNIVERSALE */
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.hover-lift:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--brand-pink-med); }

/* Typography */
h1, h2, h3, h4 { line-height: 1.3; margin-bottom: 1rem; color: #2E2E35; position: relative; z-index: 1; }
h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 600; letter-spacing: -0.5px; }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 600; letter-spacing: -0.5px; margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
p { font-weight: 400; margin-bottom: 1rem; font-size: 1.125rem; position: relative; z-index: 1; }
.subtitle { font-size: 1.125rem; font-weight: 500; color: var(--text-muted); max-width: 800px; margin-top: 1.5rem; }
.section-desc { font-size: 1.125rem; color: var(--text-muted); max-width: 800px; margin: 0 auto 3rem; font-weight: 400; text-align: center; }

/* Layout */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-md); position: relative; z-index: 2; }
.section { padding: var(--spacing-xl) 0; position: relative; overflow: hidden; }
.text-center { text-align: center !important; }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.w-full { width: 100%; }

/* Sicurezza Centratura Header Sezioni */
.section-header {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.section-header h2 {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.section-header p, .section-header .section-desc {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 820px;
}

.bg-alt { background-color: var(--bg-alt); }
.bg-pink { background: var(--gradient-soft-pink); }
.soft-dark-section { background-color: var(--bg-dark-soft); color: var(--bg-light); }
.soft-dark-section h2 { color: var(--bg-light); }
.soft-dark-section .section-desc { color: #A0A0A8; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 2rem; font-family: var(--font-main); font-weight: 600; text-decoration: none; border-radius: var(--radius-full); transition: all 0.3s ease; border: none; font-size: 1rem; position: relative; overflow: hidden; }
.btn-primary { background: var(--brand-magenta); color: #fff; box-shadow: 0 4px 15px rgba(215, 38, 138, 0.2); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--glow-magenta); text-shadow: 0 0 5px rgba(255,255,255,0.5); }
.btn-secondary { background: var(--bg-light); color: var(--brand-magenta); border: 1px solid var(--brand-pink-med); }
.btn-secondary:hover { background: var(--brand-pink-light); border-color: var(--brand-magenta); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(215,38,138,0.1); }
.glow-btn { position: relative; z-index: 1; }
.glow-btn::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%); transform: rotate(45deg); opacity: 0; transition: opacity 0.3s; z-index: -1; }
.glow-btn:hover::before { opacity: 1; }

/* Animations */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* HEADER */
.header { position: fixed; top: 0; left: 0; right: 0; background: rgba(250, 248, 246, 0.95); backdrop-filter: blur(10px); z-index: 1000; border-bottom: 1px solid rgba(215, 38, 138, 0.05); transition: 0.3s; }
.header-content { display: flex; justify-content: space-between; align-items: center; height: 100px; }
@keyframes logo-breathe { 0%, 100% { filter: drop-shadow(0 0 5px rgba(215,38,138,0.3)); transform: scale(1); } 50% { filter: drop-shadow(0 0 15px rgba(215,38,138,0.6)); transform: scale(1.02); } }
.logo { height: 75px; object-fit: contain; transition: transform 0.3s, filter 0.3s; animation: logo-breathe 4s infinite ease-in-out; }
.logo-link:hover .logo { transform: scale(1.08); filter: drop-shadow(0 0 20px rgba(215,38,138,0.8)); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 500; font-size: 0.95rem; position: relative; padding-bottom: 4px; transition: color 0.3s; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px; background: var(--brand-magenta); transition: width 0.3s ease; }
.nav-links a:hover { color: var(--brand-magenta); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { padding: 0.6rem 1.2rem; font-size: 0.9rem; color: #fff !important; }
.nav-cta::after { display: none; }
.menu-btn { display: none; background: none; border: none; flex-direction: column; gap: 5px; }
.menu-btn span { display: block; width: 25px; height: 2px; background: var(--text-dark); transition: 0.3s; }

/* HERO & ORBIT ANIMATIONS */
.hero { padding-top: 140px; min-height: 90vh; display: flex; align-items: center; background: var(--bg-light); position: relative; overflow: hidden; }
.hero .bg-blob.b1 { width: 50vw; height: 50vw; background: var(--brand-pink-med); top: -20%; right: -10%; }
.hero .bg-blob.b2 { width: 30vw; height: 30vw; background: rgba(215,38,138,0.1); bottom: -10%; left: -10%; animation-delay: 2s; }
.hero-container { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; }
.hero-visual { position: relative; width: 100%; aspect-ratio: 1; display: flex; justify-content: center; align-items: center; padding-left: 2rem; }
@keyframes spin-slow { 100% { transform: rotate(360deg); } }
.orbit-container { position: absolute; width: 100%; height: 100%; animation: spin-slow 40s linear infinite; display: flex; justify-content: center; align-items: center; z-index: 1; }
.orbit-word { position: absolute; font-size: 0.8rem; font-weight: 600; color: var(--brand-magenta); background: rgba(255,255,255,0.8); backdrop-filter: blur(5px); padding: 0.4rem 0.8rem; border-radius: 20px; box-shadow: var(--shadow-soft); border: 1px solid var(--brand-pink-light); white-space: nowrap; animation: spin-slow 40s linear infinite reverse; }
.hero-gif { width: 55%; border-radius: 50%; box-shadow: var(--shadow-hover); z-index: 2; position: relative; }
.floating-card { position: absolute; background: rgba(255,255,255,0.8); backdrop-filter: blur(10px); padding: 1rem 1.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); font-weight: 500; z-index: 3; color: var(--brand-magenta); border: 1px solid var(--brand-pink-med); animation: float 6s ease-in-out infinite; font-size: 0.9rem; }
.c1 { top: 15%; left: 0; animation-delay: 0s; }
.c2 { bottom: 25%; right: -5%; animation-delay: 2s; }
.c3 { bottom: 10%; left: 15%; animation-delay: 4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* GRID UTILS */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* EDITORIAL / AVATAR STRATEGY AI */
.avatar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.avatar-feature-card { background: var(--bg-card); padding: 2rem; border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); border: 1px solid var(--brand-pink-med); text-align: left; }
.avatar-feature-card h4 { color: var(--brand-magenta); font-size: 1.1rem; margin-top: 1rem; margin-bottom: 0.5rem; }
.avatar-feature-card p { font-size: 0.9rem; color: var(--text-dark); margin-bottom: 0; line-height: 1.5; }
.avatar-icon { font-size: 1.8rem; color: var(--brand-magenta); }

/* INSIGHT */
.avatar-glossary-title {
  text-align: center !important;
  max-width: 1050px;
  margin: 0 auto;
  line-height: 1.12;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  white-space: normal !important;
}

.avatar-glossary-title span {
  display: block;
  text-align: center !important;
}

@media (max-width: 768px) {
  .avatar-glossary-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    max-width: 92%;
  }
}
.editorial-box { background: var(--bg-card); padding: 3rem; border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); border: 1px solid var(--bg-alt-darker); }
.editorial-box h3 { color: var(--brand-magenta); font-size: 1.5rem; margin-bottom: 1rem; }
.editorial-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.editorial-list li { display: flex; align-items: flex-start; gap: 1rem; }
.editorial-list li::before { content: '✦'; color: var(--brand-magenta); font-size: 1.2rem; line-height: 1.2; }

.insight-cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2rem; }
.insight-card { background: var(--bg-card); padding: 2rem; border-radius: var(--radius-lg); border: 1px solid var(--brand-pink-med); box-shadow: var(--shadow-soft); }
.insight-card h4 { color: var(--brand-magenta); font-size: 1.1rem; margin-bottom: 0.5rem; }
.insight-card p { font-size: 0.9rem; margin-bottom: 0.5rem; line-height: 1.5; }
.insight-card .uso { font-size: 0.85rem; color: var(--text-muted); font-style: italic; }

/* SERVICES */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3rem; }
.service-card { background: var(--bg-card); padding: 2.5rem 2rem; border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); border: 1px solid var(--bg-alt-darker); display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; height: 100%; }
.service-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-pink-light); display: flex; align-items: center; justify-content: center; color: var(--brand-magenta); font-size: 1.2rem; }
.service-card h3 { font-size: 1.15rem; margin: 0; color: #2E2E35; }

/* CASE STUDIES */
.cases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.case-card { background: var(--bg-card); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid var(--bg-alt-darker); display: flex; flex-direction: column; height: 100%; }
.case-visual { height: 160px; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.case-visual span { font-size: 1.25rem; font-weight: 600; color: #2E2E35; opacity: 0.7; }
.grad-aia { background: var(--grad-aia); }
.grad-fisio { background: var(--grad-fisio); }
.grad-ape { background: var(--grad-ape); }
.grad-stella { background: var(--grad-stella); }
.case-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; gap: 0.75rem; }
.case-tag { font-size: 0.75rem; font-weight: 600; color: var(--brand-magenta); text-transform: uppercase; letter-spacing: 0.5px; }
.case-content h3 { font-size: 1.25rem; margin: 0; }
.case-content p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 0; flex-grow: 1; }
.case-disclaimer { font-size: 0.75rem; color: #a0a0a8; font-style: italic; margin-top: 0.5rem; line-height: 1.3; }
.case-bullets { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--bg-alt); }
.case-bullets li { font-size: 0.85rem; color: var(--text-dark); display: flex; align-items: center; gap: 0.5rem; }
.case-bullets li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--brand-magenta); }
.case-cta { margin-top: 1.5rem; font-size: 0.9rem; font-weight: 600; color: var(--brand-magenta); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; transition: gap 0.3s; }
.case-cta:hover { gap: 0.8rem; }
.case-actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.5rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; text-align: center; }

/* TEAM */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3rem; }
.team-card { background: var(--bg-card); padding: 2.5rem 2rem; border-radius: var(--radius-xl); text-align: center; border: 1px solid var(--bg-alt-darker); box-shadow: var(--shadow-soft); }
.team-icon { width: 80px; height: 80px; margin: 0 auto 1.5rem; border-radius: 50%; background: var(--gradient-soft-pink); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--brand-magenta); border: 2px solid var(--brand-pink-med); }
.team-card h3 { font-size: 1.1rem; color: var(--brand-magenta); margin-bottom: 0.5rem; }
.team-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

/* REVIEWS */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.review-card { background: var(--bg-card); padding: 2.5rem 2rem; border-radius: var(--radius-xl); border: 1px solid var(--brand-pink-med); box-shadow: var(--shadow-soft); }
.stars { color: var(--brand-yellow); font-size: 1.2rem; margin-bottom: 1rem; letter-spacing: 2px; }
.review-text { font-style: italic; font-size: 1rem; color: var(--text-dark); margin-bottom: 1.5rem; }
.review-author { font-weight: 600; font-size: 0.9rem; color: var(--brand-magenta); }

/* FAQ */
.faq-list { max-width: 800px; margin: 3rem auto 0; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--bg-alt-darker); overflow: hidden; transition: 0.3s; }
.faq-question { padding: 1.5rem; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; color: #2E2E35; transition: 0.3s; }
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--brand-magenta); transition: transform 0.3s; }
.faq-item:hover { border-color: var(--brand-pink-med); }
.faq-item.active { border-color: var(--brand-magenta); box-shadow: var(--shadow-soft); }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; font-size: 0.95rem; color: var(--text-dark); }
.faq-item.active .faq-answer { padding: 0 1.5rem 1.5rem; max-height: 200px; }

/* ADVANCED FORM & CONSULTATION */
.contact-card { max-width: 900px; margin: 0 auto; background: var(--bg-card); padding: 4rem; border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); border: 1px solid var(--brand-pink-light); }
.contact-form { display: flex; flex-direction: column; gap: 2rem; margin-top: 2rem; }
.form-section-title { font-size: 1.2rem; color: var(--brand-magenta); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--bg-alt-darker); }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group.row { flex-direction: row; gap: 1.5rem; }
.col { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
label { font-weight: 500; font-size: 0.9rem; color: var(--text-dark); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { padding: 1rem; border: 1px solid var(--bg-alt-darker); border-radius: var(--radius-md); font-family: var(--font-main); background: var(--bg-light); transition: border-color 0.3s; font-size: 1rem; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-magenta); background: #fff; }

.checkbox-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 0.5rem; }
.checkbox-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.checkbox-item input[type="checkbox"], .checkbox-item input[type="radio"] { width: 18px; height: 18px; accent-color: var(--brand-magenta); }
.file-upload-box { border: 2px dashed var(--brand-pink-med); padding: 2rem; text-align: center; border-radius: var(--radius-md); background: var(--brand-pink-light); transition: 0.3s; }
.file-upload-box:hover { border-color: var(--brand-magenta); background: #fdf2f8; }
.file-upload-box input[type="file"] { display: none; }
.compliance-box { background: var(--bg-alt); padding: 1.5rem; border-radius: var(--radius-md); font-size: 0.85rem; color: var(--text-muted); }

/* CALENDAR PROTOTYPE */
.calendar-block { background: var(--gradient-soft-pink); padding: 4rem; border-radius: var(--radius-xl); border: 1px solid var(--brand-pink-med); margin-top: 3rem; text-align: center; }
.calendar-grid { display: flex; flex-direction: column; gap: 2rem; max-width: 500px; margin: 2rem auto; }
.calendar-date { padding: 1rem; background: #fff; border-radius: var(--radius-md); border: 1px solid var(--bg-alt-darker); font-weight: 600; color: var(--brand-magenta); }
.calendar-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.slot { padding: 0.8rem; background: #fff; border: 1px solid var(--bg-alt-darker); border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; transition: 0.3s; }
.slot:hover { background: var(--brand-pink-light); border-color: var(--brand-magenta); color: var(--brand-magenta); }

/* CHATBOT FLOATING UI */
.chatbot-toggle { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: var(--brand-magenta); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem; box-shadow: var(--glow-magenta); z-index: 9999; transition: transform 0.3s; border: none; animation: float 4s infinite ease-in-out; }
.chatbot-toggle:hover { transform: scale(1.1); box-shadow: 0 0 30px rgba(215,38,138,0.6); }
.chatbot-toggle.glow-pulse { animation: explode 0.5s ease-out; }
.chatbot-window { position: fixed; bottom: 100px; right: 30px; width: 380px; height: 600px; max-height: calc(100vh - 120px); background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-chatbot); z-index: 9998; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--brand-pink-med); opacity: 0; pointer-events: none; transform: translateY(20px); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.chatbot-window.active { opacity: 1; pointer-events: auto; transform: translateY(0); }
.chatbot-header { background: var(--gradient-soft-pink); padding: 1.5rem; border-bottom: 1px solid var(--brand-pink-med); display: flex; justify-content: space-between; align-items: center; }
.chatbot-header-info { display: flex; align-items: center; gap: 1rem; }
.chatbot-avatar { width: 40px; height: 40px; background: #fff; color: var(--brand-magenta); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: var(--shadow-soft); }
.chatbot-title { font-weight: 600; font-size: 1.05rem; color: var(--brand-magenta); }
.chatbot-status { font-size: 0.75rem; color: #10B981; display: flex; align-items: center; gap: 4px; }
.chatbot-status::before { content: ''; width: 6px; height: 6px; background: #10B981; border-radius: 50%; }
.chatbot-close { background: none; border: none; font-size: 1.5rem; color: var(--brand-magenta); opacity: 0.5; transition: 0.3s; }
.chatbot-close:hover { opacity: 1; }
.chatbot-messages { flex: 1; padding: 1.5rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; background: #fff; }
.chat-msg { display: flex; max-width: 85%; }
.msg-bot { align-self: flex-start; }
.msg-bot .msg-content { background: var(--bg-alt); color: var(--text-dark); border-radius: 18px 18px 18px 4px; padding: 1rem 1.2rem; font-size: 0.95rem; line-height: 1.4; border: 1px solid var(--bg-alt-darker); }
.msg-user { align-self: flex-end; }
.msg-user .msg-content { background: var(--gradient-magenta); color: #fff; border-radius: 18px 18px 4px 18px; padding: 0.8rem 1.2rem; font-size: 0.95rem; line-height: 1.4; box-shadow: var(--shadow-soft); }
.quick-replies-container { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; align-items: flex-end; }
.quick-reply-btn { background: var(--bg-light); border: 1px solid var(--brand-pink-med); color: var(--brand-magenta); padding: 0.6rem 1rem; border-radius: 20px; font-size: 0.85rem; font-family: var(--font-main); font-weight: 500; transition: 0.2s; text-align: left; }
.quick-reply-btn:hover { background: var(--brand-magenta); color: #fff; }
.chat-cta-wrapper { align-self: flex-start; margin-top: 0.5rem; }
.chat-cta-btn { display: inline-block; background: var(--brand-magenta); color: #fff; text-decoration: none; padding: 0.8rem 1.5rem; border-radius: 20px; font-size: 0.9rem; font-weight: 600; box-shadow: 0 4px 10px rgba(215,38,138,0.2); }
.typing-indicator .msg-content { font-size: 1.2rem; letter-spacing: 2px; padding: 0.5rem 1rem; }
.chatbot-input-area { padding: 1rem; background: var(--bg-light); border-top: 1px solid var(--brand-pink-med); display: flex; align-items: center; gap: 0.5rem; }
.chatbot-attach-btn { background: none; border: none; color: var(--brand-magenta); font-size: 1.2rem; padding: 0.5rem; transition: 0.2s; opacity: 0.7; }
.chatbot-attach-btn:hover { opacity: 1; }
.chatbot-input { flex: 1; border: 1px solid var(--bg-alt-darker); padding: 0.8rem 1rem; border-radius: 20px; font-family: var(--font-main); font-size: 0.95rem; outline: none; transition: 0.3s; }
.chatbot-input:focus { border-color: var(--brand-magenta); box-shadow: 0 0 10px rgba(215,38,138,0.1); }
.chatbot-send-btn { background: var(--brand-magenta); border: none; width: 40px; height: 40px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; transition: 0.2s; box-shadow: var(--shadow-soft); }
.chatbot-send-btn:hover { transform: scale(1.05); }

/* FOOTER */
.footer { padding: 4rem 0 2rem; background-color: var(--bg-dark-soft); position: relative; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--gradient-magenta); }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 2.5rem; text-align: center; }
.footer-logo-box { padding: 2rem; background: rgba(255,255,255,0.03); border-radius: var(--radius-xl); border: 1px solid rgba(215,38,138,0.2); box-shadow: 0 0 30px rgba(215,38,138,0.1); transition: 0.3s; }
.footer-logo-box:hover { box-shadow: 0 0 50px rgba(215,38,138,0.2); background: rgba(255,255,255,0.05); }
.footer-logo { height: 120px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(215,38,138,0.5)); transition: transform 0.3s; }
.footer-logo-box:hover .footer-logo { transform: scale(1.05); filter: drop-shadow(0 0 20px rgba(215,38,138,0.8)); }
.footer-links { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--bg-alt-darker); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.3s; display: flex; align-items: center; gap: 0.5rem; }
.footer-links a:hover { color: var(--brand-pink-med); text-shadow: 0 0 8px rgba(247, 214, 232, 0.5); }
.footer-legal { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1rem; font-size: 0.85rem; color: #a0a0a8; }
.footer-legal-links { display: flex; gap: 2rem; }
.footer-legal a { color: #a0a0a8; text-decoration: none; transition: color 0.3s; }
.footer-legal a:hover { color: var(--brand-pink-med); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .services-grid, .cases-grid, .team-grid, .avatar-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: var(--spacing-lg) 0; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .hero { min-height: auto; padding-top: 140px; padding-bottom: 4rem; }
  .hero-container, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 3rem; }
  .hero-actions { flex-direction: column; }
  .hero-visual { padding-left: 0; }
  .orbit-word { font-size: 0.7rem; padding: 0.3rem 0.6rem; }
  .contact-card, .editorial-box, .avatar-card, .calendar-block { padding: 2rem; }
  .form-group.row { flex-direction: column; }
  .services-grid, .cases-grid, .team-grid, .reviews-grid, .avatar-grid { grid-template-columns: 1fr; }
  .calendar-slots { grid-template-columns: repeat(2, 1fr); }
  
  .chatbot-window { right: 0; bottom: 0; width: 100%; height: 100vh; max-height: 100vh; border-radius: 0; }
  .chatbot-toggle { bottom: 20px; right: 20px; }
  
  .menu-btn { display: flex; }
  .nav-links { position: fixed; top: 80px; left: 0; right: 0; height: calc(100vh - 80px); background: var(--bg-card); flex-direction: column; padding: 2rem; box-shadow: 0 10px 20px rgba(0,0,0,0.05); overflow-y: auto; transform: translateY(-150%); transition: transform 0.3s ease; opacity: 0; }
  .nav-links.active { transform: translateY(0); opacity: 1; }
  .menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .menu-btn.active span:nth-child(2) { opacity: 0; }
  .menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
}

/* --- REGOLE GLOBALI IMPAGINAZIONE TITOLI --- */
.section-header, .page-header, .page-hero, .hero-text, .avatar-header, .avatar-section-header, .case-header, .team-header, .faq-header, .testimonials-header, .consultation-header, .insight-header, .method-header, .projects-header {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.section-header h1, .section-header h2, .page-header h1, .page-header h2, .page-hero h1, .page-hero h2, .hero-text h1, .avatar-header h1, .avatar-header h2, .avatar-section-header h1, .avatar-section-header h2, .case-header h1, .case-header h2, .team-header h1, .team-header h2, .faq-header h1, .faq-header h2, .testimonials-header h1, .testimonials-header h2, .consultation-header h1, .consultation-header h2, .insight-header h1, .insight-header h2, .method-header h1, .method-header h2, .projects-header h1, .projects-header h2 {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1100px;
}

.section-header p, .page-header p, .page-hero p, .hero-text p, .avatar-header p, .avatar-section-header p, .case-header p, .team-header p, .faq-header p, .testimonials-header p, .consultation-header p, .insight-header p, .method-header p, .projects-header p, .section-desc, .section-subtitle {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 820px;
}

.balanced-title {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1100px;
  line-height: 1.12;
  text-wrap: balance;
}

.balanced-title span {
  display: block;
  text-align: center;
}

@media (max-width: 768px) {
  .section-header h1, .section-header h2, .page-header h1, .page-header h2, .page-hero h1, .page-hero h2, .hero-text h1, .avatar-header h1, .avatar-header h2, .avatar-section-header h1, .avatar-section-header h2, .case-header h1, .case-header h2, .team-header h1, .team-header h2, .faq-header h1, .faq-header h2, .testimonials-header h1, .testimonials-header h2, .consultation-header h1, .consultation-header h2, .insight-header h1, .insight-header h2, .method-header h1, .method-header h2, .projects-header h1, .projects-header h2, .balanced-title {
    max-width: 92%;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* --- PULSANTI SECONDARI CASI STUDIO --- */
.case-actions-vertical {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.case-link-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-magenta);
  background: rgba(215, 38, 138, 0.08);
  border: 1px solid rgba(215, 38, 138, 0.22);
  text-decoration: none;
  transition: all 0.3s ease;
}

.case-link-secondary:hover {
  color: #ffffff;
  background: var(--brand-magenta);
  box-shadow: 0 0 24px rgba(215, 38, 138, 0.35);
  transform: translateY(-2px);
}
