:root {
    --blue: #197b9c;
    --blue-dark: #0f5f7a;
    --blue-soft: #a5d3ed;
    --ink: #4c555d;
    --paper: #ffffff;
    --wash: #f4f7f8;
    --line: #dfe7eb;
    --accent: #ba6755;
    --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-dark); }
.shell { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 96px;
}
.brand { flex: 0 0 auto; }
.brand img { width: 275px; height: auto; }
.main-nav {
    margin-left: auto;
    display: flex;
    align-items: stretch;
    gap: 3px;
}
.main-nav a {
    display: flex;
    align-items: center;
    padding: 13px 14px;
    min-height: 48px;
    text-decoration: none;
    font-size: .94rem;
    background: rgba(25,123,156,.72);
    color: white;
    border-radius: 5px;
    transition: .18s ease;
}
.main-nav a:hover,
.main-nav a.active {
    background: var(--blue-soft);
    color: white;
}
.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 5px;
    padding: 10px 14px;
    background: var(--blue);
    color: white;
    font: inherit;
}

.site-main { min-height: 60vh; }
.hero {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 48px;
    align-items: center;
    padding-block: 48px 34px;
}
.eyebrow {
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--blue);
    font-weight: 700;
    font-size: .78rem;
}
h1, h2, h3 {
    font-family: Georgia, "Times New Roman", serif;
    color: #606e7f;
    line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin: 0; font-weight: 400; }
h2 { font-size: 1.8rem; }
.hero-media img {
    width: 100%;
    max-height: 430px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(45,70,85,.15);
}
.hero-media.profile-logo {
    padding: 28px;
    background: var(--wash);
    border-radius: 16px;
}
.hero-media.profile-logo img {
    object-fit: contain;
    box-shadow: none;
    max-height: 270px;
}

.content-section { padding: 12px 0 58px; }
.prose {
    max-width: 850px;
    font-size: 1.07rem;
}
.prose p { margin: 0 0 1.15em; }
.prose .lead-question { font-size: 1.25rem; color: var(--blue-dark); }
.prose .note {
    margin-top: 28px;
    padding: 18px 20px;
    background: var(--wash);
    border-left: 5px solid var(--blue);
}

.contact-strip {
    background: var(--wash);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-block: 34px;
}
.contact-grid h2 { margin-top: 0; }
.contact-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}
.contact-links a {
    text-decoration: none;
    font-weight: 700;
}
.muted { color: #7c858b; }

.site-footer { background: #17252d; color: white; }
.footer-photo {
    height: 260px;
    overflow: hidden;
    opacity: .88;
}
.footer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 46%;
}
.footer-bottom {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.footer-bottom p { margin: 0; }

@media (max-width: 900px) {
    .header-inner { min-height: 82px; flex-wrap: wrap; padding-block: 10px; }
    .brand img { width: 220px; }
    .menu-toggle { display: block; }
    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        margin: 0 0 10px;
    }
    .main-nav.open { display: flex; }
    .main-nav a { justify-content: center; }
    .hero {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 34px;
    }
    .hero-media { order: -1; }
    .hero-media img { max-height: 360px; }
}
@media (max-width: 620px) {
    .shell { width: min(calc(100% - 24px), var(--max)); }
    .brand img { width: 185px; }
    .hero { padding-top: 24px; }
    h1 { font-size: 2.35rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-photo { height: 200px; }
}


/* Versione 2 - contenuti più leggibili e selettore lingua */
.article-card {
    max-width: 900px;
    padding: 30px 34px;
    background: #f1f6f8;
    border: 1px solid #dbe7ec;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(45,70,85,.07);
}
.article-card p {
    margin: 0 0 1.35rem;
}
.article-card p:last-child {
    margin-bottom: 0;
}
.note-line {
    font-weight: 600;
}
.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}
.language-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    border: 1px solid var(--blue);
    border-radius: 999px;
    color: var(--blue-dark);
    background: white;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .04em;
}
.language-switch:hover {
    background: var(--blue);
    color: white;
}
.footer-bottom {
    min-height: 92px;
    line-height: 1.7;
}

@media (min-width: 901px) {
    .header-actions {
        margin-left: 0;
        order: 3;
    }
    .main-nav {
        margin-left: auto;
    }
}
@media (max-width: 900px) {
    .header-actions {
        margin-left: auto;
    }
}
@media (max-width: 620px) {
    body {
        font-size: 16px;
        line-height: 1.7;
    }
    .article-card {
        padding: 22px 18px;
        border-radius: 10px;
    }
    .article-card p {
        margin-bottom: 1.2rem;
    }
    .prose {
        font-size: 1rem;
    }
    .hero-media img {
        max-height: 300px;
    }
}


/* Trattamento dietologico: infografica protagonista sopra il testo */
.treatment-hero {
    display: block;
    padding-bottom: 12px;
}
.treatment-infographic {
    margin-top: 4px;
    margin-bottom: 30px;
}
.treatment-infographic img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(45,70,85,.10);
}
.treatment-article {
    max-width: 100%;
}
@media (max-width: 620px) {
    .treatment-infographic { margin-bottom: 20px; }
    .treatment-infographic img { border-radius: 10px; }
}

/* Formattazioni editoriali dal documento Word + motto ricorrente */
.green-emphasis { color: #385623; }
.red-emphasis { color: #ee0000; }
.site-motto {
    margin: 22px 0 0;
    padding: 10px 0 10px 18px;
    border-left: 4px solid var(--blue);
    color: var(--blue-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    line-height: 1.45;
    text-align: left;
}
.site-motto em { font-weight: 600; }
@media (max-width: 620px) {
    .site-motto { margin-top: 18px; padding-left: 14px; }
}
