:root {
    --primary: #0ea5e9; /* Vibrant Cyan - Tech & Innovation */
    --primary-dark: #0284c7;
    --secondary: #0f172a; /* Deep Navy - Trust & Authority */
    --accent: #38bdf8;
    --text-main: #1e293b; /* Slate Gray */
    --text-muted: #64748b;
    --bg-light: #f8fafc; /* Very Light Tech Gray */
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px; /* Sharper, more technical corners */
}

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

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    padding: 20px 0;
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
    transition: var(--transition);
}

header.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--primary);
    text-decoration: none;
}

.logo span {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links a:hover {
    color: var(--primary);
}

.cta-booking {
    background: var(--primary);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(95, 141, 123, 0.2);
    transition: var(--transition);
}

.cta-booking:hover {
    background: var(--primary-dark);
}

/* Dropdown / Mega Menu */
.dropdown {
    position: static; /* Necessario per il mega menu a tutta larghezza */
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 40px 0;
    z-index: 100;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.dropdown-col h4 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--bg-light);
    padding-bottom: 10px;
}

.dropdown-col ul {
    list-style: none;
}

.dropdown-col ul li {
    margin-bottom: 12px;
}

.dropdown-col ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    transition: var(--transition);
}

.dropdown-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.lang-switcher {
    display: flex;
    gap: 5px;
    background: var(--bg-light);
    padding: 4px;
    border-radius: 8px;
}

.lang-btn {
    border: none;
    background: none;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    color: var(--text-muted);
}

.lang-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    overflow: hidden;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
}

.shape.s1 {
    width: 600px;
    height: 600px;
    background: rgba(14, 165, 233, 0.2);
    top: -100px;
    right: -100px;
}

.shape.s2 {
    width: 400px;
    height: 400px;
    background: rgba(6, 182, 212, 0.15);
    bottom: -50px;
    right: 20%;
}

/* Fast Info */
.fast-info {
    padding: 0;
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.info-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

/* Hero Section - High-Tech Clinical Excellence */
.hero {
    min-height: 95vh;
    padding-top: 150px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    position: relative;
    /* Ultra-Modern Medical Center Background */
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.95) 20%, rgba(255, 255, 255, 0.1) 100%),
        url("https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&q=90&w=2000"); /* Modern Clinic Interior */
    background-size: cover;
    background-position: center;
    /* Sharp Technical Filter */
    filter: contrast(1.05) brightness(1.02);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, transparent 20%, rgba(14, 165, 233, 0.03) 100%);
    z-index: 1;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1;
    color: var(--secondary);
    font-weight: 900;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--primary);
    position: relative;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(14, 165, 233, 0.2);
    z-index: -1;
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-main);
    max-width: 600px;
    margin-bottom: 45px;
    font-weight: 400;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background: var(--bg-light);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.05) 0%, transparent 20%);
    overflow-x: hidden;
}

/* Specialties Section - High-Tech Grid */
.area-group {
    background: var(--bg-white);
    padding: 60px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    border-top: 6px solid var(--primary);
    box-shadow: var(--shadow);
    margin-bottom: 60px;
}

.area-title {
    color: var(--secondary);
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 40px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.area-title i {
    color: var(--primary);
}

.spec-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.spec-mini-card {
    background: #fcfdfe;
    padding: 35px;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 180px;
    position: relative;
    overflow: hidden;
}

.spec-mini-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: var(--transition);
}

.spec-mini-card:hover {
    transform: translateX(10px);
    background: white;
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.1);
}

.spec-mini-card:hover::before {
    opacity: 1;
}

.spec-mini-card h4 {
    color: var(--secondary);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.spec-mini-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.area-group.upcoming {
    background: #f1f5f9;
    border: 2px dashed var(--border);
}

.area-group.upcoming .area-title {
    color: var(--text-muted);
}

.area-group.upcoming .spec-mini-card {
    opacity: 0.8;
    background: white;
}

.area-group.upcoming .spec-mini-card:hover {
    opacity: 1;
    border-color: var(--accent);
}

.spec-mini-card.highlight {
    border: 2px solid var(--primary);
    background: rgba(14, 165, 233, 0.05);
}

/* Physiotherapy */
.physio-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.badge {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.physio-text h2 {
    font-size: 3rem;
    margin: 15px 0 25px;
}

.physio-list {
    list-style: none;
    margin-top: 30px;
}

.physio-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 500;
}

.physio-list i {
    color: var(--accent);
}

.physio-visual {
    flex: 1;
    position: relative;
    height: 450px;
}

.physio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.physio-img:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(62, 39, 35, 0.15);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-center {
    background: var(--bg-white);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.stats-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.s-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border);
}

.s-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.s-unit {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

.s-card p {
    font-size: 0.85rem;
    margin-top: 10px;
    font-weight: 500;
    color: var(--text-muted);
}

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.about-features {
    margin-top: 40px;
}

.f-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.f-item i {
    font-size: 2rem;
    color: var(--accent);
}

.f-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.f-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .about-wrapper {
        grid-template-columns: 1fr;
    }
    .about-visual {
        order: 2;
    }
}
.contact-card {
    background: var(--bg-white);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.contact-info {
    padding: 80px;
    background: var(--bg-light);
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.c-details {
    margin-top: 40px;
}

.c-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    font-weight: 500;
}

.c-item i {
    width: 45px;
    height: 45px;
    background: var(--bg-white);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.contact-form {
    padding: 80px;
    background: #fffdfa;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    opacity: 0.5;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 18px 18px 18px 45px;
    border: 1px solid var(--border);
    border-radius: 16px;
    font-family: inherit;
    background: #fdfaf5;
    color: var(--text-main);
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 10px 20px rgba(141, 110, 99, 0.05);
}

.submit-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(95, 141, 123, 0.2);
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(95, 141, 123, 0.3);
}

/* Footer */
footer {
    background: var(--bg-light);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.socials {
    display: flex;
    gap: 15px;
}

.socials a {
    width: 40px;
    height: 40px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.socials a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.f-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Mobile */
@media (max-width: 992px) {
    .nav-links, .lang-switcher { display: none; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 3rem; }
    .info-grid { grid-template-columns: 1fr; }
    .specialties-grid { grid-template-columns: 1fr 1fr; }
    .physio-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2.2rem; }
    .specialties-grid { grid-template-columns: 1fr; }
    .contact-info, .contact-form { padding: 40px; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}
