/* Reset e Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00b4d8;
    --primary-dark: #0077b6;
    --secondary-color: #90e0ef;
    --accent-color: #f72585;
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

html,
body {
    overflow-x: hidden;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--light-bg);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color);
}

.img-responsive {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

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

.animate-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0 0;
    /* Background handled by inner divs now */
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
    opacity: 0;
}

.hero-bg.active {
    opacity: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23e2e8f0" opacity="0.3"/><circle cx="75" cy="75" r="1" fill="%2300b4d8" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: static;
    z-index: 2;
}

.hero-content {
    position: absolute;
    left: 4rem;
    bottom: 9rem;
}

.hero-title.enter .hero-subtitle,
.hero-title.enter .hero-main {
    animation: text-enter 650ms ease-out both;
}

.hero-title.exit .hero-subtitle,
.hero-title.exit .hero-main {
    animation: text-exit 350ms ease-in both;
}

@keyframes text-enter {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes text-exit {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
}

.hero-textbox {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 60%;
    min-width: 600px;
    margin-right: 150px;
}

.hero-subtitle {
    display: block;
    font-size: 1.3rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.hero-main {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.hero-video {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.video-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.video-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.stat-label {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
}

.hero-image {
    display: none;
}

.hero-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.hero-card {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.hero-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.hero-card p {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

.hero-contacts {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-dark);
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 180, 216, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.contact-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
    opacity: 0.25;
    pointer-events: none;
}

.contact-link:hover .contact-icon {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 180, 216, 0.35);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-text {
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    transition: max-width 0.35s ease, opacity 0.35s ease;
    color: var(--primary-color);
    font-weight: 600;
}

.contact-link:hover .contact-text {
    max-width: 240px;
    opacity: 1;
}

.hero-brands {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.hero-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3;
}

.hero-arrow {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    box-shadow: var(--shadow);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hero-arrow:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.25);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    width: 26px;
    border-radius: 20px;
    background: #fff;
}

.hero-arrows {
    display: none;
}

.brands-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    opacity: 0.6;
}

.brand-item {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Differenza Section */
.differenza {
    background: var(--white);
}

.differenza-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.differenza-list {
    list-style: none;
    margin-top: 2rem;
}

.differenza-list li {
    padding: 1rem 0;
    position: relative;
    padding-left: 3rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
}

.differenza-list li:hover {
    background: rgba(0, 180, 216, 0.05);
    transform: translateX(10px);
    padding-left: 2rem;
}

.differenza-list li i {
    color: var(--primary-color);
    font-size: 1.2rem;
    min-width: 24px;
    transition: all 0.3s ease;
}

.differenza-list li:hover i {
    transform: scale(1.2) rotate(10deg);
    color: var(--primary-dark);
}

/* Award Section */
.award-section {
    padding: 100px 0;
    background: var(--white);
}

.award-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.award-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.award-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.5rem;
    min-width: 40px;
}

.feature-content h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0;
}

.doctor-signature {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
}

.signature-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.doctor-info h4 {
    margin: 0;
    color: var(--text-dark);
}

.doctor-info p {
    margin: 0;
    color: var(--text-light);
}

.signature-img {
    width: 80px;
    object-fit: contain;
}

.experience-badge {
    text-align: center;
}

.experience-years {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.experience-text {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.team-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

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

.team-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    cursor: zoom-in;
}

.team-info h4 {
    margin: 0;
    color: var(--text-dark);
}

.team-info p {
    margin: 0.25rem 0 0;
    color: var(--text-light);
}

/* Servizi Section */
.servizi {
    background: var(--light-bg);
}

.servizi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.servizio-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.servizio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.servizio-card:hover::before {
    opacity: 0.05;
}

.servizio-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 180, 216, 0.15);
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.servizio-card:hover .service-img {
    transform: scale(1.1);
}

.servizio-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.service-details {
    display: none;
}

.servizio-content h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.servizio-content h3 i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.servizio-card:hover .servizio-content h3 i {
    transform: scale(1.2) rotate(5deg);
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Approccio Section */
.approccio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.approccio-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.approccio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.approccio-icon {
    margin-bottom: 1.5rem;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto;
}

/* Servizi Generali Section */
.servizi-generali {
    background: var(--light-bg);
}

.servizi-generali-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.servizio-generale {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.servizio-generale:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.servizio-generale h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Tecnologie Section */
.tecnologie-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tech-list {
    list-style: none;
    margin-top: 2rem;
}

.tech-list li {
    padding: 0.75rem 0;
    position: relative;
    padding-left: 2rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.tech-list li:last-child {
    border-bottom: none;
}

.tech-list li::before {
    content: '🔬';
    position: absolute;
    left: 0;
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.newsletter-text h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-form-container {
    display: flex;
    gap: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.newsletter-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Contatti Section */
.contatti {
    background: var(--light-bg);
}

.contatti-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-icon {
    font-size: 1.5rem;
    min-width: 40px;
}

.info-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-content p {
    margin: 0;
    color: var(--text-light);
}

.contatti .info-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contatti .info-content a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contatti .info-content a:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
    border-radius: 6px;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    height: 36px;
    width: auto;
    display: block;
}

.footer-brand h3 {
    margin: 0;
    margin-bottom: 0;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-color);
}

.social-link {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-contact p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact .contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.footer-contact .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-contact .icon svg {
    width: 20px;
    height: 20px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-contact .contact-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.whatsapp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-left: 6px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
}

.whatsapp-badge svg,
.whatsapp-badge i {
    width: 14px;
    height: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: #ffffff;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 900px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.25rem;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cookie-banner.show {
    opacity: 1;
    visibility: visible;
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

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

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cookie-banner-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

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

@media (max-width: 768px) {
    .cookie-banner {
        width: calc(100% - 24px);
        bottom: 12px;
    }
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .cookie-banner-actions {
        justify-content: flex-end;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: 0;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: transform 0.3s ease;
        transform: translateX(-100%);
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-textbox {
        max-width: 100%;
        min-width: 300px;
    }

    .hero-main {
        font-size: 2.5rem;
    }

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

    .differenza-content,
    .award-content,
    .tecnologie-content,
    .newsletter-content,
    .contatti-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .doctor-signature {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .newsletter-form-container {
        flex-direction: column;
    }

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

    .brands-container {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 1rem 15px;
    }

    .hero {
        padding: 100px 0 20px;
        justify-content: end;
    }

    .hero-content {
        left: 0;
        right: 0;
        width: 100%;
        text-align: center;
    }

    .hero-main {
        font-size: 1.4rem;
    }

    .hero-textbox {
        margin-right: 0;
    }

    section {
        padding: 60px 0;
    }

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

    .servizi-generali-grid {
        grid-template-columns: 1fr;
    }

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

    .servizio-content h3 {
        font-size: 1rem;
        gap: 0;
    }

    .servizio-content h3 i,
    .servizio-content h3 svg {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-content {
        left: 0;
        right: 0;
        width: 100%;
        bottom: 12rem;
        text-align: center;
    }

    .hero-nav {
        margin-bottom: 6rem;
    }

    .hero-main {
        font-size: 2.6rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(6px);
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: var(--white);
    width: 90%;
    max-width: 720px;
    max-height: 85vh;
    /* Limit height */
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem 2rem;
    position: relative;
}

.modal-title {
    margin: 0 0 1rem 0;
    color: var(--text-dark);
    flex-shrink: 0;
    /* Prevent title from shrinking */
}

.modal-body {
    overflow-y: auto;
    /* Enable vertical scrolling */
    padding-right: 10px;
    /* Space for scrollbar */
}

/* Custom Scrollbar */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.modal-body p {
    color: var(--text-light);
}

.modal-body ul {
    margin: 0.75rem 0 0 1rem;
    color: var(--text-light);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.dottoressa {
    background: var(--light-bg);
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.profile-photo {
    width: 100%;
    max-width: 420px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.profile-text p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.profile-highlights {
    list-style: none;
    margin: 1rem 0 1rem 0;
    padding: 0;
}

.profile-highlights li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-light);
}

.profile-highlights li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.profile-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: zoom-in;
}

.gallery-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-img,
.gallery-item.active .gallery-img {
    transform: none;
}

.gallery-caption {
    display: none !important;
}

.gallery-item:hover .gallery-caption,
.gallery-item.active .gallery-caption {
    display: none !important;
}

@media (max-width: 768px) {
    .profile-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .profile-photo {
        margin: 0 auto;
    }

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

@media (max-width: 480px) {
    .profile-gallery {
        grid-template-columns: 1fr;
    }
}

.modal.modal-image {
    padding: 0;
    background: transparent;
    box-shadow: none;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-image-content {
    position: relative;
    display: inline-block;
}

.modal-img {
    width: 90vw;
    max-width: 1000px;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    background: var(--white);
    display: block;
}

.modal-caption {
    margin-top: 0.75rem;
    color: var(--white);
    text-align: center;
}

.modal.modal-image .modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
}

/* Team Modal Styles */
.modal.modal-team {
    max-width: 500px;
    width: 90%;
    text-align: center;
    padding: 2.5rem 2rem;
}

.modal-team-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    overflow-y: auto;
    max-height: 75vh;
    padding: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.modal-team-content::-webkit-scrollbar {
    width: 6px;
}

.modal-team-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-team-content::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 20px;
}

.modal-team-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border: 3px solid var(--primary-color);
    flex-shrink: 0;
}

.modal-team-name {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.modal-team-role {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.modal-team-divider {
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.modal-team-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.modal-team-formation {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    display: inline-block;
    text-align: left;
    max-width: 100%;
}

.modal-team-formation ul {
    padding-left: 1.2rem;
    margin: 0;
}

.modal-team-formation li {
    margin-bottom: 0.5rem;
}

.olistico-content {
    display: block;
    /* Removed grid */
}

.olistico-block {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    /* Add spacing between blocks */
}

/* Specific style for the first block (Image + Text) */
.olistico-content>.olistico-block:first-child {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    align-items: center;
    gap: 3rem;
}

.olistico-content>.olistico-block:first-child .img-responsive {
    grid-column: 1;
    width: 100%;
    max-width: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.olistico-content>.olistico-block:first-child p,
.olistico-content>.olistico-block:first-child #olistico-btn {
    grid-column: 2;
}
.olistico-content>.olistico-block:first-child p {
    font-size: 1.1rem;
}

.olistico-content>.olistico-block:first-child > div {
    grid-column: 2;
}

.olistico-block h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 1rem 0 0.75rem;
}

.olistico-content .olistico-block p {
    color: var(--text-light);
}

.olistico-list {
    list-style: none;
    margin: 0.5rem 0 1rem;
    padding: 0;
}

.olistico-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.olistico-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

@media (max-width: 768px) {
    .olistico-content>.olistico-block:first-child {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .olistico-content>.olistico-block:first-child .img-responsive,
    .olistico-content>.olistico-block:first-child p,
    .olistico-content>.olistico-block:first-child #olistico-btn {
        grid-column: 1;
    }
    .olistico-content>.olistico-block:first-child > div {
        grid-column: 1;
    }
    .olistico-content>.olistico-block:first-child .img-responsive {
        width: 100%;
        max-width: 100%;
    }
}

/* Chromotherapy Section */
.cromoterapia-section {
    margin-top: 4rem;
}

.cromo-intro {
    margin-bottom: 3rem;
    max-width: 900px;
}

.cromo-intro p {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.cromo-box {
    background: linear-gradient(rgba(0, 180, 216, 0.85), rgba(0, 180, 216, 0.9)), url('assets/cromo.jpg');
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    padding: 3rem;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cromo-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="90" r="5" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="50" r="3" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.cromo-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.cromo-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.cromo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.cromo-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.cromo-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.cromo-number {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.cromo-item p {
    color: var(--white);
    font-size: 0.95rem;
    margin: 0;
}

.cromo-footer {
    text-align: center;
    margin-top: 3rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .cromo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cromo-grid {
        grid-template-columns: 1fr;
    }

    .cromo-title {
        font-size: 2rem;
    }

    .cromo-box {
        padding: 2rem 1.5rem;
    }
}
