/* ----- VARIABILI GLOBALI ----- */
:root {
    --primary: #005A9C;     /* Medical blue */
    --primary-light: #2B7ABF;
    --primary-dark: #003B6F;
    --secondary: #EAF3FA;   /* Light blue for backgrounds */
    --accent: #F4A261;      /* Accent color for CTA */
    --text-dark: #1A202C;
    --text-light: #4A5568;
    --white: #FFFFFF;
}

/* ----- RESET & BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    color: var(--text-dark);
    background-color: #F7FAFC;
    line-height: 1.6;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

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

/* ----- HEADER & NAVBAR ----- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.2;
}

.logo span {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-light);
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

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

.btn-cta {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 99px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 90, 156, 0.2);
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 90, 156, 0.3);
}

/* ----- HEADER PAGINE INTERNE ----- */
.page-header { 
    background: var(--secondary); 
    padding: 60px 0; 
    text-align: center; 
    border-bottom: 1px solid #E2E8F0; 
}
.page-header h1 { 
    font-size: 2.5rem; 
    font-weight: 800; 
    color: var(--primary-dark); 
}

/* ----- HERO SECTION (HOME) ----- */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--white) 100%);
    padding: 80px 0;
    border-bottom: 1px solid #E2E8F0;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* ----- INTRO & CONTENUTI COMUNI ----- */
.sc-intro {
    padding: 80px 0;
    background: var(--white);
}

.intro-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.intro-img {
    flex: 0 0 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

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

.intro-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.intro-text strong {
    color: var(--primary-dark);
}

.sc-content { 
    padding: 80px 0; 
    background: var(--white); 
}
.content-inner { 
    max-width: 900px; 
    margin: 0 auto; 
}
.content-inner p { 
    margin-bottom: 20px; 
    font-size: 1.1rem; 
    color: var(--text-light); 
}
.content-inner ul { 
    margin-bottom: 30px; 
    padding-left: 20px; 
    color: var(--text-light); 
    font-size: 1.1rem; 
}
.content-inner ul li { 
    margin-bottom: 10px; 
}
.content-inner h2 { 
    margin-top: 50px; 
    margin-bottom: 25px; 
    font-size: 1.8rem; 
    color: var(--primary-dark); 
    border-bottom: 2px solid var(--secondary); 
    padding-bottom: 10px; 
}

/* ----- MODULI SPECIFICI PAGINE ----- */
/* Pubblicazioni (Curriculum) */
.pub-list { 
    list-style: none !important; 
    padding-left: 0 !important; 
}
.pub-list li { 
    background: #F8FAFC; 
    padding: 20px; 
    border-radius: 10px; 
    margin-bottom: 15px !important; 
    border: 1px solid #E2E8F0; 
    font-size: 0.95rem !important; 
}
.pub-list strong { 
    color: var(--primary-dark); 
}

/* Layout Schede (Contatti) */
.content-grid-2 { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
}
.info-box { 
    background: #F8FAFC; 
    padding: 30px; 
    border-radius: 16px; 
    border: 1px solid #E2E8F0; 
}
.info-box h2 { 
    font-size: 1.5rem; 
    color: var(--primary-dark); 
    margin-bottom: 20px; 
    border-bottom: 2px solid var(--secondary); 
    padding-bottom: 10px; 
}
.info-box p { 
    margin-bottom: 15px; 
    font-size: 1.05rem; 
}
.info-box ul { 
    margin-left: 20px; 
    margin-bottom: 15px; 
}
.info-box ul li { 
    margin-bottom: 8px; 
}
.contact-cta { 
    text-align: center; 
    margin-top: 40px; 
    grid-column: 1 / -1; 
}
.contact-cta h3 { 
    font-size: 2rem; 
    margin-bottom: 20px; 
    color: var(--primary-dark); 
}
.tel-big { 
    display: inline-block; 
    font-size: 2.5rem; 
    font-weight: 800; 
    color: var(--accent); 
    margin-bottom: 10px; 
}

/* ----- PATOLOGIE / SERVICES GRID (HOME) ----- */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 50px;
}

.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid #EDF2F7;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,90,156,0.1);
    border-color: var(--primary-light);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-light);
    font-weight: 800;
}

.service-card ul {
    list-style-position: inside;
    list-style-type: disc;
    color: var(--text-light);
    font-size: 0.95rem;
}

.service-card ul li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* ----- FOOTER ----- */
footer {
    background-color: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255,255,255,0.8);
}

.footer-col a:hover {
    color: var(--white);
}

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

/* ----- RESPONSIVE / MOBILE ----- */
@media (max-width: 768px) {
    .nav-links { 
        display: none; /* Add a hamburger menu for production */
    } 
    .hero h1 { 
        font-size: 2.2rem; 
    }
    .page-header h1 { 
        font-size: 2rem; 
    }
    .intro-content {
        flex-direction: column;
    }
    .content-grid-2 { 
        grid-template-columns: 1fr; 
    }
}

/* ----- COOKIE BANNER GDPR ----- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 20px 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: none;
}

#cookie-banner.show {
    transform: translateY(0);
    display: block;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.cookie-text a {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-cookie {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-cookie.primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-cookie.primary:hover {
    background-color: var(--primary-dark);
}

.btn-cookie.secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid #CBD5E0;
}

.btn-cookie.secondary:hover {
    background-color: #F7FAFC;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .cookie-buttons {
        width: 100%;
        justify-content: stretch;
    }
    .btn-cookie {
        flex: 1;
        text-align: center;
    }
}
