/* =================================================================
   DESIGN SYSTEM - NEUROMASURGERY (PULITO E OTTIMIZZATO)
   ================================================================= */

:root {
    /* Palette Colori */
    --olive: #6B7A4B;
    --olive-dark: #4F5A36;
    --olive-light: #E8EBE1;
    --terracotta: #C66B4F;
    --terracotta-dark: #A85638;
    --terracotta-light: #F5E6E1;
    --plum: #5D3A4B;
    --plum-dark: #3D2430;
    --black: #1A1A1A;
    --cream: #F9F7F4;
    --warm-white: #FFFFFF;
    --border-warm: #E5DDD0;
    --text-muted: #6B6358;
    
    /* Ombre e Raggi */
    --shadow-soft: 0 4px 24px rgba(93, 58, 75, 0.06);
    --shadow-hover: 0 12px 32px rgba(93, 58, 75, 0.12);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Animazioni GPU-Accelerate */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--cream);
    color: var(--black);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* =================================================================
   ANIMAZIONI GLOBALI
   ================================================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--transition-smooth);
    will-change: opacity, transform;
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* CountUp animation */
.stat-value[data-target] {
    transition: none;
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.stat-value.counted { animation: countUp 0.5s ease forwards; }

.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px;
    background: linear-gradient(90deg, var(--terracotta), var(--olive));
    z-index: 9999; transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(198, 107, 79, 0.5);
}

/* =================================================================
   HEADER PREMIUM - OTTIMIZZATO
   ================================================================= */
.header-premium {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(229, 221, 208, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 16px 0;
}

.header-premium.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px) saturate(200%);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(93, 58, 75, 0.08);
}

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

/* Logo */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-link:hover {
    transform: scale(1.02);
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--olive-dark);
    letter-spacing: -0.5px;
    line-height: 1.2;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--terracotta), var(--olive));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-link:hover .logo::after {
    width: 100%;
}

.logo-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Navigazione Desktop */
.nav-links {
    display: none;
    align-items: center;
    gap: 32px;
}

@media (min-width: 1024px) {
    .nav-links { display: flex; }
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--terracotta), var(--olive));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Header Actions (Accedi + Menu Mobile) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-login {
    display: none;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--plum) 0%, var(--plum-dark) 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(93, 58, 75, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(93, 58, 75, 0.4);
}

@media (min-width: 1024px) {
    .btn-login { display: flex; }
    .desktop-only { display: flex; }
}

.desktop-only {
    display: none;
}

/* Hamburger Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--plum-dark);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Animazione Hamburger in X */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
    background: var(--terracotta);
}

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

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
    background: var(--terracotta);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 400px;
}

.mobile-nav-link {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--plum-dark);
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 12px 24px;
    width: 100%;
    text-align: center;
}

.mobile-menu-overlay.active .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation per i link */
.mobile-menu-overlay.active .mobile-nav-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu-overlay.active .mobile-nav-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-nav-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-overlay.active .mobile-nav-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-nav-link:nth-child(5) { transition-delay: 0.25s; }

.mobile-menu-overlay.active .mobile-nav-link:nth-child(6) { transition-delay: 0.3s; } /* Divider */
.mobile-menu-overlay.active .mobile-nav-link:nth-child(7) { transition-delay: 0.35s; } /* Accedi */

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: var(--terracotta);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.mobile-nav-link:hover {
    color: var(--terracotta);
}

.mobile-menu-divider {
    width: 60px;
    height: 2px;
    background: var(--border-warm);
    margin: 16px 0;
    opacity: 0;
    transition: opacity 0.3s ease 0.3s;
}

.mobile-menu-overlay.active .mobile-menu-divider {
    opacity: 1;
}

.btn-login-mobile {
    margin-top: 16px;
    font-family: 'Inter', sans-serif !important;
    font-size: 1.1rem !important;
    background: linear-gradient(135deg, var(--plum) 0%, var(--plum-dark) 100%);
    color: white !important;
    padding: 16px 40px !important;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(93, 58, 75, 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid transparent;
}

.btn-login-mobile:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(93, 58, 75, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 1023px) {
    .logo { font-size: 1.3rem; }
    .logo-subtitle { font-size: 0.7rem; }
}

@media (max-width: 768px) {
    .header-premium { padding: 14px 0; }
    .header-premium.scrolled { padding: 12px 0; }
    .logo { font-size: 1.2rem; }
    .logo-subtitle { display: none; } /* Nascondi su mobile piccolo per spazio */
    .mobile-nav-link { font-size: 1.6rem; }
}

/* =================================================================
   HERO SECTION
   ================================================================= */
.hero-section {
    background: linear-gradient(135deg, var(--olive-light) 0%, var(--cream) 60%, #F5EDE8 100%);
    padding: 120px 0 100px; text-align: center; border-bottom: 1px solid var(--border-warm);
    position: relative; overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image:
        radial-gradient(ellipse 600px 400px at 80% 20%, rgba(198,107,79,0.07) 0%, transparent 70%),
        radial-gradient(ellipse 500px 350px at 10% 80%, rgba(107,122,75,0.07) 0%, transparent 70%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='40' r='1' fill='%235D3A4B' fill-opacity='0.04'/%3E%3C/svg%3E");
    background-size: auto, auto, 80px 80px;
    animation: heroMeshDrift 20s ease-in-out infinite alternate;
}
.hero-section::after {
    content: '';
    position: absolute; top: -60px; right: -60px;
    width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(198,107,79,0.06) 0%, transparent 65%);
    pointer-events: none; z-index: 0;
    animation: heroMeshDrift 15s ease-in-out infinite alternate-reverse;
}
@keyframes heroMeshDrift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(20px, -15px) scale(1.04); }
}
.hero-section .container { position: relative; z-index: 1; }
.hero-badge {
    display: inline-block; background: var(--warm-white); color: var(--plum);
    padding: 8px 20px; border-radius: 50px; font-size: 0.8rem; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase; margin-bottom: 24px; border: 1px solid var(--border-warm);
}
.hero-title {
    font-family: 'Playfair Display', serif; font-size: 3.2rem; font-weight: 400;
    color: var(--plum-dark); margin-bottom: 24px; letter-spacing: -1.5px; line-height: 1.15;
}
.hero-title strong { font-weight: 700; color: var(--olive-dark); }
.hero-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 40px; line-height: 1.8; }
.hero-badges { display: flex; justify-content: center; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-badge-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 500; color: var(--olive-dark); }
.hero-badge-item::before { content: '✓'; color: var(--terracotta); font-weight: 700; }
.review-badge { color: var(--terracotta); font-weight: 600; }
.review-badge::before { content: '★'; margin-right: 6px; font-size: 1.1em; }
.hero-ctas { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* =================================================================
   BUTTONS GLOBALI
   ================================================================= */
.btn-primary {
    background: var(--olive); color: white; border: none; padding: 16px 32px;
    border-radius: var(--radius-sm); font-weight: 600; font-size: 1rem; cursor: pointer;
    transition: all 0.3s var(--transition-smooth); display: inline-flex; align-items: center;
    gap: 8px; font-family: 'Inter', sans-serif; position: relative; overflow: hidden;
}
.btn-primary:hover { background: var(--olive-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-secondary {
    background: transparent; color: var(--olive-dark); border: 2px solid var(--olive);
    padding: 14px 30px; border-radius: var(--radius-sm); font-weight: 600; font-size: 1rem;
    cursor: pointer; transition: all 0.3s var(--transition-smooth); font-family: 'Inter', sans-serif;
}
.btn-secondary:hover { background: var(--olive); color: white; }
.btn-terracotta {
    background: var(--terracotta); color: white; border: none; padding: 16px 32px;
    border-radius: var(--radius-sm); font-weight: 600; cursor: pointer;
    transition: all 0.3s var(--transition-smooth); font-family: 'Inter', sans-serif;
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
    box-shadow: 0 6px 20px rgba(198,107,79,0.3);
}
.btn-terracotta:hover {
    background: var(--terracotta-dark); transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(198,107,79,0.45);
}

/* CountUp animation */
.stat-value[data-target] { display: inline-block; }
.count-animating { animation: countPulse 0.1s ease; }
@keyframes countPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); color: var(--terracotta); }
    100% { transform: scale(1); }
}
.btn-large { padding: 18px 40px; font-size: 1.1rem; }
.btn-full { width: 100%; justify-content: center; }

/* =================================================================
   ABOUT SECTION
   ================================================================= */
.about-section { padding: 80px 24px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.about-image { background: var(--border-warm); border-radius: var(--radius-lg); height: 450px; overflow: hidden; }
.doctor-photo { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: var(--radius-lg); display: block; }
.about-content h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--plum-dark); margin-bottom: 8px; font-weight: 600; }
.about-content .subtitle { color: var(--terracotta); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 24px; display: block; }
.about-role { font-weight: 600; color: var(--plum); margin-bottom: 24px; font-size: 1rem; }
.about-content > p { color: var(--text-muted); margin-bottom: 32px; font-size: 1.05rem; }

.about-highlights { margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.highlight-item {
    display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px;
    background: var(--olive-light); border-radius: var(--radius-sm); font-size: 0.95rem;
    color: var(--black); font-weight: 500; transition: var(--transition-smooth); border-left: 3px solid var(--olive);
}
.highlight-item:hover { transform: translateX(4px); background: var(--warm-white); box-shadow: var(--shadow-soft); }
.highlight-icon { color: var(--olive-dark); font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 32px; }
.stat-item { text-align: center; padding: 20px; background: var(--warm-white); border-radius: var(--radius-md); border: 1px solid var(--border-warm); }
.stat-value { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--olive-dark); display: block; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.link-underline { color: var(--plum); font-weight: 600; border-bottom: 2px solid var(--terracotta); padding-bottom: 2px; transition: var(--transition-smooth); cursor: pointer; display: inline-block; }
.link-underline:hover { color: var(--terracotta); }

/* =================================================================
   MOLECOLA DI ECCELLENZA
   ================================================================= */
.why-choose-section {
    padding: 100px 24px; background: linear-gradient(135deg, #FAF7F2 0%, #F5F1EA 50%, #F0EBE0 100%);
    margin: 60px 0; overflow: hidden; position: relative;
}
.neuron-background {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 900"><defs><radialGradient id="neuronGrad" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="%236B7A4B" stop-opacity="0.03"/><stop offset="100%" stop-color="%236B7A4B" stop-opacity="0"/></radialGradient></defs><path fill="none" stroke="%23C66B4F" stroke-width="1" stroke-opacity="0.08" stroke-dasharray="5,5" d="M 200 200 Q 400 300, 600 250 T 1000 300"/><path fill="none" stroke="%235D3A4B" stroke-width="1.5" stroke-opacity="0.06" d="M 150 400 C 300 350, 450 450, 600 400 S 900 350, 1050 400"/><path fill="none" stroke="%236B7A4B" stroke-width="0.8" stroke-opacity="0.05" d="M 300 600 Q 500 550, 700 600 T 1100 550"/><circle cx="400" cy="300" r="60" fill="url(%23neuronGrad)"/><circle cx="800" cy="500" r="80" fill="url(%23neuronGrad)"/><circle cx="600" cy="200" r="50" fill="url(%23neuronGrad)"/><circle cx="350" cy="650" r="70" fill="url(%23neuronGrad)"/><circle cx="900" cy="350" r="55" fill="url(%23neuronGrad)"/></svg>');
    background-size: cover; background-position: center; opacity: 0.6; z-index: 0; pointer-events: none;
}
.molecule-container { position: relative; width: 100%; max-width: 1100px; height: 800px; margin: 60px auto 0; z-index: 1; }
.molecule-connections { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.molecule-line { fill: none; stroke: url(#lineGrad); stroke-width: 2; stroke-dasharray: 6 6; animation: flowLine 10s linear infinite; opacity: 0.5; }
.molecule-line-thin { stroke-width: 1.2; opacity: 0.3; animation-duration: 15s; animation-direction: reverse; }
@keyframes flowLine { to { stroke-dashoffset: -120; } }

.molecule-node {
    position: absolute; border-radius: 50%; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center; padding: 20px;
    z-index: 3; transition: all 0.5s var(--transition-bounce); cursor: default; box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.molecule-node:hover { transform: scale(1.05) translateY(-3px); z-index: 10; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.node-icon { font-size: 1.8rem; margin-bottom: 8px; opacity: 0.9; }
.molecule-node h4 { font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1.15; margin-bottom: 8px; letter-spacing: -0.3px; font-size: 1.05rem; }
.molecule-node p { font-size: 0.78rem; line-height: 1.4; opacity: 0.85; max-width: 150px; }

.molecule-center {
    width: 240px; height: 240px; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: radial-gradient(circle at 30% 30%, #FFFFFF, #F5F1EA); border: 3px solid rgba(93, 58, 75, 0.15);
    color: var(--plum-dark); box-shadow: 0 0 0 6px rgba(93, 58, 75, 0.06), 0 0 0 12px rgba(93, 58, 75, 0.03), 0 30px 80px rgba(93, 58, 75, 0.25), inset 0 2px 10px rgba(255,255,255,0.8);
    z-index: 5; animation: centerPulse 5s ease-in-out infinite;
}
@keyframes centerPulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(93, 58, 75, 0.06), 0 0 0 12px rgba(93, 58, 75, 0.03), 0 30px 80px rgba(93, 58, 75, 0.25), inset 0 2px 10px rgba(255,255,255,0.8); }
    50% { box-shadow: 0 0 0 10px rgba(93, 58, 75, 0.08), 0 0 0 18px rgba(93, 58, 75, 0.04), 0 35px 90px rgba(93, 58, 75, 0.35), inset 0 2px 10px rgba(255,255,255,0.9); }
}
.molecule-center:hover { transform: translate(-50%, -50%) scale(1.03); }
.molecule-center-content { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.molecule-center-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; opacity: 0.6; color: var(--terracotta); }
.molecule-center-content h3 { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 700; line-height: 1.1; letter-spacing: -1px; margin: 2px 0; color: var(--plum-dark); }
.molecule-center-sub { font-size: 0.8rem; font-weight: 600; opacity: 0.7; letter-spacing: 1.5px; color: var(--text-muted); }

.molecule-node:not(.molecule-center):not(.molecule-large) { width: 190px; height: 190px; }
.molecule-large { width: 210px; height: 210px; }
.molecule-large h4 { font-size: 1.15rem; }
.molecule-1 { top: 6%; left: 6%; }
.molecule-2 { top: 2%; left: 40%; }
.molecule-3 { top: 6%; right: 6%; }
.molecule-4 { bottom: 6%; left: 6%; }
.molecule-5 { bottom: 2%; left: 40%; }
.molecule-6 { bottom: 6%; right: 6%; }

.molecule-olive { background: linear-gradient(135deg, #5A6B3F 0%, #4F5A36 100%); color: white; box-shadow: 0 15px 50px rgba(90, 107, 63, 0.4), inset 0 2px 10px rgba(255,255,255,0.15); }
.molecule-olive:hover { box-shadow: 0 20px 60px rgba(90, 107, 63, 0.55), inset 0 2px 10px rgba(255,255,255,0.2); }
.molecule-olive .node-icon { color: rgba(255,255,255,0.95); }
.molecule-terracotta { background: linear-gradient(135deg, #D47858 0%, #C66B4F 100%); color: white; box-shadow: 0 15px 50px rgba(212, 120, 88, 0.4), inset 0 2px 10px rgba(255,255,255,0.15); }
.molecule-terracotta:hover { box-shadow: 0 20px 60px rgba(212, 120, 88, 0.55), inset 0 2px 10px rgba(255,255,255,0.2); }
.molecule-terracotta .node-icon { color: rgba(255,255,255,0.95); }
.molecule-white { background: linear-gradient(135deg, #FFFFFF 0%, #FAF7F2 100%); color: var(--black); border: 2px solid rgba(198, 107, 79, 0.2); box-shadow: 0 15px 50px rgba(93, 58, 75, 0.12), inset 0 2px 10px rgba(255,255,255,0.9); }
.molecule-white:hover { box-shadow: 0 20px 60px rgba(93, 58, 75, 0.2), inset 0 2px 10px rgba(255,255,255,1); border-color: rgba(198, 107, 79, 0.4); }
.molecule-white .node-icon { color: var(--terracotta); }
.molecule-transparent { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(10px); color: var(--black); border: 1.5px solid rgba(255,255,255,0.8); box-shadow: 0 10px 40px rgba(0,0,0,0.06), inset 0 2px 10px rgba(255,255,255,0.5); }
.molecule-transparent:hover { background: rgba(255, 255, 255, 0.9); box-shadow: 0 20px 60px rgba(0,0,0,0.12), inset 0 2px 10px rgba(255,255,255,0.8); }
.molecule-transparent .node-icon { color: var(--plum-light); }
.molecule-cream { background: linear-gradient(135deg, #FFFFFF 0%, #F5F1EA 100%); color: var(--black); border: 2px solid rgba(107, 122, 75, 0.15); box-shadow: 0 15px 50px rgba(0,0,0,0.08), inset 0 2px 10px rgba(255,255,255,0.9); }
.molecule-cream:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.12), inset 0 2px 10px rgba(255,255,255,1); border-color: rgba(107, 122, 75, 0.3); }
.molecule-cream .node-icon { color: var(--olive); }
.molecule-rose { background: linear-gradient(135deg, #F5D4C4 0%, #E8B9A5 100%); color: var(--plum-dark); box-shadow: 0 15px 50px rgba(232, 185, 165, 0.5), inset 0 2px 10px rgba(255,255,255,0.4); }
.molecule-rose:hover { box-shadow: 0 20px 60px rgba(232, 185, 165, 0.65), inset 0 2px 10px rgba(255,255,255,0.5); }
.molecule-rose .node-icon { color: var(--plum); }

/* =================================================================
   COMPETENZE TECNICHE
   ================================================================= */
.competenze-section {
    background: linear-gradient(135deg, var(--plum-dark) 0%, var(--plum) 100%);
    padding: 100px 24px; margin: 60px 0; position: relative; overflow: hidden;
}
.competenze-section::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="80" r="3" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="50" r="1.5" fill="rgba(255,255,255,0.04)"/></svg>');
    background-size: 100px 100px; opacity: 0.5;
}
.competenze-header { text-align: center; max-width: 700px; margin: 0 auto 60px; position: relative; z-index: 1; }
.competenze-header h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: white; margin-bottom: 20px; font-weight: 600; }
.competenze-header p { font-size: 1.1rem; color: rgba(255,255,255,0.85); line-height: 1.7; }
.competenze-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 30px; max-width: 1000px; margin: 0 auto 50px; position: relative; z-index: 1; }

.competenza-card {
    background: rgba(255,255,255,0.08); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-md);
    padding: 40px; transition: var(--transition-smooth); position: relative;
}
.competenza-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-5px); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.competenza-spinale { background: rgba(255,255,255,0.12); border: 2px solid var(--terracotta); }
.competenza-spinale:hover { background: rgba(255,255,255,0.18); border-color: var(--terracotta-light); }

.competenza-icon { font-size: 3rem; margin-bottom: 20px; text-align: center; }
.competenza-card h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: white; margin-bottom: 24px; font-weight: 600; }
.competenza-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.competenza-list li {
    padding: 12px 16px 12px 40px; background: rgba(255,255,255,0.05); border-radius: var(--radius-sm);
    position: relative; font-size: 0.95rem; color: rgba(255,255,255,0.9); line-height: 1.5; transition: var(--transition-smooth);
}
.competenza-list li::before { content: '✓'; position: absolute; left: 16px; top: 12px; color: var(--terracotta-light); font-weight: 700; font-size: 1.1rem; }
.competenza-list li:hover { background: rgba(255,255,255,0.1); transform: translateX(4px); }
.competenze-cta { text-align: center; position: relative; z-index: 1; }
.competenze-cta .btn-primary { background: var(--terracotta); padding: 18px 40px; font-size: 1.1rem; }
.competenze-cta .btn-primary:hover { background: var(--terracotta-dark); }

/* =================================================================
   SERVICES & PATHOLOGIES
   ================================================================= */
.services-section, .pathologies-section { padding: 80px 24px; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 50px; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--plum-dark); margin-bottom: 12px; font-weight: 600; }
.section-header p { color: var(--text-muted); }

.services-grid, .pathologies-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.service-card, .pathology-card {
    background: var(--warm-white); border: 1px solid var(--border-warm);
    border-radius: var(--radius-md); padding: 28px; transition: all 0.4s var(--transition-smooth);
    display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--terracotta), var(--olive));
    transform: scaleX(0); transition: transform 0.4s var(--transition-smooth);
}
.service-card:hover, .pathology-card:hover {
    transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--olive-light);
}
.service-card:hover::before { transform: scaleX(1); }
.pathology-card {
    border-left: 4px solid var(--olive);
    position: relative; overflow: hidden;
}
.pathology-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--olive), var(--terracotta));
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s var(--transition-smooth);
}
.pathology-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(93,58,75,0.14);
    border-left-color: var(--terracotta);
    border-color: rgba(198,107,79,0.25);
}
.pathology-card:hover::before { transform: scaleX(1); }
.pathology-card h3 { transition: color 0.3s ease; }
.pathology-card:hover h3 { color: var(--plum); }

.service-category { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--terracotta); margin-bottom: 12px; }
.service-card h3, .pathology-card h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--black); margin-bottom: 12px; font-weight: 600; }
.service-card p, .pathology-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 24px; flex-grow: 1; line-height: 1.6; }
.service-price { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--olive-dark); margin-bottom: 20px; }
.service-card .btn-primary { width: 100%; justify-content: center; padding: 12px; font-size: 0.9rem; }

/* =================================================================
   TELECONSULT & CTA
   ================================================================= */
.teleconsult-section {
    background: linear-gradient(135deg, var(--plum) 0%, var(--plum-dark) 100%);
    color: var(--warm-white); padding: 80px 24px; margin: 60px 0; perspective: 1200px;
}
.teleconsult-content { max-width: 900px; margin: 0 auto; }
.teleconsult-3d-box {
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    border: 2px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg); padding: 50px 40px;
    text-align: center; position: relative; transform-style: preserve-3d; transform: rotateX(2deg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.teleconsult-3d-box:hover { transform: rotateX(0deg) translateY(-3px); box-shadow: 0 40px 80px rgba(0,0,0,0.4); }
.teleconsult-badge {
    display: inline-block; background: var(--terracotta); color: white; padding: 8px 20px;
    border-radius: 50px; font-size: 0.72rem; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; margin-bottom: 24px; box-shadow: 0 4px 12px rgba(198, 107, 79, 0.4);
}
.teleconsult-3d-box h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; margin-bottom: 20px; line-height: 1.2; }
.teleconsult-3d-box > p { font-size: 1.05rem; line-height: 1.7; opacity: 0.95; margin-bottom: 32px; max-width: 700px; margin-left: auto; margin-right: auto; }
.tele-features { display: flex; justify-content: center; gap: 32px; margin-bottom: 32px; flex-wrap: wrap; }
.tele-feature { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; }
.tele-price { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; margin-bottom: 32px; color: var(--terracotta-light); }
.tele-price strong { font-size: 2rem; }

.cta-banner-section {
    background: var(--olive-light); border-radius: var(--radius-lg); padding: 60px 40px;
    text-align: center; margin-bottom: 80px; border: 1px solid var(--border-warm);
}
.cta-banner-section h2 { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--plum-dark); margin-bottom: 16px; font-weight: 600; }
.cta-banner-section p { color: var(--text-muted); max-width: 600px; margin: 0 auto 32px; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* =================================================================
   FOOTER
   ================================================================= */
.footer { background: var(--plum-dark); color: var(--warm-white); padding: 60px 0 30px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: var(--terracotta-light); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.footer p, .footer a { color: rgba(255,255,255,0.75); font-size: 0.92rem; line-height: 1.8; display: block; margin-bottom: 8px; transition: var(--transition-smooth); }
.footer a:hover { color: var(--terracotta-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* =================================================================
   PAGINE DETTAGLIO (Patologie, Trattamenti, Privacy)
   ================================================================= */
.breadcrumb-section { background: var(--cream); padding: 20px 0; border-bottom: 1px solid var(--border-warm); }
.breadcrumb { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--text-muted); }
.breadcrumb a { color: var(--olive); font-weight: 500; transition: var(--transition-smooth); }
.breadcrumb a:hover { color: var(--terracotta); }
.breadcrumb-separator { color: var(--border-warm); }
.breadcrumb-current { color: var(--black); font-weight: 600; }

.pathology-header, .trattamenti-header, .trattamento-detail-header, .privacy-header {
    background: linear-gradient(135deg, var(--olive-light) 0%, var(--cream) 100%);
    padding: 100px 0 80px; text-align: center;
}
.pathology-category {
    display: inline-block; background: var(--terracotta); color: white; padding: 6px 16px;
    border-radius: 50px; font-size: 0.75rem; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; margin-bottom: 20px;
}
.pathology-header h1, .trattamenti-header h1, .trattamento-detail-header h1, .privacy-header h1 {
    font-family: 'Playfair Display', serif; font-size: 2.8rem; color: var(--plum-dark);
    margin-bottom: 24px; font-weight: 600; line-height: 1.2;
}
.pathology-intro, .trattamenti-intro, .trattamento-intro, .privacy-intro {
    max-width: 800px; margin: 0 auto; font-size: 1.15rem; line-height: 1.8; color: var(--text-muted);
}

.pathology-detail, .trattamento-detail, .privacy-content { padding: 80px 24px; max-width: 900px; margin: 0 auto; }
.pathology-section, .trattamento-section, .privacy-section { margin-bottom: 60px; }
.pathology-section h2, .trattamento-section h2, .privacy-section h2 {
    font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--plum-dark);
    margin-bottom: 24px; font-weight: 600; padding-bottom: 12px;
    border-bottom: 2px solid var(--terracotta); display: inline-block;
}
.pathology-section p, .trattamento-section p, .privacy-section p { font-size: 1.05rem; line-height: 1.8; color: var(--black); margin-bottom: 16px; }

.symptom-list, .privacy-list, .warning-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.symptom-list li, .privacy-list li {
    padding: 16px 20px 16px 50px; background: var(--warm-white); border-radius: var(--radius-sm);
    position: relative; font-size: 1rem; line-height: 1.6; border-left: 3px solid var(--olive); transition: var(--transition-smooth);
}
.symptom-list li::before { content: '•'; position: absolute; left: 20px; top: 16px; color: var(--terracotta); font-size: 1.5rem; line-height: 1; }
.privacy-list li::before { content: '✓'; position: absolute; left: 18px; top: 14px; color: var(--olive-dark); font-weight: 700; }
.symptom-list li:hover, .privacy-list li:hover { transform: translateX(4px); box-shadow: var(--shadow-soft); }

.treatment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 30px; }
.treatment-card { padding: 32px 28px; border-radius: var(--radius-md); text-align: center; transition: var(--transition-smooth); border: 2px solid transparent; }
.treatment-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.treatment-icon { font-size: 3rem; margin-bottom: 16px; }
.treatment-card h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 16px; font-weight: 600; }
.treatment-card p { font-size: 0.95rem; line-height: 1.7; margin: 0; }
.treatment-conservative { background: var(--olive-light); border-color: var(--olive); }
.treatment-conservative h3 { color: var(--olive-dark); }
.treatment-interventional { background: var(--terracotta-light); border-color: var(--terracotta); }
.treatment-interventional h3 { color: var(--terracotta-dark); }
.treatment-surgical { background: linear-gradient(135deg, var(--plum) 0%, var(--plum-dark) 100%); color: white; border-color: var(--plum); }
.treatment-surgical h3 { color: white; }
.treatment-surgical p { color: rgba(255,255,255,0.9); }

.pathology-warning, .trattamento-warning {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%); padding: 40px;
    border-radius: var(--radius-md); border-left: 5px solid #FF5722;
}
.pathology-warning h2, .trattamento-warning h2 { color: #D84315; border-bottom-color: #FF5722; }
.warning-text { font-weight: 600; color: #BF360C; margin-bottom: 20px; font-size: 1.1rem; }
.warning-list li {
    padding: 14px 20px 14px 45px; background: white; border-radius: var(--radius-sm);
    position: relative; font-size: 1rem; line-height: 1.6; color: var(--black);
}
.warning-list li::before { content: '⚠'; position: absolute; left: 18px; top: 14px; font-size: 1.2rem; }

.pathology-cta, .privacy-cta {
    background: linear-gradient(135deg, var(--plum) 0%, var(--plum-dark) 100%); padding: 80px 24px; margin: 40px 0;
}
.cta-box { max-width: 800px; margin: 0 auto; text-align: center; color: white; }
.cta-box h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; margin-bottom: 20px; font-weight: 600; }
.cta-box > p { font-size: 1.1rem; margin-bottom: 32px; opacity: 0.95; line-height: 1.7; }
.cta-box .btn-secondary { color: white; border-color: white; }
.cta-box .btn-secondary:hover { background: white; color: var(--plum); }

/* =================================================================
   LOGIN PAGE AVANZATA
   ================================================================= */
.login-page-body {
    background: linear-gradient(135deg, #F9F7F4 0%, #E8EBE1 50%, #F5E6E1 100%);
    min-height: 100vh; display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 40px 20px; position: relative; overflow: hidden;
}
.login-page-body::before, .login-page-body::after {
    content: ''; position: absolute; border-radius: 50%; pointer-events: none;
    animation: float 20s ease-in-out infinite;
}
.login-page-body::before {
    top: -50%; right: -20%; width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(198, 107, 79, 0.05) 0%, transparent 70%);
}
.login-page-body::after {
    bottom: -30%; left: -10%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(107, 122, 75, 0.05) 0%, transparent 70%);
    animation-direction: reverse; animation-duration: 25s;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.back-to-home {
    position: absolute; top: 24px; left: 24px; color: var(--text-muted); text-decoration: none;
    font-weight: 500; font-size: 0.9rem; transition: all 0.3s var(--transition-smooth);
    display: flex; align-items: center; gap: 8px; z-index: 10; padding: 8px 16px;
    border-radius: 50px; background: rgba(255,255,255,0.5); backdrop-filter: blur(10px);
}
.back-to-home:hover { color: var(--terracotta); transform: translateX(-4px); background: rgba(255,255,255,0.9); }

.login-main-card {
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(20px); width: 100%; max-width: 750px;
    border-radius: 28px; padding: 56px 48px; box-shadow: 0 25px 80px rgba(93, 58, 75, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8); text-align: center; position: relative; z-index: 1;
    animation: cardEntrance 0.6s var(--transition-bounce);
}
@keyframes cardEntrance { from { opacity: 0; transform: translateY(40px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

.login-header h1 {
    font-family: 'Playfair Display', serif; font-size: 2.5rem;
    background: linear-gradient(135deg, var(--plum-dark) 0%, var(--terracotta) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 12px;
}
.login-header p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 48px; animation: fadeIn 0.8s ease 0.2s both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.login-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; perspective: 1000px; }
.choice-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, var(--cream) 100%);
    border: 2px solid rgba(229, 221, 208, 0.5); border-radius: 20px; padding: 40px 32px;
    cursor: pointer; transition: all 0.4s var(--transition-bounce); text-align: center;
    position: relative; overflow: hidden; transform-style: preserve-3d; animation: fadeIn 0.6s ease backwards;
}
.choice-card:nth-child(1) { animation-delay: 0.1s; }
.choice-card:nth-child(2) { animation-delay: 0.2s; }
.choice-card:hover {
    border-color: var(--terracotta); transform: translateY(-8px) rotateX(5deg) scale(1.02);
    box-shadow: 0 20px 50px rgba(198, 107, 79, 0.2), 0 0 0 4px rgba(198, 107, 79, 0.1);
}
.choice-card.choice-medico:hover {
    border-color: var(--olive); box-shadow: 0 20px 50px rgba(107, 122, 75, 0.2), 0 0 0 4px rgba(107, 122, 75, 0.1);
}
.choice-icon { font-size: 3.5rem; margin-bottom: 20px; display: inline-block; transition: transform 0.4s var(--transition-bounce); position: relative; z-index: 1; }
.choice-card:hover .choice-icon { transform: scale(1.15) rotate(5deg); }
.choice-card h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--plum-dark); margin-bottom: 12px; position: relative; z-index: 1; }
.choice-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; position: relative; z-index: 1; }

.login-form-wrapper { text-align: left; max-width: 450px; margin: 0 auto; animation: slideIn 0.5s var(--transition-smooth); }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
.hidden { display: none !important; opacity: 0; }
.fade-in { animation: fadeIn 0.5s var(--transition-smooth) forwards; }

.back-choice-btn {
    background: none; border: none; color: var(--text-muted); cursor: pointer;
    font-size: 0.95rem; font-weight: 500; margin-bottom: 28px; display: flex;
    align-items: center; gap: 8px; transition: all 0.3s var(--transition-smooth); padding: 8px 0;
}
.back-choice-btn:hover { color: var(--terracotta); transform: translateX(-4px); }
.login-form-wrapper h2 { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--plum-dark); margin-bottom: 36px; text-align: center; }

.modern-form .form-group { margin-bottom: 24px; position: relative; }
.modern-form label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--black); margin-bottom: 10px; }
.modern-form input {
    width: 100%; padding: 16px 20px; border: 2px solid var(--border-warm); border-radius: 14px;
    font-size: 1rem; font-family: 'Inter', sans-serif; transition: all 0.3s var(--transition-smooth);
    background: rgba(250, 250, 250, 0.8);
}
.modern-form input:focus {
    outline: none; border-color: var(--terracotta); background: white;
    box-shadow: 0 0 0 6px rgba(198, 107, 79, 0.08); transform: translateY(-2px);
}
.form-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; font-size: 0.9rem; }
.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--text-muted); }
.checkbox-label input { width: 18px; height: 18px; cursor: pointer; accent-color: var(--terracotta); }
.forgot-link { color: var(--terracotta); font-weight: 600; text-decoration: none; position: relative; }
.forgot-link::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
    background: var(--terracotta); transition: width 0.3s var(--transition-smooth);
}
.forgot-link:hover::after { width: 100%; }

/* =================================================================
   COOKIE BANNER
   ================================================================= */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; background: var(--plum-dark);
    color: white; padding: 24px; box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    z-index: 9999; display: none; animation: slideUp 0.4s ease;
}
.cookie-banner.show { display: block; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-banner-content { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cookie-banner-text h4 { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: 8px; color: var(--terracotta-light); }
.cookie-banner-text p { font-size: 0.9rem; line-height: 1.6; opacity: 0.9; margin: 0; }
.cookie-banner-text a { color: var(--terracotta-light); text-decoration: underline; }
.cookie-banner-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-btn { padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: var(--transition-smooth); border: none; font-family: 'Inter', sans-serif; }
.cookie-btn-accept { background: var(--terracotta); color: white; }
.cookie-btn-accept:hover { background: var(--terracotta-dark); }
.cookie-btn-reject { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.3); }
.cookie-btn-reject:hover { border-color: white; }
.cookie-btn-settings { background: transparent; color: var(--terracotta-light); text-decoration: underline; padding: 12px 16px; }

/* =================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ================================================================= */
@media (max-width: 1024px) {
    .molecule-container { height: 900px; }
    .molecule-center { width: 210px; height: 210px; }
    .molecule-center-content h3 { font-size: 1.5rem; }
    .molecule-large { width: 180px; height: 180px; }
    .molecule-large h4 { font-size: 1rem; }
    .molecule-node:not(.molecule-center):not(.molecule-large) { width: 160px; height: 160px; }
    .molecule-node:not(.molecule-center):not(.molecule-large) h4 { font-size: 0.95rem; }
    .molecule-node p { font-size: 0.72rem; max-width: 130px; }
}

@media (max-width: 900px) {
    .about-section { grid-template-columns: 1fr; gap: 40px; }
    .about-image { height: 350px; order: -1; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-title { font-size: 2.5rem; }
    .teleconsult-3d-box { padding: 40px 30px; }
    .teleconsult-3d-box h2 { font-size: 1.9rem; }
    .tele-price { font-size: 1.4rem; }
    .tele-price strong { font-size: 1.7rem; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .header-premium { padding: 14px 0; }
    .logo { font-size: 1.2rem; }
    
    .hero-section { padding: 100px 0 70px; }
    .hero-badge { font-size: 0.7rem; padding: 6px 14px; }
    .hero-title { font-size: 2rem; letter-spacing: -1px; margin-bottom: 20px; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 30px; line-height: 1.7; }
    .hero-badges { flex-direction: column; gap: 10px; align-items: center; margin-bottom: 30px; }
    .hero-ctas { flex-direction: column; width: 100%; gap: 12px; }
    .hero-ctas button { width: 100%; padding: 14px 24px; font-size: 0.95rem; }
    
    .about-section { padding: 60px 20px; }
    .about-image { height: 300px; }
    .about-content h2 { font-size: 1.8rem; }
    .stats-grid { grid-template-columns: 1fr; gap: 12px; }
    
    .why-choose-section { padding: 70px 20px; margin: 40px 0; }
    .section-header h2 { font-size: 1.8rem; }
    .molecule-container { height: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 40px auto 0; padding: 0; }
    .molecule-connections { display: none; }
    .neuron-background { opacity: 0.3; }
    .molecule-node {
        position: relative !important; top: auto !important; left: auto !important;
        right: auto !important; bottom: auto !important; transform: none !important;
        width: 100% !important; height: auto !important; min-height: 160px;
        border-radius: 20px !important; padding: 20px 16px;
    }
    .molecule-center { grid-column: 1 / -1; min-height: 140px; border-radius: 20px !important; animation: none; }
    .molecule-center:hover { transform: none !important; }
    .molecule-center-content h3 { font-size: 1.4rem; }
    .molecule-node h4 { font-size: 1rem !important; margin-bottom: 6px; }
    .molecule-node p { font-size: 0.78rem; max-width: 100%; }
    .node-icon { font-size: 1.5rem; margin-bottom: 6px; }
    
    .services-section, .pathologies-section { padding: 60px 20px; }
    .services-grid, .pathologies-grid { grid-template-columns: 1fr; gap: 16px; }
    
    .teleconsult-section { padding: 60px 20px; margin: 40px 0; }
    .teleconsult-3d-box { padding: 30px 20px; transform: none; border-radius: var(--radius-md); }
    .teleconsult-3d-box:hover { transform: none; }
    .teleconsult-3d-box h2 { font-size: 1.5rem; margin-bottom: 16px; }
    .tele-features { flex-direction: column; gap: 12px; align-items: center; }
    .btn-large { padding: 16px 28px; font-size: 1rem; width: 100%; }
    
    .cta-banner-section { padding: 40px 24px; margin-bottom: 60px; }
    .cta-banner-section h2 { font-size: 1.6rem; }
    .cta-buttons { flex-direction: column; }
    .cta-buttons button { width: 100%; }
    
    .competenze-section { padding: 70px 20px; }
    .competenze-header h2 { font-size: 1.8rem; }
    .competenze-grid { grid-template-columns: 1fr; gap: 20px; }
    .competenza-card { padding: 30px 24px; }
    .competenza-card h3 { font-size: 1.3rem; }
    .competenza-icon { font-size: 2.5rem; }
    
    .pathology-header, .trattamenti-header, .trattamento-detail-header, .privacy-header { padding: 80px 0 60px; }
    .pathology-header h1, .trattamenti-header h1, .trattamento-detail-header h1, .privacy-header h1 { font-size: 2rem; }
    .pathology-detail, .trattamento-detail, .privacy-content { padding: 60px 20px; }
    .pathology-section h2, .trattamento-section h2, .privacy-section h2 { font-size: 1.5rem; }
    .symptom-list li, .privacy-list li { padding: 14px 16px 14px 42px; font-size: 0.95rem; }
    .treatment-grid { grid-template-columns: 1fr; gap: 16px; }
    .pathology-warning, .trattamento-warning { padding: 30px 24px; }
    .warning-list li { padding: 12px 16px 12px 42px; font-size: 0.95rem; }
    .pathology-cta, .privacy-cta { padding: 60px 20px; }
    .cta-box h2 { font-size: 1.7rem; }
    .cta-box .btn-primary, .cta-box .btn-secondary { width: 100%; }
    
    .cookie-banner-content { grid-template-columns: 1fr; gap: 16px; }
    .cookie-banner-buttons { justify-content: center; }
    
    .login-choices { grid-template-columns: 1fr; gap: 20px; }
    .login-main-card { padding: 40px 28px; border-radius: 24px; }
    .login-header h1 { font-size: 2rem; }
    .choice-card { padding: 32px 24px; }
    .choice-icon { font-size: 3rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 1.7rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .section-header h2 { font-size: 1.6rem; }
    .about-content h2 { font-size: 1.6rem; }
    .molecule-container { gap: 12px; }
    .molecule-node { min-height: 140px; padding: 16px 12px; }
    .molecule-node h4 { font-size: 0.92rem !important; }
    .molecule-node p { font-size: 0.72rem; }
    .molecule-center-content h3 { font-size: 1.2rem; }
    .teleconsult-3d-box h2 { font-size: 1.3rem; }
    .teleconsult-3d-box > p { font-size: 0.88rem; }
    .pathology-header h1, .trattamenti-header h1, .trattamento-detail-header h1, .privacy-header h1 { font-size: 1.7rem; }
    .pathology-section h2, .trattamento-section h2, .privacy-section h2 { font-size: 1.3rem; }
}
/* =================================================================
   TRATTAMENTI CHIRURGICI PAGE SPECIFIC STYLES
   ================================================================= */
.trattamenti-section { margin-bottom: 60px; }
.trattamenti-section-header { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 40px; }
.trattamenti-icon { flex-shrink: 0; width: 60px; height: 60px; background: linear-gradient(135deg, var(--plum), var(--plum-dark)); border-radius: 16px; display: flex; align-items: center; justify-content: center; color: var(--cream); font-size: 1.8rem; box-shadow: 0 10px 24px rgba(61,36,48,0.2); }
.trattamenti-section-header h2 { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--plum-dark); margin-bottom: 8px; }
.trattamenti-section-header p { color: var(--text-muted); font-size: 1.05rem; }

.trattamenti-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.trattamento-card { background: #fff; border-radius: 20px; padding: 32px 28px; border: 1px solid var(--border); text-decoration: none; display: flex; flex-direction: column; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); position: relative; overflow: hidden; }
.trattamento-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(61,36,48,0.08); border-color: transparent; }
.trattamento-number { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 800; color: rgba(198,107,79,0.1); position: absolute; top: 16px; right: 24px; transition: all 0.3s; }
.trattamento-card:hover .trattamento-number { color: rgba(198,107,79,0.2); transform: scale(1.1); }
.trattamento-card h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--plum-dark); margin-bottom: 12px; font-weight: 600; position: relative; z-index: 2; line-height: 1.3; }
.trattamento-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 24px; flex-grow: 1; position: relative; z-index: 2; }
.trattamento-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--terracotta); font-size: 1rem; margin-top: auto; transition: transform 0.3s; }
.trattamento-card:hover .trattamento-arrow { transform: translateX(6px); }

.trattamento-card.featured { border: 2px solid rgba(198,107,79,0.2); background: linear-gradient(to bottom, #fff, rgba(245,240,232,0.3)); }
.trattamento-card.featured::before { content: 'Più richiesto'; position: absolute; top: 16px; left: 28px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--terracotta); z-index: 2; }
.trattamento-card.featured h3 { margin-top: 24px; }


/* === DROPDOWN MENU === */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background-color: #fff; min-width: 260px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1); z-index: 1000;
    border-radius: 8px; overflow: hidden; border: 1px solid #E5DDD0;
}


.dropdown-menu a {
    color: #1A1A1A; padding: 12px 16px; text-decoration: none;
    display: block; font-size: 0.9rem; transition: background 0.3s;
}
.dropdown-menu a:hover { background-color: #F5F3F0; color: #C66B4F; }
.dropdown:hover .dropdown-menu { display: block; }

.mobile-dropdown-menu {
    display: none; background-color: rgba(0,0,0,0.03);
    border-radius: 8px; margin-top: 8px; padding: 8px 0;
}
.mobile-dropdown-menu.active { display: block; }
.mobile-dropdown-item {
    padding: 10px 16px; font-size: 1.1rem; color: var(--plum-dark);
    display: block; text-decoration: none; transition: color 0.3s;
    text-align: center;
}
.mobile-dropdown-item:hover { color: var(--terracotta); }
